OSDN Git Service

PR target/46434
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-22  Richard Henderson  <rth@redhat.com>
2
3         PR target/46434
4         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
5         return the address register extracted.
6         (crx_decompose_address): Update the extracted address register.
7
8 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
9
10         PR driver/43335
11         * gcc.c (main): Don't crash when lto-wrapper program is not found.
12
13 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
14
15         PR target/46608
16         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
17         * config/picochip/picochip-protos.h: Don't include "target.h" .
18         (picochip_secondary_reload): Don't declare.
19
20 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
21
22         PR bootstrap/46609
23         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
24         (source_dot_c_frul): Likewise.
25
26 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
27
28         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
29
30 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
31
32         PR bootstrap/44970
33         * Makefile.in (fwprop.o) Add sparseset.h.
34         * fwprop.c: Include sparseset.h
35         (struct find_occurrence_data, find_occurrence_callback,
36         find_occurrence): Remove.
37         (active_defs, active_defs_check, register_active_defs,
38         update_df_init, update_uses): New.
39         (update_df): Rewrite.
40         (try_fwprop_subst, forward_propagate_asm): Add calls to
41         update_df_init and update_df.
42         (fwprop_init): Allocate active_defs and active_defs_check.
43         (fwprop_done): Free them.
44         (fwprop, fwprop_addr): Adjust comments.
45         * df.h (df_uses_create): Declare.
46         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
47         (df_ref_create): Return result of df_ref_create_structure directly.
48         (df_ref_create_structure): Call df_install_ref_incremental when
49         no collection_rec is passed.
50         (df_ref_record): Do not create multiword hard reg info when no
51         collection_rec is passed.
52         (df_uses_create): New. 
53
54 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
55
56         PR middle-end/43057
57         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
58         setting location.
59
60 2010-11-22  Richard Guenther  <rguenther@suse.de>
61
62         * gimple-fold.c (maybe_fold_reference): When canonicalizing
63         MEM_REFs, preserve volatileness.
64         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
65         addresses.
66
67 2010-11-22  Richard Guenther  <rguenther@suse.de>
68
69         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
70
71 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
72
73         PR rtl-optimization/45652
74         * alias.c (get_reg_base_value): New.
75         * rtl.h (get_reg_base_value): Add prototype.
76         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
77         non-null REG_BASE_VALUE for renaming.
78
79 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
80             Basile Starynkevitch  <basile@starynkevitch.net>
81
82         * gengtype.c: Include xregex.h and obstack.h
83         Added comments about role of get_output_file_with_visibility and
84         our regexpr machinery.
85         (frul_actionrout_t, struct file_rule_st): New.
86         (hader_dot_h_frul, source_dot_c_frul): New functions.
87         (NULL_REGEX,  NULL_FRULACT): New.
88         (files_rules): New.
89         (matching_file_name_substitute): New function.
90         (get_output_file_with_visibility): Updated comments and rewritten
91         to use the new files_rules machinery.
92
93         * Makefile.in (XREGEX_H): Added variable.
94         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
95
96 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
97
98         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
99
100 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
101
102         * target.def (conditional_register_usage): Define.
103         * reginfo.c (init_reg_sets_1): Call
104         targetm.conditional_register_usage.
105         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
106         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
107         for making it a hook.
108         * doc/tm.texi: Regenerate.
109         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
110         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
111         New function.
112         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
113         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
114         * config/arc/arc.c (arc_conditional_register_usage): ...here.
115         New function.
116         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
117         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
118         * config/arm/arm.c (arm_conditional_register_usage): ...here.
119         New function.
120         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
121         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
122         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
123         * config/bfin/bfin.c (conditional_register_usage): Move code into...
124         (bfin_conditional_register_usage): ...here.  New function.
125         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
126         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
127         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
128         * config/cris/cris.c (cris_conditional_register_usage): Make static.
129         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
130         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
131         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
132         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
133         * config/frv/frv.c (frv_conditional_register_usage): Make static.
134         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
135         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
136         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
137         New function.
138         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
139         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
140         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
141         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
142         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
143         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
144         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
145         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
146         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
147         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
148         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
149         New function.
150         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
151         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
152         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
153         Delete.
154         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
155         static.
156         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
157         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
158         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
159         * config/mep/mep.c (mep_conditional_register_usage): Make static.
160         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
161         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
162         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
163         * config/mips/mips.c (mips_conditional_register_usage): Make static.
164         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
165         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
166         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
167         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
168         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
169         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
170         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
171         ...here.  New function.
172         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
173         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
174         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
175         * config/pa/pa.c (pa_conditional_register_usage): ...here.
176         New function.
177         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
178         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
179         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
180         New function.
181         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
182         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
183         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
184         Delete.
185         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
186         static.
187         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
188         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
189         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
190         * config/rx/rx.c (rx_conditional_register_usage): Make static.
191         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
192         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
193         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
194         * config/s390/s390.c (s390_conditional_register_usage): Make static.
195         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
196         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
197         * config/score/score.c (score_conditional_register_usage): ...here.
198         New function.
199         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
200         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
201         * config/sh/sh.c (sh_conditional_register_usage): ...here.
202         New function.
203         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
204         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
205         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
206         New function.
207         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
208         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
209         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
210         * config/spu/spu.c (spu_conditional_register_usage): Make static.
211         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
212         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
213         * config/v850/v850.c (v850_conditional_register_usage): ...here.
214         New function.
215         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
216
217 2010-11-21  Jan Hubicka  <jh@suse.cz>
218             Dominique d'Humieres <dominiq@lps.ens.ft>
219
220         PR target/46510
221         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
222         finalize external decls.
223
224 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
225
226         * system.h (strerror): Poison.
227
228 2010-11-21  Richard Henderson  <rth@redhat.com>
229
230         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
231         for infq/huge_valq.
232
233 2010-11-21  Richard Henderson  <rth@redhat.com>
234
235         PR rtl-optimization/46571
236         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
237         (compute_hash_table_work): Use NONDEBUG_INSN_P.
238
239 2010-11-21  Paul Koning  <ni1d@arrl.net>
240
241         * config/mips/pdp11.md (negsi2): Fix wrong code.
242
243 2010-11-21  Paul Koning  <ni1d@arrl.net>
244
245         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
246         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
247
248 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
249
250         * config/mips/mips.c (machine_function): Rename load_label_length to
251         load_label_num_insns.
252         (mips_load_label_length): Rename to...
253         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
254         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
255
256 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
257
258         PR target/46533
259         * config/alpha/predicates.md (direct_call_operand): Return false
260         for !TARGET_SMALL_TEXT targets.
261
262 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
263
264         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
265         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
266         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
267         * doc/tm.texi: Regenerate.
268         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
269         HANDLE_PRAGMA_WEAK): Poison.
270         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
271         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
272         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
273         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
274         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
275         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
276         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
277         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
278         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
279         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
280         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
281         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
282         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
283         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
284         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
285         (HANDLE_PRAGMA_WEAK): Don't undefine.
286         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
287         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
288         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
289         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
290         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
291         (HANDLE_PRAGMA_WEAK): Don't undefine.
292         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
293         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
294         (HANDLE_PRAGMA_PACK): Don't undefine.
295         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
296         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
297         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
298         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
299         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
300         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
301         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
302         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
303         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
304         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
305         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
306         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
307         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
308         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
309         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
310         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
311         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
312
313 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
314
315         PR target/31100
316         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
317         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
318         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
319
320 2010-11-20  Jan Hubicka  <jh@suse.cz>
321
322         * cgraph.c (ld_plugin_symbol_resolution_names): New.
323         (dump_cgraph_node): Dump resolution.
324         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
325         (cgraph_comdat_can_be_unshared_p): Dclare.
326         * lto-streamer-out.c (produce_symtab): Use
327         cgraph_comdat_can_be_unshared_p.
328         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
329         (cgraph_comdat_can_be_unshared_p): New function based on logic
330         in cgraph_externally_visible_p.
331         (cgraph_externally_visible_p): Use it.
332         (varpool_externally_visible_p): Virtual tables can be unshared.
333         * varpool.c (dump_varpool_node): Dump resolution.
334
335 2010-11-20  Jan Hubicka  <jh@suse.cz>
336
337         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
338
339 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
340
341         PR other/46202
342         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
343         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
344         shell quoting.
345         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
346         (install-strip): New target.
347         (STRIPPROG): New variable, exported if STRIP is set.
348         * doc/install.texi (Final install): Minor markup and code style
349         fixes.  Document install-strip target.
350
351 2010-11-20  Paul Koning  <ni1d@arrl.net>
352
353         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
354         pdp11_regno_reg_class): New functions.
355         * config/pdp11/pdp11.md (define_constants): Add register numbers.
356         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
357         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
358         functions.
359         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
360         frame pointer and argument pointer pseudo-registers.
361         (ARG_POINTER_REGNUM): Define.
362         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
363         argument pointer.
364         (FIRST_PARM_OFFSET): Update for argument pointer.
365         (INITIAL_FRAME_POINTER_OFFSET): Delete.
366         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
367         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
368         frame pointer and argument pointer.
369
370 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
371
372         PR debug/46561
373         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
374         when looking for immediate uses.
375
376         PR tree-optimization/45830
377         * stmt.c (expand_switch_using_bit_tests_p): New function.
378         (expand_case): Use it.
379         * tree.h (expand_switch_using_bit_tests_p): New prototype.
380         * tree-switch-conversion.c (struct switch_conv_info): Add
381         bit_test_uniq, bit_test_count and bit_test_bb fields.
382         (check_range): Fix a comment.
383         (check_process_case): Compute bit_test_uniq and bit_test_count.
384         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
385         allocation.
386         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
387         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
388         (array_value_type): New function.
389         (build_one_array): Use it, if it returned different type,
390         fold_convert all constructor fields and convert back to the
391         wider type in the generated code.
392         (process_switch): Initialize bit_test_uniq, bit_test_count and
393         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
394         returned true.
395
396 2010-11-19  Michael Matz  <matz@suse.de>
397
398         PR tree-optimization/46077
399         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
400
401 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
402
403         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
404         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
405         function.
406         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
407
408 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
409
410         * mode-switching.c (optimize_mode_switching): Use
411         FOR_BB_INSNS instead of open-coded loop.
412         * cfgrtl.c (redirect_branch_edge): Ditto.
413
414 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
415
416         PR target/46436
417         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
418         to accomodate 32 bit HOST_WIDE_INT.
419         (m68hc11_emit_logical): Remove unused variable insn.
420         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
421         this_insn_uses_iy before use.
422
423         PR target/46434
424         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
425
426 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
427
428         PR c/46547
429         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
430         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
431
432 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
433
434         * doc/extend.texi (Function attributes): Document PowerPC target
435         attributes that are supported.
436         (Pragmas): Document that PowerPC now supports target pragmas.
437
438         * doc/options.texi (TargetVariable): Document TargetVariable,
439         HeaderInclude, and SourceInclude.
440
441         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
442         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
443         -ffp-contract=off.
444
445         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
446         SourceInclude directives.  Fix a cut+paste error with target save
447         enum variables.  Sort enums in the structures after ints and
448         before shorts.
449         * opth-gen.awk: Ditto.
450
451         * configure.ac: Add support for HeaderInclude and SourceInclude option
452         directives to add the appropriate files to the dependency lists.
453         * configure: Regenerate.
454         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
455         (OPTIONS_C_EXTRA): New variable for SourceInclude.
456         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
457         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
458         (gcc-options.o): Ditto.
459         * opt-include.awk: New awk script to handle HeaderInclude and
460         TargetInclude.
461
462         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
463         gets saved in the target options.
464         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
465         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
466         (-mprototype): Ditto.
467         (-mbit-word): ditto.
468         (-mregnames): Ditto.
469         (-msecure-plt): Ditto.
470         (-mbss-plt): Ditto.
471         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
472         (-mpowerpc-gfxopt): Ditto.
473         (-mmfcrf): Ditto.
474         (-mpopcntb): Ditto.
475         (-mfprnd): Ditto.
476         (-mcmpb): Ditto.
477         (-mmmfpgpr): Ditto.
478         (-maltivec): Ditto.
479         (-mhard-dfp): Ditto.
480         (-mmulhw): Ditto.
481         (-mdlmzb): Ditto.
482         (-mmultiple): Ditto.
483         (-mstring): Ditto.
484         (-mpopcntd): Ditto.
485         (-mfriz): Ditto.
486         (-mvsx): Ditto.
487         (-mno-update): Ditto.
488         (-mavoid-indexed-addresses): Ditto.
489         (-mtls-markers): Ditto.
490         (-msched-epilog): Ditto.
491         (-msched-prolog): Ditto.
492         (-maix-struct-return): Ditto.
493         (-msvr4-struct-return): Ditto.
494         (-mxl-compat): Ditto.
495         (-mrecip-precision): Ditto.
496         (-mfp-in-toc): Ditto.
497         (-msum-in-toc): Ditto.
498         (-mvrsave): Ditto.
499         (-mblock-move-inline-limit=): Ditto.
500         (-misel): Ditto.
501         (-mpaired): Ditto.
502         (-mlongcall): Ditto.
503         (-mgen-cell-microcode): Ditto.
504         (-mwarn-cell-microcode): Ditto.
505         (-mwarn-altivec-long): Ditto.
506         (-mprioritize-restricted-insns=): Ditto.
507         (-msingle-float): Ditto.
508         (-mdouble-float): Ditto.
509         (-msimple-fpu): Ditto.
510         (-mxilinx-fpu): Ditto.
511         * config/rs6000/aix64.opt (-mpe): Ditto.
512
513         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
514         (rs6000_cpu): Move variable to be a target variable.  Rename
515         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
516         -mdebug=<xxx> variables into a single int.
517         (rs6000_always_hint): Ditto.
518         (rs6000_sched_groups): Ditto.
519         (rs6000_align_branch_targets): Ditto.
520         (rs6000_sched_costly_dep): Ditto.
521         (rs6000_sched_insert_nops): Ditto.
522         (rs6000_long_double_type_size): Ditto.
523         (rs6000_ieeequad): Ditto.
524         (rs6000_altivec_abi): Ditto.
525         (rs6000_spe): Ditto.
526         (rs6000_spe_abi): Ditto.
527         (rs6000_float_gprs): Ditto.
528         (rs6000_darwin64_abi): Ditto.
529         (can_override_loop_align): Ditto.
530         (rs6000_sdata): Ditto.
531         (rs6000_tls_size): Ditto.
532         (rs6000_current_abi): Ditto.
533         (rs6000_traceback): Ditto.
534         (rs6000_alignment_flags): Ditto.
535         (rs6000_current_cmodel): Ditto.
536         (rs6000_recip_control): Ditto.
537         (rs6000_cpu_index): Ditto.
538         (rs6000_tune_index): Ditto.
539         (rs6000_debug): Ditto.
540         (rs6000_target_flags_explict): Ditto.
541
542         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
543         declaration.
544
545         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
546         cmodel.  Change all uses.
547
548         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
549         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
550         Rename cmodel to rs6000_current_cmodel.
551         (rs6000_sched_groups): Ditto.
552         (rs6000_align_branch_targets): Ditto.
553         (rs6000_sched_costly_dep): Ditto.
554         (rs6000_sched_insert_nops): Ditto.
555         (rs6000_long_double_type_size): Ditto.
556         (rs6000_ieeequad): Ditto.
557         (rs6000_altivec_abi): Ditto.
558         (rs6000_spe): Ditto.
559         (rs6000_spe_abi): Ditto.
560         (rs6000_float_gprs): Ditto.
561         (rs6000_darwin64_abi): Ditto.
562         (can_override_loop_align): Ditto.
563         (rs6000_sdata): Ditto.
564         (rs6000_tls_size): Ditto.
565         (rs6000_current_abi): Ditto.
566         (rs6000_traceback): Ditto.
567         (rs6000_alignment_flags): Ditto.
568         (rs6000_current_cmodel): Ditto.
569         (rs6000_recip_control): Ditto.
570         (rs6000_cpu_index): Ditto.
571         (rs6000_tune_index): Ditto.
572         (rs6000_debug): Ditto.
573         (rs6000_target_flags_explict): Ditto.
574         (rs6000_sched_insert_nops_str): Make static.
575         (rs6000_sched_costly_dep_str): Ditto.
576         (rs6000_recip_name): Ditto.
577         (rs6000_abi_name): Ditto.
578         (rs6000_sdata_name): Ditto.
579         (enum rs6000_traceback_name): Move to rs6000-opts.h.
580         (rs6000_parse_tls_size_option): Delete.
581         (rs6000_valid_attribute_p): New function for target attributes and
582         pragmas.
583         (rs6000_function_specific_save): Ditto.
584         (rs6000_function_specific_restore): Ditto.
585         (rs6000_function_specific_print): Ditto.
586         (rs6000_can_inline_p): Ditto.
587         (rs6000_set_current_function): Ditto.
588         (rs6000_inner_target_options): Ditto.
589         (rs6000_debug_target_options): Ditto.
590         (rs6000_pragma_target_parse): Ditto.
591         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
592         attributes and pragmas.
593         (TARGET_OPTION_SAVE): Ditto.
594         (TARGET_OPTION_RESTORE): Ditto.
595         (TARGET_OPTION_PRINT): Ditto.
596         (TARGET_CAN_INLINE_P): Ditto.
597         (TARGET_SET_CURRENT_FUNCTION): Ditto.
598         (POWER_MASKS): Move to file level scope from the
599         rs6000_option_override_internal function.
600         (POWERPC_MASKS): Ditto.
601         (ISA_*_MASKS): Ditto.
602         (struct rs6000_ptt): Ditto.
603         (processor_target_table): Ditto.
604         (rs6000_cpu_name_lookup): Map cpu name to an index in
605         processor_target_table.
606         (rs6000_debug_reg_global): Print more information on processor
607         options for -mdebug=reg.
608         (rs6000_init_hard_regno_mode_ok): Add support for target
609         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
610         Allow -mdebug=val1,val2.  Rename cmodel variable.
611         (rs6000_option_override_internal): Ditto.
612         (rs6000_option_override): Ditto.
613         (rs6000_handle_option): Ditto.
614         (rs6000_conditional_register_usage): Add debug trace message.
615         (struct rs6000_opt_mask): New for target attribute/pragma support.
616         (rs6000_opt_masks): Ditto.
617         (struct rs6000_opt_var): Ditto.
618         (rs6000_opt_vars): Ditto.
619         (rs6000_previous_function): Ditto.
620
621         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
622         wasn't already included.
623         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
624         (enum processor_type): Ditto.
625         (rs6000_cpu): Ditto.
626         (enum fpu_type_t): Ditto.
627         (fpu_type): Ditto.
628         (enum rs6000_dependence_cost): Ditto.
629         (enum rs6000_nop_insertion): Ditto.
630         (enum group_termination): Ditto.
631         (rs6000_long_double_type_size): Ditto.
632         (rs6000_ieeequad): Ditto.
633         (rs6000_altivec_abi): Ditto.
634         (rs6000_spe_abi): Ditto.
635         (rs6000_spe): Ditto.
636         (rs6000_float_gprs): Ditto.
637         (rs6000_alignment_flags): Ditto.
638         (rs6000_sched_insert_nops): Ditto.
639         (enum rs6000_vector): Ditto.
640         (enum rs6000_abi): Ditto.
641         (rs6000_current_opt): Ditto.
642         (rs6000_debug_*): Delete.
643         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
644         (TARGET_DEBUG*): Ditto.
645
646         * config/rs6000/rs6000-opts.h: New header file to define the enums
647         that are used in target variables that are now defined in rs6000.opt.
648
649         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
650         rs6000-opts.h.
651         (rs6000_sdata): Ditto.
652         (rs6000_abi_name): Delete.
653         (rs6000_sdata_name): Ditto.
654         (rs6000_tls_size_string): Ditto.
655
656 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
657
658         * common.opt (debug_struct_ordinary, debug_struct_generic): New
659         Variable entries.
660         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
661         should_emit_struct_debug): Move from opts.c.
662         * flag-types.h (enum debug_struct_file): Move from opts.c.
663         * flags.h (should_emit_struct_debug): Remove.
664         (base_of_path): Declare.
665         (set_struct_debug_option): Add gcc_options parameter.
666         * optc-gen.awk, opth-gen.awk: Handle array variables.
667         * opts.c (enum debug_struct_file, debug_struct_ordinary,
668         debug_struct_generic): Remove.
669         (set_struct_debug_option): Add gcc_options parameter.
670         (base_of_path): Remove static.
671         (main_input_basename, main_input_baselength, matches_main_base,
672         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
673         Remove.
674         * toplev.c (main_input_basename, main_input_baselength): Define
675         here.
676         * toplev.h (main_input_basename, main_input_baselength): Declare
677         here.
678
679 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
680
681         * common.opt (flag_instrument_functions_exclude_functions,
682         flag_instrument_functions_exclude_files): New Variable definitions.
683         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
684         * gimplify.c (char_p): Declare type and vectors.
685         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
686         * opts.c (flag_instrument_functions_exclude_functions,
687         flag_instrument_functions_exclude_files): Remove.
688         (add_comma_separated_to_vector): Take void **.
689         (flag_instrument_functions_exclude_p): Move to gimplify.c.
690         (common_handle_option): Use options structure for
691         -finstrument-functions-exclude- options.
692
693 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
694
695         * doc/options.texi (Var): Document effects of Defer.
696         (Defer): Document.
697         * opt-functions.awk (var_type, var_set): Handle deferred options.
698         * opts-common.c (set_option): Handle CLVC_DEFER.
699         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
700         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
701         fstack-limit-symbol=): Mark as deferred.
702         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
703         plugin.h.
704         (print_filtered_help): Don't report state of CLVC_DEFER options.
705         (common_handle_option): Move code for OPT_fcall_used_,
706         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
707         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
708         OPT_fstack_limit_symbol_ to opts-global.c.
709         (option_enabled, get_option_state): Handle CLVC_DEFER.
710         * opts.h: Include vec.h.
711         (enum cl_var_type): Add CLVC_DEFER.
712         (cl_deferred_option): Define type and vectors.
713         (handle_common_deferred_options): Declare.
714         * opts-global.c: New.
715         * toplev.c (toplev_main): Call handle_common_deferred_options
716         * Makefile.in (OPTS_H): Include $(VEC_H).
717         (OBJS-common): Include opts-global.o.
718         (opts.o): Update dependencies.
719         (opts-global.o): Add dependencies.
720
721 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
722
723         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
724         to objc_declare_protocols.
725
726 2010-11-19  Richard Guenther  <rguenther@suse.de>
727
728         PR lto/45789
729         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
730         IDENTIFIERs do not stream TREE_TYPE.
731         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
732
733 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
734
735         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
736
737 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
738
739         PR target/45870
740         * dwarf2out.c (const_ok_for_output_1): Don't complain about
741         non-delegitimized TLS UNSPECs.
742
743 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
744             Ian Lance Taylor  <iant@google.com>
745
746         * config/darwin-c.c (darwin_additional_format_types): Export.
747
748 2010-11-18  Paul Koning  <ni1d@arrl.net>
749
750         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
751         pointer.
752
753 2010-11-18  Paul Koning  <ni1d@arrl.net>
754
755         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
756         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
757         * config/pdp11/pdp11.opt (-mabshi): Delete.
758
759 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
760
761         * resource.h (struct resources): Fix typo in the comment.
762
763 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
764
765         PR target/46546
766         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
767
768 2010-11-18  Richard Henderson  <rth@redhat.com>
769
770         PR middle-end/46515
771         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
772         maybe_copy_epilogue_insn; handle prologue insns as well.
773         * rtl.h, cfglayout.c: Update for rename.
774         * recog.c (peep2_attempt): Copy prologue/epilogue data for
775         RTX_FRAME_RELATED_P insns.
776
777 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
778
779         PR middle-end/46534
780         * builtins.c (fold_builtin_printf): Don't copy and modify string
781         before build_string_literal, instead modify what
782         build_string_literal returned.
783
784 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
785
786         PR c/33193
787         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
788         REALPART_EXPR and IMAGPART_EXPR.
789
790 2010-11-18  Richard Guenther  <rguenther@suse.de>
791
792         PR tree-optimization/46172
793         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
794         function.
795         (slpeel_tree_peel_loop_to_edge): Call it.
796
797 2010-11-18  Jeff Law  <law@redhat.com>
798
799         PR middle-end-optimization/46297
800         * postreload.c (reload_combine_note_store): Deal with embedded
801         side effects in MEM expressions.
802
803 2010-11-18  Richard Guenther  <rguenther@suse.de>
804
805         PR lto/45089
806         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
807         when checking is not enabled.
808
809 2010-11-18  Richard Guenther  <rguenther@suse.de>
810
811         PR lto/46525
812         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
813         type leaders.
814         (gimple_register_canonical_type): Also cache the canoncial type
815         for non type leaders.
816
817 2010-11-18  Richard Guenther  <rguenther@suse.de>
818
819         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
820
821 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
822
823         PR middle-end/46518
824         * sel-sched-ir.c (init_expr): Use the correct type for
825         target_available.
826         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
827
828 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
829
830         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
831         as well as -mrelocatable at the same time.
832
833 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
834
835         PR target/46422
836         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
837         Call the clz builtin.
838
839 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
840             Steve Ellcey  <sje@cup.hp.com>
841
842         PR middle-end/31490
843         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
844         if section attribute used.
845
846 2010-11-17  Jan Hubicka  <jh@suse.cz>
847
848         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
849         expand errno setting variant when optimizing for size.
850
851 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
852
853         * postreload.c (reload_combine): Call control_flow_insn_p only once.
854         Reverse backward loop.  Fix formatting issues.
855
856 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
857
858         * c-parser.c (c_token_is_qualifier,
859         c_parser_next_token_is_qualifier): New.
860         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
861         Improve error message on specs->tagdef_seen_p.
862         (c_parser_struct_or_union_specifier): Improve error recovery.
863         (c_parser_declspecs): Move exit condition on C_ID_ID early.
864         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
865         using c_parser_next_token_is_qualifier; extend it to cover
866         a ctsk_tagdef typespec and !typespec_ok in general.
867
868 2010-11-17  Richard Guenther  <rguenther@suse.de>
869
870         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
871         (gimple_mod_pow2_value_transform): Likewise.
872         (gimple_mod_subtract_transform): Likewise.
873
874 2010-11-17  Richard Guenther  <rguenther@suse.de>
875
876         PR lto/46504
877         * gimple.c (gimple_register_canonical_type): Make sure to only
878         make type leaders canonical types.
879
880 2010-11-17  Michael Matz  <matz@suse.de>
881
882         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
883         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
884         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
885         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
886         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
887         (pass_build_ssa): ... but here.
888         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
889         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
890         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
891         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
892         * predict.c (rebuild_frequencies): Ditto.
893         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
894         * emit-rtl.c (verify_rtl_sharing): Ditto.
895         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
896         * tree-ssa-live.c (remove_unused_locals): Ditto.
897         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
898         * tree-ssa.c (pass_early_warn_uninitialized,
899         execute_update_addresses_taken, pass_update_address_taken): Ditto.
900         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
901         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
902         * passes.c (pass_postreload, execute_todo): Ditto.
903         * tree-ssanames.c (pass_release_ssa_names): Ditto.
904
905 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
906
907         * doc/invoke.texi (-dy): Remove.
908         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
909         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
910         * langhooks.c (lhd_do_nothing_i): Remove.
911         * langhooks.h (lang_hooks.parse_file): Take no arguments.
912         * toplev.c (set_yydebug): Remove.
913         (compile_file): Update call to lang_hooks.parse_file.
914         (decode_d_option): Don't handle -dy.
915
916 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
917
918         PR rtl-optimization/46440
919         * combine.c (update_cfg_for_uncondjump): When changing
920         an indirect jump into unconditional jump, remove BARRIERs
921         from bb's footer.
922
923 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
924
925         * opts.c (target_handle_option): Do not assert that loc ==
926         UNKNOWN_LOCATION.
927
928 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
929             Richard Guenther  <rguenther@suse.de>
930
931         PR middle-end/45838
932         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
933         call_may_clobber_ref_p_1): Return true for __sync_* and some
934         OpenMP builtins that act as threading barriers.
935
936 2010-11-17  Richard Guenther  <rguenther@suse.de>
937
938         PR tree-optimization/46498
939         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
940
941 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
942
943         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
944         (xtensa_function_arg_boundary): ...this.
945         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
946         thinko in declaration.
947         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
948         number of parameters to picochip_function_arg_boundary.
949         (picochip_arg_advance): Likewise.
950
951 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
952
953         PR target/46512
954         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
955         under check for type.
956
957 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
958
959         * ifcvt.c (dead_or_predicable): Fix typo.
960
961 2010-11-16  Richard Henderson  <rth@redhat.com>
962
963         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
964         * config/s390/s390.opt (mfused-madd): Remove.
965         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
966         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
967         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
968         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
969
970 2010-11-16  Richard Henderson  <rth@redhat.com>
971
972         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
973         * config/rs6000/rs6000.opt (mfused-madd): Remove.
974         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
975         (*altivec_vmaddfp_1): Remove.
976         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
977         (altivec_mulv4sf3): Expand to FMA directly.
978         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
979         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
980         * config/rs6000/paired.md (paired_madds0): Use FMA.
981         (paired_madds1): Likewise.
982         (*paired_madd): Rename from paired_madd; use FMA.
983         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
984         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
985         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
986         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
987         (rs6000_emit_madd): Use fma_optab.
988         (rs6000_emit_msub): Use fms_optab.
989         (rs6000_emit_nmsub): Expand the FMA pattern directly.
990         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
991         (*fmasf4_fpr): Rename from fmasf4_fpr.
992         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
993         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
994         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
995         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
996         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
997         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
998         (*fmadf4_fpr): Rename from fmadf4_fpr.
999         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
1000         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
1001         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
1002         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
1003         (fmasf4, fmadf4): Macroize into...
1004         (fma<FMA_F>4): ... here.
1005         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
1006         (nfma<FMA_F>4, nfms<FMA_F>4): New.
1007         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
1008         TARGET_FUSED_MADD.
1009         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
1010         (*vsx_fmadd<mode>4_1): Remove.
1011         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
1012         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
1013         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
1014         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
1015         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
1016         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
1017         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
1018
1019 2010-11-16  Richard Henderson  <rth@redhat.com>
1020
1021         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
1022         (fmasf4, fnmadf4, fnmasf4): Likewise.
1023         (unnamed plus+mult insns and splitters): Delete.
1024
1025 2010-11-16  Richard Henderson  <rth@redhat.com>
1026
1027         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
1028         (fnma<VSF>4): Rename from fnms_<VSF>.
1029         (fms<VSF>4): Rename from fms_<VSF>.
1030         (fma<VDF>4): Rename from fma_<VDF>.
1031         (fms<VDF>4): Rename from fms_<VDF>.
1032         (nfma<VDF>4): Rename from fnma_<VDF>.
1033         (nfms<VDF>4): Rename from fnms_<VDF>.
1034         (fnma<VDF>4, fnms<VDF>4): New expanders.
1035         (floatunsdisf2): Update for the renames.
1036         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
1037         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
1038
1039 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1040
1041         PR rtl-optimization/46490
1042         * combine.c (expand_compound_operation): Fix thinko.
1043
1044 2010-11-16  Richard Henderson  <rth@redhat.com>
1045
1046         PR target/46470
1047         * recog.c (peep2_attempt): Convert frame-related info when possible.
1048         (peep2_fill_buffer): Allow frame-related insns into the buffer.
1049         (peephole2_optimize): Allow peep2_attempt to fail.
1050
1051 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1052
1053         PR rtl-optimization/46315
1054         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
1055         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
1056         extracted from...
1057         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
1058         (remove_reg_equal_equiv_notes_for_defs): ...this.
1059         (delete_unmarked_insns): Adjust to above renaming.
1060         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
1061         referring to registers set in the insns being moved, if any.
1062
1063         * df-core.c (df_ref_dump): New function extracted from...
1064         (df_refs_chain_dump): ...here.  Call it.
1065         (df_regs_chain_dump): Likewise.
1066         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
1067         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
1068
1069 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
1070
1071         PR rtl-optimization/46395
1072         * postreload.c (reload_combine): Invalidate register use
1073         information on all control flow insns.
1074
1075         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
1076         LABEL_REF in UNSPEC operand.
1077
1078 2010-11-16  Jan Hubicka  <jh@suse.cz>
1079
1080         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
1081         when !flag_toplevel_reorder do not remove unless variable is
1082         COMDAT or ARTIFICIAL.
1083         * ipa.c (varpool_can_remove_if_no_refs): ... here.
1084         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
1085         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
1086         * varpool.c (decide_is_variable_needed): Do not handle visibility
1087         issues.
1088         (varpool_finalize_decl): Likewise.
1089         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
1090         update outdated comment on DECL_RTL_SET_P check.
1091
1092 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1093
1094         * config/sol2.h (NM_FLAGS): Define.
1095         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
1096         * doc/tm.texi: Update.
1097
1098 2010-11-16  Nick Clifton  <nickc@redhat.com>
1099
1100         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
1101         (msubsf4): Rename to fmssf4, and use fma.
1102         (nmaddsf4): Rename to fnmasf4 and use fma.
1103         (nmsubsf4): Rename to fnmssf4 and use fma.
1104
1105 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
1106
1107         PR target/44762
1108         * config/score/score3.c (score3_return_in_memory): Constify arguments.
1109         (score3_in_small_data_p, score3_function_value): Likewise.
1110         (score3_trampoline_init): Use LCT_NORMAL.
1111         (score3_print_operand): Initialize code as UNKNOWN.
1112         * config/score/predicates.md (score_load_multiple_operation):
1113         Remove unused variable.
1114         (score_store_multiple_operation): Likewise.
1115         * config/score/score7.c (score7_return_in_memory): Constify arguments.
1116         (score7_in_small_data_p, score7_function_value): Likewise.
1117         (score7_trampoline_init): Use LCT_NORMAL.
1118         (score7_print_operand): Initialize code as UNKNOWN.
1119         * config/score/score3.h (score3_return_in_memory): Update prototype.
1120         (score3_in_small_data_p, score3_function_value): Likewise.
1121         * config/score/score-protos.h (score_function_value): Likewise.
1122         * config/score/score7.h (score7_return_in_memory): Update prototype.
1123         (score7_in_small_data_p, score7_function_value): Likewise.
1124         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
1125         (score_return_in_memory, score_pass_by_reference): Constify arguments.
1126         (score_output_mi_thunk, score_function_prologue): Don't return a value.
1127         (score_function_epilogue, score_in_small_data_p): Likewise.
1128         (score_option_override, score_asm_trampoline_template): Likewise.
1129         (score_trampoline_init, score_print_operand): Likewise.
1130         (score_print_operand_address, score_prologue): Likewise.
1131         (score_epilogue, score_call, score_call_value): Likewise.
1132         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
1133         (score_function_arg_advance): Likewise. Make static.
1134         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
1135         (score_function_arg, score_legitimate_address_p): Make static.
1136         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
1137         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
1138         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
1139         Allow (W) == HOST_BITS_PER_WIDE_INT.
1140
1141         PR java/46386
1142         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
1143         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
1144
1145 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1146
1147         * config/arc/arc.c: Delete pasto.
1148         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
1149
1150 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
1151
1152         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
1153         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1154         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
1155         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1156         (mn10300_preferred_reload_class,
1157         mn10300_preferred_output_reload_class): New functions.
1158
1159 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1160
1161         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
1162         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
1163         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
1164         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
1165
1166 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1167
1168         * builtins.c (std_gimplify_va_arg_expr): Use
1169         targetm.calls.function_arg_boundary.
1170         * function.c (assign_parms, locate_and_pad_parm): Likewise.
1171         * calls.c (struct arg_data): Update comment.
1172         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
1173         * target.def (function_arg_boundary): Define.
1174         * targhooks.h (default_function_arg_boundary): Declare.
1175         * targhooks.c (default_function_arg_boundary): Define.
1176         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
1177         TARGET_FUNCTION_ARG_BOUNDARY.
1178         (FUNCTION_ARG_BOUNDARY): Delete.
1179         (TARGET_FUNCTION_ARG_BOUNDARY): New.
1180         * doc/tm.texi: Regenerate.
1181         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
1182         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
1183         * config/arc/arc.c (arc_function_arg_boundary): Define.
1184         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1185         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
1186         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
1187         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
1188         (arm_function_arg_boundary): Define.
1189         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1190         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
1191         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
1192         * config/frv/frv.c (frv_function_arg_boundary): Make static.
1193         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1194         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
1195         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
1196         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
1197         (ix86_compat_function_arg_boundary): Take and return unsigned int.
1198         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1199         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
1200         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
1201         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
1202         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1203         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
1204         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
1205         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1206         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
1207         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
1208         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
1209         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1210         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
1211         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
1212         * config/mips/mips.c (mips_function_arg_boundary): Make static.
1213         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1214         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
1215         * config/pa/pa.c (pa_function_arg_boundary): Define.
1216         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1217         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
1218         * config/picochip/picochip-protos.h
1219         (picochip_get_function_arg_boundary): Delete.
1220         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
1221         Rename to...
1222         (picochip_function_arg_boundary): ...this.  Make static.
1223         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
1224         (picochip_arg_advance): Adjust.
1225         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1226         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
1227         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
1228         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
1229         (rs6000_function_arg_boundary): ...this.  Make static.
1230         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
1231         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1232         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
1233         * config/rx/rx.c (rx_function_arg_boundary): Define.
1234         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1235         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
1236         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
1237         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1238         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
1239         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
1240         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
1241         (xtensa_function_arg_boundary): ...this.  Make static.
1242         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1243
1244 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1245
1246         * expr.c (alignment_for_piecewise_move): New function.
1247         (widest_int_mode_for_size): New function.
1248         (move_by_pieces, move_by_pieces_ninsns): Call them.
1249         (can_store_by_pieces, store_by_pieces_1): Likewise.
1250
1251 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1252
1253         * gcc.c (char_p): Define.  Define a VEC of it.
1254         (n_linker_options, n_assembler_options, n_preprocessor_options):
1255         Delete.
1256         (linker_options, assembler_options, preprocessor_options): Convert
1257         to a VEC.
1258         (add_preprocessor_option): Adjust.
1259         (add_assembler_option): Adjust.
1260         (add_linker_option): Adjust.
1261         (do_specs_vec): New function.
1262         (do_spec_1): Call it.  Adjust for new types.
1263
1264 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1265
1266         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
1267         (sreal.o, statistics.o, stringpool.o): Likewise.
1268
1269 2010-11-16  Richard Guenther  <rguenther@suse.de>
1270
1271         PR tree-optimization/44545
1272         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
1273         statements are not reassociatable.
1274         (reassociate_bb): Likewise.
1275
1276 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1277
1278         * bitmap.c: Delete unnecessary includes.
1279         * ebitmap.c: Likewise.
1280         * et-forest.c: Likewise.
1281         * sreal.c: Likewise.
1282         * statistics.c: Likewise.
1283         * stringpool.c: Likewise.
1284         * double-int.c: Add comment for inclusion of tm.h.
1285
1286 2010-11-16  Richard Guenther  <rguenther@suse.de>
1287
1288         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
1289         (visit_nary_op): ... this.
1290         (visit_binary_op): Remove.
1291         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
1292
1293 2010-11-16  Richard Guenther  <rguenther@suse.de>
1294
1295         PR middle-end/45172
1296         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
1297
1298 2010-11-16  Nick Clifton  <nickc@redhat.com>
1299
1300         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
1301         record is packed.
1302
1303 2010-11-15  Richard Henderson  <rth@redhat.com>
1304
1305         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
1306         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
1307         DOT_PROD_EXPR.
1308
1309 2010-11-15  Richard Henderson  <rth@redhat.com>
1310
1311         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
1312         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
1313         fma rtx_code.
1314
1315 2010-11-15  Richard Henderson  <rth@redhat.com>
1316
1317         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
1318         and *mulsubsf4 respectively.  Use fma rtx_code.
1319
1320 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * gcc.c: Include "vec.h".
1323         (argbuf): Make into a VEC.
1324         (argbuf_length, argbuf_index): Remove.
1325         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
1326         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
1327         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
1328         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
1329         (gcc.o): Depend on $(VEC_H).
1330
1331 2010-11-15  Richard Henderson  <rth@redhat.com>
1332
1333         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
1334         via FMA if unsafe math.
1335         (insert_var_expansion_initialization): Handle FMA.
1336         (combine_var_copies_in_loop_exit): Likewise.
1337
1338 2010-11-15  Richard Henderson  <rth@redhat.com>
1339
1340         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
1341         * config/ia64/ia64.opt: Remove mfused-madd.
1342         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
1343         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
1344         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
1345         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
1346         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
1347         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
1348         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
1349         (fmav2sf4): Rename from fpma; use FMA code.
1350         (fmsv2sf4): Rename from fpms; use FMA code.
1351         (fnmav2sf4): Rename from *fpnma; use FMA code.
1352         * config/ia64/ia64.md (MODE_SDF): New iterator.
1353         (suffix): New mode attribute.
1354         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
1355         (fmssf4): Rename from *fmssf4.
1356         (fnmasf4): Rename from *nfmasf4.
1357         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
1358         (*nmadddf4, *nmadddf4_truncsf): Remove.
1359         (fmsdf4): Rename from *fmsdf4.
1360         (fnmadf4): Rename from *nfmadf4.
1361         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
1362         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
1363         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
1364         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
1365         (fmsxf4): Rename from *fmsxf4.
1366         (fnmaxf4): Rename from *nfmaxf4.
1367         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
1368         (*fnmaxf_trunc_<MODE_SDF>): New.
1369
1370 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
1371
1372         PR tree-optimization/46461
1373         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
1374         a gimple val.
1375
1376 2010-11-15  Ian Lance Taylor  <iant@google.com>
1377
1378         * godump.c: New file.
1379         * common.opt (fdump-go-spec=): New option.
1380         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
1381         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
1382         (TYPE_SYMTAB_IS_DIE): Define.
1383         (struct tree_type): Change GTY for symtab field to use
1384         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
1385         to pick the union field.
1386         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
1387         (dump_go_spec_init): Declare.
1388         * toplev.c (process_options): Handle flag_dump_go_spec.
1389         * debug.c: Include "tree.h".
1390         (do_nothing_debug_hooks): Set tree_type_symtab_field.
1391         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1392         * dbxout.c (dbx_debug_hooks): Likewise.
1393         (xcoff_debug_hooks): Likewise.
1394         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1395         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
1396         SDB_DEBUGGING_INFO is not defined.
1397         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
1398         (Overall Options): Document -fdump-go-spec.
1399         * Makefile.in (OBJS-common): Add godump.o.
1400         (debug.o): Add dependency on $(TREE_H).
1401         (godump.o): New target.
1402         (GTFILES): Add $(srcdir)/godump.c.
1403
1404 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
1405
1406         PR debug/46095
1407         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
1408         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
1409         style < 0, add REG_FRAME_RELATED_EXPR.
1410
1411         PR debug/46387
1412         * rtl.h (vt_equate_reg_base_value): New prototype.
1413         * alias.c (vt_equate_reg_base_value): New function.
1414         * var-tracking.c (vt_init_cfa_base): Use it.
1415
1416 2010-11-15  Jan Hubicka  <jh@suse.cz>
1417             Diego Novillo  <dnovillo@google.com>
1418
1419         PR lto/41528
1420         * doc/lto.texi: Add.
1421         * doc/gccint.texi: Add reference to lto.texi.
1422         * doc/invoke.texi: Update user documentation for LTO.
1423         Move internal flags to lto.texi
1424
1425 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1426
1427         * c-typeck.c (build_unary_op): Use
1428         objc_build_incr_expr_for_property_ref to build the pre/post
1429         increment/decrement of an Objective-C property ref, and skip the
1430         lvalue_or_else check in that case.
1431
1432 2010-11-15  Martin Jambor  <mjambor@suse.cz>
1433
1434         PR tree-optimization/46349
1435         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
1436         (contains_vce_or_bfcref_p): Likewise.
1437         (sra_modify_assign): Use them.
1438
1439 2010-11-15  Richard Guenther  <rguenther@suse.de>
1440
1441         PR tree-optimization/46467
1442         * tree-ssa-structalias.c (do_structure_copy): Properly treat
1443         variables without subvars.
1444
1445 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
1446
1447         * config/picochip/picochip.c (file header): Picochip name change.
1448         * config/picochip/picochip.md (file header): Likewise.
1449         * config/picochip/predicates.md (file header): Likewise.
1450         * config/picochip/dfa_space.md (file header): Likewise.
1451         * config/picochip/dfa_speed.md (file header): Likewise.
1452         * config/picochip/picochip.h(file header): Likewise.
1453         * config/picochip/constraints.md (file header): Likewise.
1454         * config/picochip/picochip-protos.h (file header): Likewise.
1455         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
1456         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
1457         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
1458         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
1459         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
1460         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
1461         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
1462         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
1463         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
1464         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
1465         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
1466         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
1467         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
1468         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
1469
1470 2010-11-15  Richard Guenther  <rguenther@suse.de>
1471
1472         PR bootstrap/46474
1473         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
1474
1475 2010-11-15  Nick Clifton  <nickc@redhat.com>
1476
1477         * config/stormy16/stormy16.c (direct_return): Do not generate a
1478         direct return for interrupt handlers.
1479
1480 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
1481
1482         * Makefile.in (tm.texi): Replace with rule for:
1483         ($(srcdir)/doc/tm.texi).
1484         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
1485         $(srcdir)/doc/tm.texi .
1486         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
1487         tm.texi .
1488
1489         PR target/46427
1490         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
1491
1492         PR bootstrap/45444
1493         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
1494         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
1495
1496         PR target/46432
1497         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1498
1499 2010-11-15  Richard Guenther  <rguenther@suse.de>
1500
1501         PR lto/44150
1502         * lto-opts.c (lto_write_options): Write -fexceptions even if
1503         not set by the user.
1504
1505 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
1506
1507         PR c/46462
1508         * c-decl.c (declspecs_add_type): Make variables with error types
1509         integers.
1510         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
1511         do not start a declaration before an Objective-C foreach.
1512         (c_parser_declaration_or_fndef): Improve recovery after unknown
1513         type name.
1514         (c_parser_for_statement): Hoist entrance of "foreach context"
1515         before ifs, add corresponding reset where it was missing.  Do
1516         not set objc_could_be_foreach_context for C.
1517
1518 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
1519
1520         PR tree-optimization/45722
1521         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
1522         this is a reference to a component.
1523         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
1524         (ipa_note_param_call): Adjust comment.
1525
1526 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
1527
1528         * config/mips/mips.c (machine_function): Remove
1529         initialized_mips16_gp_pseudo_p.
1530         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
1531         detect whether a pseudo has already been created.  Unconditionally
1532         create a new one if not.
1533         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
1534         expanding to rtl.  Create a new pseudo otherwise, if allowed.
1535
1536 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
1537
1538         PR target/43440
1539         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
1540         * tm.texi: Regenerated.
1541         * output.h (decode_reg_name_and_count): Declare.
1542         * varasm.c (decode_reg_name_and_count): New function.
1543         (decode_reg_name): Reimplement using decode_reg_name_and_count.
1544         * reginfo.c (fix_register): Use decode_reg_name_and_count and
1545         iterate over all regs used.
1546         * stmt.c (expand_asm_operands): Likewise.
1547         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
1548         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
1549         multiple machine registers.
1550
1551 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1552
1553         * stor-layout.c (place_union_field): Do not put location information
1554         on offset expressions.
1555         (place_field): Likewise.
1556         (finalize_record_size): Likewise on size expressions.
1557         (finalize_type_size): Likewise.
1558         (layout_type): Likewise.
1559
1560 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
1561
1562         PR debug/42889
1563         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
1564         * df-core.c (df_set_bb_dirty_nonrl): Remove.
1565         * df.h (df_set_bb_dirty_nonlr): Likewise.
1566
1567 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
1568
1569         * config/mips/mips.md (call_internal): Pass curr_insn to
1570         mips_split_call.
1571         (call_internal_direct): Ditto.
1572         (call_value_internal): Ditto.
1573         (call_value_internal_direct): Ditto.
1574         (call_value_multiple_internal): Ditto.
1575         * config/mips/mips.c (mips_split_call): Do not copy
1576         CALL_INSN_FUNCTION_USAGE here.
1577
1578 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
1579
1580         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
1581         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
1582         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
1583         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
1584         (TUNE_LOONGSON_3A): Define.
1585         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
1586         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
1587         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
1588         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
1589         (mips_rtx_cost_data): Add Loongson-3A.
1590
1591 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
1592
1593         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
1594         switches.
1595
1596 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
1597
1598         * dwarf2out.c (macinfo_entry): New struct.
1599         (output_comp_unit): Emit the section start label here and flag that we
1600         will emit an info section.
1601         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
1602         emitting directly.
1603         (dwarf2out_end_source_file): Likewise.
1604         (dwarf2out_define): Likewise.
1605         (dwarf2out_undef): Likewise.
1606         (output_macinfo): New.
1607         (dwarf2out_init): Do not emit debug section switches here, allocate a
1608         vec for macinfo, when required.
1609         (dwarf2out_finish): First switch to debug_abbrev_section here.
1610         debug_line_section,  debug_macinfo_section, Likewise.
1611         Check that the pubtypes table has at least one unpruned entry before
1612         trying to emit it.
1613
1614 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
1615
1616         PR c/20385
1617         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
1618         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
1619         token lookahead.
1620         (c_parser_compound_statement_nostart, c_parser_label,
1621         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
1622         (c_parser_declaration_or_fndef): Detect the case now matched by
1623         c_parser_next_tokens_start_declaration, give error and correct it.
1624
1625 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
1626
1627         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
1628         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
1629         with typespec_kind.
1630         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
1631         (shadow_tag_warned, check_compound_literal_type): Adjust
1632         uses of tag_defined_p.
1633         (declspecs_add_type): Set typespec_kind.
1634         * c-parser.c (c_parser_declaration_or_fndef,
1635         c_parser_declspecs, c_parser_struct_declaration,
1636         c_parser_parameter_declaration, c_parser_type_name,
1637         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
1638         of type_seen_p.
1639         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
1640         tag_defined_p, pass ctsk_firstref through.
1641
1642 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
1643
1644         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
1645         (struct format_wanted_type): Replace field "name" with "kind", add
1646         "format_start" and "format_length".
1647         (check_format_info_main): Fill in new fields.  Fill in
1648         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
1649         after the final NUL outside the while loop.  Do not include
1650         width and precision modifiers in the format_start/format_length
1651         of the main format.
1652         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
1653         arguments.  Compute WANTED_TYPE first so that format_type_warning
1654         can be called for missing arguments.  Adjust calls to
1655         format_type_warning.
1656         (format_type_warning): Fetch as much information as possible
1657         from format_wanted_type.  Adjust printing now that every
1658         warning has a "descr", as well as for missing argument warnings
1659         and to include % sign for format specifiers.
1660
1661 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
1662
1663         PR rtl-optimization/46204
1664         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
1665         Update all callers.  Do not recompute topological order.  Adjust
1666         fallthrough edges following a degenerate conditional jump.
1667
1668 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
1669
1670         * opts-common.c (control_warning_option): New.
1671         * opts.c (set_default_handlers): New.
1672         (decode_options): Use set_default_handlers and
1673         control_warning_option.
1674         (common_handle_option): Update call to enable_warning_as_error.
1675         (enable_warning_as_error): Take gcc_options parameters.  Use
1676         control_warning_option.
1677         * opts.h (set_default_handlers, control_warning_option): Declare.
1678
1679 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * Makefile.in (OPTS_H): Define.
1682         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
1683         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
1684         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
1685         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
1686         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
1687         * gcc.c (driver_handle_option): Take location_t parameter.
1688         (process_command, do_self_spec): Update calls to
1689         read_cmdline_option.
1690         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
1691         * langhooks.c (lhd_handle_option): Take location_t parameter.
1692         * langhooks.h (handle_option): Take location_t parameter.
1693         * lto-opts.c (lto_reissue_options): Update call to set_option.
1694         * opts-common.c (handle_option): Make static.  Take location_t
1695         parameter and pass it to other functions.
1696         (handle_generated_option): Take location_t parameter and pass it
1697         to other functions.
1698         (read_cmdline_option): Take location_t parameter and pass it to
1699         other functions.  Use warning_at and error_at.
1700         (set_option): Take location_t parameter and pass it to other
1701         functions.
1702         * opts.c (common_handle_option): Take location_t parameter and
1703         pass it to other functions.
1704         (enable_warning_as_error): Make static.  Take location_t parameter
1705         and pass it to other functions.
1706         (lang_handle_option): Take location_t parameter and pass it to
1707         other functions.
1708         (target_handle_option): Take location_t parameter.
1709         (read_cmdline_options, maybe_default_option,
1710         maybe_default_options, default_options_optimization,
1711         decode_options): Take location_t parameter and pass it to other
1712         functions.
1713         * opts.h: Include input.h.
1714         (struct cl_option_handler_func, decode_options, set_option,
1715         handle_generated_option, read_cmdline_option): Take location_t
1716         parameters.
1717         (handle_option, enable_warning_as_error): Remove.
1718         * toplev.c (toplev_main): Update call to decode_options.
1719
1720 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
1721
1722         * graphite-cloog-util.c (oppose_constraint,
1723         cloog_matrix_to_ppl_constraint,
1724         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
1725         CLooG isl uses unsigned integers.  This triggered a warning.
1726
1727 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
1728
1729         PR target/46438
1730         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
1731         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
1732         (xtensa_function_arg_1): De-constify cum.
1733         (xtensa_expand_prologue): Use add_reg_note.
1734
1735         PR target/46435
1736         * config/cris/cris.c (saved_regs_mentioned): Delete.
1737         (cris_reload_address_legitimized): Cast itype to enum reload_type.
1738         Remove unused variable op0p.
1739         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
1740         (cris_emit_movem_store): Use add_reg_note.
1741
1742         PR bootstrap/46456
1743         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
1744
1745 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1746
1747         * function.c (expand_function_end): Set the locator of the prologue on
1748         the stack checking insns.
1749
1750 2010-11-12  Richard Henderson  <rth@redhat.com>
1751
1752         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
1753         * config/xtensa/xtensa.opt (mfused-madd): Remove.
1754         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
1755         MASK_FUSED_MADD.
1756         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
1757         (fnmasf4): Rename from mulsubsf3; use fma.
1758
1759 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
1760             Richard Henderson  <rth@redhat.com>
1761
1762         PR target/46428
1763         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
1764         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
1765         comparison.
1766
1767 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
1768
1769         * opts-common.c (decode_cmdline_option): Initialize separate_args.
1770
1771 2010-11-12  Jan Hubicka  <jh@suse.cz>
1772
1773         * doc/invoke.texi (early-inlining-insns): Update default.
1774         * params.def (early-inlining-insns): Default to 10.
1775
1776 2010-11-12  Olivier Hainque  <hainque@adacore.com>
1777
1778         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
1779
1780 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1781
1782         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
1783         (SUPPORTS_INIT_PRIORITY): Define.
1784
1785 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
1786
1787         PR target/46430
1788         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
1789         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
1790         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1791         (avr_device_to_devicelib): Likewise.
1792         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
1793         into block.
1794         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
1795         (zero_extendhidi2, zero_extendsidi2): Likewise.
1796         * config/avr/avr.c (avr_num_arg_regs): Constify type.
1797         (avr_return_addr_rtx): De-constify tem.
1798         (avr_rotate_bytes): Move declarations to start of block.
1799         Don't use variable length array.  Put nested if/else into block.
1800
1801         PR rtl-optimization/46433
1802         * var-tracking.c: Include tm_p.h .
1803
1804         PR bootstrap/44756
1805         PR build/44767
1806         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
1807         should be unsigned.
1808         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
1809         * doc/tm.texi: Regenerate.
1810
1811         PR target/46412
1812         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
1813         * config/bfin/bfin.c: Include sel-sched.h .
1814         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
1815         (expand_interrupt_handler_prologue): Remove unused variable insn.
1816         (bfin_load_pic_reg): Likewise.
1817         (bfin_rtx_costs): Make code / outer_code variables of type
1818         enum rtx_code, copied from re-named parameters.
1819         (bfin_local_alignment): Change align argument and return type
1820         to unsigned.
1821         (bfin_adjust_cost): Remove unused variable insn_type.
1822         Declare variables at start of block.
1823         (struct loop_info): Rename to...
1824         (struct loop_info_d).
1825         (workaround_rts_anomaly): Change type of icode to int.
1826         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
1827         with int-typed variable.
1828         (note_np_check_stores): Likewise.
1829         (trapping_loads_p): Remove unused variable pat.
1830         (bfin_expand_binop_builtin): Use expand_normal.
1831         (bfin_expand_unop_builtin): Likewise.
1832         (bfin_expand_builtin): Likewise.  Set tmode before use.
1833
1834         PR middle-end/44769
1835         * final.c (split_double): Don't use BITS_PER_WORD directly in
1836         shift count.
1837
1838         PR target/46431
1839         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
1840         assignment.
1841
1842         PR target/46450
1843         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1844         Use add_reg_note.
1845         (xstormy16_function_arg): Dereference cum.
1846         (xstormy16_expand_builtin): Use expand_normal.
1847         Change type of omode to enum machine_mode.
1848         (combine_bnp): Rename and to and_insn.
1849
1850         PR target/46437
1851         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
1852         localreg.
1853
1854 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1855
1856         PR debug/46375
1857         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
1858
1859 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
1860
1861         PR lto/46376
1862         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
1863
1864 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
1865
1866         PR c/44782
1867         * common.opt (fmax-errors=): New option.
1868         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
1869         * diagnostic.h (struct diagnostic_context): Add max_errors field.
1870         * diagnostic.c (diagnostic_initialize): Initialize it.
1871         (diagnostic_action_after_output): Exit if more than max_errors
1872         have been output.
1873         * doc/invoke.texi (Warning Options): Add -fmax-errors.
1874         (-fmax-errors): Document.
1875
1876 2010-11-11  Richard Henderson  <rth@redhat.com>
1877
1878         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
1879
1880 2010-11-11  Richard Henderson  <rth@redhat.com>
1881
1882         * config/fused-madd.opt: New file.
1883         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
1884         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
1885         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1886         * config/i386/i386.opt (mfused-madd): Remove.
1887         * config/i386/sse.md (split_fma): Remove.
1888         (split_fms, split_fnma, split_fnms): Remove.
1889
1890 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
1891
1892         PR target/46088
1893         * config/i386/i386.md (*ashl<mode>3_cconly,
1894         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
1895         change nonimmediate_operand predicate to register_operand.
1896
1897 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
1898
1899         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
1900
1901 2010-11-11  Jan Hubicka  <jh@suse.cz>
1902
1903         * opts.c (finish_options): Do not error on -flto-partition alone.
1904
1905         * doc/invoke.texi (-fwhopr): Merge into -flto section.
1906         (-flto-partition): Document none.
1907         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
1908         * lto-wrapper.c: Update comment.
1909         (run_gcc): Update LTO option parsing.
1910         * opts.c (finish_options): add support -flto-partition=none
1911         (common_handle_option): Remove fwhopr.
1912         * common.opt: Turn fwhopr into flto.
1913         * collect2.c (main): Update option handling.
1914         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
1915         * ipa-split.c (execute_split_functions): Remove flag_whopr.
1916         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
1917         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
1918         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
1919
1920 2010-11-11  Jan Hubicka  <jh@suse.cz>
1921
1922         PR tree-optimize/40436
1923         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
1924         (eliminated_by_inlining_prob): ... this one; return 50% probability
1925         for SRA.
1926         (estimate_function_body_sizes): Update use of
1927         eliminated_by_inlining_prob; estimate static function size
1928         for 2 instructions.
1929
1930 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
1931
1932         PR target/44749
1933         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
1934         declare.  Change type of argument four to type int.
1935         (mep_secondary_input_reload_class): Returns enum reg_class.
1936         (mep_secondary_output_reload_class): Likewise.
1937         (mep_function_value): Change types of arguments to cont_tree.
1938         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
1939         argument four to type int.
1940         (mep_secondary_input_reload_class): Returns enum reg_class.
1941         (mep_secondary_output_reload_class): Likewise.
1942         (mep_function_value): Change types of arguments to cont_tree.
1943         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
1944         mep_regno_reg_class to enum reg_class.
1945
1946 2010-11-11  Richard Henderson  <rth@redhat.com>
1947
1948         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
1949         that the target has the exact fma operation that we matched.
1950
1951 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
1952
1953         * reginfo.c (fix_register): Avoid inserting English word in
1954         diagnostic sentence.  Use %qs for quoting and %'.
1955
1956 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
1957
1958         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1959         Intel processor family 6, model 0x2c.
1960
1961 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * opts.c (warning_as_error_callback,
1964         register_warning_as_error_callback): Remove.
1965         (enable_warning_as_error): Don't use warning_as_error_callback.
1966         * opts.h (register_warning_as_error_callback): Remove.
1967
1968 2010-11-11  Richard Henderson  <rth@redhat.com>
1969
1970         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
1971         in between the MULT and the PLUS/MINUS.
1972
1973 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
1974
1975         PR middle-end/46388
1976         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
1977         BLKmode mode for it.
1978         (expand_expr_real_1): Similarly for op0.
1979
1980 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1981
1982         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
1983         Document optional target selector.
1984
1985 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
1986
1987         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
1988         assembling high and low parts of size if not using 32-bit HWINT; else
1989         use DECL_SIZE_UNITS, not DECL_SIZE.
1990
1991 2010-11-11  Martin Jambor  <mjambor@suse.cz>
1992
1993         PR tree-optimization/46383
1994         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
1995         offsets.
1996         (compute_complex_ancestor_jump_func): Likewise.
1997         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
1998
1999 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
2000
2001         PR debug/46150
2002         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
2003         true if expr1->hash != expr2->hash.
2004
2005 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2006
2007         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
2008         diagnostics with lowercase letters.
2009         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
2010         lowercase letters.
2011         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
2012         diagnostic.
2013         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2014         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
2015         lowercase letters.
2016         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2017         Remove trailing ' ' from diagnostic.
2018         * config/avr/avr.c (print_operand_address): Start diagnostic with
2019         a lowercase letter and remove trailing '.'.
2020         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
2021         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
2022         with lowercase letters.  Use %' in diagnostics.  Remove trailing
2023         '.' from diagnostics.
2024         (bfin_handle_longcall_attribute): Use %' in diagnostic.
2025         * config/cris/cris.c (cris_split_movdx,
2026         cris_expand_pic_call_address): Start diagnostics with lowercase
2027         letters.
2028         (cris_asm_output_label_ref): Use %' in diagnostic.
2029         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
2030         letter.
2031         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
2032         lowercase letter.
2033         * config/darwin-c.c (version_as_macro): Start diagnostic with a
2034         lowercase letter.
2035         * config/darwin-driver.c (darwin_default_min_version): Use %' in
2036         diagnostic.
2037         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
2038         diagnostic.
2039         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2040         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
2041         diagnostics.
2042         * config/i386/i386.c (ix86_option_override_internal): Write
2043         diagnostic as a single sentence without trailing '.'.  Use %' in
2044         diagnostics.
2045         (ix86_function_sseregparm, classify_argument): Start diagnostics
2046         with lowercase letters.
2047         (ix86_expand_prologue): Use %' in diagnostic.
2048         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
2049         diagnostic.
2050         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
2051         lowercase letter.
2052         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
2053         diagnostic.
2054         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2055         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
2056         '`' in help text.
2057         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
2058         lowercase letter.
2059         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
2060         lowercase letters.
2061         * config/microblaze/microblaze.c (microblaze_handle_option):
2062         Remove trailing '.' from diagnostic.
2063         (print_operand): Start diagnostic with a lowercase letter.
2064         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
2065         lowercase letters.  Avoid '`' in diagnostics.
2066         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
2067         lowercase letters.  Avoid '`' in diagnostics.
2068         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
2069         lowercase letters.  Avoid '`' in diagnostics.
2070         * config/picochip/picochip.c (picochip_option_override,
2071         picochip_emit_save_register, picochip_function_arg,
2072         picochip_output_label, picochip_output_internal_label,
2073         picochip_asm_output_opcode, picochip_output_cbranch,
2074         picochip_output_compare, picochip_output_branch,
2075         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
2076         diagnostics. Start diagnostics with lowercase letters.  Use %' in
2077         diagnostics.
2078         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2079         "SPE" capitalization.  Start diagnostic with a lowercase letter.
2080         (rs6000_handle_option): Start diagnostics with lowercase letters.
2081         (def_builtin): Remove trailing '.' from diagnostic.
2082         (rs6000_savres_routine_name): Start diagnostic with a lowercase
2083         letter.
2084         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
2085         diagnostic.
2086         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
2087         lowercase letter.
2088         * config/s390/s390.c (s390_option_override) Start diagnostics with
2089         lowercase letters.  Use %' in diagnostic.
2090         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
2091         lowercase letters.
2092         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
2093         diagnostic.
2094         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
2095         diagnostic.
2096         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
2097         diagnostic.
2098         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2099         * config/spu/spu.c (spu_option_override): Start diagnostics with
2100         lowercase letters.  Use %qs for quoting in diagnostics.
2101         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
2102         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
2103         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
2104         from diagnostic.
2105         * convert.c (convert_to_integer, convert_to_vector): Use %' in
2106         diagnostics.
2107         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
2108         letter and use "cannot" spelling.
2109         * expmed.c (extract_fixed_bit_field): Start diagnostic with
2110         lowercase letter and format as a single sentence without '.'.
2111         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
2112         Use %' in diagnostics.
2113         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2114         Use %' in diagnostics.
2115         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2116         Use %' in diagnostics.
2117         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
2118         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
2119         with lowercase letters and remove tailing '.' and '\n'.
2120         * lto-cgraph.c (input_profile_summary): Start diagnostic with
2121         lowercase letter and remove trailing '.'.
2122         (input_cgraph): Start diagnostics with lowercase letters and
2123         remove trailing '\n'.
2124         * opts.c (finish_options, common_handle_option): Start diagnostics
2125         with lowercase letters and remove trailing '.'.  Fix typo in
2126         diagnostic.
2127         * passes.c (position_pass): Start diagnostic with lowercase letter.
2128         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
2129         register_callback, try_init_one_plugin): Start diagnostics with
2130         lowercase letters.
2131         * reload1.c (spill_failure): Use %' in diagnostic.
2132         (gen_reload): Start diagnostic with a lowercase letter.
2133         * stor-layout.c (place_field): Start diagnostic with a lowercase
2134         letter.
2135         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
2136         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
2137         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
2138         Start diagnostics with lowercase letters, remove trailing '.' and
2139         use %' in diagnostics.
2140         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
2141         (verify_ssa): Don't split diagnostic across two error calls.
2142         Spell out "number" and use %' in diagnostic.
2143         * value-prof.c (visit_hist, check_counter): Start diagnostics with
2144         lowercase letters.
2145
2146 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
2147
2148         PR middle-end/46419
2149         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
2150         (_mm_cvtpu16_ps): Ditto.
2151
2152 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2153
2154         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
2155         warn_larger_than, larger_than_size, warn_frame_larger_than,
2156         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
2157         default_visibility, flag_tls_default): New Variable declarations.
2158         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
2159         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
2160         (v): Declare as Common and document here.
2161         * flags.h (default_visibility, flag_generate_lto,
2162         warn_larger_than, larger_than_size, warn_frame_larger_than,
2163         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
2164         flag_shlib, flag_excess_precision_cmdline): Remove.
2165         (set_Wstrict_aliasing): Update prototype.
2166         * gcc.c (verbose_flag): Remove.
2167         (driver_handle_option): Add diagnostic_context parameter.  Don't
2168         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
2169         incrementing it.
2170         * opts-common.c (handle_option): Pass dc to handler.
2171         * opts.c (warn_larger_than, larger_than_size,
2172         warn_frame_larger_than, frame_larger_than_size,
2173         default_visibility): Remove.
2174         (common_handle_option): Add diagnostic_context parameter.
2175         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
2176         gcc_options parameters.
2177         (lang_handle_option, target_handle_option, read_cmdline_options,
2178         decode_options): Add diagnostic_context parameters.
2179         (finish_options): Access option state through opts pointer where
2180         possible.
2181         (common_handle_option): Access option state through opts pointer
2182         where possible.  Do not set local static variable verbose.  Do not
2183         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
2184         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
2185         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
2186         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
2187         OPT_fwhopr_.  Do not explicitly set .opt file variables for
2188         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
2189         (set_Wstrict_aliasing): Add gcc_options parameter.
2190         * opts.h (struct cl_option_handler_func): Add diagnostic_context
2191         parameter to handler.
2192         (decode_options): Add diagnostic_context parameter.
2193         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
2194         asm_file_name, flag_generate_lto, flag_gen_aux_info,
2195         aux_info_file_name, flag_shlib, flag_tls_default,
2196         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
2197         (toplev_main): Pass global_dc to decode_options.
2198         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
2199         aux_info_file_name, asm_file_name): Remove.
2200         * tree.h (flag_tls_default): Remove.
2201
2202 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2203
2204         PR target/45986
2205         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
2206         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
2207
2208 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
2209
2210         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
2211         (x86_64-*-*): Likewise.
2212         * config/i386/cpuid.h: Define TBM bit.
2213         * config/i386/driver-i386.c (host_detect_local_cpu): Define
2214         and set has_tbm.
2215         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2216         isa_flag for TBM.
2217         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
2218         (OPTION_MASK_ISA_TBM_UNSET): New.
2219         (ix86_handle_option): Handle -mtbm.
2220         (isa_opts): Add -mtbm.
2221         (enum pta_flags): Add PTA_TBM.
2222         (ix86_option_override_internal): Add TBM support.
2223         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
2224         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
2225         (IX86_BUILTIN_BEXTRI64): Likewise.
2226         (bdesc_args): Add TBM intrinsics.
2227         (ix86_expand_builtin): Add TBM specific case.
2228         * config/i386/i386.h (TARGET_TBM): New for TBM.
2229         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
2230         (tbm_bextri_<mode>): Likewise.
2231         (*tbm_blcfill_<mode>): Likewise.
2232         (*tbm_blci_<mode>): Likewise.
2233         (*tbm_blcic_<mode>): Likewise.
2234         (*tbm_blcmsk_<mode>): Likewise.
2235         (*tbm_blcs_<mode>): Likewise.
2236         (*tbm_blsfill_<mode>): Likewise.
2237         (*tbm_blsic_<mode>): Likewise.
2238         (*tbm_t1mskc_<mode>): Likewise.
2239         (*tbm_tzmsk_<mode>): Likewise.
2240         * config/i386/i386.opt: Add -mtbm.
2241         * config/i386/tbmintrin.h (__bextri_u32): New.
2242         (__blcfill_u32): Likewise.
2243         (__blci_u32): Likewise.
2244         (__blcic_u32): Likewise.
2245         (__blcmsk_u32): Likewise.
2246         (__blcs_u32): Likewise.
2247         (__blsfill_u32): Likewise.
2248         (__blsic_u32): Likewise.
2249         (__t1mskc_u32): Likewise.
2250         (__tzmsk_u32): Likewise.
2251         (__bextri_u64): Likewise.
2252         (__blcfill_u64): Likewise.
2253         (__blci_u64): Likewise.
2254         (__blcic_u64): Likewise.
2255         (__blcmsk_u64): Likewise.
2256         (__blcs_u64): Likewise.
2257         (__blsfill_u64): Likewise.
2258         (__blsic_u64): Likewise.
2259         (__t1mskc_u64): Likewise.
2260         (__tzmsk_u64): Likewise.
2261         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
2262         * doc/invoke.texi: Document -mtbm.
2263         * doc/extend.texi: Document TBM built-in functions.
2264
2265 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
2266
2267         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
2268         (x86_64-*-*): Likewise.
2269         * config/i386/cpuid.h: Define BMI bit.
2270         * config/i386/driver-i386.c (host_detect_local_cpu): Define
2271         and set has_bmi.
2272         * config/i386/i386-c.c (ix86_target_macros_internal): Check
2273         isa_flag for BMI.
2274         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
2275         (OPTION_MASK_ISA_BMI_UNSET): New.
2276         (ix86_handle_option): Handle -mbmi.
2277         (isa_opts): Add -mbmi.
2278         (enum pta_flags): Add PTA_BMI.
2279         (ix86_option_override_internal): Add BMI support.
2280         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
2281         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
2282         (IX86_BUILTIN_BEXTR64): Likewise.
2283         (IX86_BUILTIN_CTZS): Likewise.
2284         (bdesc_args): Add BMI intrinsics.
2285         (ix86_expand_args_builtin): Add BMI specific cases.
2286         * config/i386/i386.h (TARGET_BMI): New for BMI.
2287         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2288         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
2289         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
2290         (UNSPEC_TZCNT): Likewise.
2291         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
2292         (bmi_andn_<mode>): New for BMI.
2293         (bmi_bextr_<mode>): Likewise.
2294         (bmi_blsi_<mode>): Likewise.
2295         (bmi_blsmsk_<mode>): Likewise.
2296         (bmi_blsr_<mode>): Likewise.
2297         * config/i386/i386.opt: Add -mbmi.
2298         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
2299         * config/i386/bmiintrin.h (__lzcnt_u16): New.
2300         (__tzcnt_u16): Likewise.
2301         (__andn_u32): Likewise.
2302         (__bextr_u32): Likewise.
2303         (__blsi_u32): Likewise.
2304         (__blsmsk_u32): Likewise.
2305         (__blsr_u32): Likewise.
2306         (__lzcnt_u32): Likewise.
2307         (__tzcnt_u32): Likewise.
2308         (__andn_u64): Likewise.
2309         (__bextr_u64): Likewise.
2310         (__blsi_u64): Likewise.
2311         (__blsmsk_u64): Likewise.
2312         (__blsr_u64): Likewise.
2313         (__lzcnt_u64): Likewise.
2314         (__tzcnt_u64): Likewise.
2315         * doc/invoke.texi: Document -mbmi and -mno-bmi.
2316         * doc/extend.texi: Document BMI built-in functions.
2317
2318 2010-11-10  Jan Hubicka  <jh@suse.cz>
2319
2320         PR tree-optimize/46228
2321         * doc/invoke.texi (comdat-sharing-probability): Document.
2322         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
2323         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
2324
2325 2010-11-10  Jan Hubicka  <jh@suse.cz>
2326
2327         PR tree-optimize/46228
2328         * cgraph.c (cgraph_propagate_frequency): Fix typo.
2329
2330 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
2331
2332         PR tree-optimization/46414
2333         * tree-inline.c (estimate_move_cost): Check preferred vector
2334         mode for vector type.
2335
2336 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2337
2338         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
2339
2340 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
2341
2342         PR tree-optimization/45971
2343         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
2344         for phi nodes analyzable by scev.
2345
2346 2010-11-10  Richard Guenther  <rguenther@suse.de>
2347
2348         PR tree-optimization/44964
2349         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
2350
2351 2010-11-10  Martin Jambor  <mjambor@suse.cz>
2352
2353         PR tree-optimization/46351
2354         PR tree-optimization/46377
2355         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
2356         aggregate bit-fields.
2357
2358 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2359
2360         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2361         * doc/tm.texi: Regenerate.
2362         * opts-common.c (tm.h): Don't include.
2363         (target_option_translations): Remove.
2364         (decode_cmdline_options_to_array): Don't handle translating options.
2365         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
2366         * config/darwin-driver.c: Don't condition includes on
2367         CROSS_DIRECTORY_STRUCTURE.
2368         (darwin_default_min_version): Make static.
2369         (darwin_driver_init): New.  Call darwin_default_min_version if not
2370         CROSS_DIRECTORY_STRUCTURE.
2371         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2372         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
2373         (ASM_SPEC): Add %{static}.
2374         (darwin_default_min_version): Don't declare.
2375         (darwin_driver_init): Declare.
2376         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
2377         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
2378         * config/darwin.opt (all_load, allowable_client,
2379         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
2380         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
2381         exported_symbols_list, filelist, findirect-virtual-calls,
2382         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
2383         framework, fterminated-vtables, gfull, gused, image_base, init,
2384         install_name, multi_module, multiply_defined,
2385         multiply_defined_unused, no_dead_strip_inits_and_terms,
2386         seg_addr_table, seg_addr_table_filename, segaddr,
2387         segs_read_only_addr, segs_read_write_addr, single_module,
2388         umbrella, unexported_symbols_list, weak_reference_mismatches,
2389         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
2390         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
2391         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
2392         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
2393         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
2394         (ASM_SPEC): Add %{static}.
2395         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2396         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2397         (DRIVER_SELF_SPECS): Handle options formerly in
2398         TARGET_OPTION_TRANSLATE_TABLE.
2399         * config/mep/mep.opt (mfar): New.
2400         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2401         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
2402         TARGET_OPTION_TRANSLATE_TABLE.
2403         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
2404         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2405         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
2406         ffix-and-continue, findirect-data): New.
2407         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2408         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
2409         (mnofpu): Define mask and use Report here.
2410
2411 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2412
2413         * config/s390/s390.c (s390_emit_prologue): Report the stack
2414         size if -fstack-usage is used.
2415
2416 2010-11-10  Richard Guenther  <rguenther@suse.de>
2417
2418         PR tree-optimization/46398
2419         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
2420
2421 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
2422
2423         PR target/44760
2424         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
2425         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
2426         GP_REG_OR_PSEUDO_STRICT_P.
2427         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
2428         unexpected alternative.
2429         (*movsf_internal): Likewise.
2430         (indirect_jump): Replace call to non-existant function with call to
2431         internal_error.
2432         (tablejump): Likewise.
2433         * config/iq2000/iq2000.c: Include df.h .
2434         (iq2000_function_arg_advance): Use CONST_CAST2.
2435         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
2436         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
2437         a non-zero function address.
2438         (iq2000_initial_elimination_offset): Add gcc_unreachable for
2439         unexpected value of FROM.
2440         (symbolic_expression_p): Delete.
2441         (iq2000_function_value): Constify func.
2442         (expand_one_builtin): Use expand_normal.
2443         (iq2000_print_operand): Don't print VALUE if calculating it failed.
2444
2445         PR rtl-optimization/44764
2446         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
2447
2448         PR target/46407
2449         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
2450         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
2451         with ATTRIBUTE_UNUSED.
2452         (valid_psw_flag): Constify parameter which.
2453         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
2454
2455         PR target/46415
2456         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
2457         (mmix_dbx_register_number): Likewise.
2458         * config/mmix/mmix.c: Include df.h .
2459         (mmix_local_alignment): Change argument basic_align and return type
2460         to unsigned.
2461         (mmix_dbx_register_number): Change argument and return type to
2462         unsigned.
2463         (mmix_expand_prologue): Use add_reg_note.
2464
2465         PR target/46417
2466         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
2467         (spu_split_store): Use aform.
2468         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
2469
2470 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2471
2472         PR/46268
2473         * doc/gty.texi (GTY Options): Clarify that variable_size produces
2474         allocators taking size in bytes, compare with length option.  Add
2475         size calculation example.
2476         (Invoking the garbage collector): Ensure that sentences are
2477         followed by two spaces.  Describe that pointer fields must be
2478         initialized at ggc_collect call.
2479         (Troubleshooting): New section.
2480
2481 2010-11-09  Jan Hubicka  <jh@suse.cz>
2482
2483         PR tree-optimization/40436
2484         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
2485         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
2486         normal instructions; be sure bultin is not implemented in this file;
2487         compute non-zero return cost.
2488         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
2489         * tree-inline.h (eni_weights_d): Add return cost.
2490
2491 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
2492
2493         * c-parser.c (c_parser_struct_declaration): Handle declaration
2494         specifiers followed by CPP_CLOSE_BRACE.
2495
2496 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2497
2498         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
2499         split occurs before reload, and we allocate memory at the time of
2500         the split, not during expansion.  Add attributes.
2501         (floatsi<mode>2_lfiwax_mem): Ditto.
2502         (floatunssi<mode>2_lfiwzx): Ditto.
2503         (floatunssi<mode>2_lfiwzx_mem): Ditto.
2504         (floatsidf2): Ditto.
2505         (floatunssisf2): Ditto.
2506         (floatunssidf2): Ditto.
2507         (fix_trunc<mode>si2): Ditto.
2508         (fix_trunc<mode>si2_stfiwx): Ditto.
2509         (fix_trunc<mode>si2_internal): Ditto.
2510         (fix_trunc<mode>si2): Ditto.
2511         (fix_trunc<mode>di2): Ditto.
2512         (fixuns_trunc<mode>si2_stfiwx): Ditto.
2513         (floatsisf2): Ditto.
2514         (floatdidf2_mem): Ditto.
2515         (floatunsdidf2_mem): Ditto.
2516         (floatunsdidf2): Ditto.
2517         (floatdisf2_internal1): Ditto.
2518         (floatdisf2_mem): Ditto.
2519         (floatunsdisf2_mem): Ditto.
2520         (floatsi<mode>2_lfiwax_mem2): Delete.
2521         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2522         (fix_trunc<mode>si2_mem): Ditto.
2523         (fixuns_trunc<mode>si2_mem): Ditto.
2524         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
2525         type operations to reduce copying the values to multiple memory slots.
2526         (roundu32<mode>2_fprs): Ditto.
2527
2528         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
2529         PRE_INC, PRE_DEC, PRE_MODIFY.
2530         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
2531
2532         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
2533         Delete prototype.
2534
2535 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
2536
2537         PR target/43808
2538         * cfgexpand.c (partition_stack_vars): Call
2539         update_alias_info_with_stack_vars unconditionally.
2540         (update_alias_info_with_stack_vars): Allow unused
2541         unreferenced vars when not optimizing.
2542
2543 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
2544
2545         PR tree-optimization/46036
2546         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
2547         add_to_dst_predicate_list.
2548
2549 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
2550
2551         PR debug/46171
2552         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
2553         earlier.
2554         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
2555         argument, call dead_debug_reset when adding REG_UNUSED note.
2556         (dead_debug_reset): New function.
2557         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
2558         df_create_unused_note callers.
2559
2560 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
2561
2562         * config/fr30/fr30.c: Include "df.h".
2563
2564 2010-11-09  Richard Guenther  <rguenther@suse.de>
2565
2566         PR tree-optimization/46355
2567         * tree-loop-distribution.c (tree_loop_distribution): Do not
2568         distribute loops without a single exit.
2569
2570 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2571
2572         PR rtl-optimization/46237
2573         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
2574         saved hard regs if they might get partially clobbered.
2575
2576 2010-11-09  Paul Koning  <ni1d@arrl.net>
2577
2578         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
2579
2580 2010-11-09  Richard Guenther  <rguenther@suse.de>
2581
2582         PR tree-optimization/46177
2583         * tree-loop-distribution.c (prop_phis): Remove.
2584         (generate_builtin): Re-use the old loop exit edge to avoid
2585         needing to update PHI nodes.
2586
2587 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
2588
2589         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
2590         type of args_size to unsigned HOST_WIDE_INT.
2591
2592         PR target/44755
2593         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
2594         * config/t-pnt16-warn: New file.
2595         * config/picochip/picochip.c (picochip_emit_stack_allocate):
2596         Use add_reg_note.
2597         (picochip_emit_save_register): Likewise.
2598         (picochip_emit_restore_register): Remove variable insn.
2599         (picochip_legitimize_address): Don't use C++ style comments.
2600         (picochip_legitimize_reload_address): Likewise.
2601         (reorder_var_tracking_notes): Remove variable vliw_start.
2602         (picochip_reorg): Cast first arguemnt to emit_note_after to
2603         enum insn_note.
2604         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
2605         (picochip_expand_builtin_3op): Likewise.
2606         (picochip_expand_builtin_2opvoid): Likewise.
2607         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
2608         (picochip_expand_array_testport): Likewise.
2609         (picochip_init_builtins): Remove unused variables.
2610         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
2611         to unsigned long, and output it as such.
2612         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2613         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
2614         (schedType): Cast result of picochip_schedule_type to
2615         enum attr_schedType.
2616
2617         PR target/44759
2618         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
2619         conditional to type of S.
2620         (mn10300_function_arg): Remove unused variable align.
2621         (mn10300_arg_partial_bytes): Likewise.
2622         * config/mn10300/mn10300.md (attribute cpu): Cast value to
2623         enum attr_cpu.
2624
2625 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
2626
2627         PR bootstrap/46392
2628         * gengtype-parse.c (type): Call get_input_file_name to get file name.
2629
2630 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2631
2632         * tree.h (contains_placeholder_p): Fix comment.
2633         (type_contains_placeholder_p): Adjust comment.
2634         * tree.c (contains_placeholder_p): Fix comment.
2635         (type_contains_placeholder_1): Do not recurse on pointed-to types and
2636         adjust comment.
2637         (type_contains_placeholder_p): Add comment.
2638
2639 2010-11-09  Paul Koning  <ni1d@arrl.net>
2640
2641         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
2642         output of byte values.
2643
2644 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
2645
2646         PR middle-end/46360
2647         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
2648         not in SSA mode.
2649
2650 2010-11-09  Richard Guenther  <rguenther@suse.de>
2651
2652         PR middle-end/46221
2653         * varasm.c (compute_visible_aliases): New function.
2654         (remove_unreachable_alias_pairs): Aliases make a target available
2655         even though we reclaimed the cgraph node.
2656         (finish_aliases_1): Likewise.
2657         * Makefile.in (varasm.o): Add pointer-set.h dependency.
2658
2659 2010-11-09  Nick Clifton  <nickc@redhat.com>
2660
2661         * config/mn10300/mn10300-modes.def: New file.
2662
2663 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
2664             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2665
2666         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
2667         (plugin_files, get_file_basename, get_file_realbasename)
2668         (get_file_langdir, error_at_line, gt_files, this_file)
2669         (system_h_file, read_input_list, create_field_all)
2670         (get_file_srcdir_relative_path, get_file_basename)
2671         (get_file_langdir, get_file_gtfilename)
2672         (get_output_file_with_visibility, get_output_file_name)
2673         (struct flist, put_mangled_filename, walk_type)
2674         (put_mangled_filename, finish_root_table, write_roots): Use
2675         input_file-s.
2676         (lang_dir_names, num_lang_dirs): Remove static.
2677         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
2678         (main): Use input_file-s.
2679
2680         * gengtype.h: (struct input_file_st, input_file): New type.
2681         (struct fileloc): Use it.
2682         (gt_files, num_gt_files, this_file, system_h_file)
2683         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
2684         (get_input_file_name): New function.
2685         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
2686         use input_file.
2687         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
2688         (get_output_file_name): Ditto.
2689
2690         * gengtype-lex.l (yybegin): Use input_file.
2691
2692         * gengtype-parse.c (parse_error): Use input_file.
2693
2694 2010-11-08  Xinliang David Li  <davidxl@google.com>
2695
2696         PR tree-optimization/46316
2697         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
2698         * double-int.h (double_int_mul_with_sign): New function.
2699         * double-int.c (double_int_mul_with_sign): New function.
2700
2701 2010-11-08  Paul Koning  <ni1d@arrl.net>
2702
2703         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
2704
2705 2010-11-08  Paul Koning  <ni1d@arrl.net>
2706
2707         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
2708
2709 2010-11-08  Paul Koning  <ni1d@arrl.net>
2710
2711         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
2712         to 8 bits.
2713
2714 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2715
2716         PR target/46378
2717         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2718         turn on ISA 2.04 rounding instructions for power5.
2719
2720         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
2721         not ISA 2.02.
2722
2723         PR target/45585
2724         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
2725         in FPR registers.
2726         (movdi_low_st): Ditto.
2727
2728 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
2729             Richard Henderson  <rth@redhat.com>
2730
2731         PR target/44758
2732         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
2733         (attribute acc_group): Cast value to enum attr_acc_group.
2734         (*movdi_nodouble+6): Use gen_int_mode.
2735         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
2736         if RTX_CODE is defined or not.
2737         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
2738         struct frv_io.
2739         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
2740         (frv_frame_access, frv_expand_prologue): Remove unused variables.
2741         (frv_expand_block_clear): Likewise.
2742         (frv_trampoline_init): Use LCT_NORMAL.
2743         (struct frv_packet_group): New struct, broken out of type of
2744         frv_packet.
2745         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
2746         use cast in loop counter increment.
2747         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
2748         assigning to io->type.
2749         (bdesc_set): Use rtx_code UNKNOWN in initializer.
2750         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
2751         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
2752         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
2753         (frv_read_argument): Use expand_normal.
2754
2755         PR target/44757
2756         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
2757         lm32_legitimate_constant_p.
2758         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2759         * config/lm32/lm32.c (gen_int_relational): Make new block for
2760         LE / LT / LEU / LTU case.  Declare variables at start of block.
2761         (lm32_block_move_inline): Use XALLOCAVEC.
2762
2763 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2764
2765         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
2766
2767 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
2768
2769         * gengtype (get_output_file_for_structure): Ensure type is union
2770         or struct.
2771         (write_splay_tree_allocator_def): Use
2772         get_output_file_with_visibility.
2773
2774 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2775
2776         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
2777         to defined values in case of an error.
2778         (s390_option_override): Skip further processing if the -march
2779         parameter wasn't recognized.
2780
2781 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
2782
2783         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
2784         assert that REG is a hard register number before using it as an index.
2785
2786         PR bootstrap/46358
2787         * config/i386/i386.c (ix86_expand_split_stack_prologue):
2788         Avoid warnings when HOST_WIDE_INT is 32 bit.
2789
2790 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
2791
2792         PR target/46208
2793         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
2794         (sparc_promote_prototypes): Likewise.
2795         (sparc_promote_function_mode): Promote in 32-bit mode as well.
2796         (sparc_return_in_memory): Remove superfluous parentheses.
2797         (sparc_struct_value_rtx): Fix long lines.
2798         (sparc_function_value_1): Promote in 32-bit mode as well.
2799
2800 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
2801
2802         PR rtl-optimization/45352
2803         * sel-sched.c (find_best_expr): Do not set pneed_stall when
2804         the variable_issue hook is not implemented.
2805         (fill_insns): Remove dead variable stall_iterations.
2806         (init_seqno_1): Force EBB start for resetting sched cycles on any
2807         successor blocks of the rescheduled region.
2808         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
2809         (reset_sched_cycles_in_current_ebb): Add debug printing.
2810         New variable issued_insns.  Advance state when we have issued
2811         issue_rate insns.
2812
2813 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
2814
2815         * gengtype (main): Get here's position using POS_HERE macro for
2816         do*typedef calls.
2817
2818 2010-11-07  Ian Lance Taylor  <iant@google.com>
2819
2820         PR target/46089
2821         * config/i386/i386.c (split_stack_fn_large): New static variable.
2822         (ix86_expand_split_stack_prologue): Handle large model.
2823
2824 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
2825
2826         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
2827         all possible addressing modes.
2828
2829 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
2830
2831         PR tree-optimization/46346
2832         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
2833
2834 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
2835
2836         * config/mips/mips.c: Revert previous patch.
2837         * config/mips/mips.md: Likewise.
2838
2839 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
2840
2841         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
2842         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
2843         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
2844         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
2845         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
2846         to use FMA.
2847         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
2848         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
2849         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
2850         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
2851
2852 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
2853
2854         PR c/43384
2855         * c-decl.c (lookup_label): Labels can only be referenced in a
2856         function's scope.
2857         (store_parm_decls_oldstyle): Skip erroneous parameters.
2858
2859 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
2860
2861         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2862         LIBCALL_VALUE): Remove macros.
2863         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2864         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2865         (fr30_function_value_regno_p, fr30_function_value,
2866         fr30_libcall_value): New functions.
2867
2868 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
2869
2870         PR middle-end/46314
2871         * target.def (generate_internal_label): New asm_out hook.
2872         * output.h (default_generate_internal_label): Declare.
2873         * varasm.c (default_generate_internal_label): Define.
2874
2875 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
2876
2877         PR target/44981
2878         * doc/extend.tex (format): Document NSString extension.
2879         (format_arg): Likewise.
2880         (Darwin Format Checks): New section.
2881         * doc/tm.texi: Document string object hooks (generated).
2882         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
2883         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2884         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2885         * target.def (objc_construct_string_object): Rename, amend
2886         documentation.
2887         (string_object_ref_type_p): New hook.
2888         (check_string_object_format_arg): New hook.
2889         * c-parser.c (c_parser_attributes): Allow objective-c class names as
2890         attribute identifiers.
2891         * config/darwin-c.c (darwin_cfstring_ref_p): New.
2892         (darwin_check_cfstring_format_arg): New.
2893         (darwin_additional_format_types): New.
2894         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
2895         (darwin_check_cfstring_format_arg): New.
2896         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
2897         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2898         (TARGET_N_FORMAT_TYPES): New.
2899         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2900
2901 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2902             Pascal Obry  <obry@adacore.com>
2903
2904         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
2905         in 64-bit mode and 17 otherwise.
2906
2907 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2908
2909         PR debug/45939
2910         * var-tracking.c (emit_note_insn_var_location): Make sure that
2911         call related var location notes come before the normal ones.
2912
2913 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
2914
2915         PR target/46326
2916         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
2917         in the last change.
2918
2919 2010-11-05  Ian Lance Taylor  <iant@google.com>
2920
2921         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
2922
2923 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
2924
2925         PR c/44772
2926         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
2927         pointer_set_contains if DECL_NAME is NULL.
2928
2929 2010-11-05  Ian Lance Taylor  <iant@google.com>
2930
2931         PR target/46084
2932         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
2933         request enough additional space for alignment, and force alignment.
2934
2935 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
2936
2937         * config/i386/i386.c (legitimate_pic_address_disp_p):
2938         Handle UNSPEC_PCREL.
2939         (ix86_legitimate_address_p): Likewise.
2940         (legitimize_pic_address): Likewise.
2941         (output_pic_addr_const): Likewise.
2942         (ix86_delegitimize_address): Likewise.
2943         (ix86_find_base_term): Likewise.
2944         (memory_address_length): Likewise.
2945         (x86_output_mi_thunk): Handle special case x64
2946         for non local binding.
2947         * config/i386/i386.md (UNSPEC_PCREL): New.
2948         * config/i386/winnt.c (i386_pe_binds_local_p):
2949         Allow weak symbol for x64 windows with non-local binding.
2950
2951 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
2952
2953         PR target/45670
2954         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
2955         instead of EXPAND_NORMAL for base expansion.
2956
2957 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
2958
2959         * config.gcc: Support --with-fpmath=avx for x86.
2960         * config/i386/avxmath.h: New.
2961         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
2962
2963 2010-11-05  Ian Lance Taylor  <iant@google.com>
2964
2965         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
2966         * gengtype.c (walk_type): Don't recognize descbits option.
2967
2968 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
2969
2970         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
2971         WORD_SWITCH_TAKES_ARG): Remove.
2972         * doc/options.texi (Args): Document.
2973         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
2974         * doc/tm.texi: Regenerate.
2975         * opt-functions.awk (switch_flags): Handle Args.
2976         * opts-common.c: Update comment on tm.h include.
2977         (decode_cmdline_option): Handle options with multiple arguments.
2978         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
2979         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
2980         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2981         CL_COMMON): Update values.
2982         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
2983         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
2984         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
2985         sectobjectsymbols, sectorder, segcreate, segprot): New.
2986
2987 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
2988             Uros Bizjak  <ubizjak@gmail.com>
2989
2990         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
2991         256bit AVX register is used.
2992         (ix86_expand_vector_move_misalign): Likewise.
2993         (ix86_expand_vector_move): Replace use_avx256_p with
2994         VALID_AVX256_REG_MODE.
2995
2996 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
2997
2998          PR target/44750
2999         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
3000         change.  Set $@-warn.o to -Wno-error.
3001
3002         PR bootstrap/44756
3003         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
3004         comparing it to a signed value.
3005
3006         PR middle-end/44766
3007         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
3008         PR bootstrap/44770
3009         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
3010         to i.
3011
3012         PR target/44754
3013         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
3014         (m32c_function_arg).  Add comma between arguments two and three.
3015         (m32c_promote_prototypes): Remove declaration.
3016         (current_function_special_page_vector): Likewise.
3017         (m32c_regno_reg_class): Change return type to enum reg_class.
3018         (m32c_pushm_popm): Use add_reg_note.
3019         (m32c_push_rounding): Change return type to unsigned int.
3020         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
3021         enum reload_type.
3022         (m32c_insert_attributes): Constify variable name.
3023         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
3024         (m32c_prepare_shift): Remove variable lref.
3025         (m32c_expand_movcc): Remove variable cmp.
3026         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
3027         (m32c_compare_redundant): Remove variable op2.
3028         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
3029         (m32c_pragma_memregs): Assign the number to target_memregs.
3030         (m32c_pragma_address): Remove variable var_str.
3031         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
3032         enum reg_class.
3033         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
3034         * config/m32c/bitops.md (andsi3): Add default case to switch.
3035         (iorsi3, xorsi3): Likewise.
3036         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
3037         * config/m32c/jump.md (call, call_value): Likewise.
3038         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
3039         (m32c_regno_reg_class): Likewise.
3040         (current_function_special_page_vector): Declare.
3041
3042 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
3043
3044         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
3045
3046         PR tree-optimization/46099
3047         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
3048         if it is NULL and uid wasn't found in the hash table.  Just fold the
3049         result if it is NULL otherwise.  Insert other potentially needed
3050         stmts right before current stmt instead of on the entry edge.
3051         (struct elv_data): Add gsi and reset fields.
3052         (eliminate_local_variables_1): Adjust caller.  If take_address_of
3053         failed for debug stmt, set dta->reset and return.
3054         (eliminate_local_variables_stmt): Change STMT argument for GSI,
3055         pass GSI through to the callback, handle resetting of debug stmts.
3056         (eliminate_local_variables): Adjust caller.  Process debug stmts
3057         in second phase.
3058
3059         PR middle-end/43690
3060         * gimplify.c (gimplify_asm_expr): If a "m" input is a
3061         {pre,post}{in,de}crement, fail.
3062
3063         PR debug/46307
3064         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
3065         * tree-pretty-print.c (dump_generic_node): Likewise.
3066         (op_code_prio): Likewise.
3067         * cfgexpand.c (expand_debug_expr): Likewise.
3068
3069 2010-11-04  Paul Koning  <ni1d@arrl.net>
3070
3071         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
3072         constraints.
3073
3074 2010-11-04  Chao-ying Fu  <fu@mips.com>
3075
3076         * configure.ac: Test assembler support for DSP Rev1 mult.
3077         * configure: Regenerate.
3078         * config.in: Regenerate.
3079         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
3080         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
3081         (CODE_FOR_mips_multu): New define.
3082         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
3083         dspr2_32 to dsp_32.
3084         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
3085         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
3086         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
3087         New define_expand patterns.
3088         * config/mips/constraints.md (ka): Update the constraint to test
3089         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
3090         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
3091         mips_multu): Delete.
3092         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
3093         Change target constraint to "ka".
3094         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
3095         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
3096         Emit the accumulator destination when ISA_HAS_DSP_MULT.
3097         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
3098         Emit the accumulator destination when ISA_HAS_DSP_MULT.
3099         (<u>maddsidi4): Likewise.
3100         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
3101         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
3102
3103 2010-11-04  Paul Koning  <ni1d@arrl.net>
3104
3105         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
3106
3107 2010-11-04  Paul Koning  <ni1d@arrl.net>
3108
3109         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
3110
3111 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
3112
3113         Fixed using the Objective-C 2.0 dot-syntax with class names.
3114         * c-parser.c (c_parser_next_token_starts_declspecs): In
3115         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
3116         (c_parser_next_token_starts_declaration): Same.
3117         (c_parser_postfix_expression): Parse the Objective-C 2.0
3118         dot-syntax with a class name.
3119
3120 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
3121
3122         * final.c (compute_alignments): Compute/free loop info all the time.
3123         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
3124         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
3125         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
3126         * config/rs6000/rs6000.c (cfgloop.h): Include.
3127         (can_override_loop_align): New.
3128         (rs6000_option_override_internal): Set it.
3129         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
3130         (rs6000_loop_align): New function.
3131         (rs6000_loop_align_max_skip): Likewise.
3132
3133 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3134
3135         PR driver/45703
3136         * collect2.c (main): Print --help output to stdout.  Do not
3137         exit right away, so ld --help is appended.  Add empty lines
3138         to separate output suitably.
3139
3140 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
3141
3142         PR tree-optimization/46233
3143         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
3144         after calling analyze_function, not before.
3145
3146         PR target/46234
3147         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
3148         instead of build_va_arg_indirect_ref.
3149         * config/spu/spu.c (spu_va_start): Likewise.
3150         * config/s390/s390.c (s390_va_start): Likewise.
3151
3152 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
3153
3154         PR middle-end/46292
3155         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
3156         if the innermode is not vector mode, determine the mode of a subreg
3157         by using mode_for_size of inner_size.
3158
3159 2010-11-04  Richard Guenther  <rguenther@suse.de>
3160
3161         PR rtl-optimization/46183
3162         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
3163         (execute_rtl_pre): Likewise.
3164         (execute_rtl_hoist): Likewise.
3165
3166 2010-11-04  Richard Guenther  <rguenther@suse.de>
3167
3168         PR tree-optimization/46068
3169         * ipa-split.c (consider_split): Remove gcc_unreachable.
3170
3171 2010-11-04  Richard Guenther  <rguenther@suse.de>
3172
3173         * tree-nested.c (build_addr): Use build_fold_addr_expr.
3174
3175 2010-11-04  Richard Guenther  <rguenther@suse.de>
3176
3177         PR tree-optimization/45991
3178         * gimplify.c (force_gimple_operand_1): Use the provded test
3179         function in the initial test.
3180
3181 2010-11-04  Jeff Law  <law@redhat.com>
3182
3183         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
3184         of readonly memory equivalances for const/pure calls.
3185
3186 2010-11-04  Richard Guenther  <rguenther@suse.de>
3187
3188         PR tree-optimization/45733
3189         * tree-vect-stmts.c (reverse_vec_elements): Honor the
3190         permute builtins function return type.
3191
3192 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
3193
3194         PR middle-end/44765
3195         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
3196         as an index, check it is not INVALID_REGNUM.
3197
3198         PR bootstrap/44756
3199         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
3200         unsignedp.
3201         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
3202
3203         PR bootstrap/44756
3204         * function.c (thread_prologue_and_epilogue_insns): Add
3205         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
3206
3207         PR bootstrap/44756
3208         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
3209
3210         PR target/44750
3211         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
3212         (pdp11_preferred_reload_class): Rename class to rclass.
3213         (pdp11_preferred_output_reload_class): Likewise.
3214         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
3215         ALL_COMPILERFLAGS .
3216         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
3217
3218         PR bootstrap/44756
3219         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
3220         iteration variables to enum machine_mode.
3221
3222         PR target/44751
3223         * config/h8300/h8300.c: Include df.h.
3224         (push, pop): Use add_reg_note.
3225         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
3226         (compute_a_shift_cc): Likewise.
3227         (expand_a_shift): Argument code has type enum rtx_code.
3228         (struct shift_insn): Member cc_valid has type enum attr_cc.
3229         (struct shift_info) <cc_inline, cc_special>: Likewise.
3230         enum attr_cc.
3231         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
3232         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
3233
3234 2010-11-04  Ira Rosen  <irar@il.ibm.com>
3235
3236         PR tree-optimization/46213
3237         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
3238         MINUS_EXPR only if the first operand is reduction operand.
3239
3240 2010-11-04  Richard Guenther  <rguenther@suse.de>
3241             Richard Henderson  <rth@redhat.com>
3242
3243         * tree.def (FMA_EXPR): New tree code.
3244         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
3245         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
3246         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
3247         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
3248         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3249         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
3250         (execute_optimize_widening_mul): Call it.  Reorganize to allow
3251         dead stmt removal.  Move TODO flags ...
3252         (pass_optimize_widening_mul): ... here.
3253         * flag-types.h (enum fp_contract_mode): New enum.
3254         * common.opt (flag_fp_contract_mode): New variable.
3255         (-ffp-contract): New option.
3256         * opts.c (common_handle_option): Handle it.
3257         * doc/invoke.texi (-ffp-contract): Document.
3258         * tree.h (fold_fma): Declare.
3259         * builtins.c (fold_fma): New function.
3260         (fold_builtin_fma): Likewise.
3261         (fold_builtin_3): Call it for fma.
3262         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
3263         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
3264         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
3265         New expanders.
3266         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
3267         named patterns.
3268         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
3269         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
3270         (fms_optab, fnma_optab, fnms_optab): New defines.
3271         * gimplify.c (gimplify_expr): Handle binary truth expressions
3272         explicitly.  Handle FMA_EXPR.
3273         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
3274         operations.
3275
3276 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
3277             Richard Guenther  <rguenther@suse.de>
3278
3279         * passes.c (init_optimization_passes): Move veclower after SSA.
3280         * tree-vect-generic.c (uniform_vector_p): New function.
3281         (expand_vector_operations_1): Handle conversion.
3282         (pass_lower_vector): Update SSA form.
3283
3284 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
3285
3286         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
3287         plugin capabilities.
3288         * configure: Regenerate.
3289
3290 2010-11-03  Xinliang David Li  <davidxl@google.com>
3291
3292         PR target/46200
3293         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
3294         Adjust cbase if the use stmt is after iv update.
3295
3296 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3297
3298         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
3299
3300 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3301
3302         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
3303         comment.  Pass true to the last argument of output_stack_adjust.
3304
3305 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
3306
3307         PR target/46295
3308         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
3309         if 256bit AVX register is used.
3310
3311 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3312
3313         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
3314         xsmindp/xsmaxdp on VSX for single precision min/max.
3315         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
3316         (vsx_sminsf3): Ditto.
3317
3318 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3319
3320         * combine.c (try_combine): Fix formatting issues, improve comments and
3321         fix a pasto.
3322
3323 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3324
3325         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
3326         of the result before building binary expressions.
3327
3328 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
3329
3330         PR rtl-optimization/45865
3331         * Makefile.in (df-problems.o): Revert revision 164552.
3332         * basic-block.h (enum bb_flags): Likewise.
3333         * cfgcleanup.c (block_was_dirty): Likewise.
3334         (try_forward_edges): Likewise.
3335         (try_crossjump_bb): Likewise.
3336         (try_head_merge_bb): Likewise.
3337         (try_optimize_cfg): Likewise.
3338         (cleanup_cfg): Likewise.
3339         * df-core.c (df_set_bb_dirty): Likewise.
3340         * df-problems.c: Likewise.
3341         (df_simulate_find_uses): Likewise.
3342         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
3343         (find_memory, find_memory_store): Likewise.
3344         (can_move_insns_across): Likewise.
3345         * df.h (can_move_insns_across): Likewise.
3346         * ifcvt.c (find_memory): Likewise.
3347         (dead_or_predicable): Likewise.
3348
3349 2010-11-03  Richard Guenther  <rguenther@suse.de>
3350
3351         PR middle-end/46288
3352         * predict.c (strip_predict_hints): Simply DCE builtin expect if
3353         the result is unused.
3354
3355 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
3356
3357         PR tree-optimization/46009
3358         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
3359         cond_if_else_store_replacement if bb1 and bb2 have the same
3360         single successor.
3361         (cond_store_replacement): Use gimple_assign_single_p, don't
3362         check if rhs is SSA_NAME or invariant.  Call release_defs for
3363         assign.
3364         (cond_if_else_store_replacement): New function.
3365
3366 2010-11-03  Richard Guenther  <rguenther@suse.de>
3367
3368         * opts.c (finish_options): Properly check for all WHOPR
3369         flags before complaining about -flto-partition.
3370
3371 2010-11-04  Alan Modra  <amodra@gmail.com>
3372
3373         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
3374         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
3375         TARGET_SECURE_PLT.
3376         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
3377         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
3378         on input, "r" on output.
3379
3380 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3381
3382         Implemented -fobjc-std=objc1 flag.
3383         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
3384         option.
3385         * doc/standards.texi (Standards): Updated the section on
3386         Objective-C; mention support for Objective-C 2.0 features and the
3387         new -fstd-objc=objc1 flag to disable them.
3388
3389 2010-11-03  Richard Guenther  <rguenther@suse.de>
3390
3391         PR middle-end/46241
3392         * dwarf2out.c (scope_die_for): Properly detect global scope.
3393
3394 2010-11-03  Richard Guenther  <rguenther@suse.de>
3395
3396         PR tree-optimization/46190
3397         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3398         Properly compute peel iterations.
3399
3400 2010-11-03  Richard Guenther  <rguenther@suse.de>
3401
3402         PR tree-optimization/46286
3403         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
3404         re-allocated vector data.
3405
3406 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
3407
3408         PR target/46285
3409         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
3410         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
3411         is completed.
3412
3413 2010-11-03  Richard Guenther  <rguenther@suse.de>
3414
3415         PR tree-optimization/46217
3416         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
3417         flag matches.
3418         (execute_update_addresses_taken): Likewise.
3419
3420 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
3421
3422         PR bootstrap/44335
3423         * targhooks.c (targhook_words_big_endian): New function.
3424         (targhook_float_words_big_endian): Likewise.
3425         * targhooks.h (targhook_words_big_endian): Declare.
3426         (targhook_float_words_big_endian): Likewise.
3427         * target.def (words_big_endian, float_words_big_endian): New hooks.
3428
3429 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
3430
3431         PR tree-optimization/46165
3432         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
3433         a normal call into noreturn call.
3434
3435 2010-11-03  Richard Guenther  <rguenther@suse.de>
3436
3437         PR middle-end/46251
3438         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
3439         not INDIRECT_REFs.
3440
3441 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
3442
3443         PR tree-optimization/46107
3444         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
3445         if cfg_hook_duplicate_loop_to_header_edge failed.
3446
3447 2010-11-03  Ian Lance Taylor  <iant@google.com>
3448
3449         PR lto/46273
3450         * config.gcc: Don't set lto_binary_reader.
3451         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3452         (Configuration): Mention --disable-lto.  Remove --with-libelf
3453         paragraph.
3454
3455 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
3456
3457         PR debug/46252
3458         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
3459         prev_real_insn.
3460         * gcse.c (insert_insn_end_basic_block): Likewise.
3461
3462         PR rtl-optimization/46034
3463         PR rtl-optimization/46212
3464         PR rtl-optimization/46248
3465         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
3466         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
3467         before i0dest -> i0src substitution and pass 1 instead of 0 as last
3468         argument to subst on i2pat.
3469
3470 2010-11-02  Ian Lance Taylor  <iant@google.com>
3471
3472         * configure.ac: Use AC_SYS_LARGEFILE.
3473         * configure: Rebuild.
3474         * config.in: Rebuild.
3475
3476 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
3477
3478         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
3479         fold_convert.
3480         * c-typeck.c (build_function_call_vec): Likewise.
3481         * cfgexpand.c (expand_debug_expr): Likewise.
3482         * cgraphunit.c (assemble_thunk): Likewise.
3483         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
3484         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
3485         (fold_binary_loc, fold_ternary_loc): Likewise.
3486         * gimple-fold.c (get_symbol_constant_value): Likewise.
3487         * gimple-low.c (lower_builtin_setjmp): Likewise.
3488         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
3489         * gimplify.c (gimplify_init_constructor): Likewise.
3490         * lambda.h (build_linear_expr): Likewise.
3491         * omp-low.c (omp_reduction_init): Likewise.
3492         * tree-inline.c (remap_ssa_name): Likewise.
3493         * tree-object-size.c (compute_object_sizes): Likewise.
3494         * tree-sra.c (init_subtree_with_zero): Likewise.
3495         (sra_ipa_modify_assign): Likewise.
3496         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
3497         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
3498         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
3499         (undistribute_ops_list): Likewise.
3500         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
3501         * tree-vect-stmts.c (vectorizable_call): Likewise.
3502         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
3503         (build_zero_cst): Handle more cases directly.  Update comment.
3504
3505 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
3506
3507         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
3508         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
3509
3510         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
3511         and call ix86_split_call_vzeroupper instead of
3512         ix86_split_call_pop_vzeroupper.
3513         (*call_pop_1_vzeroupper): Likewise.
3514         (*sibcall_pop_1_vzeroupper): Likewise.
3515         (*call_value_pop_0_vzeroupper): Likewise.
3516         (*call_value_pop_1_vzeroupper): Likewise.
3517         (*sibcall_value_pop_1_vzeroupper): Likewise.
3518
3519 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
3520
3521         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
3522
3523 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
3524
3525         * basic-block.h (insert_insn_end_bb_new): Delete.
3526         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
3527
3528 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
3529             H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
3532         (ix86_split_call_pop_vzeroupper): Likewise.
3533
3534         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
3535         (ix86_expand_call): Conditionally decorate calls with
3536         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
3537         (ix86_split_call_vzeroupper): New.
3538         (ix86_split_call_pop_vzeroupper): Likewise.
3539
3540         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
3541         (*call_pop_0_vzeroupper): New insn_and_split pattern.
3542         (*call_pop_1_vzeroupper): Likewise.
3543         (*sibcall_pop_1_vzeroupper): Likewise.
3544         (*call_0_vzeroupper): Likewise.
3545         (*call_1_vzeroupper): Likewise.
3546         (*sibcall_1_vzeroupper): Likewise.
3547         (*call_1_rex64_vzeroupper): Likewise.
3548         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
3549         (*call_1_rex64_large_vzeroupper): Likewise.
3550         (*sibcall_1_rex64_vzeroupper): Likewise.
3551         (*call_value_pop_0_vzeroupper): Likewise.
3552         (*call_value_pop_1_vzeroupper): Likewise.
3553         (*sibcall_value_pop_1_vzeroupper): Likewise.
3554         (*call_value_0_vzeroupper): Likewise.
3555         (*call_value_0_rex64_vzeroupper): Likewise.
3556         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
3557         (*call_value_1_vzeroupper): Likewise.
3558         (*sibcall_value_1_vzeroupper): Likewise.
3559         (*call_value_1_rex64_vzeroupper): Likewise.
3560         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
3561         (*call_value_1_rex64_large_vzeroupper): Likewise.
3562         (*sibcall_value_1_rex64_vzeroupper): Likewise.
3563
3564 2010-11-02  Ian Lance Taylor  <iant@google.com>
3565
3566         PR lto/46273
3567         * config.gcc: Revert last patch: set lto_binary_reader.
3568
3569 2010-11-02  Richard Guenther  <rguenther@suse.de>
3570
3571         PR tree-optimization/46149
3572         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
3573         non-indirect MEM_REF variants.
3574
3575 2010-11-02  Richard Guenther  <rguenther@suse.de>
3576
3577         PR tree-optimization/46216
3578         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3579         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
3580
3581 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3582
3583         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
3584         (*-*-osf*): Likewise.
3585         * configure: Regenerate.
3586
3587 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
3588
3589         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
3590         for Intel Core 2 and Core i7.
3591
3592 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
3593
3594         Model decoder of Core 2/i7 for multipass scheduling.
3595
3596         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
3597         New type to hold target-specific data for multipass scheduling.
3598         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3599         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
3600         Core 2/i7.
3601         (core2i7_secondary_decoder_max_insn_size,)
3602         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
3603         New static variables.
3604         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
3605         ([_]ix86_first_cycle_multipass_data): New static variable.
3606         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
3607         Implement targetm.sched hooks.
3608         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
3609         of ...
3610         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
3611         Implement new targetm.sched hooks.
3612         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
3613         targetm.sched hook to install multipass scheduling hooks on demand.
3614
3615         * doc/tm.texi.in: Document new targetm.sched hooks.
3616         * doc/tm.texi: Regenerate.
3617
3618         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3619         (first_cycle_multipass_data_t): New typedef.
3620         (struct choice_entry: target_data): New field.
3621         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
3622         to allow target model restrictions not represented in DFA.
3623         (choose_ready, schedule_block): Update.
3624         (sched_extend_ready_list, sched_finish_ready_list): Call new target
3625         hooks to initialize target-specific data for multipass scheduling.
3626         * sched-int.h (max_issue): Update declaration.
3627         * sel-sched.c (choose_best_insn): Update.
3628         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
3629         (first_cycle_multipass_{init, fini}): Define and document new
3630         targetm.sched hooks.
3631
3632 2010-11-02  Richard Guenther  <rguenther@suse.de>
3633
3634         PR tree-optimization/46184
3635         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
3636         input vector type from the reduction operand as well.
3637
3638 2010-11-02  Richard Guenther  <rguenther@suse.de>
3639
3640         PR tree-optimization/46177
3641         * tree-loop-distribution.c (prop_phis): Use
3642         mark_virtual_phi_result_for_renaming.
3643
3644 2010-11-02  Martin Jambor  <mjambor@suse.cz>
3645
3646         PR middle-end/46120
3647         * tree.c (get_binfo_at_offset): Bail out on artificial
3648         fields.  Identify primary bases according to their offsets.
3649
3650 2010-11-02  Martin Jambor  <mjambor@suse.cz>
3651
3652         PR tree-optimization/45875
3653         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
3654         (gimple_get_relevant_ref_binfo): Detect primary bases according to
3655         their field offset.
3656
3657 2010-11-02  Ian Lance Taylor  <iant@google.com>
3658
3659         * doc/install.texi (Configuration): Note in two places that Java
3660         is not enabled by default.
3661
3662 2010-11-02  Ian Lance Taylor  <iant@google.com>
3663
3664         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3665         (Configuration): Mention --disable-lto.  Remove --with-libelf
3666         paragraph.
3667
3668 2010-11-02  Ian Lance Taylor  <iant@google.com>
3669
3670         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
3671         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
3672         LIBELFINC.  Remove HAVE_libelf.
3673         * config.gcc: Don't set lto_binary_reader.
3674         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
3675         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
3676         (LIBS): Remove $(LIBELFLIBS).
3677         (INCLUDES): Remove $(LIBELFINC).
3678         * configure: Rebuild.
3679         * config.in: Rebuild.
3680
3681 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
3682
3683         * config/microblaze/microblaze-protos.h (function_arg): Delete.
3684         (function_arg_advance): Delete.
3685         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
3686         (FUNCTION_ARG): Delete.
3687         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
3688         (microblaze_function_arg_advance): ...this.  Make static.  Take a
3689         const_tree and a bool.
3690         (function-arg): Rename to...
3691         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
3692         and a bool.
3693         (microblaze_expand_prologue): Call targetm.calls.function_arg and
3694         targetm.calls.function_arg_advance.
3695         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3696
3697 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
3698
3699         Merge from FSF "apple/trunk" branch.
3700
3701         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
3702         * config/darwin.opt: .. to here.
3703         (matt-stubs): New option.
3704         * config/i386/darwin.opt: Delete.
3705         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
3706         (MACHO_DYNAMIC_NO_PIC_P): New.
3707         (MACHOPIC_INDIRECT): New.
3708         (MACHOPIC_PURE): New.
3709         * config/i386/darwin.h (DARWIN_X86) Define to 1.
3710         (MACHOPIC_ATT_STUB): New.
3711         (CC1_SPEC): Do not remove mdynamic-no-pic.
3712         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3713         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3714         (FUNCTION_PROFILER): Correct over-length line.
3715         (SUBTARGET_OVERRIDE_OPTIONS): New.
3716         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3717         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
3718         (legitimate_constant_p): Handle mdynamic-no-pic.
3719         (ix86_legitimate_address_p): Likewise.
3720         (ix86_legitimize_address): Likewise.
3721         (ix86_expand_move): Likewise.
3722         (machopic_output_stub): Update for ATT-style stubs and
3723         mdynamic-no-pic.
3724         * config/darwin-protos.h (machopic_symbol_defined_p): New.
3725         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
3726         TARGET_DYNAMIC_NO_PIC: Remove.
3727         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3728         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3729         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
3730         Remove handling of mdynamic-no-pic.
3731         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
3732         Define if required.
3733         (machopic_symbol_defined_p): Do not try to use current_function_decl
3734         when generating _get_pc thunks within stubs.
3735         (machopic_indirect_data_reference): Rework for direct conditionals
3736         rather than #ifdefs, add x86 mdynamic-no-pic
3737         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
3738         defined value.
3739         (darwin_override_options): Handle mdynamic-no-pic here.
3740         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
3741         (machopic_lazy_symbol_ptr3_section): New.
3742         (machopic_picsymbol_stub2_section): New.
3743         (machopic_picsymbol_stub3_section): New.
3744         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
3745         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3746         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3747         Moved common definition from x86 and rs6000.
3748         (MACHO_DYNAMIC_NO_PIC_P): Override value.
3749         (MACHOPIC_INDIRECT): Likewise.
3750         (MACHOPIC_PURE): Likewise.
3751         * config.gcc (x86-darwin-*): Remove darwin.opt.
3752
3753 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
3754
3755         PR debug/46255
3756         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
3757         instead of gsi_last_bb.
3758
3759 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
3760             Maxim Kuvyrkov  <maxim@codesourcery.com>
3761
3762         * config/i386/i386.c (cpu_names): Add "corei7".
3763         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
3764
3765 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
3766             Maxim Kuvyrkov  <maxim@codesourcery.com>
3767
3768         Tune alignment for Intel Core i7
3769
3770         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
3771         (enum processor_type): Update comment.  Add entries for Core i7.
3772         * config/i386-c.c (ix86_target_macros_internal): Update.
3773         * config/i386.c (m_COREI7{_32,_64}): New macros.
3774         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
3775         (processor_target_table): Tune alignment for Core i7.
3776         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
3777
3778         * doc/invoke.texi: Document "corei7" option value.
3779
3780 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
3781             Maxim Kuvyrkov  <maxim@codesourcery.com>
3782             H.J. Lu  <hjl.tools@gmail.com>
3783
3784         Basic support for Intel Core i7
3785
3786         * i386.c (ix86_option_override_internal): Add entry for corei7, use
3787         generic tuning.  Use generic32 when compiling for 32-bit ABI.
3788
3789 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
3790
3791         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
3792         sections and call darwin_asm_dwarf_section() to handle them.
3793         (darwin_asm_dwarf_section): New.
3794         (darwin_file_start): Remove code emitting dwarf section symbols.
3795
3796 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
3797
3798         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
3799         explicitly disable stack protection when building libgcc.
3800         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
3801
3802 2010-11-01  Jason Merrill  <jason@redhat.com>
3803
3804         * fold-const.c (fold_indirect_ref_1): Handle folding
3805         POINTER_PLUS_EXPR to ARRAY_REF.
3806
3807 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3808
3809         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
3810         (sh_delegitimize_address): New function.
3811
3812 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
3813
3814         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
3815         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
3816         (CC1_SPEC): Don't handle -target.
3817         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
3818         options.
3819         * config/darwin.opt (Zallowable_client, Zbundle_loader,
3820         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
3821         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
3822         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
3823         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
3824         Zweak_reference_mismatches, client_name, compatibility_version,
3825         current_version, dylinker_install_name, pagezero_size,
3826         read_only_relocs, seg1addr, segs_read_only_addr,
3827         segs_read_write_addr, sub_library, sub_umbrella): New.
3828         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
3829         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
3830         * config/freebsd.opt: New.
3831         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
3832         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
3833         * config/rpath.opt: New.
3834         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
3835         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
3836         Use rpath.opt.
3837
3838 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
3839
3840         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
3841         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
3842         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
3843         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
3844         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
3845         Document that options in .opt files do not need to be included.
3846         * doc/tm.texi: Regenerate.
3847         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
3848         * opts-common.c: Update comment on tm.h include.
3849         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
3850         * system.h (SWITCH_TAKES_ARG): Poison.
3851         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
3852         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
3853         in darwin.opt.
3854         (LINK_COMMAND_SPEC_A): Don't include %{x}.
3855         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3856         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
3857         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
3858         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3859         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
3860         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
3861         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
3862         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
3863         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3864         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
3865         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
3866         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
3867         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
3868         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
3869         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
3870         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
3871         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
3872         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
3873         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
3874         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
3875         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
3876         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
3877         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3878
3879 2010-11-01  Paul Koning  <ni1d@arrl.net>
3880
3881         * config/pdp11/pdp11.md: Use iterators.
3882         (addqi3, subqi3, iorsi3, xorsi3): Delete.
3883
3884 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
3885
3886         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
3887         GCC_INSN_FLAGS_H.
3888         * libgcov.c (__gcov_indirect_call_profiler): Set
3889         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
3890         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
3891
3892 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
3893
3894         PR tree-optimization/46259
3895
3896         Revert:
3897         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
3898         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3899         build_vector_from_val.
3900
3901 2010-11-01  DJ Delorie  <dj@redhat.com>
3902
3903         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
3904         as well as an assertion.
3905
3906 2010-11-01  Paul Koning  <ni1d@arrl.net>
3907
3908         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
3909         complex modes in memory.
3910
3911 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
3912
3913         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
3914
3915 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
3916
3917         PR target/45250
3918         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
3919         (cfa_base_offset): New variable.
3920         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
3921         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
3922         is NULL.
3923         (vt_init_cfa_base): Initialize cfa_base_offset.
3924
3925 2010-11-01  Alan Modra  <amodra@gmail.com>
3926
3927         PR target/46030
3928         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
3929         and savres_strategy.
3930         (stack_info): New file scope var.
3931         (rs6000_init_machine_status): Init stack_info.
3932         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
3933         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3934         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
3935         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
3936         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
3937         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
3938         (rs6000_savres_strategy): Rewrite.
3939         (rs6000_stack_info): Use "stack_info" in place of local "info".
3940         Return cached stack info when reload_completed unless ENABLE_CHECKING
3941         in which case confirm newly calculated stack info matches old info.
3942         Delay calculation of lr_save_p, set it for out of line gp save/restore
3943         as well as fp.  Call rs6000_savres_strategy from here..
3944         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
3945         (rs6000_output_function_prologue): Use info->savres_strategy to
3946         determine whether fp save/restore externs need to be emitted.
3947
3948 2010-10-31  Jason Merrill  <jason@redhat.com>
3949
3950         * tree.h (EXPR_LOC_OR_HERE): New macro.
3951         * builtins.c (c_strlen): Use it.
3952         * c-decl.c (build_enumerator): Likewise.
3953         * gimplify.c (internal_get_tmp_var): Likewise.
3954         (shortcut_cond_expr): Likewise.
3955         (gimplify_one_sizepos): Likewise.
3956
3957 2010-10-31  Richard Henderson  <rth@redhat.com>
3958
3959         * config/i386/cygming.h (TARGET_SEH): New.
3960         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
3961         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
3962         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
3963         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
3964         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
3965         (ASM_DECLARE_FUNCTION_SIZE): New.
3966         * config/i386/i386-protos.h: Update.
3967         * config/i386/i386.c (ix86_option_override_internal): Enable
3968         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
3969         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
3970         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
3971         (ix86_compute_frame_layout): For SEH, disable
3972         use_fast_prologue_epilogue, move frame pointer to the end of
3973         the frame.  Initialize hfp_save_offset.
3974         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
3975         at end of prologue for SEH.
3976         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
3977         emit blockage at beginning of epilogue.
3978         (ix86_expand_binary_operator): After reload, emit LEA if needed.
3979         (ix86_output_call_insn): New.
3980         * config/i386/i386.h (TARGET_SEH): New.
3981         (struct machine_function): Add member seh.
3982         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
3983         * config/i386/winnt.c (struct seh_frame_state): New.
3984         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
3985         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
3986         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
3987         i386_pe_start_function, i386_pe_end_function): New.
3988
3989         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
3990         as CFA_STORE in rules 12 and 13.
3991
3992 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
3993
3994         PR tree-optimization/46142
3995         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
3996         accommodate third function argument.
3997
3998 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
3999
4000         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
4001
4002 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4003
4004         * fold-const.c (build_zero_vector): Use build_vector_from_val.
4005         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4006         (get_initial_def_for_reduction): Likewise.
4007         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4008         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
4009         * tree.c (build_one_cst): Likewise.
4010         (build_vector_from_val): Use types_compatible_p for assert.
4011
4012 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4013
4014         * emit-rtl.c (mark_used_flags): New function.
4015         (set_used_flags, reset_used_flags): Call it.
4016
4017 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
4018
4019         PR middle-end/44569
4020         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
4021         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
4022
4023 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4024
4025         PR target/46195
4026         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
4027         (ix86_compat_aligned_value_p): This.
4028         (ix86_old_function_arg_boundary): Renamed to ...
4029         (ix86_compat_function_arg_boundary): This.  Updated.
4030         (ix86_contains_aligned_value_p): New.
4031         (ix86_function_arg_boundary): Align long double parameters on
4032         stack to 4byte in 32bit.
4033
4034 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4035
4036         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4037         * c-parser.c (c_parser_objc_at_property_declaration): Removed
4038         parsing of RID_COPIES and RID_IVAR.  Updated call to
4039         objc_add_property_declaration.
4040         * c-typecheck.c (build_component_ref): Call
4041         objc_maybe_build_component_ref instead of objc_build_setter_call.
4042         Use objc_is_property_ref to improve Objective-C checks.
4043         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
4044         of objc_build_getter_call.
4045
4046 2010-10-29  Paul Koning  <ni1d@arrl.net>
4047
4048         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
4049         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
4050         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
4051         (REG_OK_STRICT): Move description.
4052
4053 2010-10-29  Paul Koning  <ni1d@arrl.net>
4054
4055         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
4056
4057 2010-10-29  Paul Koning  <ni1d@arrl.net>
4058
4059         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
4060
4061 2010-10-29  Paul Koning  <ni1d@arrl.net>
4062
4063         PR/41822
4064         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
4065
4066 2010-10-29  Richard Henderson  <rth@redhat.com>
4067
4068         PR rtl-opt/46226
4069         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
4070         for asm goto.
4071
4072 2010-10-29  Paul Koning  <ni1d@arrl.net>
4073
4074         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
4075         register to register move.
4076
4077 2010-10-29  Paul Koning  <ni1d@arrl.net>
4078
4079         * config/pdp11/pdp11.c (print_operand_address): Correct handling
4080         of integer constant addresses, delete vax-only logic.
4081
4082 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4083
4084         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
4085         a conditional expression.
4086
4087 2010-10-29  Paul Koning  <ni1d@arrl.net>
4088
4089         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
4090         instruction encoding.
4091
4092 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4093             Andrew Pinski  <pinskia@gmail.com>
4094
4095         * tree.h (build_vector_from_val): Declare.
4096         * tree.c (build_vector_from_val): New function.
4097         * c-typeck.c (build_binary_op): Handle vector shifting.
4098         * doc/extend.texi: Description of the vector shifting operation.
4099
4100 2010-10-29  Paul Koning  <pkoning@equallogic.com>
4101
4102         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
4103         pdp11_secondary_memory_needed): Declare.
4104         * config/pdp11/predicates.md (float_operand): New predicate.
4105         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
4106         (cbranchdf4, movdf): Change predicate.
4107         (movsf): Handle FPU register case.
4108         (truncdfsf2, extendsfdf2): Add FPU register case.
4109         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
4110         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
4111         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4112         (pdp11_register_move_cost): Update cost matrix.
4113         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
4114         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
4115         pdp11_secondary_memory_needed): New function.
4116         (pdp11_return_in_memory): Add other float types.
4117         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
4118         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
4119         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
4120         REGISTER_MOVE_COST): Delete.
4121         (BASE_RETURN_VALUE_REG): Add other float types.
4122
4123 2010-10-29  Nick Clifton  <nickc@redhat.com>
4124
4125         * doc/invoke.texi: Document -mam34 and -mtune options.
4126         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
4127         (mn10300_tune_cpu): New variable.
4128         (mn10300_handle_option): Handle -mam34 and -mtune options.
4129         (mn10300_option_override): Convert tune string into tune cpu variable.
4130         (mn10300_legitimate_constant_p): Delete unused local variable.
4131         (is_load_insn): New function.
4132         (is_store_insn): New function.
4133         (mn10300_adjust_schedule_cost): New function.
4134         (TARGET_SCHED_ADJUST_COST): Define.
4135         * config/mn10300/mn10300.opt (mam34): New option.
4136         (mtune): New option.
4137         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
4138         (enum processor_type): Add AM34.
4139         (TARGET_AM34): Define.
4140         * config/mn10300/mn10300.md (attr cpu): Add am34.
4141         Add pipeline description.
4142         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
4143         Remove unneeded alternatives.  Add timing attribute.
4144         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
4145         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
4146         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
4147         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
4148         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
4149         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
4150         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
4151         float_conditional_branch, jump, indirect_jump, tablejump,
4152         call_internal, call_value_internal, zero_extendqisi2_am33,
4153         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
4154         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
4155         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
4156         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
4157         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
4158         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
4159         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
4160         return_internal_regs, store_movm, return, call_next_insn):
4161         Add timing attribute.
4162         (am33_subsi3): Add missing clobber of CC_REG.
4163         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
4164         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
4165         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
4166         extendqisi2): Fix predicates.
4167         (call_internal, call_internal_value): Separate alternatives.
4168         * config/mn10300/t-mn10300: Add AM34 multilib.
4169
4170 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
4171
4172         * config/sh/sh.c (sh_promote_function_mode): Use
4173         default_promote_function_mode if !sh_promote_prototypes.
4174
4175 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
4176
4177         * recog.c (split_all_insns): Remove dead code.
4178
4179 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4180
4181         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4182
4183 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4184
4185         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4186         (FUNCTION_ARG_ADVANCE): Delete.
4187         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
4188         functions.
4189         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
4190         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4191         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4192
4193 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4194
4195         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
4196         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4197         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
4198         Take a const_tree and a bool.
4199         (mcore_function_arg_advance): New function.
4200         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4201
4202 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4203
4204         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
4205         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4206         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
4207         Take a const_tree and a bool.
4208         (mcore_function_arg_advance): New function.
4209         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4210
4211 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4212
4213         * config/h8300/h8300-protos.h (function_arg): Delete.
4214         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4215         * config/h8300/h8300.c (function_arg): Rename to...
4216         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
4217         a bool.
4218         (h8300_function_arg_advance): New function.
4219         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4220
4221 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4222
4223         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
4224         to...
4225         * config/arc/arc.c (arc_function_arg): ...here and...
4226         (arc_function_arg_advance): ...here.  New functions.
4227         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4228
4229 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4230
4231         * config/crx/crx-protos.h (crx_function_arg): Delete.
4232         (crx_function_arg_advance): Delete.
4233         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4234         * config/crx/crx.c (crx_function_arg): Make static.  Take a
4235         const_tree and a bool.
4236         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
4237         (enough_regs_for_param): Take a const_tree.
4238         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4239
4240 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4241
4242         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
4243         (m68hc11_function_arg_advance): Delete.
4244         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
4245         (FUNCTION_ARG_ADVANCE): Delete.
4246         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
4247         Take a const_tree and a bool.
4248         (m68hc11_function_arg_advance): Likewise.
4249         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4250
4251 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4252
4253         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
4254         (xstormy16_function_arg_advance): Delete.
4255         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
4256         (FUNCTION_ARG_ADVANCE): Delete.
4257         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
4258         Take a const_tree and a bool.
4259         (xstormy16_function_arg_advance): Likewise.  Return void, updating
4260         the CUM parameter instead.
4261         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4262
4263 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4264
4265         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
4266         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4267         (MOXIE_FUNCTION_ARG_SIZE): Move to...
4268         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
4269         (moxie_function_arg): Make static.  Take a const_tree and a bool.
4270         (moxie_function_arg_advance): New function.
4271         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4272
4273 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4274
4275         * config/mn10300/mn10300-protos.h (function_arg): Delete.
4276         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
4277         (FUNCTION_ARG_ADVANCE): Delete.
4278         * config/mn10300/mn10300.c (function_arg): Rename to...
4279         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
4280         and a bool.
4281         (mn10300_function_arg_advance): New function.
4282         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4283
4284 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4285
4286         * config/iq2000/iq2000-protos.h (function_arg): Delete.
4287         (function_arg_advance): Delete.
4288         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4289         * config/iq2000/iq2000.c (function_arg): Rename to...
4290         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
4291         a bool.
4292         (function_arg_advance): Rename to...
4293         (iq2000_function_arg_advance): ...this.  Make static.  Take a
4294         const_tree and a bool.
4295         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
4296         iq2000_function_arg.
4297         (iq2000_pass_by_reference): Call iq2000_function_arg).
4298         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4299
4300 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4301
4302         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
4303         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4304         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
4305         const_tree.
4306         (fr30_function_arg): New function.
4307         (fr30_function_arg_advance): New function.
4308         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4309
4310 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
4311
4312         * config/frv/frv-protos.h (frv_function_arg): Delete.
4313         (frv_function_arg_advance): Delete.
4314         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4315         * config/frv/frv.c (frv_function_arg): Rename to...
4316         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
4317         (frv_function_arg, frv_function_incoming_arg): New functions.
4318         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
4319         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4320         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4321
4322 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
4323
4324         PR target/46153
4325         * config/i386/sse.md (sse_movhlps_exp): Use destination
4326         returned from ix86_fixup_binary_operands to expand insn.
4327         (sse_movlhps_exp): Ditto.
4328         (sse_loadhps_exp): Ditto.
4329         (sse_loadlps_exp): Ditto.
4330         (sse2_loadhpd_exp): Ditto.
4331         (sse2_loadlpd_exp): Ditto.
4332
4333 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
4334
4335         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
4336         constants in thumb2.
4337
4338 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
4339
4340         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
4341         arithmetics in masking operations.
4342         (contains_muldiv): Likewise.
4343         (try_combine): Likewise.
4344         (find_split_point): Likewise.
4345         (combine_simplify_rtx): Likewise.
4346         (simplify_if_then_else): Likewise.
4347         (simplify_set): Likewise.
4348         (expand_compound_operation): Likewise.
4349         (expand_field_assignment): Likewise.
4350         (make_extraction): Likewise.
4351         (extract_left_shift): Likewise.
4352         (make_compound_operation): Likewise.
4353         (force_to_mode): Likewise.
4354         (make_field_assignment): Likewise.
4355         (reg_nonzero_bits_for_combine): Likewise.
4356         (simplify_shift_const_1): Likewise.
4357         (simplify_comparison): Likewise.
4358
4359 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
4360
4361         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
4362         (ia64_function_arg_advance): Delete.
4363         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4364         (FUNCTION_ARG_ADVANCE): Delete.
4365         * config/ia64/ia64.c (ia64_function_arg): Rename to...
4366         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
4367         bool arguments.
4368         (ia64_function_arg, ia64_function_incoming_arg): New functions.
4369         (ia64_function_arg_advance): Make static.  Take a const_tree and
4370         a bool.
4371         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4372         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4373
4374 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
4375
4376         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
4377         (TARGET_GET_RAW_ARG_MODE): New.
4378         * doc/tm.texi: Regenerate.
4379         * target.def (get_raw_result_mode): New.
4380         (get_raw_arg_mode): New.
4381         * targhooks.c (default_get_reg_raw_mode): New.
4382         * targhooks.h (default_get_reg_raw_mode): New.
4383         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
4384         (apply_result_size): Ditto.
4385         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
4386         (TARGET_GET_RAW_RESULT_MODE): Define.
4387         (TARGET_GET_RAW_ARG_MODE): Ditto.
4388
4389 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
4390
4391         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
4392         for newer Solaris 10 release.
4393         (sparc_fallback_frame_state): Likewise.
4394
4395 2010-10-27  Jason Merrill  <jason@redhat.com>
4396
4397         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
4398         variables sooner.
4399
4400 2010-10-27  Jie Zhang  <jie@codesourcery.com>
4401             Maxim Kuvyrkov  <maxim@codesourcery.com>
4402
4403         * haifa-sched.c (ISSUE_POINTS): Remove.
4404         (max_issue): Don't issue more than issue_rate instructions.
4405
4406 2010-10-27  Ian Lance Taylor  <iant@google.com>
4407
4408         PR target/46197
4409         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
4410         (split_stack_return): Replace UNSPEC_STACK_CHECK with
4411         UNSPECV_SPLIT_STACK_RETURN.
4412
4413 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4414
4415         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
4416
4417         * config/i386/i386.c (block_info): New.
4418         (BLOCK_INFO): Likewise.
4419         (call_avx256_state): Likewise.
4420         (check_avx256_stores): Likewise.
4421         (move_or_delete_vzeroupper_2): Likewise.
4422         (move_or_delete_vzeroupper_1): Likewise.
4423         (move_or_delete_vzeroupper): Likewise.
4424         (use_avx256_p): Likewise.
4425         (function_pass_avx256_p): Likewise.
4426         (flag_opts): Add -mvzeroupper.
4427         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
4428         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
4429         is disabled.
4430         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
4431         generate vzeroupper.
4432         (init_cumulative_args): Add an int to indicate caller.  Set
4433         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
4434         based on return type.
4435         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
4436         caller_pass_avx256_p based on argument type.
4437         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
4438         is used, but not returned by caller.
4439         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
4440         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
4441         is used.
4442         (ix86_minimum_alignment): Likewise.
4443         (ix86_expand_special_args_builtin): Set target to
4444         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
4445         (ix86_reorg): Run the vzeroupper optimization if needed.
4446
4447         * config/i386/i386.h (ix86_args): Add caller.
4448         (INIT_CUMULATIVE_ARGS): Updated.
4449         (machine_function): Add use_vzeroupper_p, use_avx256_p,
4450         caller_pass_avx256_p, caller_return_avx256_p,
4451         callee_pass_avx256_p and callee_return_avx256_p.
4452
4453         * config/i386/i386.opt (-mvzeroupper): New.
4454
4455         * config/i386/predicates.md (vzeroupper_operation): Removed.
4456
4457         * config/i386/sse.md (avx_vzeroupper): Removed.
4458         (*avx_vzeroupper): Removed.
4459         (avx_vzeroupper): New.
4460
4461         * doc/invoke.texi: Document -mvzeroupper.
4462
4463 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
4464
4465         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
4466         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
4467         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
4468
4469 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
4470             Olivier Hainque  <hainque@adacore.com>
4471
4472         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
4473         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
4474         fs->signal_frame instead.
4475
4476 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4477
4478         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
4479         parsing of RID_COPIES and RID_IVAR.
4480
4481 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4482
4483         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
4484         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
4485         Do not use objc_set_property_attr, but use local variables
4486         instead.  Detect repeated usage of setter, getter and ivar
4487         attributes.  Improved error processing when a setter name does not
4488         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
4489         that the token is a keyword.  Updated call to
4490         objc_add_property_declaration.
4491
4492 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4493
4494         * c-parser.c (c_parser_objc_at_property): Renamed to
4495         c_parser_objc_at_property_declaration.  Updated calls to
4496         objc_add_property_variable, now objc_add_property_declaration.
4497         Code rewritten to be much more robust in recovering from syntax
4498         errors.  Added comments.
4499         (c_parser_objc_property_attrlist): Removed.
4500         (c_parser_external_declaration): Updated calls to
4501         c_parser_objc_at_property, now
4502         c_parser_objc_at_property_declaration.
4503         (c_parser_objc_methodprotolist): Same change.
4504
4505 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
4508
4509 2010-10-26  Jan Hubicka  <jh@suse.cz>
4510
4511         * ipa.c (process_references): Enqueue all referenced nodes;
4512         mark as reachable only non-external nodes.
4513         (cgraph_remove_unreachable_nodes): All referenced nodes should
4514         be enqueued; remove bogues node->needed check.
4515
4516 2010-10-26  Jan Hubicka  <jh@suse.cz>
4517
4518         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
4519         to represent OMP.
4520
4521 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
4522
4523         * config/i386/i386.md (split_stack_return): Replace
4524         unspec_volatile with unspec.
4525
4526 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
4527
4528         * doc/install.texi: Fix typo in --with-sysroot description.
4529
4530 2010-10-26  Jan Hubicka  <jh@suse.cz>
4531
4532         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4533         Use info provided by linker plugin.
4534
4535 2010-10-26  Jason Merrill  <jason@redhat.com>
4536
4537         * varasm.c (constructor_static_from_elts_p): Don't require a
4538         CONSTRUCTOR to have elements to be suitable for static
4539         initialization.  Allow ARRAY_TYPE as well.
4540
4541 2010-10-26  Jan Hubicka  <jh@suse.cz>
4542
4543         PR middle-end/45736
4544         * cgraph.c (cgraph_set_readonly_flag): Rename to...
4545         (cgraph_set_const_flags) ... this one; get also looping argument;
4546         clear constructor/destructor flags.
4547         (cgraph_set_pure_flag): Likewise.
4548         (cgraph_set_looping_const_or_pure_flag): Remove.
4549         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
4550         to optimize away static ctors/dtors; it does not work on inline clones;
4551         external functions can always be rmeoved.
4552         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
4553         inline clones; in LTO external functions always can go.
4554         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
4555         (cgraph_mark_address_taken_node): Assert that we are not taking
4556         address of inline clone.
4557         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
4558         external functions.
4559         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
4560         address taken.
4561         (ipcp_initialize_node_lattices): Only local functions can be
4562         handled without cloning.
4563         * cgraph.h (cgraph_set_readonly_flag,
4564         cgraph_set_looping_const_or_pure_flag): Remove.
4565         (cgraph_set_const_flag): Declare.
4566         (cgraph_set_pure_flag): Update.
4567         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
4568         flags setting code.
4569         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
4570         look at inline clones; fix handling of external definitions.
4571         (cgraph_postorder): Do not look at inline clones in the first pass.
4572         (function_and_variable_visibility): Drop constructors/destructor
4573         flags at pure and const functions.
4574         * tree-profile.c (tree_profiling): Update.
4575         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
4576         address taken; external functions do not account to whole program size.
4577         (cgraph_decide_inlining): Likewise; do not try to inline
4578         functions already inlined.
4579
4580 2010-10-26  Jie Zhang  <jie@codesourcery.com>
4581
4582         * doc/invoke.texi: Improve documentation of
4583         -fstrict-volatile-bitfields.
4584
4585 2010-10-26  Ira Rosen  <irar@il.ibm.com>
4586
4587         PR tree-optimization/46167
4588         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
4589         is basic block for the statement.
4590
4591 2010-10-26  Paul Koning  <ni1d@arrl.net>
4592
4593         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
4594         current definition of struct_real_format.
4595
4596 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
4597
4598         PR target/44948
4599         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
4600         (ix86_function_arg_boundary): Always align parameters on stack
4601         in 64bit and align parameters with alignment >= 16byte on stack
4602         in 32bit.  Warn alignment change.
4603
4604 2010-10-26  Ian Lance Taylor  <iant@google.com>
4605
4606         PR middle-end/45687
4607         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
4608         offset.
4609
4610 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
4611
4612         Implement opaque-enum-specifiesr for C++0x
4613         * tree.h (ENUM_IS_OPAQUE): New.
4614         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
4615
4616 2010-10-26  Jie Zhang  <jie@codesourcery.com>
4617
4618         * stor-layout.c (layout_decl): Use the field's type to
4619         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
4620         * config/arm/arm.c (arm_override_options): Default to
4621         -fstrict-volatile-bitfields.
4622
4623 2010-10-25  Paul Koning  <ni1d@arrl.net>
4624
4625         * config/pdp11/pdp11.md: Add define_constants for register
4626         numbers, branch offset limits.
4627         * config/pdp11/pdp11.c: Use named constants instead of numbers.
4628         * config/pdp11.pdp11.h: Ditto.
4629
4630 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4631
4632         * configure.ac: Use $cpu_type instead of $target to define the nop.
4633         * configure: Regenerate.
4634
4635 2010-10-25  Jie Zhang  <jie@codesourcery.com>
4636
4637         * combine.c (try_combine): If insns need to be kept around, check that
4638         they can be copied in the merged instruction.
4639
4640 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4641
4642         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
4643         has been modified.
4644         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
4645         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
4646         it has been modified.
4647
4648 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4649
4650         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
4651
4652 2010-10-24  Paul Koning  <ni1d@arrl.net>
4653
4654         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
4655         * config/pdp11/pdp11.c (output_jump): Ditto.
4656
4657 2010-10-24  Ian Lance Taylor  <iant@google.com>
4658
4659         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
4660
4661 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
4662
4663         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
4664         least one insn with a locus corresponding to an edge's goto_locus,
4665         disregard non-fallthru edges to the exit block and merge the blocks
4666         created for the same goto_locus.
4667
4668 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
4669
4670         * gcc.c (n_switches_alloc_debug_check): New.
4671         (set_option_handlers): New.
4672         (process_command): Use set_option_handlers.
4673         (do_self_spec): Pass spec-generated options through option handlers.
4674         (main): Also save and restore n_switches_alloc when swapping
4675         switch arrays.
4676
4677 2010-10-23  Richard Henderson  <rth@redhat.com>
4678
4679         PR target/46144
4680         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
4681         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
4682         Honor matching operands when splitting to XOR.
4683
4684 2010-10-23  Ian Lance Taylor  <iant@google.com>
4685
4686         * tree-vrp.c (extract_range_from_binary_expr): If
4687         flag_non_call_exceptions don't eliminate division by zero.
4688         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4689
4690 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
4691
4692         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
4693         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
4694         __ORDER_PDP_ENDIAN__.
4695         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4696         (struct DWstruct): Define based on __BYTE_ORDER__.
4697         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4698         (struct INTstruct): Define based on __BYTE_ORDER__.
4699         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4700         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
4701         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
4702         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4703         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4704         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4705         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4706         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4707         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4708         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4709         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4710         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4711         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4712         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4713         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4714         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4715         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4716         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4717         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4718         * doc/tm.texi: Regenerate.
4719         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
4720         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
4721
4722 2010-10-23  Jie Zhang  <jie@codesourcery.com>
4723
4724         PR rtl-optimization/37360
4725         * config/mips/mips.c (cached_can_issue_more): New local variable.
4726         (mips_sched_reorder_1): New.
4727         (mips_sched_reorder): Use mips_sched_reorder_1.
4728         (mips_sched_reorder2): New.
4729         (mips_variable_issue): Set cached_can_issue_more.
4730         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
4731         instead of mips_sched_reorder.
4732
4733         Revert:
4734         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
4735         PR rtl-optimization/37360
4736         * haifa-sched.c (max_issue): Do not assert that we never issue more
4737         insns than issue_rate.  Add comment.
4738
4739 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
4740
4741         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
4742         location info of the expression.
4743
4744 2010-10-22  DJ Delorie  <dj@redhat.com>
4745
4746         * doc/extend.texi (Named Address Spaces): Document the M32C named
4747         address space.
4748
4749         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
4750         __far address space.
4751         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
4752         "__far" address space for R8C and M16C processor variants.
4753         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
4754         (far_addr_space_p): New.
4755         (encode_pattern_1): Add sign and zero extend support.
4756         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
4757         (m32c_extra_constraint_p2): Add SF constraint.
4758         (m32c_legitimate_address_p): Support __far addresses.
4759         (m32c_addr_space_pointer_mode): New.
4760         (m32c_addr_space_address_mode): New.
4761         (m32c_addr_space_legitimate_address_p): New.
4762         (m32c_addr_space_legitimize_address): New.
4763         (m32c_addr_space_subset_p): New.
4764         (m32c_addr_space_convert): New.
4765         (conversions): Add __far operand patterns.
4766         (m32c_prepare_move): Force constants into registers for __far moves.
4767         (m32c_split_move): __far moves are always split.
4768         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
4769         * config/m32c/mov.md (mov<mode>_far_op1): New.
4770         (mov<mode>_far_op2): New.
4771         (movqi_op): Add __far (SF) support.
4772         (movhi_op): Likewise.
4773         (movsi_splittable): Split A1A0 also.
4774
4775 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4776             Andrew Pinski  <pinskia@gmail.com>
4777
4778         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
4779         * doc/extend.texi: New paragraph
4780
4781 2010-10-22  Paul Koning  <ni1d@arrl.net>
4782
4783         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
4784
4785 2010-10-22  DJ Delorie  <dj@redhat.com>
4786
4787         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
4788
4789 2010-10-22  Paul Koning  <ni1d@arrl.net>
4790
4791         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
4792
4793 2010-10-22  Richard Henderson  <rth@redhat.com>
4794
4795         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
4796         cases for __builtin_fma and __builtin_fmaf.
4797
4798 2010-10-22  Richard Henderson  <rth@redhat.com>
4799
4800         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
4801         NEG+USE for vectors as well.
4802         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
4803         and splitter.
4804
4805 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
4806
4807         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
4808         SWITCH_CURTAILS_COMPILATION): Remove.
4809         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
4810         * doc/tm.texi: Regenerate.
4811         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
4812
4813 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
4814
4815         * config/i386/bdver1.md: New file.
4816         * config/i386/i386.md (include "bdver1.md"): Invoke the
4817         pipeline description for bdver1.
4818         (x86_sahf_1): Add "bdver1_decode" attribute.
4819         (*cmpfp_i_mixed): Likewise.
4820         (*cmpfp_i_sse): Likewise.
4821         (*cmpfp_i_i387): Likewise.
4822         (*cmpfp_iu_mixed): Likewise.
4823         (*cmpfp_iu_sse): Likewise.
4824         (*cmpfp_iu_387): Likewise.
4825         (*swap<mode>,*swap<mode>_1): Likewise.
4826         (fixuns_trunc<mode>hi2): Likewise.
4827         (fix_trunc<mode>si_sse): Likewise.
4828         (x86_fnstcw_1): Likewise.
4829         (x86_fldcw_1): Likewise.
4830         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
4831         (*floatsi<mode>2_vector_mixed): Likewise.
4832         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
4833         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4834         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4835         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
4836         (*floatsi<mode>2_vector_sse): Likewise.
4837         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
4838         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4839         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4840         (*mul<mode>3_1): Likewise.
4841         (*mulsi3_1_zext): Likewise.
4842         (*mulhi3_1): Likewise.
4843         (*mulqi3_1): Likewise.
4844         (*<u>mul<mode><dwi>3_1): Likewise.
4845         (*<u>mulqihi3_1): Likewise.
4846         (*<s>muldi3_highpart_1): Likewise.
4847         (*<s>mulsi3_highpart_1): Likewise.
4848         (*<s>mulsi3_highpart_zext): Likewise.
4849         (x86_64_shld): Likewise.
4850         (x86_shld): Likewise.
4851         (x86_64_shrd): Likewise.
4852         (x86_shrd): Likewise.
4853         (sqrtxf2): Likewise.
4854         (sqrt_extend<mode>xf2_i387): Likewise.
4855         (*sqrt<mode>2_sse): Likewise.
4856         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
4857         (sse_cvtsi2ssq): Likewise.
4858         (sse_cvtss2si): Likewise.
4859         (sse_cvtss2si_2): Likewise.
4860         (sse_cvtss2siq): Likewise.
4861         (sse_cvtss2siq_2): Likewise.
4862         (sse_cvttss2si): Likewise.
4863         (sse_cvttss2siq): Likewise.
4864         (sse2_cvtpi2pd): Likewise.
4865         (sse2_cvttpd2pi): Likewise.
4866         (sse2_cvtsi2sd): Likewise.
4867         (sse2_cvtsi2sdq): Likewise.
4868         (sse2_cvtsd2si): Likewise.
4869         (sse2_cvtsd2si_2): Likewise.
4870         (sse2_cvtsd2siq): Likewise.
4871         (sse2_cvtsd2siq_2): Likewise.
4872         (sse2_cvttsd2si): Likewise.
4873         (sse2_cvttsd2siq): Likewise.
4874         (*sse2_cvtpd2dq): Likewise.
4875         (*sse2_cvttpd2dq): Likewise.
4876         (sse2_cvtsd2ss): Likewise.
4877         (sse2_cvtss2sd): Likewise.
4878         (*sse2_cvtpd2ps): Likewise.
4879         (sse2_cvtps2pd): Likewise.
4880
4881 2010-10-22  Richard Guenther  <rguenther@suse.de>
4882
4883         PR middle-end/46137
4884         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
4885         remove the virtual operands if they are not needed.
4886
4887 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
4888
4889         * config/i386/i386.c (processor_costs bdver1_cost): Update
4890         insn costs and architectural parameters for bdver1.
4891
4892 2010-10-22  Richard Guenther  <rguenther@suse.de>
4893
4894         * gimple.h (gimple_register_canonical_type): Declare.
4895         * gimple.c (gimple_canonical_types): New global hashtable.
4896         (struct gimple_type_leader_entry_s): New type.
4897         (gimple_type_leader): New global cache.
4898         (gimple_lookup_type_leader): New function.
4899         (gtc_visit): Query the proper cache.
4900         (gimple_types_compatible_p): Likewise.
4901         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
4902         (gimple_canonical_type_eq): New function.
4903         (gimple_register_canonical_type): Likewise.
4904         (print_gimple_types_stats): Adjust for gimple_canonical_types.
4905         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
4906         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
4907         gimple_types_compatible_p for LTO.
4908
4909 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
4910
4911         PR target/46098
4912         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
4913         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
4914         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
4915         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
4916         (<sse>_movu<ssemodesuffix>): New expander.
4917         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
4918         (avx_movdqu<avxmodesuffix>): New expander.
4919         (*sse2_movdqu): Rename from sse2_movdqu.
4920         (sse2_movdqu): New expander.
4921
4922 2010-10-22  Richard Guenther  <rguenther@suse.de>
4923
4924         PR tree-optimization/45720
4925         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
4926         Handle negative step.
4927         (vect_enhance_data_refs_alignment): Likewise.
4928         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
4929         (vect_create_cond_for_align_checks): Likewise.
4930         (vect_create_cond_for_alias_checks): Likewise.
4931
4932 2010-10-22  Ira Rosen  <irar@il.ibm.com>
4933
4934         PR tree-optimization/46126
4935         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
4936         vectorizable_shift in case of basic block vectorization.
4937
4938 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
4939
4940         * target.h (enum opt_levels, struct default_options): New.
4941         * target.def (handle_ofast): Remove hook.
4942         (target_option.optimization): Change to
4943         target_option.optimization_table.
4944         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
4945         TARGET_OPTION_OPTIMIZATION_TABLE.
4946         (CAN_DEBUG_WITHOUT_FP): Remove.
4947         * doc/tm.texi: Regenerate.
4948         * opts.c (maybe_default_option, maybe_default_options,
4949         default_options_table): New.
4950         (default_options_optimization): Take extra parameters.  Don't
4951         assert that global_options and global_options_set are in use.  Use
4952         maybe_default_options.
4953         (decode_options): Pass extra parameters to
4954         default_options_optimization.
4955         * common.opt (falign-loops): Use value 0 with Var.
4956         (frerun-cse-after-loop, ftree-ter): Remove Init.
4957         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
4958         TARGET_OPTION_OPTIMIZATION): Remove.
4959         * targhooks.c (empty_optimization_table): New.
4960         * targhooks.h (empty_optimization_table): Declare.
4961         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
4962         * config/alpha/alpha.c (alpha_option_optimization_table,
4963         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4964         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
4965         * config/arm/arm.c (arm_option_optimization: Change to
4966         arm_option_optimization_table.
4967         (TARGET_OPTION_OPTIMIZATION): Change to
4968         TARGET_OPTION_OPTIMIZATION_TABLE.
4969         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
4970         * config/avr/avr.c (avr_option_optimization_table,
4971         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4972         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
4973         * config/cris/cris.c (cris_option_optimization): Change to
4974         cris_option_optimization_table.
4975         (TARGET_OPTION_OPTIMIZATION): Change to
4976         TARGET_OPTION_OPTIMIZATION_TABLE.
4977         * config/crx/crx.c (crx_option_optimization): Change to
4978         crx_option_optimization_table.
4979         (TARGET_OPTION_OPTIMIZATION): Change to
4980         TARGET_OPTION_OPTIMIZATION_TABLE.
4981         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4982         * config/fr30/fr30.c (fr30_option_optimization_table,
4983         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4984         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
4985         * config/frv/frv.c (frv_option_optimization_table,
4986         TARGET_OPTION_OPTIMIZATION_TABLE): New.
4987         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
4988         * config/h8300/h8300.c (h8300_option_optimization): Change to
4989         h8300_option_optimization_table.
4990         (TARGET_OPTION_OPTIMIZATION): Change to
4991         TARGET_OPTION_OPTIMIZATION_TABLE.
4992         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4993         * config/i386/i386.c (ix86_option_optimization): Change to
4994         ix86_option_optimization_table.
4995         (TARGET_OPTION_OPTIMIZATION): Change to
4996         TARGET_OPTION_OPTIMIZATION_TABLE.
4997         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4998         as initializer.
4999         * config/ia64/ia64.c (ia64_option_optimization): Change to
5000         ia64_option_optimization_table.
5001         (TARGET_OPTION_OPTIMIZATION): Change to
5002         TARGET_OPTION_OPTIMIZATION_TABLE.
5003         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
5004         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
5005         initializer.
5006         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5007         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5008         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5009         * config/lm32/lm32.c (lm32_option_optimization_table,
5010         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5011         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
5012         * config/m32r/m32r.c (m32r_option_optimization): Change to
5013         m32r_option_optimization_table.
5014         (TARGET_OPTION_OPTIMIZATION): Change to
5015         TARGET_OPTION_OPTIMIZATION_TABLE.
5016         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
5017         CAN_DEBUG_WITHOUT_FP): Remove.
5018         * config/mcore/mcore.c (mcore_option_optimization): Change to
5019         mcore_option_optimization_table.
5020         (TARGET_OPTION_OPTIMIZATION): Change to
5021         TARGET_OPTION_OPTIMIZATION_TABLE.
5022         * config/mep/mep.c (mep_option_optimization): Change to
5023         mep_option_optimization_table.
5024         (TARGET_OPTION_OPTIMIZATION): Change to
5025         TARGET_OPTION_OPTIMIZATION_TABLE.
5026         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
5027         * config/microblaze/microblaze.c
5028         (microblaze_option_optimization_table,
5029         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5030         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
5031         * config/mips/mips.c (mips_option_optimization_table,
5032         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5033         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
5034         * config/mmix/mmix.c (mmix_option_optimization): Change to
5035         mmix_option_optimization_table.
5036         (TARGET_OPTION_OPTIMIZATION): Change to
5037         TARGET_OPTION_OPTIMIZATION_TABLE.
5038         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
5039         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5040         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5041         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
5042         * config/pa/pa.c (pa_option_optimization_table,
5043         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5044         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5045         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
5046         pdp11_option_optimization_table.
5047         (TARGET_OPTION_OPTIMIZATION): Change to
5048         TARGET_OPTION_OPTIMIZATION_TABLE.
5049         * config/picochip/picochip.c (picochip_option_optimization_table,
5050         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5051         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
5052         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
5053         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5054         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5055         * config/rx/rx.c (rx_option_optimization_table,
5056         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5057         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
5058         * config/s390/s390.c (s390_option_optimization): Change to
5059         s390_option_optimization_table.
5060         (s390_option_override): Update comment.
5061         (TARGET_OPTION_OPTIMIZATION): Change to
5062         TARGET_OPTION_OPTIMIZATION_TABLE.
5063         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
5064         * config/score/score.c (score_option_optimization_table,
5065         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5066         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
5067         * config/sh/sh.c (sh_option_optimization): Change to
5068         sh_option_optimization_table.
5069         (TARGET_OPTION_OPTIMIZATION): Change to
5070         TARGET_OPTION_OPTIMIZATION_TABLE.
5071         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
5072         (sh_option_override, expand_block_move, multcosts, find_barrier,
5073         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
5074         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
5075         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
5076         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
5077         instead of TARGET_SMALLCODE.
5078         * config/sh/sh.opt (mspace): Make into an alias for -Os.
5079         * config/sparc/sparc.c (sparc_option_optimization_table,
5080         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5081         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
5082         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5083         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5084         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
5085         * config/v850/v850.c (v850_option_optimization): Change to
5086         v850_option_optimization_table.
5087         (TARGET_OPTION_OPTIMIZATION): Change to
5088         TARGET_OPTION_OPTIMIZATION_TABLE.
5089         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
5090         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
5091         xtensa_option_optimization_table.
5092         (TARGET_OPTION_OPTIMIZATION): Change to
5093         TARGET_OPTION_OPTIMIZATION_TABLE.
5094         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5095
5096 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
5097
5098         Based on the CFString implementation in FSF apple/trunk branch.
5099
5100         * target.def (objc_construct_string): New Hook.
5101         * doc/tm.texi (objc_construct_string): Document.
5102         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
5103         * config/t-darwin: Amend build rules for darwin.o.
5104         * config/darwin.opt: Add cfstrings flags.
5105         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
5106         (darwin_objc_construct_string): New.
5107         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
5108         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
5109         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
5110         (darwin_fold_builtin): Likewise.
5111         (darwin_build_constant_cfstring): Likewise.
5112         (darwin_objc_construct_string): Likewise.
5113         (darwin_cfstring_p): Likewise.
5114         (darwin_enter_string_into_cfstring_table): Likewise.
5115         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
5116         * config/darwin.c (darwin_running_cxx): New var.
5117         (machopic_select_section): Return cfstring_constant_object_section.
5118         (darwin_override_options): Set darwin_running_cxx.
5119         (add_builtin_field_decl): New.
5120         (darwin_init_cfstring_builtins): New.
5121         (darwin_build_constant_cfstring): New.
5122         (darwin_fold_builtin): New.
5123         (cfstring_hash): New.
5124         (cfstring_eq): New.
5125         (darwin_enter_string_into_cfstring_table): New.
5126         * config/darwin-sections.def (cfstring_constant_object_section): New.
5127         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
5128         (TARGET_OBJC_CONSTRUCT_STRING): Define.
5129
5130 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5131
5132         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
5133         TYPE_STUB_DECL instead of TREE_CHAIN.
5134         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
5135         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
5136         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
5137         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
5138         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
5139         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
5140         Likewise.
5141         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
5142
5143 2010-10-22  Jie Zhang  <jie@codesourcery.com>
5144
5145         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
5146         (copy_blkmode_from_reg): Likewise.
5147         (read_complex_part): Likewise.
5148         (expand_expr_real_1): Calculate packedp and pass it to
5149         extract_bit_field.
5150         * expr.h (extract_bit_field): Update declaration.
5151         * calls.c (store_unaligned_arguments_into_pseudos): Update call
5152         to extract_bit_field.
5153         * expmed.c (extract_fixed_bit_field): Update calls to
5154         extract_fixed_bit_field.
5155         (store_split_bit_field): Likewise.
5156         (extract_bit_field_1): Add new argument packedp.
5157         (extract_bit_field): Add new argument packedp.
5158         (extract_fixed_bit_field): Add new argument packedp and let
5159         packed attribute override volatile.
5160         * stmt.c (expand_return): Update call to extract_bit_field.
5161
5162 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5163
5164         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
5165
5166 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5167
5168         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
5169         of gcc_checking_assert.
5170         * sel-sched.c (code_motion_process_successors): Likewise.
5171
5172 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5173
5174         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
5175         when stopping because of a different locus on edge or insn.
5176         (try_optimize_cfg): Add comment.
5177         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
5178         block is a forwarder block, propagate locus on the edge.
5179         (cfg_layout_merge_blocks): Likewise.
5180
5181 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
5182
5183         PR target/45946
5184         * config/i386/i386.md (*pushti2): New insn pattern.
5185         (pushti2 splitter): New insn splitter.
5186         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
5187         DWI mode iterator.
5188
5189 2010-10-21  Paul Koning  <ni1d@arrl.net>
5190
5191         * config/pdp11/pdp11-protos.md (arith_operand,
5192         const_immediate_operand, expand_shift_operand,
5193         immediate15_operand): Delete
5194         * config/pdp11/pdp11.c: Ditto.
5195         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
5196         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5197         EXTRA_CONSTRAINT): Delete.
5198         * config/pdp11/pdp11.md (various): Use standard constraints
5199         instead of removed ones.
5200         * config/pdp11/constraints.md: New file.
5201         * config/pdp11/predicates.md: New file.
5202
5203 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
5204
5205         PR c/45834
5206         * alias.c (true_dependence_1): Remove obsolete check for QImode.
5207         (may_alias_p): Ditto.
5208
5209 2010-10-21  Martin Jambor  <mjambor@suse.cz>
5210
5211         PR tree-optimization/45875
5212         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
5213
5214 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5215
5216         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
5217         variables.
5218         (create_new_def_for): Likewise.
5219
5220 2010-10-21  Nick Clifton  <nickc@redhat.com>
5221
5222         * config/mn10300/mn10300.c: Fold code to 80-character width.
5223         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
5224         MEM, CONST_INT and CONST_DOUBLE.
5225         (targetm): Move initialization to end of file.
5226         (print_operand): Rename to mn10300_print_operand.
5227         (print_operand_address): Rename to mn10300_print_operand_address.
5228         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
5229         (expand_prologue): Rename to mn10300_expand_prologue.
5230         (expand_epilogue): Rename to mn10300_expand_epilogue.
5231         (initial_offset): Rename to mn10300_initial_offset.
5232         (function_arg): Rename to mn10300_function_arg.
5233         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
5234         (symbolic_operand): Rename to mn10300_symbolic_operand.
5235         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
5236         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
5237         * config/mn10300/mn10300-protos.h: Update prototypes.
5238         * config/mn10300/mn10300.h: Fold code to 80-character width.
5239         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
5240         MEM, CONST_INT and CONST_DOUBLE.
5241         (CPP_SPEC): Move to...
5242         (TARGET_CPU_CPP_BUILTINS): ... here.
5243         * config/mn10300/mn10300.md: Fold code to 80-character width.
5244         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
5245         MEM, CONST_INT and CONST_DOUBLE.
5246
5247 2010-10-21  Ira Rosen  <irar@il.ibm.com>
5248
5249         PR tree-optimization/46049
5250         PR tree-optimization/46052
5251         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
5252         (vect_get_slp_defs): Add arguments.
5253         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
5254         operands to vect_get_slp_defs.
5255         (vectorizable_reduction): Fix comment, pass scalar operands to
5256         vect_get_slp_defs.
5257         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
5258         type to determine number of units in the created vector.
5259         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
5260         (vectorizable_conversion): Fix comment.
5261         (vectorizable_shift): New function.
5262         (vectorizable_operation): Move code that handles shifts to
5263         vectorizable_shift.
5264         (vectorizable_type_demotion): Fix comment, pass scalar operands to
5265         vect_get_slp_defs.
5266         (vectorizable_type_promotion, vectorizable_store): Likewise.
5267         (vectorizable_condition): Fix comment.
5268         (vect_analyze_stmt): Call vectorizable_shift.
5269         (vect_transform_stmt): Likewise.
5270         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
5271         Use it as the operand to create vectors for, except reduction
5272         initial definition and store.  Use operands type.
5273         (vect_get_slp_defs): Add new arguments.  Pass them to
5274          vect_get_constant_vectors.
5275
5276 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5277
5278         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
5279         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
5280         * cfghooks.c (fixup_reorder_chain): Likewise.
5281         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
5282         * cgraph.c (cgraph_add_thunk): Likewise.
5283         (cgraph_create_edge_1): Likewise.
5284         (cgraph_create_virtual_clone): Likewise.
5285         * ddg.c (add_cross_iteration_register_deps): Likewise.
5286         * dwarf2out.c (modified_type_die): Likewise.
5287         * emit-rtl.c (set_mem_alias_set): Likewise.
5288         * ggc-zone.c (zone_allocate_marks): Likewise.
5289         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
5290         * gimple.c (iterative_hash_gimple_type): Likewise.
5291         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
5292         (create_single_exit_edge): Likewise.
5293         * haifa-sched.c (choose_ready): Likewise.
5294         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5295         * passes.c (execute_todo): Likewise.
5296         * sched-ebb.c (begin_schedule_ready): Likewise.
5297         * sel-sched.c (code_motion_process_successors): Likewise.
5298         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
5299         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
5300         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
5301         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
5302         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
5303         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
5304         (ssa_conflicts_add): Likewise.
5305         * tree-ssa-copy.c (replace_exp): Likewise.
5306         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
5307         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
5308         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5309         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
5310         (compute_antic): Likewise.
5311         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
5312         (add_dependence): Likewise.
5313         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
5314         * tree-vrp.c (supports_overflow_infinity): Likewise.
5315         (make_overflow_infinity, negative_overflow_infinity): Likewise.
5316         (avoid_overflow_infinity, register_new_assert_for): Likewise.
5317         (process_assert_insertions_for): Likewise.
5318         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
5319         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
5320         (intersect_loc_chains, variable_merge_over_cur): Likewise.
5321
5322 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5323
5324         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
5325         * reload1.c (has_nonexceptional_receiver): Likewise.
5326         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
5327         (create_new_def_for): Likewise.
5328         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
5329         (merge_phi_nodes): Likewise.
5330         (has_abnormal_incoming_edge_p): Delete.
5331
5332 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
5333
5334         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
5335
5336 2010-10-21  Richard Guenther  <rguenther@suse.de>
5337             Michael Matz  <matz@suse.de>
5338
5339         PR tree-optimization/45764
5340         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5341         Adjust initial misalignment for negative DR_STEP.
5342         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
5343         do not have the same alignment over the whole iteration domain.
5344
5345 2010-10-21  Richard Guenther  <rguenther@suse.de>
5346
5347         PR tree-optimization/46111
5348         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
5349
5350 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5351
5352         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
5353
5354 2010-10-21  Tristan Gingold  <gingold@adacore.com>
5355
5356         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
5357         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
5358
5359 2010-10-21  Tristan Gingold  <gingold@adacore.com>
5360
5361         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
5362         signal_frame.
5363         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
5364
5365 2010-10-21  Tristan Gingold  <gingold@adacore.com>
5366
5367         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
5368         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
5369
5370 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
5371
5372         * basic-block.h (find_fallthru_edge): Define.
5373         * cfgcleanup.c (merge_blocks_move): Use it.
5374         (try_crossjump_bb): Likewise.
5375         * cfglayout.c (fixup_reorder_chains): Likewise.
5376         (fixup_fallthru_exit_predecessor): Likewise.
5377         * cfgrtl.c (rtl_split_edge): Likewise.
5378         (rtl_verify_flow_info): Likewise.
5379         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5380         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
5381         * ifcvt.c (block_fallthru): Likewise.
5382         * reload1.c (fixup_abnormal_edges): Likewise.
5383         * sched-ebb.c (being_schedule_ready): Likewise.
5384         (schedule_ebb): Likwise.
5385         * sched-rgn.c (find_single_block_region): Likewise.
5386         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
5387         * tree-complex.c (expand_complex_move): Likewise.
5388         * sched-int.h (find_fallthru_edge): Rename to...
5389         (find_fallthru_edge_from): ...this.
5390         * haifa-sched.c (find_fallthru_edge): Rename to...
5391         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
5392         (init_before_recovery): Call find_fallthru_edge_from.
5393         * sel-sched-ir.c (merge_fences): Likewise.
5394         * sel-sched.c (in_fallthru_bb_p): Likewise.
5395         (move_cond_jump): Likewise.
5396
5397 2010-10-20  Paul Koning  <ni1d@arrl.net>
5398
5399         * config/pdp11/pdp11.md (various): Fix conditions on a number of
5400         insn to check for target 11/40 or higher.
5401
5402 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
5403
5404         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
5405         bool instead of a tree.
5406         (c_parser_objc_method_decl): Added bool argument.  Updated call to
5407         objc_build_method_signature.
5408         (c_parser_objc_method_definition): Do not call
5409         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
5410         c_parser_objc_method_decl and objc_start_method_definition.
5411         (c_parser_objc_methodproto): Do not call objc_set_method_type.
5412         Updated calls to c_parser_objc_method_type,
5413         c_parser_objc_method_decl and objc_add_method_declaration.
5414
5415 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
5416
5417         PR tree-optimization/45919
5418         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
5419         array members.
5420
5421         PR tree-optimization/46066
5422         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
5423         instead of gsi_last_bb.
5424
5425 2010-10-20  DJ Delorie  <dj@redhat.com>
5426
5427         * config/m32c/m32c.c (m32c_option_override): Always disable
5428         function-cse in 16-bit mode.  Indirect calls are always worse than
5429         direct calls as there is no 16-bit indirect call opcode.
5430         (m32c_override_options_after_change): New, likewise.
5431
5432 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
5433
5434         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
5435         emitting the conditional move in the inner mode of the SUBREG.
5436
5437 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
5438
5439         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
5440         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
5441         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5442         (ia64_preferred_reload_class): Make static.  Change rclass argument
5443         and result types from enum reg_class to reg_class_t.
5444
5445 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
5446
5447         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
5448         call for single operand expression.
5449
5450 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
5451
5452         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
5453         if there is a call statement to pure or const function in the block.
5454
5455 2010-10-20  Paul Koning  <pkoning@equallogic.com>
5456
5457         Fix several build errors for pdp11 target.
5458         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
5459         (cbranchdf4): Conditional on TARGET_FPU.
5460         (movdf): Ditto; correct alternatives check.
5461         (movmemhi): Fix predicate and constraint.
5462         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
5463
5464 2010-10-20  Richard Guenther  <rguenther@suse.de>
5465
5466         PR lto/45667
5467         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
5468         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
5469         (verify_gimple_assign_single): Disable ADDR_EXPR type check
5470         when in LTO.
5471
5472 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
5473
5474         PR fortran/42169
5475         * ira-emit.c (store_can_be_removed_p): Return false instead of
5476         gcc_unreachable.
5477
5478 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
5479
5480         * fold-const.c (fold_binary_loc): New transformation.
5481
5482 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5483
5484         PR target/46085
5485         * config/i386/sse.md (reduc_splus_v8sf): Updated.
5486         (reduc_splus_v4df): Likewise.
5487
5488 2010-10-20  Richard Guenther  <rguenther@suse.de>
5489
5490         PR tree-optimization/45860
5491         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
5492         conditional store replacement for non-register type stores.
5493
5494 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
5495
5496         * stor-layout.c (skip_simple_constant_arithmetic): New function.
5497         (self_referential_size): Use it instead of skip_simple_arithmetic.
5498
5499 2010-10-20  Olivier Hainque  <hainque@adacore.com>
5500
5501         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
5502         If the current function calls eh_return, claim live all registers
5503         that we need to check for liveness otherwise.
5504
5505 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
5506
5507         * c-decl.c (c_write_global_declarations): Call
5508         objc_write_global_declarations when compiling Objective-C.
5509         * c-lang.c (finish_file): Removed.
5510
5511 2010-10-19  DJ Delorie  <dj@redhat.com>
5512
5513         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
5514         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
5515         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5516         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5517         * doc/tm.texi: Regenerate.
5518         * targhooks.h (default_label_align_after_barrier_max_skip,
5519         default_loop_align_max_skip, default_label_align_max_skip,
5520         default_jump_align_max_skip): Declare.
5521         * target.def (label_align_after_barrier_max_skip): New.
5522         (loop_align_max_skip): New.
5523         (label_align_max_skip): New.
5524         (jump_align_max_skip): New.
5525         * system.h (poison): Add those macros to the list.
5526         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
5527         (LOOP_ALIGN_MAX_SKIP): Remove.
5528         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
5529         (JUMP_ALIGN_MAX_SKIP): Remove.
5530         (default_label_align_after_barrier_max_skip): New.
5531         (default_loop_align_max_skip): New.
5532         (default_label_align_max_skip): New.
5533         (default_jump_align_max_skip): New.
5534         (compute_alignments): Use the new hooks.
5535         (shorten_branches): Likewise.
5536
5537 2010-10-19  Richard Henderson  <rth@redhat.com>
5538
5539         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
5540         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
5541         (fma4i_fmadd_<mode>): New.
5542         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
5543         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
5544         standard fma patterns.
5545         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
5546         enable for FMA.
5547         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5548         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5549         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
5550
5551 2010-10-19  Paul Koning  <pkoning@equallogic.com>
5552
5553         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
5554         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
5555
5556 2010-10-19  Richard Henderson  <rth@redhat.com>
5557
5558         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
5559         (fmadf4, *fmsdf4, *nfmadf4): New.
5560         (fmaxf4, *fmsxf4, *nfmaxf4): New.
5561
5562 2010-10-19  Michael Eager  <eager@eagercon.com>
5563
5564         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
5565         Use sjlj unwind info for exceptions.
5566
5567 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
5568
5569         PR fortran/43414
5570         * dwarf2out.c (add_calling_convention_attribute): Flag main
5571         Fortran subroutine with DW_AT_main_subprogram.
5572
5573 2010-10-19  Nick Clifton  <nickc@redhat.com>
5574
5575         * config/rx/rx.c (rx_function_value): Small integer types are
5576         promoted to SImode.
5577         (rx_promote_function_mode): New function.
5578         (TARGET_PROMOTE_FUNCTION_MODE): Define.
5579
5580 2010-10-19  Nick Clifton  <nickc@redhat.com>
5581
5582         * config/mep/mep.c (mep_print_operand): Use
5583         targetm.strip_name_encoding.
5584         (mep_output_aligned_common): Likewise.
5585
5586 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
5587
5588         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
5589
5590 2010-10-18  Richard Henderson  <rth@redhat.com>
5591
5592         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
5593         (fma (neg a) (neg b) c) and (fma a (neg b) c).
5594
5595 2010-10-18  Richard Henderson  <rth@redhat.com>
5596
5597         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
5598         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
5599         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
5600         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
5601         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
5602         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
5603         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
5604         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
5605         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
5606         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
5607         (bdesc_multi_arg): Remove the corresponding builtins.
5608         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
5609         (UNSPEC_FMA4_FMSUBADD): Remove.
5610         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
5611         * config/i386/sse.md (FMA4MODEF4): Remove.
5612         (FMAMODE): Add.
5613         (fma<mode>4): New expander.
5614         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
5615         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
5616         (*fma4i_fmsub_<mode>): Similarly.
5617         (*fma4i_fnmadd_<mode>): Similarly.
5618         (*fma4i_fnmsub_<mode>): Similarly.
5619         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
5620         with the first operand.
5621         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
5622         of explicit arithmetic.  Macroize with AVXMODEF2P.
5623         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
5624         (xop_frcz<mode>2): Macroize with FMAMODE.
5625         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
5626         the first operand.
5627         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
5628         extra negations.
5629         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
5630         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
5631         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
5632         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
5633         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
5634         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
5635         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
5636         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
5637
5638 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
5639
5640         PR rtl-optimization/45966
5641         * combine.c (try_combine): If added_sets_2, deal with the case
5642         where i0 feeds i1 and i1 feeds i2.
5643
5644 2010-10-18  Jan Hubicka  <jh@suse.cz>
5645
5646         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
5647         preserve flags before trying to guess on visibility.
5648         (varpool_externally_visible_p): New function.
5649         (function_and_variable_visibility): Use it.
5650
5651 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
5652
5653         Implemented parsing @synthesize and @dynamic for Objective-C.
5654         * c-parser.c (c_parser_external_declaration): Recognize
5655         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5656         (c_parser_objc_at_synthesize_declaration): New.
5657         (c_parser_objc_at_dynamic_declaration): New.
5658
5659 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
5660
5661         * c-parser.c (c_parser_objc_class_declaration): After finding an
5662         error, parse the whole declaration then reset parser->error.
5663
5664 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5665
5666         PR target/46041
5667         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
5668         * builtins.c (mode_has_fma): Ditto.
5669
5670 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
5671
5672         PR target/36898
5673         PR middle-end/43760
5674         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
5675
5676 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
5677
5678         * config/i386/i386.c (ix86_option_override_internal): Define and
5679         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
5680         default.
5681         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5682         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
5683
5684 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
5685
5686         Merge from 'apple/trunk' branch on FSF servers.
5687         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
5688         following Objective-C change:
5689
5690         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
5691
5692         Radar 4301047
5693         * c-parse.in (objc_quals): Build objc qualifier list same way
5694         as gcc-3.3
5695
5696 2010-10-18  Jan Hubicka  <jh@suse.cz>
5697
5698         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
5699         function_and_variable_visibility): Revert accidental commit.
5700
5701 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
5702
5703         Merge from 'apple/trunk' branch on FSF servers.
5704         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
5705         the following Objective-C change:
5706
5707         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
5708
5709         Radar 4204796
5710         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
5711         'volatilized' type used in a typeof operator.
5712
5713 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
5714
5715         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
5716         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
5717         rewrite modelled on gimple_purge_dead_eh_edges.
5718         (gimple_purge_all_dead_abnormal_call_edges): New function.
5719         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
5720         directly instead of through gimple_purge_dead_abnormal_call_edges.
5721         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
5722         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
5723         removed AB side-effects from one of its statements.
5724         (init_pre): Initialize need_ab_cleanup.
5725         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
5726         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
5727
5728 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
5729
5730         PR c/46015
5731         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
5732         on computed goto argument.
5733
5734 2010-10-18  Richard Guenther  <rguenther@suse.de>
5735
5736         PR tree-optimization/45967
5737         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
5738         (could_have_pointers): Likewise.
5739         (handle_rhs_call, handle_const_call, handle_pure_call,
5740         find_func_aliases, intra_create_variable_infos): Remove calls to them.
5741         (struct fieldoff): Add must_have_pointers field.
5742         (type_must_have_pointers): New function.
5743         (field_must_have_pointers): Likewise.
5744         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
5745         Adjust field merging.
5746         (create_function_info_for): May-have-pointers of varinfo is
5747         almost always true.
5748         (create_variable_info_for_1): Likewise.
5749
5750 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
5751
5752         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
5753         of operands to vec_concat.
5754
5755 2010-10-18  Richard Guenther  <rguenther@suse.de>
5756
5757         PR lto/44950
5758         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
5759         also clear references to entries of it.
5760
5761 2010-10-18  Andi Kleen  <ak@linux.intel.com>
5762
5763         PR other/43448
5764         * gccbug.in: Remove.
5765         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
5766         (doc, distclean, install-common): Remove reference to gccbug.
5767         * configure: Regenerate.
5768         * configure.ac (all_outputs): Remove gccbug.
5769         * doc/configfiles.texi: Remove references to gccbug.
5770         * doc/sourcebuild.texi: Dito.
5771
5772 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
5773
5774         PR middle-end/46019
5775         * fold-const.c (fold_binary_loc): If integer_pow2p has
5776         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
5777
5778 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
5779             Jeremie Salvucci  <jeremie.salvucci@free.fr>
5780
5781         * gengtype.c (verbosity_level): Add variable.
5782         (set_gc_used): Count variables for verbosity.
5783         (close_output_files): Backing up files, counting written ones
5784         verbosily.
5785         (write_types): Count emitted functions for verbosity. Added
5786         debug messages.
5787         (write_enum_defn): Count structures for verbosity. Added debug
5788         messages.
5789         (gengtype_long_options): Add "verbose" & "backupdir".
5790         (print_usage): Ditto.
5791         (main): Verbose display of parsed files.
5792
5793         * gengtype.h (verbosity_level): Add declaration.
5794
5795 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
5796
5797         * gengtype.c (parse_program_options): Add allocation of
5798         plugin_files, and correct test on nb_plugin_files.
5799
5800 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
5801
5802         Merge from 'apple/trunk' branch on FSF servers.
5803
5804         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
5805
5806         Radar 4133425
5807         * c-decl.c (undeclared_variable): Issue diagnostic on
5808         private 'ivar' access.
5809
5810 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
5811
5812         PR target/46051
5813         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
5814         generated sequence to match *avx_vperm2f128<mode>_nozero.
5815         (vec_interleave_lowv4df): Ditto.
5816         (vec_interleave_highv8sf): Ditto.
5817         (vec_interleave_lowv8sf): Ditto.
5818
5819 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
5820
5821         * libgcov.c (create_file_directory): Enable it for win32 case.
5822         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
5823         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
5824         (GCOV_PREFIX_SKIP): Likewise.
5825
5826 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
5827
5828         * doc/objc.texi (GNU Objective-C runtime API): New section.
5829         (Modern GNU Objective-C runtime API): New section.
5830         (Traditional GNU Objective-C runtime API): New section.
5831         (Executing code before main): Mention that this section is
5832         specific to the GNU Objective-C runtime.
5833         (Garbage Collection): Same.
5834
5835 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
5836
5837         * c-parser.c (c_parser_for_statement): Move initialization of
5838         cond and incr before if.
5839
5840 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
5841
5842         * target.def (preferred_output_reload_class): New hook.
5843         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
5844         * doc/tm.texi: Regenerate.
5845         * targhooks.c (default_preferred_output_reload_class): New function.
5846         * targhooks.h (default_preferred_output_reload_class): Declare.
5847         * reload.c (find_dummy_reload): Change rclass argument type from
5848         enum reg_class to reg_class_t. Change this_alternative array type
5849         from enum reg_class to reg_class_t.
5850         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5851         (push_reload): Change preferred_class variable type to reg_class_t.
5852         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5853         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
5854         argument type from enum reg_class to reg_class_t. Use
5855         HARD_REGISTER_NUM_P predicate.
5856         * recog.h (reg_fits_class_p): Update prototype.
5857
5858         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5859         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
5860         Remove.
5861         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
5862         static. Change regclass argument and result types from enum reg_class
5863         to reg_class_t.
5864         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5865
5866 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
5867
5868         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
5869         visibility enum, and handle @package.
5870
5871 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
5872
5873         * doc/objc.texi (What you can and what you cannot do in +load):
5874         Document that sending messages to constant string objects in +load
5875         is not guaranteed to work.
5876
5877 2010-10-16  Jan Hubicka  <jh@suse.cz>
5878
5879         PR middle-end/44206
5880         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
5881         existence of refrences before removing the function.
5882
5883 2010-10-16  Jan Hubicka  <jh@suse.cz>
5884
5885         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
5886         only_called_at_startup and only_called_at_exit.
5887         (cgraph_propagate_frequency): Compute only_called_at_startup and
5888         only_called_at_exit.
5889         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
5890         only_called_at_exit.
5891         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
5892         flags.
5893         * predict.c (compute_function_frequency): Initialize the new flags.
5894
5895 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5896
5897         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
5898         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
5899         on the bounds of its domain.
5900         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
5901
5902 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
5903
5904         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
5905         * config/avr/avr-protos.h (preferred_reload_class): Remove.
5906         * config/avr/avr.c (preferred_reload_class): Remove.
5907         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
5908         * config/pa/pa.c (emit_move_sequence): Update comment
5909         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
5910         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
5911         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
5912         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
5913         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
5914         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
5915         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
5916         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
5917         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
5918         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
5919         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
5920         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
5921         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
5922
5923 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
5924
5925         * opts.c (set_fast_math_flags,
5926         set_unsafe_math_optimizations_flags): Make static.
5927         * toplev.h (set_fast_math_flags,
5928         set_unsafe_math_optimizations_flags): Remove prototypes.
5929
5930 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
5931
5932         * config/arm/arm.c (arm_option_optimization): Set
5933         flag_section_anchors to 1 not 2.
5934         * config/i386/i386.c (ix86_option_override_internal): Check
5935         global_options_set.x_flag_zee and
5936         global_options_set.x_flag_omit_frame_pointer.
5937         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
5938         flag_zee to 2.
5939         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5940         global_options_set.x_flag_omit_frame_pointer.
5941         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
5942         opts->x_flag_section_anchors to 1 not 2.
5943         * config/sh/sh.c (sh_option_optimization): Don't set
5944         flag_schedule_insns to 2.
5945         (sh_option_override): Check
5946         global_options_set.x_flag_schedule_insns.
5947         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
5948
5949 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
5950
5951         * configure.ac: Make sure inhibit_libc remains false for mingw targets
5952         as cross.
5953         * configure: Regenerated.
5954
5955 2010-10-15  Xinliang David Li  <davidxl@google.com>
5956
5957         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
5958         function.
5959         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
5960         into a recursive function.
5961
5962 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
5963
5964         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
5965         (*movdfcc_1): ditto.
5966
5967 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
5968
5969         * target.def (target_option.init_struct): New hook.
5970         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
5971         * doc/tm.texi: Regenerate.
5972         * hooks.c (hook_void_gcc_optionsp): New.
5973         * hooks.h (hook_void_gcc_optionsp): Declare.
5974         * langhooks-def.h (lhd_init_options_struct): Remove.
5975         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
5976         * langhooks.c (lhd_init_options_struct): Remove.
5977         * opts.c (init_options_struct): Also call
5978         targetm.target_option.init_struct.
5979         * config/i386/i386.c (ix86_option_init_struct,
5980         TARGET_OPTION_INIT_STRUCT): New.
5981         (ix86_option_optimization): Move some settings to
5982         ix86_option_init_struct.
5983         * config/pdp11/pdp11.c (pdp11_option_init_struct,
5984         TARGET_OPTION_INIT_STRUCT): New.
5985         (pdp11_option_optimization): Move some settings to
5986         pdp11_option_init_struct.
5987         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
5988         rs6000_option_init_struct.  Use options structure pointer.
5989         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5990         * config/s390/s390.c (s390_option_init_struct,
5991         TARGET_OPTION_INIT_STRUCT): New.
5992         (s390_option_optimization): Don't set
5993         flag_asynchronous_unwind_tables here.
5994         * config/sh/sh.c (sh_option_init_struct,
5995         TARGET_OPTION_INIT_STRUCT): New.
5996         (sh_option_optimization): Don't set flag_finite_math_only here.
5997         * config/spu/spu.c (spu_option_optimization): Replace by
5998         spu_option_optimization.  Use options structure pointer.
5999         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
6000
6001 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6002
6003         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
6004
6005         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
6006         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
6007         (Standard names): Document fma.
6008
6009         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
6010         __FP_FAST_FMAF, __FP_FAST_FMAL.
6011
6012         * builitns.c (expand_builtin_mathfn_ternary): New function for
6013         expanding ternary math functions, like fma.
6014         (expand_builtin): Call it for the fma builtins.
6015
6016         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
6017         ops at present.
6018
6019         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
6020         vectorizable functions to support vectorizing fma.
6021
6022         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6023         Handle fma builtins.
6024
6025         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
6026         (UNSPEC_VSX_MSUB): Ditto.
6027         (UNSPEC_VSX_NMADD): Ditto.
6028         (UNSPEC_VSX_NMSUB): Ditto.
6029         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
6030         of UNSPEC. Renumber combiner patterns.
6031         (vsx_fmsub<mode>4*): Ditto.
6032         (vsx_fnmadd<mode>4*): Ditto.
6033         (vsx_fnmsub<mode>4*): Ditto.
6034
6035         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
6036         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
6037         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
6038         (altivec_vmaddfp_1): Ditto.
6039         (altivec_vmaddfp_2): Ditto.
6040         (atlivec_mulv4sf3): Ditto.
6041         (altivec_vnmsubfp): Ditto.
6042         (altivec_vnmsubfp_1): Ditto.
6043         (altivec_vnmsubfp_2): Ditto.
6044         (altivec_vnmsubfp_3): Delete.
6045
6046         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
6047         (fmasf4_fpr): Ditto.
6048         (fmssf4_fpr): Ditto.
6049         (fnmasf4_fpr): Ditto.
6050         (fnmssf4_fpr): Ditto.
6051         (fmadf4): Ditto.
6052         (fmadf4_fpr): Ditto.
6053         (fmsdf4_fpr): Ditto.
6054         (fnmadf4_fpr): Ditto.
6055         (fnmsdf4_fpr): Ditto.
6056
6057         * optabs.h (OTI_fma): Add fma optab.
6058         (fma_optab): Ditto.
6059
6060         * genopinit.c (optabs): Set fma optab.
6061
6062         * rtl.def (FMA): Add FMA rtl.
6063
6064         * tree.h (mode_has_fma): New function to return if MODE supports a
6065         fast multiply and add instruction.
6066         * builtins.c (mode_has_fma): Ditto.
6067
6068 2010-10-15  Jan Hubicka  <jh@suse.cz>
6069
6070         * lto-streamer-out.c (write_symbol): Use pointer set of seen
6071         objects instead of bitmap.
6072         (produce_symtab): Likewise; output defined symbols first.
6073
6074 2010-10-15  Jie Zhang  <jie@codesourcery.com>
6075
6076         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
6077         Option Summary and Index.
6078
6079 2010-10-15  Richard Guenther  <rguenther@suse.de>
6080
6081         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
6082         for automatic variables again.
6083
6084 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6085
6086         * doc/extend.texi (Variable Length): Don't refer to VLAs not
6087         conforming to C99.
6088
6089 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6090
6091         * config/rx/rx.c (rx_option_optimization): Change to
6092         rx_override_options_after_change.  Don't change
6093         flag_lto_compression_level.  Don't check for changes to whether
6094         FPU instructions can be used.  Check and set only
6095         flag_finite_math_only, not other fast-math flags.
6096         (rx_option_override): Call rx_override_options_after_change.
6097         (TARGET_OPTION_OPTIMIZATION): Remove.
6098         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6099
6100 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6101
6102         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
6103         disable section anchors for lang_hooks.name[4] != 'O'.
6104
6105 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6106
6107         * config/frv/frv.c (frv_option_optimization,
6108         TARGET_OPTION_OPTIMIZATION): Remove.
6109         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
6110
6111 2010-10-15  Michael Matz  <matz@suse.de>
6112
6113         * cgraphunit.c (clone_of_p): Define unconditionally.
6114
6115 2010-10-15  Richard Guenther  <rguenther@suse.de>
6116
6117         PR lto/45957
6118         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
6119
6120 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
6121
6122         * ifcvt.c (find_active_insn_before): New function.
6123         (find_active_insn_after): New function.
6124         (cond_exec_process_if_block): Use new functions to replace
6125         prev_active_insn() and next_active_insn().
6126
6127 2010-10-14  Yao Qi  <yao@codesourcery.com>
6128
6129         PR target/45447
6130         * config/arm/arm.c (arm_build_builtin_va_list): Assign
6131         va_list_name to TYPE_STUB_DECL (va_list_type).
6132
6133 2010-10-14  Jan Hubicka  <jh@suse.cz>
6134
6135         PR middle-end/45621
6136         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
6137         redirected to clone, be happy.
6138         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
6139         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
6140         former_clone_of unconditionally.
6141
6142 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
6143
6144         Merge from FSF apple 'trunk' branch.
6145         2006 Fariborz Jahanian  <fjahanian@apple.com>
6146
6147         Radars 4436866, 4505126, 4506903, 4517826
6148         * c-parser.c (c_parser, objc_property_attr_context) New flag.
6149         (c_lex_one_token): Handle property attributes.
6150         (c_parser_external_declaration): Handle @property.
6151         (c_parser_declaration_or_fndef): Warn on invalid attributes before
6152         @alias, @class, @end and @property objc keywords.
6153         (c_parser_objc_methodprotolist): Handle @property.
6154         (c_parser_objc_property_attrlist): New.
6155         (c_parser_objc_at_property): New.
6156         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
6157         (build_modify_expr): Likewise.
6158
6159 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
6160
6161         PR tree-optimization/46008
6162         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
6163
6164 2010-10-14  Richard Guenther  <rguenther@suse.de>
6165
6166         PR tree-optimization/44913
6167         * tree-data-ref.c (disjoint_objects_p): Remove.
6168         (dr_may_alias_p): Simplify.  Only hand the base object to
6169         the alias-oracle.
6170         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6171         some more trees, bail out instead of asserting.
6172         (ptr_derefs_may_alias_p): Likewise.  Export.
6173         (refs_may_alias_p_1): Handle STRING_CSTs.
6174         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
6175
6176 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
6177
6178         PR c/45969
6179         * c-typeck.c (build_binary_op): Don't try to compute a semantic
6180         type with excess precision for boolean operations.
6181
6182 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6183             Basile Starynkevitch  <basile@starynkevitch.net>
6184
6185         * gengtype.c:  Include getopt.h and version.h.
6186
6187         (lang_bitmap, struct outf, outf_p)
6188         (get_output_file_with_visibility, oprintf): Definitions moved to
6189         gengtype.h
6190         (output_files, header_file, srcdir, srcdir_len, this_file)
6191         (do_dump): No more static variables.
6192         (do_debug): New.
6193         (dbgprint_count_type_at): Added new function.
6194         (gengtype_long_options): New.
6195         (print_usage, print_version, parse_program_options): New.
6196         (main): Call parse_program_options, and removed old option
6197         handling code.  Added some debug output.
6198
6199         * gengtype.h:  Updated copyright year.
6200         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
6201         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
6202         Moved from gengtype.c to here.
6203         (do_debug, read_state_filename, write_state_filename): New variables.
6204         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
6205
6206         * Makefile.in:
6207         (REVISION): Always defined.
6208         (version.o): Removed ifdef REVISION_c.
6209         (s-gtype): Pass arguments to build/gengtype program.
6210         (build/version.o): Added building rule.
6211         (build/gengtype$(build_exeext)): Added build/version.o.
6212
6213 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
6214
6215         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
6216         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
6217         __strong macros.
6218
6219 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6220
6221         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
6222         may_trap_or_fault_p instead of may_trap_p predicate.
6223         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
6224         (substitute_placeholder_in_expr): Likewise.
6225         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
6226         flag on MEM_REF nodes.
6227         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
6228         flags on INDIRECT_REF nodes.
6229
6230 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
6231
6232         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
6233         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
6234         (arm*-*-eabi*) <tm_file>: Likewise.
6235         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
6236         (frv-*-*linux*) <tm_file>: Likewise.
6237         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
6238         and associated helper macros.
6239         * config/frv/frv-abi.h: Delete.
6240
6241 2010-10-14  Richard Guenther  <rguenther@suse.de>
6242
6243         PR lto/44561
6244         * tree.def (NULLPTR_TYPE): New tree code.
6245         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
6246         * dwarf2out.c (is_base_type): Likewise.
6247         (gen_type_die_with_usage): Likewise.
6248         * sdbout.c (plain_type_1): Likewise.
6249         * tree.c (build_int_cst_wide): Likewise.
6250         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
6251
6252 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
6253
6254         * params.c (params_finished): New.
6255         (add_params): Assert !params_finished.
6256         (finish_params): New.
6257         (set_param_value_internal): Take params and params_set
6258         parameters.  Assert params_finished.
6259         (set_param_value, maybe_set_param_value): Take params and
6260         params_set parameters.  Update calls to set_param_value_internal.
6261         (set_default_param_value): Assert !params_finished.  Don't use
6262         set_param_value_internal.
6263         (default_param_value, init_param_values): New.
6264         * params.h (struct param_info): Change value to default_value.
6265         Remove set.
6266         (set_param_value, maybe_set_param_value): Add params and
6267         params_set parameters.
6268         (PARAM_VALUE): Get parameters from global_options.
6269         (PARAM_SET_P): Remove.
6270         (finish_params, default_param_value, init_param_values): New.
6271         * common.opt (param_values): New Variable.
6272         * config/arm/arm.c (arm_option_override): Pass extra arguments to
6273         maybe_set_param_value.
6274         * config/i386/i386.c (ix86_option_override_internal): Pass extra
6275         arguments to maybe_set_param_value.
6276         * config/picochip/picochip.c (picochip_option_override): Pass
6277         extra arguments to maybe_set_param_value.
6278         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
6279         extra arguments to maybe_set_param_value.
6280         * config/s390/s390.c (s390_option_override): Use
6281         maybe_set_param_value instead of set_param_value.  Pass extra
6282         arguments to maybe_set_param_value.
6283         * config/sparc/sparc.c (sparc_option_override): Pass extra
6284         arguments to maybe_set_param_value.
6285         * config/spu/spu.c (spu_option_override): Pass extra arguments to
6286         maybe_set_param_value.
6287         * opts.c (handle_param): Take opts and opts_set parameters.
6288         Update call to set_param_value.
6289         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
6290         initial_loop_invariant_max_bbs_in_loop): Remove.
6291         (init_options_once): Don't set them.
6292         (init_options_struct): Initialize parameters structures.
6293         (default_options_optimization): Use default_param_value when
6294         restoring defaults.  Update calls to maybe_set_param_value.
6295         (finish_options): Update calls to maybe_set_param_value.
6296         (common_handle_option): Update calls to handle_param and
6297         set_param_value.
6298         * toplev.c (DEFPARAM): Update definition for changes to param_info.
6299         (general_init): Call finish_params.
6300
6301 2010-10-14  Nick Clifton  <nickc@redhat.com>
6302
6303         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
6304         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
6305         (FIRST_PSEUDO_REGISTER): Increase by one.
6306         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
6307         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
6308         (MODES_TIEABLE): Call mn10300_modes_tieable.
6309         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
6310         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
6311         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
6312         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
6313         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
6314         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6315         (mn10300_cc_status_mdep): Delete.
6316         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
6317         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
6318         the combine-stack-adjust pass.
6319         (print_operand): Use the mode of the comparison operation to
6320         select the comparison suffix.
6321         (notice_update_cc): Delete.
6322         (mn10300_secondary_reload_class): Remove test for stack pointer
6323         based arithmetic.
6324         (output_tst): Rename to mn10300_output_cmp.
6325         (impossible_plus_operand): Move into predicates.md.
6326         (mn10300_legitimize_address): Make static.
6327         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
6328         constant pic operands.
6329         (mn10300_legitimate_constant_p): New function.
6330         (mn10300_case_values_threshold): Make static.
6331         (mn10300_hard_regno_mode_ok): New function.
6332         (mn10300_modes_tieable): New function.
6333         (mn10300_select_cc_mode): New function.
6334         * config/mn10300/predicates.md (impossible_plus_operand): Define.
6335         * config/mn10300/mn10300-protos.h: Tidy.
6336         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
6337         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
6338         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
6339         with clobbers or sets of CC_REG.
6340         (CC_REG): Define.
6341         (mov*): Remove use of CLR instruction.
6342         (cbranch_si4_<code>): New pattern/split.
6343         (integer_conditional_branch): New pattern.
6344         (cbranch_sf4_<code>): New pattern/split.
6345         (float_conditional_branch): New pattern.
6346         (casesi): Use addsi3 pattern instead of movsi pattern to add and
6347         move a value at the same time.
6348         (cc0 peepholes): Remove.
6349
6350 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
6351
6352         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
6353         on RTX_FRAME_RELATED_P insns and the insn to which
6354         NOTE_INSN_EPILOGUE_BEG is attached.
6355         * sched-vis.c (print_value): Allow NULL value.
6356
6357 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
6358
6359         PR rtl-optimization/45570
6360         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
6361         assert that we are pipelining outer loops.  Allow returning
6362         zero predecessors.
6363
6364 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
6365
6366         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
6367         (tidy_control_flow): Tidy vertical space.
6368         (sel_remove_bb): New variable idx.  Use it to remember the basic
6369         block index before deleting the block.
6370         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
6371         (sel_merge_blocks): ... here.
6372         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
6373
6374 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
6375
6376         * cse.c (is_dead_reg): Change into inline function that is not
6377         called through for_each_rtx.
6378         (set_live_p): Adjust caller.
6379         (insn_live_p): Don't reset DEBUG_INSNs here.
6380         (struct dead_debug_insn_data): New data.
6381         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
6382         (delete_trivially_dead_insns): If there is just one setter for the
6383         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
6384         and add DEBUG_INSN for it right before the removed setter and
6385         use the DEBUG_EXPR instead of the dead pseudo.
6386
6387 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
6388
6389         * et-forest.c (et_nca): Return NULL immediately when
6390         the dominance forest has disjoint components.
6391
6392 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
6393
6394         * ira.c (setup_class_hard_regs): Fix typo in indexing
6395         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
6396
6397 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
6398
6399         * graph.c (inbb): New variable.
6400         (start_bb): Set inbb to 1 if output is inside of a building block.
6401         (end_bb): Check if output is inside of a building block.
6402
6403 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
6404
6405         PR rtl-optimization/45912
6406         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
6407         regno of registers instead of their index to compute the alignment.
6408
6409 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
6410
6411         * config/i386/i386.c (ix86_build_const_vector): Check vector
6412         mode instead of scalar mode.
6413         (ix86_build_signbit_mask): Likewise.
6414         (ix86_expand_fp_absneg_operator): Updated.
6415         (ix86_expand_copysign): Likewise.
6416         (ix86_expand_int_vcond): Likewise.
6417         (ix86_emit_swdivsf): Likewise.
6418         (ix86_sse_copysign_to_positive): Likewise.
6419         (ix86_expand_sse_fabs): Likewise.
6420         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
6421         * config/i386/sse.md (copysign<mode>3): Likewise.
6422         (sse2_cvtudq2ps): Likewise.
6423         (vec_unpacku_float_hi_v4si): Likewise.
6424         (vec_unpacku_float_lo_v4si): Likewise.
6425
6426         * config/i386/i386.c (ix86_builtins): Add
6427         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
6428         (bdesc_args): Likewise.
6429         (ix86_builtin_vectorized_function): Support
6430         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
6431         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
6432         and IX86_BUILTIN_CVTPS2DQ256.
6433         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
6434
6435         * config/i386/sse.md (STORENT_MODE): New.
6436         (VEC_FLOAT_MODE): Likewise.
6437         (VEC_EXTRACT_MODE): Likewise.
6438         (*avx_cvtdq2pd256_2): Likewise.
6439         (vec_pack_trunc_v4df): Likewise.
6440         (vec_interleave_highv8sf): Likewise.
6441         (vec_interleave_lowv8sf): Likewise.
6442         (storent<mode>): Macroized.
6443         (<code><mode>2: absneg): Likewise.
6444         (copysign<mode>3): Likewise.
6445         (vec_extract<mode>): Likewise.
6446
6447         PR target/44180
6448         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
6449         for V8SFmode.
6450
6451 2010-10-13  Richard Guenther  <rguenther@suse.de>
6452             H.J. Lu  <hongjiu.lu@intel.com>
6453
6454         * config/i386/sse.md (reduc_splus_v8sf): Add.
6455         (reduc_splus_v4df): Likewise.
6456         (vec_unpacks_hi_v8sf): Likewise.
6457         (vec_unpacks_lo_v8sf): Likewise.
6458         (*avx_cvtps2pd256_2): Likewise.
6459         (vec_unpacks_float_hi_v8si): Likewise.
6460         (vec_unpacks_float_lo_v8si): Likewise.
6461         (vec_interleave_highv4df): Likewise.
6462         (vec_interleave_lowv4df): Likewise.
6463
6464 2010-10-13  Richard Guenther  <rguenther@suse.de>
6465
6466         PR objc/45878
6467         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
6468         alone if there are no virtual methods.
6469
6470 2010-10-13  Richard Henderson  <rth@redhat.com>
6471
6472         * expr.c (build_personality_function): Take parameter LANG instead
6473         of parameter NAME.  Build the name based on the lang prefix and the
6474         unwind method in use.
6475         * tree.c (lhd_gcc_personality): Update call to
6476         build_personality_function.
6477
6478 2010-10-13  Richard Guenther  <rguenther@suse.de>
6479
6480         PR objc/45878
6481         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
6482
6483 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
6484
6485         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
6486         Canonicalize input operands of ASM_OPERANDS insns.
6487
6488 2010-10-13  Richard Guenther  <rguenther@suse.de>
6489
6490         PR tree-optimization/45788
6491         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
6492         EH update until fixup-cfg.
6493
6494 2010-10-13  Julian Brown  <julian@codesourcery.com>
6495
6496         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
6497         from CORE_REGS and GENERAL_REGS classes.
6498         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
6499         final constraint for register preferencing.
6500
6501 2010-10-13  Richard Guenther  <rguenther@suse.de>
6502
6503         PR tree-optimization/45970
6504         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
6505         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
6506         (stmt_kills_ref_p): Likewise.
6507         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
6508
6509 2010-10-13  Richard Guenther  <rguenther@suse.de>
6510
6511         PR tree-optimization/45982
6512         * tree-ssa-structalias.c (make_constraints_to): New function.
6513         (make_constraint_to): Implement in terms of make_constraints_to.
6514         (find_func_aliases): Properly make return values of pure/const
6515         functions escape if they assign to sth that is not a pointer.
6516
6517 2010-10-13  Richard Guenther  <rguenther@suse.de>
6518
6519         PR middle-end/45874
6520         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6521         Fixup the CFG when EH was fixed up.
6522
6523 2010-10-13  Ira Rosen  <irar@il.ibm.com>
6524
6525         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
6526         Use operand's type for POINTER_PLUS_EXPR.
6527
6528 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
6529
6530         * c-parser.c (c_parser_for_statement): Initialize incr.
6531
6532 2010-10-12  Xinliang David Li  <davidxl@google.com>
6533
6534         PR tree-optimization/45972
6535         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
6536         with too many arguments.
6537
6538 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
6539
6540         PR fortran/45636
6541         * tree-ssa-forwprop.c: Include expr.h.
6542         (constant_pointer_difference, simplify_builtin_call): New functions.
6543         (tree_ssa_forward_propagate_single_use_vars): Call
6544         simplify_builtin_call on builtin calls.
6545
6546 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
6547
6548         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
6549         (*adddi3_extend_sp32): Likewise.
6550         (*subdi3_insn_sp32): Likewise.
6551         (*subdi3_extend_sp32): Likewise.
6552         (*negdi2_sp32): Use negative test for consistency.
6553
6554 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
6555
6556         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
6557         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6558         * config/fixed-bit.h: Likewise.
6559         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6560         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6561         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
6562         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
6563         (DF_SIZE): Likewise.
6564         * doc/tm.texi: Regenerate.
6565
6566 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
6567
6568         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
6569         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
6570         (*isel_reversed_unsigned_<mode>): New.
6571         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
6572         as valid comparisons and adjust operands and output appropriately.
6573         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
6574
6575 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
6576
6577         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
6578         DATA_ALIGNMENT and add COND parameter. Update comments above.
6579         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
6580         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
6581
6582 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6583
6584         PR bootstrap/45958
6585         * exec-tool.in: Support '-plugin' as the second option to the linker.
6586
6587 2010-10-12  Richard Henderson  <rth@redhat.com>
6588
6589         PR middle-end/45962
6590         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
6591         (expand_stack_vars): Assert large base allocated when used.
6592
6593 2010-10-12  Richard Guenther  <rguenther@suse.de>
6594
6595         * tree-ssa-structalias.c (get_constraint_for_1): Constants
6596         only point to nonlocal, not anything.
6597
6598 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
6599
6600         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
6601         unwind info for exceptions.
6602
6603 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6604
6605         PR testsuite/45851
6606         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
6607         Document optional target selector.
6608
6609 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
6610
6611         * flag-types.h: New.
6612         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
6613         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
6614         options.h.
6615         (OPTIONS_H): Define.
6616         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
6617         of options.h.
6618         * configure.ac (tm_include_list): Include options.h not flags.h.
6619         * configure: Regenerate.
6620         * flags.h: Include flag-types.h.  Include options.h at top of file
6621         again.
6622         (enum debug_info_type, enum debug_info_level, enum
6623         debug_info_usage, enum symbol_visibility, struct visibility_flags,
6624         enum ira_algorithm, enum ira_region, enum excess_precision, enum
6625         graph_dump_types, enum stack_check_type,
6626         enum warn_strict_overflow_code): Move to flag-types.h
6627         * opth-gen.awk: Include flag-types.h in options.h.
6628
6629 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
6630
6631         * expr.c (store_expr): Share code for STRING_CST and
6632         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
6633         check if target is a MEM.
6634
6635         * rtl.h: Include hashtab.h.
6636         (iterative_hash_rtx): New prototype.
6637         * rtl.c (iterative_hash_rtx): New function.
6638         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
6639         (output_loc_list): Return immediately if emitted is set, set it.
6640         (hash_loc_operands, hash_locs, hash_loc_list,
6641         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
6642         optimize_location_lists_1, optimize_location_lists): New function.
6643         (dwarf2out_finish): Call optimize_location_lists.
6644         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
6645
6646 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6647
6648         PR testsuite/45974
6649         Revert:
6650         * Makefile.in ($(lang_checks_parallel))
6651         ($(lang_checks_parallelized)): Use single quotes for
6652         $(RUNTESTFLAGS), to allow passing quoted content.
6653
6654 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6655
6656         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
6657         actual_oldval.  Use __builtin_expect.
6658         (SUBWORD_VAL_CAS): Likewise.
6659
6660 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
6661
6662         * recog.c (nonmemory_operand): Call immediate_operand for
6663         CONSTANT_P operands.
6664
6665 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
6666
6667         * config/i386/i386.md (movmem<mode>): Macroize expander from
6668         movmem{si,di} using SWI48 mode iterator.
6669         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
6670         *strmovsi_rex_1 using P mode iterator.
6671         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
6672         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
6673         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
6674         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
6675         (setmem<mode>): Macroize expander from setmem{si,di} using
6676         SWI48 mode iterator.
6677         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
6678         *strsetsi_rex_1 using P mode iterator.
6679         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
6680         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
6681         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
6682         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
6683         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
6684         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
6685         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
6686         mode iterator.
6687         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
6688         *strlenqi_rex_1 using P mode iterator.
6689
6690 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
6691
6692         PR bootstrap/45445
6693         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
6694         static functions.
6695         (mark_ref_live, mark_ref_dead): Use them.
6696         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
6697         Save the original reg, and use the new functions.
6698         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
6699         changed.
6700         (check_and_make_def_conflict): Save the original reg.
6701
6702 2010-10-11  Martin Jambor  <mjambor@suse.cz>
6703
6704         PR middle-end/45699
6705         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
6706         thunks.
6707
6708 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6709
6710         * Makefile.in ($(lang_checks_parallel))
6711         ($(lang_checks_parallelized)): Use single quotes for
6712         $(RUNTESTFLAGS), to allow passing quoted content.
6713
6714         PR bootstrap/35855
6715         * opt-functions.awk (BEGIN): New section.
6716         (lower, upper, digit, alnum): New variables.
6717         (static_var, opt_sanitized_name): Use alnum instead of character
6718         classes, for non-C locale.
6719         * optc-gen.awk: Likewise.
6720         * opth-gen.awk: Likewise.
6721
6722 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
6723
6724         * target.def (preferred_reload_class): New hook.
6725         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
6726         * doc/tm.texi: Regenerate.
6727         * targhooks.c (default_preferred_reload_class): New function.
6728         * targhooks.h (default_preferred_reload_class): Declare.
6729         * reload.c (find_dummy_reload): Change preferred_class variable type
6730         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
6731         target hook.
6732         (find_reloads): Change goal_alternative array type from int to
6733         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
6734         (push_reload, find_reloads_address_part): Use
6735         TARGET_PREFERRED_RELOAD_CLASS target hook.
6736         * reload1.c (emit_input_reload_insns): Ditto.
6737         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
6738         hook. Change rclass argument and secondary_class variable types from
6739         'enum reg_class' to reg_class_t.
6740
6741         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
6742         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
6743         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
6744         Change regclass argument and result types from enum reg_class to
6745         reg_class_t.
6746         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6747
6748 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6749
6750         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
6751         in masking operations.
6752         (simplify_const_unary_operation): Likewise.
6753         (simplify_binary_operation_1): Likewise.
6754         (simplify_const_binary_operation): Likewise.
6755         (simplify_const_relational_operation): Likewise.
6756         (simplify_ternary_operation): Likewise.
6757         (simplify_immed_subreg): Likewise.
6758
6759 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6760
6761         PR middle-end/45862
6762         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
6763         (TARGET_SUPPORTS_WEAK): New.
6764         * doc/tm.texi: Regenerate.
6765         * defaults.h (SUPPORTS_WEAK): Update comment.
6766         (TARGET_SUPPORTS_WEAK): New.
6767         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
6768         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
6769         SUPPORTS_WEAK.
6770         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
6771         make_decl_one_only): Likewise.
6772         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
6773         TARGET_SUPPORTS_WEAK.
6774         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
6775         instead of SUPPORTS_WEAK.
6776
6777 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6778
6779         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
6780
6781 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
6782
6783         * vec.h (VEC_qsort): Define.
6784         * dbxout.c (output_used_types): Use it.
6785         * df-scan.c (df_sort_and_compress_refs): Likewise.
6786         (df_sort_and_compress_mws): Likewise.
6787         * genautomata.c (uniq_sort_alt_states): Likewise.
6788         (evaluate_equiv_classes): Likewise.
6789         (output_trans_table): Likewise.
6790         (output_state): Likewise.
6791         * gimplify.c (compare_case_labels): Likewise.
6792         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
6793         * ipa.c (build_cdtor_fns): Likewise.
6794         * lto.c (lto_wpa_write_files): Likewise.
6795         * sel-sched.c (fill_vec_av_set): Likewise.
6796         * tree-predcom.c (determine_roots_comp): Likewise.
6797         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
6798         (splice_param_accesses): Likewise.
6799         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
6800         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6801         (reassociate_bb): Likewise.
6802         * tree-ssa-sccvn.c (sort_scc): Likewise.
6803         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
6804
6805 2010-10-11  Ian Lance Taylor  <iant@google.com>
6806
6807         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
6808         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
6809         TREE_THIS_NOTRAP when appropriate.
6810         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
6811         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
6812         newly created MEM_REF.
6813
6814 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
6815
6816         Nathan Froyds patch to hooks FUNCTION_ARG etc.
6817         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
6818         (picochip_incoming_function_arg): Delete.
6819         (picochip_arg_advance): Delete.
6820         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
6821         (FUNCTION_INCOMING_ARG): Delete.
6822         (FUNCTION_ARG_ADVANCE): Delete.
6823         * config/picochip/picochip.c (picochip_function_arg): Take a
6824         const_tree and a bool.
6825         (picochip_incoming_function_arg): Likewise.
6826         (picochip_arg_advance): Likewise.
6827         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6828         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6829
6830 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6831
6832         PR middle-end/45955
6833         * ipa.c (build_cdtor): Delete endless loop.
6834
6835 2010-10-07  Andi Kleen  <ak@linux.intel.com>
6836
6837         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
6838         checksum-options.
6839         (checksum-options): Add.
6840         (cc1-dummy): Remove.
6841         (cc1-checksum): Change to run checksum over object files
6842         and options only.
6843         * dummy-checksum.c: Remove.
6844         * genchecksum.c: Update copyright.
6845         (usage): Allow multiple arguments.
6846         (BLOCKSIZE): Add.
6847         (dosum): Change for incremental checksum. Remove C output.
6848         (main): Iterate over all argument files. Add C output.
6849
6850 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
6851
6852         * params.c (set_param_value_internal): New.
6853         (set_param_value): Use set_param_value_internal.
6854         (maybe_set_param_value, set_default_param_value): New.
6855         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
6856         (maybe_set_param_value, set_default_param_value): Declare.
6857         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
6858         * config/i386/i386.c (ix86_option_override_internal): Use
6859         maybe_set_param_value.
6860         * config/ia64/ia64.c (ia64_option_default_params,
6861         TARGET_OPTION_DEFAULT_PARAMS): New.
6862         (ia64_option_optimization): Move some code to
6863         ia64_option_default_params.
6864         * config/picochip/picochip.c (picochip_option_override): Use
6865         maybe_set_param_value.
6866         * config/rs6000/rs6000.c (rs6000_option_default_params,
6867         TARGET_OPTION_DEFAULT_PARAMS): New.
6868         (rs6000_option_override_internal): Use maybe_set_param_value.
6869         (rs6000_option_optimization): Move some code to
6870         rs6000_option_default_params.
6871         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
6872         * config/sh/sh.c (sh_option_default_params,
6873         TARGET_OPTION_DEFAULT_PARAMS): New.
6874         (sh_option_optimization): Move some code to sh_option_default_params.
6875         * config/sparc/sparc.c (sparc_option_override): Use
6876         maybe_set_param_value.
6877         * config/spu/spu.c (spu_option_default_params,
6878         TARGET_OPTION_DEFAULT_PARAMS): New.
6879         (spu_option_optimization): Move some code to spu_option_default_params.
6880         (spu_option_override): Use maybe_set_param_value.
6881         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
6882         * doc/tm.texi: Regenerate.
6883         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
6884         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
6885         compiler_params.
6886         (default_options_optimization): Use maybe_set_param_value.
6887         (finish_options): Use maybe_set_param_value.
6888         * target.def (target_option.default_params): New hook.
6889         * toplev.c (general_init): Call targetm.target_option.default_params.
6890
6891 2010-10-11  Ira Rosen  <irar@il.ibm.com>
6892
6893         PR tree-optimization/45902
6894         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
6895         vector type for constants, unless it's a pointer.
6896
6897 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6898
6899         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
6900
6901 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
6902
6903         PR target/45870
6904         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
6905         (ix86_delegitimize_address): Use it.
6906
6907 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
6908
6909         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
6910
6911 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
6912
6913         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
6914         to cum struct in the call to function_arg_advance.
6915         (alpha_function_arg_advance): Mark named as unused.
6916
6917 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
6918
6919         * config/mips/mips.c (mips_handle_option): Make "value" with
6920         ATTRIBUTE_UNUSED.
6921
6922 2010-10-09  Richard Henderson  <rth@redhat.com>
6923
6924         PR rtl-opt/33721
6925         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
6926         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
6927         required_align, tidy the code a bit.  Emit split_stack code in the
6928         right place.  Mark the return value with the alignment properly.
6929         * expr.h (allocate_dynamic_stack_space): Update decl.
6930         * builtins.c (expand_builtin_apply): Update call to
6931         allocate_dynamic_stack_space.
6932         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
6933         * calls.c (initialize_argument_information): Update call to
6934         allocate_dynamic_stack_space.
6935         (expand_call): Likewise.
6936
6937         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
6938         Don't update_stack_alignment here.
6939         (alloc_stack_frame_space): Make ALIGN unsigned.
6940         (stack_var_cmp): Sort by alignment too.
6941         (partition_stack_vars): Don't merge large and small alignment vars.
6942         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
6943         Take care when BASE is not virtual_stack_vars_rtx.
6944         (expand_stack_vars): Allocate dynamic stack space for large
6945         alignment variables.
6946         (expand_one_stack_var): Update all to expand_one_stack_var_at.
6947         (defer_stack_allocation): True for large alignment vars.
6948         (update_stack_alignment): Merge into ...
6949         (expand_one_var): ... here.
6950         (gimple_expand_cfg): Place code from expand_stack_vars.
6951
6952 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6953
6954         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6955         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
6956         (pdp11_function_arg_advance): New function.
6957         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6958
6959 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6960
6961         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
6962         * libgcc2.c: Likewise.
6963
6964 2010-10-09  Richard Guenther  <rguenther@suse.de>
6965
6966         PR lto/45956
6967         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
6968         Properly check if a decl is an automatic var.
6969
6970 2010-10-09  Richard Guenther  <rguenther@suse.de>
6971
6972         PR lto/45947
6973         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
6974
6975 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6976
6977         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
6978         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6979         * config/mmix/mmix.c (mmix_function_arg): Rename to...
6980         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
6981         bool arguments.
6982         (mmix_function_arg): New function.
6983         (mmix_function_incoming_arg): New function.
6984         (mmix_function_arg_advance): New function.
6985         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6986         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6987
6988 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6989
6990         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6991         * config/vax/vax.c (vax_function_arg): New function.
6992         (vax_function_arg_advance): New function.
6993         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6994
6995 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
6996
6997         * config/pa/pa-protos.h (function_arg): Delete.
6998         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6999         * config/pa/pa.c (function_arg): Rename to...
7000         (pa_function_arg): ...this.  Make static.  Take a const_tree and
7001         a bool.
7002         (pa_function_arg_advance): New function.
7003         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7004
7005 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7006
7007         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7008         * config/m68k/m68k.c (m68k_function_arg): New function.
7009         (m68k_function_arg_advance): New function.
7010         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7011
7012 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7013
7014         * config/avr/avr-protos.h (function_arg): Delete.
7015         (function_arg_advance): Delete.
7016         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7017         * config/avr/avr.c (function_arg): Rename to...
7018         (avr_function_arg): ...this.  Make static.  Take a const_tree and
7019         a bool.
7020         (function_arg_advance): Rename to...
7021         (avr_function_arg_advance): ...this.  Make static.  Take a
7022         const_tree and a bool.
7023         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7024
7025 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7026
7027         * config/alpha/alpha-protos.h (function_arg): Delete.
7028         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7029         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
7030         * config/alpha/alpha.c (function_arg): Rename to...
7031         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
7032         a bool.  Delete TARGET_ABI_UNICOSMK code.
7033         (alpha_function_arg_advance): New function.
7034         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7035
7036 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7037
7038         * config/mep/mep-protos.h (mep_function_arg): Delete.
7039         (mep_function_arg_advance): Delete.
7040         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7041         * config/mep/mep.c (mep_function_arg): Make static.  Take a
7042         const_tree and a bool.
7043         (mep_function_arg_advance): Likewise.
7044         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7045
7046 2010-10-09  Richard Guenther  <rguenther@suse.de>
7047
7048         PR tree-optimization/45945
7049         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
7050
7051 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
7052
7053         PR tree-optimization/45612
7054         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
7055         Test LABEL_DECLs as well.  Fix formatting issues.
7056         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
7057         whose label is present in NON_SSA_VARS.
7058         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
7059         as well.  Fix formatting issues.
7060         (visit_bb): Fix typos and formatting issue.
7061
7062 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7063
7064         PR tree-optimization/45950
7065         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
7066         before initializing vno->op.
7067
7068 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
7069
7070         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
7071         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
7072
7073 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
7074
7075         PR target/45913
7076         * config/i386/i386.c (ix86_binary_operator_ok): Support
7077         "andhi/andsi/anddi" as a zero-extending move.
7078
7079 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7080
7081         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
7082         into a temporary array.
7083
7084 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
7085
7086         PR tree-optimization/45903
7087         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
7088         of {A,L}SHIFTRT of MEM.
7089
7090 2010-10-08  Richard Guenther  <rguenther@suse.de>
7091
7092         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7093         Re-construct BLOCK_VARS.
7094         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
7095         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7096         * tree.c (free_lang_data_in_block): Remove.
7097         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
7098         Do not touch the BLOCK tree.
7099         * expr.c (expand_expr_real_1): Allow externals.
7100
7101 2010-10-08  Richard Guenther  <rguenther@suse.de>
7102
7103         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
7104         Do not output BLOCK_SUBBLOCKS.
7105         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
7106         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
7107         Re-construct BLOCK_SUBBLOCKS of parent block.
7108         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
7109         for BINFO_BASE_ACCESSES.
7110
7111 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
7114         (TREE_H): Include $(FLAGS_H) instead of options.h.
7115         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
7116         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7117         * common.opt (flag_complex_method, flag_evaluation_order,
7118         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
7119         Variable declarations.
7120         * configure.ac (tm_include_list): Include flags.h instead of options.h.
7121         * configure: Regenerate.
7122         * flags.h: Condition out contents for target libraries.  Include
7123         options.h at end of file.
7124         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
7125         flag_evaluation_order, flag_warn_unused_result): Remove.
7126         * gcc.c (main): Intialize global_options with global_options_init.
7127         * langhooks-def.h (lhd_init_options_struct): Declare.
7128         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7129         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
7130         * langhooks.c (lhd_init_options_struct): New.
7131         * langhooks.h (struct lang_hooks): Add init_options_struct.
7132         Update comment on init_options.
7133         * optc-gen.awk: Generate initializer for global_options_init, not
7134         global_options.
7135         * opth-gen.awk: Condition out structure declarations for target
7136         libraries.  Declare global_options_init.
7137         * opts-common.c: Include flags.h instead of options.h.
7138         * opts.c (flag_warn_unused_result): Remove.
7139         (read_cmdline_options): Take gcc_options parameters.  Pass them to
7140         read_cmdline_option.
7141         (initial_lang_mask, initial_min_crossjump_insns,
7142         initial_max_fields_for_field_sensitive,
7143         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
7144         (init_options_once): New.  Split out of decode_options.
7145         (init_options_struct): New.  Split out of decode_options.
7146         (decode_cmdline_options_to_array_default_mask): New.
7147         (default_options_optimization): New.  Split out of decode_options.
7148         (decode_options): Move most code to other functions.  Update call
7149         to read_cmdline_options.
7150         (finish_options): New.  Split out of decode_options.
7151         * opts.h (decode_options): Add gcc_options parameters.
7152         (init_options_once, init_options_struct,
7153         decode_cmdline_options_to_array_default_mask): New.
7154         * toplev.c (flag_complex_method, flag_ira_algorithm,
7155         flag_ira_region, flag_evaluation_order): Remove.
7156         (general_init): Use global_options_init for initial flag values
7157         for global_dc.
7158         (toplev_main): Call init_options_once, init_options_struct,
7159         lang_hooks.init_options_struct,
7160         decode_cmdline_options_to_array_default_mask and
7161         lang_hooks.init_option before decode_options.  Update arguments to
7162         decode_options.
7163         * tree.h: Include flags.h instead of options.h.
7164
7165 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7166
7167         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7168
7169 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7170
7171         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
7172         Delete.
7173         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7174         (FUNCTION_INCOMING_ARG): Delete.
7175         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
7176         (function_arg_slotno): Likewise.  Take bool arguments.
7177         (sparc_arg_partial_bytes): Update call to it.
7178         (function_arg): Rename to...
7179         (sparc_function_arg_1): ...this.  Take bool arguments.
7180         (sparc_function_arg, sparc_function_incoming_arg): New functions.
7181         (function_arg_advance): Rename to...
7182         (sparc_function_arg_advance): ...this.  Take bool argument.
7183         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
7184         (TARGET_FUNCTION_INCOMING_ARG): Define.
7185
7186 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7187
7188         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
7189         Delete.
7190         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7191         * config/bfin/bfin.c (function_arg_advance): Rename to...
7192         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
7193         and bool arguments.
7194         (function_arg): Rename to...
7195         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
7196         arguments.
7197         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7198
7199 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7200
7201         * config/score/score-protos.h (score_function_arg): Delete.
7202         (score_function_arg_advance): Delete.
7203         * config/score/score3.h (score3_function_arg_advance): Take a
7204         const_tree and a bool.
7205         (score3_function_arg): Likewise.
7206         * config/score/score7.h (score7_function_arg_advance): Likewise.
7207         (score7_function_arg): Likewise.
7208         * config/score/score3.c (score3_classify_arg): Likewise.
7209         (score3_function_arg_advance, score3_function_arg): Likewise.
7210         * config/score/score7.c (score7_classify_arg): Likewise.
7211         (score7_function_arg_advance, score7_function_arg): Likewise.
7212         * config/score/score.c (score_function_arg_advance): Likewise.
7213         (score_function_arg): Likewise.  De-const-ify `cum' argument.
7214         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7215
7216 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7217
7218         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
7219         (s390_function_arg): Delete.
7220         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7221         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
7222         (s390_function_arg_integer): Likewise.
7223         (s390_function_arg_advance): Make static.  Take a const_tree and
7224         a bool.
7225         (s390_function_arg): Likewise.
7226         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7227
7228 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7229
7230         * config/spu/spu-protos.h (spu_function_arg): Delete.
7231         * config/spu/spu.h (FUNCTION_ARG): Delete.
7232         (FUNCTION_ARG_ADVANCE): Move code to ...
7233         * config/spu/spu.c (spu_function_arg_advance): New function.
7234         (spu_function_arg): Make static.  Take a const_tree and a bool.
7235         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
7236         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7237
7238 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7239
7240         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7241
7242 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7243
7244         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
7245         (init_vn_nary_op_from_op): New function.
7246         (init_vn_nary_op_from_stmt): New function.
7247         (vn_nary_op_lookup_1): New function.
7248         (sizeof_vn_nary_op): New function.
7249         (alloc_vn_nary_op_noinit): New function.
7250         (alloc_vn_nary_op): New function.
7251         (vn_nary_op_insert_into): New function.
7252         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
7253         (vn_nary_op_lookup): Likewise.
7254         (vn_nary_op_lookup_stmt): Likewise.
7255         (vn_nary_op_insert_pieces): Likewise.
7256         (vn_nary_op_insert): Likewise.
7257         (vn_nary_op_insert_stmt): Likewise.
7258         (copy_nary): Likewise.
7259         (set_value_id_for_result): New function.
7260         (set_hashtable_value_ids): Call it.
7261
7262 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7263
7264         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7265         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
7266
7267 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7268
7269         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
7270         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7271
7272 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
7273
7274         PR debug/45656
7275         * cse.c (cse_extended_basic_block): Preserve cc0 info across
7276         debug isnsn.  Skip them when searching for cc0 setter.
7277         (set_live_p): Skip debug insns when searching for cc0 user.
7278
7279 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
7280
7281         PR debug/45673
7282         PR debug/45604
7283         PR debug/45419
7284         PR debug/45408
7285         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
7286         type of MEM_REFs to INTEGER_CSTs.
7287
7288 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
7289
7290         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
7291         m68hc11_print_operand_address.
7292
7293 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
7294
7295         * builtins.c (rewrite_call_expr): Move code to...
7296         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
7297         (rewrite_call_expr_array): New function.
7298         (fold_builtin_sprintf_chk_1): New function.
7299         (fold_builtin_sprintf_chk): Call it.
7300         (gimple_fold_builtin_sprintf_chk): Likewise.
7301         (fold_builtin_snprintf_chk_1): New function.
7302         (fold_builtin_snprintf_chk): Call it.
7303         (gimple_fold_builtin_snprintf_chk): Likewise.
7304         (gimple_rewrite_call_expr): Delete.
7305
7306 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
7307
7308         * config.host: Update copyright year.
7309
7310 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
7311
7312         * config.host (host_lto_plugin_soname): New shell variable.
7313         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
7314         * config.in: Regenerate.
7315         * configure: Regenerate.
7316         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
7317         LTO plugin shared library.
7318
7319 2010-10-07  Richard Henderson  <rth@redhat.com>
7320
7321         * target.h (enum unwind_info_type): Move ...
7322         * coretypes.h: ... here.
7323
7324 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
7325
7326         * doc/objc.texi (Fast enumeration protocol): Mention that
7327         'unsigned int' can also be used instead of 'unsigned long' in
7328         countByEnumeratingWithState:objects:count:.
7329
7330 2010-10-07  Martin Jambor  <mjambor@suse.cz>
7331
7332         * tree-sra.c (struct access): New field grp_assignment_write.
7333         (dump_access): Dump grp_assignment_write.
7334         (build_accesses_from_assign): Set grp_assignment_write.
7335         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
7336         (mark_read_status): Renamed to mark_rw_status, individual values
7337         renamed too.
7338         (analyze_access_subtree): Changed type of mark_write to
7339         mark_read_status.  Fixed propagating of mark_read and
7340         mark_write.  Changed benefit estimate.  Updated comment.
7341
7342 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
7343
7344         PR Tree-Vect/45847
7345         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
7346         check for vectype_out returned by get_vectype_for_scalar_type().
7347
7348 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
7349
7350         PR target/45805
7351         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
7352         constraint, add register specifier in instruction template.
7353         (neon_vec_pack_trunc_<mode>): Likewise.
7354         (neon_vec_<US>mult_<mode>): Add register specifier to
7355         instruction template.
7356
7357 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
7358
7359         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
7360         cygwin2.o.
7361         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
7362         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
7363         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
7364         (cygwin2.o): Likewise.
7365         * config/i386/cygwin1.c: Delete file.
7366         * config/i386/cygwin2.c: Likewise.
7367         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
7368         make all {%!mno-cygwin} ones unconditional.
7369         (STARTFILE_SPEC): Likewise.
7370         (REAL_LIBGCC_SPEC): Likewise.
7371         (LIB_SPEC): Likewise.
7372         (CXX_WRAP_SPEC): Likewise.
7373         (LINK_SPEC): Likewise.
7374         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
7375         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
7376         (cygwin_gplusplus_include_dir): Delete now-unused array.
7377         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
7378         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
7379         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
7380         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
7381         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
7382         (cygwin_local_include_dir): Delete now-unused array.
7383         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
7384         (cygwin_cross_include_dir): Delete now-unused array.
7385         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
7386         (cygwin_tool_include_dir): Delete now-unused array.
7387         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
7388         (cygwin_standard_include_dir): Delete now-unused array.
7389         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
7390         (GEN_CVT_ARRAY): Delete now-unused macro definition.
7391         (cvt_to_mingw): Delete now-unused array.
7392         (mingw_scan): Remove prototype of deleted function.
7393         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
7394         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
7395         * doc/invoke.texi (-mcygwin): Don't document removed option.
7396         (-mno-cygwin): Likewise.
7397
7398 2010-10-07  Richard Guenther  <rguenther@suse.de>
7399
7400         * machmode.h (mode_for_vector): Declare.
7401         * stor-layout.c (mode_for_vector): New function, split out from ...
7402         (layout_type): ... here.
7403         * tree-vectorizer.h (current_vector_size): Declare.
7404         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
7405         mask vector type is available.
7406         (get_vectype_for_scalar_type): Rename to ...
7407         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
7408         size argument.
7409         (get_vectype_for_scalar_type): New wrapper around
7410         get_vectype_for_scalar_type_and_size using current_vector_size.
7411         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
7412         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
7413         of vect_analyze_loop here.
7414         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
7415         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
7416         to autodetect.
7417         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
7418         V8SF to V8SI conversion builtin.
7419
7420 2010-10-07  Richard Guenther  <rguenther@suse.de>
7421
7422         * target.def (autovectorize_vector_sizes): New target hook.
7423         * targhooks.c (default_autovectorize_vector_sizes): New function.
7424         * targhooks.h (default_autovectorize_vector_sizes): Declare.
7425         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
7426         Document.
7427         * doc/tm.texi: Update.
7428         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
7429         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7430
7431 2010-10-07  Richard Guenther  <rguenther@suse.de>
7432
7433         * target.def (units_per_simd_word): Rename to ...
7434         (preferred_simd_mode): ... this.  Return mode instead of size.
7435         * targhooks.c (default_units_per_simd_word): Rename to ...
7436         (default_preferred_simd_mode): ... this.  Return word_mode.
7437         * targhooks.h (default_preferred_simd_mode): Declare.
7438         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
7439         (arm_preferred_simd_mode): ... this.  Re-implement.
7440         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
7441         (ix86_preferred_simd_mode): ... this.  Re-implement.
7442         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
7443         (sparc_preferred_simd_mode): ... this.  Re-implement.
7444         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
7445         (mips_preferred_simd_mode): ... this.  Re-implement.
7446         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
7447         (rs6000_preferred_simd_mode): ... this.  Re-implement.
7448         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
7449         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
7450         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
7451         * doc/tm.texi: Update.
7452
7453 2010-10-07  Richard Guenther  <rguenther@suse.de>
7454
7455         PR middle-end/45869
7456         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
7457         of pointers.
7458
7459 2010-10-07  Alan Modra  <amodra@gmail.com>
7460
7461         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
7462         rather than sign extension by hand.
7463
7464 2010-10-07  Jan Hubicka  <jh@suse.cz>
7465
7466         PR middle-end/45926
7467         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
7468
7469 2010-10-07  Richard Guenther  <rguenther@suse.de>
7470
7471         PR bootstrap/45914
7472         * configure.ac: Fix typo.
7473         * configure: Regenerated.
7474
7475 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7476
7477         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
7478         define_builtin_std where it's unnecessary.
7479         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
7480
7481 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
7482
7483         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
7484         * doc/tm.texi.in: Regenerate.
7485         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
7486         * targhooks.c (default_class_likely_spilled_p): Don't use the
7487         CLASS_LIKELY_SPILLED_P macro.
7488
7489         * config/arm/arm.md: Update comment.
7490
7491 2010-10-06  Jan Hubicka  <jh@suse.cz>
7492
7493         * ipa.c (cgraph_remove_unreachable_nodes): External references can
7494         always be removed.
7495         (cgraph_externally_visible_p): We can not bring local comdats that
7496         are known to linker; fix handling of internal visibility.
7497         (function_and_variable_visibility): Likewise.
7498
7499 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7500
7501         PR rtl-optimization/45394
7502         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
7503         (struct rtx_subst_pair): Remove AFTER field.
7504         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
7505         (propagate_for_debug): Remove MOVE parameter and adjust.
7506         (try_combine): In the special case where I2 is a PARALLEL, combine only
7507         destinations of SETs and set I2SRC to the I2 source.
7508         Adjust calls to propagate_for_debug throughout.
7509         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
7510         insns.
7511
7512 2010-10-06  Olivier Hainque  <hainque@adacore.com>
7513
7514         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
7515         switch on insn codes as sequence of ifs.
7516
7517 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
7518
7519         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
7520         be UI_NONE for picochip.
7521         (picochip_option_override): Do not disable exception flags.
7522         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
7523         Declare.
7524
7525 2010-10-06  Richard Guenther  <rguenther@suse.de>
7526
7527         * Makefile.in (regmove.o): Depend on $(TARGET_H).
7528
7529 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
7530
7531         Implemented fast enumeration for Objective-C.
7532         * c-parser.c (objc_could_be_foreach_context): New.
7533         (c_lex_one_token): Recognize RID_IN keyword in a potential
7534         Objective-C foreach context.
7535         (c_parser_declaration_or_fndef): Added parameter.  Accept
7536         Objective-C RID_IN keyword as terminating a declaration; in that
7537         case, return the declaration in the new parameter.
7538         (c_parser_extenral_declaration): Updated calls to
7539         c_parser_declaration_or_fndef.
7540         (c_parser_declaration_or_fndef): Same change.
7541         (c_parser_compound_statement_nostart): Same change.
7542         (c_parser_label): Same change.
7543         (c_parser_objc_methodprotolist): Same change.
7544         (c_parser_omp_for_loop): Same change.
7545         (c_parser_for_statement): Detect and parse Objective-C foreach
7546         statements.
7547         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
7548         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
7549         fast enumeration parsing code to turn off the c99 error but still
7550         perform checks on the loop declarations.
7551         * c-tree.h (check_for_loop_decls): Updated declaration.
7552         * doc/objc.texi: Document fast enumeration.
7553
7554 2010-10-06  Nick Clifton  <nickc@redhat.com>
7555
7556         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
7557         (MDR_REGNUM): Define.
7558         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
7559         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
7560         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
7561         (REGISTER_NAMES): Add MDR.
7562         (DWARF2_DEBUGGING_INFO): Define to 1.
7563         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7564         (F): New function.  Sets RTX_FRAME_RELATED_P.
7565         (mn10300_gen_multiple_store): Use F.
7566         (expand_prologue): Use F.  Use gen_movsf() to push floating
7567         point registers.
7568         (expand_epilogue): Use gen_movsf() to pop floating point registers.
7569         (mn10300_option_override): Disable combine stack adjust pass.
7570
7571 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
7572
7573         PR target/45901
7574         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
7575         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
7576
7577 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
7580         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
7581         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
7582         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
7583         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
7584         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
7585         BUILT_IN_TOUPPER): Mark as leaf.
7586
7587         PR middle-end/45838
7588         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7589         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7590         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7591         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7592         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
7593         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
7594         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
7595
7596 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
7597
7598         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
7599         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7600         (m68hc11_class_likely_spilled_p): New function.
7601
7602 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
7603
7604         * c-parser.c (c_parser_objc_method_definition): Updated comment.
7605
7606 2010-10-05  Jan Hubicka  <jh@suse.cz>
7607
7608         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
7609         Document.
7610         * opts.c (decode_options): Handle lto partitions.
7611         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
7612         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
7613
7614 2010-10-05  Jan Hubicka  <jh@suse.cz>
7615
7616         * cgraphunit.c (assemble_function): Output thunks and aliases before
7617         the function itself.
7618
7619 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
7620
7621         * config/picochip/picochip.c (picochip_option_override): Disable
7622         exception flags for picochip.
7623
7624 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
7625
7626         * opts-common.c (handle_option, handle_generated_option,
7627         read_cmdline_option, set_option): Add diagnostic_context
7628         parameter.  Update calls among these functions.
7629         (set_option): Don't use global_dc.
7630         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
7631         (decode_options): Pass global_dc to enable_warning_as_error.
7632         (common_handle_option): Pass global_dc to enable_warning_as_error.
7633         (enable_warning_as_error): Add diagnostic_context parameter.
7634         Document parameters.  Don't use global_dc.  Pass
7635         diagnostic_context parameter to handle_generated_option.
7636         * opts.h (set_option, handle_option, handle_generated_option,
7637         read_cmdline_option, enable_warning_as_error): Add
7638         diagnostic_context parameter.
7639         * Makefile.in (lto-opts.o): Update dependencies.
7640         * coretypes.h (struct diagnostic_context, diagnostic_context):
7641         Declare here.
7642         * diagnostic.h (diagnostic_context): Don't declare typedef here.
7643         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
7644         * langhooks-def.h (struct diagnostic_context): Don't declare here.
7645         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
7646         using diagnostic_context typedef.
7647         * langhooks.c (lhd_initialize_diagnostics): Declare using
7648         diagnostic_context typedef.
7649         * langhooks.h (struct diagnostic_context): Don't declare here.
7650         (initialize_diagnostics, print_error_function): Declare using
7651         diagnostic_context typedef.
7652         * lto-opts.c: Include diagnostic.h.
7653         (lto_reissue_options): Pass global_dc to set_option.  Pass
7654         DK_UNSPECIFIED not 0.
7655         * plugin.c (plugins_internal_error_function): Declare using
7656         diagnostic_context typedef.
7657         * plugin.h (struct diagnostic_context): Don't declare here.
7658         (plugins_internal_error_function): Declare using
7659         diagnostic_context typedef.
7660
7661 2010-10-05  Olivier Hainque  <hainque@adacore.com>
7662             Nicolas Roche  <roche@adacore.com>
7663
7664         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
7665         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
7666
7667 2010-10-05  Ira Rosen  <irar@il.ibm.com>
7668
7669         PR tree-optimization/45752
7670         * tree-vect-slp.c (vect_get_mask_element): Remove static
7671         variables, make them function arguments.
7672         (vect_transform_slp_perm_load): Pass new arguments to
7673         vect_get_mask_element.
7674
7675 2010-10-05  Richard Guenther  <rguenther@suse.de>
7676
7677         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
7678         (gimple_mod_pow2): Likewise.
7679         (gimple_mod_subtract): Likewise.
7680         (gimple_ic): Likewise.
7681         (gimple_stringop_fixed_value): Likewise.
7682         * tree-profile.c (tree_init_edge_profiler): Mark profile
7683         functions nothrow and leaf.
7684         (add_abnormal_goto_call_edges): Remove.
7685         (tree_gen_edge_profiler): Work on SSA form.
7686         (tree_gen_ic_profiler): Likewise.  Simplify.
7687         (do_tree_profiling): Update SSA form.
7688         (pass_tree_profile): Remove.
7689         (do_tree_profiling): Likewise.
7690         (gate_tree_profile_ipa): New function.
7691         (pass_ipa_tree_profile): New.
7692         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
7693         state of instrumented functions.
7694         * passes.c (init_optimization_passes): Remove early non-SSA
7695         inlining.  Move profiling after early optimizations.
7696         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
7697         (pass_ipa_early_inline): Likewise.
7698         * tree-pass.h (pass_ipa_early_inline): Remove.
7699         (pass_tree_profile): Likewise.
7700         (pass_ipa_tree_profile): Declare.
7701
7702 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7703             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
7704
7705         * config/s390/s390.c (z196_cost): New.
7706         (s390_handle_arch_option): Add -march=z196.
7707         (s390_option_override): Use the new cost function and use the z10
7708         defaults also for z196.
7709         (legitimate_reload_constant_p): Adjust comment.
7710         (legitimate_reload_fp_constant_p): New function.
7711         (s390_preferred_reload_class): Distingiush between FP and Int constants.
7712         (preferred_la_operand_p): Avoid la with index on z196.
7713         (s390_adjust_priority): Trigger also for z196.
7714         (s390_issue_rate): Issue rate for z196 is 3.
7715         (s390_z10_fix_long_loop_prediction): Rename to ...
7716         (s390_fix_long_loop_prediction): ... this.
7717         (s390_reorg): Apply the z10 adjustments also for z196.
7718         (s390_loop_unroll_adjust): Do this also for z196.
7719         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
7720         (enum processor_flags): Add PF_Z196.
7721         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
7722         (TARGET_CPU_Z196, TARGET_Z196): New macros.
7723         * config.gcc: Enable z196 for --with-arch.
7724         * config/s390/2817.md: New file.
7725         * config/s390/2084.md: New type for multiply and add.
7726         * config/s390/2097.md: Likewise.
7727         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
7728         (UNSPECV_ATOMIC_OP): New constants.
7729         (fmadddf, fmaddsf): New values for type attribute.
7730         (z196prop): New insn attribute.
7731         (cpu, cpu_facility): Add z196.
7732         (ATOMIC_Z196): New code iterator.
7733         (noxa): New code attribute.
7734         (gk): New mode attribute.
7735         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
7736         Support load zero for fp constants.
7737         (fixuns_truncdddi2, fixuns_trunctddi2)
7738         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
7739         for z196.
7740         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
7741         (popcounthi2, popcountqi2): New expander.
7742         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
7743         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
7744         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
7745         insn definition.
7746         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
7747         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
7748         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
7749         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
7750         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
7751         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
7752         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
7753         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
7754         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
7755         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
7756         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
7757         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
7758         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
7759         Support new z196 instructions.
7760
7761 2010-10-05  Richard Guenther  <rguenther@suse.de>
7762
7763         PR middle-end/45877
7764         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
7765         case where gimplification optimizes away the stmt.
7766
7767 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
7768
7769         PR debug/45849
7770         * var-tracking.c (strip_pointer_flags): New function.
7771         (emit_note_insn_var_location): If rtx_equal_p check failed,
7772         retry on locations simplified with simplify_replace_fn_rtx
7773         and strip_pointer_flags as its callback.
7774
7775 2010-10-04  Jan Hubicka  <jh@suse.cz>
7776
7777         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
7778         (can_refer_decl_in_current_unit_p): ... this one; reverse return
7779         value; handle comdats too.
7780         (canonicalize_constructor_val): Use it; handle function_decls
7781         correctly.
7782         (gimple_fold_obj_type_ref_known_binfo): Likewise.
7783         * gimple.c (get_base_address): Accept all kinds of decls.
7784
7785 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
7786
7787         * flags.h (g_switch_value, g_switch_set): Remove.
7788         * opts.c (g_switch_value, g_switch_set): Remove.
7789         * config/g.opt (G): Add Var(g_switch_value).
7790         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
7791         (alpha_option_override): Check global_options_set.x_g_switch_value
7792         instead of g_switch_set.
7793         (alpha_in_small_data_p): Remove cast in comparison with
7794         g_switch_value.
7795         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7796         g_switch_value to unsigned HOST_WIDE_INT.
7797         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
7798         with g_switch_value.
7799         (frv_handle_option): Don't handle -G here.
7800         (frv_option_override): Check global_options_set.x_g_switch_value
7801         instead of g_switch_set.  Don't modify g_switch_set.
7802         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
7803         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
7804         g_switch_value to unsigned HOST_WIDE_INT.
7805         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
7806         (ia64_option_override): Check global_options_set.x_g_switch_value
7807         instead of g_switch_set.
7808         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
7809         Remove.
7810         (lm32_in_small_data_p): Remove cast in comparison with
7811         g_switch_value.
7812         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
7813         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
7814         HOST_WIDE_INT.
7815         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
7816         (m32r_init): Check global_options_set.x_g_switch_value instead of
7817         g_switch_set.
7818         (m32r_in_small_data_p): Remove cast in comparison with
7819         g_switch_value.
7820         (m32r_file_start): Format g_switch_value with %d.
7821         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
7822         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
7823         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
7824         handle -G here.
7825         (microblaze_option_override): Check
7826         global_options_set.x_g_switch_value instead of g_switch_set.
7827         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
7828         (mips_option_override): Check global_options_set.x_g_switch_value
7829         instead of g_switch_set.
7830         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
7831         (rs6000_file_start): Format g_switch_value with %d.
7832         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
7833         comparisons with g_switch_value.
7834         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7835         global_options_set.x_g_switch_value instead of g_switch_set.
7836         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7837         global_options_set.x_g_switch_value instead of g_switch_set.
7838         * config/score/score.c (score_handle_option): Don't handle -G here.
7839         * config/score/score3.c (score3_option_override): Check
7840         global_options_set.x_g_switch_value instead of g_switch_set.
7841         * config/score/score7.c (score7_option_override): Check
7842         global_options_set.x_g_switch_value instead of g_switch_set.
7843
7844 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7845
7846         * common.opt (fira-coalesce): Remove.
7847
7848         * doc/invoke.texi (flag_ira_coalesce): Remove.
7849
7850         * ira-color.c (allocno_coalesced_p): Move before
7851         copy_freq_compare_func.
7852         processed_coalesced_allocno_bitmap): Ditto.
7853         (update_conflict_hard_regno_costs): Don't use
7854         ALLOCNO_FIRST_COALESCED_ALLOCNO.
7855         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
7856         (assign_hard_reg): Assume no coalesced allocnos.
7857         (get_coalesced_allocnos_attributes): Remove.
7858         (bucket_allocno_compare_func): Assume no coalesced allocnos.
7859         (push_allocno_to_stack): Ditto.
7860         (remove_allocno_from_bucket_and_push): Use
7861         ira_print_expanded_allocno instead of print_coalesced_allocno.
7862         (push_allocnos_to_stack): Assume uncoalesced allocnos.
7863         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
7864         all_conflicting_hard_regs.
7865         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
7866         (setup_allocno_left_conflicts_size): Ditto.
7867         (put_allocno_into_bucket): Ditto.
7868         (copy_freq_compare_func): Remove.
7869         (copy_freq_compare_func, merge_allocnos): Move before
7870         coalesced_pseudo_reg_freq_compare.
7871         coalesced_allocno_conflict_p): Ditto.
7872         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
7873         parameter.  Assume it true.
7874         (color_allocnos): Assume uncoalesced allocnos.  Use
7875         ira_print_expanded_allocno instead of print_coalesced_allocno.
7876         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
7877         parameter.
7878
7879         * ira.c: Remove comment about coalescing.
7880
7881 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
7882
7883         * config/mips/mips.h (target_flags_explicit): Declare for
7884         GENERATOR_FILE.
7885
7886 2010-10-04  Andi Kleen  <ak@linux.intel.com>
7887
7888         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
7889         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
7890
7891 2010-10-04  Matthias Klose  <doko@ubuntu.com>
7892
7893         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
7894         multilib osdirname if it exists.
7895         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
7896
7897 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
7898
7899         PR middle-end/45876
7900         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
7901         arg0's type or its unsigned counterpart as utype.  Convert
7902         arg1 to utype unconditionally.
7903
7904 2010-10-04  Julian Brown  <julian@codesourcery.com>
7905
7906         * expr.c (expand_assignment): Add assertion to prevent emitting
7907         null rtx for movmisalign pattern.
7908         (expand_expr_real_1): Likewise.
7909         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
7910         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
7911         (arm_vector_alignment_reachable): New.
7912         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
7913         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
7914         (arm_print_operand): Include alignment qualifier in %A.
7915         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
7916         (movmisalign<mode>): New expander.
7917         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
7918         insn patterns.
7919
7920 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
7921
7922         * optc-gen.awk: Define global_options_set.  Don't define
7923         target_flags_explicit.
7924         * opth-gen.awk: Declare global_options_set.  Define
7925         target_flags_explicit as macro.
7926         * opts-common.c (handle_option): Take opts_set and generated_p
7927         parameters.
7928         (handle_generated_option, read_cmdline_option, set_option): Take
7929         opts_set parameter.
7930         (set_option): Use opts_set instead of hardcoding target_flags and
7931         target_flags_explicit.
7932         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
7933         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
7934         flag_value_profile_transformations_set, flag_peel_loops_set,
7935         flag_branch_probabilities_set, flag_inline_functions_set,
7936         flag_ipa_cp_set, flag_ipa_cp_clone_set,
7937         flag_predictive_commoning_set, flag_unswitch_loops_set,
7938         flag_gcse_after_reload_set): Remove.
7939         (common_handle_option, lang_handle_option, target_handle_option):
7940         Take opts_set parameter.  Assert that it is &global_options_set.
7941         (common_handle_option): Don't set _set variables.  Check opts_set
7942         instead of such variables.
7943         (enable_warning_as_error): Pass &global_options_set to
7944         handle_generated_option.
7945         * opts.h (cl_option_handler_func.handler, set_option,
7946         handle_option, handle_generated_option, read_cmdline_option): Add
7947         opts_set parameters.
7948         (handle_option): Add generated_p parameter.
7949         * config/i386/i386.c (ix86_function_specific_save,
7950         ix86_function_specific_restore): Updat for renaming of
7951         target_flags_explicit field.
7952         * config/i386/i386.opt (target_flags_explicit): Rename to
7953         ix86_target_flags_explicit.
7954         * config/ia64/ia64.c (ia64_override_options_after_change): Check
7955         global_options_set.x_flag_selective_scheduling and
7956         global_options_set.x_flag_selective_scheduling2, not
7957         sel_sched_switch_set.
7958         * flags.h (sel_sched_switch_set,
7959         flag_speculative_prefetching_set): Remove.
7960         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
7961         that it is &global_options_set.
7962         (process_command): Pass &global_options_set to read_cmdline_option.
7963         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
7964         set_option.
7965         * toplev.c (target_flags_explicit): Remove.
7966
7967 2010-10-04  Jan Hubicka  <jh@suse.cz>
7968
7969         PR middle-end/45871
7970         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
7971         use get_ref_base_and_offset to handle references.
7972         (fold_const_aggregate_ref): Update.
7973
7974 2010-10-04  Martin Jambor  <mjambor@suse.cz>
7975
7976         PR tree-optimization/45572
7977         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
7978         ipa_check_create_node_params.
7979         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
7980
7981 2010-10-04  Yao Qi  <yao@codesourcery.com>
7982
7983         * doc/passes.texi: Clean up.
7984
7985 2010-10-03  Ian Lance Taylor  <iant@google.com>
7986
7987         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
7988         referring to a field using a typedef name.
7989         (find_anonymous_field_with_type): New static function.
7990         (convert_to_anonymous_field): New static function.
7991         (convert_for_assignment): If -fplan9-extensions, permit converting
7992         pointer to struct to pointer to anonymous field.
7993         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
7994         (is_duplicate_field): New static function.
7995         (detect_field_duplicates_hash): If -fplan9-extensions, check for
7996         typedef names duplicating field names.
7997         (detect_field_duplicates): Likewise.
7998         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
7999         (C Dialect Options): Document -fplan9-extensions.
8000         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
8001
8002 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8003
8004         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
8005         revision 164914.
8006         (vect_create_data_ref_ptr): Likewise.
8007         * tree-vect-stmts.c (vectorizable_store): Likewise.
8008         (perm_mask_for_reverse): Likewise.
8009         (reverse_vec_elements): Likewise.
8010         (vectorizable_load): Likewise.
8011
8012 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8013
8014         * cppbuiltin.c: New file.
8015         * cppbuiltin.h: New file.
8016         * Makefile.in: Take into account cppbuiltin.{h,c}.
8017
8018 2010-10-03  Andi Kleen  <ak@linux.intel.com>
8019
8020         * lto-cgraph.c (input_cgraph): Check for missing sections.
8021
8022 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
8023
8024         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
8025         to nonimmediate_operand.  Force operand 2 to register when allowed.
8026         (*<shiftrt_insn><mode>3_mask): Ditto.
8027         (*<rotate_insn><mode>3_mask): Ditto.
8028
8029 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8030
8031         PR tree-optimization/45720
8032         PR tree-optimization/45764
8033         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8034         Don't accept backwards consecutive accesses.
8035         (vect_create_data_ref_ptr): Disallow negative steps.
8036
8037         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
8038         (perm_mask_for_reverse): Removed.
8039         (reverse_vec_elements): Likewise.
8040         (vectorizable_load): Don't handle negative steps.
8041
8042 2010-10-02  Jan Hubicka  <jh@suse.cz>
8043
8044         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
8045         call destination is known.
8046
8047 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8048
8049         PR target/45820
8050         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
8051         earlier.
8052
8053 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8054
8055         * doc/install.texi (Configuration): Document build_configargs,
8056         host_configargs, target_configargs.
8057
8058 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
8059
8060         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
8061         (*<shiftrt_insn><mode>3_mask): Ditto.
8062         (*<rotate_insn><mode>3_mask): Ditto.
8063
8064 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
8065
8066         PR tree-optimization/44716
8067         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
8068         (HOT_TEXT_SECTION_NAME): Define.
8069
8070 2010-10-01  Nick Clifton  <nickc@redhat.com>
8071
8072         * common.opt: Add -fcombine-stack-adjustments.
8073         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
8074         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
8075         flag_combine_stack_adjustments.
8076         * doc/invoke.texi: Document the new option.
8077
8078 2010-10-01  Richard Guenther  <rguenther@suse.de>
8079
8080         PR tree-optimization/45854
8081         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
8082
8083 2010-10-01  Anthony Green  <green@moxielogic.com>
8084
8085         * config.gcc: Fix moxie-*-rtems* configuration.
8086
8087 2010-10-01  Richard Guenther  <rguenther@suse.de>
8088
8089         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
8090         (gen_decl_die): Likewise.
8091
8092 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8093
8094         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
8095         to the function code for SPU MD builtins.
8096         (spu_expand_builtin): Update.
8097         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
8098
8099 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8100
8101         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
8102         sjlj_except_unwind_info.
8103
8104 2010-10-01  Tristan Gingold  <gingold@adacore.com>
8105
8106         * configure.ac: Define the nop insn for avr*-*-*
8107         * configure: Regenerate.
8108
8109 2010-10-01  Alan Modra  <amodra@gmail.com>
8110
8111         PR target/45807
8112         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
8113         extend toc_restore_insn.
8114
8115 2010-09-30  Richard Guenther  <rguenther@suse.de>
8116
8117         PR tree-optimization/43959
8118         * function.c (gimplify_parameters): Use create_tmp_reg instead of
8119         create_tmp_var.
8120
8121 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8122
8123         * config/sh/sh.c (sh_expand_prologue): Set
8124         current_function_static_stack_size.
8125
8126 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128         * configure.ac: Check for Solaris 8 ld with .hidden support.
8129         * configure: Regenerate.
8130
8131 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8132
8133         PR middle-end/45758
8134         * graphite.c (graphite_initialize): Call scev_reset.
8135
8136 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8137
8138         * sese.h (scev_analyzable_p): Return false for real or floating
8139         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
8140
8141 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8142
8143         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
8144         and ps.
8145         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
8146         domain.
8147         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
8148         Do not allocate ub_expr, it is passed in initialized.
8149
8150 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8151
8152         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
8153         (build_cloog_prog): Dump CLooG input file when
8154         flag_graphite_dump_cloog is set.  This is disabled on trunk.
8155         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
8156
8157 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8158
8159         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
8160         verify_dominators for CDI_POST_DOMINATORS.
8161         * sese.h: Remove comment about CDI_POST_DOMINATORS.
8162         (recompute_all_dominators): Remove call to free_dominance_info
8163         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
8164         for CDI_POST_DOMINATORS.
8165
8166 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8167
8168         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
8169         over pbb_dim_iter_domain.
8170
8171 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8172
8173         * graphite-flattening.c: Fix comments.
8174
8175 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8176
8177         * Makefile.in (OBJS-common): Add graphite-flattening.o.
8178         (graphite-flattening.o): New rule.
8179         * common.opt (floop-flatten): New flag.
8180         * doc/invoke.texi (-floop-flatten): Documented.
8181         * graphite-flattening.c: New.
8182         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
8183         * graphite-poly.h (flatten_all_loops): Declared.
8184         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
8185         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
8186         is set, also set flag_graphite.
8187
8188 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8189
8190         * graphite-poly.c (cloog_checksum): New.
8191         * graphite-poly.h (cloog_checksum): Declared.
8192
8193 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8194
8195         * graphite-poly.c (pbb_number_of_iterations): Removed.
8196         (pbb_number_of_iterations_at_time): Correctly compute the number
8197         of iterations in the transformed loop.
8198         * graphite-poly.h (pbb_number_of_iterations): Removed.
8199
8200 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8201
8202         * graphite-poly.h (lst_update_scattering_seq): Removed.
8203         (lst_update_scattering): Correctly handle outermost loop dewey
8204         renumbering.
8205
8206 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8207
8208         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
8209         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
8210         * graphite-poly.h (lst_niter_for_loop): New.
8211
8212 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8213
8214         * graphite-poly.c (apply_poly_transforms): Do not abort when the
8215         transform read from disk is not legal.  Call fatal_error instead.
8216
8217 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8218
8219         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
8220         (print_scop_header): Removed.  Inlined in the only call place...
8221         (print_scop): ... here.
8222
8223 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8224
8225         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
8226
8227 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8228
8229         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
8230
8231 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8232
8233         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
8234         (dot_deps_stmt): Same.
8235         * graphite-poly.c (dot_lst): Same.
8236
8237 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8238
8239         * graphite-blocking.c (scop_do_strip_mine): Do not call
8240         graphite_legal_transform.
8241         (scop_do_block): Same.
8242
8243 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
8244
8245         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
8246         description.
8247
8248 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8249
8250         * tree-scalar-evolution.c (instantiate_array_ref): New.
8251         (instantiate_scev_r): Also handle ARRAY_REFs.
8252
8253 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8254
8255         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8256         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
8257         RESULT_DECL, and FIELD_DECL.  Return false for an
8258         SSA_NAME_IS_DEFAULT_DEF.
8259         (compute_scalar_evolution_in_loop): Do not further analyze the
8260         scalar evolution when no_evolution_in_loop_p returns true.
8261
8262 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8263
8264         * tree-chrec.h (evolution_function_is_affine_p): Do not check
8265         whether CHREC_LEFT is invariant.  A function is affine when
8266         CHREC_RIGHT is invariant.
8267
8268 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8269
8270         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
8271         is_gimple_reg.
8272         (rewrite_degenerate_phi): Same.
8273         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
8274
8275 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
8276
8277         * graphite-scop-detection.c (graphite_can_represent_scev,
8278         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
8279         graphite_can_represent_loop): Remove outermost_loop.
8280
8281 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8282
8283         PR middle-end/45229
8284         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
8285         handle GIMPLE_CALLs with no LHS.
8286
8287 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
8288
8289         * graphite-poly.c (init_graphite_out_file): New.
8290         (init_graphite_in_file): New.
8291         (apply_poly_transforms): Updated to enable reading and writing of
8292         multiple scop files.
8293
8294 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
8295
8296         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
8297         redundant checks.
8298
8299 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8300
8301         * graphite-clast-to-gimple.c (precision_for_value): Adjust
8302         computation of precision by 1.
8303
8304 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
8305
8306         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
8307         (openscop_read_polyhedron_matrix): New.
8308         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
8309         (openscop_read_N_int): Same.
8310         * graphite-poly.c (openscop_read_N_int): New.
8311         (openscop_read_one_int): New.
8312         (openscop_read_N_string): New.
8313         (openscop_read_one_string): New.
8314         (openscop_read_powerset_matrix): New.
8315         (graphite_read_transforms): Remove.
8316         (graphite_read_scatt): New.
8317         (graphite_read_scop_file): New.
8318         (apply_poly_transforms): Updated to call graphite_read_scop_file.
8319
8320 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8321
8322         * graphite-poly.c: Change include order.
8323
8324 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8325
8326         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
8327         (cloog_matrix_nrows): New.
8328
8329 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
8330
8331         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
8332         from matrix lines.
8333         * graphite-poly.c (openscop_print_scattering_function_1): Same.
8334         (print_scattering_function_1): Same.
8335         (openscop_print_pbb_domain): Same.
8336         (openscop_print_scop_context): Same.
8337         (print_scop_context): Same.
8338
8339 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
8340
8341         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
8342         (openscop_print_pdr_polyhedron): Print pph.
8343
8344 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8345
8346         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
8347         priority signed types.
8348
8349 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8350
8351         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
8352         the call to lang_hooks.types.type_for_size.  Call
8353         build_nonstandard_integer_type.
8354
8355 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
8356
8357         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
8358         (openscop_print_polyhedron_matrix): New.
8359         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
8360         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
8361         (openscop_print_pdr_powerset): New.
8362         (openscop_print_powerset_matrix): New.
8363         (openscop_print_scattering_function_1): New.
8364         (print_scattering_function): Add support for scattering names and
8365         OpenScop format.
8366         (graphite_write_transforms): Remove.
8367         (print_pdr_access_layout): Updated to support OpenScop format.
8368         (print_pdr): Same.
8369         (openscop_print_pbb_domain): New.
8370         (print_pbb_body): Added a parameter to allow indicating that pbb_body
8371         is not provided.
8372         (print_pbb): Updated to call the new print_pbb_body.
8373         (openscop_print_scop_context): New.
8374         (print_scop_header): New.
8375         (print_scop): Updated to call print_scop_header.
8376         * graphite-poly.h: Document OpenScop format.
8377
8378 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
8379
8380         * config/cris/m32c.c (cris_memory_move_cost): New.
8381         (cris_register_move_cost): Make static. Change arguments type from
8382         enum reg_class to reg_class_t.
8383         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8384         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8385         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
8386
8387 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
8388
8389         PR target/45843
8390         * config/i386/i386.c (ix86_gimplify_va_arg): Use
8391         INTVAL (XEXP (slot, 1)) as prev_size.
8392
8393 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8394
8395         PR target/45837
8396         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
8397         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
8398         defined.
8399         * config/rs6000/option-defaults.h (toplevel): Change #if
8400         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
8401         global option changes.
8402
8403 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
8404
8405         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
8406
8407         PR tree-optimization/31261
8408         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
8409         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
8410
8411 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8412
8413         PR bootstrap/45796
8414         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
8415         special-casing for generators and turn into ...
8416         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
8417         rule, for better error messages in case of toplevel dependency errors.
8418         (genprog): Add hooks, rename to ...
8419         (genprogerr): ... this, and let genprog also contain check,
8420         checksum, condmd.
8421         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
8422         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
8423         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
8424
8425 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
8426             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8427
8428         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
8429         for GMP, MPFR and MPC.
8430
8431 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8432
8433         * config/sparc/sparc.opt (mimpure-text): Move ...
8434         * config/sol2.opt: ... here.  Correct description.
8435         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
8436         * doc/invoke.texi (Option Summary, SPARC Options): Move
8437         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
8438         (Option Summary, Solaris 2 Options): ... here.
8439         (Submodel Options, Solaris 2 Options): New menu entry.
8440         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
8441         (Solaris 2 Options): ... here.
8442
8443 2010-09-30  Michael Eager  <eager@eagercon.com>
8444
8445         * extend.texi (interrupt_handler): Add MicroBlaze to list.
8446         (save_volatiles): Describe option for MicroBlaze.
8447         * invoke.texi: Add MicroBlaze Options.
8448         * contrib.texi: Add acknowledgment.
8449         * md.texi: Add MicroBlaze d and z constraints.
8450         * install.texi: Add microblaze-*-elf.
8451         * configure.ac: Add microblaze-*-* to target list.
8452         * configure: Regenerate.
8453         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
8454         * config/microblaze/microblaze-protos.h: New.
8455         * config/microblaze/crti.s: New.
8456         * config/microblaze/predicates.md: New.
8457         * config/microblaze/linux.h: New.
8458         * config/microblaze/microblaze.md: New.
8459         * config/microblaze/constraints.md: New.
8460         * config/microblaze/crtn.s: New.
8461         * config/microblaze/microblaze.opt: New.
8462         * config/microblaze/microblaze-c.c: New.
8463         * config/microblaze/t-microblaze: New.
8464         * config/microblaze/microblaze.c: New.
8465         * config/microblaze/microblaze.h: New.
8466
8467 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
8468
8469         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
8470         parse @optional/@required and set the flags as appropriate.
8471
8472 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
8473
8474         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
8475
8476 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
8477
8478         * opt-functions.awk (static_var): Update comment.
8479         (var_ref): Return offsetof expression or -1, not variable address.
8480         * optc-gen.awk: Generate structure field initializers instead of
8481         static variables.  Expect -1 for missing variables instead of null
8482         pointer.  Add gcc_options parameters to generated functions.
8483         * opth-gen.awk: Generate structure fields for static variables.
8484         Add gcc_options parameters to generated functions.
8485         * common.opt (optimize, optimize_size): Add variables.
8486         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
8487         &global_options to cl_target_option_restore.
8488         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
8489         &global_options to cl_optimization_restore, cl_target_option_save
8490         and cl_target_option_restore.
8491         (ix86_set_current_function): Pass &global_options to
8492         cl_target_option_restore.
8493         * config/pdp11/pdp11.h (optimize): Remove.
8494         * config/rs6000/rs6000.h (optimize): Remove.
8495         * config/sh/sh.h (optimize): Remove.
8496         * config/xtensa/xtensa.h (optimize): Remove.
8497         * coretypes.h (struct gcc_options): Declare.
8498         * diagnostic.c (diagnostic_initialize): Initialize
8499         context->option_state.
8500         (diagnostic_report_diagnostic): Pass option_state to
8501         option_enabled hook.
8502         * diagnostic.h (diagnostic_context.option_enabled): Add void *
8503         parameter.
8504         (diagnostic_context.option_state): New field.
8505         * final.c (final_start_function, final, final_scan_insn): Rename
8506         optimize parameter to optimize_p.
8507         * flags.h (optimize, optimize_size): Remove.
8508         * function.c (invoke_set_current_function_hook): Pass
8509         &global_options to cl_optimization_restore.
8510         * gcc.c (driver_handle_option): Take gcc_options parameter.
8511         Assert that it is &global_options.
8512         (process_command): Pass &global_options to read_cmdline_option.
8513         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
8514         option_enabled.
8515         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
8516         &global_options to set_option.
8517         * opts-common.c (handle_option, handle_generated_option,
8518         read_cmdline_option, set_option): Take explicit gcc_options
8519         parameters.  Use option_flag_var.
8520         (option_flag_var): New.
8521         * opts.c (common_handle_option, lang_handle_option,
8522         target_handle_option): Take gcc_options parameter.  Assert that it
8523         is &global_options.
8524         (read_cmdline_options): Pass &global_options to read_cmdline_option.
8525         (print_filtered_help): Use option_flag_var.  Pass &global_options
8526         to option_enabled.
8527         (common_handle_option): Use option_flag_var.
8528         (option_enabled): Take opts parameter.  Use option_flag_var.
8529         (get_option_state): Take gcc_options parameter.  Use
8530         option_flag_var.  Pass gcc_options parameter to option_enabled.
8531         (enable_warning_as_error): Pass &global_options to
8532         handle_generated_option.
8533         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
8534         (cl_option_handler_func.handler): Take gcc_options parameter.
8535         (option_enabled, get_option_state, set_option, handle_option,
8536         handle_generated_option, read_cmdline_option): Take gcc_options
8537         parameters.
8538         * toplev.c (optimize, optimize_size): Remove.
8539         (print_switch_values): Pass &global_options to option_enabled.
8540         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
8541         to get_option_state.
8542         (general_init): Initialize global_dc->option_state.
8543         * tree.c (build_optimization_node): Pass &global_options to
8544         cl_optimization_save.
8545         (build_target_option_node): Pass &global_options to
8546         cl_target_option_save.
8547
8548 2010-09-30  Martin Jambor  <mjambor@suse.cz>
8549
8550         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
8551         zero sized bit-fields.
8552
8553 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
8554
8555         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
8556         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
8557         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
8558         (c_parser_objc_class_declaration): Same change.
8559         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
8560         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8561         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
8562         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
8563         and RID_AT_PUBLIC instead of RID_PUBLIC.
8564         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
8565         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8566
8567 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
8568
8569         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
8570         Add links to current providers of packages for Solaris and IRIX.
8571
8572 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8573
8574         Merge from 'apple/trunk' branch on FSF servers.
8575         * c-parser.c: Applied change originally in c-parse.in.
8576
8577         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
8578
8579         Radar 4281748
8580         * c-decl.c (start_decl): Check for redeclaration of class name.
8581         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
8582
8583 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
8584
8585         * config/ia64/ia64.c (ia64_builtin_decl): New.
8586         (TARGET_BUILTIN_DECL): Define.
8587         (ia64_builtins): New.
8588         (ia64_init_builtins): Save decls in ia64_builtins.
8589
8590 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
8591
8592         PR target/40457
8593         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
8594         (move2add_use_add3_insn): Likewise.
8595         (reload_cse_move2add): Likewise.
8596         * rtlanal.c (get_full_rtx_cost): New function.
8597         * rtl.h (struct full_rtx_costs): New.
8598         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
8599         costs_add_n_insns): New inline functions.
8600         (get_full_rtx_cost): Declare.
8601
8602         PR c/45054
8603         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
8604         invariants.  Check for reg_equiv_invariant.
8605         (reload): Assert that spilled_pseudos is empty when returning.
8606
8607 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
8608
8609         * config/i386/mingw32.h (TARGET_64BIT): replaced by
8610         TARGET_64BIT_DEFAULT in #if check.
8611
8612 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
8613
8614         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
8615
8616 2010-09-29  Mike Stump  <mikestump@comcast.net>
8617
8618         * config/darwin.h (flag_mkernel): Remove.
8619         (flag_apple_kext): Likewise.
8620
8621 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8622             Jack Howarth  <howarth@bromo.med.uc.edu>
8623
8624         * config/darwin.opt (undefined): Add.
8625
8626 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8627
8628         PR testsuite/45664
8629         * configure.ac: Add --enable-indirect-function option.
8630         * config.gcc: Add default_gnu_indirect_function.
8631         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
8632         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
8633         * varasm.c (do_assemble_alias): Adjust for macro name change.
8634         * configure: Rebuilt.
8635         * doc/install.texi: Document --enable-indirect-function.
8636
8637 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8638
8639         * doc/options.texi (Variable, Var, Init): Update documentation
8640         without reference to VarExists.
8641         (VarExists): Remove.
8642         * common.opt, config/i386/i386.opt, config/linux.opt,
8643         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
8644         Don't use VarExists.
8645
8646 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
8647
8648         * optc-gen.awk: Generate global_options initializer instead of
8649         individual variables.  Add x_ prefix to names of structure members.
8650         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
8651         names of structure members.
8652         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8653         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
8654         * doc/tm.texi: Regenerate.
8655         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8656         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8657         * c-parser.c (disable_extension_diagnostics,
8658         restore_extension_diagnostics): Update names of cpp_options members.
8659         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8660         * common.opt (fcompare-debug-second): Don't use Var.
8661         * config/alpha/alpha.h (target_flags): Remove.
8662         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8663         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8664         * config/bfin/bfin.h (target_flags): Remove.
8665         * config/cris/cris.h (target_flags): Remove.
8666         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
8667         cl_target_option members.
8668         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
8669         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
8670         ix86_can_inline_p): Update names of cl_target_option members.
8671         * config/i386/i386.h (ix86_isa_flags): Remove.
8672         * config/lm32/lm32.h (target_flags): Remove.
8673         * config/mcore/mcore.h (mcore_stack_increment): Remove.
8674         * config/mcore/mcore.md (addsi3): Remove extern declaration of
8675         flag_omit_frame_pointer.
8676         * config/mep/mep.h (target_flags): Remove.
8677         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8678         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8679         * config/mmix/mmix.h (target_flags): Remove.
8680         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
8681         flag_expensive_optimizations): Remove.
8682         * config/s390/s390.h (flag_pic): Remove.
8683         * config/score/score-conv.h (target_flags): Remove.
8684         * config/sh/sh.h (sh_fixed_range_str): Remove.
8685         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
8686         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8687         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8688         * diagnostic.c (diagnostic_initialize): Update names of
8689         diagnostic_context members.
8690         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
8691         warn_system_headers.
8692         (diagnostic_report_warnings_p): Update for new names.
8693         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8694         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
8695         HARD_FRAME_POINTER_IS_ARG_POINTER.
8696         * flags.h (flag_compare_debug): Declare.
8697         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8698         * opts.c (flag_compare_debug): Define.
8699         (common_handle_option): Update names of diagnostic_context
8700         members.  Handle -fcompare-debug-second.
8701         (fast_math_flags_struct_set_p): Update names of cl_optimization
8702         members.
8703         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8704         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8705         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8706         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8707         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8708         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8709         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
8710         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8711         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8712
8713 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
8714
8715         * config/picochip/picochip.c (picochip_output_internal_label):
8716         This function can now be called for debug CFI labels, which can come
8717         in the middle of a vliw instruction.  Postpone until end of vliw.
8718
8719 2010-09-29  Richard Guenther  <rguenther@suse.de>
8720
8721         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
8722         (DECL_FILE_SCOPE_P): Use it.
8723         (TYPE_FILE_SCOPE_P): New macro.
8724
8725 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8726
8727         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
8728         a CPP_NAME which is a reserved word, clearly separate cases for
8729         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
8730
8731 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8732
8733         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
8734         token->value with the canonical spelling.  Do exactly like C and
8735         C++ and leave it as it is.
8736
8737 2010-09-28  Richard Henderson  <rth@redhat.com>
8738
8739         * config/alpha/alpha.c (alpha_builtins): New.
8740         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
8741         (alpha_builtin_function): New.
8742         (alpha_add_builtins, alpha_init_builtins): Use it.
8743
8744 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
8745
8746         * doc/standards.texi (Standards): Expanded the section on
8747         Objective-C and Objective-C++.
8748
8749 2010-09-28  DJ Delorie  <dj@redhat.com>
8750
8751         PR target/45800
8752         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
8753         volatile MEMs.
8754
8755 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8756
8757         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
8758         attributes on methods.
8759          (c_parser_objc_method_definition): Handle attributes.
8760         (c_parser_objc_methodproto): Likewise.
8761         (c_parser_objc_maybe_method_attributes): New.
8762         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
8763         missing definition, similar to that in ObjC++.
8764
8765 2010-09-28  Richard Henderson  <rth@redhat.com>
8766
8767         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
8768         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8769         (CONFIG_SJLJ_EXCEPTIONS): Remove.
8770         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
8771         (STACK_CHECK_PROTECT): Likewise.
8772         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
8773         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
8774         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
8775         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
8776         (dwarf2out_assembly_start): Likewise.
8777         * except.c (init_eh): Use targetm.except_unwind_info.
8778         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
8779         (output_one_function_exception_table): Likewise.
8780         * final.c: Unconditionally include dwarf2out.h.
8781         (final_start_function): Unconditionally call dwarf2out routines.
8782         (final_end_function, final_scan_insn): Likewise.
8783         * function.c (expand_function_end): Use targetm.except_unwind_info.
8784         * opts.c (decode_options): Use targetm.except_unwind_info.
8785         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
8786         * target.def (debug_unwind_info, except_unwind_info): New.
8787         * target.h (enum unwind_info_type): New.
8788         * targhooks.c (default_debug_unwind_info): New.
8789         (default_except_unwind_info): New.
8790         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
8791         * targhooks.h: Declare them.
8792         * tree-tailcall.c: Include "target.h"
8793         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
8794         * Makefile.in (tree-tailcall.o): Update.
8795         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
8796         (lhd_gcc_personality): Likewise.
8797
8798         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
8799         (TARGET_EXCEPT_UNWIND_INFO): New.
8800         (DWARF2_UNWIND_INFO): Update.
8801         (TARGET_DEBUG_UNWIND_INFO): New.
8802         * doc/tm.texi: Rebuild.
8803
8804         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
8805         targetm.except_unwind_info.
8806
8807         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
8808         (arm_except_unwind_info): New.
8809         (arm_compute_func_type): Use it.
8810         (arm_expand_prologue, thumb_pushpop): Likewise.
8811         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
8812         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
8813         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
8814         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
8815         (DWARF2_UNWIND_INFO): Remove.
8816         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8817         (ARM_EABI_UNWIND_TABLES): Remove.
8818
8819         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
8820         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
8821         (ia64_except_unwind_info): New.
8822         (ia64_output_function_prologue): Use it.
8823         (ia64_add_bundle_selector_before): Likewise.
8824         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
8825         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
8826         (TARGET_UNWIND_INFO): Remove.
8827
8828         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
8829
8830 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
8831
8832         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
8833         (c_parser_objc_protocol_definition): Likewise.
8834         (c_parser_external_declaration): Provide dummy attribute arguments.
8835         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
8836         (c_parser_objc_class_definition): Handle attributes.
8837         (c_parser_objc_protocol_definition): Likewise.
8838
8839 2010-09-28  Tobias Burnus  <burnus@net-b.de>
8840
8841         PR fortran/40569
8842         PR fortran/40568
8843         * toplev.h (save_decoded_options, save_decoded_options_count):
8844         New global variables.
8845         * toplev.c (save_decoded_options, save_decoded_options_count):
8846         Export variables.
8847
8848 2010-09-28  Ian Lance Taylor  <iant@google.com>
8849
8850         * config/i386/i386.c (ix86_supports_split_stack): Test
8851         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
8852
8853 2010-09-28  Ian Lance Taylor  <iant@google.com>
8854
8855         PR target/45815
8856         * opts.c (decode_options): Don't test whether the target supports
8857         split stack if flag_split_stack == 0.
8858
8859 2010-09-28  Jan Hubicka  <jh@suse.cz>
8860
8861         * builtin-attrs.def (ATTR_LEAF): New attribute.
8862         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
8863         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
8864         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
8865         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
8866         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
8867         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
8868         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
8869         * sync-builtins.def: Annotate all builtins by leaf.
8870         * omp-builtins.def: Annotate all builtins by leaf.
8871         * builtins.def: Annotate relevant builtins with leaf attribute.
8872         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8873         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
8874         leaf.
8875
8876 2010-09-28  Jan Hubicka  <jh@suse.cz>
8877
8878         * tree-ssa-ccp.c (fold_ctor_reference): New function.
8879         (fold_const_aggregate_ref): Use it.
8880         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
8881         into external static.
8882
8883 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8884
8885         PR target/44452
8886         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
8887         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
8888         (ix86_solaris_return_in_memory): Remove.
8889         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
8890         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8891         (TARGET_SUBTARGET_DEFAULT): Redefine.
8892         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
8893         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8894         (TARGET_SUBTARGET_DEFAULT): Redefine.
8895         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
8896         -mvect8-ret-in-mem.
8897         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
8898
8899 2010-09-29  Alan Modra  <amodra@gmail.com>
8900
8901         PR target/45807
8902         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
8903         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
8904         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
8905         Delete.
8906         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
8907         (rs6000_emit_prologue): Don't just create frame save info for r2,
8908         actually save r2.
8909
8910 2010-09-28  Richard Henderson  <rth@redhat.com>
8911
8912         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
8913         when 8 bytes are requested.
8914
8915 2010-09-28  Tristan Gingold  <gingold@adacore.com>
8916
8917         * config/avr/avr.c (expand_prologue): Set
8918         current_function_static_stack_size.
8919
8920 2010-09-28  Tristan Gingold  <gingold@adacore.com>
8921
8922         * config/alpha/alpha.md: Change the initial condition of the
8923         probing loop.
8924
8925 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
8926
8927         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
8928         Split from *avx_<maxmin:code><mode>3.
8929         (*avx_<smaxmin:code><mode>3): Ditto.
8930         * config/i386/i386.md (maxmin): Remove code iterator.
8931
8932 2010-09-27  Ian Lance Taylor  <iant@google.com>
8933
8934         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
8935         requires assembler support for CFI directives.
8936
8937 2010-09-27  Richard Henderson  <rth@redhat.com>
8938
8939         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
8940
8941 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
8942
8943         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
8944         that AFTER is not in the range FROM..TO, inclusive.
8945
8946 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
8947             Bernd Schmidt  <bernds@codesourcery.com>
8948
8949         PR rtl-optimization/45792
8950         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
8951         If not all insns are to be merged, for each edge, stash the
8952         next candidate after the to-be-merged insns before doing the
8953         merge, and use them for the retry at the new insertion point.
8954         Handle CC0 targets when retrying.
8955
8956 2010-09-27  Ian Lance Taylor  <iant@google.com>
8957
8958         * common.opt (fsplit-stack): New option.
8959         * opts.c (decode_options): Set flag_split_stack to final value.
8960         * target.def (supports_split_stack): New hook.
8961         * gcc.c (STACK_SPLIT_SPEC): Define.
8962         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
8963         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
8964         (Code Gen Options): Document -fsplit-stack.
8965         * doc/extend.texi (Function Attributes): Mention no_split_stack.
8966         (Function Attributes): Document no_split_stack.
8967         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
8968         TARGET_SUPPORTS_SPLIT_STACK.
8969         * doc/tm.texi: Rebuild.
8970         * function.c (thread_prologue_and_epilogue_insns): If
8971         flag_split_stack, add split stack prologue.
8972         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
8973         * varasm.c (saw_no_split_stack): New static variable.
8974         (assemble_start_function): Set saw_no_split_stack if the function
8975         has the no_split_stack attribute.
8976         (file_end_indicate_split_stack): New function.
8977         * output.h (file_end_indicate_split_stack): Declare.
8978         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
8979         and function.
8980         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
8981         routines.
8982         * config/i386/i386.c (ix86_option_override_internal): Don't set
8983         expand_builtin_va_start to NULL if -fsplit-stack.
8984         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
8985         -fsplit-stack.
8986         (ix86_va_start): If -fsplit-stack, get overflow pointer from
8987         scratch register set by prologue.
8988         (ix86_code_end): If -fsplit-stack, call
8989         file_end_indicate_split_stack.
8990         (ix86_supports_split_stack): New static function.
8991         (SPLIT_STACK_AVAILABLE): Define.
8992         (split_stack_prologue_scratch_regno): New static function.
8993         (split_stack_fn): New static variable.
8994         (ix86_expand_split_stack_prologue): New function.
8995         (ix86_live_on_entry): New static function.
8996         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
8997         (output_pic_addr_const): Likewise.
8998         (i386_asm_output_addr_const_extra): Likewise.
8999         (ix86_expand_call): Change return type to rtx.  Return the new
9000         call instruction.
9001         (TARGET_SUPPORTS_SPLIT_STACK): Define.
9002         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9003         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
9004         (split_stack_prologue, split_stack_return): New insns.
9005         (split_stack_space_check): New insn.
9006         * config/i386/i386.h (struct machine_function): Add
9007         split_stack_varargs_pointer field.
9008         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
9009         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9010         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9011         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9012         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
9013         Declare.
9014         (ix86_expand_call): Update declaration.
9015
9016 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9017
9018         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
9019         code.  Added byref, which was missing in the list of codes.
9020         Explain that enumeration values are encoded as the integer type
9021         that the compiler uses to store them.  Explain and make examples
9022         of how 'const' interacts with pointers, and the complication of
9023         the encoding of 'const char *'.
9024         (Legacy type encoding): New subsection, explaining that GCC emits
9025         incorrect type encodings for the NeXT runtime for compatibility
9026         reasons.
9027         (@@encode): New subsection, explaining @encode and particularly
9028         that protocol qualifiers are not recognized inside an @encode()
9029         expression.
9030         (Method signatures): New subsection, explaining how method
9031         signatures are encoded.
9032
9033 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9034
9035         Merge from 'apple/trunk' branch on FSF servers.  Removed small
9036         change in build_conditional_expr that had been added when fixing
9037         PR objc/27377 and which did the same check in a less complete way.
9038
9039         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
9040
9041         Radar 4229905
9042         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
9043         looking for objective-c common pointer types.
9044
9045         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
9046
9047         Radar 4154928
9048         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
9049         use their ObjC common type.
9050
9051 2010-09-27  Richard Guenther  <rguenther@suse.de>
9052
9053         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
9054
9055 2010-09-27  Jie Zhang  <jie@codesourcery.com>
9056
9057         * print-tree.c (print_node): Print in-constant-pool.
9058
9059 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
9060
9061         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
9062         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
9063         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
9064         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
9065
9066 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
9067
9068         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
9069         from pro_epilogue_adjust_stack_<mode>_{1,2}.
9070         (pro_epilogue_adjust_stack_<mode>_add): Rename from
9071         pro_epilogue_adjust_stack_<mode>_3.
9072         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
9073         renamed pro_epilogue_adjust_stack_{si,di}_add.
9074         (ix86_expand_prologue): Use indirect functions.  Update for renamed
9075         pro_epilogue_adjust_stack_{si,di}_sub.
9076
9077 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
9078
9079         * config/i386/i386.md (movmsk_df): New insn.
9080         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
9081         sequence for TARGET_SSE_MATH.
9082
9083 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
9084
9085         * config/mips/mips.c (mips_builtin_decls): Declare.
9086         (mips_init_builtins): Store function declarations in
9087         mips_builtin_decls.
9088         (mips_builtin_decl): New function.
9089         (TARGET_BUILTIN_DECL): Define.
9090
9091 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
9092             Richard Henderson  <rth@redhat.com>
9093
9094         * config/i386/cygwin.asm: Include auto-host.h.
9095         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
9096         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
9097         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
9098         alignment code from the 64-bit path.  Use gas local labels.
9099         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
9100         from _di_2.  Remove the useless constant integer argument.
9101         (pro_epilogue_adjust_stack_<mode>_3): New.
9102         (allocate_stack_worker_probe_<mode>): Macroize from
9103         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
9104         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
9105         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
9106         (__chkstk_ms): New function.
9107         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
9108         * config/i386/t-interix: Likewise.
9109         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
9110         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9111         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
9112         * configure, config.in: Rebuild.
9113
9114 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9115
9116         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
9117         statements because of the return slot optimization.
9118
9119 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
9120
9121         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
9122         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
9123         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9124         (class_likely_spilled_p): Rename to...
9125         (avr_class_likely_spilled_p): ...this. Make static. Change argument
9126         type to reg_class_t.
9127
9128 2010-09-24  Jan Hubicka  <jh@suse.cz>
9129
9130         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
9131         (lto_symtab_resolve_symbols): Set it.
9132         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
9133         store resolution field in cgraph/varpool.
9134         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
9135         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
9136         (cgraph_dump_node): Drop used_from_object_file.
9137         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
9138         (cgraph_function_body_availability): Use decl_replaceable_p.
9139         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
9140         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
9141         cgraph_used_from_object_file_p.
9142         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
9143         cgraph_used_from_object_file_p.
9144         (resolution_used_from_other_file_p): New functoin.
9145         (cgraph_used_from_object_file_p): New predicate.
9146         * cgraph.h: Include plugin-api.h
9147         (struct cgraph_local_info): Remove used_from_object_file.
9148         (struct cgraph_node): Add resolution field.
9149         (struct varpool_node): Likewise; remove used_from_object_file;
9150         reove const_value_known.
9151         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
9152         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
9153         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9154         varpool_used_from_object_file_p): Declare.
9155         (varpool_get_node, varpool_extra_name_alias): Update prototype.
9156         * tree.h (DECL_REPLACEABLE_P): Remove.
9157         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
9158         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
9159         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9160         input_overwrite_node, input_node, input_varpool_node): Stream
9161         resolution.
9162         * expr.c (expand_expr_real_1): Use const_value_known_p
9163         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
9164         const_value_known.
9165         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
9166         (function_and_variable_visibility): Set resolution for local vars
9167         and functions; use varpool_used_from_object_file_p.
9168         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
9169         static functions.
9170         (default_binds_local_p_1): Use resolutoin info.
9171         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
9172         * varpool.c (varpool_get_node): Constify.
9173         (const_value_known_p): Do not use vnode->const_value_known;
9174         use decl_replaceable_p.
9175         (varpool_finalize_decl): Do not set const_value_known.
9176         (cgraph_variable_initializer_availability): Use decl_replaceable_p
9177         (varpool_extra_name_alias): Return new node.
9178         (varpool_used_from_object_file_p): New function.
9179
9180 2010-09-24  Richard Henderson  <rth@redhat.com>
9181
9182         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
9183         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
9184         (do_spill): Use REG_CFA_OFFSET.
9185         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
9186         as appropriate.
9187         (ia64_expand_epilogue): Likewise.
9188         (process_set): Split into ...
9189         (process_cfa_adjust_cfa): this,
9190         (process_cfa_register): this,
9191         (process_cfa_offset): and this new function.
9192         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
9193         instead of REG_FRAME_RELATED_EXPR.
9194
9195 2010-09-24  Olivier Hainque  <hainque@adacore.com>
9196
9197         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
9198
9199 2010-09-24  Jan Hubicka  <jh@suse.cz>
9200
9201         * doc/extend.texi: (attribute leaf): Document.
9202         * tree.c (local_define_builtin): Handle ECF_LEAF.
9203         (build_common_builtin_nodes): Set ECF_LEAF where needed.
9204         * tree.h (ECF_LEAF): New.
9205         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
9206         overwrittable and unavailable functions.
9207         (ipa_init): Put all_module_statics into optimization_summary_obstack.
9208         (copy_global_bitmap): Do not copy all_module_statics.
9209         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
9210         (propagate): Handle overwritable and unavailable leaf functions;
9211         initialize global info for overwritable and unavailable leaf functions;
9212         do not free all module statics.
9213         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
9214         local statics.
9215         * calls.c (flags_from_decl_or_type): Handle leaf.
9216         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
9217         abnormal gotos.
9218
9219 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
9220
9221         * gengtype.c: Reindented.
9222         * gengtype.h: Reindented.
9223         * gengtype-parse.c: Reindented.
9224
9225 2010-09-24  Jan Hubicka  <jh@suse.cz>
9226
9227         PR tree-optimization/45738
9228         PR tree-optimization/45741
9229         * expr.c (string_constant): Allow CONST_DECL too;
9230         check that DECL_INITIAL is set.
9231         * varpool.c (const_value_known_p): Only look into VAR_DECL
9232         and CONST_DECL.
9233
9234 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
9235
9236         * common.opt (undef): New.
9237
9238 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
9239
9240         PR middle-end/45234
9241         * rtl.h (enum global_rtl_index): Add
9242         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
9243         (LAST_VIRTUAL_POINTER_REGISTER): Define.
9244         (virtual_preferred_stack_boundary_rtx,
9245         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
9246         (LAST_VIRTUAL_REGISTER): Increase by one.
9247         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
9248         instead of LAST_VIRTUAL_REGISTER.
9249         * function.c (instantiate_new_reg): Handle
9250         virtual_preferred_stack_boundary_rtx.
9251         * emit-rtl.c (init_virtual_regs): Handle
9252         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9253         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
9254         * explow.c (round_push): If crtl->preferred_stack_boundary
9255         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
9256         virtual_preferred_stack_boundary_rtx alignment instead of
9257         crtl->preferred_stack_boundary alignment.
9258         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
9259         macros.  Never decrease crtl->preferred_stack_boundary,
9260         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
9261         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
9262         stack_pointer_delta in dynamic allocation, even when size
9263         is constant.
9264         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
9265         macro.
9266         * print-rtl.c (print_rtx): Handle
9267         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9268         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
9269         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
9270         * config/frv/frv.c (frv_emit_movsi): Likewise.
9271         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
9272         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
9273         Likewise.
9274
9275         Revert:
9276         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
9277
9278         PR middle-end/45234
9279         * calls.c (expand_call): Make sure that all variable sized
9280         adjustments are multiple of preferred stack boundary after
9281         stack alignment.
9282
9283 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
9284             Dominique Dhumieres  <dominiq@lps.ens.fr>
9285
9286         PR bootstrap/45751
9287         * config/darwin-driver.c (darwin_default_min_version):
9288         Adjust size passed to memcpy in two places.
9289
9290 2010-09-24  Richard Guenther  <rguenther@suse.de>
9291
9292         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
9293         Make sure to not call set_type_context with error_mark_node.
9294         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
9295
9296 2010-09-24  Richard Guenther  <rguenther@suse.de>
9297
9298         * Makefile.in (OBJS-onestep): Remove.
9299         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
9300         (libbackend.a): Remove onestep support.
9301         (libbackend.o): Remove.
9302         * configure.ac (--enable-intermodule): Remove.
9303         * configure: Regenerate.
9304
9305 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
9306
9307         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
9308         reaching the end of a block if it occurs at a DEBUG_INSN.
9309
9310 2010-09-09  Tristan Gingold  <gingold@adacore.com>
9311
9312         PR target/44242
9313         * config/vms/vms-crt0-64.c: Removed.
9314         * config/vms/vms-crt0.c: Removed.
9315         * config/vms/vms-psxcrt0-64.c: Removed.
9316         * config/vms/vms-psxcrt0.c: Removed.
9317         * config/vms/vms-ucrt0.c: New file.
9318         * config/vms/t-vms64: Removed.
9319         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
9320         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
9321         * config.gcc (alpha-dec-vms): Use t-vms.
9322
9323 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
9324
9325         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
9326         underfull hbox in DVI output.
9327         (-fobjc-class-cxx-cdtors): Same change.
9328         (-fobjc-exceptions): Tidied up documentation.  Explain what the
9329         option does, but moved the (lenghty) description of the exception
9330         syntax into objc.texi.
9331         (-fobjc-gc): Explain that the option is not useful with the GNU
9332         runtime.
9333         (-fzero-link): Explain that the GNU runtime always works in
9334         "zero-link" mode.
9335         * doc/objc.texi: All sections: simplified @node declarations
9336         removing specification of next, previous, up node.
9337         (Objective-C): Updated introduction.
9338         (Garbage Collection): Updated.  The bohem-gc library is now
9339         included in gcc itself.  Mention that this section only applies to
9340         the GNU Objective-C runtime.
9341         (compatibility_alias): Small tidy up.
9342         (Exceptions): New section mostly containing text previously in the
9343         description of the -fobjc-exception command-line option.
9344         (Synchronization): Same.
9345
9346 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
9347
9348         * config/i386/i386.md (ix86_code_end): Move the initialization of
9349         xops array near the consumer.  Use AX_REG and SP_REG instead of
9350         numerical constants.
9351
9352 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
9353
9354         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
9355         method [methodname]' for an Objective-C method instead of the less
9356         satisfactory 'too many arguments to function' (with no method name).
9357
9358 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
9359
9360         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
9361         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
9362         (execute_update_addresses_taken): Remove parameter.  Execute the
9363         optimization unconditionally.
9364         * passes.c (execute_function_todo): Call execute_update_addresses_taken
9365         unconditionally if TODO_rebuild_alias is set, else only when optimizing
9366         if TODO_update_address_taken is set.
9367
9368 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
9369
9370         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9371         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
9372         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9373         (arm_output_addr_const_extra): Make static.
9374
9375 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
9376
9377         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
9378         define as unspec_volatile.
9379         ("nops"): Define as unspec_volatile. Use fputs to write to
9380         asm_out_file directly.  Output NOPs on separate lines using while loop.
9381         * config/i386/i386.c (ix86_code_end): Use fputs to write to
9382         asm_out_file directly.  Output NOPs on separate lines using while loop.
9383
9384 2010-09-23  Richard Guenther  <rguenther@suse.de>
9385
9386         PR tree-optimization/45565
9387         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9388         Make sure to adjust the fndecl before replacing the stmt.
9389
9390 2010-09-23  Richard Guenther  <rguenther@suse.de>
9391
9392         PR middle-end/45750
9393         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
9394         gimplifying MEM_REF.
9395
9396 2010-09-23  Alan Modra  <amodra@gmail.com>
9397
9398         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
9399         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
9400
9401 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
9402
9403         PR rtl-optimization/44374
9404         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
9405         * df-core.c (df_set_bb_dirty): Set it.
9406         * ifcvt.c (find_memory): Remove function.
9407         (dead_or_predicable): Use can_move_insns_across.
9408         * df.h (can_move_insns_across): Declare function.
9409         * cfgcleanup.c (block_was_dirty): New static variable.
9410         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
9411         than df_get_bb_dirty.
9412         (try_head_merge_bb): New static function.
9413         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
9414         is set.
9415         * df-problems.c: Include "target.h"
9416         (df_simulate_find_uses): New static function.
9417         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
9418         (find_memory, find_memory_store): New static functions.
9419         (can_move_insns_across): New function.
9420         * Makefile.in (df-problems.o): Update dependencies.
9421
9422 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9423
9424         PR java/44095
9425         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
9426         is specified and the suffix of the file isn't ".c".
9427         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9428
9429 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9430
9431         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
9432         * doc/cppopts.texi: Fix markup of index entry.
9433         * doc/extend.texi (Constructing Calls): Fix markup of
9434         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
9435         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
9436         (Vague Linkage, C++ Attributes): Fix markup of index entries and
9437         keywords.
9438         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
9439         avoid long lines.
9440         (C Dialect Options, C++ Dialect Options, Warning Options)
9441         (Debugging Options, Spec Files, Darwin Options)
9442         (i386 and x86-64 Options, MIPS Options)
9443         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
9444         index entries, avoid abbreviations, allow URLs to wrap, avoid
9445         long lines, avoid overlong pages from long @itemx lists.
9446         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
9447         * doc/standards.texi (Standards): Likewise.
9448         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
9449
9450 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
9451
9452         * opts-common.c (prune_options): Make static.  Work with decoded
9453         options.
9454         (decode_cmdline_options_to_array): Call prune_options.  Don't
9455         resize option array here.
9456         * opts.h (prune_options): Remove prototype.
9457         * gcc.c (process_command): Take decoded options; don't call
9458         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
9459         (main): Call decode_cmdline_options_to_array here instead of
9460         prune_options.  Update call to process_command.
9461         * config/darwin-driver.c: Include opts.h.
9462         (darwin_default_min_version): Work with decoded options.  Don't
9463         handle -b or -V here.
9464         * config/darwin.h (darwin_default_min_version): Update prototype.
9465         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
9466         darwin_default_min_version.
9467         * config/i386/cygwin.h (mingw_scan): Update prototype.
9468         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
9469         * config/i386/cygwin1.c: Include opts.h.
9470         (mingw_scan): Work with decoded options.
9471         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
9472         * config/t-darwin (darwin-driver.o): Update dependencies.
9473
9474 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
9475
9476         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
9477         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
9478         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
9479         -force-link, -force-link=, -language, -language=,
9480         -library-directory, -library-directory=, -no-canonical-prefixes,
9481         -no-standard-libraries, -no-warnings, -optimize, -output,
9482         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
9483         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
9484         -print-file-name=, -print-libgcc-file-name,
9485         -print-multi-directory, -print-multi-lib,
9486         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
9487         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
9488         -profile, -save-temps, -shared, -specs, -specs=, -static,
9489         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
9490         symbolic): New.
9491         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
9492         * gcc.c (A Short Introduction to Adding a Command-Line Option):
9493         Remove comment.
9494         (cc1_options): Correct specs for passing down --help,
9495         --target-help and --help=*.  Add spec for passing down --version.
9496         (struct option_map, option_map, target_option_translations,
9497         translate_options): Remove.
9498         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
9499         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
9500         OPT_fhelp_ and OPT_ftarget_help.
9501         (process_command): Don't call translate_options.  Call
9502         decode_cmdline_options_to_array before checking for
9503         -no-canonical-prefixes using decoded options.
9504         * opts-common.c (tm.h): Update comment on #include.
9505         (find_opt): Allow abbreviations of long options.
9506         (struct option_map, option_map): New.
9507         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
9508         and -mno handling.
9509         (target_option_translations): New.
9510         (decode_cmdline_options_to_array): Handle
9511         TARGET_OPTION_TRANSLATE_TABLE in driver.
9512         * opts.c (common_handle_option): Don't handle OPT_fhelp,
9513         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
9514
9515 2010-09-22  Richard Guenther  <rguenther@suse.de>
9516
9517         * tree-inline.c (optimize_inline_calls): Schedule cleanups
9518         only if we inlined something.  Block compaction and conditional
9519         folding are done by cfg cleanup.  Schedule update-address-taken.
9520         (tree_function_versioning): Remove redundant call to number_blocks.
9521         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
9522         folding is done by cfg cleanup.
9523         * passes.c (init_optimization_passes): Remove update-address-taken
9524         pass after IPA inlining.
9525
9526 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
9527
9528         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
9529         to update conditions. Fix reg_mode[] check.
9530
9531 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
9532
9533         * config/picochip/picochip.md (movhicc): Use expand to check whether
9534         movhicc is available and split it after reload.
9535
9536 2010-09-22  Richard Guenther  <rguenther@suse.de>
9537
9538         * tree-ssanames.c (release_dead_ssa_names): Do not remove
9539         callee edges here.
9540         * passes.c (init_optimization_passes): Remove early CFG cleanup.
9541         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
9542         (pass_cleanup_cfg): Likewise.
9543         (execute_fixup_cfg): Cleanup.
9544         * tree-pass.h (pass_cleanup_cfg): Remove.
9545
9546 2010-09-22  Martin Jambor  <mjambor@suse.cz>
9547
9548         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
9549         builtins if it is true.
9550         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
9551         parameter.
9552
9553 2010-09-22  Martin Jambor  <mjambor@suse.cz>
9554
9555         * tree-sra.c (struct access): New field grp_no_warning.
9556         (create_access_replacement): Set TREE_NO_WARNING according to
9557          grp_no_warning.
9558         (create_artificial_child_access): Use build_ref_for_model and set
9559         grp_no_warning if build_user_friendly_ref_for_offset fails.
9560         (propagate_subaccesses_across_link): Likewise.
9561
9562 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9563
9564         PR target/35664
9565         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
9566         ('f'): Likewise.
9567
9568 2010-09-22  Tristan Gingold  <gingold@adacore.com>
9569
9570         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
9571
9572 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
9573
9574         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
9575         * config/i386/i386.c (decide_alg): Update for rename.
9576
9577 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
9578
9579         PR rtl-optimization/45739
9580         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
9581         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
9582
9583 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
9584
9585         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
9586         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
9587         Remove.
9588         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
9589         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9590
9591 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9592
9593         PR objc/23710
9594         * c-parser.c (c_parser_objc_method_definition): Check the return
9595         value of objc_start_method_definition and if false is returned,
9596         parse the method definition but emit no code.
9597
9598 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9599
9600         PR objc/25965
9601         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
9602         call objc_get_interface_ivars ().
9603
9604 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
9605
9606         PR target/45694
9607         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
9608         static chain-register is used for 64-bit.
9609
9610 2010-09-21  Richard Guenther  <rguenther@suse.de>
9611
9612         * dwarf2out.c (is_cu_die): New function.
9613         (add_pubtype): Use it.
9614         (gen_subprogram_die): Likewise.
9615         (gen_struct_or_union_type_die): Likewise.
9616         (dwarf2out_finish): Likewise.
9617         (comp_unit_die): Rename to ...
9618         (single_comp_unit_die): ... this.
9619         (comp_unit_die): New function lazily constructing and
9620         returning single_comp_unit_die.
9621         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
9622         base_type_die, subrange_type_die, modified_type_die,
9623         lower_bound_default, add_bound_info, add_prototyped_attribute,
9624         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
9625         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
9626         force_decl_die, gen_namespace_die, dwarf2out_decl,
9627         dwarf2out_start_source_file, dwarf2out_end_source_file,
9628         prune_unused_types, dwarf2out_finish): Use it.
9629         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
9630         the global list of translation-unit decls.
9631         (dwarf2out_init): Do not create single_comp_unit_die here.
9632         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
9633
9634 2010-09-21  Richard Guenther  <rguenther@suse.de>
9635
9636         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
9637         for bool for C++.
9638
9639 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
9640
9641         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
9642         (qhs_extenddi_cstr): Likewise.
9643         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
9644         them for the source operand.
9645
9646 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
9647
9648         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
9649         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
9650         (ix86_split_ashr): Ditto.
9651         (ix86_split_lshr): Ditto.
9652
9653 2010-09-21  Richard Guenther  <rguenther@suse.de>
9654
9655         PR tree-optimization/45580
9656         * tree-ssa-propagate.c (substitute_and_fold): Always replace
9657         regular uses.
9658         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
9659         virtuals fold the call into a regular indirect one.
9660
9661 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
9662
9663         PR rtl-optimization/42775
9664         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
9665         scheduling is enabled.
9666
9667 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
9668
9669         PR rtl-optimization/45728
9670         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
9671         gen_lowpart_common first and if that fails, force_reg first
9672         before calling gen_lowpart.
9673
9674         PR middle-end/45678
9675         * cfgexpand.c (expand_one_stack_var_at): Use
9676         crtl->max_used_stack_slot_alignment as max_align, instead
9677         of maximum of that and PREFERRED_STACK_BOUNDARY.
9678         Don't call update_stack_alignment.
9679
9680 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
9681
9682         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
9683         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
9684         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
9685         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
9686         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
9687         (build_nonstandard_integer_type): Likewise.
9688         (build_range_type_1): New function, built from...
9689         (build_range_type): ...this.  Call build_range_type_1.
9690         (build_nonshared_range_type): New function.
9691         (build_array_type_1): New function, built from...
9692         (build_array_type: ...this.  Call build_array_type_1.
9693         (build_nonshared_array_type): New function.
9694         * tree.h (build_nonshared_range_type): Declare.
9695         (build_nonshared_array_type): Likewise.
9696
9697 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
9698
9699         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
9700         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9701         (arm_class_likely_spilled_p): New function.
9702
9703 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
9704
9705         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
9706         indirect functions.
9707         (ix86_split_ashl): Ditto.
9708         (ix86_split_ashr): Ditto.
9709         (ix86_split_lshr): Ditto.
9710         (ix86_adjust_counter): Ditto.
9711
9712 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
9713
9714         * c-family/c-common.h (constant_string_class): Documented with
9715         comment identical to the one already in c-common.c.
9716
9717 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
9718
9719         * dwarf2out.c (any_cfis_emitted): New static variable.
9720         (add_fde_cfi): Set it.
9721         (dwarf2out_frame_debug): Clear it before processing,
9722         if it is set afterwards, flush any queued reg saves.
9723
9724         PR debug/45124
9725         * dwarf2out.c (add_accessibility_attribute): Assume
9726         DW_ACCESS_private as the default for dwarf_version > 2
9727         and DW_TAG_class_type parent.
9728         (gen_inheritance_die): Assume DW_ACCESS_public as the default
9729         for dwarf_version > 2 and parent other than DW_TAG_class_type.
9730
9731 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
9732
9733         PR target/45726
9734         * arm.md (arm_movt): Only enable on machines with MOVT.
9735
9736 2010-09-20  Jie Zhang  <jie@codesourcery.com>
9737
9738         * config/arm/arm.c (arm_address_offset_is_imm): New.
9739         (arm_early_store_addr_dep): New.
9740         (arm_early_load_addr_dep): New.
9741         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
9742         (arm_early_load_addr_dep): Declare.
9743         (arm_address_offset_is_imm): Declare.
9744         * config/arm/cortex-m4.md: New file.
9745         * config/arm/cortex-m4-fpu.md: New file.
9746         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
9747         (attr generic_sched): Exclude cortexm4.
9748         (attr generic_vfp): Exclude cortexm4.
9749
9750 2010-09-20  Richard Guenther  <rguenther@suse.de>
9751
9752         PR middle-end/45704
9753         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
9754
9755 2010-09-20  Jan Hubicka  <jh@suse.cz>
9756
9757         PR tree-optimize/45605
9758         * cgraph.h (const_value_known_p): Declare.
9759         (varpool_decide_const_value_known): Remove.
9760         * tree-ssa-ccp.c (get_base_constructor): Use it.
9761         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
9762         * expr.c (string_constant): Likewise.
9763         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
9764         * ipa.c (ipa_discover_readonly_nonaddressable_var,
9765         function_and_variable_visibility): Likewise.
9766         * gimplify.c (gimplify_call_expr): Likewise.
9767         * gimple-fold.c (get_symbol_constant_value): Likewise.
9768         * varpool.c (varpool_decide_const_value_known): Replace by...
9769         (const_value_known_p): ... this one; handle other kinds of DECLs
9770         too and work for automatic vars.
9771         (varpool_finalize_decl): Use const_value_known_p.
9772
9773 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
9774
9775         PR target/45726
9776         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
9777
9778 2010-09-20  Richard Guenther  <rguenther@suse.de>
9779
9780         PR tree-optimization/45705
9781         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
9782
9783 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
9784
9785         PR rtl-optimization/45695
9786         * combine.c (try_combine): When splitting a two set pattern,
9787         make sure the pattern which will be put into i2 doesn't use REGs
9788         or MEMs set by insns in between i2 and i3.
9789
9790 2010-09-19  Jan Hubicka  <jh@suse.cz>
9791
9792         PR lto/44246
9793         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
9794         processing same node twice.
9795
9796 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
9797
9798         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
9799         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9800         (bfin_class_likely_spilled_p): New function
9801
9802 2010-09-19  Ira Rosen  <irar@il.ibm.com>
9803
9804         PR tree-optimization/45714
9805         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
9806         created in vectorizable_call instead of the original statement in
9807         def stmt updates.
9808
9809 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
9810
9811         * config/i386/i386-protos.h (split_double_mode): New prototype.
9812         (split_di, split_ti): Remove prototypes.
9813         * config/i386/i386.c (split_double_mode): New function.
9814         (split_di, split_ti): Remove.
9815         (ix86_expand_branch): Use split_double_mode.
9816         (ix86_split_to_parts): Ditto.
9817         (ix86_split_ashl): Ditto.
9818         (ix86_split_ashr): Ditto.
9819         (ix86_split_lshr): Ditto.
9820         (ix86_force_to_memory): Ditto.
9821         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
9822
9823 2010-09-18  Jan Hubicka  <jh@suse.cz>
9824
9825         PR tree-optimization/45453
9826         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
9827         virtual functions are reachable.
9828         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
9829         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9830         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
9831         when modifying function.
9832
9833 2010-09-18  Jan Hubicka  <jh@suse.cz>
9834
9835         PR tree-optimization/45605
9836         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
9837         * gimple-fold.c (static_object_in_other_unit_p): New function.
9838         (canonicalize_constructor_val): Use it.
9839         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
9840         returning NULL.
9841         (gimple_fold_obj_type_ref_known_binfo): Use
9842         static_object_in_other_unit_p.
9843
9844 2010-09-18  Richard Guenther  <rguenther@suse.de>
9845
9846         PR tree-optimization/45709
9847         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
9848         insertions until after all PHI nodes of the block are processed.
9849
9850 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
9851
9852         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
9853
9854 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
9855
9856         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
9857
9858 2010-09-18  Richard Guenther  <rguenther@suse.de>
9859
9860         PR tree-optimization/45709
9861         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
9862
9863 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
9864
9865         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
9866         (dot_deps_stmt): Same.
9867         * graphite-poly.c (dot_lst): Same.
9868         * graphite-scop-detection.c (dot_all_scops): Same.
9869         (dot_scop): Same.
9870
9871 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
9872
9873         Revert:
9874         2009-12-16  Ben Elliston  <bje@au.ibm.com>
9875
9876         * tree-data-ref.c (dot_rdg_1): Added back.
9877         (dot_rdg): Same.  Added "#if 0" around system call.
9878
9879 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
9880             Richard Henderson  <rth@redhat.com>
9881
9882         * config/i386/i386.c (initial_ix86_tune_features): Add
9883         X86_TUNE_PAD_SHORT_FUNCTION.
9884         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
9885         (ix86_count_insn): New.
9886         (ix86_pad_short_function): Likewise.
9887         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
9888
9889         * config/i386/i386.h (ix86_tune_indices): Add
9890         X86_TUNE_PAD_SHORT_FUNCTION.
9891         (TARGET_PAD_SHORT_FUNCTION): New.
9892
9893         * config/i386/i386.md (UNSPEC_NOPS): New.
9894         (nops): Likewise.
9895
9896 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
9897
9898         PR middle-end/45234
9899         * calls.c (expand_call): Make sure that all variable sized
9900         adjustments are multiple of preferred stack boundary after
9901         stack alignment.
9902
9903 2010-09-17  DJ Delorie  <dj@redhat.com>
9904
9905         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
9906         passed an invalid value, print an error instead of ICEing.
9907         (valid_psw_flag): New.
9908         (rx_expand_builtin): Call it for setpsw/clrpsw.
9909         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
9910
9911         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
9912         (bitclr_in_memory): Likewise.
9913         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
9914
9915 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
9916
9917         PR middle-end/45678
9918         * cfgexpand.c (update_stack_alignment): New.
9919         (get_decl_align_unit): Use it.
9920         (expand_one_stack_var_at): Call update_stack_alignment.
9921
9922 2010-09-17  Richard Guenther  <rguenther@suse.de>
9923
9924         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
9925         Properly copy the read string.
9926
9927 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
9928
9929         * doc/options.texi (Variable): Document.
9930         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
9931         generate target_flags declarations explicitly.  Don't define
9932         VarExists variables for the driver.
9933         * common.opt (target_flags): New Variable record.
9934         (flag_dump_unnumbered, flag_dump_unnumbered_links,
9935         flag_var_tracking, flag_var_tracking_assignments,
9936         flag_var_tracking_assignments_toggle): Don't mark variables with
9937         VarExists.
9938         * config/i386/i386.c (ix86_isa_flags): Don't define here.
9939         * config/i386/i386.opt (ix86_isa_flags): Define here.
9940         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
9941         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
9942         VarExists.
9943         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
9944         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
9945         Only define for generator programs.
9946         * rtlanal.c (target_flags): Remove.
9947         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
9948         flag_var_tracking_assignments_toggle): Remove.
9949
9950 2010-09-17  Michael Matz  <matz@suse.de>
9951
9952         PR tree-optimization/43432
9953         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9954         Accept backwards consecutive accesses.
9955         (vect_create_data_ref_ptr): If step is negative generate
9956         decreasing IVs.
9957         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
9958         (perm_mask_for_reverse, reverse_vec_elements): New functions.
9959         (vectorizable_load): Handle loads with negative steps when easily
9960         possible.
9961
9962 2010-09-03  Jan Hubicka  <jh@suse.cz>
9963
9964         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
9965
9966 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
9967
9968         * config/v850/v850.c (v850_function_value_regno_p): Make static.
9969         Adjust comments. Declare.
9970         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9971         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
9972
9973 2010-09-17  Richard Guenther  <rguenther@suse.de>
9974
9975         * common.opt (combine): Remove.
9976         * gcc.c (default_compilers): Remove specs testing combine.
9977         The C compilers no longer can combine.
9978         (option_map): Remove -combine.
9979         (display_help): Remove -combine.
9980         (driver_handle_option): Remove OPT_combine handling.
9981         (compile_input_file_p): Remove.
9982         (do_spec): Remove code concerning combine.
9983         (main): Likewise.
9984         * doc/invoke.texi: Remove traces of -combine.
9985         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
9986
9987 2010-09-17  Richard Guenther  <rguenther@suse.de>
9988
9989         PR middle-end/45678
9990         * builtins.c (fold_builtin_memory_op): Always properly adjust
9991         alignment of memory accesses.
9992
9993 2010-09-16  Jan Hubicka  <jh@suse.cz>
9994
9995         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
9996         processing clone.
9997
9998 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
9999
10000         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
10001
10002         * config/i386/i386.c (predict_jump): Add prototype.
10003         (flag_opts): Add -m8bit-idiv.
10004         (ix86_split_idivmod): New.
10005
10006         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
10007         Add 2 splitters for SI/DI mode divide.
10008         (divmod<mode>4_1): New pattern.
10009         (udivmod<mode>4_1): Likewise.
10010         (testdi_ccno_1): Likewise.
10011
10012         * config/i386/i386.opt (m8bit-idiv): New.
10013
10014         * doc/invoke.texi: Document -m8bit-idiv.
10015
10016 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
10017
10018         PR bootstrap/45680
10019         * config/i386/i386.c (min_insn_size): Moved out of the
10020         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
10021
10022 2010-09-16  Jan Hubicka  <jh@suse.cz>
10023
10024         * lto-cgraph.c (lto_output_node): Fix handling of clones.
10025         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
10026         unreachable clones with reachable clones.
10027         * tree-inline.c (copy_bb): Fix sanity checking when producing
10028         unreachable clone.
10029
10030 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
10031
10032         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
10033         (TARGET_MEMORY_MOVE_COST): Define.
10034         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
10035
10036 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
10037
10038         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
10039         maybe_tidy_empty_bb.
10040
10041         Revert:
10042         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
10043         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10044
10045 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
10046
10047         * target.def (target_option.optimization): New hook.
10048         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
10049         TARGET_OPTION_OPTIMIZATION hook.
10050         * doc/tm.texi: Regenerate.
10051         * hooks.c (hook_void_int_int): New.
10052         * hooks.h (hook_void_int_int): Declare.
10053         * opts.c: Don't include tm_p.h.
10054         (decode_options): Use targetm.target_option.optimization instead
10055         of OPTIMIZATION_OPTIONS.
10056         * system.h (OPTIMIZATION_OPTIONS): Poison.
10057         * config/arm/arm-protos.h (arm_optimization_options): Remove.
10058         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
10059         (arm_optimization_options): Rename to arm_option_optimization.
10060         Make static.
10061         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
10062         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
10063         (cris_option_optimization): New.
10064         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
10065         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
10066         (crx_option_optimization): New.
10067         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
10068         * config/frv/frv-protos.h (frv_optimization_options): Remove.
10069         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
10070         (frv_optimization_options): Rename to frv_option_optimization.
10071         Make static.
10072         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
10073         * config/h8300/h8300.c (h8300_option_optimization): New.
10074         (TARGET_OPTION_OPTIMIZATION): Define.
10075         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
10076         * config/i386/i386-protos.h (optimization_options): Remove.
10077         * config/i386/i386.c (optimization_options): Rename to
10078         ix86_option_optimization.  Make static.
10079         (TARGET_OPTION_OPTIMIZATION): Define.
10080         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
10081         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
10082         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
10083         (ia64_optimization_options): Rename to ia64_option_optimization.
10084         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
10085         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
10086         commented-out definition.
10087         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
10088         instead of OPTIMIZATION_OPTIONS.
10089         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
10090         (m32r_option_optimization): New.
10091         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
10092         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
10093         Remove.
10094         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
10095         (mcore_option_optimization): New.
10096         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
10097         * config/mep/mep-protos.h (mep_optimization_options): Remove.
10098         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
10099         (mep_optimization_options): Rename to mep_option_optimization.
10100         Make static.  Take unused level and size parameters.
10101         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
10102         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
10103         (mmix_option_optimization): New.
10104         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
10105         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
10106         (pdp11_option_optimization): New.
10107         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
10108         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
10109         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
10110         (optimization_options): Rename to rs6000_option_optimization.
10111         Make static.
10112         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
10113         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
10114         * config/rx/rx.c (rx_set_optimization_options): Rename to
10115         rx_option_optimization.  Make static.  Take unused level and size
10116         parameters.
10117         (TARGET_OPTION_OPTIMIZATION): Define.
10118         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
10119         * config/s390/s390-protos.h (optimization_options): Remove.
10120         * config/s390/s390.c (optimization_options): Rename to
10121         s390_option_optimization.  Make static.  Don't mark size parameter
10122         unused.
10123         (TARGET_OPTION_OPTIMIZATION): Define.
10124         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
10125         * config/sh/sh-protos.h (sh_optimization_options): Remove.
10126         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
10127         (sh_optimization_options): Rename to sh_option_optimization.  Make
10128         static.  Don't mark parameters unused.
10129         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
10130         * config/spu/spu-protos.h (spu_optimization_options): Remove.
10131         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
10132         (spu_optimization_options): Rename to spu_option_optimization.
10133         Make static.
10134         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
10135         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
10136         (v850_option_optimization): New.
10137         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
10138         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
10139         (xtensa_option_optimization): New.
10140         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
10141
10142 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
10143
10144         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
10145         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
10146         * doc/tm.texi: Regenerate.
10147         * system.h (OVERRIDE_OPTIONS): Poison.
10148         * target.def (override): Default to hook_void_void.
10149         * targhooks.c (default_target_option_override): Remove.
10150         * genmodes.c, machmode.def: Update comments mentioning
10151         OVERRIDE_OPTIONS.
10152         * config/alpha/alpha-modes.def: Update comment mentioning
10153         alpha_override_options.
10154         * config/alpha/alpha-protos.h (override_options): Remove.
10155         * config/alpha/alpha.c (override_options): Rename to
10156         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
10157         (TARGET_OPTION_OVERRIDE): Define.
10158         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
10159         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
10160         of OVERRIDE_OPTIONS.
10161         * config/arc/arc-protos.h (arc_init): Remove.
10162         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
10163         (arc_init): Rename to arc_option_override.  Make static.
10164         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
10165         (OVERRIDE_OPTIONS): Remove.
10166         * config/arm/arm-protos.h (arm_override_options): Remove.
10167         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
10168         (arm_override_options): Rename to arm_option_override.  Make
10169         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
10170         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
10171         * config/arm/arm.md: Update comment referring to arm_override_options.
10172         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10173         instead of OVERRIDE_OPTIONS.
10174         * config/avr/avr-protos.h (avr_override_options): Remove.
10175         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
10176         (avr_override_options): Rename to avr_option_override.  Make static.
10177         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
10178         * config/bfin/bfin-protos.h (override_options): Remove (twice).
10179         * config/bfin/bfin.c (override_options): Rename to
10180         bfin_option_override.  Make static.
10181         (TARGET_OPTION_OVERRIDE): Define.
10182         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
10183         * config/cris/cris-protos.h (cris_override_options): Remove.
10184         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
10185         (cris_override_options): Rename to cris_option_override.  Make static.
10186         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
10187         * config/frv/frv-protos.h (frv_override_options): Remove.
10188         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
10189         (frv_override_options): Rename to frv_option_override.  Make static.
10190         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
10191         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
10192         * config/h8300/h8300.c (h8300_init_once): Rename to
10193         h8300_option_override.  Make static.
10194         (TARGET_OPTION_OVERRIDE): Define.
10195         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
10196         * config/i386/i386-protos.h (override_options): Remove.
10197         * config/i386/i386.c (override_options): Rename to
10198         ix86_option_override_internal.  Make static.  Comments referring
10199         to this function and callers changed.
10200         (ix86_option_override): New.
10201         (TARGET_OPTION_OVERRIDE): Define.
10202         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
10203         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
10204         * config/ia64/ia64.c (ia64_file_start): Update comment referring
10205         to ia64_override_options.
10206         * config/iq2000/iq2000-protos.h (override_options): Remove.
10207         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
10208         (override_options): Rename to iq2000_option_override.  Make static.
10209         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
10210         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
10211         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
10212         (lm32_override_options): Rename to lm32_option_override.  Make static.
10213         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
10214         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
10215         (m32r_option_override): New.
10216         (m32r_init): Update comment.
10217         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
10218         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
10219         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
10220         (m68hc11_override_options): Rename to m68hc11_option_override.
10221         Make static.  Return void.
10222         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
10223         * config/m68k/m68k-protos.h (override_options): Remove.
10224         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
10225         (override_options): Rename to m68k_option_override.  Make static.
10226         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
10227         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
10228         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
10229         (mcore_override_options): Rename to mcore_option_override.  Make
10230         static.
10231         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
10232         * config/mep/mep-protos.h (mep_override_options): Remove.
10233         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
10234         (mep_override_options): Rename to mep_option_override.  Make static.
10235         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
10236         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
10237         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
10238         (mmix_override_options): Rename to mmix_option_override.  Make static.
10239         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
10240         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
10241         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
10242         (mn10300_override_options): Rename to mn10300_option_override.
10243         Make static.
10244         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
10245         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
10246         * config/moxie/moxie.c (moxie_override_options): Rename to
10247         moxie_option_override.  Make static.
10248         (TARGET_OPTION_OVERRIDE): Define.
10249         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
10250         * config/picochip/picochip-protos.h (picochip_override_options):
10251         Remove.  Update comment referring to picochip_override_options.
10252         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
10253         (picochip_override_options): Rename to picochip_option_override.
10254         Make static.  Update comment and definition of
10255         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
10256         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
10257         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10258         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10259         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10260         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10261         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10262         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
10263         instead of OVERRIDE_OPTIONS.
10264         * config/rs6000/rs6000-modes.def: Update comment referring to
10265         rs6000_override_options.
10266         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
10267         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
10268         (rs6000_override_options): Rename to
10269         rs6000_option_override_internal.  Make static.  Commented
10270         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
10271         (rs6000_option_override): New.
10272         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
10273         instead of OVERRIDE_OPTIONS.
10274         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10275         * config/s390/s390-protos.h (override_options): Remove.
10276         * config/s390/s390.c (override_options): Rename to
10277         s390_option_override.  Make static.
10278         (TARGET_OPTION_OVERRIDE): Define.
10279         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
10280         * config/score/score-protos.h (score_override_options): Remove.
10281         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
10282         (score_override_options): Rename to score_option_override.  Make
10283         static.
10284         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
10285         Update comment referring to override_options.
10286         * config/score/score3.c (score3_override_options): Rename to
10287         score3_option_override.
10288         * config/score/score3.h (score3_override_options): Rename to
10289         score3_option_override.
10290         * config/score/score7.c (score7_override_options): Rename to
10291         score7_option_override.
10292         * config/score/score7.h (score7_override_options): Rename to
10293         score7_option_override.
10294         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
10295         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
10296         (sparc_override_options): Rename to sparc_option_override.  Make
10297         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
10298         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
10299         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10300         instead of OVERRIDE_OPTIONS.
10301         * config/spu/spu-protos.h (spu_override_options): Remove.
10302         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
10303         (spu_override_options): Rename to spu_option_override.  Make
10304         static.
10305         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
10306         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
10307         OVERRIDE_OPTIONS.
10308         * config/vax/vax-protos.h (override_options): Remove.
10309         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
10310         (override_options): Rename to vax_option_override.  Make static.
10311         Call SUBTARGET_OVERRIDE_OPTIONS.
10312         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
10313         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
10314         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
10315         * config/xtensa/xtensa-protos.h (override_options): Remove.
10316         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
10317         (override_options): Rename to xtensa_option_override.  Make static.
10318         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
10319
10320 2010-09-16  Richard Guenther  <rguenther@suse.de>
10321
10322         PR tree-optimization/45623
10323         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
10324         (get_constraint_for_component_ref): If computing a constraint
10325         for the rhs handle type punning through unions.
10326         (get_constraint_for_address_of): Adjust.
10327         (get_constraint_for_1): Likewise.
10328         (get_constraint_for): Likewise.
10329         (get_constraint_for_rhs): New function.
10330         (do_structure_copy): Adjust.
10331         (make_constraint_to): Likewise.
10332         (handle_const_call): Likewise.
10333         (find_func_aliases): Likewise.
10334         (process_ipa_clobber): Likewise.
10335         (create_variable_info_for): Likewise.
10336
10337 2010-09-16  Ira Rosen  <irar@il.ibm.com>
10338
10339         * tree-vectorizer.c: Fix documentation.
10340         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
10341         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
10342         is_pattern_stmt_p, is_loop_header_bb_p,
10343         stmt_vinfo_set_inside_of_loop_cost,
10344         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
10345         known_alignment_for_access_p): Likewise.
10346         * tree-vect-loop.c: Fix documentation.
10347         (vect_get_cost): Start function name from new line.
10348         * tree-vect-data-refs.c: Fix documentation.
10349         * tree-vect_stmts.c: Likewise.
10350         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
10351         (vectorizable_store): Free vec_oprnds if allocated.
10352         (vectorizable_condition): Initialize several variables to avoid
10353         warnings.
10354         * tree-vect-slp.c: Fix documentation.
10355
10356 2010-09-16  Richard Guenther  <rguenther@suse.de>
10357
10358         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
10359         is TS_TRANSLATION_UNIT_DECL.
10360         (initialize_tree_contains_struct): Adjust.
10361         (all_translation_units): New global vector.
10362         (build_translation_unit_decl): New function.
10363         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
10364         (struct tree_translation_unit_decl): New.
10365         (all_translation_units): Declare.
10366         (union tree_node): Add translation_unit_decl member.
10367         (build_translation_unit_decl): Declare.
10368         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
10369         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
10370         New function.
10371         (pack_value_fields): Call it.
10372         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
10373         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
10374         (lto_output_tree_pointers): Call it.
10375         * lto-streamer-in.c (lto_input_tree_ref): Handle references
10376         to TRANSLATION_UNIT_DECL.
10377         (unpack_ts_translation_unit_decl_value_fields): New function.
10378         (unpack_value_fields): Call it.
10379         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
10380         (lto_input_tree_pointers): Call it.
10381         * lto-streamer.c (check_handled_ts_structures): Adjust.
10382         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
10383         * c-decl.c (all_translation_units): Remove.
10384         (pop_scope): Use build_translation_unit_decl.
10385         (collect_all_refs): Adjust.
10386         (for_each_global_decl): Likewise.
10387         (c_write_global_declarations): Likewise.
10388
10389 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
10390
10391         PR bootstrap/45686
10392         * fold-const.c (fold_checksum_tree): Change slot from const void **
10393         to void **, use CONST_CAST_TREE to store into *slot.
10394
10395 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
10396
10397         * config/i386/i386.md: Remove unneeded empty conditions and
10398         preparation statements from expanders.
10399         * config/i386/mmx.md: Ditto.
10400         * config/i386/sse.md: Ditto.
10401
10402 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
10403
10404         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
10405
10406 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10407
10408         PR rtl-optimization/45593
10409         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
10410         insns that were in delay slots as stand-alone insns.
10411
10412 2010-09-15  Ian Lance Taylor  <iant@google.com>
10413
10414         * incpath.c (remove_duplicates): If name is not a directory, issue
10415         a warning rather than an error.
10416
10417 2010-09-15  Martin Jambor  <mjambor@suse.cz>
10418
10419         PR middle-end/45644
10420         * tree-sra.c (create_access): Check for bit-fields directly.
10421
10422 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
10423
10424         PR tree-optimization/45633
10425         * tree-cfg.c (verify_gimple_assign_binary): Allow
10426         MINUS_EXPR with lhs and rhs1 pointer vector and
10427         rhs2 sizetype vector.
10428         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
10429         or vector pointer use TER to optimize pointer subtraction.
10430
10431 2010-09-15  Jie Zhang  <jie@codesourcery.com>
10432
10433         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
10434         fcmpd to fcmps.
10435
10436 2010-09-15  Ian Lance Taylor  <iant@google.com>
10437
10438         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
10439
10440 2010-09-15  Ian Lance Taylor  <iant@google.com>
10441
10442         * function.c (get_arg_pointer_save_area): Set
10443         arg_pointer_save_area_init to true.
10444
10445 2010-09-15  Martin Jambor  <mjambor@suse.cz>
10446
10447         * tree-sra.c (generate_subtree_copies): Updated comment.
10448         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
10449         obtained from the statement iterator instead.
10450         (load_assign_lhs_subreplacements): Removed parameters lhs and
10451         right_offset, which is obtained from top_racc instead.  Parameter lacc
10452         is now expected to be the root of the processed tree rather than root's
10453         first child.  Updated all callers.
10454
10455 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10456
10457         * config/pdp11/pdp11.c (register_move_cost): Rename to
10458         pdp11_register_move_cost.
10459         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
10460         pdp11_register_move_cost.
10461         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
10462         pdp11_register_move_cost instead of register_move_cost.
10463
10464 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
10465
10466         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
10467         pattern for vmovn. Expansion in case of non
10468         -mvectorize-with-neon-quad.
10469         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
10470         non- -mvectorize-with-neon-quad case.
10471         (move_lo_quad_<mode>): New expansion to vmov into low part.
10472         (move_hi_quad_<mode>): New expansion to vmov into high part.
10473         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
10474         (move_lo_quad_v4sf): Likewise.
10475         (move_lo_quad_v8hi): Likewise.
10476         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
10477         low part.
10478         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
10479         high part.
10480         * config/arm/iterators.md (ANY128): New mode iterator.
10481         (V_narrow_pack): New mode attribute.
10482         (V_HALF): Add attribute.
10483         (V_DOUBLE): Add attribute.
10484         (V_mode_nunits): Add attribute.
10485
10486 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10487
10488         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
10489         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
10490
10491 2010-09-15  Olivier Hainque  <hainque@adacore.com>
10492             Jose Ruiz  <ruiz@adacore.com>
10493
10494         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
10495         * config/alpha/osf5-unwind.h: New file.
10496
10497 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10498
10499         PR bootstrap/45672
10500         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
10501         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10502         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10503
10504 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10505
10506         * c-lang.h (struct lang_type): Add variable_size GTY option.
10507
10508 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10509
10510         PR bootstrap/45672
10511         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10512
10513 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10514
10515         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
10516         result isn't used in memory address.
10517
10518 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10519
10520         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
10521         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
10522         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
10523         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
10524         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
10525         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
10526
10527         * target.def: Add units_per_simd_word to vectorize.
10528
10529         * targhooks.c (default_units_per_simd_word): New.
10530         * targhooks.h (default_units_per_simd_word): Likewise.
10531         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
10532         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10533         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
10534         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10535         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10536         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10537         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10538         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10539
10540         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
10541         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
10542
10543         * tree-vect-stmts.c: Don't include "tm_p.h".
10544         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
10545         with targetm.vectorize.units_per_simd_word.
10546
10547         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
10548
10549         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
10550
10551         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
10552         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10553
10554         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
10555         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
10556
10557         * doc/tm.texi: Regenerated.
10558
10559 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10560
10561         * tree-vect-stmts.c: Include "tm_p.h".
10562
10563         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
10564         out of RTX_CODE.
10565
10566 2010-09-14  Martin Jambor  <mjambor@suse.cz>
10567
10568         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
10569         location of generated statement.  Changed all callers.
10570         (build_ref_for_model): New parameter loc which used to set location of
10571         all generated expressions.  Changed all callers.
10572         (generate_subtree_copies): Likewise.
10573         (init_subtree_with_zero): Likewise.
10574         (sra_modify_expr): Set locations of all generated statements and
10575         expressions to the location the original statement.
10576         (handle_unscalarized_data_in_subtree): Likewise.
10577         (load_assign_lhs_subreplacements): Likewise.
10578         (sra_modify_constructor_assign): Likewise.
10579         (sra_modify_assign): Likewise.
10580
10581 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
10582
10583         PR target/45277
10584         PR target/45363
10585         PR target/45407
10586         * doc/install.texi (sparc*-*-*): New section.
10587         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
10588
10589 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
10590
10591         PR middle-end/45567
10592         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
10593         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
10594         (expand_builtin): Adjust caller.
10595         (expand_builtin_unop): Only use subtarget if it has the right mode.
10596
10597 2010-09-14  Tristan Gingold  <gingold@adacore.com>
10598
10599         * configure.ac (plugins): Fix typos.
10600         * configure: Regenerate.
10601
10602 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
10603
10604         PR debug/45660
10605         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
10606         gen_type_die for function/method return type.
10607
10608 2010-09-14  Ira Rosen  <irar@il.ibm.com>
10609
10610         PR tree-optimization/45470
10611         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10612         can throw an exception.
10613         * tree-vect-stmts.c (vectorizable_call): Likewise.
10614
10615 2010-09-14  DJ Delorie  <dj@redhat.com>
10616
10617         PR target/44749
10618         * config/mep/mep-protos.h (mep_save_register_info,
10619         mep_reinit_regs, mep_init_regs): Declare.
10620
10621         * config/mep/mep.c: Move all target definitions to the end of the
10622         file to avoid the need for duplicate declarations.
10623         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
10624         (mep_reorg_erepeat): Remove unused variables.
10625         (mep_expand_builtin): Likewise.
10626
10627         * config/mep/mep-pragma.c: Don't include rtl.h.
10628         (INVALID_REGNUM): New.
10629         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
10630         functions.
10631         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
10632         Avoid enum/integer math.
10633
10634 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
10635
10636         PR target/44749
10637         * config/mep/t-mep (GTM_H): Add insn-constants.h.
10638         * config/mep/mep.c (mep_conditional_register_usage): Take no
10639         parameters.
10640         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
10641         prototype.
10642         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
10643         call to mep_conditional_register_usage.
10644
10645 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10646
10647         PR debug/43937
10648         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
10649         the DECL as well.
10650
10651 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
10652
10653         PR rtl-optimization/45617
10654         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
10655         even if low N bits of X aren't known to be zero.
10656
10657 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
10658
10659         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
10660
10661         * config/i386/i386.c (initial_ix86_tune_features): Add
10662         X86_TUNE_VECTORIZE_DOUBLE.
10663         (ix86_units_per_simd_word): New.
10664
10665         * config/i386/i386.h (ix86_tune_indices): Add
10666         X86_TUNE_VECTORIZE_DOUBLE.
10667         (TARGET_VECTORIZE_DOUBLE): New.
10668         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
10669
10670 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
10671
10672         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
10673         (new_temp_expr_table): Allocate call_cnt vector.
10674         (free_temp_expr_table): Free it.
10675         (process_replaceable): Add call_cnt parm and set in vector.
10676         (find_replaceable_in_bb): Skip replacement if def/use span a call.
10677         (debug_ter): Dump call_cnt value, remove stderr uses.
10678
10679 2010-09-13  Jan Hubicka  <jh@suse.cz>
10680
10681         * tree.c (build_zero_cst): New.
10682         * tree.h (build_zero_cst): Declare.
10683         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
10684         (get_base_constructor): Break out from ...
10685         (fold_const_aggregate_ref): Here; handle empty constructors.
10686
10687 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10688
10689         * config/arm/arm.md: (define_attr "conds"): Update comment.
10690         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
10691         conds attribute to clob.
10692         (arm_sync_compare_and_swapsi): Likewise.
10693         (arm_sync_compare_and_swap<mode>): Likewise.
10694         (arm_sync_lock_test_and_setsi): Likewise.
10695         (arm_sync_lock_test_and_set<mode>): Likewise.
10696         (arm_sync_new_<sync_optab>si): Likewise.
10697         (arm_sync_new_nandsi): Likewise.
10698         (arm_sync_new_<sync_optab><mode>): Likewise.
10699         (arm_sync_new_nand<mode>): Likewise.
10700         (arm_sync_old_<sync_optab>si): Likewise.
10701         (arm_sync_old_nandsi): Likewise.
10702         (arm_sync_old_<sync_optab><mode>): Likewise.
10703         (arm_sync_old_nand<mode>): Likewise.
10704
10705 2010-09-13  Olivier Hainque  <hainque@adacore.com>
10706
10707         * fwprop.c (forward_propagate_and_simplify): Only attach a
10708         REG_EQUAL note to an insn if the destination is a register.
10709         * gcse.c (try_replace_reg): Likewise.
10710
10711 2010-09-13  Richard Guenther  <rguenther@suse.de>
10712
10713         PR tree-optimization/45611
10714         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
10715         (copy_ref_info): Likewise.
10716
10717 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
10718
10719         PR debug/45604
10720         PR debug/45419
10721         PR debug/45408
10722         * tree-pretty-print.c (dump_generic_node): Disregard top-level
10723         types of MEM_REF pointer types to the same type.
10724
10725 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
10726
10727         PR rtl-optimization/41087
10728         * ifcvt.c (noce_get_condition): Don't allow conditions with
10729         side-effects.
10730
10731 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
10732
10733         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10734         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
10735         * config/frv/frv.c (frv_register_move_cost): Make static. Change
10736         arguments type to reg_class_t. Add mode argument.
10737         (frv_memory_move_cost): New.
10738         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
10739
10740 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
10741
10742         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
10743         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
10744
10745 2010-09-10  Jan Hubicka  <jh@suse.cz>
10746
10747         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
10748
10749 2010-09-10  Richard Guenther  <rguenther@suse.de>
10750
10751         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
10752         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
10753         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
10754         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
10755         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
10756
10757 2010-09-10  Richard Guenther  <rguenther@suse.de>
10758
10759         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
10760         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
10761         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
10762         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
10763
10764 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10765
10766         PR middle-end/45634
10767         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
10768         of string folding is of integral type.
10769
10770 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
10771
10772         * doc/invoke.texi (-x): Fix typo.
10773
10774 2010-09-10  Richard Guenther  <rguenther@suse.de>
10775
10776         PR debug/44115
10777         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
10778         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10779         Output DECL_DEBUG_EXPR.
10780         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10781         Input DECL_DEBUG_EXPR.
10782
10783 2010-09-10  Richard Guenther  <rguenther@suse.de>
10784
10785         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
10786         (build_index_type): Implement in terms of build_range_type.
10787         (build_range_type): Do not allow NULL_TREE type, improve
10788         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
10789         if we didn't hash.
10790         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
10791         create a distinct copy of the type.
10792
10793 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
10794
10795         * configure: Regenerated.
10796         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
10797
10798 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10799
10800         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
10801         * config/arm/cortex-a9-neon.md: New and partially generated.
10802         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
10803
10804 2010-09-10  Richard Guenther  <rguenther@suse.de>
10805
10806         * tree.h (build_index_2_type): Remove.
10807         * tree.c (build_index_2_type): Remove.
10808
10809 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
10810
10811         PR bootstrap/45630
10812         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
10813         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
10814         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
10815
10816 2010-09-10  Martin Jambor  <mjambor@suse.cz>
10817
10818         PR tree-optimization/44972
10819         * tree-sra.c: Include toplev.h.
10820         (build_ref_for_offset): Entirely reimplemented.
10821         (build_ref_for_model): New function.
10822         (build_user_friendly_ref_for_offset): New function.
10823         (analyze_access_subtree): Removed build_ref_for_offset check.
10824         (propagate_subaccesses_across_link): Likewise.
10825         (create_artificial_child_access): Use
10826         build_user_friendly_ref_for_offset.
10827         (propagate_subaccesses_across_link): Likewise.
10828         (ref_expr_for_all_replacements_p): Removed.
10829         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
10830         (sra_modify_expr): Use build_ref_for_model.
10831         (load_assign_lhs_subreplacements): Likewise.
10832         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
10833         checks for return values of build_ref_for_offset.
10834         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
10835         build_ref_for_offset.
10836         * ipa-prop.h: Include gimple.h
10837         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
10838         (ipa_analyze_indirect_call_uses): Update comment.
10839         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
10840         (IPA_PROP_H): Likewise.
10841
10842 2010-09-10  Martin Jambor  <mjambor@suse.cz>
10843
10844         PR tree-optimization/44972
10845         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
10846         calling build_ref_for_offset.
10847
10848 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10849
10850         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
10851         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
10852         * config/arm/arm-tune.md: Regenerate.
10853         * doc/invoke.texi (ARM Options): Document it.
10854
10855 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
10856
10857         * config/i386/i386.c: Include sched-int.h.
10858         (TARGET_SCHED_DISPATCH): Defined.
10859         (TARGET_SCHED_DISPATCH_DO): Defined.
10860         (DISPATCH_WINDOW_SIZE): Defined.
10861         (MAX_DISPATCH_WINDOWS): Defined.
10862         (MAX_INSN): Defined.
10863         (MAX_IMM): Defined.
10864         (MAX_IMM_SIZE): Defined.
10865         (MAX_IMM_32): Defined.
10866         (MAX_IMM_64): Defined.
10867         (MAX_LOAD): Defined.
10868         (MAX_STORE): Defined.
10869         (BIG): Defined.
10870         (dispatch_group): New.
10871         (num_allowable_groups): New.
10872         (group_name): New.
10873         (sched_insn_info_s): New.
10874         (dispatch_windows_s): New.
10875         (imm_info_s): New.
10876         (dispatch_window_list): New.
10877         (dispatch_window_list1): New.
10878         (get_mem_group): New.
10879         (is_cmp): New.
10880         (dispatch_violation): New.
10881         (is_branch): New.
10882         (is_prefetch): New.
10883         (init_window): New.
10884         (allocate_window): New.
10885         (init_dispatch_sched): New.
10886         (is_end_basic_block): New.
10887         (process_end_window): New.
10888         (allocate_next_window): New.
10889         (find_constant_1): New.
10890         (find_constant): New.
10891         (get_num_immediates): New.
10892         (has_immediate): New.
10893         (get_insn_path): New.
10894         (get_insn_group): New.
10895         (count_num_restricted): New.
10896         (fits_dispatch_window): New.
10897         (add_insn_window): New.
10898         (add_to_dispatch_window): New.
10899         (debug_dispatch_window_file): New.
10900         (debug_dispatch_window): New.
10901         (debug_insn_dispatch_info_file): New.
10902         (debug_ready_dispatch): New.
10903         (do_dispatch): New.
10904         (has_dispatch): New.
10905         * config/i386/i386.h (debug_ready_dispatch): Declared.
10906         (debug_dispatch_window): Declared.
10907         * config/i386/i386.opt (mdispatch-scheduler): New flag.
10908         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
10909         (TARGET_SCHED_DISPATCH_DO): New.
10910         * doc/tm.texi: Regererated.
10911         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
10912         ready_remove_first_dispatch
10913         (schedule_block): Call targetm.sched.dispatch and
10914         targetm.sched.dispatch_do.
10915         (sched_init): Call targetm.sched.dispatch and
10916         targetm.sched.dispatch_do.
10917         (ready_remove_first_dispatch): New.
10918         (number_in_ready): New.
10919         (get_ready_element): New.
10920         * hooks.c (hook_bool_rtx_int_false): New.
10921         (hook_void_rtx_int): New.
10922         * hooks.h (hook_bool_rtx_int_false): Declared.
10923         (hook_void_rtx_int): Declared.
10924         * sched-int.h (IS_DISPATCH_ON): Defined.
10925         (IS_CMP): Defined.
10926         (DISPATCH_VIOLATION): Defined.
10927         (FITS_DISPATCH_WINDOW): Defined.
10928         (DISPATCH_INIT): Defined.
10929         (ADD_TO_DISPATCH_WINDOW): Defined.
10930         (get_ready_element): Declared.
10931         (number_in_ready): Declared.
10932         * target.def (dispatch): Defined.
10933         (dispatch_do): Defined.
10934
10935 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
10936
10937         PR middle-end/45312
10938         * reload1.c (merge_assigned_reloads): Remove.
10939         (reload_as_needed): Don't call it.
10940
10941 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
10942
10943         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
10944         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10945         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10946
10947 2010-09-09  Matthias Klose  <doko@ubuntu.com>
10948
10949         PR bootstrap/43847
10950         * configure.ac (--enable-plugin): Enhance for cross builds.
10951         * configure: Regenerate.
10952
10953 2010-09-09  Jan Hubicka  <jh@suse.cz>
10954
10955         PR tree-optimization/45598
10956         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
10957         string folding is of integral type.
10958
10959 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
10960
10961         * configure.ac (gnu_indirect_function): New test.
10962         * configure: Rebuilt.
10963         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
10964         * defaults.h (IFUNC_ASM_TYPE): Provide default.
10965
10966         * doc/extend.texi (Function Attributes): Document ifunc.
10967         * varasm.c (do_assemble_alias): Deal with ifuncs too.
10968
10969 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10970
10971         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
10972         epilogue instruction move.
10973
10974 2010-09-09  Jan Hubicka  <jh@suse.cz>
10975
10976         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
10977         command line to allow more partitions than input files.
10978
10979 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
10980
10981         PR middle-end/44554
10982         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
10983
10984 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
10985
10986         PR middle-end/40386
10987         * ira.c (pseudo_for_reload_consideration_p): Don't use
10988         flag_ira_share_spill_slots.
10989
10990 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10991
10992         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
10993         point zero operands that fit into a single GPR.
10994         (s390_preferred_reload_class): Ensure we only return general-purpose
10995         register classes.
10996         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
10997         floating-point zero operands into GPRs.
10998         ("*mov<mode>_64"): Likewise.
10999         ("mov<mode>"): Likewise using lhi.
11000
11001 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11002
11003         * config/s390/s390.c (s390_symref_operand_p): Return false for
11004         literal pool references.
11005         (s390_check_qrst_address): Update caller.
11006
11007 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
11008
11009         * config/i386/predicates.md (ext_register_operand): Check that
11010         SUBREG_REG is really a register before looking for REGNO.
11011         (reg_not_xmm0_operand): Handle SUBREGs correctly.
11012         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
11013
11014 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
11015
11016         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
11017         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
11018         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
11019         * print-rtl.c (print_rtx): Likewise.
11020         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11021         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
11022         for ADDR_EXPR with non-addressable object.
11023         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
11024         (struct dw_val_struct): Add v.val_decl_ref.
11025         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
11026         Handle DW_OP_GNU_implicit_pointer.
11027         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
11028         (get_ref_die_offset_label): New function.
11029         (implicit_ptr_descriptor): New function.
11030         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
11031         (loc_descriptor): Likewise.
11032         (gen_variable_die): Put even definitions into decl_die_table.
11033         (resolve_addr_in_expr): Resolve still unresolved
11034         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
11035         return false.
11036         (dwarf2out_finish): Call output_location_lists after outputting
11037         .debug_info and .debug_abbrev instead of before.
11038
11039 2010-09-09  Roland McGrath  <roland@redhat.com>
11040
11041         * dwarf2out.c (DWARF_REF_SIZE): Define.
11042         (size_of_loc_descr): Use it for DW_OP_call_ref.
11043
11044 2010-09-09  Alan Modra  <amodra@gmail.com>
11045
11046         * doc/invoke.text: Reinstate mcmodel=medium.
11047         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11048         CMODEL_MEDIUM as default.
11049         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
11050         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
11051         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
11052         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
11053
11054 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11055
11056         PR target/45250
11057         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
11058         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
11059         (builtin_longjmp): Likewise.
11060         (allocate_stack): Use hard_frame_pointer_rtx instead of
11061         frame_pointer_rtx.
11062         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
11063         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
11064         (pa_can_eliminate): Likewise.
11065         (TARGET_INTERNAL_ARG_POINTER): Define.
11066         (TARGET_CAN_ELIMINATE): Define.
11067         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
11068         pointer.
11069         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
11070         (pa_internal_arg_pointer, pa_can_eliminate,
11071         pa_initial_elimination_offset): New.
11072         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
11073         (HARD_FRAME_POINTER_REGNUM): Set to register three.
11074         (INITIAL_FRAME_POINTER_OFFSET): Delete.
11075         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
11076         Define.
11077         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
11078         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
11079         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
11080         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
11081         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
11082         new soft frame pointer.
11083         * config/pa/pa64-regs.h: Likewise.
11084
11085 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
11086
11087         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
11088         numerical constant.
11089         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
11090
11091 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
11092
11093         PR debug/45531
11094         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
11095
11096 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
11097
11098         PR debug/45419
11099         PR debug/45408
11100         * tree-pretty-print.c (dump_generic_node): Disregard top-level
11101         qualifiers in otherwise equal MEM_REF pointer types.
11102         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
11103         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
11104
11105 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11106
11107         PR target/44392
11108         * config/arm/arm.md (bswapsi2): Handle condition correctly
11109         for armv6 and optimize_size.
11110
11111 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11112
11113         PR other/18555
11114         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
11115
11116 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
11117
11118         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
11119         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
11120         ix86_expand_strlen, legitimate_pic_address_disp_p,
11121         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
11122         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
11123         ix86_check_movabs, ix86_secondary_memory_needed): Change function
11124         prototype to bool.
11125         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
11126         return_in_memory_ms_64, ix86_check_movabs,
11127         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
11128         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
11129         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
11130         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
11131         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
11132         ix86_secondary_memory_needed): Change to bool.  Return
11133         "true" and "false" values.
11134         * config/i386/i386.md: Return "true" and "false" values.
11135
11136 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11137
11138         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11139         run_expensive_tests.
11140
11141 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11142
11143         * toplev.c (output_stack_usage): Use lbasename instead of basename.
11144
11145 2010-09-08  Martin Jambor  <mjambor@suse.cz>
11146
11147         PR other/45443
11148         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
11149         at -O3.
11150
11151 2010-09-08  Richard Guenther  <rguenther@suse.de>
11152
11153         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
11154         (visit): Adjust.
11155         (iterative_hash_gimple_type): Likewise.
11156         (gimple_type_hash): Likewise.
11157         (gimple_register_type): Likewise.
11158         (print_gimple_types_stats): Likewise.
11159         (free_gimple_type_tables): Likewise.
11160
11161 2010-09-08  Michael Matz  <matz@suse.de>
11162
11163         PR tree-optimization/43430
11164         * tree-vect-stmts.c (vectorizable_condition): Support multiple
11165         copies for conditional statements if it's not part of a reduction.
11166
11167 2010-09-08  Michael Matz  <matz@suse.de>
11168
11169         PR tree-optimization/33244
11170         * tree-ssa-sink.c (statement_sink_location): Don't sink into
11171         empty loop latches.
11172
11173 2010-09-08  Richard Guenther  <rguenther@suse.de>
11174
11175         PR tree-optimization/45578
11176         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
11177         Be more careful when transfering alignment information to
11178         the new induction variable.
11179         (copy_ref_info): Likewise.
11180
11181 2010-09-08  Richard Guenther  <rguenther@suse.de>
11182
11183         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
11184         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
11185
11186 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
11187
11188         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
11189         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
11190
11191 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
11192
11193         PR doc/45587
11194         * doc/md.texi: Fixed modes on several standard pattern names.
11195
11196 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
11197
11198         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
11199         (ashl<mode>3): ...this.
11200         (loongson_psra<V_suffix>): Rename to...
11201         (ashr<mode>3): ...this.
11202         (loongson_psrl<V_suffix>): Rename to...
11203         (lshr<mode>3): ...this.
11204         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
11205         (CODE_FOR_loongson_psllw): Define.
11206         (CODE_FOR_loongson_psrlh): Define.
11207         (CODE_FOR_loongson_psrlw): Define.
11208         (CODE_FOR_loongson_psrah): Define.
11209         (CODE_FOR_loongson_psraw): Define.
11210
11211 2010-09-07  Richard Henderson  <rth@redhat.com>
11212
11213         * tree-vect-data-refs.c: Include tm_p.h.
11214         * Makefile.in (tree-vect-data-refs.o): Update deps.
11215         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
11216         Move delarations outside #ifdef RTX_CODE.
11217
11218 2010-09-07  Richard Henderson  <rth@redhat.com>
11219
11220         * final.c (rest_of_handle_final): Unconditionally do
11221         output_function_exception_table before assemble_end_function.
11222
11223 2010-09-07  Jan Hubicka  <jh@suse.cz>
11224
11225         * tree-inline.c (tree_inlinable_function_p): Do not test
11226         DECL_REPLACEABLE_P.
11227         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
11228         update_callee_keys, cgraph_decide_inlining): Test function availability.
11229         * cif-code.def (OVERWRITABLE): New code.
11230
11231 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
11232             Jack Howarth  <howarth@bromo.med.uc.edu>
11233
11234         PR target/36502
11235         PR target/42313
11236         PR target/44651
11237         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
11238         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
11239         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
11240         MAX macro.
11241
11242 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
11245         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
11246
11247 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
11248
11249         * config.gcc: Don't append t-android for Android targets.
11250
11251         * config/t-android: Removed.
11252
11253 2010-09-07  Richard Henderson  <rth@redhat.com>
11254
11255         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
11256         * doc/tm.texi.in: Add doc marker.
11257         * doc/tm.texi: Rebuild.
11258         * except.c (switch_to_exception_section): Always build.
11259         (output_one_function_exception_table): Move section switch,
11260         personality output, and label output ...
11261         (output_function_exception_table): ... here.  Use the new
11262         personality hook.
11263
11264         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
11265         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
11266         TARGET_ASM_INIT_SECTIONS): New.
11267         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
11268         make static.
11269         (TARGET_ASM_UNWIND_EMIT): Update to match.
11270         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
11271
11272         * config/arm/arm.c (arm_asm_emit_except_personality): New.
11273         (arm_asm_init_sections): New.
11274         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
11275
11276 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11277
11278         * config/arm/arm.md: Remove unused variable.
11279
11280 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
11281
11282         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11283         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
11284         (m32r_memory_move_cost): New function.
11285
11286 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
11287
11288         * config.gcc: Append t-android for Android targets.
11289
11290         * config/t-android: New.
11291
11292 2010-09-07  Richard Henderson  <rth@redhat.com>
11293
11294         * target.def (unwind_emit_before_insn): New hook.
11295         * doc/tm.texi.in: Add @hook marker for it.
11296         * doc/tm.texi: Rebuild.
11297         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
11298
11299 2010-09-07  Martin Jambor  <mjambor@suse.cz>
11300
11301         PR fortran/43665
11302         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
11303         are any type attributes.
11304
11305 2010-09-07  Jan Hubicka  <jh@suse.cz>
11306
11307         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
11308         array_ref_low_bound in string access folding.
11309
11310 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
11311
11312         PR target/45206
11313         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
11314         eh_return fixup sequence.
11315
11316 2010-09-07  Jan Hubicka  <jh@suse.cz>
11317
11318         * gimple-fold.c (maybe_fold_reference): Verify that operand is
11319         gimple_min_invariant.
11320
11321 2010-09-07  Richard Guenther  <rguenther@suse.de>
11322
11323         PR middle-end/45569
11324         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
11325         nor CONSTRUCTOR can trap.
11326         * tree-complex.c (update_complex_assignment): Update EH info.
11327
11328 2010-09-07  Richard Guenther  <rguenther@suse.de>
11329
11330         PR middle-end/45569
11331         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
11332         * passes.c (execute_function_todo): Do not verify anything if
11333         we saw errors.
11334
11335 2010-09-07  Richard Guenther  <rguenther@suse.de>
11336
11337         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
11338
11339 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
11340
11341         PR target/43137
11342         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
11343         New define_mode_attrs.
11344         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
11345         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
11346         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
11347         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
11348         Remove pool_range attribute.
11349         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
11350         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
11351         pool_range and neg_pool_range attributes.
11352         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
11353         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
11354         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
11355
11356 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11357
11358         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
11359         check glibc.
11360
11361 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
11362
11363         PR target/22152
11364         * config/i386/mmx.md (*mov<mode>_internal_rex64,
11365         *mov<mode>_internal_avx, *mov<mode>_internal,
11366         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
11367         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
11368
11369 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
11370
11371         * c-typeck.c (do_warn_double_promotion): Remove.
11372         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
11373         Objective-C++ too.
11374
11375 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
11376
11377         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
11378         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
11379         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
11380         argument type to reg_class_t. Change result type to bool.
11381         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11382
11383 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
11384
11385         PR libobjc/19850
11386         * gthr-posix.h (__gthread_objc_thread_detach): Use
11387         _objc_thread_attribs when detaching a thread.
11388         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
11389
11390 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11391
11392         PR target/45524
11393         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
11394         * configure: Regenerated.
11395
11396 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11397
11398         * combine.c (try_combine): Set subst_low_luid to i0.
11399
11400 2010-09-06  Richard Guenther  <rguenther@suse.de>
11401
11402         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
11403         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
11404         (build_aligned_type): Declare.
11405         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
11406         (check_aligned_type): New function.
11407         (build_aligned_type): Likewise.
11408         * expr.c (expand_assignment): Handle misaligned stores via
11409         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
11410         (expand_expr_real_1): Likewise.
11411         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
11412         * tree-vect-stmts.c (vectorizable_store): Do not build
11413         MISALIGNED_INDIRECT_REF but initialize alignment information.
11414         (vectorizable_load): Likewise.
11415         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
11416         handling.
11417         * cfgexpand.c (expand_debug_expr): Likewise.
11418         * dwarf2out.c (loc_list_from_tree): Likewise.
11419         * fold-const.c (maybe_lvalue_p): Likewise.
11420         (operand_equal_p): Likewise.
11421         (build_fold_addr_expr_with_type_loc): Likewise.
11422         * gimplify.c (gimplify_addr_expr): Likewise.
11423         (gimplify_expr): Likewise.
11424         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11425         (verify_gimple_assign_single): Likewise.
11426         * tree-dump.c (dequeue_and_dump): Likewise.
11427         (tree_could_trap_p): Likewise.
11428         * tree-predcom.c (ref_at_iteration): Likewise.
11429         * tree-pretty-print.c (dump_generic_node): Likewise.
11430         (op_code_prio): Likewise.
11431         (op_symbol_code): Likewise.
11432         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11433         * tree-ssa-loop-im.c (for_each_index): Likewise.
11434         (gen_lsm_tmp_name): Likewise.
11435         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11436         (find_interesting_uses_address): Likewise.
11437         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11438         * tree-ssa-operands.c (get_expr_operands): Likewise.
11439         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11440         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11441         (ao_ref_init_from_vn_reference): Likewise.
11442         * tree.c (staticp): Likewise.
11443         (build1_stat): Likewise.
11444         (reference_alias_ptr_type): Likewise.
11445         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11446         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
11447         MISALIGNED_INDIRECT_REF handling.
11448
11449 2010-09-06  Richard Guenther  <rguenther@suse.de>
11450
11451         PR tree-optimization/45534
11452         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
11453         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
11454         on the target.
11455         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
11456         valid on the target.
11457
11458 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11459
11460         * configure.ac: Quote argument of AC_MSG_WARN.
11461         * configure: Regenerate.
11462
11463 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
11464
11465         * sel-sched.c (move_cond_jump): Correct arguments to
11466         maybe_tidy_empty_bb.
11467         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11468
11469 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
11470
11471         PR rtl-optimization/44919
11472         * sel-sched.c (move_cond_jump): Remove assert, check that
11473         the several blocks case can only happen with mutually exclusive
11474         insns instead.  Rewrite the movement code to support moving through
11475         several basic blocks.
11476
11477 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
11478
11479         * config/i386/i386.md (iptrsize): New mode attribute.
11480         (tp_seg): Ditto.
11481         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
11482         mode iterator.
11483         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
11484         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
11485         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
11486         (stack_tls_protect_set_<mode>): Ditto from
11487         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
11488         of thread base pointer load.
11489         (stack_tls_protect_test_<mode>): Ditto from
11490         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
11491         of thread base pointer load.
11492         (stack_protect_set): Rewrite using indirect functions.
11493         (stack_protect_test): Ditto.
11494         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
11495         (ix86_print_operand): Handle '@'.
11496
11497 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
11498
11499         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
11500         MINUS_EXPR.
11501
11502 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
11503
11504         * doc/invoke.texi: Document -Wdouble-promotion.
11505         * c-typeck.c (convert_arguments): Check for implicit conversions
11506         from float to double.
11507         (do_warn_double_promotion): New function.
11508         (build_conditional_expr): Use it.
11509         (build_binary_op): Likewise.
11510
11511 2010-09-05  Richard Guenther  <rguenther@suse.de>
11512
11513         PR tree-optimization/45535
11514         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
11515         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
11516         dereferencing it.
11517         (indirect_refs_may_alias_p): Likewise.
11518
11519 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
11520
11521         * config/sh/sh.c (sh_option_override): Make static.
11522         Adjust comments.  Declare.
11523         (sh_function_value_regno_p): Likewise.
11524         (sh_register_move_cost): Modify the arguments, make static.
11525         Adjust comments.  Declare.
11526         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
11527         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11528         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
11529         REGISTER_MOVE_COST): Delete.
11530         * config/sh/sh-protos.h (sh_override_options): Delete.
11531         (sh_register_move_cost): Delete.
11532         (sh_function_value_regno_p): Delete.
11533
11534 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
11535
11536         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
11537         m32r_function_value_regno_p): New functions.
11538         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11539         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
11540         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
11541         FUNCTION_VALUE_REGNO_P): Remove.
11542
11543 2010-09-04  Jan Hubicka  <jh@suse.cz>
11544
11545         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
11546         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
11547         fold_read_from_constant_string.
11548
11549         * gimple.h (canonicalize_constructor_val): Declare.
11550         * gimple-fold.c (canonicalize_constructor_val): New function.
11551         (get_symbol_constant_value):Use it.
11552         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11553
11554 2010-09-04  Jan Hubicka  <jh@suse.cz>
11555
11556         * tree-switch-conversion.c (build_one_array): Set constructor to be
11557         static.
11558         * varpool.c (varpool_finalize_decl): Compute const_value_known.
11559
11560 2010-09-04  Richard Guenther  <rguenther@suse.de>
11561
11562         PR bootstrap/45519
11563         * tree-flow.h (force_gimple_operand_1): Declare.
11564         (force_gimple_operand_gsi_1): Likewise.
11565         * gimplify.c (force_gimple_operand_1): New worker taking a
11566         gimple predicate for ...
11567         (force_gimple_operand): ... which now wraps it.
11568         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
11569         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
11570         last change.
11571         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
11572         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
11573         (create_mem_ref): Likewise.
11574
11575 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
11576
11577         * config/i386/predicates.md (sse_reg_operand): New predicate.
11578         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
11579         predicate for operand 1.
11580         (XFmode push splitter): Use fp_register_operand predicate
11581         for operand 1.
11582         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
11583         (SF-DF float_extend push splitter): Add reload_completed insn
11584         predicate.
11585         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
11586         MODEF mode macro.  Add reload_completed insn predicate.
11587
11588 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
11589
11590         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
11591         (struct df_extract_ref): Remove.
11592         (union df_ref_d): Remove extract_ref member.
11593         (df_ref_create): Remove last three arguments.
11594         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
11595         * df-scan.c (df_ref_record): Remove last three arguments, do not
11596         pass them to df_ref_create_structure.
11597         (df_uses_record): Remove first and last three arguments.  Replace
11598         first argument with DF_REF_REGULAR, adjust calls to remove the
11599         width, offset and mode.  Always call recursively on the second
11600         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
11601         (df_ref_create_structure): Remove first argument.
11602         (struct df_scan_problem_data): Remove ref_extract_pool.
11603         (df_scan_free_internal): Do not free it.
11604         (df_scan_alloc): Do not allocate it.
11605         (df_ref_create): Remove last three arguments, do not pass them to
11606         df_ref_create_structure.
11607         (df_free_ref): Remove DF_REF_EXTRACT case.
11608         (df_notes_rescan): Adjust call to df_uses_record.
11609         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
11610         Remove DF_REF_EXTRACT case.
11611         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
11612         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
11613         and SUBREG definitions.
11614         (df_get_conditional_uses): Remove references to width/offset/mode,
11615         adjust call to df_ref_create_structure.
11616         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11617         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
11618         calls to df_uses_record and df_ref_record.
11619         * fwprop.c (update_df): Remove references to width/offset/mode,
11620         adjust call to df_ref_create.
11621
11622 2010-09-03  Jan Hubicka  <jh@suse.cz>
11623
11624         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
11625         (build_cdtor_fns): Update use of build_cdtor.
11626
11627 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
11628
11629         * doc/options.texi (SeparateAlias): Document.
11630         * opt-functions.awk (switch_flags): Handle SeparateAlias.
11631         * opth-gen.awk: Generate enumeration names for options marked
11632         SeparateAlias, but not for those marked Ignore.
11633         * opts-common.c (generate_canonical_option): Don't output separate
11634         argument for options marked CL_SEPARATE_ALIAS.
11635         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
11636         * opts.h (CL_SEPARATE_ALIAS): New.
11637         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11638         CL_COMMON): Adjust definitions.
11639         * config/i386/darwin.opt, config/mips/sde.opt: New.
11640         * common.opt (fdump-final-insns): New.
11641         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11642         i386/darwin.opt.
11643         (mips*-sde-elf*): Add mips/sde.opt.
11644         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
11645         -mno-data-in-code and -mcode-xonly here.
11646         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
11647         * gcc.c (option_map): Add "j" to --dump entry.
11648         (translate_options): Don't translate -d to -foutput-class-dir= here.
11649
11650 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
11651
11652         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
11653         DR_IS_WRITE.
11654         (compute_all_dependences): Same.
11655         (create_rdg_edge_for_ddr): Same.
11656         * tree-data-ref.h (DR_IS_WRITE): New.
11657         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
11658         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
11659         (write_memrefs_written_at_least_once): Same.
11660         * tree-predcom.c (suitable_component_p): Same.
11661         (determine_roots_comp): Same.
11662         (execute_load_motion): Same.
11663         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
11664         (vect_enhance_data_refs_alignment): Same.
11665         (vect_analyze_group_access): Same.
11666
11667 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
11668
11669         PR testsuite/42843
11670         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
11671         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
11672
11673 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
11674
11675         * dwarf2out.c (file scope): Remove #if0'd code.
11676         (gen_subprogram_die): Same.
11677
11678 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
11679
11680         PR middle-end/45484
11681         * dwarf2out.c (flush_queued_reg_saves): Rename to...
11682         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
11683         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
11684         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
11685         * config/i386/i386.c (output_set_got): Call it.
11686
11687 2010-09-03  Michael Matz  <matz@suse.de>
11688
11689         PR middle-end/45415
11690         * tree-sra.c (sra_modify_assign): If we modify the statement,
11691         say so.
11692
11693         * tree-ssa.c (verify_ssa): Check number of operands and links
11694         per statement to agree.
11695
11696 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
11697             Iain Sandoe  <iains@gcc.gnu.org>
11698
11699         PR target/45476
11700         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
11701         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
11702         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11703
11704 2010-09-03  Richard Guenther  <rguenther@suse.de>
11705
11706         * lto-streamer-out.c (output_function): Output function
11707         start and end loci.
11708         * lto-streamer-in.c (input_function): Input function start
11709         and end loci.
11710
11711 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11712
11713         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
11714         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
11715         * configure: Regenerate.
11716         * aclocal.m4: Regenerate.
11717
11718 2010-09-03  Jan Hubicka  <jh@suse.cz>
11719
11720         PR lto/44812
11721         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
11722         on functions/variables in other partition.
11723
11724 2010-09-03  Jan Hubicka  <jh@suse.cz>
11725
11726         * cgraph.h (struct varpool_node): Add const_value_known.
11727         (varpool_decide_const_value_known): Declare.
11728         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
11729         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
11730         (input_varpool_node): Restore const_value_known.
11731         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
11732         initializer folding.
11733         * ipa.c (ipa_discover_readonly_nonaddressable_var,
11734         function_and_variable_visibility): Compute const_value_known.
11735         * gimple-fold.c (get_symbol_constant_value): Use varpool for
11736         initializer folding.
11737         * varpool.c (varpool_decide_const_value_known): New function.
11738
11739 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
11740
11741         * config/i386/i386.md: Remove empty preparation statements
11742         from splitters.
11743
11744 2010-09-03  Jan Hubicka  <jh@suse.cz>
11745
11746         * passes.c (rest_of_decl_compilation): Do not add local vars into
11747         varpool.
11748         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
11749         static or extern vars are in varpool.
11750         (varpool_finalize_decl): Sanity check that only static vars are
11751         finalized.
11752
11753 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
11754
11755         PR debug/45500
11756         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
11757         not just generic vectors with BLKmode.
11758
11759 2010-09-03  Richard Guenther  <rguenther@suse.de>
11760
11761         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
11762         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
11763         * tree.h (TMR_SYMBOL): Remove.
11764         (TMR_BASE, TMR_OFFSET): Adjust.
11765         (TMR_INDEX2): New.
11766         * alias.c (ao_ref_from_mem): Use TMR_BASE.
11767         * builtins.c (get_object_alignment): Merge TMR_BASE and
11768         TMR_SYMBOL handling.
11769         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
11770         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
11771         handling.  Also allow TARGET_MEM_REF as base address.
11772         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
11773         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
11774         base.  Gimplify TMR_INDEX2.
11775         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
11776         * tree-dfa.c (get_ref_base_and_extent): Likewise.
11777         (get_addr_base_and_unit_offset): Likewise.
11778         * tree-eh.c (tree_could_trap_p): Likewise.
11779         * tree-pretty-print.c (dump_generic_node): Likewise.
11780         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
11781         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
11782         base to index2.
11783         (get_address_description): Reconstruct addres description
11784         from merged TMR_BASE and TMR_INDEX2.
11785         (maybe_fold_tmr): Fold propagated addresses.
11786         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
11787         MEM_REF and TARGET_MEM_REF paths.
11788         (indirect_refs_may_alias_p): Likewise.
11789         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
11790         instead of TMR_SYMBOL.
11791         * tree-ssa-operands.c (get_tmr_operands): Simplify.
11792         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
11793         according to changes ...
11794         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
11795         Split TARGET_MEM_REF into two fields plus the base.
11796         * tree.c (mem_ref_offset): Simplify.
11797         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
11798         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
11799         Strip NOPs when folding MEM_REF addresses.
11800         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
11801         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
11802         (fold_gimple_assign): ... not here.
11803
11804 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
11805
11806         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
11807         * config/mips/mips.c (mips_shift_truncation_mask): New function.
11808         (TARGET_SHIFT_TRUNCATION_MASK): Define.
11809
11810 2010-09-02  Richard Henderson  <rth@redhat.com>
11811
11812         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
11813         instead of readelf in the test.
11814         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
11815         in the .debug_frame section for coff targets.
11816         * configure: Rebuild.
11817
11818 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
11819
11820         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
11821         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
11822         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11823         (m32c_class_likely_spilled_p): Make static. Change argument type to
11824         reg_class_t. Change result type to bool.
11825
11826 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11827
11828         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
11829         to convert (double)(long) into a single FRIZ instruction or not
11830         when -ffast-math is used.
11831
11832         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
11833         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
11834         or FRIZ instruction if -ffast-math.
11835         * config/rs6000/rs6000.md (friz): Ditto.
11836
11837         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
11838
11839 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
11840
11841         * opth-gen.awk (quote, comma): Remove unused variables.
11842
11843 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
11844
11845         * arm.c (arm_override_options): Correct fall-back code to use
11846         SUBTARGET_CPU_DEFAULT.
11847
11848 2010-09-02  Julian Brown  <julian@codesourcery.com>
11849
11850         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
11851         unspecs.
11852         (vcond<mode>, vcondu<mode>): New expanders.
11853         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
11854         comparisons with zero.
11855         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
11856         * config/arm/constraints.md (Dz): New constraint.
11857
11858 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
11859
11860         * target.def (class_likely_spilled_p): New hook.
11861         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
11862         * doc/tm.texi: Regenerate.
11863         * targhooks.c (default_class_likely_spilled_p): New function.
11864         * targhooks.h (default_class_likely_spilled_p): Declare.
11865         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
11866         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
11867         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
11868         Use fixed_reg_set instead of fixed_regs.
11869         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11870         * calls.c (avoid_likely_spilled_reg): Ditto.
11871         * ira-conflicts.c (ira_build_conflicts): Ditto.
11872         * ira.c (update_equiv_regs): Ditto.
11873         * mode-switching.c (create_pre_exit): Ditto.
11874         * regmove.c (find_matches): Ditto.
11875         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11876         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
11877         (small_register_class_p): New inline function.
11878         (push_secondary_reload, find_reusable_reload, find_reloads): Use
11879         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
11880
11881         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
11882         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
11883         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11884
11885 2010-09-02  Richard Guenther  <rguenther@suse.de>
11886
11887         PR tree-optimization/44937
11888         PR tree-optimization/45412
11889         * ipa-split.c (split_function): Properly remove PHI nodes.
11890
11891 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
11892
11893         * opts.h (struct cl_option): Add warn_message field.
11894         (struct cl_decoded_option): Add warn_message field.
11895         * doc/options.texi (Ignore, Warn): Document.
11896         * opt-functions.awk (needs_state_p): Don't consider aliases or
11897         ignored options to need state saved.
11898         * optc-gen.awk: Handle Warn and Ignore.
11899         * opth-gen.awk: Output OPT_SPECIAL_ignore.
11900         * opts-common.c (decode_cmdline_option): Set warn_message field.
11901         Handle ignored options.
11902         (decode_cmdline_options_to_array, generate_option,
11903         generate_option_input_file): Set warn_message field.
11904         (read_cmdline_option): Generate warnings from warn_message field.
11905         Handle ignored options.
11906         * common.opt (Wunreachable-code, fargument-alias,
11907         fargument-noalias, fargument-noalias-global,
11908         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
11909         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
11910         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
11911         ftree-salias): Mark Ignore.
11912         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
11913         -mintel-syntax and -mno-intel-syntax here.
11914         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
11915         using Warn.
11916         * opts.c (common_handle_option): Don't handle options marked as
11917         ignored.
11918         (enable_warning_as_error): Handle ignored options.
11919
11920 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
11921
11922         PR driver/44076
11923         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
11924         alias_target fields.
11925         * opt-functions.awk (opt_sanitized_name): Don't handle
11926         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
11927         * optc-gen.awk: Generate alias fields.
11928         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
11929         Don't generate such constants for aliases.
11930         * opts-common.c (generate_canonical_option): New.
11931         (decode_cmdline_option): Handle aliases.  Use
11932         generate_canonical_option for known options instead of copying the
11933         input option text.
11934         * doc/options.texi (Alias): Document.
11935         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
11936         fstack-check, specs): Mark as aliases.
11937         * gcc.c (driver_handle_option): Canonicalize -L options to joined
11938         arguments.
11939         (driver_handle_option): Don't handle OPT_specs.
11940         * opts.c (common_handle_option): Don't handle options marked as
11941         aliases.
11942         (enable_warning_as_error): Handle aliases.
11943         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
11944         OPT_Wlarger_than_eq.
11945         * tree-optimize.c (tree_rest_of_compilation): Use
11946         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
11947
11948 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
11949
11950         * config/i386/i386.md (nonmemory_operand): New mode attribute.
11951         (push memory peephole2): Macroize peepholes using SWI mode iterator.
11952         (move immediate to memory peephole2): Macroize peepholes using
11953         SWI124 mode iterator.
11954         (non-pairable NOT peephole2): Macroize peepholes using SWI124
11955         mode iterator.
11956         (simple lea add peephole2): Macroize peepholes using SWI48
11957         mode iterator.
11958         (simple lea mult peephole2): Ditto.
11959         (imul by 3,5,9 to lea peephole2): Ditto.
11960         (mov $-1, reg peephole2): Macroize peepholes using SWI248
11961         mode iterator.
11962         (imul $32bit_imm,mem,reg peephole2): Ditto.
11963         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
11964
11965 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
11966
11967         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
11968
11969 2010-09-02  Olivier Hainque  <hainque@adacore.com>
11970
11971         PR middle-end/44763
11972         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
11973         (allocno_priority_compare_func): Use it instead of a straight
11974         difference computation over priorities.
11975
11976 2010-09-02  Andi Kleen  <ak@linux.intel.com>
11977
11978         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
11979
11980 2010-09-02  Ira Rosen  <irar@il.ibm.com>
11981
11982         * tree-vectorizer.h (get_later_stmt): New function.
11983         (vect_analyze_data_ref_dependences): Add argument.
11984         * tree-vect-loop.c (vect_analyze_loop): Update call to
11985         vect_analyze_data_ref_dependences.
11986         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
11987         New function.
11988         (vect_analyze_data_ref_dependence): Add argument for basic block
11989         dependencies. Check dependencies in basic block vectorization.
11990         (vect_analyze_data_ref_dependences): Add argument and update call to
11991         vect_analyze_data_ref_dependences.
11992         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
11993         (vect_bb_vectorizable_with_dependencies): New.
11994         (vect_slp_analyze_bb): Check dependencies in basic block.
11995         (vect_schedule_slp_instance): Insert stores before the last store in
11996         SLP instance.
11997
11998 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
11999
12000         PR target/45476
12001         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
12002         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12003
12004 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
12005
12006         PR middle-end/45458
12007         * bb-reorder.c (add_labels_and_missing_jumps): Treat
12008         bbs ending with throwing insns like blocks ending with a call.
12009         (fix_up_fall_thru_edges): Likewise.
12010
12011 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
12012
12013         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
12014         (m32c_function_arg_advance): Delete.
12015         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12016         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
12017         comments.  Take a const_tree and a bool.  Declare.
12018         (m32c_function_arg_advance): Likewise.
12019         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12020
12021 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
12022
12023         PR target/45476
12024         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
12025         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
12026         * config/i386/mingw32.h: ... here.
12027
12028 2010-09-01  Andi Kleen  <ak@linux.intel.com>
12029
12030         PR lto/45475
12031         * lto-streamer-in.c (lto_input_ts_target_option): Add.
12032         (lto_input_tree_pointers): Call lto_input_ts_target_option.
12033         * lto-streamer-out (lto_output_ts_target_option): Add.
12034         (lto_output_tree_pointers): Call lto_output_ts_target_option.
12035
12036 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
12037
12038         PR/target 45452
12039         * config/i386/cygwin.h: Change order of specified import libraries.
12040         * config/i386/mingw32.h: Likewise.
12041         * config/i386/t-cygwin: Likewise.
12042         * config/i386/t-mingw32: Likewise.
12043         * config/i386/t-mingw-w32: Likewise.
12044         * config/i386/t-mingw-w64: Likewise.
12045
12046 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12047
12048         * config/arm/neon-schedgen.ml (core): New type.
12049         (allCores): List of supported cores.
12050         (availability_table): Add supported cores.
12051         (collate_bypasses): Accept core as a parameter.
12052         (worst_case_latencies_and_bypasses): Accept core as a parameter.
12053         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
12054         and coreStr to get tune attribute and prefix for functional units.
12055         (emit_bypasses): Accept core name and use it.
12056         (calculate_per_core_availability_table): New.
12057         (filter_core): New.
12058         (calculate_core_availability_table): New.
12059         (main): Use calculate_core_availablity_table.
12060         * config/arm/cortex-a8-neon.md: Update copyright year.
12061         Regenerated from ml file and merged in.
12062         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
12063         cortex_a8_neon_mrc.
12064
12065 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
12066
12067         * Makefile.in (tree-switch-conversion.o): Update dependencies.
12068
12069 2010-09-01  Richard Guenther  <rguenther@suse.de>
12070
12071         * alias.c (ao_ref_from_mem): Adjust.
12072         * builtins.c (get_object_alignment): Likewise.
12073         * cfgexpand.c (expand_debug_expr): Likewise.
12074         * gimple.c (get_base_address): Likewise.
12075         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12076         (get_addr_base_and_unit_offset): Likewise.  Fix for
12077         both TMR_SYMBOL and TMR_BASE being set.
12078         * tree-eh.c (tree_could_trap_p): Likewise.
12079         * gimplify.c (gimplify_expr): Do not attempt to gimplify
12080         TMR_SYMBOL.  Always gimplify TMR_BASE.
12081         * tree-cfg.c (verify_types_in_gimple_reference): Verify
12082         TMR_BASE if there is a TMR_SYMBOL.
12083         * tree-pretty-print.c (dump_generic_node): Adjust.
12084         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12085         (tree_mem_ref_addr): Likewise.
12086         (create_mem_ref_raw): Likewise.
12087         (move_fixed_address_to_symbol): Likewise.
12088         (create_mem_ref): Likewise.
12089         (dump_mem_address): Likewise.
12090         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
12091         Fix for both TMR_SYMBOL and TMR_BASE being set.
12092         (indirect_refs_may_alias_p): Likewise.
12093         * tree-ssa-operands.c (get_tmr_operands): Adjust.
12094         * tree.def (TARGET_MEM_REF): Adjust documentation.
12095
12096 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
12097
12098         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
12099         Rename from X86_TUNE_ADD_ESP_4.
12100         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
12101         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
12102         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
12103         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
12104         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
12105         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
12106         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
12107         * config/i386/i386.c (initial_ix86_tune_features)
12108         <X86_TUNE_SINGLE_POP>: Invert members.
12109         <X86_TUNE_DOUBLE_POP>: Ditto.
12110         <X86_TUNE_SINGLE_PUSH>: Ditto.
12111         <X86_TUNE_DOUBLE_PUSH>: Ditto.
12112         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
12113         No longer exported.
12114         (push peephole2 patterns): Macroize peepholes using P mode iterator.
12115         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
12116         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
12117         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
12118
12119 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
12120
12121         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
12122         a volatile LHS if the constructor has only one element.
12123
12124 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
12125
12126         PR bootstrap/45321
12127         * tree.c (stdarg_p): Make fntype parameter const.
12128         * tree.h (stdarg_p): Likewise.
12129         (function_args_iterator): Remove unused fntype field.
12130         (function_args_iter_init): Do not initialize fntype
12131         field.  Make fntype parameter const.
12132
12133 2010-09-01  Richard Guenther  <rguenther@suse.de>
12134
12135         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
12136         estimate.
12137         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
12138         (execute_vrp): Compute number of iteration estimates.
12139         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
12140         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
12141         * tree-data-ref.c (estimated_loop_iterations): Adjust.
12142         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
12143         Infer loop bounds from undefined behavior based on a new parameter.
12144         (estimate_numbers_of_iterations): Likewise.
12145         (scev_probably_wraps_p): Adjust.
12146         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
12147
12148 2010-09-01  Nick Clifton  <nickc@redhat.com>
12149
12150         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
12151         where appropriate.
12152         (xstormy16_legitimate_address_p): Use true and false instead of 1
12153         and 0.
12154         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
12155         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
12156         magic constant 2.
12157         (xstormy16_expand_call): Fix comment at start of function.
12158
12159 2010-09-01  Nick Clifton  <nickc@redhat.com>
12160
12161         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
12162         when pushing accumulator register.
12163         (rx_get_stack_layout): Always save call clobbered registers inside
12164         interrupt handlers.
12165         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
12166
12167 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
12168
12169         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
12170         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12171
12172         * libgcc-std.ver (GCC_4.6.0): Define version.
12173
12174 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
12175
12176         * tree-nested.c (convert_all_function_calls): Iterate until after the
12177         sum of static chains in the nest doesn't change.
12178
12179 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
12180
12181         * config/m32c/m32c.c (classes_intersect): Remove.
12182         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
12183         reg_classes_intersect_p instead of classes_intersect.
12184         (class_can_hold_mode): Change arguments type from enum reg_class to
12185         reg_class_t.  Use reg_class_contents instead of class_contents.
12186         (m32c_register_move_cost): Make static. Change arguments type from
12187         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
12188         classes_intersect. Use reg_class_contents instead of class_contents.
12189         (m32c_memory_move_cost): Make static. Change arguments type from
12190         enum reg_class to reg_class_t.
12191         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12192         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12193         * config/m32c/m32c-protos.h (m32c_register_move_cost,
12194         m32c_memory_move_cost): Remove.
12195
12196 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
12197
12198         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
12199         (arm_function_arg): Delete.
12200         (arm_needs_doubleword_align): Take a const_tree.
12201         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12202         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
12203         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
12204         (arm_function_arg): Make static.  Take a const_tree and a bool.
12205         (arm_function_arg_advance): Likewise.
12206         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12207
12208 2010-08-31  Andi Kleen  <ak@linux.intel.com>
12209
12210         * common.opt (fwhopr=): Update for -fwhopr=jobserver
12211         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
12212         * lto-wrapper.c (run_gcc): Add jobserver mode.
12213         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
12214         argument.
12215
12216 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
12217
12218         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
12219         (popsi1): Ditto.
12220         (*popdi1_epilogue): Ditto.
12221         (*popsi1_epilogue): Ditto.
12222         (popsi, popdi peephole2 patterns): Update peepholes for changed
12223         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
12224
12225         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
12226         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
12227
12228         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
12229         (override_options): Do not initialize removed ix86_gen_pop1.
12230         (gen_pop): New static function.
12231         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
12232         (release_scratch_register_on_entry): Ditto.
12233         (ix86_restore_reg_using_pop): Ditto.
12234         (ix86_expand_epilogue): Ditto.
12235
12236 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
12237
12238         PR middle-end/45461
12239         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
12240
12241 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
12242
12243         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
12244         semicolons.
12245
12246 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12247
12248         * doc/extend.texi: Fix documentation of the return value of
12249         __builtin_choose_expr.
12250
12251 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
12252
12253         * config/v850/v850-protos.h (function_arg): Delete.
12254         * config/v850/v850.h (FUNCTION_ARG): Delete.
12255         (FUNCTION_ARG_ADVANCE): Move code to...
12256         * config/v850/v850.c (v850_function_arg_advance): ...here.
12257         (v850_function_arg): Make static.  Take a const_tree and a bool.
12258         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12259
12260 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
12261
12262         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
12263         these...
12264         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12265         ...and these...
12266         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
12267         ..to here..
12268         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12269         ...and here.
12270         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12271
12272 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
12273
12274         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
12275         Delete.
12276         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12277         * config/rx/rx.c (rx_function_arg_size): Make static.
12278         (rx_function_arg): Likewise.
12279         (rx_function_arg_advance): New function.
12280         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12281
12282 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
12283
12284         * config/arm/arm.c (arm_override_options): Remove superfluous test.
12285         Fix indentation.
12286
12287 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
12288
12289         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
12290         (dwarf2out_decl) <CONST_DECL>: Likewise.
12291
12292 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
12293
12294         Stack usage support
12295         * common.opt (-fstack-usage): New option.
12296         * doc/invoke.texi (Debugging options): Document it.
12297         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
12298         allocate_dynamic_stack_space.
12299         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
12300         and propagate it to allocate_dynamic_stack_space.
12301         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
12302         * calls.c (initialize_argument_information): Pass TRUE as 4th
12303         argument to allocate_dynamic_stack_space.
12304         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
12305         to 1 when pushing a variable-sized argument onto the stack.  Pass
12306         TRUE as 4th argument to allocate_dynamic_stack_space.
12307         Update current_function_pushed_stack_size.
12308         (emit_library_call_value_1): Likewise.
12309         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
12310         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
12311         attempt to find an upper bound.  Remove redundant code for the
12312         SETJMP_VIA_SAVE_AREA case.
12313         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
12314         * function.h (struct stack_usage): New structure.
12315         (current_function_static_stack_size): New macro.
12316         (current_function_dynamic_stack_size): Likewise.
12317         (current_function_pushed_stack_size): Likewise.
12318         (current_function_dynamic_alloc_count): Likewise.
12319         (current_function_has_unbounded_dynamic_stack_size): Likewise.
12320         (current_function_allocates_dynamic_stack_space): Likewise.
12321         (struct function): Add new field 'su'.
12322         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
12323         add the value of the dynamic offset to the dynamic stack usage.
12324         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
12325         for variable-sized objects.
12326         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
12327         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
12328         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
12329         BUILT_IN_ALLOCA for variable-sized objects.
12330         * output.h (output_stack_usage): Declare.
12331         * toplev.c (stack_usage_file): New file pointer.
12332         (output_stack_usage): New function.
12333         (open_auxiliary_file): Likewise.
12334         (lang_dependent_init): Open file if flag_stack_usage is set.
12335         (finalize): Close file if stack_usage_file is not null.
12336         * tree.h (ALLOCA_FOR_VAR_P): New macro.
12337         * config/alpha/alpha.c (compute_frame_size): New function.
12338         (alpha_expand_prologue): Use it.
12339         (alpha_start_function): Likewise.
12340         (alpha_expand_epilogue): Likewise.  Set stack usage info.
12341         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12342         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12343         * config/mips/mips.c (mips_expand_prologue): Likewise.
12344         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12345         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12346         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12347
12348 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
12349
12350         PR tree-optimization/45427
12351         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
12352         Handle the case that the exit is never taken correctly.
12353         (number_of_iterations_ne): Pass exit_must_be_taken to
12354         number_of_iterations_ne_max.
12355
12356 2010-08-30  Catherine Moore  <clm@codesourcery.com>
12357
12358         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
12359         Infer -mdspr2 for the the 74K.
12360
12361 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
12362
12363         PR debug/45419
12364         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
12365
12366         PR middle-end/45423
12367         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
12368         and TRUTH_{AND,OR,XOR}_EXPR.
12369         * c-parser.c (c_parser_omp_atomic): Handle boolean
12370         {PRE,POST}_{INC,DEC}REMENT.
12371
12372 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
12373
12374         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
12375         (function_arg): Delete.
12376         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12377         (FUNCTION_INCOMING_ARG): Delete.
12378         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
12379         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
12380         and a bool.
12381         (function_arg): Rename to...
12382         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
12383         a bool.
12384         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
12385         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12386         (TARGET_FUNCTION_INCOMING_ARG): Define.
12387
12388 2010-08-30  Richard Guenther  <rguenther@suse.de>
12389
12390         PR tree-optimization/21602
12391         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
12392         using points-to information.
12393
12394 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
12395
12396         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
12397
12398 2010-08-30  Richard Guenther  <rguenther@suse.de>
12399
12400         PR tree-optimization/45449
12401         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
12402         variables.
12403
12404 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * opts.h (CL_ERR_NEGATIVE): Define.
12407         * opts.c (unknown_option_callback): Don't postpone warnings for
12408         options marked with CL_ERR_NEGATIVE.
12409         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
12410         for negative versions of CL_REJECT_NEGATIVE options.
12411
12412 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
12413
12414         * config/i386/i386.md (zero_extendsidi2_1): Rename from
12415         zero_extendsidi2_32.
12416         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
12417         using SWI12 mode iterator.
12418         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
12419         to define_insn_and_split pattern.
12420         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
12421         using SWI24 mode iterator.
12422         (*zero_extendqi<mode>2_and): Macroize insn from
12423         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
12424         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
12425         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
12426         SWI24 mode iterator.
12427         (*zero_extendqi<mode>2_movzbl): Ditto from
12428         *zero_extendqi{hi,si}2_movzbl.
12429         (extendsidi2_1): Rename from extendsidi2_32.
12430         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
12431         SWI12 mode iterator.
12432
12433 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
12434
12435         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
12436         general purpose registers.
12437         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
12438         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
12439         with general purpose registers and memory operands.  Add associated
12440         CCImode post-reload splitter.
12441         * config/ia64/div.md: Change BImode to CCImode throughout.
12442
12443 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
12444
12445         * config/ia64/ia64.md (cstorebi4): Fix thinko.
12446
12447 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
12448
12449         * config/picochip/picochip.c (reorder_var_tracking_notes): This
12450         function was dropping debug insns which caused PR45299.
12451
12452 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
12453
12454         * config/i386/sse.md (extsuffix): New code attribute.
12455         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
12456         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
12457         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
12458         and sse4_1_zero_extendv4qiv4si2.
12459         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
12460         and sse4_1_zero_extendv2qiv2di2.
12461         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
12462         and sse4_1_zero_extendv4hiv4si2.
12463         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
12464         and sse4_1_zero_extendv2hiv2di2.
12465         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
12466         and sse4_1_zero_extendv2siv2di2
12467
12468         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
12469         using any_extend code iterator.
12470         (*avx_<s>mulv8hi3_highpart): Macroize insn from
12471         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
12472         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
12473
12474         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
12475         gen_sse4_1_sign_extend* functions.
12476         (struct builtin_description bdesc_args): Ditto.
12477
12478 2010-08-27  Xinliang David Li  <davidxl@google.com>
12479
12480         PR/45422
12481         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
12482         (iv_ca_set_no_cp): Update used inv expr count.
12483         (iv_ca_set_cp): Ditto.
12484         (iv_ca_new): Initialize new member.
12485         (iv_ca_free): Free memory.
12486
12487 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
12488
12489         * config/sh/sh-protos.h (sh_function_arg): Delete.
12490         (sh_function_arg_advance): Delete.
12491         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12492         (PASS_IN_REG_P): Eliminate cast.
12493         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
12494         const_tree and a bool.
12495         (sh_function_arg): Likewise.
12496         (sh_output_mi_thunk): Call sh_function_arg_advance) and
12497         sh_function_arg.
12498         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12499
12500 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
12501             Kaz Kojima  <kkojima@gcc.gnu.org>
12502
12503         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
12504         when possible.
12505         (sh_expand_epilogue): Likewise.
12506         * config/sh/sh.md (movml_push_banked): New insn.
12507         (movml_pop_banked): Likewise.
12508
12509 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
12510
12511         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
12512         gen_regexp_oneof, gen_regexp_sequence): Use the string found
12513         in vector element 0 rather than the original string when there's
12514         only one element.
12515         (gen_regexp): Remove extra semicolon.
12516
12517         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
12518         thumb2_movsf_vfp): Set attribute "insn".
12519         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
12520         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
12521         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
12522         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
12523         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
12524         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
12525         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
12526         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
12527         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
12528         if_not_arith, if_arith_not, cond_move_not): Likewise.
12529
12530 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12531
12532         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
12533         New declaration.
12534         (rs6000_allocate_stack_temp): Ditto.
12535         (rs6000_expand_convert_si_to_sfdf): Ditto.
12536
12537         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
12538         line.  Update the options set if power6 or power7 server/embedded
12539         type options are used.  If we give a warning for no vsx under
12540         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
12541         (rs6000_allocate_stack_temp): New function to allocate a stack
12542         tempoary and adjust the address so it meets either REG+OFFSET or
12543         REG+REG addressing requirements.
12544         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
12545         that they can be used with the LFIWAX/LFIWZX instrucitons.
12546         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
12547         converting signed/unsigned SImode to either SFmode/DFmode.
12548
12549         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
12550         whether certain instructions can be generated.
12551         (TARGET_FCTIDZ): Ditto.
12552         (TARGET_STFIWX): Ditto.
12553         (TARGET_LFIWAX): Ditto.
12554         (TARGET_LFIWZX): Ditto.
12555         (TARGET_FCFIDS): Ditto.
12556         (TARGET_FCFIDU): Ditto.
12557         (TARGET_FCFIDUS): Ditto.
12558         (TARGET_FCTIDUZ): Ditto.
12559         (TARGET_FCTIWUZ): Ditto.
12560
12561         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
12562         (UNSPEC_FCTID): Ditto.
12563         (UNSPEC_LFIWAX): Ditto.
12564         (UNSPEC_LFIWZX): Ditto.
12565         (UNSPEC_FCTIWUZ): Ditto.
12566         (rreg): Use correct constraints.
12567         (SI_CONVERT_FP): New mode attribute for floating point conversion
12568         tests.
12569         (E500_CONVERT): Ditto.
12570         (lfiwax): New insns for converting from integer to floating point
12571         utilizing newer instructions.  Attempt to optimize conversions
12572         that come from memory so that we don't load the value into a GPR,
12573         spill it to the stack and reload it into a FPR.
12574         (floatsi<mode>2_lfiwax): Ditto.
12575         (floatsi<mode>2_lfiwax_mem): Ditto.
12576         (floatsi<mode>2_lfiwax_mem2): Ditto.
12577         (lfiwzx): Ditto.
12578         (floatunssi<mode>2_lfiwzx): Ditto.
12579         (floatunssi<mode>2_lfiwzx_mem): Ditto.
12580         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
12581         (floatdidf2_mem): Ditto.
12582         (floatunsdidf2_fcfidu): Ditto.
12583         (floatunsdidf2_mem): Ditto.
12584         (floatunsdisf2): Ditto.
12585         (floatunsdisf2_fcfidus): Ditto.
12586         (floatunsdisf2_mem): Ditto.
12587         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
12588         Use FCFID on 32-bit hosts that support it.
12589         (floatsidf2_internal): Ditto.
12590         (floatunssisf2): Ditto.
12591         (floatunssidf2): Ditto.
12592         (floatunssidf2_internal): Ditto.
12593         (floatsisf2): Ditto.
12594         (floatdidf2): Ditto.
12595         (floatdidf2_fpr): Ditto.
12596         (floatunsdidf2): Ditto.
12597         (floatdisf2): Ditto.
12598         (floatdisf2_fcfids): Ditto.
12599         (floatdisf2_internal1): Ditto.
12600         (fixuns_truncsfsi2): Delete, merge into common pattern for both
12601         SF/DF.  Add power7 support.
12602         (fix_truncsfsi2): Ditto.
12603         (fixuns_truncdfsi2): Ditto.
12604         (fixuns_truncdfdi2): Ditto.
12605         (fix_truncdfsi2): Ditto.
12606         (fix_truncdfsi2_internal): Ditto.
12607         (fix_truncdfsi2_internal_gfxopt): Ditto.
12608         (fix_truncdfsi2_mfpgpr): Ditto.
12609         (fctiwz): Ditto.
12610         (btruncdf2): Ditto.
12611         (btruncdf2_fpr): Ditto.
12612         (btructsf2): Ditto.
12613         (ceildf2): Ditto.
12614         (ceildf2_fpr): Ditto.
12615         (ceilsf2): Ditto.
12616         (floordf2): Ditto.
12617         (floordf2_fpr): Ditto.
12618         (floorsf2): Ditto.
12619         (rounddf2): Ditto.
12620         (rounddf2_fpr): Ditto.
12621         (roundsf2): Ditto.
12622         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
12623         (fix_trunc<mode>di2): Ditto.
12624         (fixuns_trunc<mode>si2): Ditto.
12625         (fixuns_trunc<mode>di2): Ditto.
12626         (fctiwz_<mode>): Ditto.
12627         (btrunc<mode>2): Ditto.
12628         (btrunc<mode>2_fpr): Ditto.
12629         (ceil<mode>2): Ditto.
12630         (ceil<mode>2_fpr): Ditto.
12631         (floor<mode>2): Ditto.
12632         (float<mode>2_fpr): Ditto.
12633         (round<mode>2): Ditto.
12634         (round<mode>2_fpr): Ditto.
12635         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
12636         (fixuns_trunc<mode>si2_stfiwx): Ditto.
12637         (fix_truncdfsi2_internal): Ditto.
12638         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
12639         converted value on stack, loaded into GPR, and then stored into
12640         the final destination.
12641         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
12642         FCTIDZ.
12643         (lrint<mode>di2): New insn, provide the lrint builtin functions.
12644         (ftruncdf2): Delete, unused.
12645         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
12646
12647         * config/rs6000/vsx.md (toplevel): Update copyright year.
12648         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
12649         (VSr3): Ditto.
12650
12651 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
12652             Jeremie Salvucci  <jeremie.salvucci@free.fr>
12653
12654         * gengtype.c (output_type_enum): Test the right union member.
12655
12656 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
12657
12658         PR target/41484
12659         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
12660         operands for operand 1.
12661         (sse4_1_extendv4qiv4si2): Ditto.
12662         (sse4_1_extendv2qiv2di2): Ditto.
12663         (sse4_1_extendv4hiv4si2): Ditto.
12664         (sse4_1_extendv2hiv2di2): Ditto.
12665         (sse4_1_extendv2siv2di2): Ditto.
12666         (sse4_1_zero_extendv8qiv8hi2): Ditto.
12667         (sse4_1_zero_extendv4qiv4si2): Ditto.
12668         (sse4_1_zero_extendv2qiv2di2): Ditto.
12669         (sse4_1_zero_extendv4hiv4si2): Ditto.
12670         (sse4_1_zero_extendv2hiv2di2): Ditto.
12671         (sse4_1_zero_extendv2siv2di2): Ditto.
12672         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
12673         (*sse4_1_extendv4qiv4si2): Ditto.
12674         (*sse4_1_extendv2qiv2di2): Ditto.
12675         (*sse4_1_extendv4hiv4si2): Ditto.
12676         (*sse4_1_extendv2hiv2di2): Ditto.
12677         (*sse4_1_extendv2siv2di2): Ditto.
12678         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
12679         (*sse4_1_zero_extendv4qiv4si2): Ditto.
12680         (*sse4_1_zero_extendv2qiv2di2): Ditto.
12681         (*sse4_1_zero_extendv4hiv4si2): Ditto.
12682         (*sse4_1_zero_extendv2hiv2di2): Ditto.
12683         (*sse4_1_zero_extendv2siv2di2): Ditto.
12684
12685 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
12686
12687         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
12688         (mips_function_arg): Delete.
12689         (mips_function_arg_boundary): Take a const_tree.
12690         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
12691         (mips_arg_info): Likewise.
12692         (mips_setup_incoming_varargs): Call mips_function_arg_advance
12693         instead of FUNCTION_ARG_ADVANCE.
12694         (mips_function_arg_advance): Adjust prototype.  Make static.
12695         (mips_function_arg): Likewise.
12696         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12697         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
12698
12699 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
12700
12701         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12702         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
12703         (function_arg): Delete.
12704         (function_arg_boundary): Take a const_tree.
12705         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
12706         (rs6000_spe_function_arg): Likewise.
12707         (rs6000_parm_start): Likewise.
12708         (rs6000_arg_size): Likewise.
12709         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
12710         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
12711         (rs6000_mixed_function_arg): Likewise.
12712         (function_arg): Rename to...
12713         (rs6000_function_arg): ...this.
12714         (function_arg_advance): Rename to...
12715         (rs6000_function_arg_advance_1): ...this
12716         (rs6000_function_arg_advance): New function.  Call it.
12717         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
12718         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
12719         (rs6000_function_value): Likewise.
12720         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12721
12722 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12723
12724         * config/arm/arm.md (enabled): Test the value of arch_enabled
12725         rather than just using it.
12726
12727 2010-08-27  Olivier Hainque  <hainque@adacore.com>
12728             Eric Botcazou  <ebotcazou@adacore.com>
12729
12730         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
12731         cover all the possible offsets from this base.
12732         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
12733
12734 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
12735
12736         PR tree-optimization/44485
12737         * calls.c (flags_from_decl_or_type): For const or pure
12738         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
12739         together with ECF_CONST resp. ECF_PURE.
12740         * builtins.c (expand_builtin): Use flags_from_decl_or_type
12741         instead of querying flags directly.
12742         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
12743         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
12744
12745 2010-08-26  Richard Guenther  <rguenther@suse.de>
12746
12747         PR tree-optimization/45255
12748         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
12749         and externals are also invariant.
12750
12751 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
12752
12753         PR rtl-optimization/44858
12754         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
12755         newi2pat, make sure they don't affect newpat.
12756
12757         PR rtl-optimization/45400
12758         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
12759         SUBREG_REG if both modes are of MODE_INT class.
12760
12761 2010-08-25  Julian Brown  <julian@codesourcery.com>
12762
12763         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
12764         * config/arm/arm.md (generic_sched): No for Cortex-A5.
12765         (generic_vfp): Likewise.
12766         (cortex-a5.md): Include.
12767         * config/arm/cortex-a5.md: New.
12768
12769 2010-08-25  Richard Guenther  <rguenther@suse.de>
12770
12771         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
12772         * gimple.c (gimple_get_alias_set): Remove special handling
12773         for pointers.
12774
12775 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12776
12777         PR middle-end/45355
12778         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
12779         dead_or_set_p when computing i0_feeds_i2_n.
12780
12781         * combine.c (find_split_point): Undo canonicalization of multiply-add
12782         to (minus x (mult)) when it seems likely that this will increase the
12783         chances of a split.
12784
12785 2010-08-25  Richard Guenther  <rguenther@suse.de>
12786
12787         PR lto/44562
12788         * lto-streamer.c (lto_record_common_node): Do not mess with
12789         TYPE_CANONICAL when not in lto.
12790         * gimple.c (gimple_register_type): Likewise.
12791
12792 2010-08-25  Richard Guenther  <rguenther@suse.de>
12793
12794         PR tree-optimization/45316
12795         * tree-ssa-pre.c (eliminate): Properly clean EH info.
12796
12797 2010-08-25  Richard Guenther  <rguenther@suse.de>
12798
12799         PR tree-optimization/45393
12800         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
12801         and clean EH info.  Avoid SSA update.
12802         (execute_cse_sincos): Cleanup the CFG if it has changed.
12803
12804 2010-08-25  Richard Guenther  <rguenther@suse.de>
12805
12806         PR middle-end/45379
12807         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
12808         TARGET_MEM_REF in alignment computation.
12809
12810 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
12811
12812         PR tree-optimization/45059
12813         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
12814         type conversions from newop{1,2}.  Assert t is a comparison and
12815         newop{1,2} after the stripping are gimple vals.
12816
12817 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
12818
12819         * config/arm/iterators.md (VU, SE, V_widen_l): New.
12820         (V_unpack, US): New.
12821         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
12822         (vec_unpack<US>_lo_<mode>): Likewise.
12823         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
12824         (neon_vec_unpack<US>_lo_<mode>): Likewise.
12825         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
12826         (vec_widen_<US>mult_hi_<mode>): Likewise.
12827         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
12828         (neon_vec_<US>mult_hi_<mode>"): Likewise.
12829         (neon_unpack<US>_<mode>): Widening move intermediate step for
12830         vectorizing without -mvectorize-with-neon-quad.
12831         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
12832         for vectorizing without -mvectorize-with-neon-quad.
12833         * config/arm/predicates.md (vect_par_constant_high): Check for
12834         high-half lanes of a vector.
12835         (vect_par_constant_low): Check for low-half lanes of a vector.
12836
12837 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
12838
12839         * tree-if-conv.c (struct ifc_dr): New.
12840         (IFC_DR): New.
12841         (DR_WRITTEN_AT_LEAST_ONCE): New.
12842         (DR_RW_UNCONDITIONALLY): New.
12843         (memref_read_or_written_unconditionally): Use the cached values
12844         when possible.
12845         (write_memref_written_at_least_once): Same.
12846         (if_convertible_loop_p): Initialize and free DR->aux fields.
12847
12848 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
12849
12850         * gimple.c (gimple_could_trap_p_1): Not static anymore.
12851         Pass an extra bool parameter include_mem.
12852         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
12853         (gimple_assign_rhs_could_trap_p): Same.
12854         * gimple.h (gimple_could_trap_p_1): Declared.
12855         * tree-data-ref.h (same_data_refs_base_objects): New.
12856         (same_data_refs): New.
12857         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
12858         (write_memrefs_written_at_least_once): New.
12859         (ifcvt_memrefs_wont_trap): New.
12860         (operations_could_trap): New.
12861         (ifcvt_could_trap_p): New.
12862         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
12863         Gets a vector of data refs.
12864         (if_convertible_stmt_p): Same.
12865         (if_convertible_loop_p_1): New.
12866         (if_convertible_loop_p): Call if_convertible_loop_p_1.
12867
12868 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
12869
12870         * common.opt (ftree-loop-if-convert-stores): New flag.
12871         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
12872         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
12873         the created statement before GSI.
12874         (if_convertible_phi_p): Allow virtual phi nodes when
12875         flag_loop_if_convert_stores is set.
12876         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
12877         Do not handle types that do not match is_gimple_reg_type.
12878         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
12879         when flag_loop_if_convert_stores is set, as LHS can contain
12880         memory refs.
12881         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
12882         to if_convertible_gimple_assign_stmt_p.
12883         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
12884         (replace_phi_with_cond_gimple_assign_stmt): Renamed
12885         predicate_scalar_phi.  Do not handle virtual phi nodes.
12886         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
12887         Call predicate_scalar_phi.
12888         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
12889         just after the labels for flag_loop_if_convert_stores, otherwise
12890         insert the predicate in the end of the BB.
12891         (predicate_mem_writes): New.
12892         (combine_blocks): Call predicate_all_scalar_phis.  When
12893         flag_loop_if_convert_stores is set, call predicate_mem_writes.
12894         (tree_if_conversion): Call mark_sym_for_renaming when
12895         flag_loop_if_convert_stores is set.
12896         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
12897         flag_loop_if_convert_stores is set.
12898
12899 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
12900
12901         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
12902         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
12903         (pa_function_value): Make static.
12904         (override_options): Rename to...
12905         (pa_option_override): ...this. Make static.
12906         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
12907         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
12908         TARGET_OPTION_OVERRIDE): Define.
12909         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
12910         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
12911         Remove.
12912         * config/pa/pa-protos.h (override_options): Remove.
12913
12914 2010-08-24  Richard Guenther  <rguenther@suse.de>
12915
12916         PR middle-end/45379
12917         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
12918         if addr->index is NULL or zero.
12919         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
12920         TARGET_MEM_REF more properly.
12921         (indirect_ref_may_alias_decl_p): Likewise.
12922         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
12923         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
12924
12925 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
12926
12927         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
12928         (m32c_override_options): Rename to...
12929         (m32c_option_override): ...this. Make static.
12930         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
12931         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
12932         Remove.
12933         * config/m32c/m32c-protos.h (m32c_override_options,
12934         m32c_function_value_regno_p): Remove.
12935
12936 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
12937
12938         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
12939         Fix a typo in a previous commit.
12940
12941 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
12942
12943         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
12944         Pre-initialize innerloop_iters to one.
12945
12946 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
12947
12948         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
12949         existing static function global.
12950
12951         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
12952         is changed to global.
12953
12954         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
12955         may_be_nonaddressable_p on base, and don't collect this reference
12956         if the address of the base could not be taken.
12957
12958 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12959
12960         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
12961         enable the compiler to autovectorize mathmetical functions for
12962         power7 using the Mathematical Acceleration Subsystem library.
12963
12964         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
12965         handle which vector math library we have.
12966         (rs6000_override_options): Add -mveclibabi=mass support.
12967         (rs6000_builtin_vectorized_libmass): New function to handle auto
12968         vectorizing math functions that are in the MASS library.
12969         (rs6000_builtin_vectorized_function): Call it.
12970
12971         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12972         -mveclibabi=mass.
12973
12974 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12975
12976         PR boehm-gc/34544
12977         * gthr-posix.h (__gthread_active_init): Delete.
12978         (__gthread_active_p): Do activity check here.
12979         Don't include errno.h on hppa-hpux.  Update comment.
12980         * gthr-posix95.h (__gthread_active_init): Delete.
12981         (__gthread_active_p): Do activity check here.
12982         Don't include errno.h on hppa-hpux.  Update comment.
12983         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
12984         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
12985         add -lpthread when -mt or -pthread is specified.
12986         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
12987         (LINK_GCC_C_SEQUENCE_SPEC): Define.
12988         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
12989         (stublib.c, pthread_default_stacksize_np-stub.o,
12990         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
12991         $(T)libgcc_stub.a): Add methods.
12992         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
12993         (stublib.c, pthread_default_stacksize_np-stub.o,
12994         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
12995         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12996         pthread_mutex_unlock): New stubs.
12997
12998 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
12999
13000         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
13001         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
13002         options.
13003         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
13004         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
13005         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
13006         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
13007         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
13008         "-l".
13009         * cppspec.c: Include opts.h.
13010         (lang_specific_driver): Use cl_decoded_option structures.
13011         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
13012         * doc/tm.texi: Regenerate.
13013         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
13014         (driver_handle_option): Allow driver options needing no special
13015         processing.
13016         (process_command): Decode options before call to
13017         lang_specific_driver.  Pass decoded options to
13018         lang_specific_driver.
13019         * gcc.h (lang_specific_driver): Update prototype.
13020         * gccspec.c: Include opts.h.
13021         (lang_specific_driver): Use cl_decoded_option structures.
13022         * opts-common.c (option_ok_for_language, generate_option,
13023         generate_option_input_file): New.
13024         (decode_cmdline_option): Use option_ok_for_language.
13025         (decode_cmdline_options_to_array): Use generate_option_input_file.
13026         (handle_generated_option): Use generate_option.
13027         * opts.h (generate_option, generate_option_input_file): Declare.
13028
13029 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
13030
13031         * config/mips/mips.c (mips_override_options): Rename to...
13032         (mips_option_override): ...this. Make static.
13033         (TARGET_OPTION_OVERRIDE): Define.
13034         (mips_in_small_data_p): Update comment.
13035         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
13036         (FIXED_REGISTERS): Update comment.
13037         * config/mips/mips-protos.h (mips_override_options): Remove.
13038
13039 2010-08-21  Olivier Hainque  <hainque@adacore.com>
13040
13041         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
13042
13043 2010-08-21  Olivier Hainque  <hainque@adacore.com>
13044
13045         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
13046         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
13047
13048 2010-08-20  Jan Hubicka  <jh@suse.cz>
13049
13050         * tree-pass.h (pass_ipa_cdtor_merge): New function.
13051         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
13052         heap allocated.
13053         (record_cdtor_fn): Move to ipa.c; do not test for
13054         have_ctors_dtors.
13055         (build_cdtor): Move to ipa.c; add code avoiding construction
13056         when target have ctors/dtors and there is only one ctor/dtor at given
13057         priority.
13058         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
13059         sort; reverse order of constructors.
13060         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
13061         (cgraph_finalize_function): Do not call record_cdtor_fn.
13062         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
13063         (cgraph_build_static_cdtor): Move to ipa.c.
13064         * ipa.c: Include target.h and tree-iterator.h.
13065         (cgraph_build_static_cdtor, static_ctors, static_dtors,
13066         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
13067         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
13068         pass_ipa_cdtor_merge): New.
13069         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
13070         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
13071         bounds access.
13072
13073 2010-08-20  Jan Hubicka  <jh@suse.cz>
13074
13075         PR c++/45307
13076         PR c++/17736
13077         * cgraph.h (cgraph_only_called_directly_p,
13078         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
13079         static cdtors.
13080         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
13081         are not needed.
13082         (cgraph_finalize_function): Static cdtors are reachable.
13083         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
13084
13085 2010-08-20  Jan Hubicka  <jh@suse.cz>
13086
13087         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
13088         flag_wpa.
13089         * lto-streamer-out.c (lto_output): Likewise.
13090         * passes.c (ipa_write_optimization_summaries): Initialize statement
13091         uids.
13092
13093 2010-08-20  Olivier Hainque  <hainque@adacore.com>
13094
13095         * tree.h (alias_diag_flags): New enum.
13096         (alias_pair): Add an 'emitted_diags' field.
13097         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
13098         (assemble_alias): Initialize emitted_diags of new pairs.
13099
13100 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
13101
13102         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13103         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13104         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13105         (STACK_CHECK_PROTECT): Define.
13106         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
13107         (output_probe_stack_range): Likewise.
13108         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
13109         builtin stack checking is enabled.
13110         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
13111         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13112         (probe_stack_range): New insn.
13113
13114 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13115
13116         PR target/45336
13117         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
13118         short first.
13119
13120         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
13121         char first.
13122
13123 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13124
13125         PR target/45336
13126         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
13127         to cover zero extension into 64-bit register.
13128         (*sse2_pextrw): Likewise.
13129         (*sse4_1_pextrd_zext): New insn.
13130
13131 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
13132
13133         revert r163410, partially revert r163267.
13134         * config/rs6000/darwin.h (LIB_SPEC): Remove.
13135         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
13136         Darwin versions.
13137
13138 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13139
13140         PR middle-end/44974
13141         * builtins.c (expand_builtin): Don't optimize away
13142         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
13143
13144 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
13145
13146         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
13147         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
13148         alternative 1 of operand 2.
13149
13150 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13151             Paolo Bonzini  <bonzini@gnu.org>
13152
13153         * simplify-rtx.c (simplify_unary_operation_1): Optimize
13154         (sign_extend (zero_extend (...)) and
13155         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
13156
13157 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13158
13159         PR rtl-optimization/45353
13160         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
13161         after bb_note is a BARRIER.
13162
13163 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
13164
13165         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
13166         linking libgcc.a.
13167
13168 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13169             Michael Matz  <matz@suse.de>
13170
13171         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
13172
13173 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
13174
13175         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
13176         (ggc_mark_roots): ...here.
13177
13178 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
13179
13180         * vec.h (FOR_EACH_VEC_ELT): Define.
13181         * c-decl.c: Use it.
13182         * cfgloop.c: Likewise.
13183         * cfgloopmanip.c: Likewise.
13184         * cgraph.c: Likewise.
13185         * cgraphunit.c: Likewise.
13186         * combine.c: Likewise.
13187         * config/bfin/bfin.c: Likewise.
13188         * config/mips/mips.c: Likewise.
13189         * config/rs6000/rs6000.c: Likewise.
13190         * dbxout.c: Likewise.
13191         * df-scan.c: Likewise.
13192         * dominance.c: Likewise.
13193         * dse.c: Likewise.
13194         * dwarf2out.c: Likewise.
13195         * except.c: Likewise.
13196         * expr.c: Likewise.
13197         * function.c: Likewise.
13198         * gcse.c: Likewise.
13199         * genattr.c: Likewise.
13200         * ggc-common.c: Likewise.
13201         * gimplify.c: Likewise.
13202         * graphite-blocking.c: Likewise.
13203         * graphite-clast-to-gimple.c: Likewise.
13204         * graphite-dependences.c: Likewise.
13205         * graphite-interchange.c: Likewise.
13206         * graphite-poly.c: Likewise.
13207         * graphite-scop-detection.c: Likewise.
13208         * graphite-sese-to-poly.c: Likewise.
13209         * graphite.c: Likewise.
13210         * haifa-sched.c: Likewise.
13211         * ifcvt.c: Likewise.
13212         * implicit-zee.c: Likewise.
13213         * ipa-prop.c: Likewise.
13214         * ipa-struct-reorg.c: Likewise.
13215         * ipa.c: Likewise.
13216         * ira-build.c: Likewise.
13217         * ira-color.c: Likewise.
13218         * ira-emit.c: Likewise.
13219         * lambda-code.c: Likewise.
13220         * loop-invariant.c: Likewise.
13221         * loop-unroll.c: Likewise.
13222         * lower-subreg.c: Likewise.
13223         * lto-cgraph.c: Likewise.
13224         * lto-opts.c: Likewise.
13225         * lto-streamer-in.c: Likewise.
13226         * lto-streamer-out.c: Likewise.
13227         * lto-streamer.c: Likewise.
13228         * lto-symtab.c: Likewise.
13229         * matrix-reorg.c: Likewise.
13230         * opts.c: Likewise.
13231         * predict.c: Likewise.
13232         * print-tree.c: Likewise.
13233         * sdbout.c: Likewise.
13234         * sel-sched-dump.c: Likewise.
13235         * sel-sched-ir.c: Likewise.
13236         * sel-sched.c: Likewise.
13237         * sese.c: Likewise.
13238         * stor-layout.c: Likewise.
13239         * tree-cfg.c: Likewise.
13240         * tree-cfgcleanup.c: Likewise.
13241         * tree-chrec.c: Likewise.
13242         * tree-data-ref.c: Likewise.
13243         * tree-emutls.c: Likewise.
13244         * tree-inline.c: Likewise.
13245         * tree-into-ssa.c: Likewise.
13246         * tree-loop-distribution.c: Likewise.
13247         * tree-loop-linear.c: Likewise.
13248         * tree-mudflap.c: Likewise.
13249         * tree-outof-ssa.c: Likewise.
13250         * tree-parloops.c: Likewise.
13251         * tree-predcom.c: Likewise.
13252         * tree-pretty-print.c: Likewise.
13253         * tree-scalar-evolution.c: Likewise.
13254         * tree-ssa-live.c: Likewise.
13255         * tree-ssa-loop-im.c: Likewise.
13256         * tree-ssa-loop-ivcanon.c: Likewise.
13257         * tree-ssa-loop-ivopts.c: Likewise.
13258         * tree-ssa-loop-manip.c: Likewise.
13259         * tree-ssa-loop-niter.c: Likewise.
13260         * tree-ssa-loop-prefetch.c: Likewise.
13261         * tree-ssa-phiprop.c: Likewise.
13262         * tree-ssa-pre.c: Likewise.
13263         * tree-ssa-reassoc.c: Likewise.
13264         * tree-ssa-sccvn.c: Likewise.
13265         * tree-ssa-structalias.c: Likewise.
13266         * tree-ssa.c: Likewise.
13267         * tree-vect-data-refs.c: Likewise.
13268         * tree-vect-loop-manip.c: Likewise.
13269         * tree-vect-loop.c: Likewise.
13270         * tree-vect-patterns.c: Likewise.
13271         * tree-vect-slp.c: Likewise.
13272         * tree-vect-stmts.c: Likewise.
13273         * tree-vrp.c: Likewise.
13274         * tree.c: Likewise.
13275         * value-prof.c: Likewise.
13276         * var-tracking.c: Likewise.
13277         * varasm.c: Likewise.
13278         * vmsdbgout.c: Likewise.
13279
13280 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
13281             Richard Guenther  <richard.guenther@gmail.com>
13282
13283         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
13284         copy the src value and return a copy.
13285         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
13286         (C++ Volatiles): Adjust to describe C++ semantics only.
13287
13288 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
13289
13290         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
13291         be zero or nonzero.
13292         * doc/tm.texi: Regenerate.
13293         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
13294         * df-scan.c (df_get_exit_block_use_set), reginfo.c
13295         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
13296         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
13297         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
13298         to 1.
13299
13300 2010-08-20  Olivier Hainque  <hainque@adacore.com>
13301
13302         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
13303         an extra nop past a sibling call at the very end.
13304
13305 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
13306
13307         PR bootstrap/45350
13308         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
13309         a comment.
13310
13311 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
13312
13313         * target.def (function_arg, function_incoming_arg): Remove const
13314         qualifier on CUMULATIVE_ARGS parameter.
13315         * targhooks.h (default_function_arg, default_function_incoming_arg):
13316         Likewise.
13317         * targhooks.c (default_function_arg, default_function_incoming_arg):
13318         Likewise.
13319         * config/i386/i386.c (ix86_function_arg): Likewise.
13320
13321 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
13322
13323         PR target/45336
13324         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
13325         SIGN_EXTENDs or ZERO_EXTENDs.
13326
13327 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
13328
13329         PR target/42172
13330         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
13331         Take its cost into account if nonnull.
13332         (insn_a_feeds_b): New static function.
13333         (combine_instructions): Look for four-insn combinations.
13334         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
13335         them into account when computing all_adjacent and looking for other
13336         uses.
13337         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
13338         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
13339         (try_combine): New arg I0.  Handle four-insn combinations.
13340         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
13341         like ELIM_I1.
13342
13343 2010-08-19  Jason Merrill  <jason@redhat.com>
13344
13345         PR c++/45307
13346         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
13347         if ctor is empty.
13348         (gimplify_modify_expr_rhs): Adjust.
13349
13350 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
13351
13352         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
13353         bitmap_bit_p.
13354         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
13355         * dominance.c (iterate_fix_dominators): Likewise.
13356         * dse.c (set_usage_bits): Likewise.
13357         (set_position_unneeded, record_store): Likewise.
13358         * gimple-fold.c (get_maxval_strlen): Likewise.
13359         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
13360         * ipa-inline.c (update_caller_keys): Likewise.
13361         * ipa-split.c (verify_non_ssa_vars): Likewise.
13362         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
13363         (close_type_exposed_parameter, close_type_full_escape): Likewise.
13364         (close_addressof_down): Likewise.
13365         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
13366         (setup_allocno_left_conflicts_size): Likewise.
13367         (ira_reassign_conflict_allocnos): Likewise.
13368         (ira_reassign_pseudos): Likewise.
13369         * ira-emit.c (change_loop): Likewise.
13370         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
13371         * lto-streamer-out.c (write_symbol): Likewise.
13372         * predict.c (expr_expected_value_1): Likewise.
13373         * regstat.c (regstat_bb_compute_ri): Likewise.
13374         * sel-sched.c (create_block_for_bookkeeping): Likewise.
13375         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
13376         * stmt.c (expand_case): Likewise.
13377         * tree-eh.c (emit_eh_dispatch): Likewise.
13378         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
13379         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
13380         Likewise.
13381         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
13382         (rdg_build_components): Likewise.
13383         * tree-object-size.c (collect_object_sizes_for): Likewise.
13384         * tree-sra.c (convert_callers): Likewise.
13385         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
13386         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
13387         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
13388
13389 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
13390
13391         * config/i386/i386.md (*lea_1): Use P mode iterator.
13392         (lea add splitter): Also handle DImode operands.
13393         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
13394         predicate.  Do not use ix86_lea_for_add_ok.
13395         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
13396         (lea ashift splitter): Also handle DImode operands.
13397         (DImode lea ashift splitter): Remove splitter.
13398
13399 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
13400
13401         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
13402         ix86_binary_operator_ok.
13403
13404 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
13405
13406         PR rtl-optimization/44691
13407         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
13408         is not a register.
13409
13410 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
13411
13412         PR target/45070
13413         * config/arm/arm.c (arm_output_epilogue): Ensure that return
13414          value of size 1-3 is handled correctly.
13415
13416 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
13417
13418         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
13419         type for the conditional has wide enough range.
13420
13421 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
13422
13423         PR target/45327
13424         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
13425         ix86_binary_operator_ok.
13426
13427 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
13428
13429         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
13430         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
13431         code to output insn mnemonic.  Fix comment.
13432         (*addsi_1_zext): Add r-r-0 alternative 1.
13433         <TYPE_LEA>: Split insn to lea.
13434         <default>: Handle alternative 1.
13435         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
13436         multi-level if_then_else RTX to set "type" attribute.
13437         <default>: Handle alternative 2.
13438         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
13439         Use cond RTX instead of multi-level if_then_else RTX to set
13440         "type" attribute.
13441         <default>: Handle alternatives 2 and 4.
13442         (lea splitters): Update calls to ix86_lea_for_add_ok.
13443
13444         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
13445         argument.
13446         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
13447
13448 2010-08-18  Richard Guenther  <rguenther@suse.de>
13449
13450         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
13451         use operand helpers.
13452
13453 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
13454
13455         PR middle-end/45292
13456         * optabs.c (expand_bool_compare_and_swap): Expand pending
13457         pops before trying the optab.
13458
13459 2010-08-18  Yao Qi  <yao@codesourcery.com>
13460
13461         PR target/45094
13462         * config/arm/arm.c (output_move_double): Fix typo generating
13463         instructions ('ldr'->'str').
13464
13465 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
13466
13467         PR rtl-optimization/42575
13468         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
13469         live ranges.
13470
13471 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13472
13473         * config/arm/arm-protos.h (arm_expand_sync): New.
13474         (arm_output_memory_barrier, arm_output_sync_insn): New.
13475         (arm_sync_loop_insns): New.
13476         * config/arm/arm.c (FL_ARCH7): New.
13477         (FL_FOR_ARCH7): Include FL_ARCH7.
13478         (arm_arch7): New.
13479         (arm_print_operand): Support %C markup.
13480         (arm_legitimize_sync_memory): New.
13481         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
13482         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
13483         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
13484         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
13485         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
13486         (arm_process_output_sync_insn, arm_output_sync_insn): New.
13487         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
13488         * config/arm/arm.h (struct arm_sync_generator): New.
13489         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
13490         (TARGET_HAVE_MEMORY_BARRIER): New.
13491         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
13492         * config/arm/arm.md: Include sync.md.
13493         (UNSPEC_MEMORY_BARRIER): New.
13494         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
13495         (VUNSPEC_SYNC_OP):New.
13496         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
13497         (sync_result, sync_memory, sync_required_value): New attributes.
13498         (sync_new_value, sync_t1, sync_t2): Likewise.
13499         (sync_release_barrier, sync_op): Likewise.
13500         (length): Add logic to length attribute defintion to call
13501         arm_sync_loop_insns when appropriate.
13502         * config/arm/sync.md: New file.
13503
13504 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
13505
13506         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
13507         ENABLE_TREE_CHECKING.
13508         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
13509         and GCC >= 4.3.
13510
13511 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
13512
13513         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
13514         or optimizing for size, always avoid lea if possible.
13515
13516         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
13517
13518 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
13519
13520         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
13521         Dunmmy function with NULL return unless the target is
13522         OSX >= 10.6 (Darwin10).
13523
13524 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
13525
13526         * gcc.c (spec_function): Add remove-outfile.
13527         (remove_outfile_spec_function): New function.
13528         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
13529         * invoke.texi (replace-outfile): Document.
13530
13531 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
13532
13533         PR target/45296
13534         * reginfo.c (globalize_reg): Reject stack registers.
13535
13536 2010-08-17  Richard Guenther  <rguenther@suse.de>
13537
13538         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
13539         list of conditional equivalences.
13540         (free_all_edge_infos): Adjust.
13541         (record_equivalences_from_incoming_edge): Likewise.
13542         (record_cond): Likewise.
13543         (build_and_record_new_cond): Likewise.
13544         (record_conditions): Likewise.
13545         (dom_opt_leave_block): Likewise.
13546
13547 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
13548
13549         * doc/invoke.texi (ms-extension): Add documentation.
13550
13551 2010-08-17  Richard Guenther  <rguenther@suse.de>
13552
13553         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
13554
13555 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
13556
13557         PR c/40563
13558         * c-decl.c (diagnose_uninitialized_cst_member): New function.
13559         (finish_decl): Use it to issue a -Wc++-compat warning about
13560         uninitialized const field in struct or union.
13561
13562         (finish_struct): Use strip_array_types.
13563
13564 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
13565
13566         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
13567         functions.
13568         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
13569         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
13570         call block_nreverse here.
13571         (blocks_nreverse): Rename decl temporary to block.
13572
13573 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
13574
13575         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
13576         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
13577         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
13578         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
13579         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
13580         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
13581         thumb2_iorsi3): Delete.
13582         (orsi_notsi_si): No longer a named pattern.
13583         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
13584         * config/arm/predicates.md (shift_amount_operand): New.
13585         (mult_operator): New.
13586         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
13587         attr enabled): New.
13588         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
13589         arch matches t2.
13590         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
13591         (not_shiftsi_compare0): Likewise, renamed from
13592         arm_notsi_shiftsi_compare0.
13593         (not_shiftsi_compare0_scratch): Likweise, renamed from
13594         arm_notsi_shiftsi_compare0_scratch.
13595         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
13596         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
13597         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
13598         so that the register alternative is disabled when the shift_operator
13599         is MULT.  Use "M" as the constraint for constants.
13600         (arith_shiftsi splitter): Enable for TARGET_32BIT.
13601         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
13602         constraint for constants.
13603         (arith_shiftsi_compare0_scratch): Likewise.
13604         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
13605         Handle Thumb2 alternative.
13606
13607 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
13608
13609         * doc/options.texi (NoDriverArg): Document.
13610         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
13611         -MDX and -MMDX.
13612         * opt-functions.awk (switch_flags): Handle NoDriverArg.
13613         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
13614         marking for CL_NO_DRIVER_ARG options when in the driver.
13615         * opts.h (CL_NO_DRIVER_ARG): Define.
13616         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13617         CL_COMMON): Update values.
13618
13619 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
13620
13621         * common.opt: Add driver options.
13622         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
13623         * doc/options.texi (Driver, RejectDriver): Document.
13624         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
13625         print_prog_name, print_multi_directory, print_sysroot,
13626         print_multi_os_directory, print_multi_lib,
13627         print_sysroot_headers_suffix, report_times, combine_flag,
13628         use_pipes, wrapper_string): Remove.
13629         (save_switch, driver_unknown_option_callback,
13630         driver_wrong_lang_callback, driver_post_handling_callback,
13631         driver_handle_option): New.
13632         (spec_lang, last_language_n_infiles): Make file-scope static
13633         instead of local to process_command.
13634         (process_command): Use decode_cmdline_options_to_array and
13635         read_cmdline_option for option processing.  Compute have_c in
13636         prescan of decoded options.
13637         * opt-functions.awk (switch_flags): Handle Driver and
13638         RejectDriver.
13639         (var_type, var_type_struct): Handle Separate options as generating
13640         const char * variables.
13641         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
13642         CL_TARGET to be passed by caller if required.
13643         (decode_cmdline_options_to_array): Update comment.
13644         * opts.c (complain_wrong_lang): Handle options only valid for the
13645         driver.
13646         (decode_options): Update call to decode_cmdline_options_to_array.
13647         (print_filtered_help): Ignore driver-only options.
13648         (print_specific_help): Ignore CL_DRIVER.
13649         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
13650         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
13651         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
13652         Update values.
13653
13654 2010-08-16  Richard Guenther  <rguenther@suse.de>
13655
13656         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13657         TARGET_MEM_REF a bit.
13658         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
13659         (create_mem_ref_raw): Always create TMR_OFFSET, store the
13660         alias pointer type via it.
13661         (copy_mem_ref_info): Adjust.
13662         (maybe_fold_tmr): Likewise.
13663         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
13664         (reference_alias_ptr_type): Likewise.
13665         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
13666         adjust documentation of TMR_OFFSET operand.
13667         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
13668         use the alias pointer type.
13669         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
13670         initialize mem attrs but the TMR itself.
13671         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
13672         similar to MEM_REF.
13673         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
13674         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
13675         (unshare_and_remove_ssa_names): Likewise.
13676         (copy_ref_info): Adjust.
13677         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
13678         TARGET_MEM_REF case.
13679         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
13680         at TMR_ORIGINAL.
13681         * tree.h (TMR_ORIGINAL): Remove.
13682         * gimple.c (get_base_address): For TARGET_MEM_REF with a
13683         symbol return that.
13684         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
13685         with a symbol.
13686         (get_addr_base_and_unit_offset): Likewise.
13687         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
13688         TARGET_MEM_REFs.
13689         (indirect_ref_may_alias_decl_p): Likewise.
13690         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
13691
13692 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
13693
13694         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
13695         with GCC version 4.6, the default setting (when not optimizing
13696         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
13697         been changed to -fomit-frame-pointer.
13698
13699 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
13700
13701         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
13702         Darwin10.  Do not link libgcc.a for Darwin >= 9.
13703
13704 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
13705
13706         * doc/invoke.texi (Warning Options): Fix terminology and markup
13707         in the description of how unknown warning options are handled.
13708
13709 2010-08-15  Ira Rosen  <irar@il.ibm.com>
13710
13711         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
13712         in basic blocks.
13713         (vect_supportable_dr_alignment): Check alignment for basic blocks.
13714         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
13715         data references.
13716         (vect_bb_vectorization_profitable_p): New function.
13717         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
13718         check if it's worthwhile to vectorize the basic block.
13719
13720 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
13721
13722         * reload.h (register_move_cost, memory_move_secondary_cost,
13723         secondary_reload_class): Adjust prototype.
13724         * rtl.h (reg_class_subset_p): Adjust prototype.
13725         * reload.c (secondary_reload_class): Change arguments type from
13726         enum reg_class to reg_class_t. Change result type to reg_class_t.
13727         * reginfo.c (register_move_cost, reg_class_subset_p): Change
13728         arguments type from enum reg_class to reg_class_t.
13729         (memory_move_secondary_cost): Change arguments type from
13730         enum reg_class to reg_class_t. Change type of saved_flags to
13731         reg_class_t.
13732
13733         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13734         Remove macros.
13735         (mips_cost): Remove.
13736         (struct mips_rtx_cost_data): Moved to mips.c.
13737         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
13738         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
13739         (mips_cost): Make static.
13740         (mips_canonicalize_move_class): Change argument type to reg_class_t.
13741         Change result type to reg_class_t.
13742         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
13743         type from enum reg_class to reg_class_t.
13744         (mips_register_move_cost): Make static. Change arguments
13745         type from enum reg_class to reg_class_t.
13746         (mips_memory_move_cost): New function.
13747         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13748
13749 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
13750
13751         PR rtl-optimization/43358
13752         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
13753         of a single hard register, using simplify_subreg_regno to decide
13754         what that register should be.
13755
13756 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
13757
13758         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
13759         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
13760         (loongson_pmull<V_suffix>): Rename to...
13761         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
13762
13763 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
13764
13765         * configure.ac: Enable -fomit-frame-pointer on darwin
13766         which support dwarf2.
13767         * config/i386/i386.c (override_options): Same.
13768
13769 2010-08-13  Jie Zhang  <jie@codesourcery.com>
13770
13771         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
13772
13773 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
13774
13775         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
13776         -MMD.
13777
13778 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
13779
13780         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
13781         up dot_prod pattern searching if a stmt is outside the loop.
13782
13783 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
13784             Uros Bizjak  <ubizjak@gmail.com>
13785
13786         * config.gcc: Handle --enable-frame-pointer.
13787
13788         * configure.ac: Add --enable-frame-pointer.
13789         * configure: Regenerated.
13790
13791         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
13792         (override_options): If not configured with --enable-frame-pointer,
13793         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
13794         optimizing for size), -fasynchronous-unwind-tables and
13795         -maccumulate-outgoing-args by default.
13796
13797 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
13798
13799         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
13800
13801         PR middle-end/45262
13802         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
13803         -a overflows.  Normalize the range.
13804
13805 2010-08-12  Richard Guenther  <rguenther@suse.de>
13806
13807         PR tree-optimization/45232
13808         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
13809         for types with undefined overflow.
13810         (reassociate_bb): Allow re-associating of bit and min/max
13811         operations for types with undefined overflow.
13812         * tree-ssa-forwprop.c (associate_plusminus): New function.
13813         (tree_ssa_forward_propagate_single_use_vars): Call it.
13814
13815 2010-08-12  Richard Guenther  <rguenther@suse.de>
13816
13817         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
13818         * tree-ssa-alias.c (get_ptr_info): Move ...
13819         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
13820         align and misalign fields conservatively.
13821         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
13822         derive alignment information.
13823         (evaluate_stmt): Derive alignment information from memory
13824         allocation functions.
13825         * tree.h (get_pointer_alignment): Make unsigned.
13826         * builtins.c (get_object_alignment): Use alignment information we
13827         have computed for pointers.
13828         (get_pointer_alignment): Likewise.  Make conservative, return
13829         and unsigned value.
13830         (expand_builtin_strlen): Adjust.
13831         (expand_builtin_memcmp): Likewise.
13832         (expand_builtin_strcmp): Likewise.
13833         (expand_builtin_strncmp): Likewise.
13834         (get_builtin_sync_mem): Use at least mode alignment.
13835         (fold_builtin_memset): Adjust.
13836         (fold_builtin_memory_op): Likewise.
13837         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
13838         information also dump pointer alignment knowledge.
13839         (dump_gimple_stmt): Likewise.
13840
13841 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
13842
13843         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
13844         (EMPTY_FIELD_BOUNDARY): Remove.
13845         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
13846
13847 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
13848
13849         PR debug/45259
13850         * caller-save.c (save_call_clobbered_regs): Only swap notes with
13851         DEBUG_INSNs if n_regs_saved.
13852
13853 2010-08-12  Wei Guozhi  <carrot@google.com>
13854
13855         PR target/44999
13856         * config/arm/arm.md (andsi3): Change to zero extension if possible.
13857         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
13858
13859 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
13860
13861         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
13862
13863         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
13864
13865 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13866
13867         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
13868         the case removed in the previous patch, when the only phi argument
13869         is defined in the same loop as the phi node itself.  Handle it
13870         separately from the invariant case by both propagating it outside
13871         the region and replacing the phi node with an assign.
13872
13873 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13874
13875         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
13876         constant phi nodes with one argument are is_gimple_min_invariant
13877         and SSA_NAME_IS_DEFAULT_DEF.
13878
13879 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13880
13881         * graphite-cloog-util.c (oppose_constraint):
13882         Extend loop counter's value range (CLOOG_ORG).
13883         (cloog_matrix_to_ppl_constraint): Same.
13884         (new_Constraint_System_from_Cloog_matrix): Same.
13885         * graphite-cloog-compat.h (matrix_num_type): New.
13886
13887 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13888
13889         * graphite.c (graphite_initialize): Do not initialize
13890         CLooG and initialize the Parma Polyhedra Library
13891         manually when using CLOOG_ORG.
13892         (graphite_finalize): Do not finalize CLooG and finalize
13893         the Parma Polyhedra Library manually when using CLOOG_ORG.
13894         * graphite-cloog-compat.h (cloog_initialize): Hide function
13895         when using CLOOG_ORG.
13896         (cloog_finalize): Same.
13897
13898 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13899
13900         * graphite-clast-to-gimple.c (free_scattering): Change
13901         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
13902         (CLOOG_ORG).
13903         (build_cloog_prog): Same.
13904         * graphite-cloog-compat.h (cloog_domain): Removed.
13905         (cloog_scattering): New.
13906         (cloog_set_domain): Removed.
13907         (cloog_set_scattering): New.
13908         (cloog_next_domain): Removed.
13909         (cloog_next_scattering): New.
13910         (cloog_set_next_domain): Removed.
13911         (cloog_set_next_scattering): New.
13912         (CloogScatteringList): New.
13913         (CloogScattering): New.
13914         (cloog_scattering_free): New.
13915         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
13916         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
13917         New.
13918
13919 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13920
13921         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
13922         CloogState.
13923         (set_cloog_options): Same.
13924         (print_clast_stmt): Same.
13925         (scop_to_clast): Same.
13926         (print_generated_program): Same.
13927         (gloog): Same.
13928         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
13929         (scop_to_clast): Extend with CloogState.
13930         * graphite-cloog-util.c: Include graphite-cloog-compat.h
13931         (new_Cloog_Domain_from_ppl_Polyhedron):
13932         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
13933         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
13934         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13935         * graphite-cloog-util.h (build_cloog_prog): Same.
13936         * graphite-cloog-copat.h (build_cloog_prog): New.
13937         (CloogState): New.
13938         (cloog_state_malloc): New.
13939         (cloog_state_free): New.
13940         (cloog_loop_malloc): New.
13941         (cloog_options_malloc): New.
13942         (cloog_statement_alloc): New.
13943         (cloog_domain_from_cloog_matrix): New.
13944         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
13945         (new_Cloog_Domain_from_ppl_Polyhedron): New.
13946
13947 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13948
13949         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
13950         type of NAME now depends on used CLooG version.
13951         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
13952         (gcc_type_for_clast_expr): Same.
13953         (print_clast_stmt): Replace pprint with clast_pprint.
13954         * graphite-cloog-compat.h: Provide compatibility macros for
13955         CLooG Legacy.
13956         (clast_name_p): New.
13957         (clast_expr_term): New.
13958         (clast_expr_red): New.
13959         (clast_expr_bin): New.
13960         (clast_pprint): New.
13961
13962 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13963
13964         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
13965         compatible to newer CLooG releases (CLOOG_ORG).
13966         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
13967         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
13968         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
13969         (build_cloog_prog) : New.
13970         (cloog_program_extract_scalars): New.
13971         (cloog_program_scatter): New.
13972
13973 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13974
13975         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
13976         conditionally (CLOOG_ORG).
13977         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
13978         (cloog_statement_usr): New.
13979         (cloog_domain): Same.
13980         (cloog_set_domain): Same.
13981         (cloog_next_domain): Same.
13982         (cloog_set_next_domain): Same.
13983         (cloog_program_nb_scattdims): Same.
13984         (cloog_program_set_nb_scattdims): Same.
13985         (cloog_program_names): Same.
13986         (cloog_program_set_names): Same.
13987         (cloog_program_set_context): Same.
13988         (cloog_program_set_loop): Same.
13989         (cloog_program_blocklist): Same.
13990         (cloog_program_set_blocklist): Same.
13991         (cloog_program_scaldims): Same.
13992         (cloog_program_set_scaldims): Same.
13993         (cloog_names_nb_parameters): Same.
13994         (cloog_names_set_nb_parameters): Same.
13995         (cloog_names_parameters): Same.
13996         (cloog_names_set_parameters): Same.
13997         (cloog_names_set_nb_iterators): Same.
13998         (cloog_names_set_iterators): Same.
13999         (cloog_names_set_nb_scattering): Same.
14000         (cloog_names_set_scattering): Same.
14001         (cloog_statement_set_usr): Same.
14002         (cloog_loop_set_next): Same.
14003         (cloog_loop_set_domain): Same.
14004         (cloog_loop_set_block): Same.
14005         (cloog_block_list_next): Same.
14006         (cloog_block_list_set_next):
14007         (cloog_block_list_set_block): Same.
14008
14009 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14010
14011         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
14012         a bool.
14013         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
14014         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
14015         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
14016         when something has been changed.
14017         (rewrite_commutative_reductions_out_of_ssa): Same.
14018
14019 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14020
14021         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
14022         handle the case when def is in the sese region.
14023         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
14024         for invariant expressions.
14025         (rewrite_cross_bb_phi_deps): Removed.
14026         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
14027         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
14028         rewrite_cross_bb_phi_deps.
14029
14030 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14031
14032         * graphite-sese-to-poly.c
14033         (rewrite_commutative_reductions_out_of_ssa_loop): Call
14034         scev_analyzable_p only on is_gimple_reg
14035
14036 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14037
14038         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
14039         (rewrite_close_phi_out_of_ssa): Propagate constant values or
14040         parametric expressions outside the scop region.
14041         (rewrite_cross_bb_scalar_deps): Same.
14042         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
14043
14044 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14045
14046         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
14047         SSA_NAME_DEF_STMT only on SSA_NAMEs.
14048
14049 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14050
14051         * tree-scalar-evolution.c (instantiate_scev_name): Do not
14052         instantiate default definitions.
14053
14054 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
14055             Sebastian Pop  <sebastian.pop@amd.com>
14056
14057         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
14058         (loop_exits_from_bb_p): New.
14059         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
14060         (loop_exits_from_bb_p): Declared.
14061         * graphite-scop-detection.c (scopdet_basic_block_info): Call
14062         loop_exits_to_bb_p.
14063
14064 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14065
14066         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
14067         extra parameter for the region.  Call scev_analyzable_p.
14068         (rewrite_reductions_out_of_ssa): Update call to
14069         rewrite_close_phi_out_of_ssa.
14070         (rewrite_cross_bb_phi_deps): Same.
14071         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
14072         parameter for the region.  Call scev_analyzable_p.
14073         (rewrite_commutative_reductions_out_of_ssa): Update call to
14074         rewrite_commutative_reductions_out_of_ssa_loop.
14075
14076 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14077
14078         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
14079
14080 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14081
14082         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
14083         SSA scalar phi nodes that can be scev_analyzable_p.
14084
14085 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14086
14087         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
14088         handle SSA_NAME_IS_DEFAULT_DEF.
14089
14090 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14091
14092         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
14093
14094 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14095
14096         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
14097         case non close-phi nodes with one argument.
14098
14099 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14100
14101         * sese.h (scev_analyzable_p): Scevs could be expressions without
14102         chrecs and still be scev_analyzable_p.
14103
14104 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14105
14106         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14107
14108 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14109
14110         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
14111         * cfgloop.h (struct loop): Remove single_iv field.
14112         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
14113         (scop_canonicalize_loops): Removed.
14114         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
14115         over all the loop phi nodes in loop->header.
14116         (build_poly_scop): Remove use of scop_canonicalize_loops.
14117
14118 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14119
14120         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
14121         handle GIMPLE_CALL.
14122
14123 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14124
14125         * tree-chrec.c (chrec_apply): Should only apply to the specified
14126         variable.  Also handle multivariate chains of recurrences that
14127         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
14128
14129 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14130
14131         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
14132         (debug_clast_name_indexes_1): Removed.
14133         (debug_clast_name_indexes): Removed.
14134         (pbb_to_depth_to_oldiv): Removed.
14135         (build_iv_mapping): Replace the use of rename_map with iv_map.
14136         (translate_clast_user): Remove uses of rename_map.  Allocate and
14137         free iv_map.
14138         (translate_clast_for_loop): Remove uses of rename_map.
14139         (translate_clast_for): Same.
14140         (translate_clast_guard): Same.
14141         (translate_clast): Same.
14142         (gloog): Same.
14143         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
14144         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
14145         * sese.c (set_rename): Now static.
14146         (rename_variables_in_stmt): Removed.
14147         (rename_uses): New.
14148         (is_parameter): Removed.
14149         (is_iv): Removed.
14150         (expand_scalar_variables_call): Removed.
14151         (expand_scalar_variables_ssa_name): Removed.
14152         (expand_scalar_variables_expr): Removed.
14153         (expand_scalar_variables_stmt): Removed.
14154         (expand_scalar_variables): Removed.
14155         (rename_variables): Removed.
14156         (remove_condition): Removed.
14157         (get_true_edge_from_guard_bb): Removed.
14158         (get_false_edge_from_guard_bb): Removed.
14159         (struct igp): Removed.
14160         (default_before_guard): Removed.
14161         (convert_for_phi_arg): Removed.
14162         (add_guard_exit_phis): Removed.
14163         (insert_guard_phis): Removed.
14164         (graphite_copy_stmts_from_block): Now also uses iv_map and a
14165         region.  Do not copy conditions.  Do not copy induction variables.
14166         Call rename_uses.
14167         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
14168         the translated statement.  Use the iv_map for the induction
14169         variable renaming.
14170         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
14171         (set_rename): Removed declaration.
14172         (scev_analyzable_p): ...here.
14173         * tree-chrec.c (chrec_apply_map): New.
14174         * tree-chrec.h (chrec_apply_map): Declared.
14175
14176 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14177
14178         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
14179         insert_loop_close_phis.
14180         * sese.c (name_defined_in_loop_p): Removed.
14181         (expr_defined_in_loop_p): Removed.
14182         (alive_after_loop): Removed.
14183         (close_phi_not_yet_inserted_p): Removed.
14184         (struct alep): Removed.
14185         (add_loop_exit_phis): Removed.
14186         (insert_loop_close_phis): Removed.
14187
14188 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14189
14190         * graphite-cloog-util.c
14191         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
14192         * graphite-poly.c
14193         (psct_scattering_dim_for_loop_depth): Same.
14194
14195 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14196
14197         * graphite-cloog-util.h: Added cloog.h.
14198         * graphite-blocking.c: Removed cloog.h.
14199         * graphite-dependences.c: Same.
14200         * graphite-interchange.c: Same.
14201         * graphite-poly.c: Same.
14202         * graphite-ppl.c: Same.
14203         * graphite-scop-detection.c: Same.
14204         * graphite-sese-to-poly.c:
14205         Removed cloog.h.
14206         Removed graphite-clast-to-gimple.h.
14207         (check_poly_representation): Removed (unused).
14208         * graphite-sese-to-poly.h
14209         (check_poly_representation): Removed (unused).
14210
14211 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14212
14213         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
14214         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
14215         (graphite-cloog-util.o): New.
14216         (graphite-ppl.o): Added graphite-cloog-util.h.
14217         * graphite-clast-to-gimple.c:
14218         Added graphite-cloog-util.h to include statements.
14219         * graphite-cloog-util.c: New.
14220         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
14221         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14222         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14223         (new_C_Polyhedron_from_Cloog_Matrix): Same.
14224         (insert_constraint_into_matrix): Same.
14225         (ppl_Constrain_System_number_of_constraints): Same.
14226         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14227         (oppose_constraint): Same.
14228         (cloog_matrix_to_ppl_constraint): Same.
14229         (new_Constraint_System_from_Cloog_Matrix): Same.
14230         * graphite-cloog-util.h: New.
14231         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
14232         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14233         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14234         (new_C_Polyhedron_from_Cloog_Matrix): Same.
14235         (insert_constraint_into_matrix): Same.
14236         * graphite-ppl.c:
14237         Added graphite-cloog-util.h to include statements.
14238         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
14239         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14240         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14241         (new_C_Polyhedron_from_Cloog_Matrix): Same.
14242         (insert_constraint_into_matrix): Same.
14243         (ppl_Constrain_System_number_of_constraints): Same.
14244         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14245         (oppose_constraint): Same.
14246         (cloog_matrix_to_ppl_constraint): Same.
14247         (new_Constraint_System_from_Cloog_Matrix): Same.
14248         * graphite-ppl.h:
14249         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
14250         graphite-cloog-util.h.
14251         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14252         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14253         (new_C_Polyhedron_from_Cloog_Matrix): Same.
14254         (insert_constraint_into_matrix): Same.
14255
14256 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14257
14258         * graphite-clast-to-gimple.c
14259         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
14260         (precision_for_interval): Same.
14261         (gcc_type_for_interval): Same.
14262         (compute_type_for_level): Same.
14263         * graphite-interchange.c
14264         (lst_interchange_profitable_p): Same.
14265         * graphite-poly.c
14266         (psct_scattering_dim_for_loop_depth): Same.
14267         * graphite-ppl.c
14268         (ppl_max_for_le_pointset): Same.
14269         (ppl_min_for_le_pointset): Same.
14270
14271 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14272
14273         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
14274         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
14275
14276 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14277
14278         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
14279         rewrite_close_phi_out_of_ssa.
14280
14281 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14282
14283         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
14284
14285 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14286
14287         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
14288         rename_map.
14289         * sese.c (debug_rename_map): Same.
14290         (get_rename): Same.
14291         (set_rename): Same.
14292         (rename_variables_in_stmt): Same.
14293         (expand_scalar_variables_call): Same.
14294         (expand_scalar_variables_ssa_name): Same.
14295         (expand_scalar_variables_expr): Same.
14296         (expand_scalar_variables_stmt): Same.
14297         (expand_scalar_variables): Same.
14298         (rename_variables): Same.
14299         (graphite_copy_stmts_from_block): Same.
14300         (copy_bb_and_scalar_dependences): Same.
14301
14302 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14303
14304         * graphite-clast-to-gimple.c (copy_renames): Removed.
14305         (translate_clast_for): Do not call copy_renames.
14306         (translate_clast_guard): Same.
14307
14308 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14309
14310         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
14311         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
14312         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
14313         before rewrite_cross_bb_scalar_deps.
14314
14315 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14316
14317         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
14318         Early return in when flag_associative_math is not set.
14319
14320 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14321
14322         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
14323         of SSA copies on edges except for loop->latch.
14324
14325 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14326
14327         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
14328         Split out of rewrite_reductions_out_of_ssa.
14329         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
14330         Declared.
14331         * graphite.c (graphite_transform_loops): Call it.
14332
14333 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14334
14335         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
14336
14337 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
14338
14339         * dbgcnt.def (graphite_scop): New counter.
14340         * graphite.c: Include dbgcnt.h.
14341         (graphite_transform_loops): Use new counter to limit transformations.
14342         * Makefile.in (graphite.o): Depend on DBGCNT_H.
14343
14344 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14345
14346         * passes.c (init_optimization_passes): Add pass_graphite.
14347         Schedule a pass_copy_prop before pass_graphite_transforms.
14348         * timevar.def (TV_GRAPHITE): Declared.
14349         * tree-pass.h (pass_graphite): Declared.
14350         * tree-ssa-loop.c (pass_graphite): New.
14351
14352 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14353
14354         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
14355         Remove calls to rename_nb_iterations and rename_sese_parameters.
14356         * graphite-clast-to-gimple.h (gloog): Update declaration.
14357         * graphite.c (graphite_transform_loops): Update call to gloog.
14358         * sese.c (rename_variables_in_expr): Removed.
14359         (rename_nb_iterations): Removed.
14360         (rename_sese_parameters): Removed.
14361         * sese.h (rename_nb_iterations): Removed.
14362         (rename_sese_parameters): Removed.
14363
14364 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14365
14366         * graphite-clast-to-gimple.c (gloog): Remove call to
14367         sese_adjust_liveout_phis.
14368         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
14369         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
14370         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
14371         rewrite_phi_out_of_ssa.
14372         * sese.c (get_vdef_before_sese): Removed.
14373         (sese_adjust_vphi): Removed.
14374         (sese_adjust_liveout_phis): Removed.
14375         * sese.h (sese_adjust_liveout_phis): Removed.
14376
14377 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14378
14379         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
14380         argument for the place after which to insert the out of SSA copy.
14381         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
14382         (rewrite_phi_out_of_ssa): Same.
14383         (rewrite_cross_bb_scalar_deps): Same.
14384         (insert_copyout): Removed.
14385         (insert_copyin): Removed.
14386         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
14387         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
14388         insert_copyin.
14389
14390 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14391
14392         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
14393         (rewrite_reductions_out_of_ssa): Same.
14394         (rewrite_commutative_reductions_out_of_ssa): Same.
14395         (build_poly_scop): Do not call these functions.
14396         * graphite-sese-to-poly.h (build_poly_scop): Declared.
14397         (rewrite_reductions_out_of_ssa): Declared.
14398         (rewrite_commutative_reductions_out_of_ssa): Declared.
14399         * graphite.c (graphite_transform_loops): Call on every scop
14400         rewrite_commutative_reductions_out_of_ssa before calling
14401         rewrite_reductions_out_of_ssa and build_scop_bbs.
14402
14403 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14404
14405         * graphite-dependences.c (dot_deps): Make system call to dotty run
14406         in background.
14407         (dot_deps_stmt): Same.
14408         * graphite-poly.c (dot_lst): Same.
14409
14410 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14411
14412         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
14413         phi_arg_in_outermost_loop.
14414         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
14415         (remove_invariant_phi): Same.
14416
14417 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
14418
14419         * target.def (output_addr_const_extra): New hook.
14420         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
14421         * doc/tm.texi: Regenerate.
14422         * targhooks.c (default_asm_output_addr_const_extra): New function.
14423         * targhooks.h (default_asm_output_addr_const_extra): Declare.
14424         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
14425         target hook.
14426
14427         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14428         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
14429         * config/i386/i386.h (output_addr_const_extra): Rename to...
14430         (i386_asm_output_addr_const_extra): ...this. Make static.
14431         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14432
14433 2010-08-11  Richard Henderson  <rth@redhat.com>
14434
14435         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
14436
14437 2010-08-11  Nick Clifton  <nickc@redhat.com>
14438
14439         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
14440         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
14441         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14442         stormy16-lib2-cmpsi.c.
14443
14444         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
14445         -O2.
14446
14447 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
14448
14449         * opts.h (struct cl_option_handler_func): Make handler take
14450         cl_decoded_option structure as parameter, not individual elements.
14451         (struct cl_option_handlers): Make callbacks take cl_decoded_option
14452         structure as parameter, not individual elements.
14453         (handle_option): Take cl_decoded_option structure as parameter,
14454         not individual elements.
14455         (handle_generated_option): Declare.
14456         * opts-common.c (handle_option): Take cl_decoded_option structure
14457         as parameter, not individual elements.  Update calls to callback
14458         and handler functions.
14459         (handle_generated_option): New.
14460         (read_cmdline_option): Update calls to callback functions and
14461         handle_option.
14462         * opts.c (common_handle_option, complain_wrong_lang,
14463         unknown_option_callback, post_handling_callback,
14464         lang_handle_option, target_handle_option): Take cl_decoded_option
14465         structure as parameter, not individual elements.
14466         (lang_handle_option, target_handle_option, common_handle_option):
14467         Assert option has at most one argument.
14468         (enable_warning_as_error): Call handle_generated_option instead of
14469         handle_option.  Do not pass -Werror argument as argument of
14470         generated option.
14471
14472 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14473
14474         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14475         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14476         (SUBWORD_BOOL_CAS): Likewise.
14477         (SUBWORD_SYNC_OP): Likewise.
14478         (SUBWORD_TEST_AND_SET): Likewise.
14479         (FETCH_AND_OP_WORD): Parenthesise INF_OP
14480         (SUBWORD_SYNC_OP): Likewise.
14481         (OP_AND_FETCH_WORD): Likewise.
14482
14483 2010-08-10  Xinliang David Li  <davidxl@google.com>
14484
14485         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
14486         compute max/min offset in address.
14487
14488 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
14489
14490         * ira-live.c: Include sbitmap.h.
14491         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
14492         Compress live ranges even more.
14493
14494 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
14495
14496         * coverage.c (ctr_labels): Delete.
14497
14498 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
14499
14500         PR bootstrap/45177
14501         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
14502         test here from arm_gen_load_multiple_1.
14503         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
14504         multiple_operation_profitable_p.
14505
14506 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
14507
14508         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
14509         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
14510
14511 2010-08-10  Richard Henderson  <rth@redhat.com>
14512
14513         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
14514         after saving registers.  Assert that SSE registers are only saved
14515         with a sufficiently aligned frame.
14516         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
14517         remove stack_realign_fp handling.
14518         (ix86_expand_prologue): Save int registers before stack_realign_fp,
14519         and do not mark the stack alignment as frame related.
14520         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
14521
14522         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
14523         saves when re-aligning the stack.
14524
14525 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
14526
14527         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
14528         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
14529         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
14530
14531 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
14532
14533         * dwarf2out.c (struct die_struct): Move die_tag to the end.
14534
14535 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
14536
14537         * config/arm/iterators.md: New file.
14538         * config/arm/arm.md: Include iterators.md.
14539         (QHSI): Move to new file.
14540         (LTUGEU, cnb, optab, ior_xor): Likewise.
14541         * config/arm/iwmmxt.md (VMMX): Move to new file.
14542         (VSHFT, MMX_char): Likewise.
14543         * config/arm/neon.md (VD): Move to new file.
14544         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
14545         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
14546         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
14547         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
14548         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
14549         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
14550         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
14551         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
14552         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
14553         (Is_d_reg, V_mode_nunits): Likewise.
14554         * config/arm/vec-common.md (VALL): Move to new file.
14555         (VALLW, VINT, VINTW): Likewise.
14556
14557 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
14558
14559         PR middle-end/45182
14560         * combine.c (make_compound_operation): Don't try to convert
14561         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
14562
14563 2010-08-10  Richard Guenther  <rguenther@suse.de>
14564
14565         * tree.h (get_object_alignment): Adjust prototype.
14566         * builtins.c (get_object_alignment): Return unsigned int,
14567         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
14568         and TARGET_MEM_REF properly.
14569         (get_pointer_alignment): Adjust.
14570         * emit-rtl.c (get_mem_align_offset): Adjust comment.
14571         (set_mem_attributes_minus_bitpos): Adjust.
14572         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
14573
14574 2010-08-10  Richard Guenther  <rguenther@suse.de>
14575
14576         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
14577         (copy_prop_visit_assignment): Simplify.
14578         (copy_prop_visit_stmt): Also visit assignments from
14579         constants.
14580         (copy_prop_visit_phi_node): Use operand_equal_p.
14581
14582 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
14583
14584         * ipa-split.c (find_split_points): Free stack.
14585
14586 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
14587
14588         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
14589         * tree.c (tree_node_kind): Delete corresponding entries.
14590
14591 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14592
14593         * alias.c (may_alias_p): Remove unused ret.
14594
14595 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
14596
14597         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
14598         alias_sets_conflict_p.
14599         (walk_mems_1): Moved from alias.c.
14600         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
14601         in alias.c.
14602         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
14603         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
14604         * alias.c (walk_mems_2): Moved to ddg.c.
14605         (walk_mems_1): Ditto.
14606         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
14607         to ddg.c.
14608         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
14609         disambiguation.
14610         *(may_alias_p): New function to check whether two memory expression
14611         may alias or not. Currently used in buidling inter-iteration memory
14612         dependence.
14613         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
14614         (insn_alias_sets_conflict_p): Removed
14615         *rtl.h (may_alias_p): New function prototype.
14616
14617 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
14618
14619         * tree.c (nreverse): Assert that we don't have a BLOCK.
14620
14621 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
14622
14623         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
14624         * config/arm/arm.c (arm_get_pcs_model): Likewise.
14625         * config/avr/avr.c (init_cumulative_args): Likewise.
14626         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14627         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14628         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
14629         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14630         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14631         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14632         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
14633         * dwarf2out.c (gen_subprogram_die): Likewise.
14634         * function.c (allocate_struct_function): Likewise.
14635         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
14636         (deserves_ellipsis): Delete.
14637
14638 2010-08-09  Richard Guenther  <rguenther@suse.de>
14639
14640         * tree-ssa-copy.c (cached_last_copy_of): Remove.
14641         (valueize_val): New function.
14642         (get_last_copy_of): Remove.
14643         (set_copy_of_val): Simplify.
14644         (dump_copy_of): Likewise.
14645         (copy_prop_visit_cond_stmt): Use valueize_val.
14646         (copy_prop_visit_phi_node): Properly handle unvisited names.
14647         Drop code managing copy-of chains.
14648         (init_copy_prop): Adjust.
14649         (fini_copy_prop): Likewise.
14650         (execute_copy_prop): Remove obsolete comment.
14651
14652 2010-08-09  Richard Guenther  <rguenther@suse.de>
14653
14654         PR middle-end/44632
14655         * function.c (gimplify_parameters): Do not clear addressable
14656         bit of the original parameter.
14657
14658 2010-08-09  Richard Guenther  <rguenther@suse.de>
14659
14660         PR middle-end/45212
14661         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
14662         alignment from MEM_REF offset only if we took it from the
14663         base object.
14664
14665 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
14666
14667         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
14668
14669 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14670
14671         * c-tree.h (build_arg_info): Declare.
14672         * c-decl.c (build_arg_info): Define.
14673         (get_parm_info): Call it.  Delete initialization code.
14674         * c-parser.c (c_parser_parms_declarator): Likewise.
14675         (c_parser_parms_list_declaractor): Likewise.
14676
14677 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14678
14679         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
14680         (struct c_arg_info): Change type of tags field.
14681         * c-decl.c (grokdeclarator): Update for changed type of tags field.
14682         (get_parm_info): Likewise.
14683         (store_parm_decls_newstyle): Likewise.
14684
14685 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
14686
14687         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
14688         (branch_island_list): Delete.
14689         (branch_islands): Declare.
14690         (add_compiler_branch_island): Adjust for branch_islands instead of
14691         branch_island_list.
14692         (macho_branch_islands): Likewise.
14693         (no_previous_def): Likewise.
14694         (get_prev_label): Likewise.
14695
14696 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14697
14698         PR boehm-gc/34544
14699         * gthr-posix.h (__gthread_start): Delete.
14700         (__gthread_active_init): Use pthread_default_stacksize_np instead of
14701         pthread_create to determine if hpux pthreads are active.
14702         * gthr-posix95.h (__gthread_start): Delete.
14703         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
14704
14705 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
14706
14707         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
14708         _WIN64 not expanded.
14709
14710 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
14711             H.J. Lu  <hongjiu.lu@intel.com>
14712
14713         PR target/45213
14714         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
14715         to output 32bit SFmode immediate as 8 byte sign extended value.
14716
14717 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14718
14719         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14720         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14721         (SUBWORD_BOOL_CAS): Likewise.
14722         (SUBWORD_SYNC_OP): Likewise.
14723         (SUBWORD_TEST_AND_SET): Likewise.
14724         (FETCH_AND_OP_WORD): Parenthesise INF_OP
14725         (SUBWORD_SYNC_OP): Likewise.
14726         (OP_AND_FETCH_WORD): Likewise.
14727
14728 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14729
14730         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
14731         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
14732         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
14733         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
14734         generic part.
14735         (cortex_a9_sched_adjust_cost): New function.
14736         (xscale_sched_adjust_cost): New function.
14737         * config/arm/arm-protos.h (struct tune_params): New field
14738         sched_adjust_cost.
14739         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
14740
14741 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
14742
14743         PR target/44942
14744         * config/sparc/sparc.c (function_arg_advance): Always take into account
14745         the padding, if any.
14746
14747 2010-08-06  Richard Guenther  <rguenther@suse.de>
14748
14749         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
14750         (dump_lattice_value): Dump it.
14751         (get_default_value): Adjust.
14752         (get_constant_value): Likewise.
14753         (set_value_varying): Likewise.
14754         (set_lattice_value): Make sure to not go up the lattice
14755         with bitwise constant values.
14756         (get_value_for_expr): Handle ADDR_EXPRs.
14757         (value_to_double_int): New function.
14758         (get_value_from_alignment): Likewise.
14759         (do_dbg_cnt): Adjust.
14760         (ccp_lattice_meet): Handle partially constant values.
14761         (bit_value_unop_1): New function.
14762         (bit_value_binop_1): Likewise.
14763         (bit_value_unop): Likewise.
14764         (bit_value_binop): Likewise.
14765         (evaluate_stmt): Track partially constant values if
14766         flag_tree_bit_ccp is set.
14767         (ccp_fold_stmt): Dump if we folded a predicate.
14768         (ccp_visit_stmt): Adjust.
14769         * common.opt (ftree-bit-ccp): New flag.
14770         * doc/invoke.texi (ftree-bit-ccp): Document.
14771         * opts.c (decode_options): Enable bit-CCP at -O1.
14772
14773 2010-08-06  Alan Modra  <amodra@gmail.com>
14774
14775         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
14776         and -mrelocatable-lib description.
14777
14778 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
14779
14780         From Martin Thuresson  <martint@google.com>
14781         * postreload.c (reload_cse_simplify_operands): Use
14782         SET_REGNO_RAW instead of SET_REGNO.
14783         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
14784         SET_REGNO.
14785         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
14786         instead of SET_REGNO.
14787         * rtl.h (SET_REGNO_RAW): New macro.
14788
14789 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
14790
14791         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
14792         computations.  Fix formatting issues.
14793         (num_sign_bit_copies1): Likewise.
14794         (canonicalize_condition): Likewise.
14795
14796 2010-08-05  Richard Henderson  <rth@redhat.com>
14797
14798         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
14799         (floor_log2): Use clz_hwi.
14800         (exact_log2): Use ctz_hwi.
14801         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
14802         * builtins.c (fold_builtin_bitop): Use them.
14803         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14804         * combine.c (get_pos_from_mask): Use ctz_hwi.
14805         * double-int.c (double_int_ctz): Likewise.
14806         * explow.c (force_reg): Likewise.
14807         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
14808
14809 2010-08-05  Richard Henderson  <rth@redhat.com>
14810
14811         PR target/45189
14812         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
14813         the alignment constant is properly sign-extended.
14814
14815 2010-08-05  Richard Guenther  <rguenther@suse.de>
14816
14817         * expr.c (store_expr): Use emit_block_move only if both
14818         source and target are MEMs.  Use store_bit_field if only
14819         the target is a MEM.
14820
14821 2010-08-05  Richard Henderson  <rth@redhat.com>
14822
14823         PR debug/45188
14824         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
14825         (INCOMING_RETURN_ADDR_RTX): Likewise.
14826         (dwarf2out_do_frame): Remove conditional compilation.
14827         (dwarf2out_frame_init): Likewise.
14828
14829 2010-08-05  Nicolas Setton  <setton@adacore.com>
14830
14831         * gcov.c (flag_display_progress): New static variable.
14832         (main): Display progress info on standard output if requested.
14833         (options): Add -d/--display-progress.
14834         (print_usage): Print them.
14835         (process_args): Handle them.
14836         * doc/gcov.texi: Document them.
14837
14838 2010-08-05  Martin Jambor  <mjambor@suse.cz>
14839
14840         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
14841         (ipcp_insert_stage): Redirect only edges not flagged with
14842         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
14843         discovered constants.
14844
14845 2010-08-05  Martin Jambor  <mjambor@suse.cz>
14846
14847         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
14848         (struct ipa_param_descriptor): New fields types and
14849         cannot_devirtualize.
14850         (ipa_param_cannot_devirtualize_p): New function.
14851         (ipa_param_types_vec_empty): Likewise.
14852         (ipa_make_edge_direct_to_target): Declare.
14853         * ipa-cp.c: Fixed first stage driver name in initial comment,
14854         described devirtualization there too.
14855         (ipcp_analyze_node): Call ipa_analyze_params_uses.
14856         (ipcp_print_all_lattices): Print devirtualization info.
14857         (ipa_set_param_cannot_devirtualize): New function.
14858         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
14859         lattice to BOTTOM.
14860         (ipcp_init_stage): Merged into...
14861         (ipcp_generate_summary): ...its caller.
14862         (ipcp_change_tops_to_bottom): Also process type lists.
14863         (ipcp_add_param_type): New function.
14864         (ipcp_copy_types): Likewise.
14865         (ipcp_propagate_types): Likewise.
14866         (ipcp_propagate_stage): Also propagate types.
14867         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
14868         Also return true if propagated types require it.
14869         (ipcp_update_callgraph): Dump redirection info.
14870         (ipcp_process_devirtualization_opportunities): New function.
14871         (ipcp_const_param_count): Include known type information.
14872         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
14873         on new node.  Fixed formatting.
14874         * ipa-prop.c (make_edge_direct_to_target): Renamed to
14875         ipa_make_edge_direct_to_target and changed all callers.  Made
14876         externally visible.
14877         (ipa_node_duplication_hook): Duplicate types vector.
14878         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
14879         redirect outgoing calls for which we can't get a decl from the
14880         statement.  Check that we can get a decl from the call statement.
14881         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14882         ipa_analyze_params_uses only when ipa-cp is disabled.
14883         * tree-inline.c (get_indirect_callee_fndecl): Removed.
14884         (expand_call_inline): Do not call get_indirect_callee_fndecl.
14885         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
14886         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
14887
14888 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
14889
14890         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
14891         temporary. Emit move from temporary to accum, so REG_EQUAL note will
14892         be attached to this insn in correct mode.
14893
14894 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
14895
14896         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
14897         using REGNO of base_reg directly.
14898
14899 2010-08-05  Jie Zhang  <jie@codesourcery.com>
14900
14901         PR tree-optimization/45144
14902         * tree-sra.c (type_consists_of_records_p): Return false
14903         if the record contains bit-field.
14904
14905 2010-08-04  Richard Henderson  <rth@redhat.com>
14906
14907         * config/i386/i386.c (struct ix86_frame): Remove padding and
14908         to_allocate members.
14909         (ix86_compute_frame_layout): Don't store them.
14910         (ix86_can_use_return_insn_p): Use a more direct and more obviously
14911         correct condition for the position of the stack pointer.
14912         (ix86_expand_prologue): Compute remaining stack allocation based
14913         on the ultimate stack pointer offset.
14914         (ix86_expand_epilogue): Use more obvious expressions testing for
14915         the stack pointer already pointing to the saved registers.
14916
14917         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
14918         duplication deconstructing the frame pointer.  Simplify
14919         deallocation of the local stack frame.
14920
14921         * reg-notes.def (CFA_EXPRESSION): New.
14922         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14923         (dwarf2out_frame_debug_cfa_expression): New.
14924         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
14925
14926         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
14927         * config/i386/i386.c (ix86_expand_prologue): Set it.
14928         (ix86_expand_epilogue): Clear it.
14929         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
14930         context, add REG_CFA_EXPRESSION notes.
14931
14932         * config/i386/i386.h (struct machine_frame_state): Rename from
14933         machine_cfa_state.  Add members tracking SP and FP regardless
14934         of the current CFA register.
14935         (ix86_cfa_state): Remove.
14936         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
14937         and sse_reg_save_offset members.
14938         (ix86_compute_frame_layout): Set them.
14939         (gen_push): Increment sp_offset too.
14940         (choose_baseaddr_len, choose_baseaddr): New.
14941         (ix86_emit_save_reg_using_mov): New.
14942         (ix86_emit_save_regs_using_mov): Use it.
14943         (ix86_emit_save_sse_regs_using_mov): Likewise.
14944         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
14945         compare vs the saved red_zone_offset.
14946         (pro_epilogue_adjust_stack): Adjust sp_offset.
14947         (ix86_adjust_stack_and_probe): Likewise.
14948         (ix86_expand_prologue): Set up, use, and validate the new
14949         frame_state_info members.  Use gen_frame_mem.
14950         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
14951         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
14952         new frame_state_info members.
14953         (ix86_emit_leave): Likewise.
14954         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
14955         out-of-range stack pointer offsets here.
14956         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14957         (ix86_expand_epilogue): Use and validate the new frame_state_info
14958         members.  Break up and simplify the logic selecting the
14959         restore_regs_via_mov code path.  Ensure that there will be no
14960         out-of-range stack pointer offsets.
14961
14962         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
14963
14964         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
14965         argument name to reflect the expected tree; fix indentation.
14966         (ix86_asm_output_function_label): Output the entire 32-bit
14967         ms_hook here as bytes ...
14968         (ix86_expand_prologue): ... not here as insns.  Attach the
14969         unwind info for the ms_hook to a blockage insn.
14970         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
14971         (ix86_ms_bitfield_layout_p): Fix indentation.
14972         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
14973
14974         * config/i386/i386.c (ix86_using_red_zone): New.
14975         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
14976         ix86_expand_prologue, ix86_force_to_memory): Use it.
14977
14978         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
14979         saving the int registers.
14980
14981         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
14982         and DWARF2_UNWIND_INFO conditional compilation.
14983
14984 2010-08-04  Richard Henderson  <rth@redhat.com>
14985
14986         PR debug/45171
14987         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
14988         an is_naming_typedef_decl.
14989
14990 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
14991
14992         PR rtl-optimization/45162
14993         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
14994         * dce.c (word_dce_process_block): Likewise.
14995
14996 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
14997
14998         PR target/44583
14999         * config/ia64/constraints.md (Z): New.
15000         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
15001         (xfreg_or_signed_fp01_operand): New.
15002         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
15003         with fr_reg_or_signed_fp01_operand and constraint G with Z.
15004         (subsf3): Ditto.
15005         (*maddsf4): Ditto.
15006         (*msubsf4): Ditto.
15007         (adddf3): Ditto.
15008         (adddf3_trunc): Ditto.
15009         (subdf3): Ditto.
15010         (*subdf3_trunc): Ditto.
15011         (*madddf4): Ditto.
15012         (*madddf4_trunc): Ditto.
15013         (*msubdf4): Ditto.
15014         (*msubdf4_trunc): Ditto.
15015         (addxf3): Replace xfreg_or_fp01_operand with
15016         xfreg_or_signed_fp01_operand and constraint G with Z.
15017         (*addxf3_truncsf): Ditto.
15018         (*addxf3_truncdf): Ditto.
15019         (subxf3): Ditto.
15020         (*subxf3_truncsf): Ditto.
15021         (*subxf3_truncdf): Ditto.
15022         (*maddxf4): Ditto.
15023         (*maddxf4_truncsf): Ditto.
15024         (*maddxf4_truncdf): Ditto.
15025         (*msubxf4): Ditto.
15026         (*msubxf4_truncsf): Ditto.
15027         (*msubxf4_truncdf): Ditto.
15028
15029 2010-08-04  Richard Guenther  <rguenther@suse.de>
15030
15031         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
15032         if either alias-set is zero.
15033
15034 2010-08-04  Richard Guenther  <rguenther@suse.de>
15035
15036         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
15037         * tree-ssa-ccp.c: ... here.
15038         * tree-ssa-copy.c: ... and here.
15039         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
15040         value_range_t): Move ...
15041         * tree-vrp.c: ... here.
15042         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
15043         (substitute_and_fold): Adjust prototype.
15044         * tree-ssa-propagate.c (replace_uses_in): Adjust.
15045         (replace_phi_args_in): Likewise.
15046         (substitute_and_fold): Take callback to query lattice instead
15047         of pointer to lattice.  Replace SSA name defs with lattice
15048         values first.
15049         * tree-ssa-ccp.c (ccp_finalize): Adjust.
15050         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
15051         (get_value): New function.
15052         (fini_copy_prop): Adjust.
15053         * tree-vrp.c (vrp_finalize): Adjust.
15054
15055 2010-08-04  Richard Guenther  <rguenther@suse.de>
15056
15057         PR middle-end/45176
15058         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
15059         points-to set for original MEM_REF.
15060
15061 2010-08-04  Richard Guenther  <rguenther@suse.de>
15062
15063         * tree-ssa-ccp.c (get_constant_value): New function.
15064         (get_rhs_assign_op_for_ccp): Remove.
15065         (valueize_op): New function.
15066         (ccp_fold): Use get_constant_value and valueize_op.
15067         (fold_const_aggregate_ref): Likewise.
15068         (ccp_fold_stmt): Likewise.
15069         (visit_assignment): Simplify.
15070
15071 2010-08-04  Richard Guenther  <rguenther@suse.de>
15072
15073         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
15074         * double-int.h (double_int_ctz): Declare.
15075         * double-int.c (double_int_ctz): New function.
15076
15077 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
15078
15079         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
15080         Define.
15081         picochip_expand_movmemhi : Expand movmem pattern.
15082         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
15083         Declare.
15084         * config/picochip/picochip.md (movmemhi) : New pattern.
15085
15086 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
15087
15088         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
15089
15090 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
15091
15092         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
15093         NEG as operand of a MULT by merging it with the other operand.
15094         * combine.c (make_compound_operation): Use trunc_int_for_mode when
15095         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
15096         MULT.
15097         * config/arm/constraints.md (M): Examine only 32 bits of a
15098         HOST_WIDE_INT.
15099         * config/arm/predicates.md (power_of_two_operand): Likewise.
15100
15101 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15102
15103         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
15104         non-NOTE insns.
15105
15106 2010-08-03  Jan Hubicka  <jh@suse.cz>
15107
15108         * ipa-split.c (struct split_point): Add split_part_set_retval.
15109         (find_retval): Forward declare.
15110         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
15111         (consider_split): Compute current->split_part_set_retval.
15112         (visit_bb): Do not look into return value.
15113         (split_function): Handle !split_part_set_retval
15114
15115 2010-08-03  Martin Jambor  <mjambor@suse.cz>
15116
15117         * tree-sra.c (completely_scalarize_record): New parameter REF, create
15118         its own access->expr intead of using build_ref_for_offset.
15119
15120 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
15121
15122         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
15123         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
15124         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
15125         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
15126         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
15127         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
15128         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
15129         DEFAULT_SWITCH_TAKES_ARG.
15130         * config/rx/rx.opt (-patch=): Remove option.
15131         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
15132         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
15133         * doc/invoke.texi (RX Options): Remove -patch=.
15134         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
15135         (option_map): Remove --profile-blocks, --quiet and --silent.
15136
15137 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
15138
15139         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
15140         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
15141         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
15142         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15143         Update calls to ix86_expand_compare and ix86_expand_branch.
15144         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
15145         ix86_expand_compare.
15146         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
15147         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15148         Make static.
15149         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
15150         and ix86_compare_op1.  Update calls to ix86_expand_compare.
15151         (ix86_expand_int_movcc): Ditto.
15152         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
15153         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
15154         (ix86_expand_setcc): Ditto.
15155         (ix86_expand_compare): Remove prototype.
15156         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
15157         ix86_compare_op0 and ix86_compare_op1.  Update calls
15158         to ix86_expand_branch to directly pass operands[1] and operands[2].
15159         (cbranchxf4): Ditto.
15160         (cbranch<MODEF:mode>4): Ditto.
15161         (cbranchcc4): Ditto.
15162         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
15163         Update calls to ix86_expand_setcc to directly pass operands[2] and
15164         operands[3].
15165         (cstorexf4): Ditto.
15166         (cstore<MODEF:mode>4): Ditto.
15167         (cstorecc4): Ditto.
15168
15169 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
15170
15171         PR target/45063
15172         * caller-save.c (save_call_clobbered_regs): Remove regs from
15173         hard_regs_saved when they are set.
15174
15175 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
15176
15177         PR target/41089
15178         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15179         as volatile.
15180
15181 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
15182
15183         * common.opt (ftree-loop-distribute-patterns): New.
15184         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
15185         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
15186         at -O3.
15187         * tree-data-ref.c (stores_zero_from_loop): New.
15188         * tree-data-ref.h (stores_zero_from_loop): Declared.
15189         * tree-loop-distribution.c (tree_loop_distribution): Call
15190         stores_zero_from_loop.
15191         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
15192
15193 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
15194
15195         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
15196         into account.
15197
15198         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
15199         * config/arm/arm.c (thumb1_code): New variable.
15200         (arm_override_options): Set it.
15201         (thumb1_final_prescan_insn): Keep track of condition code status.
15202         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
15203         jumps that depend on them.
15204         * config/arm/arm.h (thumb1_code): Declare variable.
15205         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
15206         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
15207         thumb1_cc_mode.
15208         (CC_STATUS_INIT): New macro.
15209         * config/arm/constraints.md (Pd): New constraint.
15210         * config/arm/predicates.md (noov_comparison_operator): New predicate.
15211         * config/arm/arm.md (is_thumb1): New define_attr.
15212         (conds): Set default to "clob" when generating Thumb1 code.
15213         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
15214         code are set.  Use two-operand assembly syntax.
15215         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
15216         pattern.
15217         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
15218         codes are set.  Use two-operand assembly syntax.
15219         (zero_extendhisi splitter): Remove constraints.
15220         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
15221         thumb1_movsf_insn): Set conds attribute as appropriate.
15222         (cbranchsi4_insn): Use condition code status from struct
15223         machine_function to determine whether the comparison can be eliminated.
15224         Discourage the alternative using high registers.
15225         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
15226         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
15227         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
15228         subsi3_cbranch): Delete.
15229         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
15230         one subtract and one cbranch insn.
15231
15232         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
15233         thumb2_movdf_soft_insn): Delete patterns.
15234         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
15235         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
15236         (pool_range, neg_pool_range): Use them to define defaults.
15237         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
15238         and allow for TARGET_32BIT.
15239
15240         PR target/40457
15241         * config/arm/arm.h (arm_regs_in_sequence): Declare.
15242         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
15243         load_multiple_sequence, store_multiple_sequence): Delete
15244         declarations.
15245         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
15246         declarations.
15247         * config/arm/ldmstm.md: New file.
15248         * config/arm/arm.c (arm_regs_in_sequence): New array.
15249         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
15250         CHECK_REGS.  All callers changed.
15251         If SAVED_ORDER is nonnull, copy the computed order into it.
15252         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
15253         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
15254         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
15255         If SAVED_ORDER is nonnull, copy the computed order into it.
15256         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
15257         like REGS.  Handle Thumb mode.
15258         (arm_gen_load_multiple_1): New function, broken out of
15259         arm_gen_load_multiple.
15260         (arm_gen_store_multiple_1): New function, broken out of
15261         arm_gen_store_multiple.
15262         (arm_gen_multiple_op): New function, with code from
15263         arm_gen_load_multiple and arm_gen_store_multiple moved here.
15264         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
15265         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
15266         changed.
15267         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
15268         * config/arm/predicates.md (commutative_binary_operator): New.
15269         (load_multiple_operation, store_multiple_operation): Handle more
15270         variants of these patterns with different starting offsets.  Handle
15271         Thumb-1.
15272         * config/arm/arm.md: Include "ldmstm.md".
15273         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
15274         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
15275         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
15276         peepholes): Delete.
15277         * config/arm/ldmstm.md: New file.
15278         * config/arm/arm-ldmstm.ml: New file.
15279
15280         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
15281         if statement which adds extra costs to frame-related expressions.
15282
15283 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15284
15285         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
15286
15287 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
15288
15289         PR target/45142
15290         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
15291         alternative 2.
15292         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
15293         split V4SI operands.
15294
15295 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
15296
15297         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15298         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
15299         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
15300         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15301
15302 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
15303
15304         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
15305         LOCAL_INCLUDE_DIR.
15306
15307 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
15308
15309         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
15310         used in the call to optab_for_tree_code.  Fix the second
15311         is_widening_mult_p call.  Check that both unwidened operands
15312         have the same sign.
15313
15314 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
15315
15316         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
15317
15318 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
15319
15320         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15321
15322 2010-07-30  DJ Delorie  <dj@redhat.com>
15323
15324         * config/rx/predicates.md (rx_constshift_operand): New.
15325         * config/rx/rx.md (zs_cond): New.
15326         (cbranchsi4): Remove mode.
15327         (*cbranchsi4_<code>): Likewise.
15328         (*tstbranchsi4_<code>): New.
15329         (*tstbranchsi4r_<code>): New.
15330         (*tstbranchsi4m_eq): New.
15331         (*tstbranchsi4m_ne): New.
15332         (cbranchsf4): Remove mode.
15333         (*cbranchsf4_<code>): Likewise.
15334
15335 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
15336
15337         * rtlanal.c (simplify_subreg_regno): Don't treat
15338         HARD_FRAME_POINTER_REGNUM specially.
15339
15340 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
15341
15342         * common.opt (-G): Don't define option here.
15343         * config/g.opt: New.
15344         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
15345         rs6000/powerpc and score targets.
15346         * opts.c (common_handle_option): Don't handle -G here.
15347         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
15348         * config/frv/frv.c (frv_handle_option): Handle -G.
15349         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
15350         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
15351         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
15352         * config/mips/mips.c (mips_handle_option): Handle -G.
15353         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
15354         * config/score/score.c (score_handle_option): Handle -G.
15355
15356 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
15357
15358         * config/mmix/mmix.c: Include basic-block.h.
15359
15360 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
15361
15362         PR debug/45055
15363         PR rtl-optimization/45137
15364         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
15365         prototypes.
15366         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
15367         New functions.
15368         * combine.c (next_nonnote_nondebug_insn): Removed.
15369         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
15370         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
15371         * sched-deps.c (sched_analyze_insn): Likewise.
15372         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
15373         * rtlanal.c (canonicalize_condition): Likewise.
15374         * postreload.c (reload_combine_recognize_pattern): Likewise.
15375         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
15376
15377 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
15378
15379         * config/i386/i386.md (int_cond): Remove code iterator.
15380         (fp_cond): Ditto.
15381         (cbranch<mode>4): Use ordered_comparison_operator predicate
15382         for operator0.
15383         (cstore<mode>4): Ditto for operator1.
15384         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
15385         (add<mode>cc): ditto.
15386
15387 2010-07-30  Richard Guenther  <rguenther@suse.de>
15388
15389         PR middle-end/45141
15390         * expr.c (expand_expr_real_1): Check for not handled base address.
15391
15392 2010-07-30  Richard Guenther  <rguenther@suse.de>
15393
15394         * ipa-prop.c (ipa_modify_formal_parameters): Use
15395         build_distinct_type_copy.
15396
15397 2010-07-30  Anthony Green  <green@moxielogic.com>
15398
15399         * config/moxie/rtems.h: New file.
15400         * config.gcc: Add moxie-rtems support.
15401
15402 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
15403
15404         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
15405         df flags as in run_fast_df_dce.
15406
15407 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
15408
15409         Revert:
15410         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
15411
15412         * rtl.def (NOTE): Swap operands 4 and 5.
15413         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
15414         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
15415         Adjust accordingly.
15416         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
15417
15418 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
15419
15420         PR debug/45110
15421         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
15422         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
15423         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
15424         formal parameters.
15425         (gen_decl_die): Change return type to dw_die_ref, return what
15426         gen_formal_parameter_die returned.
15427
15428 2010-07-29  Martin Jambor  <mjambor@suse.cz>
15429
15430         * dbgcnt.def (eipa_sra): New counter.
15431         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
15432
15433 2010-07-29  Xinliang David Li  <davidxl@google.com>
15434
15435         PR bootstrap/45119
15436         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
15437         in revision 162652.
15438
15439 2010-07-29  Richard Guenther  <rguenther@suse.de>
15440
15441         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
15442         (TV_TREE_STORE_CCP): Likewise.
15443         (TV_TREE_REDPHI): Likewise.
15444
15445 2010-07-29  Richard Guenther  <rguenther@suse.de>
15446
15447         * double-int.h (double_int_and_not): New function.
15448         * combine.c (try_combine): Use it.
15449         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
15450
15451 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
15452
15453         PR rtl-optimization/42575
15454         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
15455         Argument AU removed.  All callers changed.  Ignore artificial refs.
15456         Use return value of df_word_lr_simulate_defs to decide whether an insn
15457         is necessary.
15458         (fast_dce): Rename arg to WORD_LEVEL.
15459         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
15460         static.
15461         (pass_fast_rtl_byte_dce): Delete.
15462         * dce.h (run_word_dce): Declare.
15463         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
15464         All callers changed.  Simplify code to only deal with two-word regs.
15465         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
15466         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
15467         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
15468         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
15469         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
15470         (df_word_lr_mark_ref): Declare.
15471         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
15472         df_word_lr_simulate_uses): Declare or rename from byte variants.
15473         (df_byte_lr_simulate_artificial_refs_at_top,
15474         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15475         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
15476         declarations.
15477         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
15478         (enum df_mm): Delete.
15479         * df-byte-scan.c: Delete file.
15480         * df-problems.c (df_word_lr_problem_data): Renamed from
15481         df_byte_lr_problem_data, all members deleted except for
15482         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
15483         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
15484         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15485         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
15486         df_byte_lr_confluence_0): Delete functions.
15487         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
15488         callers changed.
15489         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
15490         Don't initialize members that were deleted, don't try to discover data
15491         about registers.  Ignore hard regs.
15492         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
15493         (df_word_lr_mark_ref): New function.
15494         (df_word_lr_bb_local_compute): Renamed from
15495         df_byte_bb_lr_local_compute; all callers changed.  Use
15496         df_word_lr_mark_ref.  Assert that artificial refs don't include
15497         pseudos.  Ignore hard registers.
15498         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
15499         Assert that exit block uses don't contain pseudos.
15500         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
15501         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
15502         callers changed.  Ignore hard regs.
15503         (df_word_lr_transfer_function): Renamed from
15504         df_byte_lr_transfer_function; all callers changed.
15505         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
15506         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
15507         changed.
15508         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
15509         callers changed.
15510         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
15511         confluence operator 0 set to NULL.
15512         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
15513         callers changed.
15514         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
15515         Return bool, true if bitmap changed or insn otherwise necessary.
15516         All callers changed.  Simplify using df_word_lr_mark_ref.
15517         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
15518         all callers changed.  Simplify using df_word_lr_mark_ref.
15519         * lower-subreg.c: Include "dce.h"
15520         (decompose_multiword_subregs): Call run_word_dce if df available.
15521         * Makefile.in (lower-subreg.o): Adjust dependencies.
15522         (df-byte-scan.o): Delete.
15523         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
15524
15525 2010-07-29  Richard Guenther  <rguenther@suse.de>
15526
15527         * tree.c (build_vector): Assert that the vector constant
15528         has enough elements.
15529         (build_vector_from_ctor): Pad with trailing zeros.
15530
15531 2010-07-29  Richard Guenther  <rguenther@suse.de>
15532
15533         PR tree-optimization/45120
15534         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15535         Handle offset in DEREFs properly.
15536         (get_constraint_for_1): Handle MEM_REF offset properly.
15537
15538 2010-07-29  Richard Guenther  <rguenther@suse.de>
15539
15540         PR middle-end/45034
15541         * convert.c (convert_to_integer): Always use an unsigned
15542         type for narrowed negate and bitwise not.
15543
15544 2010-07-29  Ira Rosen  <irar@il.ibm.com>
15545
15546         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
15547         to outer loop when creating reduction epilogue for double reduction,
15548         and switch back to the inner loop when updating the phi nodes.
15549         Update uses of outer loop exit phi nodes in double reduction (instead
15550         of uses of reduction).
15551
15552 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
15553
15554         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
15555         popcount on power7 and parity on power6 systems.
15556         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
15557         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
15558         instructions.
15559
15560         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
15561         (UNSPEC_PARITY): Ditto.
15562         (SFDF): New iterator for SF/DF.
15563         (rreg2): New mode attribute for floating register constraint.
15564         (TARGET_FLOAT): New mode attribute for whether single/double float
15565         is supported.
15566         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
15567         pattern.
15568         (parity<mode>2_cmpb): New insn for parity on power6 and newer
15569         machines.
15570         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
15571         pattern.  Add support for fcpsgn instruction added in power6.
15572         (copysignsf3): Delete.
15573         (copysigndf3): Delete.
15574         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
15575         instead of if_then_else in RTL to avoid problems with -0.
15576
15577         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
15578         of if_then_else to mirror scalar code.
15579         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
15580         rs6000.md.
15581
15582         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
15583         instead of if_then_else.
15584
15585 2010-07-28  Xinliang David Li  <davidxl@google.com>
15586
15587         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
15588         (dump_cand): Dump var_before/after.
15589         (htab_inv_expr_eq): New function.
15590         (htab_inv_expr_hash): New function.
15591         (tree_ssa_iv_optimize_init): Support pseudo invariants.
15592         (add_candidate_1): consider base type precision.
15593         (set_use_iv_cost): New parameter.
15594         (adjust_setup_cost): Use profile information.
15595         (get_address_cost): Do not hard code width in computing address
15596         offset limits.
15597         (compare_aff_trees): New function.
15598         (get_loop_invariant_expr_id): New function.
15599         (get_computation_cost_at): New parameter and use profile information.
15600         (get_computation_cost): New parameter.
15601         (determine_use_iv_cost_generic): Pass new parameter.
15602         (determine_use_iv_cost_address): Ditto.
15603         (determine_use_iv_cost_condition): Ditto.
15604         (autoinc_possible_for_pair): Ditto.
15605         (determine_use_iv_costs): More dumps.
15606         (iv_ca_get_num_inv_exprs): New function.
15607         (iv_ca_recount_cost): Consider loop invariants in register pressure
15608         cost.
15609         (iv_ca_add_use): New parameter.
15610         (iv_ca_dump): Better dumping.
15611         (iv_ca_extend): New parameter.
15612         (try_add_cand_for): Attempt to get better partial solution.
15613         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
15614         (create_new-ivs): More dumps.
15615         (rewrite_use_compare): Ditto.
15616         (free_loop_data): More cleanup.
15617         (treee_ssa_iv_optimize_finalize): Ditto.
15618
15619 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
15620
15621         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
15622         * config/i386/i386.c (ix86_profile_before_prologue): New.
15623         (override_options): Add special handling for -mfentry.
15624         (ix86_function_regparm): Likewise.
15625         (ix86_function_sseregparm): Likewise.
15626         (ix86_frame_pointer_required): Likewise.
15627         (ix86_expand_prologue): Check for ms_hook_prologue.
15628         (x86_function_profiler): Adjust mcount output.
15629         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
15630         * config/i386/i386.opt (mfentry): New.
15631         * doc/invoke.texi (mfentry): Add documentation.
15632         * doc/tm.texi: Regenerated..
15633         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
15634         * final.c (final_start_function): Replace macro
15635         PROFILE_BEFORE_PROLOGUE by target hook.
15636         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15637         * target.def (profile_before_prologue): New hook.
15638         * targhooks.c (default_profile_before_prologue): New.
15639         * targhooks.h (default_profile_before_prologue): New.
15640
15641 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
15642
15643         PR debug/45105
15644         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
15645
15646         PR debug/45103
15647         * dwarf2out.c (dwarf2out_var_location): Always consider
15648         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
15649
15650 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
15651
15652         PR rtl-optimization/45107
15653         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
15654
15655 2010-07-28  Richard Guenther  <rguenther@suse.de>
15656
15657         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
15658         (set_lattice_value): Do not query an old default value.
15659         (get_value_for_expr): New function.  Properly canonicalize
15660         float values.
15661         (ccp_visit_phi_node): Use it.
15662
15663 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
15664
15665         * config/arm/arm.c (arm_pcs_default): Remove static.
15666         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
15667         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
15668         (arm_pcs_default): Declare.
15669
15670 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
15671
15672         * config/rs6000/rs6000.c (rs6000_override_options):
15673         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
15674         ... to darwin_rs6000_override_options.
15675         (rs6000_return_in_memory): Update preceding comment for darwin
15676         64 bit ABI.  Use TARGET_MACHO inline.
15677         (rs6000_darwin64_struct_check_p): New.
15678         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
15679         (function_arg): Likewise.
15680         (rs6000_arg_partial_bytes): Likewise.
15681         (rs6000_function_value): Likewise.
15682
15683 2010-07-28  Andi Kleen  <ak@linux.intel.com>
15684
15685         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
15686
15687 2010-07-28  Richard Guenther  <rguenther@suse.de>
15688
15689         PR middle-end/44903
15690         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
15691         targets try harder to not generate unaligned accesses.
15692
15693 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
15694
15695         PR rtl-optimization/45101
15696         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
15697         for gcse-las.
15698
15699 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
15700
15701         PR tree-optimization/44885
15702         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
15703         with non-aliased component.
15704
15705 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
15706
15707         * config/darwin-driver.c (SWITCH_TAKES_ARG,
15708         WORD_SWITCH_TAKES_ARG): Remove.
15709         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
15710         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
15711         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
15712         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
15713         definitions from gcc.c.
15714         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
15715         defaults.h.
15716         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
15717         Move to defaults.h.
15718         * opts-common.c: Include tm.h.
15719         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
15720         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
15721         Handle more than one argument.  Set canonical_option_num_elements.
15722         (decode_cmdline_options_to_array): Set
15723         canonical_option_num_elements and trailing elements of
15724         canonical_option.
15725         * opts.h (struct cl_decoded_option): Allow four elements in
15726         canonical_option.  Add field canonical_option_num_elements.
15727         * Makefile.in (opts-common.o): Update dependencies.
15728
15729 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
15730
15731         PR middle-end/44790
15732         PR middle-end/44993
15733         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
15734         sure the base has address_mode before adding the offset.
15735
15736 2010-07-27  Xinliang David Li  <davidxl@google.com>
15737
15738         * tree-flow.h (create_mem_ref): Add one new parameter.
15739         * tree-ssa-address.c (create_mem_ref): New parameter.
15740         (addr_to_parts): Ditto.
15741         (move_variant_to_index): New function.
15742         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
15743
15744 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
15745
15746         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
15747         4 and 5.
15748         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
15749         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
15750         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
15751         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
15752         CODE_LABELs and NOTEs.
15753         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
15754         * combine.c (try_combine): Likewise.
15755         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15756         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
15757
15758 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
15759
15760         * coretypes.h (struct cl_option_handlers): Declare.
15761         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
15762         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
15763         * langhooks-def.h (lhd_handle_option): Declare.
15764         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
15765         * langhooks.c (lhd_handle_option): New.
15766         * langhooks.h (struct lang_hooks): Update prototype and return
15767         value type of handle_option hook.
15768         * optc-gen.awk: Generate target_flags_explicit definition for the
15769         driver.
15770         * opts-common.c: Include diagnostic.h.
15771         (handle_option): Move from opts.c.  Update prototype and return
15772         value type.  Use handlers structure.
15773         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
15774         handlers structure.
15775         (set_option): Move from opts.c.
15776         * opts.c (common_handle_option): Update prototype and return value
15777         type.  Update calls to handle_option and enable_warning_as_error.
15778         (unknown_option_callback, post_handling_callback,
15779         lang_handle_option, target_handle_option): New.
15780         (handle_option, read_cmdline_option): Move to opts-common.c.
15781         (read_cmdline_options): Update prototype.  Update call to
15782         read_cmdline_option.
15783         (decode_options): Initialize and use handlers structure.
15784         (set_option): Move to opts-common.c.
15785         (enable_warning_as_error): Update prototype.  Update call to
15786         handle_option.
15787         * opts.h (struct cl_option_handler_func, struct
15788         cl_option_handlers): New.
15789         (handle_option, enable_warning_as_error): Update prototypes.
15790         (read_cmdline_option): Declare.
15791         * Makefile.in (opts-common.o): Update dependencies.
15792
15793 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15794
15795         * config/arm/arm.c (params.h): Include.
15796         (arm_override_options): Tune gcse-unrestricted-cost.
15797         * config/arm/t-arm (arm.o): Define dependencies.
15798
15799 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15800
15801         PR target/42495
15802         PR middle-end/42574
15803         * basic-block.h (get_dominated_to_depth): Declare.
15804         * dominance.c (get_dominated_to_depth): New function, use
15805         get_all_dominated_blocks as a base.
15806         (get_all_dominated_blocks): Use get_dominated_to_depth.
15807
15808         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
15809         (hoist_exprs): Remove.
15810         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
15811         (compute_code_hoist_vbeinout): Add debug print outs.
15812         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
15813
15814         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
15815         quadratic behavior.
15816         * params.h (MAX_HOIST_DEPTH): New macro.
15817         * doc/invoke.texi (max-hoist-depth): Document.
15818
15819 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15820
15821         PR rtl-optimization/40956
15822         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
15823         constants.
15824
15825 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15826
15827         PR target/42495
15828         PR middle-end/42574
15829         * config/arm/arm.c (legitimize_pic_address): Use
15830         gen_calculate_pic_address pattern to emit calculation of PIC address.
15831         (will_be_in_index_register): New function.
15832         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
15833         (thumb1_legitimate_address_p): Use it provided !strict_p.
15834         * config/arm/arm.md (calculate_pic_address): New expand and split.
15835
15836 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15837
15838         PR target/42495
15839         PR middle-end/42574
15840         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
15841         * config/arm/arm.md (define_split "J", define_split "K"): Make
15842         IRA/reload friendly.
15843
15844 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15845
15846         * gcse.c (insert_insn_end_basic_block): Update signature, remove
15847         unused checks.
15848         (pre_edge_insert, hoist_code): Update.
15849
15850 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15851
15852         PR target/42495
15853         PR middle-end/42574
15854         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
15855
15856 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15857
15858         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
15859
15860 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15861
15862         PR rtl-optimization/40956
15863         PR target/42495
15864         PR middle-end/42574
15865         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
15866         for hoisting.
15867         (hoist_code): Count occurences in current block too.
15868
15869 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15870
15871         * gcse.c (struct expr:max_distance): New field.
15872         (doing_code_hoisting_p): New static variable.
15873         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
15874         simple expressions, don't change behavior for PRE.  Set max_distance.
15875         (insert_expr_in_table): Set new max_distance field.
15876         (hash_scan_set): Update.
15877         (hoist_expr_reaches_here_p): Stop search after max_distance
15878         instructions.
15879         (find_occr_in_bb): New static function.  Use it in ...
15880         (hoist_code): Calculate sizes of basic block before any changes are
15881         done.  Pass max_distance to hoist_expr_reaches_here_p.
15882         (one_code_hoisting_pass): Set doing_code_hoisting_p.
15883
15884         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
15885         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
15886         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
15887         macros.
15888         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
15889         Document.
15890
15891 2010-07-27  Jeff Law  <law@redhat.com>
15892             Maxim Kuvyrkov  <maxim@codesourcery.com>
15893
15894         * gcse.c (compute_transpout, transpout): Remove, move logic
15895         to prune_expressions.
15896         (compute_pre_data): Move pruning of trapping expressions ...
15897         (prune_expressions): ... here.  New static function.
15898         (compute_code_hoist_data): Use it.
15899         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
15900
15901 2010-07-27  Xinliang David Li  <davidxl@google.com>
15902
15903         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
15904         (rewrite_use_address): Adjust iv update position when needed.
15905
15906 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15907
15908         * dbgcnt.def (hoist_insn): New debug counter.
15909         * gcse.c (hoist_code): Use it.
15910
15911 2010-07-27  Xinliang David Li  <davidxl@google.com>
15912
15913         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
15914         (niter_for_single_dom_exit): Passes additional parameter.
15915         (iv_period): Fix comments.
15916         (may_eliminate_iv): Handles multiple exit loops properly.
15917         (free_tree_niter_desc): New function.
15918         (free_loop_data): Frees up loop iteration descriptors.
15919
15920 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
15921
15922         PR target/44542
15923         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
15924         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
15925         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
15926         (expand_one_var): Don't consider DECL_ALIGN for variables for
15927         which expand_one_stack_var_at has been already called.
15928
15929         PR testsuite/44701
15930         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
15931         constraints on IA-64.
15932
15933 2010-07-27  Jie Zhang  <jie@codesourcery.com>
15934
15935         PR target/44290
15936         Revert:
15937         2010-07-23  Jie Zhang  <jie@codesourcery.com>
15938
15939         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15940         false if ! tree_versionable_function_p.
15941
15942 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
15943
15944         * dwarf2out.c (add_data_member_location_attribute): Use
15945         add_AT_unsigned instead of add_AT_int if offset is non-negative.
15946
15947 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
15948
15949         * postreload.c (try_replace_in_use): New static function.
15950         (reload_combine_recognize_const_pattern): Use it here.  Allow
15951         substituting into a final add insn, and substituting into a memory
15952         reference in an insn that sets the reg.
15953
15954 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
15955
15956         * common.opt (o): Add MissingArgError.
15957         * doc/options.texi (MissingArgError): Document.
15958         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
15959         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
15960         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
15961         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
15962         * langhooks.h (struct lang_hooks): Remove missing_argument.
15963         * optc-gen.awk: Handle MissingArgError and output new structure
15964         field initializers.
15965         * opts.c (read_cmdline_option): Use missing_argument_error field
15966         instead of missing_argument langhook.
15967         * opts.h (struct cl_option): Add missing_argument_error field.
15968         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
15969
15970 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
15971
15972         PR target/29090
15973         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
15974         Darwin64 ABI, for zero-sized objects.
15975
15976 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
15977
15978         PR target/35491
15979         PR target/29090
15980
15981         Merge from Apple local 4.2.1.
15982         2005-05-11  Stan Shebs  <shebs@apple.com>
15983         Fix 64-bit varargs for Darwin (Radar 4028089).
15984         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
15985         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
15986         Add argument, add case for 8-byte register half-filled with a float.
15987         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
15988         single-precision floats specially.
15989
15990 2010-07-27  Ira Rosen  <irar@il.ibm.com>
15991
15992         PR tree-optimization/44152
15993         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
15994         complex numbers for further check.
15995         (vect_supported_load_permutation_p): Check nodes with
15996         complex numbers.
15997
15998 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
15999
16000         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
16001         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
16002         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
16003         (LANG_HOOKS_INITIALIZER): Add new hooks.
16004         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
16005         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
16006         and complain_wrong_lang_p.  Update init_options prototype.
16007         * c-objc-common.c (c_initialize_diagnostics): First call
16008         c_common_initialize_diagnostics.
16009         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
16010         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
16011         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
16012         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
16013         (hook_uint_void_0): New.
16014         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
16015         (hook_uint_void_0): New.
16016         * opts-common.c (decode_cmdline_option,
16017         decode_cmdline_options_to_array): Also fill in canonical_option field.
16018         * opts.c (complain_wrong_lang): Use langhook to determine whether
16019         to complain instead of special-casing LTO.
16020         (decode_options): Separate lang_mask determination with
16021         option_lang_mask hook from call of init_options hook.
16022         * opts.h (struct cl_decoded_option): Add canonical_option.
16023
16024 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
16025
16026         PR tree-optimization/45083
16027         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
16028
16029 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16030
16031         * postreload.c (reload_combine_recognize_const_pattern): Move test
16032         for limiting the insn movement to the right scope.
16033
16034         PR rtl-optimization/45051
16035         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
16036         than reg_mentioned_p.
16037
16038 2010-07-26  Richard Henderson  <rth@redhat.com>
16039
16040         PR target/44132
16041         * tree-emutls.c: New file.
16042         * Makefile.in (OBJS-common): Add it.
16043         * tree-pass.h (pass_ipa_lower_emutls): Declare.
16044         * passes.c (init_optimization_passes): Add it.
16045
16046         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
16047         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
16048         * expr.c (emutls_var_address): Delete.
16049         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
16050         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
16051         (emutls_finish): Delete.
16052         * toplev.c (compile_file): Don't call it.
16053         * tree.h (emutls_decl): Delete.
16054         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
16055         (emutls_finish, emutls_finalize_control_var): Delete.
16056         (emutls_object_type): Move to tree-emutls.c.
16057         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
16058         default_emutls_var_fields, get_emutls_object_type,
16059         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
16060         default_emutls_var_init): Likewise.
16061         (get_variable_section): Don't special case emutls.
16062         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
16063         default_elf_select_section, default_unique_section,
16064         default_encode_section_info): Likewise.
16065         * varpool.c (decide_is_variable_needed): Likewise.
16066         * gimple-iterator.c (update_call_edge_frequencies): New
16067         (gsi_insert_on_edge_immediate): Use it.
16068         (gsi_insert_seq_on_edge_immediate): Likewise.
16069         (gsi_commit_one_edge_insert): Likewise.
16070
16071         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
16072         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
16073         (x86_64_elf_unique_section): Likewise.
16074
16075 2010-07-26  Jan Hubicka  <jh@suse.cz>
16076
16077         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
16078         GTY((skip)).
16079
16080 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
16081
16082         * target.def (output_source_filename): New hook.
16083         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
16084         * doc/tm.texi: Regenerate.
16085         * toplev.c (output_file_directive) Remove function.
16086         * toplev.h (output_file_directive) Remove.
16087         * output.h (default_asm_output_source_filename,
16088         output_file_directive): Declare.
16089         * varasm.h (default_asm_output_source_filename,
16090         output_file_directive): New functions.
16091
16092         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16093         * config/mips/mips-protos.h (mips_output_filename): Remove.
16094         * config/mips/mips.c (mips_output_filename): Make Static.
16095         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16096
16097 2010-07-26  Richard Guenther  <rguenther@suse.de>
16098
16099         PR tree-optimization/43784
16100         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
16101         if the destination is used by the call.
16102
16103 2010-07-26  Richard Guenther  <rguenther@suse.de>
16104
16105         PR middle-end/45073
16106         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
16107         SSA updating on being in SSA form.
16108
16109 2010-07-26  Richard Guenther  <rguenther@suse.de>
16110
16111         PR middle-end/45056
16112         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
16113
16114 2010-07-26  Richard Guenther  <rguenther@suse.de>
16115
16116         PR tree-optimization/45071
16117         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
16118         adjust op->opcode.
16119
16120 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
16121
16122         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
16123         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
16124         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
16125         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
16126         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
16127         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
16128         save_r31, return_r31, save_interrupt, return_interrupt,
16129         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
16130         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
16131         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
16132         new ABI requirements.
16133         (save_r6_r9, L_callt_save_r6_r9): Remove.
16134         * config/v850/predicates.md (even_reg_operand, disp23_operand,
16135         const_float_1_operand const_float_0_operand): New Predicates.
16136         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
16137         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
16138         * config/v850/t-v850: Update multilibs for new target variants.
16139         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
16140         * config/v850/t-v850e: Likewise.
16141         * config/v850/v850.c (v850_issue_rate): New.
16142         (v850_strict_argument_naming): New.
16143         (function_arg): Modify to generate a different ABI.
16144         (print_operand): Update case 'z' to support float modes.
16145         (output_move_single): Modify to generate appropriate and better
16146         assembly.
16147         (v850_float_z_comparison_operator, v850_select_cc_mode,
16148         v850_float_nz_comparison_operator,  v850_gen_float_compare,
16149         v850_gen_compare): New functions to support comparison of float values.
16150         (ep_memory_offset): Add support for V850E2 targets.
16151         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
16152         (INTERRUPT_REGPARM_NUM): Remove.
16153         (compute_register_save_size): Add extra case to save/restore long call.
16154         (use_prolog_function): New function to support prologue.
16155         (expand_prologue): Add support for V850E2 targets and modified
16156         as per the current ABI requirements.
16157         (expand_epilogue): Likewise.
16158         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
16159         (construct_save_jarl): Likewise.
16160         (construct_dispose_instruction): Update as per the current ABI
16161         requirements.
16162         (construct_prepare_instruction): Likewise.
16163         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
16164         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
16165         (CPP_SPEC): Updated to support v850e2 targets.
16166         (STRICT_ALIGNMENT): Modified.
16167         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
16168         (FIXED_REGISTERS): Likewise.
16169         (CALL_USED_REGISTERS): Likewise.
16170         (CONDITIONAL_REGISTER_USAGE): Updated.
16171         (HARD_REGNO_MODE_OK): Updated.
16172         (reg_class): Updated to add even registers.
16173         (REG_CLASS_NAMES): Likewise.
16174         (REG_CLASS_CONTENTS): Likewise.
16175         (REGNO_REG_CLASS): Updated for CC registers.
16176         (REG_CLASS_FROM_LETTER): Added support for even registers.
16177         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
16178         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
16179         ARG_POINTER_REGNUM): Updated.
16180         (FUNCTION_ARG_ADVANCE): Define.
16181         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
16182         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
16183         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
16184         (GO_IF_LEGITIMATE_ADDRESS): Updated.
16185         (SELECT_CC_MODE): Define.
16186         (REGISTER_NAMES): Updated to add psw and fcc registers.
16187         (ADDITIONAL_REGISTER_NAMES): Updated.
16188         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
16189         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
16190         * config/v850/v850.md (define_constants): Define new constants.
16191         (type): Update store,bit1,macc,div,fpu and single attributes.
16192         (cpu): New attribute.
16193         (cc): Add set_z attribute.
16194         (unsign23byte_load, sign23byte_load, unsign23hword_load,
16195         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
16196         23word_store): New instructions for 23-bit displacement load and store.
16197         (movqi_internal, movhi_internal): Update the attributes.
16198         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
16199         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
16200         the attributes.
16201         (v850_tst1): Modified using CC_REGNUM.
16202         (tstsi): Remove.
16203         (cmpsi): Modified as define_expand from define_insn.
16204         (cmpsi_insn, cmpsf, cmpdf): New instructions.
16205         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
16206         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
16207         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
16208         one_cmplsi2): Clobber the CC_REGNUM register.
16209         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
16210         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
16211         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
16212         (setf_insn, set_z_insn, set_nz_insn): New instructions for
16213         v850e2v3 target.
16214         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
16215         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
16216         targets.
16217         (sasf_1, sasf_2): Remove.
16218         (sasf): New instruction.
16219         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
16220         targets. CC_REGNUM register is clobbered and attributes are
16221         updated.
16222         (branch_z_normal, branch_z_invert, branch_nz_normal,
16223         branch_nz_invert): New branch related instructions.
16224         (jump): Updated the attributes.
16225         (switch): Update to support new targets. CC_REGNUM register is
16226         clobbered and attributes are updated.
16227         (call_internal_short, call_internal_long, call_value_internal_short,
16228         call_value_internal_long): Updated the attributes.
16229         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
16230         clobbered and attributes are updated.
16231         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
16232         Update to support new targets. CC_REGNUM register is clobbered.
16233         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
16234         instructions.
16235         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
16236         are updated.
16237         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
16238         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
16239         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
16240         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
16241         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
16242         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
16243         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
16244         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
16245         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
16246         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
16247         point instructions defined for V850e2v3 target.
16248         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
16249         Add support for V850E2 targets and CC_REGNUM register is clobbered.
16250         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
16251         support for new targets.
16252         * config/v850/v850-modes.def: New file.
16253         * config/v850/v850.opt(mstrict-align): Remove.
16254         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
16255         mv850e2v3): New command line options for V850.
16256         * config.gcc: Update the newly added files.
16257         * doc/invoke.texi: Update the newly added command line options for
16258         V850 target.
16259
16260 2010-07-26  Richard Guenther  <rguenther@suse.de>
16261
16262         PR tree-optimization/45052
16263         * ipa-pure-const.c (check_stmt): Check volatileness.
16264
16265 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
16266
16267         PR target/44707
16268         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
16269         * config/sparc/sparc.c: Include reload.h.
16270         (legitimize_tls_address): Rename into...
16271         (sparc_legitimize_tls_address): ...this.
16272         (legitimize_pic_address): Rename into...
16273         (sparc_legitimize_pic_address): ...this.
16274         (sparc_expand_move): Adjust to above renaming.
16275         (sparc_tls_referenced_p): Likewise.
16276         (sparc_legitimize_tls_address): Likewise.
16277         (sparc_legitimize_pic_address): Likewise.
16278         (sparc_legitimize_address): Likewise.
16279         (sparc_output_mi_thunk): Likewise.
16280         (sparc_legitimize_reload_address): New global function.  Recognize
16281         (lo_sum (high ...) ...) patterns generated by earlier passes.
16282         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
16283
16284 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
16285
16286         PR target/44484
16287         * config/sparc/predicates.md (memory_reg_operand): Delete.
16288         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
16289         (*sync_compare_and_swap): Encode the address form in the pattern.
16290         (*sync_compare_and_swapdi_v8plus): Likewise.
16291
16292 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
16293
16294         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
16295         Streamline paragraph on compatibility with the system compiler.
16296
16297 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
16298
16299         PR middle-end/45035
16300         * alias.c (true_dependence_1): Fix thinko in merge of old
16301         true_dependence and canon_true_dependence.
16302
16303 2010-07-23  Jan Hubicka  <jh@suse.cz>
16304
16305         * lto-streamer-out.c (write_symbol): Fix visibilities of external
16306         references.
16307
16308 2010-07-23  Le-Chun Wu  <lcwu@google.com>
16309
16310         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
16311         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
16312         and an unnecessary assignment.
16313         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
16314         self-assign warning.
16315         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
16316         unnecessary self-init.
16317
16318 2010-07-23  Richard Guenther  <rguenther@suse.de>
16319
16320         PR lto/43071
16321         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
16322         for -flto and -fwhopr.
16323
16324 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
16325
16326         PR target/41943
16327         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
16328         (stmp-int-hdrs): Prefix/postfix headers by include_next.
16329         * config.gcc (user_headers_inc_next_pre): New.
16330         (user_headers_inc_next_post): Likewise.
16331         (*-w64-mingw*): Use for float.h post-fixing, and for
16332         stddef.h/stdarg.h pre-fixing by include_next.
16333         * configure.ac (user_headers_inc_next_post): New.
16334         (user_headers_inc_next_pre): New.
16335         * configure: Regenerated.
16336
16337 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16338
16339         * configure.ac: Don't disable TLS on Solaris 8/9 by default
16340         Set tga_func for Solaris 2/x86 resp. SPARC.
16341         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
16342         (LIB_THREAD_LDFLAGS_SPEC): Define.
16343         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
16344         * configure: Regenerate.
16345         * config.in: Regenerate.
16346         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
16347         -pthread, -threads, LIB_TLS_SPEC with -pthread.
16348         * doc/install.texi (Specific, *-*-solaris2*): Document use of
16349         alternate thread libraries on Solaris 8.
16350         Document TLS patch requirements.
16351         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
16352         Document tls.
16353
16354         PR target/18788
16355         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
16356         -shared.
16357
16358 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
16359
16360         * tree.h (struct tree_base): Add nameless_flag bitfield.
16361         (TYPE_NAMELESS, DECL_NAMELESS): Define.
16362         * omp-low.c (create_omp_child_function, scan_omp_parallel,
16363         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
16364         DECL_ARTIFICIAL where needed.
16365         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
16366         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
16367         has DECL_NAMELESS set.
16368
16369 2010-07-23  Martin Jambor  <mjambor@suse.cz>
16370
16371         PR tree-optimization/44915
16372         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
16373         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
16374         (analyze_function): Likewise.
16375
16376 2010-07-23  Martin Jambor  <mjambor@suse.cz>
16377
16378         PR tree-optimization/44914
16379         * tree-sra.c (sra_modify_function_body): Return true if CFG was
16380         changed, add purging dead eh edges.
16381         (ipa_sra_modify_function_body): Return true if CFG was changed,
16382         simplify purging dead eh edges.
16383         (modify_function): Return true if CFG was changed.
16384         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
16385         was changed.
16386         (ipa_early_sra): Likewise.
16387
16388 2010-07-23  Jie Zhang  <jie@codesourcery.com>
16389
16390         PR target/44290
16391         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
16392         if "naked".
16393         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16394         false if ! tree_versionable_function_p.
16395
16396 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
16397
16398         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
16399         * ipa-pure-const.c (special_builtlin_state): Remove
16400         BUILT_IN_ARGS_INFO case.
16401         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16402         * builtins.c (expand_builtin): Likewise.
16403         (expand_builtin_args_info): Remove.
16404         * doc/tm.texi (__builtin_args_info): Remove.
16405         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
16406         * doc/tm.text.in: Likewise.
16407
16408 2010-07-23  Richard Guenther  <rguenther@suse.de>
16409
16410         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
16411         (lto_symtab_merge_decls_2): Likewise.
16412         * tree-ssa.c (useless_type_conversion_p): Likewise.
16413         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16414         * gimple.c (gtc_visited2, gtc_ob2): Remove.
16415         (struct type_pair_d): Make same_p an array indexed by mode.
16416         Update comment.
16417         (lookup_type_pair): Update initialization.
16418         (struct sccs): Adjust same_p type.
16419         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
16420         Adjust.
16421         (print_gimple_types_stats): Likewise.
16422         * gimple.h (enum gtc_mode): New.
16423         (gimple_types_compatible_p): Adjust prototype.
16424
16425 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
16426
16427         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
16428         again after processing insn.
16429
16430 2010-07-23  Jie Zhang  <jie@codesourcery.com>
16431
16432         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
16433         proper words when !tree_versionable_function_p.
16434
16435 2010-07-23  Richard Guenther  <rguenther@suse.de>
16436
16437         PR tree-optimization/45037
16438         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
16439
16440 2010-07-23  Jie Zhang  <jie@codesourcery.com>
16441
16442         * doc/extend.texi: Remove IP2K from the description of naked attribute.
16443         Add MCORE instead.
16444
16445 2010-07-10  Andi Kleen  <ak@linux.intel.com>
16446
16447         PR lto/44992
16448         * lto-opts.c (lto_write_options): Add NULL file_data argument to
16449         lto_get_section_name.
16450         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16451         * lto-streamer-out.c (produce_asm): Likewise.
16452         (copy_function): Likewise.
16453         (produce_symtab): Likewise.
16454         (produce_asm_for_decls): Likewise.
16455         * lto-streamer.c (lto_get_section_name): Add file_data argument.
16456         Rewrite to add random postfix to LTO sections.
16457         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
16458         (lto_get_section_name): Add file_data argument to prototype.
16459
16460 2010-07-10  Andi Kleen  <ak@linux.intel.com>
16461
16462         * lto-section-in.c (lto_section_name): Synchronize names
16463         with lto_get_section_name.
16464
16465 2010-07-10  Andi Kleen  <ak@linux.intel.com>
16466
16467         * lto-opts.c (lto_read_file_options): Check for missing section.
16468
16469 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16470
16471         * ira.c (check_allocation): Correctly handle the case where an allocno
16472         with two objects was allocated to a single reg.
16473
16474 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
16475
16476         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
16477         (is_widening_mult_p): Likewise.
16478         (convert_to_widen): Use them.
16479         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
16480         well as integer ones.
16481
16482 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
16483
16484         * alias.c (true_dependence_1): New function, merged version of
16485         true_dependence and canon_true_dependence.
16486         (true_dependence): Simplify.
16487         (canon_true_dependence): Simplify.
16488
16489 2010-07-22  Richard Henderson  <rth@redhat.com>
16490
16491         PR target/45027
16492         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
16493         of V4SFmode for the SSE saves; increase stack alignment if needed.
16494         (ix86_gimplify_va_arg): Don't increase stack alignment here.
16495
16496 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
16497
16498         PR bootstrap/45028
16499         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
16500         call cprop_find_used_regs again via note_uses.
16501
16502 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
16503
16504         * alias.c (get_alias_set): Fix formatting issues.
16505
16506 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
16507
16508         PR middle-end/44878
16509         * stmt.c (expand_value_return):  Call promote_function_mode with
16510         a for_return argument of 2 when returning by reference.
16511
16512 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
16513
16514         PR debug/45024
16515         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
16516         unit DIE if we can find the scope DIE.
16517
16518 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16519
16520         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
16521         changed.  Initialize OBJECT_SUBWORD.
16522         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
16523         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
16524         all callers changed.
16525         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
16526         (finish_allocno): Likewise.
16527         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
16528         (remove_low_level_allocnos): Likewise.
16529         (update_bad_spill_attribute): Likewise.
16530         (setup_min_max_allocno_live_range_point): Likewise.
16531         (sort_conflict_id_map): Likewise.
16532         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
16533         (ior_hard_reg_conflicts): New function.
16534         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
16535         (compress_conflict_vecs): Iterate over objects, not allocnos.
16536         (ira_add_live_range_to_object): New function.
16537         (object_range_compare_func): Renamed from allocno_range_compare_func.
16538         All callers changed.
16539         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
16540         subobjects, widen the min/max range of the lowest-order object to
16541         potentially include all other such low-order objects.
16542         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
16543         (check_allocation): Likewise.  Use more fine-grained tests for register
16544         conflicts.
16545         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
16546         allocno subobjects.
16547         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
16548         choices about which bits to set in each set.  Don't use
16549         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
16550         using the multiple sets we computed.
16551         (push_allocno_to_stack): Iterate over allocno subobjects.
16552         (all_conflicting_hard_regs_coalesced): New static function.
16553         (setup_allocno_available_regs_num): Use it.
16554         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
16555         subobjects.
16556         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
16557         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16558         by ALLOCNO_NUM_OBJECTS.
16559         (calculate_spill_cost): Likewise.
16560         (color_pass): Express if statement in a more normal way.
16561         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
16562         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
16563         (setup_slot_coalesced_allocno_live_ranges): Likewise.
16564         (allocno_reload_assign): Likewise.
16565         (ira_reassign_pseudos): Likewise.
16566         (fast_allocation): Likewise.
16567         * ira-conflicts.c (build_conflict_bit_table): Likewise.
16568         (print_allocno_conflicts): Likewise.
16569         (ira_build_conflicts): Likewise.
16570         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
16571         callers changed.  Test subword 0 of each allocno for conflicts.
16572         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
16573         callers changed.  Iterate over allocno subobjects.
16574         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
16575         * ira-int.h (struct ira_allocno): New member: num_objects.
16576         Rename object to objects and change it into an array.
16577         (ALLOCNO_OBJECT): Add new argument N.
16578         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
16579         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
16580         (ior_hard_reg_conflicts): Declare.
16581         (ira_add_live_range_to_object): Declare.
16582         (ira_allocno_object_iterator): New.
16583         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
16584         (FOR_EACH_ALLOCNO_OBJECT): New macro.
16585         * ira-lives.c (objects_live): Renamed from allocnos_live; all
16586         uses changed.
16587         (allocnos_processed): New sparseset.
16588         (make_object_born): Renamed from make_allocno_born; take an
16589         ira_object_t argument.  All callers changed.
16590         (make_object_dead): Renamed from make_allocno_dead; take an
16591         ira_object_t argument.  All callers changed.
16592         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
16593         All callers changed.
16594         (mark_pseudo_regno_live): Iterate over allocno subobjects.
16595         (mark_pseudo_regno_dead): Likewise.
16596         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
16597         functions.
16598         (mark_ref_live): Detect subword accesses and call
16599         mark_pseudo_regno_subword_live as appropriate.
16600         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
16601         (process_bb_nodes_live): Deal with object-related updates first; set
16602         and test bits in allocnos_processed to avoid computing allocno
16603         statistics more than once.
16604         (create_start_finish_chains): Iterate over objects, not allocnos.
16605         (print_object_live_ranges): New function.
16606         (print_allocno_live_ranges): Use it.
16607         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
16608         and objects_live.
16609
16610 2010-07-22  Richard Guenther  <rguenther@suse.de>
16611
16612         PR lto/42451
16613         * gimple.c (gtc_next_dfs_num): New global.
16614         (struct sccs): Make value a union, add integer same_p member.
16615         (gtc_visit): New function.
16616         (gimple_types_compatible_p_1): New function, split out from ...
16617         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
16618         (iterative_hash_gimple_type): Adjust for sccs change.
16619
16620 2010-07-22  Martin Jambor  <mjambor@suse.cz>
16621
16622         PR tree-optimization/44891
16623         * tree-sra.c: Include gimple-pretty-print.h.
16624         (replace_uses_with_default_def_ssa_name): Renamed to
16625         get_repl_default_def_ssa_name, return the new SSA name instead of
16626         replacing the old one.
16627         (sra_modify_assign): Dump a message when removing a load, if the LHS
16628         is an SSA_NAME, do not do any propagation, just set the RHS to a
16629         default definition SSA NAME, type convert if necessary.
16630         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
16631
16632 2010-07-22  Richard Guenther  <rguenther@suse.de>
16633
16634         PR tree-optimization/45017
16635         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
16636         TYPE_PRECISION of integral types in addition to size.
16637
16638 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16639
16640         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
16641         when no C library is specified.
16642
16643 2010-07-22  Martin Jambor  <mjambor@suse.cz>
16644
16645         * ipa-prop.h (struct ipa_node_params): Updated comment.
16646         (struct ipa_edge_args): Likewise.
16647         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
16648
16649 2010-07-22  Martin Jambor  <mjambor@suse.cz>
16650
16651         * cgraphunit.c (verify_edge_count_and_frequency): New function.
16652         (verify_cgraph_node): Verify frequencies of indirect edges.
16653         * tree-inline.c (tree_function_versioning): Update frequencies of
16654         indirect edges.
16655
16656 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16657
16658         PR target/43698
16659         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
16660         Set *arm_rev to be predicable.
16661
16662 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
16663
16664         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
16665         (LINK_COMMAND_SPEC_A): New.
16666         (DSYMUTIL): New.
16667         (DSYMUTIL_SPEC): New.
16668         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
16669         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
16670
16671 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
16672
16673         * calls.c (load_register_parameters): Move check for zero
16674         sized items so that only the call to
16675         mem_overlaps_already_clobbered_arg_p () is protected.
16676
16677 2010-07-22  Jan Hubicka  <jh@suse.cz>
16678
16679         * ipa-pure-const.c (varying_state): Break out from ...
16680         (get_function_state): ... here; always return varying_state
16681         when state would be NULL otherwise.
16682         (remove_node_data): Do not free varying state.
16683
16684 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16685
16686         PR bootstrap/44970
16687         PR middle-end/45009
16688         * postreload.c: Include "target.h".
16689         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
16690         into account.
16691         (fixup_debug_insns): Don't copy the rtx.
16692         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
16693         Don't copy when replacing.  Call fixup_debug_insns in the case where
16694         we merged one add with another.
16695         (reload_combine_recognize_pattern): Fail if there aren't any uses.
16696         Try harder to determine whether we're picking a valid index register.
16697         Don't set store_ruid for an insn we're going to scan in the
16698         next iteration.
16699         (reload_combine): Remove unused code.
16700         (reload_combine_note_use): When updating use information for
16701         an old insn, ignore a use that occurs after store_ruid.
16702         * Makefile.in (postreload.o): Update dependencies.
16703
16704         * function.c (record_hard_reg_sets): Restrict the previous change
16705         to cases where the incoming nominal mode is the same as the
16706         incoming promoted mode and everything happens in MODE_INT.
16707
16708 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
16709
16710         PR debug/45015
16711         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
16712         ASM_OPERANDS_OUTPUT_IDX.
16713         (adjust_insn): For inline asm with multiple sets ensure first
16714         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
16715         the insn.
16716
16717 2010-07-21  Richard Henderson  <rth@redhat.com>
16718
16719         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
16720         comparison for avoiding xmm register saves.  Emit the xmm register
16721         saves explicitly.
16722         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
16723         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
16724         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
16725         Remove patterns and the associated splitters.
16726
16727 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
16728
16729         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
16730         and imagine parts of a complex, so that they can have the same
16731         base and fall into the same group.
16732
16733 2010-07-21  Richard Guenther  <rguenther@suse.de>
16734
16735         PR lto/45018
16736         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
16737         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
16738         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
16739
16740 2010-07-21  Martin Jambor  <mjambor@suse.cz>
16741
16742         PR tree-optimization/44900
16743         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
16744         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
16745
16746 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
16747
16748         PR middle-end/44738
16749         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
16750
16751 2010-07-21  Richard Guenther  <rguenther@suse.de>
16752
16753         PR middle-end/45013
16754         * tree-ssa.c (useless_type_conversion_p): Dispatch to
16755         gimple_types_compatible_p only when in lto.
16756         * gimple.c (gimple_types_compatible_p): Use canonical types
16757         to speed up comparison.
16758
16759 2010-07-21  Richard Guenther  <rguenther@suse.de>
16760
16761         * tree-flow.h (referenced_var): Move define ...
16762         * tree-flow-inline.h (referenced_var): ... here as an inline
16763         function.  Assert here ...
16764         * tree-dfa.c (referenced_var_lookup): ... instead of here.
16765         * tree-ssa.c (maybe_optimize_var): Check if the variable
16766         is in referenced vars.
16767         (execute_update_addresses_taken): Remove old broken check.
16768         * gimple-pretty-print.c (pp_points_to_solution): Use
16769         referenced_var_lookup.
16770         * tree-into-ssa.c (dump_decl_set): Likewise.
16771
16772 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
16773
16774         PR debug/45003
16775         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
16776         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
16777         ZERO_EXTEND here.
16778
16779 2010-07-20  Richard Henderson  <rth@redhat.com>
16780
16781         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
16782
16783 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
16784
16785         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
16786         computing the sum of the stack pointer and a large constant.
16787         * config/arm/constraints.md (M): Remove superfluous parentheses.
16788         (Pc): New constraint.
16789
16790 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
16791
16792         PR debug/45006
16793         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
16794         operand's type if exp is tcc_unary class tree.
16795
16796 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
16797
16798         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
16799         Reverse sense of if_then_else condition.
16800
16801 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
16802
16803         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
16804         * config/rs6000/rs6000.c (rs6000_override_options): Set
16805         rs6000_block_move_inline_limit appropriately.
16806         (expand_block_move): Use rs6000_block_move_inline_limit.
16807         * doc/invoke.texi (mblock-move-inline-limit): Document.
16808
16809 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
16810
16811         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
16812         FROM and TO.  All callers changed.  Don't look for tracked uses,
16813         just scan the RTL for DEBUG_INSNs and substitute.
16814         (reload_combine_recognize_pattern): Call fixup_debug_insns.
16815         (reload_combine): Ignore DEBUG_INSNs.
16816
16817 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
16818
16819         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
16820         depth to 8 from 5.
16821
16822         PR debug/45003
16823         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
16824         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
16825         instead of the result's type.
16826
16827 2010-07-20  Richard Guenther  <rguenther@suse.de>
16828
16829         PR tree-optimization/44977
16830         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
16831         SSA form.
16832
16833 2010-07-20  Richard Guenther  <rguenther@suse.de>
16834
16835         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
16836         (lto_symtab_merge_decls_2): Likewise.
16837         * gimple.h (gimple_types_compatible_p): Declare.
16838         * gimple.c (gimple_queue_type_fixup): Remove.
16839         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
16840         (gimple_compatible_complete_and_incomplete_type_p): New function.
16841         (gimple_types_compatible_p): Adjust.
16842         (gimple_register_type): Remove type fixup code.
16843         (print_gimple_types_stats): Adjust.
16844         (free_gimple_type_tables): Likewise.
16845         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
16846         * tree-ssa.c (useless_type_conversion_p): Likewise.
16847
16848 2010-07-20  Richard Guenther  <rguenther@suse.de>
16849
16850         PR middle-end/44971
16851         PR middle-end/44988
16852         * tree-ssa.c (maybe_optimize_var): New function split out from ...
16853         (execute_update_addresses_taken): ... here.
16854         (non_rewritable_mem_ref_base): Likewise.
16855         (execute_update_addresses_taken): Do not iterate over all referenced
16856         vars but just all local decls and parms.
16857         Properly check call and asm arguments and rewrite call arguments.
16858
16859 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
16860
16861         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
16862         to top level.
16863         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
16864         definitions ...
16865         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
16866         New macro.
16867         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
16868
16869 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
16870
16871         * gengtype.c (start_root_entry): New function, split out from
16872         write_root.  Check whether V is null and raise an error if so.
16873         (write_field_root): Check for V being null.  Don't raise an error here;
16874         set V to null instead.
16875         (write_root): Update comment above function.  Use start_root_entry.
16876
16877 2010-07-19  Xinliang David Li  <davidxl@google.com>
16878
16879         PR testsuite/44932
16880         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
16881         def edges.
16882         (find_uninit_use): Add dump.
16883         (is_use_properly_guarded): Ditto.
16884         (warn_uninitialized_phi): Ditto.
16885         (execute_late_warn_uninitialized): Ditto.
16886
16887 2010-07-19  Richard Guenther  <rguenther@suse.de>
16888
16889         PR middle-end/44941
16890         * expr.c (emit_block_move_hints): Move zero size check first.
16891         Move asserts to more useful places.
16892         * calls.c (load_register_parameters): Check for zero size.
16893
16894 2010-07-19  Richard Henderson  <rth@redhat.com>
16895
16896         * tree-optimize.c (execute_all_early_local_passes): New.  Change
16897         cgraph_state here ...
16898         (execute_early_local_optimizations): ... not here.  Remove.
16899         (pass_early_local_passes, pass_all_early_optimizations): Update.
16900
16901 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
16902
16903         * postreload.c (reload_combine_closest_single_use): Ignore the
16904         number of uses for DEBUG_INSNs.
16905         (fixup_debug_insns): New static function.
16906         (reload_combine_recognize_const_pattern): Use it.  Don't let the
16907         main loop be affected by DEBUG_INSNs.
16908         Really disallow moving adds past a jump insn.
16909         (reload_combine_recognize_pattern): Don't update use_ruid here.
16910         (reload_combine_note_use): Do it here.
16911         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
16912
16913 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
16914
16915         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
16916         of a loop.
16917         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
16918
16919 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
16920
16921         * config/i386/darwin.h: Define darwin_emit_branch_islands.
16922         (TARGET_MACHO_BRANCH_ISLANDS): New.
16923         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
16924         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
16925         default value.
16926         * config/i386/i386.c (output_pic_addr_const): Do not emit
16927         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
16928         (x86_output_mi_thunk): Adjust symbol creation.
16929         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
16930         Remove out of date comment.
16931         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
16932         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16933         (DARWIN_GENERATE_ISLANDS): Ditto.
16934         (output_call):  Do not emit branch islands unless
16935         darwin_emit_branch_islands is set.
16936         * config/darwin.c: Declare darwin_emit_branch_islands.
16937         (machopic_indirect_data_reference): Do not emit unless
16938         darwin_emit_branch_islands is set.
16939         (darwin_override_options): Set darwin_emit_branch_islands
16940         where it is needed.
16941         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16942
16943 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16944
16945         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16946         sse_runtime, sse2_runtime.
16947
16948 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
16949
16950         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
16951         low half of a single-register SCmode return value before ORing
16952         it with the high half.
16953         * config/mips/mips16.S (MERGE_GPRf): Likewise.
16954
16955 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16956
16957         PR target/44805
16958         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
16959         on all targets.
16960
16961 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
16962
16963         PR target/42235
16964         * postreload.c (reload_cse_move2add): Return bool, true if anything.
16965         changed.  All callers changed.
16966         (move2add_use_add2_insn): Likewise.
16967         (move2add_use_add3_insn): Likewise.
16968         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
16969         reload_combine.
16970         (RELOAD_COMBINE_MAX_USES): Bump to 16.
16971         (last_jump_ruid): New static variable.
16972         (struct reg_use): New members CONTAINING_MEM and RUID.
16973         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
16974         (reload_combine_split_one_ruid, reload_combine_split_ruids,
16975         reload_combine_purge_insn_uses, reload_combine_closest_single_use
16976         reload_combine_purge_reg_uses_after_ruid,
16977         reload_combine_recognize_const_pattern): New static functions.
16978         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
16979         is true for our reg and that we have available index regs.
16980         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
16981         callers changed.  Use them to initialize fields in struct reg_use.
16982         (reload_combine): Initialize last_jump_ruid.  Be careful when to
16983         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
16984         Call reload_combine_recognize_const_pattern.
16985         (reload_combine_note_store): Update REAL_STORE_RUID field.
16986
16987 2010-07-16  Jason Merrill  <jason@redhat.com>
16988
16989         * Makefile.in (opts-common.o): Depend on options.h.
16990
16991 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
16992
16993         * tree.c (build_common_builtin_nodes): Use build_function_type_list
16994         instead of build_function_type.
16995         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
16996         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16997
16998 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
16999
17000         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
17001         do all the work.
17002         (rs6000_emit_int_cmove): Use function pointers for insn generation.
17003         Don't force values into registers unnecessarily.
17004         (output_isel): Assert that we're not given conditions we can't handle.
17005         Delete corresponding code.
17006         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
17007         scc_comparison_operator constraint.  Permit 0 for the consequent
17008         operand.  Permit any GPR for the alternative operand.
17009         (isel_unsigned_<mode>): Likewise.
17010
17011 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
17012
17013         PR target/44942
17014         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
17015         argument to const_tree.
17016         * config/i386/i386.c (function_arg_advance): If padding needs to be
17017         inserted before argument, increment cum->words by number of padding
17018         words as well.
17019         (contains_aligned_value_p): Change argument to const_tree.
17020         (ix86_function_arg_boundary): Change second argument to const_tree.
17021
17022 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
17023
17024         PR target/42235
17025         * function.c (record_hard_reg_sets): New static function.
17026         (assign_parm_setup_reg): If an optab for extending exists and the
17027         generated code clobbbers no hard regs, emit the insn directly and
17028         create a REG_EQUIV note.
17029
17030 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17031
17032         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
17033         TREE_CHAIN.
17034         * c-typeck.c (push_init_level): Likewise.
17035         (process_init_element): Likewise.
17036
17037 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
17038
17039         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
17040         (integer_three_node): Add.
17041         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
17042         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
17043         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
17044         of call build_int_cst.
17045         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
17046         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
17047         (find_interesting_uses_address): Ditto.
17048         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
17049         * tree-eh.c (lower_eh_constructs_2): Ditto.
17050         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
17051         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
17052         * expmed.c (expand_divmod): Ditto.
17053         * tree-mudflap.c (mx_register_decls): Ditto.
17054         * varasm.c (array_size_for_constructor): Ditto.
17055         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
17056         * c-parser.c (c_parser_postfix_expression): Ditto.
17057
17058 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
17059
17060         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
17061         New static variables.
17062         (reload_combine_recognize_pattern): New static function, broken out
17063         of reload_combine.
17064         (reload_combine): Use it.  Only initialize first_index_reg and
17065         last_index_reg once.
17066
17067 2010-07-15  Richard Henderson  <rth@redhat.com>
17068
17069         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
17070         when done.
17071
17072 2010-07-15  Jan Hubicka  <jh@suse.cz>
17073
17074         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
17075         comdats for broken gold.
17076         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
17077
17078 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17079
17080         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
17081
17082 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17083
17084         * tree.h (DECL_CHAIN): Define.
17085         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
17086         * c-decl.c: Likewise.
17087         * c-parser.c: Likewise.
17088         * c-typeck.c: Likewise.
17089         * cfgexpand.c: Likewise.
17090         * cgraph.c: Likewise.
17091         * cgraphunit.c: Likewise.
17092         * combine.c: Likewise.
17093         * config/alpha/alpha.c: Likewise.
17094         * config/arm/arm.c: Likewise.
17095         * config/frv/frv.c: Likewise.
17096         * config/i386/i386.c: Likewise.
17097         * config/i386/winnt-cxx.c: Likewise.
17098         * config/ia64/ia64.c: Likewise.
17099         * config/iq2000/iq2000.c: Likewise.
17100         * config/mep/mep.c: Likewise.
17101         * config/mips/mips.c: Likewise.
17102         * config/pa/som.h: Likewise.
17103         * config/rs6000/rs6000.c: Likewise.
17104         * config/s390/s390.c: Likewise.
17105         * config/sh/sh.c: Likewise.
17106         * config/sh/symbian-cxx.c: Likewise.
17107         * config/sparc/sparc.c: Likewise.
17108         * config/spu/spu.c: Likewise.
17109         * config/stormy16/stormy16.c: Likewise.
17110         * config/vxworks.c: Likewise.
17111         * config/xtensa/xtensa.c: Likewise.
17112         * coverage.c: Likewise.
17113         * dbxout.c: Likewise.
17114         * dwarf2out.c: Likewise.
17115         * emit-rtl.c: Likewise.
17116         * expr.c: Likewise.
17117         * function.c: Likewise.
17118         * gimple-low.c: Likewise.
17119         * gimple-pretty-print.c: Likewise.
17120         * gimplify.c: Likewise.
17121         * integrate.c: Likewise.
17122         * ipa-inline.c: Likewise.
17123         * ipa-prop.c: Likewise.
17124         * ipa-split.c: Likewise.
17125         * ipa-struct-reorg.c: Likewise.
17126         * ipa-type-escape.c: Likewise.
17127         * langhooks.c: Likewise.
17128         * lto-cgraph.c: Likewise.
17129         * omp-low.c: Likewise.
17130         * stor-layout.c: Likewise.
17131         * tree-cfg.c: Likewise.
17132         * tree-complex.c: Likewise.
17133         * tree-dfa.c: Likewise.
17134         * tree-dump.c: Likewise.
17135         * tree-inline.c: Likewise.
17136         * tree-mudflap.c: Likewise.
17137         * tree-nested.c: Likewise.
17138         * tree-object-size.c: Likewise.
17139         * tree-pretty-print.c: Likewise.
17140         * tree-sra.c: Likewise.
17141         * tree-ssa-live.c: Likewise.
17142         * tree-ssa-loop-niter.c: Likewise.
17143         * tree-ssa-math-opts.c: Likewise.
17144         * tree-ssa-reassoc.c: Likewise.
17145         * tree-ssa-sccvn.c: Likewise.
17146         * tree-ssa-structalias.c: Likewise.
17147         * tree-tailcall.c: Likewise.
17148         * tree-vrp.c: Likewise.
17149         * tree.c: Likewise.
17150         * var-tracking.c: Likewise.
17151         * varasm.c: Likewise.
17152
17153 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17154
17155         PR target/44877
17156         * config/spu/spu.c (spu_expand_builtin_1): Allow references
17157         (as well as pointers) as argument to mask_for_load builtins.
17158
17159 2010-07-15  Richard Guenther  <rguenther@suse.de>
17160
17161         PR tree-optimization/44946
17162         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
17163         with accessing only padding properly.
17164
17165 2010-07-15  Jan Hubicka  <jh@suse.cz>
17166
17167         * ipa.c (function_and_variable_visibility): Variables marked as used
17168         should not be localized.
17169
17170 2010-07-15  Jan Hubicka  <jh@suse.cz>
17171
17172         * cgraph.c: Include lto-streamer.h
17173         (change_decl_assembler_name): Work when assembler name hash is at place.
17174         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
17175         be sure to rename it to avoid name clash.
17176         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
17177         Localize hidden symbols only when locally defined.
17178
17179 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
17180
17181         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
17182
17183 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
17184             Kevin F. Quinn  <kevquinn@gentoo.org>
17185
17186         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
17187         * common.opt: Add -Wtrampolines.
17188         * doc/invoke.texi: Add -Wtrampolines.
17189
17190 2010-07-15  Jie Zhang  <jie@codesourcery.com>
17191
17192         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
17193         cortex_a8_issue_ls.
17194
17195 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
17196
17197         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
17198         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
17199
17200 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17201
17202         * config/spu/spu.c (reg_names): Remove prototype.
17203         (call_used_regs): Likewise.
17204
17205 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
17206
17207         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
17208         "unused" with attribute "used".
17209         (__JCR_END__): Likewise.
17210         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
17211         "used" attribute.
17212         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
17213
17214 2010-07-14  Richard Guenther  <rguenther@suse.de>
17215
17216         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
17217         (maybe_fixup_decls): Likewise.
17218         (input_gimple_stmt): Do not fixup anything.
17219         * lto-streamer-out.c (output_gimple_stmt): Make sure all
17220         non-automatic variable uses are wrapped inside a MEM_REF.
17221
17222 2010-07-14  Richard Henderson  <rth@redhat.com>
17223
17224         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
17225         for functions.
17226         * varasm.c (assemble_variable): Remove early exit for functions;
17227         assert that we're given a variable.
17228
17229 2010-07-14  Jie Zhang  <jie@codesourcery.com>
17230
17231         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
17232         cortex_a8_default when neon_type is not none.
17233
17234 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17235
17236         * lower-subreg.c (subreg_context): New static bitmap.
17237         (decompose_multiword_subregs): Allocate and free it.
17238         (find_decomposable_subregs): Set a bit in it for a register that
17239         occurs in a subreg that changes mode but not size.
17240         (can_decompose_p): Test it instead of non_decomposable_context.
17241
17242 2010-07-14  Richard Guenther  <rguenther@suse.de>
17243
17244         PR tree-optimization/44824
17245         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
17246         is_gimple_mem_ref_addr.
17247         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
17248         non-decl_address_invariant_p addresses.
17249
17250 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17251
17252         * reload.c (find_reloads): Revert code to penalize small register
17253         classes that was brought in with the IRA merge.
17254
17255 2010-07-14  Richard Guenther  <rguenther@suse.de>
17256
17257         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
17258         as base of ARRAY_REFs.
17259
17260 2010-07-14  Richard Guenther  <rguenther@suse.de>
17261
17262         PR middle-end/44930
17263         * tree-pretty-print.c (do_niy): Do not print a newline.
17264
17265 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17266
17267         * ira-int.h (struct ira_object): New.
17268         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
17269         (struct ira_allocno): Remove members min, max,
17270         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
17271         conflict_allocnos_num and conflict_vec_p.  Add new member object.
17272         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
17273         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
17274         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
17275         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
17276         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
17277         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
17278         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
17279         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
17280         an ira_object_t rather than ira_allocno_t.  All uses changed.
17281         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17282         contains a vector of ira_object_t; all uses changed.
17283         (ira_objects_num): Declare variable.
17284         (ira_create_allocno_object): Declare function.
17285         (ira_conflict_vector_profitable_p): Adjust prototype.
17286         (ira_allocate_conflict_vec): Renamed from
17287         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
17288         (ira_allocate_object_conflicts): Renamed from
17289         ira_allocate_allocno_conflicts; first arg now ira_object_t.
17290         (struct ira_object_iterator): New.
17291         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
17292         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
17293         to conflict_vec_p.  All uses changed.
17294         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
17295         Changed to take into account that conflicts are now tracked for
17296         objects.
17297         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
17298         Args changed to accept ira_object_t.  All uses changed.
17299         (allocnos_conflict_p): New static function.
17300         (collected_conflict_objects): Renamed from collected_allocno_objects;
17301         now a vector of ira_object_t.  All uses changed.
17302         (build_conflict_bit_table): Changed to take into account that
17303         conflicts are now tracked for objects.
17304         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
17305         (print_allocno_conflicts, ira_build_conflicts): Likewise.
17306         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
17307         setup_allocno_left_conflicts_size, allocno_reload_assign,
17308         fast_allocation): Likewise.
17309         * ira-lives.c (make_hard_regno_born, make_allocno_born)
17310         process_single_reg_class_operands, process_bb_node_lives): Likewise.
17311         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
17312         Likewise.
17313         * ira-build.c (ira_objects_num): New variable.
17314         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17315         contains a vector of ira_object_t; all uses changed.
17316         (ira_object_id_map_vec): Corresponding change.
17317         (object_pool): New static variable.
17318         (initiate_allocnos): Initialize it.
17319         (finish_allocnos): Free it.
17320         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
17321         New functions.
17322         (ira_create_allocno): Don't set members that were removed.
17323         (ira_set_allocno_cover_class): Don't change conflict hard regs.
17324         (merge_hard_reg_conflicts): Changed to take into account that
17325         conflicts are now tracked for objects.
17326         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
17327         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
17328         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
17329         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
17330         setup_min_max_conflict_allocno_ids, ):  Likewise.
17331         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
17332         to ira_object_t; all callers changed.
17333         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
17334         to ira_object_t, all callers changed.
17335         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
17336         to ira_object_t, all callers changed.
17337         (conflict_check, curr_conflict_check_tick): Renamed from
17338         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
17339         changed.
17340         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
17341         arg changed to ira_object_t, all callers changed.
17342         (create_cap_allocno): Call ira_create_allocno_object.
17343         (finish_allocno): Free the corresponding object.
17344         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
17345         callers changed.  Adjusted for dealing with objects.
17346         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
17347         dealing with objects.
17348         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
17349
17350         * ira-int.h (struct live_range): Rename allocno member to object
17351         and change type to ira_object_t.
17352         (struct ira_object): New member live_ranges.
17353         (struct ira_allocno): Remove member live_ranges.
17354         (ALLOCNO_LIVE_RANGES): Remove.
17355         (OBJECT_LIVE_RANGES): New macro.
17356         (ira_create_live_range, ira_copy_live_range_list,
17357         ira_merge_live_range_list, ira_live_ranges_intersect_p,
17358         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
17359         * ira-build.c (ira_create_object): Initialize live ranges here.
17360         (ira_create_allocno): Not here.
17361         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
17362         changed to ira_object_t, all callers changed.
17363         (copy_live_range): Rename from copy_allocno_live_range, all callers
17364         changed.
17365         (ira_copy_live_range_list): Rename from
17366         ira_copy_allocno_live_range_list, all callers changed.
17367         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
17368         all callers changed.
17369         (ira_live_ranges_intersect_p): Rename from
17370         ira_allocno_live_ranges_intersect_p, all callers changed.
17371         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
17372         callers changed.
17373         (ira_finish_live_range_list): Rename from
17374         ira_finish_allocno_live_range_list, all callers changed.
17375         (change_object_in_range_list): Rename from change_allocno_in_range_list,
17376         last arg changed to ira_object_t, all callers changed.
17377         (finish_allocno): Changed to expect live ranges in the allocno's object.
17378         (move_allocno_live_ranges, copy_allocno_live_ranges,
17379         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
17380         ira_flattening, ira_build): Likewise.
17381         * ira-color.c (allocnos_have_intersected_live_ranges_p,
17382         slot_coalesced_allocno_live_ranges_intersect,
17383         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
17384         * ira-conflicts.c (build_conflict_bit_table): Likewise.
17385         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
17386         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
17387         make_allocno_dead, create_start_finish_chains,
17388         remove_some_program_points_and_update_live_ranges,
17389         ira_debug_live_range_list): Likewise.
17390
17391         * ira-int.h (ira_object_conflict_iterator): Rename from
17392         ira_allocno_conflict_iterator.
17393         (ira_object_conflict_iter_init): Rename from
17394         ira_allocno_conflict_iter_init, second arg changed to
17395         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
17396         FOR_EACH_ALLOCNO_CONFLICT.
17397         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
17398         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
17399         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
17400         * ira-conflicts.c (print_allocno_conflicts): Likewise.
17401
17402 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
17403
17404         PR other/44874
17405         * tree-dump.c (dump_options): Add enumerate_locals entry.
17406         Add TDF_NOID exclusion to all entry.
17407         * tree-dump.h (dump_enumerated_decls): Declare.
17408         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
17409         Don't display type uid.
17410         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
17411         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
17412         * tree-ssa-live.c: Include gimple.h.
17413         (numbered_tree_d): New struct.
17414         (numbered_tree): New typedef.
17415         (DEF_VEC_O (numbered_tree): New.
17416         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
17417         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
17418         (dump_enumerated_decls): Likewise.
17419         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
17420         debug info and flag_dump_final_insns, call dump_enumerated_decls.
17421         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
17422         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
17423
17424 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
17425
17426         * expmed.h (MAX_BITS_PER_WORD): Move to...
17427         * defaults.h (MAX_BITS_PER_WORD): ...here.
17428
17429 2010-07-13  DJ Delorie  <dj@redhat.com>
17430
17431         * config/h8300/h8300.c (h8300_init_once): Default to
17432         -fstrict_volatile_bitfields.
17433
17434         * config/sh/sh.c (sh_override_options): Default to
17435         -fstrict_volatile_bitfields.
17436
17437         * config/rx/rx.c (rx_option_override): New.
17438
17439         * config/m32c/m32c.c (m32c_override_options): Default to
17440         -fstrict_volatile_bitfields.
17441
17442 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
17443
17444         * tree.h (build_function_call_expr): Delete.
17445         (build_call_expr_loc_array): New function.
17446         (build_call_expr_loc_vec): New function.
17447         * tree-flow.h (struct omp_region): Change type of ws_args field
17448         to a VEC.
17449         * builtins.c (build_function_call_expr): Delete.
17450         (build_call_expr_loc_array): New function.
17451         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
17452         (build_call_expr): Likewise.
17453         (build_call_expr_loc_vec): New function.
17454         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
17455         build_function_call_expr.
17456         * expr.c (emutls_var_address): Likewise.
17457         * varasm.c (emutls_common_1): Likewise.
17458         * omp-low.c (expand_omp_atomic_mutex): Likewise.
17459         (expand_omp_taskreg): Adjust for new type of region->ws_args.
17460         (get_ws_args_for): Return a VEC instead of a tree.
17461         (expand_parallel_call): Call build_call_expr_loc_vec instead of
17462         build_function_call_expr.
17463         * stor-layout.c (self_referential_size): Likewise.
17464
17465 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
17466
17467         PR testsuite/44701
17468         * recog.c (constrain_operands): Allow side-effects in memory
17469         operands if either < or > constraint is used, rather than if
17470         both < and > is used.
17471
17472 2010-07-13  Richard Guenther  <rguenther@suse.de>
17473
17474         PR middle-end/44911
17475         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
17476         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
17477         without name.
17478
17479 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
17480
17481         PR target/44761
17482         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
17483         to variable emited.
17484         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
17485         * config/sh/sh.md (symGOT_load): Likewise.
17486         (symDTPOFF2reg): Likewise.
17487         (symTPOFF2reg): Likewise.
17488
17489 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17490
17491         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
17492         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
17493
17494 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17495
17496         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
17497         explanation.
17498         Find ucontext_t * on Solaris 11.
17499         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
17500         Handle new Solaris 11 __sighndlr patterns.
17501
17502 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
17503
17504         PR debug/44901
17505         * vec.h (VEC_block_remove): Fix comment.
17506         * tree-ssa-live.c (remove_unused_locals): Don't use
17507         VEC_unordered_remove on local_decls, instead replace a single
17508         vector element in each iteration if at least one element had
17509         to be removed and VEC_truncate at the end.
17510         * omp-low.c (expand_omp_taskreg): Likewise.
17511
17512 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17513
17514         * c-decl.c (finish_function): Fix typo in comment.
17515
17516 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
17517
17518         PR bootstrap/44921
17519         * postreload.c (move2add_use_add3_insn): Silence gcc warning
17520         on min_regno.
17521
17522 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
17523
17524         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
17525         (simplify_stmt_using_ranges): Use it.
17526
17527 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17528
17529         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
17530         member.  Do not mark as GTY(()).
17531         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
17532         (spu_builtin_decls): New static variable.
17533         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
17534         (spu_init_builtins): Likewise.
17535         (spu_builtin_mul_widen_even): Likewise.
17536         (spu_builtin_mul_widen_odd): Likewise.
17537         (spu_builtin_mask_for_load): Likewise.
17538         (spu_builtin_vec_perm): Likewise.
17539         * config/spu/spu-c.c: Include "target.h".
17540         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
17541         of using spu_builtins[].fndecl.
17542
17543 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17544
17545         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
17546         imply -minterlink-mips16.
17547
17548 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17549
17550         * config/mips/mips.h (mips16_globals): Declare.
17551         (SWITCHABLE_TARGET): Define.
17552         * config/mips/mips.c: Include target-globals.h.
17553         (mips16_globals): New variable.
17554         (mips_set_mips16_mode): Use save_target_globals and
17555         restore_target_globals instead of target_reinit.
17556
17557 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17558
17559         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
17560         to say that the function can be called more than once.
17561         * target-globals.c (save_target_globals): Call init_reg_sets.
17562
17563 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17564
17565         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
17566         * bb-reorder.h: New file.
17567         * bb-reorder.c (default_target_bb_reorder): New variable.
17568         (this_target_bb_reorder): New conditional variable.
17569         (uncond_jump_length): Redefine as a macro.
17570         * target-globals.h (this_target_bb_reorder): Declare.
17571         (target_globals): Add a bb_reorder field.
17572         (restore_target_globals): Copy the bb_reorder field to
17573         this_target_bb-reorder.
17574         * target-globals.c: Include bb-reorder.h.
17575         (default_target_globals): Initialize the bb_reorder field.
17576         (save_target_globals): Likewise.
17577
17578 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17579
17580         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
17581         * gcse.h: New file.
17582         * gcse.c: Include gcse.h.
17583         (default_target_gcse): New variable.
17584         (this_target_gcse): New conditional variable.
17585         (can_copy): Redefine as a macro.
17586         (can_copy_init_p): New macro.
17587         (can_copy_p): Remove can_copy_init_p.
17588         * target-globals.h (this_target_gcse): Declare.
17589         (target_globals): Add a gcse field.
17590         (restore_target_globals): Copy the gcse field to this_target_gcse.
17591         * target-globals.c: Include gcse.h.
17592         (default_target_globals): Initialize the gcse field.
17593         (save_target_globals): Likewise.
17594
17595 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17596
17597         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
17598         and x_ira_prohibited_mode_move_regs_initialized_p.
17599         (ira_prohibited_mode_move_regs): Redefine as a macro.
17600         * ira.c (ira_prohibited_mode_move_regs): Delete.
17601         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
17602
17603 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17604
17605         * reload.h (target_reload): Add x_cached_reg_save_code and
17606         x_cached_reg_restore_code.
17607         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
17608         Redefine as macros.
17609
17610 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17611
17612         * Makefile.in (target-globals.o): Depend on builtins.h.
17613         * builtins.h: New file.
17614         * builtins.c: Include builtins.h.
17615         (default_target_builtins): New variable.
17616         (this_target_builtins): New conditional variable.
17617         (apply_args_mode, apply_result_mode): Redefine as macros.
17618         * target-globals.h (this_target_builtins): Declare.
17619         (target_globals): Add a builtins field.
17620         (restore_target_globals): Copy the builtins field to
17621         this_target_builtins.
17622         * target-globals.c: Include builtins.h.
17623         (default_target_globals): Initialize the builtins field.
17624         (save_target_globals): Likewise.
17625
17626 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17627
17628         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
17629         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
17630         from expmed.c.
17631         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
17632         (alg_hash, alg_hash_used_p): New macros.
17633         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
17634         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
17635         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
17636
17637 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17638
17639         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
17640         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
17641         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
17642         (this_op_costs, costs_classes): Redefine as macros.
17643         (record_reg_classes): Don't take op_costs as a parameter.
17644         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
17645         (scan_one_insn): Update call to record_operand_costs.
17646
17647 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17648
17649         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
17650         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
17651         (target_ira_int): New structure.
17652         (default_target_ira_int): Declare.
17653         (this_target_ira_int): Declare as a variable or define as a macro.
17654         (ira_reg_mode_hard_regset, ira_register_move_cost)
17655         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
17656         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
17657         (prohibited_class_mode_regs, ira_important_classes_num)
17658         (ira_important_classes, ira_reg_class_intersect)
17659         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
17660         (ira_reg_class_union): Redefine as macros.
17661         * ira.h (target_ira): New structure.
17662         (default_target_ira): Declare.
17663         (this_target_ira): Declare as a variable or define as a macro.
17664         (ira_available_class_regs, ira_hard_regno_cover_class)
17665         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
17666         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
17667         (ira_class_hard_regs_num): Redefine as macros.
17668         * ira.c (default_target_ira, default_target_ira_int): New variables.
17669         (this_target_ira, this_target_ira_int): New conditional variables.
17670         (ira_reg_mode_hard_regset, ira_memory_move_cost)
17671         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
17672         (ira_class_subset_p): Delete.
17673         (no_unit_alloc_regs): Redefine as a macro.
17674         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
17675         (ira_class_hard_regs_num, ira_class_hard_reg_index)
17676         (ira_available_class_regs): Delete.
17677         (alloc_reg_class_subclasses): Redefine as a macro.
17678         (ira_reg_class_cover_size, ira_reg_class_cover)
17679         (ira_important_classes_num, ira_important_classes)
17680         (ira_important_class_nums, ira_class_translate): Delete.
17681         (cover_class_order): Document the variable's lifetime.
17682         (reorder_important_classes): Don't set ira_important_class_nums.
17683         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
17684         (ira_reg_class_super_classes, ira_reg_class_union)
17685         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
17686         Delete.
17687         (setup_reg_class_nregs): Don't set ira_max_regs.
17688         (prohibited_class_mode_regs): Delete.
17689         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
17690         (target_globals): Add ira and ira_int fields.
17691         (restore_target_globals): Copy the ira field to this_target_ira
17692         and the ira_int field to this_target_ira_int.
17693         * target-globals.c: Include ira-int.h.
17694         (default_target_globals): Initialize the ira and ira_int fields.
17695         (save_target_globals): Likewise.
17696
17697 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17698
17699         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
17700         * cfgloop.h (target_cfgloop): New structure.
17701         (default_target_cfgloop): Declare.
17702         (this_target_cfgloop): Declare as a variable or define as a macro.
17703         (target_avail_regs, target_clobbered_regs, target_res_regs)
17704         (target_reg_cost, target_spill_cost): Redefine as macros.
17705         * cfgloopanal.c (default_target_cfgloop): New variable.
17706         (this_target_cfgloop): New conditional variable.
17707         (target_avail_regs, target_clobbered_regs, target_res_regs)
17708         (target_reg_cost, target_spill_cost): Delete.
17709         * target-globals.h (this_target_cfgloop): Declare.
17710         (target_globals): Add a cfgloop field.
17711         (restore_target_globals): Copy the cfgloop field to
17712         this_target_cfgloop.
17713         * target-globals.c: Include cfgloop.h.
17714         (default_target_globals): Initialize the cfgloop field.
17715         (save_target_globals): Likewise.
17716
17717 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17718
17719         * regs.h (target_regs): Add x_direct_load, x_direct_store and
17720         x_float_extend_from_mem.
17721         (direct_load, direct_store, float_extend_from_mem): New macros.
17722         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
17723
17724 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17725
17726         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
17727         (target-globals.o): Depend on $(LIBFUNCS_H).
17728         * libfuncs.h: Include hashtab.h.
17729         (libfunc_entry): Moved from optabs.c.
17730         (target_libfuncs): New structure.
17731         (default_target_libfuncs): Declare.
17732         (this_target_libfuncs): Declare as a variable or define as a macro.
17733         (libfunc_table): Redefine as a macro.
17734         * optabs.c (default_target_libfuncs): New variable.
17735         (this_target_libfuncs): New conditional variable.
17736         (libfunc_table): Delete.
17737         (libfunc_entry): Moved to optabs.h.
17738         (libfunc_hash): Redefine as a macro.
17739         (hash_libfunc, eq_libfunc): Fix comments.
17740         (init_optabs): Use libfunc_hash to detect cases where the function
17741         has already been called.  Clear the hash table instead of
17742         recreating it.
17743         * target-globals.h (this_target_libfuncs): Declare.
17744         (target_globals): Add a libfuncs field.
17745         (restore_target_globals): Copy the libfuncs field to
17746         this_target_libfuncs.
17747         * target-globals.c: Include libfuncs.h.
17748         (default_target_globals): Initialize the libfuncs field.
17749         (save_target_globals): Likewise.
17750
17751 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17752
17753         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
17754         in all dependency lists.
17755
17756 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17757
17758         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
17759         * optabs.h (target_optabs): New structure.
17760         (default_target_optabs): Declare.
17761         (this_target_optabs): Declare as a variable or define as a macro.
17762         (optab_table, convert_optab_table, direct_optab_table): Redefine
17763         as macros.
17764         * optabs.c (default_target_optabs): New variable.
17765         (this_target_optabs): New conditional variable.
17766         (optab_table, convert_optab_table, direct_optab_table): Delete.
17767         * target-globals.h (this_target_optabs): Declare.
17768         (target_globals): Add a optabs field.
17769         (restore_target_globals): Copy the optabs field to
17770         this_target_optabs.
17771         * target-globals.c: Include expr.h and optabs.h.
17772         (default_target_globals): Initialize the optabs field.
17773         (save_target_globals): Likewise.
17774
17775 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17776
17777         * flags.h (target_flagstate): Add x_flag_excess_precision.
17778         (flag_excess_precision): Redefine as a macro.
17779         * toplev.c (flag_excess_precision): Delete.
17780
17781 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17782
17783         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
17784         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
17785         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
17786         (no_caller_save_reg_set): Redefine as a macro.
17787         * reload.h (target_reload): Add x_caller_save_initialized_p and
17788         x_regno_save_mode.
17789         (caller_save_initialized_p): Redefine as a macro.
17790         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
17791         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
17792         (regno_save_mode): Redefine as a macro.
17793
17794 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17795
17796         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
17797         * expmed.h: New file.
17798         * expmed.c (default_target_costs): New variable.
17799         (this_target_costs): New conditional variable.
17800         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
17801         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
17802         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
17803         * target-globals.h (this_target_expmed): Declare.
17804         (target_globals): Add a expmed field.
17805         (restore_target_globals): Copy the expmed field to
17806         this_target_expmed.
17807         * target-globals.c: Include expmed.h.
17808         (default_target_globals): Initialize the expmed field.
17809         (save_target_globals): Likewise.
17810
17811 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17812
17813         * Makefile.in (target-globals.o): Depend on reload.h.
17814         * reload.h (target_reload): New structure.
17815         (default_target_reload): Declare.
17816         (this_target_reload): Declare as a variable or define as a macro.
17817         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
17818         * reload1.c (default_target_reload): New variable
17819         (this_target_reload): New conditional variable.
17820         (indirect_symref_ok, double_reg_address_ok): Delete.
17821         (spill_indirect_levels): Redefine as a macro.
17822         * target-globals.h (this_target_reload): Declare.
17823         (target_globals): Add a reload field.
17824         (restore_target_globals): Copy the reload field to
17825         this_target_reload.
17826         * target-globals.c: Include hard-reg-set.h.
17827         (default_target_globals): Initialize the reload field.
17828         (save_target_globals): Likewise.
17829
17830 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17831
17832         * rtl.h (target_rtl): Add x_static_reg_base_value.
17833         * alias.c (static_reg_base_value): Redefine as a macro.
17834
17835 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17836
17837         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
17838         (GTFILES): Remove reginfo.c.
17839         * rtl.h (target_rtl): Add x_top_of_stack.
17840         (top_of_stack): New macro.
17841         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
17842         (top_of_stack): Delete.
17843
17844 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17845
17846         * regs.h (target_regs): Add x_hard_regs_of_mode,
17847         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
17848         x_may_move_out_cost and x_last_mode_for_init_move_cost.
17849         (have_regs_of_mode, contains_reg_of_mode, move_cost)
17850         (may_move_in_cost, may_move_out_cost): Redefine as macros.
17851         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
17852         (may_move_in_cost, may_move_out_cost): Delete.
17853         (last_mode_for_init_move_cost): Redefine as a macro.
17854
17855 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17856
17857         * hard-reg-set.h (target_hard_regs): New structure.
17858         (default_target_hard_regs): Declare.
17859         (this_target_hard_regs): Declare as a variable or define as a macro.
17860         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
17861         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
17862         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
17863         (reg_class_size, reg_class_subclasses, reg_class_subunion)
17864         (reg_class_superunion, reg_names): Redefine as macros.
17865         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
17866         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
17867         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
17868         (reg_class_contents, reg_class_size, reg_class_subclasses)
17869         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
17870         (default_target_hard_regs): New variable
17871         (this_target_hard_regs, initial_call_really_used_regs)
17872         (initial_reg_alloc_order): New conditional variables.
17873         (initial_reg_names): New variable.
17874         (init_reg_sets): Assert that initial_call_really_used_regs,
17875         initial_reg_alloc_order and initial_reg_names
17876         are all the same size as their variable counterparts.  Use them to
17877         initialize those counterparts.
17878         * target-globals.h (this_target_hard_regs): Declare.
17879         (target_globals): Add a hard_regs field.
17880         (restore_target_globals): Copy the hard_regs field to
17881         this_target_hard_regs.
17882         * target-globals.c: Include hard-reg-set.h.
17883         (default_target_globals): Initialize the hard_regs field.
17884         (save_target_globals): Likewise.
17885
17886 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17887
17888         * Makefile.in (target-globals.o): Depend on $(RTL_H).
17889         * rtl.h (target_rtl): New structure.
17890         (default_target_rtl): Declare.
17891         (this_target_rtl): Declare as a variable or define as a macro.
17892         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
17893         Redefine as macros.
17894         * emit-rtl.c (default_target_rtl): New variable.
17895         (this_target_rtl): New conditional variable.
17896         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
17897         (return_address_pointer_rtx): Delete.
17898         (initial_regno_reg_rtx): New macro.
17899         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
17900         (init_emit_regs): Likewise.
17901         * target-globals.h (this_target_rtl): Declare.
17902         (target_globals): Add a rtl field.
17903         (restore_target_globals): Copy the rtl field to this_target_rtl.
17904         * target-globals.c: Include rtl.h.
17905         (default_target_globals): Initialize the rtl field.
17906         (save_target_globals): Likewise.
17907
17908 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17909
17910         * Makefile.in (target-globals.o): Depend on $(REGS_H).
17911         * regs.h (target_reg_modes): New structure.
17912         (default_target_reg_modes): Declare.
17913         (this_target_reg_modes): Declare as a variable or define as a macro.
17914         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
17915         * reginfo.c (default_target_reg_modes): New variable.
17916         (this_target_reg_modes): New conditional variable.
17917         (hard_regno_nregs, reg_raw_mode): Delete.
17918         * target-globals.h (this_target_regs): Declare.
17919         (target_globals): Add a regs field.
17920         (restore_target_globals): Copy the regs field to this_target_regs.
17921         * target-globals.c: Include regs.h.
17922         (default_target_globals): Initialize the regs field.
17923         (save_target_globals): Likewise.
17924
17925 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
17926
17927         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
17928         * doc/tm.texi: Regenerate.
17929         * Makefile.in (OBJS-common): Add target-globals.o.
17930         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
17931         and target-globals.h.
17932         (target-globals.o): New rule.
17933         (GTFILES): Include $(srcdir)/target-globals.h.
17934         * defaults.h (SWITCHABLE_TARGET): Define.
17935         * gengtype.c (open_base_files): Add target-globals.h to the
17936         list of includes.
17937         * target-globals.h: New file.
17938         * target-globals.c: Likewise.
17939
17940         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
17941         * flags.h (target_flag_state): New structure.
17942         (default_target_flag_state): Declare.
17943         (this_target_flag_state): Declare as a variable or define as a macro.
17944         (align_loops_log): Redefine as a macro.
17945         (align_loops_max_skip, align_jumps_log): Likewise.
17946         (align_jumps_max_skip, align_labels_log): Likewise.
17947         (align_labels_max_skip, align_functions_log): Likewise.
17948         * toplev.c (default_target_flag_state): New variable.
17949         (this_target_flag_state): New conditional variable.
17950         (align_loops_log): Delete.
17951         (align_loops_max_skip, align_jumps_log): Likewise.
17952         (align_jumps_max_skip, align_labels_log): Likewise.
17953         (align_labels_max_skip, align_functions_log): Likewise.
17954         * target-globals.h (this_target_flag_state): Declare.
17955         (target_globals): Add a flag_state field.
17956         (restore_target_globals): Copy the flag_state field to
17957         this_target_flag_state.
17958         * target-globals.c: Include flags.h.
17959         (default_target_globals): Initialize the flag_state field.
17960         (save_target_globals): Likewise.
17961
17962 2010-07-12  Jie Zhang  <jie@codesourcery.com>
17963
17964         * postreload.c (reg_symbol_ref[]): New.
17965         (move2add_use_add2_insn): New.
17966         (move2add_use_add3_insn): New.
17967         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
17968         (move2add_note_store): Likewise.
17969
17970 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
17971
17972         PR rtl-optimization/44752
17973         * genautomata.c (main): Don't emit an empty file even if there
17974         is no automaton.
17975
17976 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17977
17978         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
17979         ix86_solaris_return_in_memory.
17980         * config/i386-protos.h: Reflect this.
17981         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17982         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17983         Move ...
17984         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
17985
17986 2010-07-12  Jie Zhang  <jie@codesourcery.com>
17987
17988         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
17989         align the stack when it's going to be saved.
17990
17991 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17992
17993         PR pch/14940
17994         * config/host-solaris.c (mmap_fixed): New function.
17995         (sol_gt_pch_get_address): Use it.
17996         (sol_gt_pch_use_address): Likewise.
17997
17998 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17999
18000         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18001         pentiumpro on Solaris 8 and 9/x86.
18002         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
18003         Document SSE/SSE2 support.
18004         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
18005
18006 2010-07-12  Andi Kleen  <ak@linux.intel.com>
18007
18008         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
18009         instead of gcc_assert to print better error message for multiple
18010         prevailing defs.
18011
18012 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
18013
18014         * config/i386/i386.c (ix86_asm_output_function_label): Change format
18015         string placeholder from 0x%x to %#x.
18016         (ix86_code_end): Use putc to output '\n'.
18017         (ix86_print_operand) <case ';'>: Use putc to output ';'.
18018
18019 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
18020
18021         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
18022         in directive -export.
18023
18024 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
18025
18026         * reginfo.h (reg_classes_intersect_p): Change arguments type to
18027         reg_class_t.
18028         * rtl.h (reg_classes_intersect_p): Adjust prototype.
18029
18030         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18031         Remove macros.
18032         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
18033         rs6000_memory_move_cost): Remove
18034         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
18035         TARGET_MEMORY_MOVE_COST): Define.
18036         (rs6000_register_move_cost): Make static. Change arguments type from
18037         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
18038         (rs6000_memory_move_cost): Make static. Change arguments type from
18039         'enum reg_class' to reg_class_t.
18040
18041 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
18042
18043         PR middle-end/42505
18044         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
18045         lookup code into....
18046         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
18047         new functions.
18048         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
18049         * cfgloopanal.c (target_clobbered_regs): Define.
18050         (init_set_costs): Initialize target_clobbered_regs.
18051         (estimate_reg_pressure_cost): Add call_p argument.  When true,
18052         adjust the number of available registers to exclude the
18053         call-clobbered registers.
18054         * cfgloop.h (target_clobbered_regs): Declare.
18055         (estimate_reg_pressure_cost): Adjust declaration.
18056         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
18057         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
18058         (determine_set_costs): Dump target_clobbered_regs.
18059         (loop_body_includes_call): New function.
18060         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
18061         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
18062         call_p flag through.
18063         (best_gain_for_invariant): Likewise.
18064         (find_invariants_to_move): Likewise.
18065         (move_single_loop_invariants): Likewise, using already-computed
18066         has_call field.
18067
18068 2010-07-10  Richard Guenther  <rguenther@suse.de>
18069             Joern Rennecke  <joern.rennecke@embecosm.com>
18070
18071         PR debug/44832
18072         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
18073         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
18074         unless they have DECL_IGNORED_P set.
18075
18076 2010-07-10  Richard Guenther  <rguenther@suse.de>
18077
18078         PR lto/44889
18079         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
18080         helper function.
18081         (gimple_types_compatible_p): Similar to pointed-to
18082         types allow and merge a mix of complete and incomplete aggregate.
18083         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
18084         (iterative_hash_gimple_type): Adjust for that.
18085
18086 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
18087
18088         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
18089
18090 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
18091
18092         PR objc/44140
18093         * config/darwin.c (output_objc_section_asm_op): Save and restore
18094         section when outputting ObjC section list.
18095
18096 2010-07-09  Jan Hubicka  <jh@suse.cz>
18097
18098         * lto-streamer-out.c (produce_symtab): Do not write alias
18099         cgraph/varpool nodes.
18100
18101 2010-07-09  Jan Hubicka  <jh@suse.cz>
18102
18103         * tree-inline.c (declare_return_variable): Fix ICE while
18104         inlining DECL_BY_VALUE function not in SSA form
18105
18106 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
18107
18108         PR tree-optimization/44576
18109         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
18110         New.  Pull out from is_loop_prefetching_profitable to implement
18111         the trip count to ahead ratio heuristic.
18112         (mem_ref_count_reasonable_p): New.  Pull out from
18113         is_loop_prefetching_profitable to implement the instruction to
18114         memory reference ratio heuristic.  Also consider not reasonable if
18115         the memory reference count is above a threshold (to avoid
18116         explosive compilation time.
18117         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
18118         is_loop_prefetching_profitable to implement the instruction to
18119         prefetch ratio heuristic.
18120         (is_loop_prefetching_profitable): Removed.
18121         (loop_prefetch_arrays): Distribute the cost analysis across the
18122         function to allow early exit of the prefetch analysis.
18123         is_loop_prefetching_profitable is splitted into three functions,
18124         with each one called as early as possible.
18125         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
18126         number of memory references in a loop is considered too many.
18127
18128 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
18129
18130         * reload.c (find_reloads): Don't clear badop if we have a winreg
18131         alternative, but not win, and the class only has fixed regs.
18132         * hard-reg-set.h (class_only_fixed_regs): Declare.
18133         * reginfo.c (class_only_fixed_regs): New array.
18134         (init_reg_sets_1): Initialize it.
18135         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
18136         discourage alternatives using the stack pointer.
18137
18138         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
18139
18140         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
18141
18142         * config/arm/arm.md (cbranchqi4): Fix array size.
18143         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
18144         calculating length.
18145
18146 2010-07-09  Richard Guenther  <rguenther@suse.de>
18147
18148         * gimple.c (struct type_fixup_s): New struct and VEC type.
18149         (gimple_register_type_fixups): New static global.
18150         (gimple_queue_type_fixup): New function.
18151         (gimple_types_compatible_p): Queue type fixups instead of
18152         applying them here.
18153         (gimple_register_type): Apply queued fixups for the
18154         canonical type.  Empty the type fixup queue.
18155
18156 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
18157
18158         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
18159         * configure: Regenerate.
18160         * config.in: Ditto.
18161
18162 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
18163             Denys Vlasenko  <dvlasenk@redhat.com>
18164             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18165
18166         PR tree-optimization/28632
18167         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
18168         (extract_range_from_binary_expr): Further optimize
18169         BIT_AND_EXPR and BIT_IOR_EXPR.
18170
18171 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
18172
18173         * tree-if-conv.c (fold_or_predicates): New.
18174         (add_to_predicate_list): Call it.
18175
18176 2010-07-09  Richard Guenther  <rguenther@suse.de>
18177
18178         PR middle-end/44890
18179         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
18180         if base is a pointer.
18181         * tree-cfg.c (verify_expr): Update MEM_REF checking.
18182
18183 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
18184
18185         PR target/44877
18186         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
18187         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
18188         builtin mask for load/store builtins.
18189
18190 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
18191
18192         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
18193         for "lock addl".
18194         * configure: Regenerate.
18195         * config/i386/i386.c (ix86_print_operand) <case ';'>:
18196         Remove TARGET_MACHO.
18197
18198 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
18199
18200         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
18201         default ISA flags.
18202         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
18203
18204 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
18205
18206         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
18207
18208 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18209
18210         * config/picochip/picochip.md (commsTestPort): Emit more
18211         efficient sequence for tstport instruction.
18212
18213 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
18214
18215         * config/i386/i386.c (ix86_veclib_handler): Make static.
18216
18217 2010-07-09  Richard Guenther  <rguenther@suse.de>
18218
18219         PR tree-optimization/44852
18220         * tree-ssa-alias.c: Include toplev.h for exact_log2.
18221         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
18222         in MEM_REF.
18223         (indirect_refs_may_alias_p): Likewise.
18224         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
18225
18226 2010-07-09  Richard Guenther  <rguenther@suse.de>
18227
18228         PR tree-optimization/44882
18229         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
18230         sets do conflict.
18231         (vectorizable_load): Likewise.
18232
18233 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
18234
18235         PR target/40657
18236         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
18237         All callers changed.
18238         Handle the case when we're called for the epilogue.
18239         (thumb_unexpanded_epilogue): Use it.
18240         (thumb1_expand_epilogue): Likewise.
18241
18242 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
18243
18244         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
18245         both ranges are range_int_cst_p with non-negative minimum,
18246         try harder to derive smaller range.
18247
18248 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18249
18250         * genrecog.c: Include diagnostic-core.h before toplev.h.
18251         * genoutput.c: Likewise.
18252         * genextract.c: Likewise.
18253         * genautomata.c: Likewise.
18254         * genemit.c: Likewise.
18255         * genpeep.c: Likewise.
18256         * genattrtab.c: Likewise.
18257         * genconditions.c: Likewise.
18258         * genpreds.c: Likewise.
18259
18260 2010-07-08  Andi Kleen  <ak@linux.intel.com>
18261
18262         * lto-section-in.c (lto_section_name): Add missing comma.
18263
18264 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
18265
18266         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
18267         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
18268         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
18269         (ia64_override_options): Rename to...
18270         (ia64_option_override): ... this one. Make static.
18271
18272 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
18273
18274         PR middle-end/44843
18275         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
18276         pointed-to type of the offset in a MEM_REF to compute the alignment.
18277
18278 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
18279
18280         * final.c (final_scan_insn): Replace
18281         TARGET_UNWIND_INFO macro check by unwind_emit
18282         hook NULL check.
18283         * targhooks.c (default_unwind_emit): Removed.
18284         * targhooks.h (default_unwind_emit): Likewise.
18285         * target.def (unwind_emit): Set default value to NULL.
18286
18287         * config/i386/i386-protos.h (ix86_asm_output_function_label):
18288         New prototype.
18289         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
18290         for NULL fntype argument and allow 64-bit targets.
18291         (ix86_asm_output_function_label): New function.
18292         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
18293         (ix86_handle_fndecl_attribute): Likewise.
18294         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
18295         * doc/doc/tm.texi: Regenerated.
18296         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
18297         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
18298         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
18299         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
18300         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18301         * config/elfos.h: Likewise.
18302         * config/i386/cygming.h: Likewise.
18303         * config/netbsd-aout.h: Likewise.
18304         * config/openbsd.h: Likewise.
18305         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
18306         by ix86_asm_output_function_label function call.
18307         * varasm.c (assemble_start_function): Use
18308         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18309
18310 2010-07-08  Jan Hubicka  <jh@suse.cz>
18311
18312         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
18313         New function.
18314         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
18315         Declare.
18316         * ipa-cp.c (ipcp_estimate_growth): Use it.
18317         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
18318         Likewise.
18319
18320 2010-07-08  Jan Hubicka  <jh@suse.cz>
18321
18322         * tree-inline.c (declare_return_variable): Allocate annotation for new
18323         temporary.
18324
18325 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
18326
18327         PR tree-optimization/44710
18328         * tree-if-conv.c (parse_predicate): New.
18329         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
18330         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
18331
18332 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
18333
18334         * common.opt (ftree-loop-if-convert): New flag.
18335         * doc/invoke.texi (ftree-loop-if-convert): Documented.
18336         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
18337         when flag_tree_loop_if_convert is set.
18338
18339 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
18340
18341         * config/i386/i386.c: Use short syntax for function calls
18342         through function pointers.
18343         * config/i386/i386.md: Ditto.
18344
18345 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
18346
18347         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
18348
18349 2010-07-08  Richard Guenther  <rguenther@suse.de>
18350
18351         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
18352         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
18353
18354 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
18355
18356         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
18357         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
18358         (loc_list_from_tree): Likewise.
18359         (output_loc_operands): Handle outputting DW_OP_const[48]u
18360         with loc->dtprel set.
18361         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
18362
18363 2010-07-08  Jan Hubicka  <jh@suse.cz>
18364
18365         * ipa.c: Include pointer-set.h
18366         (cgraph_externally_visible_p): New attribute ALIASED;
18367         when in LTO, hidden symbols are local unless they are aliased.
18368         (function_and_variable_visibility): Compute aliased nodes;
18369         handle LTO and hidden symbol on functions and vars.
18370         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
18371         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
18372
18373 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
18374
18375         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18376         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18377         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18378         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18379         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18380         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
18381         (ix86_gen_probe_stack_range): Likewise.
18382         (override_options): Set them.
18383         (ix86_target_stack_probe): New function.
18384         (ix86_compute_frame_layout): Force use of push instructions to
18385         save registers if stack checking with probes is enabled.
18386         (get_scratch_register_on_entry): New function.
18387         (release_scratch_register_on_entry): Likewise.
18388         (ix86_adjust_stack_and_probe): Likewise.
18389         (output_adjust_stack_and_probe): Likewise.
18390         (ix86_emit_probe_stack_range): Likewise.
18391         (output_probe_stack_range): Likewise.
18392         (ix86_expand_prologue): Emit stack checking code if static built-in
18393         stack checking is enabled.
18394         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
18395         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
18396         (output_adjust_stack_and_probe): Likewise.
18397         (output_probe_stack_range): Likewise.
18398         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18399         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
18400         TARGET_STACK_PROBE.
18401         (allocate_stack_worker_64): Likewise.
18402         (allocate_stack): Likewise.
18403         (adjust_stack_and_probe): New insn.
18404         (probe_stack_range): Likewise.
18405
18406 2010-07-08  Richard Guenther  <rguenther@suse.de>
18407
18408         PR tree-optimization/44831
18409         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
18410         a MEM_REF preserving TBAA info of the original dereference.
18411         Dereference the original pointer if the address is not invariant.
18412         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
18413         at least one invariant address that we are going to dereference.
18414
18415 2010-07-08  Richard Guenther  <rguenther@suse.de>
18416
18417         PR tree-optimization/44861
18418         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
18419         information when building MEM_REFs.
18420         (vectorizable_load): Likewise.
18421         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18422
18423 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
18424
18425         * config/sol2-c.c: Do not include diagnostic-core.h.
18426
18427 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18428
18429         PR bootstrap/44768
18430         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
18431         with respect to current_function_decl. Pass decl of the function.
18432         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
18433         * ipa-inline.c (compute_inline_parameters): Pass decl to
18434         estimated_stack_frame_size.
18435
18436 2010-07-08  Richard Guenther  <rguenther@suse.de>
18437
18438         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18439         New function.
18440         (valueize_refs): Call it.
18441
18442 2010-07-08  Richard Guenther  <rguenther@suse.de>
18443
18444         PR rtl-optimization/44838
18445         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
18446         SSA form do not use pointer equivalence.
18447
18448 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
18449
18450         * dwarf2out.c (AT_linkage_name): Delete.
18451         (add_linkage_attr): New function.
18452         (add_linkage_name): Call it to emit the linkage attribute.
18453         (dwarf2out_finish): Likewise.
18454         (move_linkage_attr): Explicitly accept both attribute variants.
18455
18456 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18457
18458         * toplev.h: Do not include diagnostic-core.h.
18459         Include diagnostic-core.h in every file that includes toplev.h.
18460         * c-tree.h: Do not include toplev.h.
18461         * pretty-print.h: Update comment.
18462         * Makefile.in: Update dependencies.
18463         * alias.c: Include diagnostic-core.h in every file that includes
18464         toplev.h.
18465         * attribs.c: Likewise.
18466         * auto-inc-dec.c: Likewise.
18467         * bb-reorder.c: Likewise.
18468         * bt-load.c: Likewise.
18469         * caller-save.c: Likewise.
18470         * calls.c: Likewise.
18471         * cfg.c: Likewise.
18472         * cfganal.c: Likewise.
18473         * cfgbuild.c: Likewise.
18474         * cfgcleanup.c: Likewise.
18475         * cfghooks.c: Likewise.
18476         * cfgloop.c: Likewise.
18477         * combine.c: Likewise.
18478         * config/alpha/alpha.c: Likewise.
18479         * config/arc/arc.c: Likewise.
18480         * config/arm/arm.c: Likewise.
18481         * config/arm/pe.c: Likewise.
18482         * config/avr/avr.c: Likewise.
18483         * config/bfin/bfin.c: Likewise.
18484         * config/cris/cris.c: Likewise.
18485         * config/crx/crx.c: Likewise.
18486         * config/darwin-c.c: Likewise.
18487         * config/darwin.c: Likewise.
18488         * config/fr30/fr30.c: Likewise.
18489         * config/frv/frv.c: Likewise.
18490         * config/h8300/h8300.c: Likewise.
18491         * config/host-darwin.c: Likewise.
18492         * config/i386/i386.c: Likewise.
18493         * config/i386/netware.c: Likewise.
18494         * config/i386/nwld.c: Likewise.
18495         * config/i386/winnt-cxx.c: Likewise.
18496         * config/i386/winnt-stubs.c: Likewise.
18497         * config/i386/winnt.c: Likewise.
18498         * config/ia64/ia64-c.c: Likewise.
18499         * config/ia64/ia64.c: Likewise.
18500         * config/iq2000/iq2000.c: Likewise.
18501         * config/lm32/lm32.c: Likewise.
18502         * config/m32c/m32c-pragma.c: Likewise.
18503         * config/m32c/m32c.c: Likewise.
18504         * config/m32r/m32r.c: Likewise.
18505         * config/m68hc11/m68hc11.c: Likewise.
18506         * config/m68k/m68k.c: Likewise.
18507         * config/mcore/mcore.c: Likewise.
18508         * config/mep/mep-pragma.c: Likewise.
18509         * config/mep/mep.c: Likewise.
18510         * config/mmix/mmix.c: Likewise.
18511         * config/mn10300/mn10300.c: Likewise.
18512         * config/moxie/moxie.c: Likewise.
18513         * config/pa/pa.c: Likewise.
18514         * config/pdp11/pdp11.c: Likewise.
18515         * config/picochip/picochip.c: Likewise.
18516         * config/rs6000/rs6000-c.c: Likewise.
18517         * config/rs6000/rs6000.c: Likewise.
18518         * config/rx/rx.c: Likewise.
18519         * config/s390/s390.c: Likewise.
18520         * config/score/score.c: Likewise.
18521         * config/score/score3.c: Likewise.
18522         * config/score/score7.c: Likewise.
18523         * config/sh/sh.c: Likewise.
18524         * config/sh/symbian-base.c: Likewise.
18525         * config/sh/symbian-c.c: Likewise.
18526         * config/sh/symbian-cxx.c: Likewise.
18527         * config/sol2-c.c: Likewise.
18528         * config/sol2.c: Likewise.
18529         * config/sparc/sparc.c: Likewise.
18530         * config/spu/spu.c: Likewise.
18531         * config/stormy16/stormy16.c: Likewise.
18532         * config/v850/v850-c.c: Likewise.
18533         * config/v850/v850.c: Likewise.
18534         * config/vax/vax.c: Likewise.
18535         * config/vxworks.c: Likewise.
18536         * config/xtensa/xtensa.c: Likewise.
18537         * convert.c: Likewise.
18538         * cse.c: Likewise.
18539         * cselib.c: Likewise.
18540         * dbgcnt.c: Likewise.
18541         * dbxout.c: Likewise.
18542         * ddg.c: Likewise.
18543         * dominance.c: Likewise.
18544         * emit-rtl.c: Likewise.
18545         * explow.c: Likewise.
18546         * expmed.c: Likewise.
18547         * fixed-value.c: Likewise.
18548         * fold-const.c: Likewise.
18549         * fwprop.c: Likewise.
18550         * gcse.c: Likewise.
18551         * ggc-common.c: Likewise.
18552         * ggc-page.c: Likewise.
18553         * ggc-zone.c: Likewise.
18554         * gimple-low.c: Likewise.
18555         * gimplify.c: Likewise.
18556         * graph.c: Likewise.
18557         * haifa-sched.c: Likewise.
18558         * ifcvt.c: Likewise.
18559         * implicit-zee.c: Likewise.
18560         * integrate.c: Likewise.
18561         * ira-build.c: Likewise.
18562         * ira-color.c: Likewise.
18563         * ira-conflicts.c: Likewise.
18564         * ira-costs.c: Likewise.
18565         * ira-lives.c: Likewise.
18566         * ira.c: Likewise.
18567         * lists.c: Likewise.
18568         * loop-doloop.c: Likewise.
18569         * loop-iv.c: Likewise.
18570         * lto-opts.c: Likewise.
18571         * lto-symtab.c: Likewise.
18572         * main.c: Likewise.
18573         * modulo-sched.c: Likewise.
18574         * optabs.c: Likewise.
18575         * params.c: Likewise.
18576         * plugin.c: Likewise.
18577         * postreload-gcse.c: Likewise.
18578         * postreload.c: Likewise.
18579         * predict.c: Likewise.
18580         * profile.c: Likewise.
18581         * real.c: Likewise.
18582         * regcprop.c: Likewise.
18583         * reginfo.c: Likewise.
18584         * regmove.c: Likewise.
18585         * reorg.c: Likewise.
18586         * resource.c: Likewise.
18587         * rtl.c: Likewise.
18588         * rtlanal.c: Likewise.
18589         * sched-deps.c: Likewise.
18590         * sched-ebb.c: Likewise.
18591         * sched-rgn.c: Likewise.
18592         * sdbout.c: Likewise.
18593         * sel-sched-dump.c: Likewise.
18594         * sel-sched-ir.c: Likewise.
18595         * simplify-rtx.c: Likewise.
18596         * stmt.c: Likewise.
18597         * stor-layout.c: Likewise.
18598         * store-motion.c: Likewise.
18599         * targhooks.c: Likewise.
18600         * tree-cfg.c: Likewise.
18601         * tree-cfgcleanup.c: Likewise.
18602         * tree-dump.c: Likewise.
18603         * tree-eh.c: Likewise.
18604         * tree-inline.c: Likewise.
18605         * tree-nomudflap.c: Likewise.
18606         * tree-object-size.c: Likewise.
18607         * tree-optimize.c: Likewise.
18608         * tree-outof-ssa.c: Likewise.
18609         * tree-phinodes.c: Likewise.
18610         * tree-profile.c: Likewise.
18611         * tree-ssa-ccp.c: Likewise.
18612         * tree-ssa-coalesce.c: Likewise.
18613         * tree-ssa-live.c: Likewise.
18614         * tree-ssa-loop-niter.c: Likewise.
18615         * tree-ssa-loop-prefetch.c: Likewise.
18616         * tree-ssa-loop.c: Likewise.
18617         * tree-ssa-structalias.c: Likewise.
18618         * tree-ssa-uninit.c: Likewise.
18619         * tree-ssa.c: Likewise.
18620         * tree-vect-data-refs.c: Likewise.
18621         * tree-vect-loop-manip.c: Likewise.
18622         * tree-vect-loop.c: Likewise.
18623         * tree-vect-patterns.c: Likewise.
18624         * tree-vect-stmts.c: Likewise.
18625         * tree-vrp.c: Likewise.
18626         * varasm.c: Likewise.
18627         * vec.c: Likewise.
18628         * web.c: Likewise.
18629         * xcoffout.c: Likewise.
18630
18631 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
18632
18633         * gengtype.c (write_field_root): New function.
18634         (write_root): Use it.
18635
18636 2010-07-07  Wei Guozhi  <carrot@google.com>
18637
18638         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18639         of lowest bits to lshift/compare): Add a missing line.
18640
18641 2010-07-07  Wei Guozhi  <carrot@google.com>
18642
18643         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18644         of lowest bits to lshift/compare): New.
18645
18646 2010-07-07  Tom Tromey  <tromey@redhat.com>
18647
18648         * doc/tm.texi: Update.
18649         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
18650         Add @hook.
18651         * target.def (want_debug_pub_sections): New hook.
18652         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
18653         * dwarf2out.c (add_pubname_string): Check
18654         targetm.want_debug_pub_sections.
18655         (add_pubname): Likewise.
18656         (add_pubtype): Likewise.
18657
18658 2010-07-07  Jie Zhang  <jie@codesourcery.com>
18659
18660         * genautomata.c (output_automata_list_min_issue_delay_code):
18661         Correctly decompress min_issue_delay.
18662
18663 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18664
18665         PR rtl-optimization/44404
18666         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
18667         possible, use reg_overlap_mentioned_p instead.
18668
18669 2010-07-07  Duncan Sands  <baldrick@free.fr>
18670
18671         PR middle-end/41355
18672         * tree.c (build_function_type_skip_args): Copy the original type using
18673         build_distinct_type_copy rather than copy_node.
18674
18675 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18676
18677         PR target/44850
18678         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
18679         revision 161876.
18680         (ix86_expand_prologue): Likewise.
18681         (ix86_handle_fndecl_attribute): Likewise.
18682         (ix86_asm_declare_function_name): Likewise.
18683         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18684         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18685         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
18686         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
18687         * doc/extend.texi: Likewise.
18688
18689 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18690
18691         PR target/44844
18692         * config/i386/i386.md (rdrand<mode>): Changed to expand to
18693         retry if the carry flag isn't valid.
18694         (rdrand<mode>_1): New.
18695
18696 2010-07-07  Richard Guenther  <rguenther@suse.de>
18697
18698         PR middle-end/44790
18699         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
18700         for expanding the constant offset for MEM_REFs.
18701
18702 2010-07-07  Richard Guenther  <rguenther@suse.de>
18703
18704         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
18705         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
18706         * gimple.h (is_gimple_operand): Remove.
18707         * gimple.c (is_gimple_operand): Likewise.
18708         (walk_gimple_op): Fix wi->val_only setting for calls.
18709         * tree-cfg.c (verify_gimple_call): Fix argument validation.
18710         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
18711         invalid gimple calls.
18712
18713 2010-07-06  Jan Hubicka  <jh@suse.cz>
18714
18715         * lto-cgraph.c (output_cgraph): Add missing declaration.
18716
18717 2010-07-06  Jan Hubicka  <jh@suse.cz>
18718
18719         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
18720         partition.
18721
18722 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
18723
18724         * doc/gimple.texi (GIMPLE_DEBUG): Document.
18725         * doc/rtl.texi (Debug Information): New node.
18726         (NOTE_INSN_VAR_LOCATION): Document.
18727         (debug_insn): Likewise.
18728         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
18729
18730 2010-07-07  Jan Hubicka  <jh@suse.cz>
18731
18732         With parts by Richard Guenther.
18733
18734         PR middle-end/44813
18735         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
18736         for functions passed by reference.
18737         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
18738         in memory when passed by reference.
18739         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
18740         beggining.
18741         * ipa-split.c (split_function): Cleanup way return value is passed;
18742         handle SSA DECL_BY_REFERENCE retvals.
18743         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
18744         DECL_BY_REFERENCE is set.
18745         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
18746         find_what_p_points_to): Handle RESULT_DECL.
18747         * tree-inline.c (declare_return_variable): Get new entry_block argument;
18748         when passing by reference ensure that RESULT_DECL is gimple_val.
18749         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
18750         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
18751
18752 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18753
18754         PR rtl-optimization/44787
18755         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
18756         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
18757
18758 2010-07-06  Jan Hubicka  <jh@suse.cz>
18759
18760         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
18761         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
18762         with body can prevail.
18763         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
18764         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
18765         * cgraph.c (cgraph_get_node_or_alias): New function.
18766         * cgraph.h (cgraph_get_node_or_alias): Declare.
18767
18768 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
18769
18770         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
18771         support.
18772         (ix86_expand_prologue): Likewise.
18773         (ix86_handle_fndecl_attribute): Likewise.
18774         (ix86_asm_declare_function_name): New function for
18775         ASM_DECLARE_FUNCTION_NAME.
18776         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
18777         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
18778         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
18779         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
18780         * doc/extend.texi: Adjust documentation about ms_hook_prologue
18781         attribute.
18782
18783 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
18784
18785         * config/i386/i386.md (immediate_operand): New mode attribute.
18786
18787         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
18788         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
18789         using P mode iterator.
18790         (pro_epilogue_adjust_stack_di_2): Rename from
18791         pro_epilogue_adjust_stack_rex64_2.
18792
18793         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
18794
18795 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
18796
18797         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
18798         through gen_mov_insv_1 function pointer.
18799         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
18800         gen_truncxf<mode>2 through gen_truncxf function pointer.
18801         (remainder<mode>3): Ditto.
18802         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
18803         (allocate_stack): Call gen_allocate_stack_worker_64 or
18804         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
18805         function pointer.
18806         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
18807         function pointer.
18808
18809 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
18810
18811         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
18812         operand constraint instead of <r><i>m.
18813
18814 2010-07-06  Richard Guenther  <rguenther@suse.de>
18815
18816         PR middle-end/44828
18817         * convert.c (convert_to_integer): Watch out for overflowing
18818         MULT_EXPR as well.
18819
18820 2010-07-05  Jan Hubicka  <jh@suse.cz>
18821
18822         * lto-streamer.c (write_symbol_vec): Rename to ...
18823         (write_symbol) ... this one; write only symbol given and when
18824         present in cache. Sanity check that what is defined is present
18825         in cgraph/varpool with body/finalized decl.
18826         (write_symbols_of_kind): Remove.
18827         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
18828         pairs to produce symtab.
18829         (produce_asm_for_decls): Update call of produce_symtab; don't do so
18830         when doing WPA streaming.
18831
18832 2010-07-05  Jan Hubicka  <jh@suse.cz>
18833
18834         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
18835         function is still available to fold into.
18836
18837 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
18838
18839         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
18840         * function.h (struct_function): Change type of local_decls field
18841         to a VEC.
18842         (add_local_decl): New function.
18843         (FOR_EACH_LOCAL_DECL): New macro.
18844         * cfgexpand.c (init_vars_expansion): Adjust for new type of
18845         cfun->local_decls.
18846         (estimated_stack_frame_size): Likewise.
18847         (expand_used_vars): Likewise.
18848         * cgraphbuild.c (build_cgraph_edges): Likewise.
18849         * function.c (instantiate_decls_1): Likewise.
18850         * ipa-struct-reorg.c (build_data_structure): Likewise.
18851         * ipa-type-escape.c (analyze_function): Likewise.
18852         * lto-streamer-in.c (input_function): Likewise.
18853         * lto-streamer-out.c (output_function): Likewise.
18854         * tree-ssa-live.c (remove_unused_locals): Likewise.
18855         * tree.c (free_lang_data_in_decl): Likewise.
18856         (find_decls_types_in_node): Likewise.
18857         * omp-low.c (remove_exit_barrier): Likewise.
18858         (expand_omp_taskreg): Likewise.
18859         (list2chain): Rename to...
18860         (vec2chain): ...this.  Adjust.
18861         * cgraphunit.c (assemble_thunk): Call add_local_decl.
18862         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
18863         * gimple-low.c (record_vars_into): Likewise.
18864         * tree-inline.c (remap_decls): Likewise.
18865         (declare_return_variable): Likewise.
18866         (declare_inline_vars): Likewise.
18867         (copy_forbidden): Adjust for new type of cfun->local_decls.
18868         (add_local_variables): New function.
18869         (expand_call_inline): Call it.
18870         (tree_function_versioning): Likewise.
18871
18872 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18873
18874         AVX Programming Reference (June, 2010)
18875         * config/i386/cpuid.h (bit_F16C): New.
18876         (bit_RDRND): Likewise.
18877         (bit_FSGSBASE): Likewise.
18878
18879         * config/i386/i386-builtin-types.def: Add
18880         "DEF_FUNCTION_TYPE (UINT16)", function types for
18881         float16 <-> float conversions and
18882         "DEF_FUNCTION_TYPE (VOID, UINT64)".
18883
18884         * config/i386/i386-c.c (ix86_target_macros_internal): Support
18885         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
18886         OPTION_MASK_ISA_F16C.
18887
18888         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
18889         (OPTION_MASK_ISA_RDRND_SET): Likewise.
18890         (OPTION_MASK_ISA_F16C_SET): Likewise.
18891         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
18892         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
18893         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
18894         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
18895         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
18896         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
18897         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
18898         (override_options): Handle them.
18899         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
18900         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
18901         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
18902         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
18903         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
18904         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
18905         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
18906         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
18907         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
18908         (bdesc_args): Likewise.
18909         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
18910         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
18911         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
18912         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
18913         Handle non-memory store.
18914
18915         * config/i386/i386.h (TARGET_FSGSBASE): New.
18916         (TARGET_RDRND): Likewise.
18917         (TARGET_F12C): Likewise.
18918
18919         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
18920         (UNSPEC_VCVTPS2PH): Likewise.
18921         (UNSPECV_RDFSBASE): Likewise.
18922         (UNSPECV_RDGSBASE): Likewise.
18923         (UNSPECV_WRFSBASE): Likewise.
18924         (UNSPECV_WRGSBASE): Likewise.
18925         (UNSPECV_RDRAND): Likewise.
18926         (rdfsbase<mode>): Likewise.
18927         (rdgsbase<mode>): Likewise.
18928         (wrfsbase<mode>): Likewise.
18929         (wrgsbase<mode>): Likewise.
18930         (rdrand<mode>): Likewise.
18931
18932         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
18933
18934         * config/i386/immintrin.h (_rdrand_u16): New.
18935         (_rdrand_u32): Likewise.
18936         (_readfsbase_u32): Likewise.
18937         (_readfsbase_u64): Likewise.
18938         (_readgsbase_u32): Likewise.
18939         (_readgsbase_u64): Likewise.
18940         (_writefsbase_u32): Likewise.
18941         (_writefsbase_u64): Likewise.
18942         (_writegsbase_u32): Likewise.
18943         (_writegsbase_u64): Likewise.
18944         (_rdrand_u64): Likewise.
18945         (_cvtsh_ss): Likewise.
18946         (_mm_cvtph_ps): Likewise.
18947         (_mm256_cvtph_ps): Likewise.
18948         (_cvtss_sh): Likewise.
18949         (_mm_cvtps_ph): Likewise.
18950         (_mm256_cvtps_ph): Likewise.
18951
18952         * config/i386/sse.md (vcvtph2ps): New.
18953         (*vcvtph2ps_load): Likewise.
18954         (vcvtph2ps256): Likewise.
18955         (vcvtps2ph): Likewise.
18956         (*vcvtps2ph): Likewise.
18957         (*vcvtps2ph_store): Likewise.
18958         (vcvtps2ph256): Likewise.
18959
18960         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
18961
18962         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
18963
18964 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18965
18966         PR bootstrap/44512
18967         * genenums.c (main): Output include of insn-constants.h
18968         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
18969
18970 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
18971
18972         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
18973         (override_options): Initialize it.
18974         (ix86_expand_prologue): Use it.
18975
18976 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
18977
18978         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
18979
18980 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
18981
18982         * double-int.h (fit_double_type): Remove declaration.
18983         * double-int.c (fit_double_type): Remove function.
18984         * tree.h (int_fits_type_p): Adjust prototype.
18985         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
18986         instead of fit_double_type.
18987         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
18988         instead of fit_double_type and build_int_cst_wide.
18989         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
18990         instead of fit_double_type and build_int_cst_wide.
18991         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
18992         of fit_double_type.
18993
18994 2010-07-05  Jan Hubicka  <jh@suse.cz>
18995
18996         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
18997         in_other_partition.
18998         * lto-cgraph.c (referenced_from_other_partition_p,
18999         reachable_from_other_partition_p): Use in_other_partition flags.
19000         (output_node, output_varpool_node): COMDAT nodes always have private
19001         copies and thus are never used from other partition.
19002
19003 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
19004
19005         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19006         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
19007         * config/ia64/ia64.c Include reload.h.
19008         (ia64_memory_move_cost): New function.
19009         (TARGET_MEMORY_MOVE_COST): Define.
19010         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
19011         memory_move_cost.
19012
19013 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
19014
19015         PR middle-end/42505
19016         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
19017         comments about cost model.
19018         (try_add_cand_for):  Add second strategy for choosing initial set
19019         based on original IVs, controlled by ORIGINALP argument.
19020         (get_initial_solution): Add ORIGINALP argument.
19021         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
19022         (find_optimal_iv_set): Try two different strategies for choosing
19023         the IV set, and return the one with lower cost.
19024
19025 2010-07-05  Richard Guenther  <rguenther@suse.de>
19026
19027         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
19028
19029 2010-07-05  Richard Guenther  <rguenther@suse.de>
19030
19031         * tree.c (reference_alias_ptr_type): New function.
19032         * tree.h (reference_alias_ptr_type): Declare.
19033         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
19034         allow non-TARGET_MEM_REF new refs.
19035         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
19036         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
19037         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
19038         (create_mem_ref): Get alias pointer type.  Adjust calls to
19039         create_mem_ref_raw.
19040         (maybe_fold_tmr): Likewise.
19041         * tree-flow.h (create_mem_ref): Adjust prototype.
19042
19043 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
19044
19045         PR c++/44808
19046         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
19047         *from_p is VAR_DECL.
19048
19049 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19050
19051         * tree.h (build_call_list): Remove.
19052         * tree.c (build_call_list): Remove.
19053
19054 2010-07-05  Richard Guenther  <rguenther@suse.de>
19055
19056         * double-int.h (double_int_sub): Declare.
19057         * double-int.c (double_int_sub): New function.
19058         * dwarf2out.c (field_byte_offset): Use it.
19059         * fixed-value.c (do_fixed_add): Likewise.
19060         (do_fixed_multiply): Likewise.
19061         (do_fixed_divide): Likewise.
19062         * tree-predcom.c (add_ref_to_chain): Likewise.
19063         (determine_roots_comp): Likewise.
19064         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19065
19066 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19067
19068         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
19069         implementations.
19070
19071 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
19072
19073         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
19074         * arm-modes.def (CC_NOTB): Don't define.
19075         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
19076         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
19077         (LTUGEU): New code_iterator.
19078         (cnb, optab): New corresponding code_attrs.
19079         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
19080         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
19081         using LTUGEU.
19082         (addsi3_carryin_shift_<optab>): Likewise.
19083         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
19084         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
19085         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
19086         (subsi3_compare): Renamed from subsi3_compare0_c.
19087         Change CC_NOTB to CC.
19088         (arm_subsi3_insn): Allow constants for operand 0.
19089         (compare_scc peephole for eq case): New.
19090         (compare_scc splitters): Change CC_NOTB to CC.
19091
19092 2010-07-05  Richard Guenther  <rguenther@suse.de>
19093
19094         * tree-ssa-loop-im.c (for_each_index): Do not handle
19095         ALIGN_INDIRECT_REF.
19096         (gen_lsm_tmp_name): Likewise.
19097         * tree-dump.c (dequeue_and_dump): Likewise.
19098         * tree-pretty-print.c (dump_generic_node): Likewise.
19099         (op_code_prio): Likewise.
19100         (op_symbol_code): Likewise.
19101         * tree.c (staticp): Likewise.
19102         (build1_stat): Likewise.
19103         * tree.h (INDIRECT_REF_P): Likewise.
19104         * fold-const.c (maybe_lvalue_p): Likewise.
19105         (operand_equal_p): Likewise.
19106         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19107         (ao_ref_init_from_vn_reference): Likewise.
19108         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
19109         (find_interesting_uses_address): Likewise.
19110         * dwarf2out.c (loc_list_from_tree): Likewise.
19111         * gimplify.c (gimplify_expr): Likewise.
19112         * tree-eh.c (tree_could_trap_p): Likewise.
19113         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19114         * cfgexpand.c (expand_debug_expr): Likewise.
19115         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19116         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
19117         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
19118         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
19119         * tree-ssa-operands.c (get_expr_operands): Likewise.
19120         * expr.c (safe_from_p): Likewise.
19121         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
19122         * tree-vect-data-refs.c (vect_setup_realignment): Build
19123         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
19124         * tree-vect-stmts.c (vectorizable_load): Likewise.
19125         * tree.def (ALIGN_INDIRECT_REF): Remove.
19126
19127 2010-07-05  Richard Guenther  <rguenther@suse.de>
19128
19129         PR tree-optimization/44784
19130         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
19131         for inserted stmts.
19132         (find_or_generate_expression): Fix SCCVN insertion check.
19133
19134 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
19135
19136         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
19137         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
19138         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
19139         directives.
19140
19141 2010-07-05  Ira Rosen  <irar@il.ibm.com>
19142
19143         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
19144         statements that are not vectorized.
19145         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
19146         in INSIDE_COST.
19147
19148 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
19149
19150         PR bootstrap/44820
19151         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
19152
19153 2010-07-05  Richard Guenther  <rguenther@suse.de>
19154
19155         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
19156         RESULT_DECLs properly.
19157
19158 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19159
19160         PR rtl-optimization/44695
19161         * config/i386/i386.md (extract_code): Removed.
19162         (<u>divmodqi4): Likewise.
19163         (divmodqi4): New.
19164         (udivmodqi4): Likewise.
19165         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
19166         (udivmodhiqi3): Likewise.
19167
19168 2010-07-04  Jan Hubicka  <jh@suse.cz>
19169
19170         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
19171
19172 2010-07-04  Jan Hubicka  <jh@suse.cz>
19173
19174         * cgraphunit.c (init_cgraph): Only initialize dump file if it
19175         is not already initialized.
19176
19177 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
19178
19179         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
19180         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
19181         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
19182         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
19183         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
19184         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
19185         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
19186         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
19187         (sync_new_nand_optab): Redefine as macros.
19188         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
19189         Delete.
19190         (direct_optab_index): New enum.
19191         (direct_optab_d): New structure.
19192         (direct_optab): New typedef.
19193         (direct_optab_table): Declare.
19194         (direct_optab_handler, set_direct_optab_handler): New functions.
19195         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
19196         (sync_lock_release_optab): New macros.
19197         * optabs.c (direct_optab_table): New variable.
19198         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
19199         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
19200         cmpstr_optab and cmpstrn_optab.
19201         (emit_conditional_move): Likewise for movcc_optab.
19202         (can_conditionally_move_p): Likewise for movcc_gen_code.
19203         (init_insn_codes): Clear direct_optab_table.
19204         (init_optabs): Don't initialize the new "direct optabs" here.
19205         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
19206         vcond_gen_code.
19207         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
19208         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
19209         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
19210         (expand_sync_operation): Likewise other sync_*_optabs.
19211         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
19212         to sync_compare_and_swap_optab.
19213         (expand_sync_lock_test_and_set): Use direct_optab_handler for
19214         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
19215         to the names of both.
19216         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
19217         cmpstr_optab and cmpstrn_optab.
19218         (expand_builtin_lock_release): Likewise sync_lock_release.
19219         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
19220         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
19221         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
19222         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
19223         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
19224         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
19225         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
19226         (sync_lock_test_and_set, sync_lock_release): Delete.
19227         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
19228         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
19229         * genopinit.c (optabs): Use set_direct_optab_handler for the new
19230         macro optabs.
19231         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
19232         the "optab" local variable.  Use direct_optab_handler for optab and
19233         sync_compare_and_swap_optab.
19234         * reload1.c (reload_in_optab, reload_out_optab): Delete.
19235         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
19236         reload_in_optab and reload_out_optab.
19237         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19238         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
19239         * config/pa/pa.c (pa_secondary_reload): Likewise.
19240         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
19241         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
19242         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
19243         (VMSupportsCS8_builtin): Likewise.
19244
19245 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
19246
19247         * optabs.h (optab_handlers): Change type of insn_code to int.
19248         (optab_handler, set_optab_handler, convert_optab_handler)
19249         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
19250         CODE_FOR_nothing".
19251         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
19252         (init_insn_codes): Zero both the above arrays.
19253         (init_optabs): Never call init_insn_codes first time around.
19254
19255 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
19256
19257         * optabs.h (optab_handler, convert_optab_handler): Turn into
19258         inline functions that return an insn code.
19259         (set_optab_handler, set_convert_optab_handler): New functions.
19260         * builtins.c: Replace optab_handler(X)->insn_code with
19261         optab_handler or set_optab_handler thoughout.  Likewise
19262         convert_optab_handler(X)->insn_code with convert_optab_handler
19263         and set_convert_optab_handler.
19264         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
19265         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
19266         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
19267         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
19268         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
19269         config/spu/spu.c: Likewise.
19270
19271 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
19272
19273         PR target/44531
19274         * config.gcc (sh*-*-*): Use regular expressions instead of
19275         the 'i' modifier for sed substitutions.
19276
19277 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
19278
19279         * gimple.c (gimple_body): Comments added.
19280
19281 2010-07-04  Richard Guenther  <rguenther@suse.de>
19282
19283         PR middle-end/44809
19284         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
19285         of an INDIRECT_REF.
19286
19287 2010-07-04  Richard Guenther  <rguenther@suse.de>
19288
19289         PR tree-optimization/44479
19290         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
19291         extra SSA name copy statements which preserves points-to
19292         information.
19293         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19294         Copy points-to information for all pointers.  Properly handle
19295         MEM_REFs.
19296         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
19297         copy statements.
19298         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
19299         dependency.
19300
19301 2010-07-04  Richard Guenther  <rguenther@suse.de>
19302
19303         PR middle-end/44785
19304         * tree-inline.c (initialize_inlined_parameters): Do not
19305         re-use pointer-map slot over remap_type call.
19306
19307 2010-07-04  Richard Guenther  <rguenther@suse.de>
19308
19309         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
19310
19311 2010-07-04  Richard Guenther  <rguenther@suse.de>
19312
19313         PR tree-optimization/44656
19314         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
19315         again after value-replacing in the defintions lhs.
19316
19317 2010-07-04  Ira Rosen  <irar@il.ibm.com>
19318             Revital Eres  <eres@il.ibm.com>
19319
19320         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
19321         Document new arguments.
19322         * doc/tm.texi: Regenerate.
19323         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
19324         Handle unaligned store.
19325         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
19326         * target.def (builtin_vectorization_cost): Add new arguments.
19327         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
19328         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
19329         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
19330         (vect_vfa_segment_size): Fix indentation.
19331         * tree-vectorizer.h (struct _vect_peel_info): New.
19332         (struct _vect_peel_extended_info): New.
19333         (struct _loop_vec_info): Add new field for peeling hash table and a
19334         macro for its access.
19335         (VECT_MAX_COST): Define.
19336         (vect_get_load_cost): Declare.
19337         (vect_get_store_cost, vect_get_known_peeling_cost,
19338         vect_get_single_scalar_iteraion_cost): Likewise.
19339         (vect_supportable_dr_alignment): Add new argument.
19340         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
19341         field.
19342         (destroy_loop_vec_info): Free peeling hash table.
19343         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
19344         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
19345         vect_analyze_slp. Fix indentation.
19346         (vect_get_single_scalar_iteraion_cost): New function.
19347         (vect_get_known_peeling_cost): Likewise.
19348         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
19349         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
19350         statement. Move outside cost calculation inside unknown peeling case.
19351         Call vect_get_known_peeling_cost for known amount of peeling.
19352         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
19353         reference to the print message of forced alignment.
19354         (vect_verify_datarefs_alignment): Update call to
19355         vect_supportable_dr_alignment.
19356         (vect_get_data_access_cost): New function.
19357         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
19358         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
19359         vect_peeling_hash_choose_best_peeling): Likewise.
19360         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
19361         to store all the accesses in the loop and find best possible access to
19362         align using peeling for known alignment case. For unknown alignment
19363         check if stores are preferred or if peeling is worthy.
19364         (vect_find_same_alignment_drs): Analyze pairs of loads too.
19365         (vect_supportable_dr_alignment): Add new argument and check aligned
19366         accesses according to it.
19367         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
19368         (cost_for_stmt): Call vect_get_stmt_cost.
19369         (vect_model_simple_cost): Likewise.
19370         (vect_model_store_cost): Call vect_get_stmt_cost. Call
19371         vect_get_store_cost to calculate the cost of the statement.
19372         (vect_get_store_cost): New function.
19373         (vect_model_load_cost): Call vect_get_stmt_cost. Call
19374         vect_get_load_cost to calculate the cost of the statement.
19375         (vect_get_load_cost): New function.
19376         (vectorizable_store): Update call to vect_supportable_dr_alignment.
19377         (vectorizable_load): Likewise.
19378         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
19379         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
19380         arguments. Handle unaligned store.
19381         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
19382         (rs6000_builtin_support_vector_misalignment): Return true for word and
19383         double word alignments for VSX.
19384         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
19385         vect_supportable_dr_alignment and builtin_vectorization_cost.
19386
19387 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19388
19389         PR target/44597
19390         * config/pa/predicates.md (prefetch_cc_operand): Remove.
19391         (prefetch_nocc_operand): Likewise.
19392         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
19393         (prefetch_20): New insn.
19394         (prefetch_cc): Remove.
19395         (prefetch_nocc): Likewise.
19396
19397 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19398
19399         * expr.c (vector_mode_valid_p): Move to c-common.c.
19400         * expr.h (vector_mode_valid_p): Do not declare here.
19401         * system.h: Poison GCC_EXPR_H in front-ends.
19402         * Makefile.in: Update dependencies.
19403
19404 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19405
19406         PR target/44705
19407         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
19408
19409 2010-07-03  Jan Hubicka  <jh@suse.cz>
19410
19411         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
19412         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
19413         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
19414         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
19415         Likewise.
19416
19417         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
19418         Update timevars.V
19419         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
19420         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
19421         TV_IPA_LTO_DECL_OUT): New.
19422         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
19423
19424 2010-07-03  Jan Hubicka  <jh@suse.cz>
19425
19426         * ipa-inline.c (update_edge_key): Break out from ...
19427         update_callers_keys): ... here;
19428         (update_callee_keys): Update only the edges from caller to callee.
19429         (update_all_calle_keys): Do what update_calle_keys did.
19430         (decide_inlining_of_small_functions): Avoid recomputing of all
19431         callees when badness increase.
19432
19433 2010-07-03  Jie Zhang  <jie@codesourcery.com>
19434
19435         * config/arm/arm.c (arm_attr_length_move_neon): New.
19436         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
19437         * config/arm/neon.md (define_mode_attr V_slen): Remove.
19438         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
19439         to compute length attribute.
19440
19441 2010-07-03  Jie Zhang  <jie@codesourcery.com>
19442
19443         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
19444         as predicate for operand 1 and remove its constraint.
19445         * config/arm/predicates.md (vfp_register_operand): New.
19446         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
19447         (*push_fp_multi): Likewise.
19448
19449 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
19450
19451         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
19452
19453 2010-07-03  Jan Hubicka  <jh@suse.cz>
19454
19455         * config/i386/i386.c (override_options): Revert accidental commit.
19456
19457 2010-07-02  Le-Chun Wu  <lcwu@google.com>
19458
19459         PR c++/44128
19460         * doc/invoke.texi: Update documentation of -Wshadow.
19461
19462 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
19463             Julian Brown  <julian@codesourcery.com>
19464             Sandra Loosemore  <sandra@codesourcery.com>
19465
19466         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
19467         comparisons.  Adjust to take both operands.
19468         (arm_select_cc_mode): Handle DImode comparisons.
19469         (arm_gen_compare_reg): Generate a scratch register for DImode
19470         comparisons which require one.  Use xor for Thumb equality checks.
19471         (arm_const_double_by_immediates): New.
19472         (arm_print_operand): Allow 'Q' and 'R' for constants.
19473         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
19474         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
19475         arm_canonicalize_comparison.
19476         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
19477         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
19478         prototype.
19479         (arm_const_double_by_immediates): Declare.
19480         * config/arm/constraints.md (Di): New constraint.
19481         * config/arm/predicates.md (arm_immediate_di_operand)
19482         (arm_di_operand, cmpdi_operand): New.
19483         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
19484         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
19485         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
19486         (cstoredi4): Handle non-Cirrus also.
19487
19488 2010-07-02  Julian Brown  <julian@codesourcery.com>
19489             Sandra Loosemore  <sandra@codesourcery.com>
19490
19491         PR target/43703
19492         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
19493         (smax<mode>3): Disable for NEON float modes when
19494         flag_unsafe_math_optimizations is false.
19495         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
19496         (*mul<mode>3_neon)
19497         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
19498         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
19499         for NEON float modes when flag_unsafe_math_optimizations is false.
19500         (quad_halves_<code>v4sf): Only enable if
19501         flag_unsafe_math_optimizations is true.
19502         * doc/invoke.texi (ARM Options): Add note about floating point
19503         vectorization requiring -funsafe-math-optimizations.
19504
19505 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
19506             Julian Brown  <julian@codesourcery.com>
19507
19508         * config/arm/neon.md (UNSPEC_VABA): Delete.
19509         (UNSPEC_VABAL): Delete.
19510         (UNSPEC_VABS): Delete.
19511         (UNSPEC_VMUL_N): Delete.
19512         (adddi3_neon): New.
19513         (subdi3_neon): New.
19514         (mul<mode>3add<mode>_neon): Make the pattern named.
19515         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19516         (neon_vadd<mode>): Replace with define_expand, and move the remaining
19517         unspec parts...
19518         (neon_vadd<mode>_unspec): ...to this.
19519         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
19520         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
19521         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
19522         (neon_vaba<mode>): Rewrite in terms of vabd.
19523         (neon_vabal<mode>): Rewrite in terms of vabdl.
19524         (neon_vabs<mode>): Rewrite without unspec.
19525         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
19526         (*arm_subdi3): Likewise.
19527         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
19528         No_op attribute to disable assembly output checks.
19529         * config/arm/arm_neon.h: Regenerated.
19530         * doc/arm-neon-intrinsics.texi: Regenerated.
19531
19532 2010-07-02  Jan Hubicka  <jh@suse.cz>
19533
19534         * ipa-split.c (split_function): For aggregate values, set the return
19535         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
19536         *<retval> = fncall.part ().
19537         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
19538
19539 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
19540
19541         * config/arm/neon.md (UNSPEC_VAND): Delete.
19542         (UNSPEC_VBIC): Delete.
19543         (UNSPEC_VCLZ): Delete.
19544         (UNSPEC_VCNT): Delete.
19545         (UNSPEC_VEOR): Delete.
19546         (UNSPEC_VORN): Delete.
19547         (UNSPEC_VORR): Delete.
19548         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
19549         core registers too.
19550         (anddi3_neon): Likewise.
19551         (orndi3_neon): Likewise.
19552         (bicdi3_neon): Likewise.
19553         (xordi3_neon): Likewise.
19554         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
19555         rid of unspec and handle unused operand.
19556         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
19557         * config/arm/predicates.md (imm_for_neon_logic_operand):
19558         Require TARGET_NEON.
19559         (imm_for_neon_inv_logic_operand): Likewise.
19560         * config/arm/arm.md (define_split for logical_binary_operator):
19561         Disable for NEON registers.
19562         (anddi3): Add new define_expand, and rename the insn.  Disable
19563         this insn for NEON, where anddi3_neon now applies.
19564         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
19565         (iordi3): As for anddi3.
19566         (xordi3): Likewise.
19567         * config/arm/neon.ml (Vand): Split DImode variants and mark them
19568         as No_op to disable testing for exact instruction match.
19569         (Vorr): Likewise.
19570         (Veor): Likewise.
19571         (Vbic): Likewise.
19572         (Vorn): Likewise.
19573         * config/arm/arm_neon.h: Regenerated.
19574         * doc/arm-neon-intrinsics.texi: Regenerated.
19575
19576 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
19577
19578         * expr.h (emit_stack_probe): Declare.
19579         * explow.c (emit_stack_probe): Make global.
19580         (anti_adjust_stack_and_probe): Fix comments.
19581         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19582         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19583         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19584         * config/sparc/sparc.c: Include except.h.
19585         (sparc_emit_probe_stack_range): New function.
19586         (output_probe_stack_range): Likewise.
19587         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
19588         built-in stack checking is enabled.
19589         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
19590         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19591         (probe_stack_range): New insn.
19592
19593 2010-07-02  Richard Guenther  <rguenther@suse.de>
19594
19595         PR target/43958
19596         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
19597         for argument alignment.
19598
19599 2010-07-02  Jan Hubicka  <jh@suse.cz>
19600
19601         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
19602         walk backwards from entry_bb to check only those basic block of header
19603         that might lead to execution of split part.
19604         (consider_split) ... here.
19605         (find_return_bb): Allow assignment in return BB.
19606         (find_retval): New.
19607         (split_function): Fix name of cloned function; take care of updating
19608         return value in return_bb containing move.
19609
19610 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
19611
19612         PR target/44771
19613         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
19614         used variable insn.
19615
19616 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
19617
19618         * implicit-zee.c (combine_reaching_defs): Fix long lines.
19619         (is_set_with_extension_DI): Delete.
19620         (struct zero_extend_info): New structure.
19621         (add_removable_zero_extend): New function.
19622         (find_removable_zero_extends): Use note_stores to find SETs.
19623         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
19624
19625 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
19626
19627         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
19628         is_miss_rate_acceptable. Pull total_positions computation
19629         out of the loops.  Early return if miss_positions exceeds
19630         the acceptable threshold.
19631         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
19632         is_miss_rate_acceptable after renaming of compute_miss_rate.
19633
19634 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
19635
19636         PR middle-end/44576
19637         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
19638         of 1000) for miss rate if the address diference is greater than or
19639         equal to the cache line size (the two reference will never hit the
19640         same cache line).
19641
19642 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
19643
19644         PR target/42835
19645         * config/arm/arm-modes.def (CC_NOTB): New mode.
19646         * config/arm/arm.c (get_arm_condition_code): Handle it.
19647         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
19648         * config/arm/arm.md (subsi3_compare0_c): New pattern.
19649         (compare_scc): Now a define_and_split.  Add a number of extra
19650         splitters before it.
19651
19652         PR target/42172
19653         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
19654         and ZERO_EXTEND.
19655         (arm_rtx_costs_1): Likewise.
19656         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
19657         * config/arm/arm.md (is_arch6): New attribute.
19658         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
19659         extendqisi2): Tighten the code somewhat, avoiding invalid
19660         RTL to occur in the expander patterns.
19661         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
19662         (thumb1_zero_extendhisi2_v6): Delete.
19663         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
19664         (thumb1_extendhisi2_v6): Delete.
19665         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
19666         (thumb1_extendqisi2_v6): Delete.
19667         (zero_extendhisi2 for register input splitter): New.
19668         (zero_extendqisi2 for register input splitter): New.
19669         (thumb1_extendhisi2 for register input splitter): New.
19670         (extendhisi2 for register input splitter): New.
19671         (extendqisi2 for register input splitter): New.
19672         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
19673         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
19674         and add support for a register alternative requiring a split.
19675         (thumb1_zero_extendqisi2): Likewise.
19676         (arm_zero_extendqisi2): Likewise.
19677         (arm_extendhisi2): Likewise.
19678         (arm_extendqisi2): Likewise.
19679
19680 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
19681
19682         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
19683         instead of an unspec.
19684         (neon_expand_vector_init): Likewise.
19685         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
19686         (UNSPEC_VDUP_LANE): Delete.
19687         (UNSPEC VDUP_N): Delete.
19688         (UNSPEC_VGET_HIGH): Delete.
19689         (UNSPEC_VGET_LANE): Delete.
19690         (UNSPEC_VGET_LOW): Delete.
19691         (UNSPEC_VMVN): Delete.
19692         (UNSPEC_VSET_LANE): Delete.
19693         (V_double_vector_mode): New.
19694         (vec_set<mode>_internal): Make code emitted match that for the
19695         corresponding intrinsics.
19696         (vec_setv2di_internal): Likewise.
19697         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
19698         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
19699         (neon_vset_lane<mode>): Combine double and quad patterns and
19700         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
19701         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
19702         (neon_vdup_n<mode>): Rewrite RTL without unspec.
19703         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
19704         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
19705         with neon_vdup_lanev2di, adjusting the pattern from the latter
19706         to be predicable for consistency.
19707         (neon_vdup_lane<mode>_internal): New.
19708         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
19709         to avoid using an unspec.
19710         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
19711         (neon_vdup_lanev2di): Turn into a define_expand.
19712         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
19713         (neon_vget_high<mode>): Replace with....
19714         (neon_vget_highv16qi): New pattern using canonical RTL.
19715         (neon_vget_highv8hi): Likewise.
19716         (neon_vget_highv4si): Likewise.
19717         (neon_vget_highv4sf): Likewise.
19718         (neon_vget_highv2di): Likewise.
19719         (neon_vget_low<mode>): Replace with....
19720         (neon_vget_lowv16qi): New pattern using canonical RTL.
19721         (neon_vget_lowv8hi): Likewise.
19722         (neon_vget_lowv4si): Likewise.
19723         (neon_vget_lowv4sf): Likewise.
19724         (neon_vget_lowv2di): Likewise.
19725
19726         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
19727         test for this emitting vmov.
19728         (Vset_lane): Likewise.
19729         (Vdup_n): Likewise.
19730         (Vmov_n): Likewise.
19731
19732         * doc/arm-neon-intrinsics.texi: Regenerated.
19733
19734 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
19735
19736         * config/arm/neon.md (vec_extractv2di): Correct error in register
19737         numbering to reconcile with neon_vget_lanev2di.
19738
19739 2010-07-02  Richard Guenther  <rguenther@suse.de>
19740
19741         * tree-ssa-structalias.c (pt_solution_set_var): New function.
19742         * tree-ssa-alias.h (pt_solution_set_var): Declare.
19743         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
19744         points-to information.
19745
19746 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
19747
19748         * config/s390/s390.c (override_options): Adopt prefetching
19749         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
19750
19751 2010-07-02  Jan Hubicka  <jh@suse.cz>
19752
19753         * df-problems.c (df_kill_notes): Do not collect dead  notes.
19754         (df_set_note): Just call add_reg_note.
19755         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
19756         df_create_unused_note): Do not deal with lists of old notes.
19757         (df_note_bb_compute): Likewise.
19758
19759 2010-07-02  Richard Guenther  <rguenther@suse.de>
19760
19761         * tree-ssa-structalias.c (find_func_aliases): Handle
19762         pointer alignment via BIT_AND_EXPR.
19763         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
19764
19765 2010-07-02  Richard Guenther  <rguenther@suse.de>
19766
19767         * tree-data-ref.c (initialize_data_dependence_relation): Handle
19768         mismatching number of dimensions properly.
19769
19770 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19771
19772         PR target/44707
19773         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
19774         (lo_sum (high ...) ...) patterns generated by earlier passes.
19775
19776 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19777
19778         * doc/install.texi (Prerequisites): Document Perl requirement on
19779         Solaris 2.
19780         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
19781
19782 2010-07-02  Richard Guenther  <rguenther@suse.de>
19783
19784         PR middle-end/44777
19785         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
19786
19787 2010-07-02  Jan Hubicka  <jh@suse.cz>
19788
19789         PR middle-end/44706
19790         * predict.c (predict_paths_for_bb): Handle case when control dependence
19791         BB has only abnormal edges.
19792
19793 2010-07-02  Richard Guenther  <rguenther@suse.de>
19794
19795         PR tree-optimization/44748
19796         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
19797         the embedded conversion in MEM_REFs.
19798
19799 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
19800
19801         * reload.c: Include toplev.h.
19802         * recog.c:  Likewise.
19803         * Makefile.in: Adjust dependencies.
19804
19805 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
19806
19807         PR debug/44694
19808         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
19809         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
19810
19811 2010-07-01  Richard Guenther  <rguenther@suse.de>
19812
19813         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
19814         types for offsets.
19815
19816 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
19817
19818         PR target/44732
19819         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
19820         Fix argument types.
19821
19822 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
19823
19824         PR target/44727
19825         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19826         Make sure operand 0 dies.
19827
19828 2010-07-01  Richard Guenther  <rguenther@suse.de>
19829
19830         PR middle-end/42834
19831         PR middle-end/44468
19832         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
19833         * doc/generic.texi (References to storage): Document MEM_REF.
19834         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
19835         (print_call_name): Likewise.
19836         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
19837         (build_simple_mem_ref_loc): New function.
19838         (mem_ref_offset): Likewise.
19839         * tree.h (build_simple_mem_ref_loc): Declare.
19840         (build_simple_mem_ref): Define.
19841         (mem_ref_offset): Declare.
19842         * fold-const.c: Include tree-flow.h.
19843         (operand_equal_p): Handle MEM_REF.
19844         (build_fold_addr_expr_with_type_loc): Likewise.
19845         (fold_comparison): Likewise.
19846         (fold_unary_loc): Fold
19847         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
19848         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
19849         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
19850         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
19851         (ptr_deref_may_alias_ref_p_1): Likewise.
19852         (ao_ref_base_alias_set): Properly differentiate base object for
19853         offset and TBAA.
19854         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
19855         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
19856         (indirect_refs_may_alias_p): Likewise.
19857         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
19858         chasing code.
19859         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
19860         (call_may_clobber_ref_p_1): Likewise.
19861         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
19862         * expr.c (expand_assignment): Handle MEM_REF.
19863         (store_expr): Handle MEM_REFs from STRING_CSTs.
19864         (store_field): If expanding a MEM_REF of a non-addressable
19865         decl use bitfield operations.
19866         (get_inner_reference): Handle MEM_REF.
19867         (expand_expr_addr_expr_1): Likewise.
19868         (expand_expr_real_1): Likewise.
19869         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
19870         * alias.c (ao_ref_from_mem): Handle MEM_REF.
19871         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
19872         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
19873         (dr_analyze_indices): Likewise.
19874         (dr_analyze_alias): Likewise.
19875         (object_address_invariant_in_loop_p): Likewise.
19876         * gimplify.c (mark_addressable): Handle MEM_REF.
19877         (gimplify_cond_expr): Build MEM_REFs.
19878         (gimplify_modify_expr_to_memcpy): Likewise.
19879         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
19880         (gimple_fold_indirect_ref): Adjust.
19881         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
19882         * tree.def (MEM_REF): New tree code.
19883         * tree-dfa.c: Include toplev.h.
19884         (get_ref_base_and_extent): Handle MEM_REF.
19885         (get_addr_base_and_unit_offset): New function.
19886         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
19887         * gimple-fold.c (may_propagate_address_into_dereference): Handle
19888         MEM_REF.
19889         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
19890         accesses if the array has just one dimension.  Remove always true
19891         parameter.  Do not require type compatibility here.
19892         (maybe_fold_offset_to_component_ref): Remove.
19893         (maybe_fold_stmt_indirect): Remove.
19894         (maybe_fold_reference): Remove INDIRECT_REF handling.
19895         Fold back to non-MEM_REF.
19896         (maybe_fold_offset_to_address): Simplify.  Deal with type
19897         mismatches here.
19898         (maybe_fold_reference): Likewise.
19899         (maybe_fold_stmt_addition): Likewise.  Also handle
19900         &ARRAY + I in addition to &ARRAY[0] + I.
19901         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
19902         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
19903         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
19904         * tree-ssa.c (useless_type_conversion_p): Make most pointer
19905         conversions useless.
19906         (warn_uninitialized_var): Handle MEM_REF.
19907         (maybe_rewrite_mem_ref_base): New function.
19908         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
19909         to SSA form.
19910         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
19911         INDIRECT_REF handling.
19912         (copy_tree_body_r): Handle MEM_REF.
19913         * gimple.c (is_gimple_addressable): Adjust.
19914         (is_gimple_address): Likewise.
19915         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
19916         invariant base are invariant.
19917         (is_gimple_min_lval): Adjust.
19918         (is_gimple_mem_ref_addr): New function.
19919         (get_base_address): Handle MEM_REF.
19920         (count_ptr_derefs): Likewise.
19921         (get_base_loadstore): Likewise.
19922         * gimple.h (is_gimple_mem_ref_addr): Declare.
19923         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
19924         * tree-cfg.c (verify_address): New function, split out from ...
19925         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
19926         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
19927         INDIRECT_REFs.
19928         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
19929         INDIRECT_REF.  Allow conversions.
19930         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
19931         a register does not change its size.
19932         (verify_types_in_gimple_reference): Verify MEM_REF.
19933         (verify_gimple_assign_single): Disallow INDIRECT_REF.
19934         Handle MEM_REF.
19935         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
19936         New.
19937         (mark_address_taken): Handle MEM_REF.
19938         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
19939         (get_asm_expr_operands): Pass opf_not_non_addressable.
19940         (get_expr_operands): Handle opf_[not_]non_addressable.
19941         Handle MEM_REF.  Remove INDIRECT_REF handling.
19942         * tree-vrp.c (check_array_ref): Handle MEM_REF.
19943         (search_for_addr_array): Likewise.
19944         (check_array_bounds): Likewise.
19945         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
19946         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
19947         (ref_always_accessed_p): Likewise.
19948         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
19949         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
19950         Handle MEM_REF.
19951         * cgraphbuild.c (mark_load): Properly check for NULL result
19952         from get_base_address.
19953         (mark_store): Likewise.
19954         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
19955         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
19956         handling for MEM_REF.
19957         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
19958         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
19959         * builtins.c (stabilize_va_list_loc): Use the function ABI
19960         valist type if we couldn't canonicalize the argument type.
19961         Always dereference with the canonical va-list type.
19962         (maybe_emit_free_warning): Handle MEM_REF.
19963         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
19964         memmove to memcpy.
19965         * builtins.c (fold_builtin_memory_op): Use ref-all types
19966         for all memcpy foldings.
19967         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
19968         (build_outer_var_ref): Likewise.
19969         (scan_omp_1_op): Likewise.
19970         (lower_rec_input_clauses): Likewise.
19971         (lower_lastprivate_clauses): Likewise.
19972         (lower_reduction_clauses): Likewise.
19973         (lower_copyprivate_clauses): Likewise.
19974         (expand_omp_atomic_pipeline): Likewise.
19975         (expand_omp_atomic_mutex): Likewise.
19976         (create_task_copyfn): Likewise.
19977         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
19978         Remove old union trick.  Initialize constant offsets.
19979         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
19980         INDIRECT_REF.  Init base_alias_set properly.
19981         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
19982         (vn_reference_fold_indirect): Adjust for MEM_REFs.
19983         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
19984         for ARRAY_REFs.
19985         (may_insert): Remove.
19986         (visit_reference_op_load): Do not test may_insert.
19987         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
19988         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
19989         a field to store the constant offset this op applies.
19990         (run_scc_vn): Adjust prototype.
19991         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
19992         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
19993         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
19994         bother about volatile qualifiers on pointers.
19995         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
19996         * tree-ssa-loop-ivopts.c
19997         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
19998         (strip_offset_1): Likewise.
19999         (find_interesting_uses_address): Replace INDIRECT_REF handling with
20000         MEM_REF handling.
20001         (get_computation_cost_at): Likewise.
20002         * ipa-pure-const.c (check_op): Handle MEM_REF.
20003         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
20004         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
20005         and constants.
20006         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
20007         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
20008         (eliminate_local_variables_1): Likewise.
20009         (create_call_for_reduction_1): Likewise.
20010         (create_loads_for_reductions): Likewise.
20011         (create_loads_and_stores_for_name): Likewise.
20012         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
20013         (ssa_accessed_in_tree): Handle MEM_REF.
20014         (ssa_accessed_in_assign_rhs): Likewise.
20015         (update_type_size): Likewise.
20016         (analyze_accesses_for_call_stmt): Likewise.
20017         (analyze_accesses_for_assign_stmt): Likewise.
20018         (transform_access_sites): Likewise.
20019         (transform_allocation_sites): Likewise.
20020         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
20021         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
20022         not handle INDIRECT_REF.
20023         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
20024         (cond_store_replacement): Likewise.
20025         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20026         MEM_REF, no not handle INDIRECT_REFs.
20027         (insert_into_preds_of_block): Properly initialize avail.
20028         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
20029         for ARRAY_REFs.  Properly handle reference lookups that
20030         require a bit re-interpretation.
20031         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
20032         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
20033         (build_ref_for_offset_1): Remove.
20034         (build_ref_for_offset): Build MEM_REFs.
20035         (gate_intra_sra): Disable for now.
20036         (sra_ipa_modify_expr): Handle MEM_REF.
20037         (ipa_early_sra_gate): Disable for now.
20038         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
20039         MEM_REF handling.
20040         (disqualify_base_of_expr): Likewise.
20041         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
20042         MEM_REF handling.
20043         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
20044         Use mem_ref_offset.  Remove bogus folding.
20045         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
20046         (make_fancy_name_1): Add support for MEM_REF.
20047         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
20048         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
20049         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
20050         (compute_complex_ancestor_jump_func): Likewise.
20051         (ipa_analyze_virtual_call_uses): Likewise.
20052         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
20053         INDIRECT_REF folding with more generalized MEM_REF folding.
20054         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
20055         (forward_propagate_addr_into_variable_array_index): Also handle
20056         &ARRAY + I in addition to &ARRAY[0] + I.
20057         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
20058         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
20059         creates assignments with overlap.
20060         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
20061         (get_frame_field): Likewise.
20062         (get_nonlocal_debug_decl): Likewise.
20063         (convert_nonlocal_reference_op): Likewise.
20064         (struct nesting_info): Add mem_refs pointer-set.
20065         (create_nesting_tree): Allocate it.
20066         (convert_local_reference_op): Insert to be folded mem-refs.
20067         (fold_mem_refs): New function.
20068         (finalize_nesting_tree_1): Perform defered folding of mem-refs
20069         (free_nesting_tree): Free the pointer-set.
20070         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
20071         (vectorizable_load): Likewise.
20072         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
20073         (propagate_with_phi): Likewise.
20074         * tree-object-size.c (addr_object_size): Handle MEM_REFs
20075         instead of INDIRECT_REFs.
20076         (compute_object_offset): Handle MEM_REF.
20077         (plus_stmt_object_size): Handle MEM_REF.
20078         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
20079         for &MEM_REF.
20080         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
20081         (symbol_marked_for_renaming): Likewise.
20082         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
20083         (fold-const.o): Add $(TREE_FLOW_H).
20084         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
20085         (find_func_clobbers): Likewise.
20086         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
20087         (decompose_access): Likewise.
20088         (replace_field_acc): Likewise.
20089         (replace_field_access_stmt): Likewise.
20090         (insert_new_var_in_stmt): Likewise.
20091         (get_stmt_accesses): Likewise.
20092         (reorg_structs_drive): Disable.
20093         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
20094         (ix86_canonical_va_list_type): Likewise.
20095
20096 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20097
20098         PR other/44566
20099         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
20100         * target.def (struct gcc_target): Replace enum reg_class with
20101         reg_class_t in hook argument / return types.
20102         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
20103         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
20104         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
20105         * targhooks.h (default_branch_target_register_class): Likewise.
20106         (default_ira_cover_classes, default_secondary_reload): Likewise.
20107         (default_memory_move_cost, default_register_move_cost): Likewise.
20108         * targhooks.c (default_branch_target_register_class): Likewise.
20109         (default_ira_cover_classes, default_secondary_reload): Likewise.
20110         (default_memory_move_cost, default_register_move_cost): Likewise.
20111         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
20112         * bt-load.c (branch_target_load_optimize): Likewise.
20113         * ira.c (setup_cover_and_important_classes): Likewise.
20114         * ira-costs.c (copy_cost): Likewise.
20115         * reload1.c (emit_input_reload_insns): Likewise.
20116         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20117         * config/frv/frv.c (frv_secondary_reload): Likewise.
20118         * config/s390/s390.c (s390_secondary_reload): Likewise.
20119         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
20120         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
20121         (ix86_register_move_cost): Likewise.
20122         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
20123         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
20124         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
20125         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
20126         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
20127         (rs6000_ira_cover_classes): Likewise.
20128         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
20129         * config/picochip/picochip-protos.h (picochip_secondary_reload):
20130         Likewise.
20131         * config/pa/pa.c (pa_secondary_reload): Likewise.
20132         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
20133         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
20134         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
20135         * doc/tm.texi: Regenerate.
20136
20137 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
20138
20139         PR bootstrrap/44726
20140         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
20141         use.
20142         (build_alias_set_optimal_p): Likewise.
20143         (build_base_obj_set_for_drs): Likewise.
20144
20145 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20146
20147         * target.def: Remove comment about licensing problems of function
20148         declarations.
20149
20150         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
20151         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
20152         * doc/tm.texi: Regenerate.
20153
20154         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
20155         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
20156
20157         * target.def (enum_va_list_p): Use DEFHOOK.
20158         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
20159         Rename ptype to ptree.
20160         * doc/tm.texi: Regenerate.
20161
20162         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
20163         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
20164         * doc/tm.texi: Regenerate.
20165
20166         * target.def (memory_move_cost): Use DEFHOOK.
20167         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
20168         Rename regclass AKA class to rclass.
20169         * doc/tm.texi: Regenerate.
20170
20171         * target.def (pragma_parse): Use DEFHOOK.
20172         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
20173         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
20174         * doc/tm.texi: Regenerate.
20175
20176         * target.def (pass_by_reference): Use DEFHOOK.
20177         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
20178         * doc/tm.texi: Regenerate.
20179
20180         * target.def (resolve_overloaded_builtin): Rename params to arglist.
20181         Use DEFHOOK.
20182         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
20183         * doc/tm.texi: Regenerate.
20184
20185         * target.def (return_pops_args): Use DEFHOOK.
20186         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
20187         Rename stack-size to size.
20188         * doc/tm.texi: Regenerate.
20189
20190         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
20191         last-sched_cycle to last_clock, cur_cycle to clock.
20192         * doc/tm.texi.in: Use @hook.
20193         * doc/tm.texi: Regenerate.
20194
20195         * target.def (print_operand, print_operand_address): Update comment.
20196         (print_operand_punct_valid_p): Likewise.
20197
20198 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20199
20200         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
20201         to rtl.h.
20202         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
20203         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
20204         * rtl-error.h: New.
20205         * regrename.c: Do not include toplev.h. Include rtl-error.h.
20206         * rtl-error.c: Likewise.
20207         * reload.c: Likewise.
20208         * recog.c:  Likewise.
20209         * sel-sched.c: Likewise.
20210         * function.c: Likewise.
20211         * reg-stack.c: Likewise.
20212         * cfgrtl.c: Likewise.
20213         * reload1.c: Likewise.
20214         * final.c: Include rtl-error.
20215         * Makefile.in: Adjust dependencies.
20216
20217 2010-06-30  Jan Hubicka  <jh@suse.cz>
20218
20219         PR middle-end/PR44706
20220         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
20221         to return the value.
20222
20223 2010-06-30  Michael Matz  <matz@suse.de>
20224
20225         PR bootstrap/44699
20226         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
20227         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
20228         a gimple reg, attach the original VDEF to the last store in the
20229         sequence.
20230
20231 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
20232
20233         PR other/44034
20234         * config/darwin.c (darwin_override_options): Use renamed
20235         targetm.asm_out.emit_unwind_label.
20236
20237 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
20238
20239         PR tree-optimization/39799
20240         * tree-inline.c (remap_ssa_name): Initialize variable only if
20241         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20242
20243 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
20244
20245         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
20246
20247 2010-06-30  Richard Guenther  <rguenther@suse.de>
20248
20249         PR target/44722
20250         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
20251         against oscillation with reverse peephole2.
20252
20253 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
20254
20255         PR target/44721
20256         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20257         Fix last commit.
20258
20259 2010-06-30  Nick Clifton  <nickc@redhat.com>
20260
20261         * config/rx/rx-modes.def: New file.
20262         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
20263         (CC_REGNUM): Define.
20264         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
20265         register.
20266         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
20267         (SELECT_CC_MODE): Define.
20268         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
20269         (reg:CC CC_REG) instead of (cc0).
20270         (attr "cc"): Delete.
20271         (cbranchsi4): Do not split compare and branch here. Instead move
20272         it to...
20273         (cbranchsi4_<code>): ... here.  New patterns.
20274         (cmpsi): Call rx-compare_redundant to find out if it is necessary
20275         to emit the compare instruction.
20276         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
20277         cc_status flags.
20278         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
20279         FIRST_PSEUDO_REGNUM.
20280         (rx_expand_prologue, rx_expand_epilogue): Likewise.
20281         (rx_notice_update_cc): Delete.
20282         (rx_cc_modes_compatible): New function.
20283         (flags_needed_for_conditional): New function.
20284         (flags_from_mode): New function.
20285         (rx_compare_redundant): New function - scans backwards through
20286         insn list to find out if condition flags are already set correctly.
20287         (TARGET_CC_MODES_COMPATIBLE): Define.
20288         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
20289
20290         * config/rx/rx.h (BRANCH_COST): Define.
20291         (REGISTER_MOVE_COST): Define.
20292         * config/rx/predicates (rx_source_operand): Allow all constant types.
20293         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
20294         (tstsi4): New pattern.
20295         * config/rx/rx.c (rx_memory_move_cost): Define.
20296         (TARGET_MEMORY_MOVE_COST): Define.
20297
20298 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20299
20300         * tree.h (block_may_fallthru): Declare here.
20301         * tree-flow.h (block_may_fallthru): Do not declare here.
20302         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
20303         bitmap.h
20304         * Makefile.in (c-typeck.o): Update dependencies.
20305
20306 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
20307
20308         PR debug/44694
20309         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
20310         * cselib.c (cfa_base_preserved_regno): New static variable.
20311         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
20312         of REGNO (cfa_base_preserved_val->locs->loc).
20313         (cselib_preserve_cfa_base_value): Add regno argument, set
20314         cfa_base_preserved_regno to it.
20315         (cselib_invalidate_regno): Allow removal of registers other than
20316         cfa_base_preserved_regno from cfa_base_preserved_val.
20317         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
20318         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
20319         of MEM addresses, if not on LHS.
20320         (reverse_op): Don't add reverse ops for cfa_base_rtx.
20321         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
20322
20323 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
20324
20325         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
20326         static variables.
20327         (peep2_buf_position): New static function.
20328         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
20329         peephole2_optimize): Use it.
20330         (peep2_attempt, peep2_update_life): New static functions, broken out
20331         of peephole2_optimize.
20332         (peep2_fill_buffer): New static function.
20333         (peephole2_optimize): Change the main loop to try to fill the buffer
20334         with the maximum number of insns before matching them against
20335         peepholes.  Use a forward scan.  Remove special case for targets with
20336         conditional execution.
20337         * genrecog.c (change_state): Delete dead code.
20338         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20339         Rewrite so as not to expect the second insn to have had a peephole
20340         applied yet.
20341
20342 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
20343
20344         * genhooks.c (emit_findices): Cast field precision to int.
20345         (emit_documentation): Likewise.
20346
20347 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
20348
20349         PR tree-optimization/43801
20350         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
20351         if old_decl was DECL_ONE_ONLY.
20352
20353         PR debug/44668
20354         * dwarf2out.c (add_accessibility_attribute): New function.
20355         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
20356         instead of adding DW_AT_accessibility manually.
20357         (gen_enumeration_type_die, gen_struct_or_union_type_die,
20358         gen_typedef_die): Use it.
20359
20360 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
20361
20362         * vmsdbgout.c (full_name): Just output the file name if not native.
20363
20364 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
20365
20366         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
20367         (funcnam_table): New static table.
20368         (funcnum_table): New static table.
20369         (write_rtnbeg): Write value saved in funcnum_table.
20370         (write_rtnend): Write value saved in funcnum_table.
20371         (vmsdbgout_begin_function): Save current function info in
20372         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
20373         (vmsdbgout_finish): Iterate over funcnum_table.
20374
20375 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
20376
20377         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
20378         (vmsdbgout_type_decl): Declare
20379         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
20380         (FUNC_EPILOGUE_LABEL): New macro
20381         (vmsdbgout_begin_epilogue): New function.
20382         (vmsdbgout_type_decl): New function.
20383
20384 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
20385
20386         * vmsdbg.h: Update copyright.
20387
20388 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
20389
20390         * vmsdbg.h (DST_K_TBG): New DST constant.
20391         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
20392         (write_modbeg): Cast module_language to avoid warning.
20393         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
20394
20395 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20396
20397         PR other/44034
20398         * target.def, doc/tm.texi.in, genhooks.c: New files.
20399         * target.h: Instead of defining individual hook members,
20400         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
20401         include target.def.
20402         * target-def.h: Instead of defining individual hook initializers,
20403         include target-hooks-def.h.
20404         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
20405         targetm.live_on_entry -> targetm.extra_live_on_entry
20406         targetm.sched.md_finish ->targetm.sched.finish
20407         targetm.sched.md_init -> targetm.sched.init
20408         targetm.sched.md_init_global -> targetm.sched.init_global
20409         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
20410         targetm.asm_out.except_table_label ->
20411           targetm.asm_out.emit_except_table_label
20412         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
20413         targetm.target_help -> targetm.help
20414         targetm.vectorize.builtin_support_vector_misalignment ->
20415           targetm.vectorize.support_vector_misalignment
20416         targetm.file_start_app_off -> targetm.asm_file_start_app_off
20417         targetm.file_start_file_directive ->
20418          targetm.asm_file_start_file_directive
20419         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
20420         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
20421         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
20422         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
20423           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
20424         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
20425           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
20426         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
20427         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
20428         * Makefile.in (TARGET_H): Depend on target.def.
20429         (TARGET_DEF_H): Depend on target-hooks-def.h.
20430         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
20431         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
20432         * doc/tm.texi: Regenerate.
20433
20434         * Makefile.in (s-tm-texi): Remove stray tab / rule.
20435
20436         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
20437         (targetm.sched.init): Likewise.
20438
20439 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
20440
20441         PR bootstrap/44713
20442         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
20443         (function_arg_advance_32): Const-ify TYPE parameter.
20444         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
20445         (ix86_function_arg_advance): Change type of NAMED to bool.
20446         (function_arg_32): Const-ify CUM and TYPE parameters.
20447         (function_arg_64): Likewise.  Change type of NAMED to bool.
20448         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
20449         to bool.
20450         (ix86_function_arg): Change type of NAMED to bool.
20451         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
20452         last argument as a bool.
20453
20454 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20455
20456         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
20457         (OVERRIDE_OPTIONS): Add note of obsolescence.
20458         Replace references with references to TARGET_OPTION_OVERRIDE.
20459         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
20460          the macro).
20461         * targhooks.c (default_target_option_override): New function.
20462         * targhooks.h (default_target_option_override): Declare.
20463         * target.h (struct gcc_target): Add override member to
20464         target_option member.
20465         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
20466         targetm.target_option.override call.
20467         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
20468         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
20469
20470 2010-06-29  Jan Hubicka  <jh@suse.cz>
20471
20472         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
20473
20474 2010-06-29  Jan Hubicka  <jh@suse.cz>
20475
20476         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
20477         unreachable.
20478         (rebuild_frequencies): New function.
20479         * predict.h (rebuild_frequencies): Declare.
20480         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
20481         entry block and edge reaching new_entry.
20482         (tree_function_versioning): When doing partial cloning, rebuild
20483         frequencies when done.
20484         * passes.c (execute_function_todo): Use rebild_frequencies.
20485
20486 2010-06-29  Richard Guenther  <rguenther@suse.de>
20487
20488         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
20489         * tree-flow.h (enum noalias_state): Remove.
20490         (struct var_ann_d): Remove noalias_state member.
20491
20492 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
20493
20494         PR target/43902
20495         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
20496         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
20497         (maddhidi4): Likewise.
20498
20499         Revert parts of the change for PR25130.
20500         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
20501         MEM_ALIAS_SET.
20502
20503 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
20504
20505         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
20506         targetm.calls.function_incoming_arg, and
20507         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
20508         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
20509         * target.h (struct gcc_target): Add function_arg_advance,
20510         function_arg, and function_incoming_arg fields.
20511         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
20512         (TARGET_FUNCTION_INCOMING_ARG): Define.
20513         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
20514         and TARGET_FUNCTION_INCOMING_ARG.
20515         * targhooks.h (default_function_arg_advance): Declare.
20516         (default_function_arg, default_function_incoming_arg): Declare.
20517         * targhooks.c (default_function_arg_advance): New function.
20518         (default_function_arg, default_function_incoming_arg): New function.
20519         * config/i386/i386.c (function_arg_advance): Rename to...
20520         (ix86_function_arg_advance): ...this.  Make static.
20521         (function_arg): Rename to...
20522         (ix86_function_arg): ...this.  Make static.
20523         (TARGET_FUNCTION_ARG_ADVANCE): Define.
20524         (TARGET_FUNCTION_ARG): Define.
20525         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
20526         (FUNCTION_ARG): Delete.
20527         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
20528         (function_arg): Delete prototype.
20529
20530 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
20531
20532         * reginfo.c (init_reg_sets_1): Adjust comments.
20533         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
20534         * calls.c (prepare_call_address): Likewise.
20535         (emit_call_1): Use targetm.calls.return_pops_args.
20536         (expand_call): Likewise.
20537         * function.c (assign_parms): Likewise.
20538         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
20539         * target.h (struct gcc_target) [struct calls]: Add
20540         return_pops_args field.
20541         * targhooks.h (default_return_pops_args): Declare.
20542         * targhooks.c (default_return_pops_args): Define.
20543         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
20544         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
20545         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
20546         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
20547         documentation.
20548         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
20549         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
20550         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
20551         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
20552         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
20553         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
20554         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
20555         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
20556         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
20557         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
20558         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
20559         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
20560         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
20561         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
20562         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
20563         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
20564         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
20565         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
20566         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
20567         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
20568         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
20569         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
20570         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
20571         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
20572         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
20573         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
20574         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
20575         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
20576         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
20577         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
20578         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
20579         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
20580         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
20581         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
20582         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
20583         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
20584         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
20585         * config/i386/i386.c (ix86_return_pops_args): Make static.
20586         Constify arguments.
20587         (TARGET_RETURN_POPS_ARGS): Define.
20588         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
20589         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
20590         (TARGET_RETURN_POPS_ARGS): Define.
20591         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
20592         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
20593         (TARGET_RETURN_POPS_ARGS): Define.
20594
20595 2010-06-29  Richard Guenther  <rguenther@suse.de>
20596
20597         PR middle-end/44667
20598         * tree-inline.c (initialize_inlined_parameters): Make sure
20599         to remap the inlined parameter variable substitutions types.
20600
20601 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
20602
20603         PR rtl-optimization/44659
20604         * combine.c (make_compound_operation) <SUBREG>: Do not return the
20605         result of force_to_mode if it partially re-expanded the compound.
20606
20607 2010-06-28  Jan Hubicka  <jh@suse.cz>
20608
20609         PR middle-end/44671
20610         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
20611         RESULT_DECL.
20612
20613 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
20614
20615         * double-int.h (force_fit_type_double): Remove declaration.
20616         * double-int.c (force_fit_type_double): Move to tree.c.
20617         * tree.h (force_fit_type_double): Declare.
20618         * tree.h (force_fit_type_double): Moved from double-int.c. Use
20619         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
20620         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
20621         * convert.c (convert_to_pointer): Adjust call to
20622         force_fit_type_double.
20623         * tree-vrp.c (extract_range_from_assert,
20624         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
20625         * fold-const.c: Update comment.
20626         (int_const_binop, fold_convert_const_int_from_int,
20627         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
20628         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
20629         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
20630         round_up_loc): Adjust call to force_fit_type_double.
20631
20632 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20633
20634         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
20635
20636 2010-06-28  Martin Jambor  <mjambor@suse.cz>
20637
20638         * tree-sra.c (convert_callers): New parameter, change fndecls of
20639         recursive calls.
20640         (modify_function): Pass the old decl to convert_callers.
20641
20642 2010-06-28  Martin Jambor  <mjambor@suse.cz>
20643
20644         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
20645         ipa_check_create_node_params and ipa_initialize_node_params with
20646         checking asserts they are not necessary.
20647
20648 2010-06-28  Jan Hubicka  <jh@suse.cz>
20649
20650         PR tree-optimization/44687
20651         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
20652
20653 2010-06-28  Martin Jambor  <mjambor@suse.cz>
20654
20655         PR c++/44535
20656         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
20657         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
20658         instead of BINFO_BASE_BINFO.
20659
20660 2010-06-28  Michael Matz  <matz@suse.de>
20661
20662         PR middle-end/44592
20663         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
20664         proper VDEF chain for intermediate stores in the sequence.
20665
20666 2010-06-28  Jan Hubicka  <jh@suse.cz>
20667
20668         PR tree-optimization/44357
20669         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
20670         uninlinable functions.
20671
20672 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20673
20674         * config.gcc (powerpc*-*-*): Handle titan.
20675         * config/rs6000/rs6000.c (titan_cost): New costs.
20676         (rs6000_override_options): Add "titan" to processor_target_table.
20677         Add Titan to branch alignment logic.
20678         Correctly set rs6000_cost for titan.
20679         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
20680         * config/rs6000/titan.md: New file.
20681         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
20682
20683 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
20684
20685         * tree-browser.c (TB_history_stack): Convert to a VEC.
20686         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
20687         (TB_history_prev): Likewise.
20688
20689 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
20690
20691         * vec.h (vec_heap_free): Add parentheses around free.
20692
20693 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
20694
20695         * system.h: Poison GCC_EXCEPT_H for front-end files.
20696
20697         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
20698         langhook.
20699         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
20700         Define to NULL by default.
20701         * except.h: Define GCC_EXCEPT_H.
20702         (doing_eh): Remove prototype.
20703         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
20704         (lang_protect_cleanup_actions): Remove.
20705         * except.c (lang_protect_cleanup_actions): Remove.
20706         (doing_eh): Remove.
20707         (gen_eh_region): Don't check doing_eh here.
20708         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
20709         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
20710         instead of lang_protect_cleanup_actions.
20711         * omp-low.c (maybe_catch_exception): Likewise.
20712         * Makefile.in: Update dependencies.
20713
20714 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
20715
20716         * cgraph.h (struct varpool_node): new used_from_object_file flag.
20717         (struct cgraph_local_info): new used_from_object_file flag.
20718         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
20719         (cgraph_clone_node): initialize used_from_object_file.
20720         (cgraph_create_virtual_clone): initialize used_from_object_file.
20721         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
20722         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
20723         when compiling with -fwhole-program.
20724         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
20725         internal resolver.
20726         * ipa.c (function_and_variable_visibility): Set externally_visible
20727         flag of varpool_node if used_from_object_file flag is set.
20728         (cgraph_externally_visible_p): check used_from_object_file flag.
20729         * doc/invoke.texi (-fwhole-program option): Change description of
20730         externally_visible attribute accordingly.
20731         * doc/extend.texi (externally_visible): Ditto.
20732
20733 2010-06-27  Jan Hubicka  <jh@suse.cz>
20734
20735         * params.def (max-inline-insns-auto): Default to 40.
20736         * doc/invoke.texi (max-inline-insns-auto): Document the change.
20737
20738 2010-06-27  Jan Hubicka  <jh@suse.cz>
20739
20740         PR middle-end/44671
20741         PR middle-end/44686
20742         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
20743         signature change.
20744         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
20745         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
20746
20747 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
20748
20749         * target.h (struct gcc_target): Add register_move_cost field.
20750         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
20751         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
20752         * targhooks.c (default_register_move_cost): New function.
20753         * targhooks.h (default_register_move_cost): Declare function.
20754         * defaults.h (REGISTER_MOVE_COST): Delete.
20755         * ira-int.h (ira_register_move_cost): Update comment.
20756         * ira.c (ira_register_move_cost): Update comment.
20757         * reload.h (register_move_cost): Declare.
20758         * reginfo.c (register_move_cost): New function.
20759         (move_cost): Update comment.
20760         (init_move_cost, memory_move_secondary_cost): Replace
20761         REGISTER_MOVE_COST with register_move_cost.
20762         * postreload.c (reload_cse_simplify_set): (Ditto.).
20763         * reload.c (find_valid_class, find_reloads): (Ditto.).
20764         * reload1.c (choose_reload_regs): (Ditto.).
20765         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
20766         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
20767         * doc/md.texi (can_create_pseudo_p): Update documentation.
20768
20769         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20770         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20771         * config/i386/i386.h (ix86_memory_move_cost): Make static.
20772         (TARGET_MEMORY_MOVE_COST): Define.
20773
20774         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20775         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
20776         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
20777         (TARGET_MEMORY_MOVE_COST): Define.
20778
20779 2010-06-27  Richard Guenther  <rguenther@suse.de>
20780
20781         PR tree-optimization/44683
20782         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
20783         false edge from the inverted condition.
20784
20785 2010-06-27  Richard Guenther  <rguenther@suse.de>
20786
20787         PR middle-end/44684
20788         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
20789         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
20790         for register LHS.  Or non-store assignments.
20791
20792 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
20793
20794         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
20795         (sparc_emit_set_const64): Likewise.  Remove disabled code.
20796         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
20797         (sparc_emit_set_const64): Likewise.
20798
20799 2010-06-26  Catherine Moore  <clm@codesourcery.com>
20800
20801         * config/mips/mips.md (alu_type): New attribute.
20802         (type): Infer type from alu_type.
20803         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
20804         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
20805         *subsi3_extended, negsi2, negdi2, *low<mode>,
20806         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
20807         xor<mode>3, *nor<mode>3,
20808         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
20809         *zero_extendhi_truncqi):  Set alu_type instead of type.
20810
20811 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
20812
20813         * config/alpha/alpha.c (alpha_need_linkage): Adjust
20814         splay_tree_new_ggc call.
20815         (alpha_use_linkage): Likewise.
20816
20817 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
20818
20819         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
20820         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
20821         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
20822         (static_specs): Remove switches_need_spaces.
20823         (process_command, do_self_spec): Hardcode handling "-o" instead of
20824         checking switches_need_spaces.
20825         * system.h (SWITCHES_NEED_SPACES): Poison.
20826
20827 2010-06-26  Richard Guenther  <rguenther@suse.de>
20828
20829         PR tree-optimization/44393
20830         * tree-loop-distribution.c (generate_loops_for_partition): Fix
20831         stmt removal and VOP renaming.
20832         (generate_memset_zero): Remove redundant stmt updating.
20833         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
20834         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
20835
20836 2010-06-26  Jan Hubicka  <jh@suse.cz>
20837
20838         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
20839         edges comming from header are equivalent.
20840         (visit_bb): Handle PHIs correctly.
20841         * tree-inline.c (copy_phis_for_bb): Be able to copy
20842         PHI from entry edge.
20843         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
20844
20845 2010-06-26  Richard Guenther  <rguenther@suse.de>
20846
20847         PR middle-end/44674
20848         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
20849         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
20850
20851 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
20852
20853         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
20854         add_infile, alloc_switch): New.
20855         (process_command): Remove variable lang_n_infiles.  Process
20856         options in a single pass.  Use new functions for allocating
20857         infiles and switches arrays.  Properly skip operands of
20858         -Xpreprocessor and -Xassembler.
20859
20860 2010-06-26  Jan Hubicka  <jh@suse.cz>
20861
20862         PR middle-end/44671
20863         * cgraphunit.c (cgraph_function_versioning): Remove wrong
20864         cgraph_make_decl_local call; fix typo copying RTL data.
20865
20866 2010-06-25  DJ Delorie  <dj@redhat.com>
20867
20868         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
20869         (m32c_output_aligned_common): Likewise.
20870         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20871         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20872         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
20873         (m32c_register_pragmas): Register it.
20874         * config/m32c/m32c.c (m32c_get_pragma_address): New.
20875         (m32c_insert_attributes): Set #pragma address decls volatile.
20876         (pragma_entry_eq): New.
20877         (pragma_entry_hash): New.
20878         (m32c_note_pragma_address): New.
20879         (m32c_get_pragma_address): New.
20880         (m32c_output_aligned_common): New.
20881         * doc/extend.texi: Document the new pragma.
20882
20883         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
20884         also.
20885         * config/m32c/predicates.md (m32c_any_operand): Check the code
20886         instead of memory_operand so as to allow matching volatile MEMs.
20887         (m32c_nonimmediate_operand): Likewise.
20888         (mra_operand): Allow volatiles.
20889
20890 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
20891
20892         PR debug/44610
20893         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
20894         address if the offset is unknown.
20895
20896 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
20897
20898         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
20899         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
20900         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
20901         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
20902         to ia64_start_function. Invoke it.
20903         * config/ia64/ia64.c (ia64_start_function): Call new function
20904         dwarf2out_vms_debug_main_pointer.
20905
20906 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
20907
20908         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
20909         statements computing the true predicate.
20910
20911 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
20912
20913         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
20914         to boolean_true_node.
20915         (reset_bb_predicate): New.
20916         (predicate_bbs): Call reset_bb_predicate.
20917
20918 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
20919
20920         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
20921         (tree_if_conversion): Returns true when something has been changed.
20922         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
20923         changed something.
20924
20925 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
20926
20927         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
20928         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
20929         * tree-if-conv.c: Include dbgcnt.h.
20930         (tree_if_conversion): Use if_conversion_tree to count the number of
20931         if-convertible loops.
20932
20933 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
20934
20935         * common.opt (fprefetch-loop-arrays): Re-define
20936         -fprefetch-loop-arrays as a tri-state option with the initial
20937         value of -1.
20938         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
20939         pass only when flag_prefetch_loop_arrays > 0.
20940         * toplev.c (process_options): Note that, with tri-states,
20941         flag_prefetch_loop_arrays>0 means prefetching is enabled.
20942         * config/i386/i386.c (override_options): Enable prefetching at -O3
20943         for a set of CPUs that sw prefetching is helpful.
20944         (software_prefetching_beneficial_p): New.  Return TRUE if software
20945         prefetching is beneficial for the given CPU.
20946
20947 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20948
20949         PR rtl-optimization/44326
20950         * implicit-zee.c (find_removable_zero_extends): Replace
20951         INSN_P with NONDEBUG_INSN_P.
20952
20953 2010-06-25  Martin Jambor  <mjambor@suse.cz>
20954
20955         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
20956         (struct ipa_node_params): Removed the modification_analysis_done flag.
20957         (ipa_is_param_modified): Removed.
20958         (ipa_analyze_node): Declare.
20959         (ipa_compute_jump_functions): Remove declaration.
20960         (ipa_count_arguments): Likewise.
20961         (ipa_detect_param_modifications): Likewise.
20962         (ipa_analyze_params_uses): Likewise.
20963         * ipa-prop.c (struct param_analysis_info): New type.
20964         (visit_store_addr_for_mod_analysis): Removed.
20965         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
20966         moved down in the file.
20967         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
20968         (ipa_count_arguments): Made static.
20969         (mark_modified): New function.
20970         (is_parm_modified_before_call): New function.
20971         (compute_pass_through_member_ptrs): New parameter parms_info, call
20972         is_parm_modified_before_call instead of ipa_is_param_modified.
20973         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
20974         it to compute_pass_through_member_ptrs.
20975         (ipa_compute_jump_functions): New parameter parms_info, pass it to
20976         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
20977         on the callee if it is analyzed.  Made static.
20978         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
20979         is_parm_modified_before_call instead of ipa_is_param_modified.
20980         (ipa_analyze_call_uses): New parameter parms_info, pass it to
20981         ipa_analyze_indirect_call_uses.
20982         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
20983         ipa_analyze_call_uses.
20984         (ipa_analyze_params_uses): New parameter parms_info, pass it to
20985         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
20986         (ipa_analyze_node): New function.
20987         (ipa_print_node_params): Do not dump the modified flag.
20988         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
20989         it.  Do not stream the modified parameter flag.
20990         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
20991         it.  Do not stream the modified parameter flag.
20992         * ipa-cp.c (ipcp_analyze_node): Removed.
20993         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
20994         with only a call to ipa_analyze_node.
20995         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
20996         node with only a call to ipa_analyze_node.
20997
20998 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20999
21000         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
21001
21002 2010-06-25  Jan Hubicka  <jh@suse.cz>
21003
21004         * tree-pass.h (pass_split_functions): Declare.
21005         * opts.c (decode_options): Enable function splitting at -O2
21006         * timevar.def (TV_IPA_FNSPLIT): New macro.
21007         * ipa-split.c: New file.
21008         * common.opt (-fpartial-inlining): New flag.
21009         * Makefile.in (ipa-split.o): New object file.
21010         * passes.c (init_optimization_passes): Add ipa-split.
21011         * params.def (partial-inlining-entry-probability): New parameters.
21012         * doc/invoke.texi (-fpartial-inlining): New.
21013
21014 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21015
21016         PR 44665
21017         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
21018         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
21019         (gimplify_expr): Likewise.
21020
21021 2010-06-25  Martin Jambor  <mjambor@suse.cz>
21022
21023         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
21024         statements instead of bailing out on them.
21025         (ipa_analyze_indirect_call_uses): Do not require that loads from the
21026         parameter are in the same BB as the condition.  Update comments.
21027
21028 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
21029
21030         PR middle-end/43866
21031         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
21032         true or always false, return NULL_TREE.
21033         (tree_unswitch_single_loop): Optimize conditions even when reaching
21034         max-unswitch-level parameter.  If num > 0, optimize first all conditions
21035         using entry checks, then do still reachable block discovery and consider
21036         only conditions in still reachable basic blocks in the loop.
21037
21038         PR tree-optimization/44539
21039         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
21040         the call doesn't have LHS, but has VDEF.
21041
21042 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
21043
21044         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
21045         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
21046         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
21047         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
21048         * system.h (MODIFY_TARGET_NAME): Poison.
21049
21050 2010-06-25  Alan Modra  <amodra@gmail.com>
21051
21052         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
21053         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
21054         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
21055         CMODEL_LARGE as default.
21056         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
21057         (offsettable_ok_by_alignment): Delete.
21058         (rs6000_emit_move): Remove mcmodel=medium optimization.
21059
21060 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
21061
21062         With large parts from Jim Wilson:
21063         PR target/43902
21064         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
21065         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21066         * optabs.c (optab_for_tree_code): Likewise.
21067         (expand_widen_pattern_expr): Likewise.
21068         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
21069         out of execute_optimize_widening_mul.
21070         (convert_plusminus_to_widen): New function.
21071         (execute_optimize_widening_mul): Use the two new functions.
21072         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
21073         Remove code to generate widening multiply-accumulate.  Add support
21074         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21075         * gimple-pretty-print.c (dump_ternary_rhs): New function.
21076         (dump_gimple_assign): Call it when appropriate.
21077         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
21078         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
21079         (expand_gimple_stmt_1): Likewise.
21080         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
21081         WIDEN_MULT_MINUS_EXPR.
21082         * tree-ssa-operands.c (get_expr_operands): Likewise.
21083         * tree-inline.c (estimate_operator_cost): Likewise.
21084         * gimple.c (extract_ops_from_tree_1): Renamed from
21085         extract_ops_from_tree.  Add new arg for a third operand; fill it.
21086         (gimple_build_assign_stat): Support operations with three operands.
21087         (gimple_build_assign_with_ops_stat): Likewise.
21088         (gimple_assign_set_rhs_from_tree): Likewise.
21089         (gimple_assign_set_rhs_with_ops_1): Renamed from
21090         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
21091         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
21092         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
21093         WIDEN_MULT_MINUS_EXPR.
21094         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
21095         (extract_ops_from_tree_1): Adjust declaration.
21096         (gimple_assign_set_rhs_with_ops_1): Likewise.
21097         (gimple_build_assign_with_ops): Pass NULL for last operand.
21098         (gimple_build_assign_with_ops3): New macro.
21099         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
21100         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
21101         functions.
21102         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
21103         (verify_gimple_assign): Call it.
21104         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
21105         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
21106         functions for dealing with three-operand statements.
21107         * tree.c (commutative_ternary_tree_code): New function.
21108         * tree.h (commutative_ternary_tree_code): Declare it.
21109         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
21110         ternary statements.
21111         (gimple_assign_nonzero_warnv_p): Likewise.
21112         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
21113         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
21114         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
21115         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
21116         (struct hashtable_expr): New member ternary in the union.
21117         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
21118         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
21119         (iterative_hash_hashable_expr): Likewise.
21120         (print_expr_hash_elt): Handle EXPR_TERNARY.
21121         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
21122         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
21123         statements.  Handle GIMPLE_TERNARY_RHS.
21124
21125 2010-06-25  Jan Hubicka  <jh@suse.cz>
21126
21127         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
21128
21129 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
21130
21131         PR c/44517
21132         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
21133         parameters are not good.
21134         (c_parser_parameter_declaration): Error unknown type name if the type
21135         name can't start declaration specifiers.
21136
21137 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
21138
21139         * gcc.c (translate_options): Don't mention +e in comment.
21140         (process_command): Don't handle +e specially.
21141
21142 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
21143
21144         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
21145
21146         * ira-build.c (merge_hard_reg_conflicts): New function.
21147         (create_cap_allocno, copy_info_to_removed_store_destinations,
21148         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
21149         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
21150         (remove_unnecessary_allocnos, remove_low_level_allocnos)
21151         copy_nifo_to_removed_store_destination): Use them.
21152         * ira-lives.c (make_hard_regno_born): New function, split out of
21153         make_regno_born.
21154         (make_allocno_born): Likewise.
21155         (make_hard_regno_dead): New function, split out of make_regno_dead.
21156         (make_allocno_dead): Likewise.
21157         (inc_register_pressure): New function, split out of set_allocno_live.
21158         (dec_register_pressure): New function, split out of clear_allocno_live.
21159         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
21160         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
21161         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
21162         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
21163         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
21164         mark_pseudo_regno_live.
21165         (process_bb_node_lives): Use mark_pseudo_regno_live,
21166         make_hard_regno_born and make_allocno_dead.
21167         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
21168         set_allocno_live, clear_allocno_live): Delete functions.
21169
21170         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
21171         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
21172         functions.
21173         (ira_flattening): Use ira_parent_allocno.
21174         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
21175         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
21176
21177         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
21178         statement.
21179
21180         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
21181         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
21182         minmax_set_iter_cond, minmax_set_iter_next,
21183         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
21184         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
21185         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
21186         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
21187         uses changed.
21188
21189         * ira-int.h (struct live_range, live_range_t): Renamed from struct
21190         ira_allocno_live_range and allocno_live_range_t; all uses changed.
21191         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
21192         All uses changed.
21193
21194 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
21195
21196         * thumb2.md (thumb2_tlobits_cbranch): Delete.
21197         (peephole2 to convert zero_extract/compare of single bit to
21198          lshift/compare): New.
21199
21200 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
21201
21202         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
21203         recursive call and call to 'int_const_binop'.
21204         (build_range_check, fold_cond_expr_with_comparison, unextend,
21205         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
21206         multiple_of_p): Adjust call to const_binop.
21207
21208 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
21209
21210         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
21211         determine size of XFmode operand.
21212         (XFmode extended DFmode push splitter): Ditto.
21213         (XFmode extended SFmode push splitter): Ditto.
21214
21215 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21216
21217         PR target/44588
21218         * config/i386/i386.md (extract_code): New.
21219         (<u>divmodqi4): Likewise.
21220         (divmodhiqi3): Likewise.
21221         (udivmodhiqi3): Likewise.
21222         (<u>divqi3): Remvoved.
21223
21224 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
21225
21226         PR middle-end/44492
21227         * recog.h (struct recog_data): Add is_asm field.
21228         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
21229         present in constraints of inline-asm operand and memory operand
21230         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
21231         (extract_insn): Initialize recog_data.is_asm.
21232         * doc/md.texi (Constraints): Document operand side-effect rules.
21233
21234 2010-06-24  Andi Kleen  <ak@linux.intel.com>
21235
21236         * c-parser.c (c_parser_conditional_expression): Call
21237         warn_for_omitted_condop.
21238         * doc/invoke.texi: Document omitted condop warning.
21239
21240 2010-06-24  Nick Clifton<nickc@redhat.com>
21241
21242         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
21243         insn in the sequence is a jump insn before setting its label.
21244
21245 2010-06-24  Alan Modra  <amodra@gmail.com>
21246
21247         * collect2.c (main): Match exactly --version and --help.
21248
21249 2010-06-24  DJ Delorie  <dj@redhat.com>
21250
21251         * config/m32c/m32c-pragma.c: Don't include rtl.h.
21252
21253 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
21254
21255         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
21256         using X87MODEF mode iterator.
21257         (pushsf splitter): Macroize splitter using P mode iterator.
21258         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
21259         mode iterator.
21260
21261         (*movxf_internal): Rename from *movxf_integer.
21262         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
21263         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
21264         (*movdf_internal): Rename from *movdf_integer.
21265         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
21266         (*movsf_internal): Rename from *movdf_1.
21267
21268 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
21269
21270         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
21271         (const_gimple_seq_node): Removed typedefs.
21272
21273         * gimple.h (gimple_seq_node_d, gimple_seq_node)
21274         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
21275
21276 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
21277
21278         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
21279         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
21280         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
21281         and CODE_FOR_vec_extract_lo_v4df.
21282
21283         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
21284         Changed to define_insn_and_split.
21285         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
21286         (vec_extract_lo_v16hi): Likewise.
21287         (vec_extract_lo_v32qi): Likewise.
21288         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
21289         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
21290
21291 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
21292
21293         PR target/44640
21294         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
21295         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
21296         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
21297         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
21298         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
21299
21300         PR target/44640
21301         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
21302
21303         PR other/44644
21304         * df-core.c (struct df): Rename to df_d.
21305         * df.h (struct df): Likewise.
21306         * dse.h (struct df): Remove forward declaration.
21307         * recog.h (struct insn_data): Rename to:
21308         (struct_insn_data_d).  Adjusted all users.
21309
21310 2010-06-23  Arnaud Charlet  <charlet@adacore.com
21311
21312         PR ada/22220
21313         * doc/install.texi: Update requirements to build GNAT.
21314
21315 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
21316
21317         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
21318         enum type.
21319         (m68k_sched_attr_opx_type): Remove unreachable return.
21320         (m68k_sched_attr_opy_type): Likewise.
21321         (m68k_sched_attr_size): Likewise.
21322         (sched_get_opxy_mem_type): Likewise.
21323         (m68k_sched_attr_op_mem): Likewise.
21324
21325 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
21326
21327         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
21328         new statement and adjust VDEF only if necessary.  Remove superfluous
21329         call to maybe_clean_or_replace_eh_stmt.
21330         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
21331         copy the flags.
21332         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
21333         * tree-inline.c (copy_bb): ...and not there.
21334
21335 2010-06-22  Cary Coutant  <ccoutant@google.com>
21336
21337         * dwarf2out.c (is_nested_in_subprogram): New function.
21338         (should_move_die_to_comdat): Use it.
21339         (copy_ancestor_tree): Don't mark DIEs here.
21340         (copy_decls_walk): Start walk from root of newly-added tree;
21341         mark DIEs here instead.
21342
21343 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
21344
21345         * config/i386/i386.md (unit): Also check sseishft1.
21346
21347 2010-06-22  Jan Hubicka  <jh@suse.cz>
21348
21349         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
21350         enabled.
21351
21352 2010-06-22  Jan Hubicka  <jh@suse.cz>
21353
21354         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
21355         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
21356         Return true if something changed.
21357         * df.h (df_confluence_function_n): Return bool.
21358         * df-core.c (df_worklist_propagate_forward,
21359         df_worklist_propagate_backward): Track changes and ages.
21360         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
21361         track ages.
21362         * dse.c (dse_confluence_n): Return always true.
21363
21364 2010-06-22  Jan Hubicka  <jh@suse.cz>
21365
21366         * bitmap.c (bitmap_clear_bit): Micro optimize.
21367
21368 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
21369
21370         * config/i386/i386.md (SWI1248x): New mode iterator.
21371         (SWI48x): Ditto.
21372         (SWI12): Ditto.
21373         (SWI24): Ditto.
21374
21375         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
21376         SWI1248x mode iterator.
21377         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
21378         using SWI124 mode iterator.
21379         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
21380         mode iterator.
21381         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
21382         *pushdi2_prologue_rex64 using P mode iterator.
21383         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
21384         using SWI48 mode iterator.
21385         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
21386         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
21387         using SWI1248x mode iterator.
21388         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
21389         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
21390         SWI48 mode iterator.
21391         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
21392         iterator.
21393         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
21394         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
21395         SWI12 mode iterator.
21396         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
21397         SWI12 mode iterator.
21398         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
21399         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
21400         SWI24 mode iterator.
21401         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
21402         SWI48 mode iterator.
21403         (mov<mode>_insn_1): New expander.
21404         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
21405         using SWI48x mode iterator.
21406
21407         (*movoi_internal_avx): Rename from *movoi_internal.
21408         (*movti_internal_rex64): Rename from *movti_rex64.
21409         (*movti_internal_sse): Rename from *movti_sse.
21410         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
21411         (*movdi_internal): Rename from *movdi_2.
21412         (*movsi_internal): Rename from *movsi_1.
21413         (*movhi_internal): Rename from *movhi_1.
21414         (*movqi_internal): Rename from *movqi_1.
21415
21416         (insv): Update the call to gen_movsi_insv_1 for rename.
21417         * config/i386/i386.c (promote_duplicated_reg): Ditto.
21418
21419 2010-06-22  Jan Hubicka  <jh@suse.cz>
21420
21421         * passes.c (execute_function_todo): Move call of statistics_fini_pass
21422         to ...
21423         (execute_todo) ... this one.
21424
21425 2010-06-22  Alan Modra  <amodra@gmail.com>
21426
21427         PR target/44364
21428         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21429         * caller-save.c (insert_restore, insert_save): Use non-validate
21430         form of adjust_address.
21431
21432 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21433
21434         PR target/39690
21435         * config/pa/pa.c (override_options): Disable
21436         -freorder-blocks-and-partition.
21437
21438 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21439
21440         PR target/44615
21441         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
21442
21443         * config/i386/i386.md (type): Add sseishft1
21444
21445         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
21446         (ppro_insn_load): Likewise.
21447         (ppro_insn_store): Likewise.
21448         (ppro_insn_both): Likewise.
21449
21450         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
21451         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
21452         for type.
21453         (*vec_extractv2di_1_avx): Likewise.
21454         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
21455         type.  Remove atom_unit.
21456         (*vec_extractv2di_1_sse2): Likewise.
21457
21458 2010-06-21  DJ Delorie  <dj@redhat.com>
21459
21460         * diagnostic.h (diagnostic_classification_change_t): New.
21461         (diagnostic_context): Add history and push/pop list.
21462         (diagnostic_push_diagnostics): Declare.
21463         (diagnostic_pop_diagnostics): Declare.
21464         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
21465         from pragmas in a history chain instead of the global table.
21466         (diagnostic_push_diagnostics): New.
21467         (diagnostic_pop_diagnostics): New.
21468         (diagnostic_report_diagnostic): Scan history chain to find state
21469         of diagnostics as of the diagnostic location.
21470         * opts.c (set_option): Pass UNKNOWN_LOCATION to
21471         diagnostic_classify_diagnostic.
21472         (enable_warning_as_error): Likewise.
21473         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
21474         use in the history chain.
21475         * doc/extend.texi: Document pragma GCC diagnostic changes.
21476
21477 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
21478
21479         * dwarf2out.c (add_linkage_name): New function.  Don't add
21480         anything to DW_TAG_member DIEs.
21481         (add_name_and_src_coords_attributes): Use it.
21482         (gen_variable_die): Call it for C++ static data members if
21483         specification is DW_TAG_member.
21484
21485         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
21486         C++ char16_t and char32_t.
21487
21488         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
21489         * genattrtab.c: Include vecprim.h.
21490         (cached_attrs, cached_attr_count, attrs_seen_once,
21491         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
21492         attrs_cached_after): New variables.
21493         (find_attrs_to_cache): New function.
21494         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
21495         (write_test_expr): Add attrs_cached argument, return it too,
21496         attempt to cache non-const attributes used more than once in
21497         a single case handling.
21498         (write_attr_get): Use find_attrs_to_cache, for caching candidates
21499         emit cached_* variables.  Adjust write_attr_set callers.
21500         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
21501         to find attributes that should be cached in this block.  Adjust
21502         write_test_expr callers.
21503         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
21504         callers.
21505         (make_automaton_attrs): Adjust write_test_expr caller.
21506
21507         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
21508         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
21509         (make_automaton_attrs): If find_tune_attr returns non-NULL,
21510         write separate internal_dfa_insn_code_* and insn_default_latency_*
21511         functions for each attribute's value and emit init_sched_attrs
21512         function and function pointers.
21513         * genattr.c (const_attrs, reservations): New variables.
21514         (gen_attr): Add const attributes to const_attrs vector.
21515         (check_tune_attr, find_tune_attr): New functions.
21516         (main): Add reservations to reservations vector.  If find_tune_attr
21517         returns true, add prototype for init_sched_attrs and make
21518         internal_dfa_insn_code and insn_default_latency function pointers,
21519         otherwise define init_sched_attrs as dummy macro.
21520         * cfgexpand.c: Include insn-attr.h.
21521         (gimple_expand_cfg): Call init_sched_attrs.
21522
21523         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
21524
21525         PR target/44575
21526         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
21527         va_arg from a set of register save slots into a temporary,
21528         if the container is bigger than type size, do the copying
21529         using smaller mode or using memcpy.
21530
21531         PR bootstrap/44426
21532         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
21533         prototype.
21534         (sel_print_to_dot): Remove macro.
21535         (sel_print): Likewise.  New prototype.
21536         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
21537         (sel_print): New function.
21538
21539 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21540
21541         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
21542         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
21543
21544 2010-06-21  Nick Clifton  <nickc@redhat.com>
21545
21546         * config/rx/rx.h (PTRDIFF_TYPE): Define.
21547         (SMALL_REGISTER_CLASS): Define (to zero).
21548         (PRINT_OPERAND): Delete.
21549         (PRINT_OPERAND_ADDRESS): Delete.
21550         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
21551         (rx_print_operand_address): Delete prototype.
21552         * config/rx/rx.c (rx_print_operand): Make static.
21553         Allow %H and %L to handle CONST_DOUBLEs.
21554         (rx_print_operand_address): Make static.
21555         (rx_gen_move_template): Rename local variable 'template' to
21556         out_template.
21557         (rx_function_arg): Do not pass unknown sized objects in registers.
21558         (TARGET_PRINT_OPERAND): Define.
21559         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21560
21561 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
21562
21563         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
21564
21565 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
21566
21567         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
21568         stack-alignment for simple leaf-functions.
21569
21570 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
21571
21572         * doc/install.texi: Document bootstrap-lto.
21573
21574 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
21575
21576         PR debug/44248
21577         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
21578         (input_function): Drop them here, if VTA is disabled.
21579
21580 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
21581
21582         PR target/44546
21583         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
21584         New predicate.
21585         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
21586         ix86_swapped_fp_comparsion_operator instead of
21587         ix86_fp_comparison_operator.
21588
21589         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
21590         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
21591         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
21592         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
21593         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
21594         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
21595
21596 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
21597
21598         PR other/32998
21599         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
21600         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
21601         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
21602         (decode_cmdline_option): Update for this return value.  Set
21603         orig_option_with_args_text field.  Set arg field for unknown
21604         options.  Make static.
21605         (decode_cmdline_options_to_array): New.
21606         (prune_options): Update handling of find_opt return value.
21607         * opts.c (read_cmdline_option): Take decoded option.  Return void.
21608         (read_cmdline_options): Take decoded options.
21609         (decode_options): Add parameters for decoded options.  Use
21610         decode_cmdline_options_to_array.  Use decoded options for -O
21611         scan.  Use integral_argument for -O parameters.  Update call to
21612         read_cmdline_options.
21613         (enable_warning_as_error): Update handling of find_opt return value.
21614         * opts.h: Update comment on unknown options.
21615         (struct cl_decoded_option): Update comments on opt_index and arg.
21616         Add orig_option_with_args_text.
21617         (decode_cmdline_option): Remove.
21618         (decode_cmdline_options_to_array): Declare.
21619         (decode_options): Update prototype.
21620         * toplev.c (save_argv): Remove.
21621         (save_decoded_options, save_decoded_options_count): New.
21622         (read_integral_parameter): Remove.
21623         (print_switch_values): Use decoded options.
21624         (toplev_main): Don't set save_argv.  Update call to decode_options.
21625         * toplev.h (read_integral_parameter): Remove.
21626         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
21627
21628 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
21629
21630         PR target/44072
21631         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
21632         immediate.
21633         * constraints.md (Pw, Px): New constraints.
21634         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
21635
21636 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
21637
21638         * config/i386/sse.md (fma4modesuffixf4): Removed.
21639         (ssemodesuffixf2s): Likewise.
21640         (ssemodesuffixf4): Likewise.
21641         (ssemodesuffixf2c): Likewise.
21642         (ssescalarmodesuffix2s): Likewise.
21643         (avxmodesuffixf2c): Likewise.
21644         (ssemodesuffix): New.
21645         (ssescalarmodesuffix): Likewise.
21646         Update patterns with ssemodesuffix and ssescalarmodesuffix.
21647
21648 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
21649
21650         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
21651
21652 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21653
21654         * stor-layout.c (debug_rli): Remove unused local variables.
21655
21656 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
21657
21658         PR rtl-optimization/40900
21659         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
21660         original expression for later reuse.
21661         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
21662         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
21663
21664 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
21665
21666         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
21667         double_int_fits_in_uhwi_p): Implement as static inline.
21668         (double_int_xor): New inline function.
21669         (double_int_lrotate, double_int_rrotate, double_int_max,
21670         double_int_umax, double_int_smax, double_int_min, double_int_umin,
21671         double_int_smin): Declare.
21672         (lrotate_double, rrotate_double): Remove declaration.
21673         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
21674         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
21675         (double_int_lrotate, double_int_rrotate, double_int_max,
21676         double_int_umax, double_int_smax, double_int_min, double_int_umin,
21677         double_int_smin): New function.
21678         * fold-const.c (int_const_binop): Clean up, use double_int_*
21679         functions.
21680         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
21681         double_int_* and immed_double_int_const functions.
21682
21683 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
21684
21685         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
21686         * function.c (types_used_by_cur_var_decl): Likewise.
21687         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
21688
21689 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
21690
21691         * tree.h (record_layout_info): Change type of pending_statics field
21692         to a VEC.
21693         * stor-layout.c (start_record_layout): Store NULL into
21694         pending_statics.
21695         (debug_rli): Call debug_vec_tree instead of debug_tree.
21696         (place_field): Likewise.
21697         (finish_record_layout): Likewise.
21698
21699 2010-06-18  Alan Modra  <amodra@gmail.com>
21700
21701         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
21702
21703 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21704
21705         PR target/43740
21706         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
21707         for SET source operand from SET destination operand.
21708
21709 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
21710
21711         PR rtl-optimization/39871
21712         * reload1.c (init_eliminable_invariants): For flag_pic, disable
21713         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
21714         (function_invariant_p): Rule out a plus of frame or arg pointer with
21715         a SYMBOL_REF.
21716         * ira.c (find_reg_equiv_invariant_const): Likewise.
21717
21718 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
21719
21720         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
21721         print_operand_address and puts to output the operand for CONST.
21722
21723 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
21724
21725         PR debug/44572
21726         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
21727         hook.
21728
21729 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21730
21731         * v850-protos.h (print_operand): Delete.
21732         (print_operand_address): Delete.
21733         * v850.h (PRINT_OPERAND): Delete.
21734         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21735         (PRINT_OPERAND_ADDRESS): Delete.
21736         * v850.c (print_operand_address): Rename to...
21737         (v850_print_operand_address): ...this.  Make static. Call
21738         v850_print_operand.
21739         (print_operand): Rename to...
21740         (v850_print_operand): ...this.  Make static.  Call
21741         v850_print_operand_address.
21742         (v850_print_operand_punct_valid_p): New function.
21743         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21744         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21745
21746 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21747
21748         * config/sh/sh-protos.h (print_operand): Delete.
21749         (print_operand_address): Delete.
21750         * config/sh/sh.h (PRINT_OPERAND): Delete.
21751         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21752         (PRINT_OPERAND_ADDRESS): Delete.
21753         * config/sh/sh.c (sh_print_operand_address): Make static.
21754         (sh_print_operand): Make static.  Call sh_print_operand_address
21755         and sh_print_operand.
21756         (sh_print_operand_punct_valid_p): New function.
21757         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21758         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21759
21760 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21761
21762         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
21763         (mcore_print_operand_address): Delete.
21764         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
21765         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21766         (PRINT_OPERAND_ADDRESS): Delete.
21767         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
21768         (mcore_print_operand): Make static.
21769         (mcore_print_operand_punct_valid_p): New function.
21770         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
21771         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21772
21773 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21774
21775         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
21776         (print_operand_address): Delete.
21777         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
21778         (PRINT_OPERAND_ADDRESS): Delete.
21779         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
21780         static.
21781         (m68hc11_print_operand): Make static.
21782         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21783
21784 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21785
21786         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
21787         (m32r_print_operand_address): Delete.
21788         * config/m32r/m32r.h (m32r_punct_chars): Delete.
21789         (PRINT_OPERAND): Delete.
21790         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21791         (PRINT_OPERAND_ADDRESS): Delete.
21792         * config/m32r/m32r.c (m32r_punct_chars): Make static.
21793         (m32r_print_operand_address): Make static.
21794         (m32r_print_operand): Make static.
21795         (m32r_print_operand_punct_valid_p): New function.
21796         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21797         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21798
21799 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21800
21801         * config/iq2000/iq2000-protos.h (print_operand): Delete.
21802         (print_operand_address): Delete.
21803         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
21804         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21805         (PRINT_OPERAND_ADDRESS): Delete.
21806         (iq2000_print_operand_punct): Delete.
21807         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
21808         (iq2000_print_operand_address): Make static.
21809         (iq2000_print_operand): Make static.
21810         (iq2000_print_operand_punct_valid_p): New function.
21811         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21812         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21813
21814 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21815
21816         * config/frv/frv-protos.h (frv_print_operand): Delete.
21817         (frv_print_operand_address): Delete.
21818         * config/frv/frv.h (PRINT_OPERAND): Delete.
21819         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21820         (PRINT_OPERAND_ADDRESS): Delete.
21821         * config/frv/frv.c (frv_print_operand_address): Make static.
21822         (frv_print_operand): Make static.
21823         (frv_print_operand_punct_valid_p): New function.
21824         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21825         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21826
21827 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
21828
21829         * tree.h (vec_member): Declare.
21830         * tree.c (vec_member): Define.
21831
21832 2010-06-17  Richard Guenther  <rguenther@suse.de>
21833
21834         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
21835         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
21836
21837 2010-06-17  Richard Guenther  <rguenther@suse.de>
21838
21839         * tree-inline.c (declare_return_variable): Remove bogus code.
21840
21841 2010-06-17  Richard Guenther  <rguenther@suse.de>
21842
21843         * gimplify.c (gimplify_bind_expr): Always promote complex
21844         and vector variables to registers if possible.
21845
21846 2010-06-17  Richard Guenther  <rguenther@suse.de>
21847
21848         * expr.c (get_inner_reference): Use double_int for bit_offset
21849         calculation.
21850
21851 2010-06-16  DJ Delorie  <dj@redhat.com>
21852
21853         * common.opt (-fstrict-volatile-bitfields): new.
21854         * doc/invoke.texi: Document it.
21855         * fold-const.c (optimize_bit_field_compare): For volatile
21856         bitfields, use the field's type to determine the mode, not the
21857         field's size.
21858         * expr.c (expand_assignment): Likewise.
21859         (get_inner_reference): Likewise.
21860         (expand_expr_real_1): Likewise.
21861         * expmed.c (store_fixed_bit_field): Likewise.
21862         (extract_bit_field_1): Likewise.
21863         (extract_fixed_bit_field): Likewise.
21864
21865 2010-06-16  Richard Guenther  <rguenther@suse.de>
21866
21867         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
21868
21869 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
21870
21871         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
21872         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
21873         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
21874         * debug.c: Likewise.
21875         * sdbout.c: Likewise.
21876         * vmsdbgout.c: Likewise.
21877         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
21878         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
21879         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
21880         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
21881         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
21882         * dwarf2out.c (dw_fde_struct): New fields
21883         dw_fde_vms_{end,begin}_prologue.
21884         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
21885         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
21886         (dwarf2out_vms_end_prologue): New function.
21887         (dwarf2out_vms_begin_epilogue): New function.
21888         (dw_val_struct): New value dw_val_class_vms_delta.
21889         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
21890         begin_epilogue for VMS.
21891         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
21892         new static functions.
21893         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
21894         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
21895         static functions.
21896         (print_die): New case dw_val_class_vms_delta.
21897         (attr_checksum): Likewise.
21898         (same_dw_val_p: Likewise.
21899         (size_of_die): Likewise.
21900         (value_format): Likewise.
21901         (output_die): Likewise.
21902         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
21903         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
21904         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
21905         dwarf2out_cfi_begin_epilogue
21906         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
21907
21908 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
21909
21910         * config/cris/cris-protos.h (cris_print_operand): Delete.
21911         (cris_print_operand_address): Delete.
21912         * config/cris/cris.h (PRINT_OPERAND): Delete.
21913         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21914         (PRINT_OPERAND_ADDRESS): Delete.
21915         * config/cris/cris.c (cris_print_operand_address): Make static.
21916         (cris_print_operand): Make static.
21917         (cris_print_operand_punct_valid_p): New function.
21918         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21919         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21920
21921 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
21922
21923         * config/arm/arm-protos.h (arm_print_operand): Delete.
21924         (arm_print_operand_address): Delete.
21925         * config/arm/arm.h (PRINT_OPERAND): Delete.
21926         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21927         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
21928         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
21929         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
21930         (arm_print_operand): Make static.
21931         (arm_print_operand_punct_valid_p): New function.
21932         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21933         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21934
21935 2010-06-16  Nick Clifton  <nickc@redhat.com>
21936
21937         * config/rx/constraints.md (NEGint4): New constraint.
21938         * config/rx/rx.md (attr cc): Add set_zsc.
21939         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
21940         initialised.
21941         (cmpsf): Likewise.
21942         (call_internal): Clobber the cc0 register.
21943         (call_value_internal): Likewise.
21944         (cstoresi4): Likewise.
21945         (movsieq): Likewise.
21946         (movsine): Likewise.
21947         (addsi3): Add alternative to handle small negative constants.
21948         (sunsi3): Likewise.
21949         (addsi3): Do not set the O bit in the cc0 register.
21950         (adddi3): Likewise.
21951         (subsi3): Likewise.
21952         (subdi3): Likewise.
21953         (andsi3): Reorder alternatives to prefer shorter forms.
21954         (mulsi3): Likewise.
21955         (iorsi3): Likewise.
21956         (negsi2): Note that the cc0 flags are set.
21957         (rotlsi3): Note that only the Z and S bits are set in cc0.
21958         (lshrsi3): Likewise.
21959         (ashlsi3): Likewise.
21960         (subsf3): Use %Q for the MEM operand.
21961         (fix_truncsfsi2): Likewise.
21962         (floatsisf2): Likewise.
21963         (bitset): Remove early clobber from destination.
21964         (bitset_in_memory): Likewise.
21965         (lrintsf2): Clobber the cc0 register.
21966         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
21967         (rx_print_operand): Handle %N.
21968
21969 2010-06-16  Jan Hubicka  <jh@suse.cz>
21970
21971         * df-core.c (df_compact_blocks): Free problem_temps vector.
21972
21973 2010-06-16  Martin Jambor  <mjambor@suse.cz>
21974
21975         PR tree-optimization/43905
21976         * tree-sra.c: Include tree-inline.h.
21977         (create_abstract_origin): Removed.
21978         (modify_function): Version the call graph node instead of creating
21979         abstract origins and dealing with same_body aliases.
21980         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
21981         function is versionable.
21982         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
21983
21984 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
21985
21986         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
21987         (CHOOSE_DYNAMIC_LINKER): Update.
21988
21989 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
21990
21991         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
21992         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
21993         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
21994         *prefetch_3dnow_rex.
21995
21996 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
21997
21998         * target.h (struct asm_out):Add declare_constant_name field.
21999         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22000         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
22001         * output.h (default_asm_declare_constant_name): Declare.
22002         (assemble_label): Update prototype.
22003         * varasm.c (assemble_constant_contents): Use
22004         targetm.asm_out.declare_constant_name target hook.
22005         (assemble_label): Add 'file' argument.
22006         (default_asm_declare_constant_name): New function.
22007         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
22008         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
22009         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
22010
22011         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
22012         * config/darwin.c (darwin_asm_declare_constant_name): New function.
22013         (machopic_output_indirection): Update assemble_label argument list.
22014         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
22015         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22016
22017 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
22018
22019         PR middle-end/44391
22020         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22021         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
22022
22023 2010-06-15  Richard Guenther  <rguenther@suse.de>
22024
22025         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
22026
22027 2010-06-15  Paul Brook  <paul@codesourcery.com>
22028
22029         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
22030         hard-float ABI.
22031
22032 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
22033
22034         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
22035         don't get a vector type for output.
22036
22037 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
22038
22039         PR fortran/44536
22040         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
22041         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
22042         (LANG_HOOKS_DECLS): Add it.
22043         * gimplify.c (omp_notice_variable): Call
22044         lang_hooks.decls.omp_report_decl.
22045
22046 2010-06-15  Martin Jambor  <mjambor@suse.cz>
22047
22048         PR lto/44464
22049         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
22050         on the newly dead SSA name.
22051
22052 2010-06-15  Alan Modra  <amodra@gmail.com>
22053
22054         * doc/invoke.texi: Add mcmodel to powerpc options.
22055         * configure.ac: Add HAVE_LD_LARGE_TOC test.
22056         * configure: Regenerate.
22057         * config.in: Regenerate.
22058         * config/rs6000/linux64.opt (mcmodel): New.
22059         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
22060         (TARGET_CMODEL, SET_CMODEL): Define.
22061         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
22062         select CMODEL_MEDIUM default.
22063         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
22064         (TARGET_CMODEL): Define default.
22065         * config/rs6000/rs6000.c (cmodel): New variable.
22066         (rs6000_explicit_options): Add cmodel field.
22067         (rs6000_handle_option): Handle -mcmodel.
22068         (create_TOC_reference): Add largetoc_reg param.  Generate high,
22069         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
22070         (rs6000_delegitimize_address): Recognise new toc reference rtl
22071         and minimal-toc rtl.
22072         (rs6000_legitimize_reload_address): Handle new toc references.
22073         (print_operand_address): Handle legitimate_constant_pool_address_p
22074         match before lo_sum.
22075         (rs6000_eliminate_indexed_memrefs): Tidy.
22076         (rs6000_emit_move): Tweak threshold for inlining constants.
22077         Keep rs6000_emit_allocate_stack large stack frame offsets
22078         loaded into r0 inline.
22079         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
22080         (tocrel_base, tocrel_offset): New variables.
22081         (toc_relative_expr_p): Set them here.
22082         (print_operand_address): Skip over any offset on constant pool address.
22083         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
22084         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
22085         (offsettable_ok_by_alignment): New function.
22086         (rs6000_emit_move): Address suitably aligned local symbol_refs
22087         relative to the toc pointer for -mcmodel=medium.
22088         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
22089         strict param.  Allow lo_sum version of addressing.  Verify reg
22090         used for -mminimal-toc and -mcmodel != small.  Update all callers.
22091         * config/rs6000/constraints.md: Update for above change.
22092         * config/rs6000/predicates.md: Likewise.
22093         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
22094         code.
22095         (tls_gd): Split for -mcmodel=medium/large.
22096         (tls_gd_high, tls_gd_low): New.
22097         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
22098         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
22099         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
22100         (largetoc_high, largetoc_low): New.
22101         (cmptf_internal2): Add clobber.
22102         * config/rs6000/rs6000-protos.h: Update.
22103
22104 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
22105
22106         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
22107         true if no prefetch is going to be generated for a given group.
22108         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
22109         estimate the prefetch_count.
22110         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
22111         prefetch count by considering the unroll_factor and prefetch_mod
22112         for is_loop_prefetching_profitable.
22113
22114 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
22115
22116         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
22117         anything if the argument is not a MEM.
22118
22119 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
22120
22121         PR debug/43650
22122         PR debug/44181
22123         PR debug/44247
22124         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
22125         debug stmts.
22126         (canonicalize_loop_ivs): Likewise.
22127
22128 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
22129
22130         PR debug/43656
22131         * haifa-sched.c (setup_insn_reg_pressure_info,
22132         update_register_pressure): Reject debug insns.
22133         (ready_sort): Don't setup reg pressure for debug insns.
22134         (schedule_insn): Don't update reg pressure for debug insns.
22135
22136 2010-06-14  Richard Guenther  <rguenther@suse.de>
22137
22138         * lto-streamer.c (cached_bp): Remove.
22139         (bitpack_delete): Likewise.
22140         (bitpack_create): Likewise.
22141         (bp_get_next_word): Likewise.
22142         (bp_pack_value, bp_unpack_value): Move ...
22143         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
22144         Re-implement.
22145         (struct bitpack_d): Likewise.
22146         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
22147         New inline functions.
22148         * lto-streamer-out.c (lto_output_bitpack): Remove.
22149         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
22150         (pack_value_fields): Adjust.
22151         (lto_write_tree): Likewise.
22152         (output_gimple_stmt): Likewise.
22153         (output_function): Likewise.
22154         * lto-streamer-in.c (input_gimple_stmt): Adjust.
22155         (input_function): Likewise.
22156         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
22157         (lto_input_bitpack): Remove.
22158         (lto_materialize_tree): Adjust.
22159         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
22160         * lto-cgraph.c (lto_output_edge): Adjust.
22161         (lto_output_node): Likewise.
22162         (lto_output_varpool_node): Likewise.
22163         (lto_output_ref): Likewise.
22164         (input_node): Likewise.
22165         (input_varpool_node): Likewise.
22166         (input_ref): Likewise.
22167         (input_edge): Likewise.
22168         (output_node_opt_summary): Likewise.
22169         (input_node_opt_summary): Likewise.
22170         * ipa-pure-const.c (pure_const_write_summary): Likewise.
22171         (pure_const_read_summary): Likewise.
22172         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
22173         (ipa_read_indirect_edge_info): Likewise.
22174         (ipa_write_node_info): Likewise.
22175         (ipa_read_node_info): Likewise.
22176
22177 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22178
22179         PR target/44534
22180         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
22181         (vec_extract_lo_v16hi): Likewise.
22182         (vec_extract_lo_v32qi): Likewise.
22183
22184 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
22185
22186         PR bootstrap/44426
22187         * tree.h (build_call_expr): Don't define as vararg macro, instead
22188         add a prototype.
22189         * builtins.c (build_call_nofold): Remove.
22190         (expand_builtin_int_roundingfn, expand_builtin_pow,
22191         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
22192         expand_builtin_memset_args, expand_builtin_strcmp,
22193         expand_builtin_strncmp, expand_builtin_memory_chk): Use
22194         build_call_nofold_loc instead of build_call_nofold.
22195         (build_call_expr): New function.
22196
22197         PR tree-optimization/44508
22198         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
22199         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
22200         don't eliminate trivially dead stmts.
22201         * tree-vrp.c (vrp_finalize): Pass false as last argument
22202         to substitute_and_fold.
22203         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
22204         to substitute_and_fold.
22205         * tree-ssa-ccp.c (ccp_finalize): Likewise.
22206
22207         PR bootstrap/44509
22208         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
22209
22210 2010-06-14  Ira Rosen  <irar@il.ibm.com>
22211
22212         PR tree-optimization/44507
22213         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
22214         to build initial vector for BIT_AND_EXPR.
22215         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
22216
22217 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
22218
22219         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
22220         adjust z10prop set_attr.
22221
22222 2010-06-13  Jan Hubicka  <jh@suse.cz>
22223
22224         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
22225         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
22226         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
22227         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
22228         datastructure checks into checking asserts.
22229         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
22230         * tree-ssa-sccvn.c (VN_INFO): Likewise.
22231         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
22232         df_ref_create_structure): Likewise.
22233         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
22234         pool_free): Use gcc_checking_assert.
22235         * alias.c (get_alias_set): Likewise.
22236         * var-tracking.c (variable_htab_free, shared_hash_copy,
22237         canonicalize_values_mark, variable_merge_over_cur): Likewise.
22238         * lto-streamer.c (bp_unpack_value): Likewise.
22239
22240 2010-06-13  Richard Guenther  <rguenther@suse.de>
22241
22242         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
22243         Do not stream but initialize TYPE_CANONICAL to NULL.
22244         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
22245         * gimple.c (gimple_types_compatible_p): Disregard
22246         TYPE_STRUCTURAL_EQUALITY_P.
22247         (gimple_register_type): Use TYPE_CANONICAL as cache.
22248         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
22249         before registering common types.
22250         * config/i386/i386.c (ix86_function_arg_boundary): Do not
22251         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
22252         * tree.h (TYPE_CANONICAL): Clarify documentation.
22253
22254 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
22255
22256         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22257         LIBCALL_VALUE): Remove macros.
22258         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
22259         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22260         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22261         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
22262         (ia64_function_value): Make static. Handle receiving the function
22263         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
22264
22265 2010-06-12  Jan Hubicka  <jh@suse.cz>
22266
22267         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
22268         at correct place.
22269
22270 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
22271
22272         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
22273
22274 2010-06-12  Jan Hubicka  <jh@suse.cz>
22275
22276         * df-core.c (df_clear_bb_info): New function.
22277         (df_set_blocks): bb_info is always allocated.
22278         (df_get_bb_info): Use block_info_elt_size.
22279         (df_set_bb_info): Likewise.
22280         (df_compact_blocks): Update for new block_info.
22281         (grow_bb_info): New function.
22282         * df-problems.c (df_grow_bb_info): Move to df-core.c
22283         (df_rd_set_bb_info): Remove.
22284         (df_rd_free_bb_info): Do not free block pool.
22285         (df_rd_alloc): Do not create pool, use check for
22286         obstack presence instead of NULL pointer for new blocks.
22287         (df_rd_free): DO not free alloc pool; clear block_info.
22288         (problem_RD): Add size of block info structure.
22289         (df_lr_set_bb_info): Remove.
22290         (df_lr_free_bb_info): Do not free block pool.
22291         (df_lr_alloc): Do not create pool, use check for
22292         obstack presence instead of NULL pointer for new blocks.
22293         (df_lr_free): DO not free alloc pool; clear block_info.
22294         (problem_LR): Add size of block info structure.
22295         (df_live_set_bb_info): Remove.
22296         (df_live_free_bb_info): Do not free block pool.
22297         (df_live_alloc): Do not create pool, use check for
22298         obstack presence instead of NULL pointer for new blocks.
22299         (df_live_free): DO not free alloc pool; clear block_info.
22300         (problem_LIVE): Add size of block info structure.
22301         (problem_CHAIN): Add size of block info structure.
22302         (df_byte_lr_set_bb_info): Remove.
22303         (df_byte_lr_free_bb_info): Do not free block pool.
22304         (df_byte_lr_alloc): Do not create pool, use check for
22305         obstack presence instead of NULL pointer for new blocks.
22306         (df_byte_lr_free): DO not free alloc pool; clear block_info.
22307         (problem_BYTE_LR): Add size of block info structure.
22308         (problem_NOTE): Add size of block info structure.
22309         (df_byte_MD_set_bb_info): Remove.
22310         (df_byte_MD_free_bb_info): Do not free block pool.
22311         (df_byte_MD_alloc): Do not create pool, use check for
22312         obstack presence instead of NULL pointer for new blocks.
22313         (df_byte_MD_free): DO not free alloc pool; clear block_info.
22314         (problem_BD): Add size of block info structure.
22315         * df-scan.c (df_scan_free_internal): Free block pool.
22316         (df_scan_set_bb_info): Remove.
22317         (df_scan_free_bb_info): Check for artificial_defs instead
22318         of bb_info being non-NULL.
22319         (df_scan_alloc): DO not create df_scan_block pool.
22320         (problem_SCAN): Set size of block info.
22321         (df_bb_refs_record): Do not allocate bb_info.
22322         * df.h (df_problem): Add block_info_elt_size.
22323         (struct dataflow): Change block_info to void *.
22324         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
22325         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
22326         in-line structures.
22327
22328 2010-06-12  Jan Hubicka  <jh@suse.cz>
22329
22330         PR tree-optimize/44485
22331         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
22332         containing use of return value of noreturn function.
22333
22334 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
22335
22336         * targhooks.c (default_function_value): Don't use
22337         FUNCTION_OUTGOING_VALUE.
22338         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
22339         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
22340
22341 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
22342
22343         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
22344         Add crtfastmath.o to extra_parts.
22345         * config/mips/crtfastmath.c: New.
22346         * config/mips/linux.h (ENDFILE_SPEC): New.
22347
22348 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
22349
22350         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
22351         old_type in parameter.
22352         (gcc_type_for_value): Update call to gcc_type_for_interval.
22353         (compute_type_for_level_1): Renamed compute_type_for_level.
22354         Update call to gcc_type_for_interval.
22355
22356 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
22357
22358         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
22359         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
22360
22361 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
22362
22363         * opts-common.c: Include options.h.
22364         (integral_argument): Move from opts.c.
22365         (decode_cmdline_option): New.  Based on read_cmdline_option.
22366         * opts.c (integral_argument): Move to opts-common.c.
22367         (read_cmdline_option): Move most contents to
22368         decode_cmdline_option.  Use %qs in diagnostics.
22369         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
22370         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
22371         decode_cmdline_option): New.
22372
22373 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
22374
22375         PR target/44481
22376         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
22377         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
22378         (partiysi2_cmp): Ditto.
22379         (*partiyhi2_cmp): Ditto.
22380         (*parityqi2_cmp): Remove.
22381
22382 2010-06-11  Jan Hubicka  <jh@suse.cz>
22383
22384         * bitmap.h (bmp_iter_next_bit): New.
22385         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
22386
22387 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
22388             Eric Botcazou  <ebotcazou@adacore.com>
22389
22390         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
22391         computed cost.
22392
22393 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
22394
22395         * config/i386/i386.md (unspec): New define_c_enum.
22396         (unspecv): Ditto.
22397
22398 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
22399
22400         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
22401
22402 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
22403
22404         PR middle-end/44483
22405         * tree-if-conv.c (bb_predicate_s): New struct.
22406         (bb_predicate_p): New.
22407         (bb_has_predicate): New.
22408         (bb_predicate): New.
22409         (set_bb_predicate): New.
22410         (bb_predicate_gimplified_stmts): New.
22411         (set_bb_predicate_gimplified_stmts): New.
22412         (add_bb_predicate_gimplified_stmts): New.
22413         (init_bb_predicate): New.
22414         (free_bb_predicate): New.
22415         (is_predicated): Use bb_predicate.
22416         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
22417         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
22418         before processing their successors.
22419         (clean_predicate_lists): Removed.
22420         (find_phi_replacement_condition): Use bb_predicate.
22421         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
22422         computations.
22423         (insert_gimplified_predicates): New.
22424         (combine_blocks): Call insert_gimplified_predicates.
22425         (tree_if_conversion): Call free_bb_predicate instead of
22426         clean_predicate_lists.
22427
22428 2010-10-11  Paul Brook  <paul@codesourcery.com>
22429
22430         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
22431         * config/arm/arm.c (all_architectures): Change v7e-m default to
22432         cortexm4.
22433         * config/arm/arm-cores.def: Add cortex-m4.
22434         * config/arm/arm-tune.md: Regenerate.
22435
22436 2010-06-11  Jan Hubicka  <jh@suse.cz>
22437
22438         * ipa-pure-const.c (special_builtlin_state): New function.
22439         (check_call): Use it instead of special casign BUILT_IN_RETURN.
22440         (propagate_pure_const): Use it.
22441
22442 2010-06-11  Jan Hubicka  <jh@suse.cz>
22443
22444         * df-problems.c (df_live_scratch): Convert to bitmap_head.
22445         (df_live_alloc): Initialize df_live_scratch when initializing
22446         problem_data.
22447         (df_live_transfer_function): Update uses of df_live_scratch.
22448         (df_live_free): Free problem_data; clear df_live_scratch before
22449         releasing the obstack.
22450         (df_md_free): Free problem data.
22451
22452 2010-06-11  Jan Hubicka  <jh@suse.cz>
22453
22454         * doc/invoke.texi (Wsuggest-attribute): Document.
22455         (Wmissing-noreturn): Remove.
22456         * ipa-pure-const.c (warn_function_noreturn): New function.
22457         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
22458         warn_missing_noreturn.
22459         * common.opt (Wsuggest-attribute=noreturn): New.
22460         * tree-flow.h (warn_function_noreturn): Declare.
22461         * tree-cfg.c (execute_warn_function_noreturn): Use
22462         warn_function_noreturn.
22463         (gate_warn_function_noreturn): New.
22464         (pass_warn_function_noreturn): Update.
22465
22466 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22467
22468         * c-typeck.c (handle_warn_cast_qual): Add loc
22469         parameter. Improve warning message.
22470         (build_c_cast): Pass location to handle_warn_cast_qual.
22471
22472 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
22473
22474         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
22475         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
22476         insn mnemonic.
22477         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
22478
22479 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
22480
22481         Fix bootstap on mips
22482         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
22483         be naming typedefs.
22484
22485 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
22486
22487         * system.h (helper_const_non_const_cast): New inline for
22488         gcc version <= 4.0.
22489         (CONST_CAST2): For gcc version <= 4.0 use
22490         new helper to do const/non-const casting.
22491
22492 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22493
22494         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
22495         * Makefile.in (OBJS-common): Include insn-enums.o.
22496         (insn-enums.o): New rule.
22497         (simple_generated_c): Add insn-enums.c.
22498         (build/genenums.o): New rule.
22499         (genprogmd): Add "enums".
22500         * genconstants.c (print_enum_type): Declare a C string array
22501         for each enum.
22502         * genenums.c: New file.
22503         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
22504         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
22505         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
22506
22507 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22508
22509         * doc/md.texi (define_enum_attr): Document.
22510         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
22511         * read-md.h (lookup_enum_type): Declare.
22512         * read-md.c (lookup_enum_type): New function.
22513         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
22514         * genattrtab.c (attr_desc): Add an enum_name field.
22515         (evaluate_eq_attr): Take the associated attribute as argument.
22516         Get the enum prefix from the enum_name field, if defined.
22517         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
22518         (simplify_test_exp): Pass attr to evaluate_eq_attr.
22519         (add_attr_value): New function, split out from...
22520         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
22521         (write_test_expr): Pass attr to evaluate_eq_attr.
22522         (write_attr_get): Use the enum_name as the enum tag, if defined.
22523         (write_attr_valueq): Use the enum_name as a prefix, if defined.
22524         (find_attr): Initialize enum_name.
22525         (main): Handle DEFINE_ENUM_ATTR.
22526         * gensupport.c (process_rtx): Likewise.
22527         * config/mips/mips.h (mips_tune_attr): Delete.
22528         * config/mips/mips.md (cpu): Use define_attr_enum.
22529
22530 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22531
22532         * doc/md.texi (define_c_enum, define_enum): Document.
22533         * read-md.h (md_constant): Add a parent_enum field.
22534         (enum_value, enum_type): New structures.
22535         (upcase_string, traverse_enum_types): Declare.
22536         * read-md.c (enum_types): New variable.
22537         (upcase_string, add_constant): New functions.
22538         (handle_constants): Don't create the hash table here.
22539         Use add_constant.
22540         (traverse_md_constants): Don't check for a null md_constants.
22541         (decimal_string, handle_enum, traverse_enum_types): New functions.
22542         (read_md_files): Initialize md_constants and md_enums.
22543         * genconstants.c (print_md_constant): Ignore info argument.
22544         Only print constants that belong to no enum.
22545         (print_enum_type): New function.
22546         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
22547         for each defined enum type.
22548         * config/mips/mips.md (processor): New define_enum.
22549         (unspec): New define_c_enum.
22550         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
22551         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
22552         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
22553         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
22554         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
22555         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
22556         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
22557         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
22558         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
22559         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
22560         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
22561         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
22562         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
22563         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
22564         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
22565         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
22566         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
22567         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
22568         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
22569         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
22570         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
22571         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
22572         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22573         (UNSPEC_RDDSP): Move to mips-dsp.md.
22574         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
22575         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
22576         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
22577         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
22578         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
22579         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
22580         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
22581         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
22582         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
22583         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
22584         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
22585         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
22586         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
22587         Moved to mips-dspr2.md.
22588         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
22589         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
22590         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
22591         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
22592         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
22593         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
22594         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22595         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22596         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22597         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22598         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22599         UNSPEC_LOONGSON_PSADBH)
22600         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22601         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22602         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
22603         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22604         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22605         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22606         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
22607         (cpu): Update comment.
22608         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
22609         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
22610         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
22611         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
22612         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
22613         UNSPEC_LOONGSON_PCMPEQ)
22614         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
22615         UNSPEC_LOONGSON_PINSR_0)
22616         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22617         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22618         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22619         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22620         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22621         UNSPEC_LOONGSON_PSADBH)
22622         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22623         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22624         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
22625         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22626         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22627         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22628         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
22629         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
22630         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
22631         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
22632         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
22633         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
22634         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
22635         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
22636         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
22637         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
22638         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
22639         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
22640         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
22641         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
22642         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
22643         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
22644         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
22645         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
22646         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
22647         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
22648         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22649         (UNSPEC_RDDSP): Moved from mips.md.
22650         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
22651         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
22652         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
22653         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
22654         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
22655         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
22656         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
22657         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
22658         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
22659         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
22660         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
22661         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
22662         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
22663         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
22664         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
22665         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
22666         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
22667         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
22668         (UNSPEC_SCC): Moved from mips.md.
22669         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
22670         "processor_type" to "processor".
22671         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
22672         * config/mips/mips.h (processor_type): Delete.
22673         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
22674         "processor_type" to "processor".
22675
22676 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22677
22678         * configure.ac (tm_include_list): Add insn-constants.h.
22679         * configure: Regenerate.
22680         * Makefile.in (GTM_H): Move insn-constants.h here from...
22681         (TM_H): ...here.
22682         * mkconfig.sh: Remove special handling for insn-constants.h.
22683
22684 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22685
22686         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
22687         (BUILD_MD): ...this new variable.
22688         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
22689         that include the old contents of simple_generated_h and
22690         simple_generated_c.
22691         (simple_generated_h, simple_generated_c): Include them.  Add
22692         insn-constants.h.
22693         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
22694         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
22695         Remove these dependencies from the main rule and include
22696         insn-conditions.md in the command line only if it appears
22697         in the dependency list.
22698         (insn-constants.h, s-constants): Delete.
22699         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
22700         or gensupport.h.
22701         (build/genmddeps.o): Likewise.
22702         (genprogrtl): New variable that contains everything from genprogmd
22703         except mddeps and constants.
22704         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
22705         depend on $(BUILD_MD)
22706         (genprog): New variable.  Make these programs depend on
22707         $(BUILD_ERRORS).
22708         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
22709         (main): Use read_md_files instead of init_rtx_reader_args.
22710         * genconstants.c: As for genmddeps.c.
22711         * read-md.h (read_skip_construct): Declare.
22712         * read-md.c (read_skip_construct): New function.
22713         (handle_file): Allow a null handle_directive, skipping the
22714         construct if so.
22715         (parse_include): Update the comment accordingly.
22716
22717 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22718
22719         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
22720         * genmddeps.c: Include read-md.h.
22721         (main): Call init_rtx_reader_args instead of init_md_reader_args.
22722         * genattr.c (main): Likewise.
22723         * genattrtab.c (main): Likewise.
22724         * genautomata.c (main): Likewise.
22725         * gencodes.c (main): Likewise.
22726         * genconditions.c (main): Likewise.
22727         * genconfig.c (main): Likewise.
22728         * genconstants.c (main): Likewise.
22729         * genemit.c (main): Likewise.
22730         * genextract.c (main): Likewise.
22731         * genflags.c (main): Likewise.
22732         * genopinit.c (main): Likewise.
22733         * genoutput.c (main): Likewise.
22734         * genpeep.c (main): Likewise.
22735         * genrecog.c (main): Likewise.
22736         * genpreds.c (main): Likewise.
22737         * gensupport.h (in_fname): Move to read-md.h.
22738         (init_md_reader_args_cb): Rename to...
22739         (init_rtx_reader_args_cb): ...this and return a bool.
22740         (init_md_reader_args): Rename to...
22741         (init_rtx_reader_args): ...this and return a bool.
22742         (include_callback): Move to read-md.h.
22743         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
22744         (file_name_list, first_dir_md_include): Move to read-md.c
22745         (first_bracket_include): Delete unused variable.
22746         (last_dir_md_include): Move to read-md.c.
22747         (process_include): Delete, moving code to read-md.c:handle_include.
22748         (process_rtx): Don't handle INCLUDE.
22749         (save_string): Delete.
22750         (rtx_handle_directive): New function.
22751         (init_md_reader_args_cb): Rename to...
22752         (init_rtx_reader_args_cb): ...this and return a boolean success value.
22753         Use read_md_args.
22754         (init_md_reader_args): Rename to...
22755         (init_rtx_reader_args): ...this and return a boolean success value.
22756         * rtl.def (INCLUDE): Delete.
22757         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
22758         argument.
22759         * read-rtl.c (read_conditions): Don't gobble ')' here.
22760         (read_mapping): Likewise.
22761         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
22762         Handle top-level non-rtx constructs here rather than in read_rtx_1.
22763         Store the whole queue in *X.  Remove call to init_md_reader.
22764         (read_rtx_1): Rename to...
22765         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
22766         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
22767         here.
22768         (read_nested_rtx): New function.  Handle (nil) here rather than
22769         in read_rtx_code.
22770         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
22771         gobble ')' here.
22772         * read-md.h (directive_handler_t): New type.
22773         (in_fname, include_callback): Moved from read-md.h.
22774         (read_constants, init_md_reader): Delete.
22775         (read_md_files): Declare.
22776         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
22777         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
22778         from gensupport.c.
22779         (read_constants): Rename to...
22780         (handle_constants): ...this.  Don't gobble ')' here.
22781         (handle_include, handle_file, handle_toplevel_file)
22782         (parse_include): New functions, mostly taken from gensupport.c.
22783         (init_md_reader): Subsume into...
22784         (read_md_files): ...this new function.
22785
22786 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22787
22788         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
22789         (unread_char): Decrement read_md_lineno after putting back '\n'.
22790         * read-md.c (fatal_with_file_and_line): Push back any characters
22791         that we decide not to add to the context.
22792         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
22793         fatal_expected_char in cases where '/' ends a line (for example).
22794         (read_name): Don't increment read_md_lineno here.
22795         (read_escape): Likewise.
22796         (read_quoted_string): Likewise.
22797         (read_braced_string): Likewise.
22798
22799 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22800
22801         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
22802         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
22803         * genconstants.c: Include read-md.h.
22804         * read-rtl.c (md_constants): Move to read-md.c.
22805         (md_name): Move to read-md.h.
22806         (initialize_iterators): Use leading_string_hash instead of def_hash
22807         and leading_string_eq_p instead of def_name_eq_p.
22808         (read_name): Move to read-md.c.
22809         (def_hash, def_name_eq_p): Delete.
22810         (read_constants, traverse_md_constants): Move to read-md.c.
22811         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
22812         * read-md.h: Include hashtab.h.
22813         (md_name): Moved from read-rtl.c.
22814         (md_constant): Moved from read-md.h.
22815         (leading_string_hash, leading_string_eq_p, read_name)
22816         (read_constants, traverse_md_constants): Declare.
22817         * read-md.c (md_constants): Moved from read-rtl.c.
22818         (leading_string_hash, leading_string_eq_p): New functions.
22819         (read_name, read_constants, traverse_md_constants): Moved from
22820         read-rtl.c.
22821
22822 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22823
22824         * read-rtl.c (md_name): New structure.
22825         (read_name): Take an md_name instead of a buffer pointer.
22826         Use the "string" field instead of strcpy when expanding constants.
22827         (read_constants): Remove the tmp_char argument.  Update the calls
22828         to read_name, using two local name buffers instead of the tmp_char
22829         argument.  Merge the constant-creation code.
22830         (read_conditions): Remove the tmp_char argument.  Update the calls
22831         to read_name, using a local name buffer instead of the tmp_char
22832         argument.
22833         (read_mapping): Replace tmp_char variable with a local name buffer.
22834         Update the calls to read_name.
22835         (read_rtx_1): Likewise.  Update the calls to read_constants and
22836         read_conditions.
22837
22838 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22839
22840         * Makefile.in (build/read-md.o): Depend on errors.h.
22841         * read-md.h (error_with_line): Declare.
22842         * read-md.c: Include errors.h.
22843         (message_with_line_1): New function, extracted from...
22844         (message_with_line): ...here.
22845         (error_with_line): New function.
22846         * genattrtab.c: If a call to message_with_line is followed by
22847         "have_error = 1;", replace both statements with a call to
22848         error_with_line.
22849         * genoutput.c: Likewise.
22850         * genpreds.c: Likewise.
22851         * genrecog.c: If a call to message_with_line is followed by
22852         "error_count++;", replace both statements with a call to
22853         error_with_line.
22854         (errorcount): Delete.
22855         (main): Don't check it.
22856         * gensupport.c: If a call to message_with_line is followed by
22857         "errors = 1;", replace both statements with a call to error_with_line.
22858         (errors): Delete.
22859         (process_define_cond_exec): Check have_error instead of errors.
22860         (init_md_reader_args_cb): Likewise.  Don't set errors.
22861
22862 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22863
22864         * read-md.h (read_md_file): Declare.
22865         (read_char, unread_char): New functions.
22866         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22867         (read_quoted_string, read_string): Remove FILE * argument.
22868         * read-md.c (read_md_file): New variable.
22869         (read_md_filename, read_md_lineno): Update comments and remove
22870         unnecessary initialization.
22871         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22872         (read_escape, read_quoted_string, read_braced_string, read_string):
22873         Remove FILE * argument.  Update calls accordingly, using read_char
22874         and unread_char instead of getc and ungetc.
22875         * rtl.h (read_rtx): Remove FILE * argument.
22876         * read-rtl.c (iterator_group): Remove FILE * argument from
22877         "find_builtin".
22878         (iterator_traverse_data): Remove "infile" field.
22879         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
22880         (add_mapping, read_name, read_constants, read_conditions)
22881         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
22882         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
22883         Remove file arguments from all calls, using read_char and unread_char
22884         instead of getc and ungetc.
22885         * gensupport.c (process_include): Preserve read_md_file around
22886         the include.  Set read_md_file to the handle of the included file.
22887         Update call to read_rtx.
22888         (init_md_reader_args_cb): Set read_md_file to the handle of the file
22889         and remove local FILE *.  Update calls to read_rtx.
22890
22891 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22892
22893         * read-md.h (read_rtx_lineno): Rename to...
22894         (read_md_lineno): ...this.
22895         (read_rtx_filename): Rename to...
22896         (read_md_filename): ...this.
22897         (copy_rtx_ptr_loc): Rename to...
22898         (copy_md_ptr_loc): ...this.
22899         (print_rtx_ptr_loc): Rename to...
22900         (print_md_ptr_loc): ...this.
22901         * read-md.c: Likewise.  Update references after renaming.
22902         (string_obstack): Replace RTL with MD in comment.
22903         (set_rtx_ptr_loc): Rename to...
22904         (set_md_ptr_loc): ...this.
22905         (get_rtx_ptr_loc): Rename to...
22906         (get_md_ptr_loc): ...this.
22907         * genconditions.c: Update references after renaming.
22908         * genemit.c: Likewise.
22909         * genoutput.c: Likewise.
22910         * genpreds.c: Likewise.
22911         * gensupport.c: Likewise.
22912         * read-rtl.c: Likewise.
22913
22914 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
22915
22916         * Makefile.in (READ_MD_H): New variable.
22917         (BUILD_RTL): Add build/read-md.o.
22918         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
22919         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
22920         (build/genattrtab.o, build/genconditions.o build/genemit.o)
22921         (build/genextract.o, build/genflags.o, build/genoutput.o)
22922         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
22923         (build/read-md.o): New rule.
22924         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
22925         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
22926         * coretypes.h: ...here.
22927         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
22928         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
22929         * genattr.c: Include read-md.h.
22930         * genattrtab.c: Likewise.
22931         * genconditions.c: Likewise.
22932         * genemit.c: Likewise.
22933         * genextract.c: Likewise.
22934         * genflags.c: Likewise.
22935         * genoutput.c: Likewise.
22936         * genpreds.c: Likewise.
22937         * genrecog.c: Likewise.
22938         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
22939         (join_c_conditions, print_c_condition, read_rtx_filename)
22940         (read_rtx_lineno): Move to read-md.h.
22941         * read-rtl.c: Include read-md.h.
22942         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
22943         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
22944         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
22945         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
22946         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
22947         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
22948         (read_braced_string, read_string): Move to read-md.c.
22949         (read_rtx): Move some initialization to init_md_reader and call
22950         init_md_reader here.
22951         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
22952         Move to read-md.h.
22953         * gensupport.c: Include read-md.h.
22954         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
22955         * read-md.h, read-md.c: New files.
22956
22957 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
22958
22959         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22960         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22961         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
22962         * config/moxie/moxie.c (moxie_function_value): Make static.
22963         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
22964         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22965
22966 2010-06-10  Martin Jambor  <mjambor@suse.cz>
22967
22968         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
22969         * dbgcnt.def (tree_sra): New counter.
22970         * tree-sra.c: Include dbgcnt.h.
22971         (gate_intra_sra): Check tree_sra debug counter.
22972
22973 2010-06-10  Martin Jambor  <mjambor@suse.cz>
22974
22975         PR tree-optimization/44258
22976         * tree-sra.c (build_access_subtree): Return false iff there is a
22977         partial overlap.
22978         (build_access_trees): Likewise.
22979         (analyze_all_variable_accesses): Disqualify candidates if
22980         build_access_trees returns true for them.
22981
22982 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
22983
22984         PR debug/41371
22985         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
22986         tail-recurse into canonical node.  Fast-forward over
22987         non-canonical VALUEs.
22988
22989 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
22990
22991         PR boostrap/44470
22992         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
22993         (*addsi_1_zext) <TYPE_LEA>: Likewise.
22994         (add lea splitter): Likewise.
22995         (add_zext lea splitter): Likewise.
22996
22997 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
22998
22999         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
23000
23001 2010-06-10  Jan Hubicka  <jh@suse.cz>
23002
23003         * df-problems.c (df_live_problem_data): Add live_bitmaps.
23004         (df_live_alloc): Initialize problem data and live_osbtacks.
23005         (df_live_finalize): Remove obstack, problem data; do not
23006         clear all bitmaps.
23007         (df_live_top_dump, df_live_bottom_dump): Do not dump old
23008         data when not allocated.
23009         (df_live_verify_solution_start): Do not allocate problem data.
23010         (df_live_verify_solution_end): Check if out is allocated.
23011         (struct df_md_problem_data): New structure.
23012         (df_md_alloc): Allocate problem data.
23013         (df_md_free): Free problem data; do not clear bitmaps.
23014
23015 2010-06-10  Jan Beulich  <jbeulich@novell.com>
23016
23017         PR bootstrap/37304
23018         * configure.ac: Replace $() with ${} when intending to expand
23019         variables rather than invoking commands.
23020         * configure: Re-generate.
23021
23022 2010-06-10  Jan Hubicka  <jh@suse.cz>
23023
23024         PR rtl-optimization/44460
23025         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
23026         TYPE_NEEDS_CONSTRUCTING sanity check.
23027
23028 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
23029
23030         * doc/include/fdl.texi: Move to GFDL version 1.3.
23031
23032         * doc/cpp.texi: Move to GFDL version 1.3.
23033         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
23034         * doc/gccint.texi: Move to GFDL version 1.3.
23035         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
23036         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
23037         * doc/invoke.texi: Move to GFDL version 1.3.
23038
23039 2010-06-09  Jan Hubicka  <jh@suse.cz>
23040
23041         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
23042         Break out from ...
23043         (propagate) ... here; swap the order.
23044
23045 2010-06-09  Jan Hubicka  <jh@suse.cz>
23046
23047         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
23048         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
23049         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
23050         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
23051
23052 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
23053
23054         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
23055         Do not the gather memory reference in the outer loop if the step
23056         is not a constant.
23057
23058 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
23059
23060         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
23061         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
23062         8 to 4.  Minor change of the related comments.
23063
23064 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23065
23066         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
23067         the scev analysis when the variable is not used outside the loop
23068         in a close phi node: call compute_overall_effect_of_inner_loop.
23069
23070 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23071
23072         * graphite-sese-to-poly.c (single_pred_cond): Renamed
23073         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
23074         (build_sese_conditions_before): Renamed call to single_pred_cond.
23075         (build_sese_conditions_after): Same.
23076
23077 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23078
23079         * graphite-poly.h: Fix comments and indentation.
23080         * graphite-sese-to-poly.c: Same.
23081         (build_sese_conditions_before): Compute stmt and gbb only when needed.
23082         * tree-chrec.c: Fix comments and indentation.
23083         (tree-ssa-loop-niter.c): Same.
23084
23085 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
23086
23087         PR rtl-optimization/42461
23088         * dce.c (deletable_insn_p): Return true for const or pure calls again.
23089         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
23090
23091 2010-06-09  Jan Hubicka  <jh@suse.cz>
23092
23093         * bitmap.c (bitmap_and): Walk array forward.
23094         (bitmap_and_compl_into): Likewise.
23095         (bitmap_xor): Likewise.
23096         (bitmap_xor_into):  Likewise.
23097         (bitmap_equal_p): Likewise.
23098         (bitmap_intersect_p): Likewise.
23099         (bitmap_intersect_compl_p): Likewise.
23100         (bitmap_ior_and_into): Likewise.
23101         (bitmap_elt_copy): Likewise.
23102         (bitmap_and_compl): Likewise.
23103         (bitmap_elt_ior): Likewise.
23104
23105 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
23106
23107         * opts-common.c (prune_options): Ensure replacement argv array
23108         is correctly terminated by a NULL entry.
23109
23110 2010-06-09  Jan Hubicka  <jh@suse.cz>
23111
23112         * cgraph.h (varpool_first_static_initializer,
23113         varpool_next_static_initializer): Make checking only when
23114         checking enabled.
23115         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
23116         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
23117         gcc_assert to gcc_checking_assert.
23118         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
23119         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
23120         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
23121         op_iter_init_phiuse, op_iter_init_phidef,
23122         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
23123         gcc_checking_assert.
23124         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
23125         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
23126         partition_is_global, live_on_entry, live_on_exit,
23127         live_merge_and_clear): Likewise.
23128         * system.h (gcc_checking_assert): New macro.
23129         * gimple.h (set_bb_seq): Use gcc_checking_assert.
23130
23131 2010-06-09  Jason Merrill  <jason@redhat.com>
23132
23133         * Makefile.in (TAGS): Collect tags info from c-family.
23134
23135 2010-06-09  Jan Hubicka  <jh@suse.cz>
23136
23137         * gimple.h (gcc_gimple_checking_assert): New macro.
23138         (gimple_set_def_ops, gimple_set_use_ops,
23139         gimple_set_vuse, gimple_set_vdef,
23140         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
23141         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
23142         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
23143         gimple_asm_output_op, gimple_asm_output_op_ptr,
23144         gimple_asm_set_output_op, gimple_asm_clobber_op,
23145         gimple_asm_set_clobber_op, gimple_asm_label_op,
23146         gimple_asm_set_label_op, gimple_try_set_kind,
23147         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
23148         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
23149         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
23150         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
23151         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
23152         gimple_omp_for_set_initial, gimple_omp_for_final,
23153         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
23154         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
23155         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
23156         conditional with ENABLE_GIMPLE_CHECKING.
23157         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
23158
23159 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
23160
23161         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
23162         (get_computation_cost_at): Use it.
23163         (determine_use_iv_cost_condition): Likewise.
23164         (determine_iv_cost): Likewise.
23165
23166 2010-06-09  Richard Guenther  <rguenther@suse.de>
23167
23168         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
23169         replace constants.
23170
23171 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
23172
23173         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
23174
23175 2010-06-09  Martin Jambor  <mjambor@suse.cz>
23176
23177         PR tree-optimization/44423
23178         * tree-sra.c (dump_access): Dump also grp_assignment_read.
23179         (analyze_access_subtree): Pass negative allow_replacements to children
23180         if the current type is scalar.
23181
23182 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
23183
23184         PR testsuite/42843
23185         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
23186         * doc/plugins.texi (Plugin license check): Update information
23187         on type of plugin_is_GPL_compatible.
23188         * Makefile.in (PLUGINCC): Define as $(COMPILER).
23189         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
23190
23191 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
23192
23193         * config/arm/arm.c (thumb2_reorg): New function.
23194         (arm_reorg): Call it.
23195         * config/arm/thumb2.md (define_peephole2 for flag clobbering
23196         arithmetic operations): Delete.
23197
23198 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
23199
23200         PR target/44067
23201         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
23202         e500v2 target.
23203
23204 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
23205
23206         PR plugins/44459
23207         * gcc-plugin.h: Encapsulate all declarations in extern "C".
23208
23209 2010-06-08  Jan Hubicka  <jh@suse.cz>
23210
23211         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
23212         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
23213
23214 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
23215
23216         PR tree-optimization/39874
23217         PR middle-end/28685
23218         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
23219         Declare.
23220         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
23221         same_bool_result_p): New.
23222         (and_var_with_comparison, and_var_with_comparison_1,
23223         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
23224         (or_var_with_comparison, or_var_with_comparison_1,
23225         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
23226         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
23227         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
23228         of combine_comparisons.
23229         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
23230
23231 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
23232
23233         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23234         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23235         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
23236         pdp11_function_value_regno_p): New functions.
23237         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23238         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23239
23240 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
23241
23242         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
23243         Thumb-2 in the MINUS case.
23244
23245 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23246
23247         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
23248
23249         * doc/gty.texi (GTY Options): Document typed GC allocation and
23250         variable_size GTY option.
23251
23252         * ggc-internal.h: New.
23253
23254         * ggc.h: Update copyright year.
23255         (digit_string): Move to stringpool.c.
23256         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
23257         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
23258         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
23259         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
23260         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
23261         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
23262         (ggc_force_collect, ggc_get_size, ggc_statistics)
23263         (ggc_print_common_statistics): Move to ggc-internal.h.
23264         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
23265         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
23266         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
23267         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
23268         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
23269         (ggc_alloc_zone_pass_stat): Remove.
23270         (ggc_internal_alloc_stat, ggc_internal_alloc)
23271         (ggc_internal_cleared_alloc_stat): New.
23272         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
23273         (ggc_internal_vec_alloc_stat)
23274         (ggc_internal_cleared_vec_alloc_stat)
23275         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
23276         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
23277         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
23278         (ggc_cleared_alloc_ptr_array_two_args): New.
23279         (htab_create_ggc, splay_tree_new_ggc): Redefine.
23280         (ggc_splay_alloc): Change the type of the first argument to
23281         enum gt_types_enum.
23282         (ggc_alloc_string): Make macro.
23283         (ggc_alloc_string_stat): New.
23284         (ggc_strdup): Redefine.
23285         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
23286         (ggc_alloc_rtvec_sized): New.
23287         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
23288         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
23289         (ggc_internal_cleared_alloc_zone_stat)
23290         (ggc_internal_zone_alloc_stat)
23291         (ggc_internal_zone_cleared_alloc_stat)
23292         (ggc_internal_zone_vec_alloc_stat)
23293         (ggc_alloc_zone_rtx_def_stat)
23294         (ggc_alloc_zone_tree_node_stat)
23295         (ggc_alloc_zone_cleared_tree_node_stat)
23296         (ggc_alloc_cleared_gimple_statement_d_stat): New.
23297
23298         * ggc-common.c: Include ggc-internal.h.
23299         (ggc_internal_cleared_alloc_stat): Rename from
23300         ggc_alloc_cleared_stat.
23301         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
23302         (ggc_calloc): Remove.
23303         (ggc_cleared_alloc_htab_ignore_args): New.
23304         (ggc_cleared_alloc_ptr_array_two_args): New.
23305         (ggc_splay_alloc): Add obj_type parameter.
23306         (init_ggc_heuristics): Formatting fixes.
23307
23308         * ggc-none.c: Update copyright year.
23309         (ggc_alloc_stat): Rename to ggc_alloc_stat.
23310         (ggc_alloc_cleared_stat): Rename to
23311         ggc_internal_cleared_alloc_stat.
23312         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23313
23314         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
23315         Remove references to ggc_alloc in comments.
23316         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
23317         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
23318         (new_ggc_zone, destroy_ggc_zone): Remove.
23319         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23320
23321         * ggc-zone.c: Include ggc-internal.h.  Remove references to
23322         ggc_alloc in comments.
23323         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
23324         (ggc_internal_alloc_zone_pass_stat): New.
23325         (ggc_internal_cleared_alloc_zone_stat): New.
23326         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
23327         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
23328         (new_ggc_zone, destroy_ggc_zone): Remove.
23329
23330         * stringpool.c: Update copyright year.  Include ggc-internal.h
23331         (digit_vector): Make static.
23332         (digit_string): Moved from ggc.h.
23333         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
23334         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
23335
23336         * Makefile.in (GGC_INTERNAL_H): New.
23337         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
23338         $(GGC_INTERNAL_H) to dependencies.
23339
23340         * gentype.c: Update copyright year.
23341         (walk_type): Accept variable_size GTY option.
23342         (USED_BY_TYPED_GC_P): New macro.
23343         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
23344         whitespace at the end of strings.
23345         (get_type_specifier, variable_size_p): New functions.
23346         (alloc_quantity, alloc_zone): New enums.
23347         (write_typed_alloc_def): New function.
23348         (write_typed_struct_alloc_def): Likewise.
23349         (write_typed_typed_typedef_alloc_def): Likewise.
23350         (write_typed_alloc_defns): Likewise.
23351         (output_typename, write_splay_tree_allocator_def): Likewise.
23352         (write_splay_tree_allocators): Likewise.
23353         (main): Call write_typed_alloc_defns and
23354         write_splay_tree_allocators.
23355
23356         * lto-streamer.h (lto_file_decl_data_ptr): New.
23357
23358         * passes.c (order): Define using cgraph_node_ptr.
23359
23360         * strinpool.c (struct string_pool_data): Declare nested_ptr using
23361         ht_identifier_ptr.
23362
23363         * gimple.h (union gimple_statement_d): Likewise.
23364
23365         * rtl.h (struct rtx_def): Likewise.
23366         (struct rtvec_def): Likewise.
23367
23368         * tree.h (union tree_node): Likewise.
23369
23370         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
23371
23372         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
23373
23374         * tree-scalar-evolution.c (scev_initialize): Likewise.
23375
23376         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
23377
23378         * dwarf2asm.c (dw2_force_const_mem): Likewise.
23379
23380         * omp-low.c (lower_omp_critical): Likewise.
23381
23382         * bitmap.h (struct bitmap_head_def): Update comment to not
23383         reference ggc_alloc.
23384
23385         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
23386
23387         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
23388
23389         * ipa-prop.c (duplicate_ggc_array): Rename to
23390         duplicate_ipa_jump_func_array.  Use typed GC allocation.
23391         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
23392
23393         * gimple.c (gimple_alloc_stat): Use
23394         ggc_alloc_cleared_gimple_statement_d_stat.
23395
23396         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
23397
23398         * tree.c (make_node_stat): Use
23399         ggc_alloc_zone_cleared_tree_node_stat.
23400         (make_tree_vec_stat): Likewise.
23401         (build_vl_exp_stat): Likewise.
23402         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
23403         (make_tree_binfo_stat): Likewise.
23404         (tree_cons_stat): Likewise.
23405
23406         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
23407         (shallow_copy_rtx_stat): Likewise.
23408         (make_node_stat): Likewise.
23409
23410         * lto-symtab.c: Fix comment.
23411
23412         * tree-cfg.c (create_bb): Update comment to not reference
23413         ggc_alloc_cleared.
23414         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
23415
23416         * varpool.c (varpool_node): Use typed GC allocation.
23417         (varpool_extra_name_alias): Likewise.
23418
23419         * varasm.c (emutls_decl): Likewise.
23420         (get_unnamed_section): Likewise.
23421         (get_noswitch_section): Likewise.
23422         (get_section): Likewise.
23423         (get_block_for_section): Likewise.
23424         (build_constant_desc): Likewise.
23425         (create_constant_pool): Likewise.
23426         (force_const_mem): Likewise.
23427
23428         * tree.c (build_vl_exp_stat): Likewise.
23429         (build_real): Likewise.
23430         (build_string): Likewise.
23431         (decl_debug_expr_insert): Likewise.
23432         (decl_value_expr_insert): Likewise.
23433         (type_hash_add): Likewise.
23434         (build_omp_clause): Likewise.
23435
23436         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
23437
23438         * tree-ssa.c (init_tree_ssa): Likewise.
23439
23440         * tree-ssa-structalias.c (heapvar_insert): Likewise.
23441
23442         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23443
23444         * tree-ssa-loop-niter.c (record_estimate): Likewise.
23445
23446         * tree-ssa-alias.c (get_ptr_info): Likewise.
23447
23448         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23449
23450         * tree-phinodes.c (allocate_phi_node): Likewise.
23451
23452         * tree-iterator.c (tsi_link_before): Likewise.
23453         (tsi_link_after): Likewise.
23454
23455         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23456
23457         * tree-dfa.c (create_var_ann): Likewise.
23458
23459         * tree-cfg.c (create_bb): Likewise.
23460
23461         * toplev.c (alloc_for_identifier_to_locale): Likewise.
23462         (general_init): Likewise.
23463
23464         * stringpool.c (stringpool_ggc_alloc): Likewise.
23465         (gt_pch_save_stringpool): Likewise.
23466
23467         * sese.c (if_region_set_false_region): Likewise.
23468
23469         * passes.c (do_per_function_toporder): Likewise.
23470
23471         * optabs.c (set_optab_libfunc): Likewise.
23472         (set_conv_libfunc): Likewise.
23473
23474         * lto-symtab.c (lto_symtab_register_decl): Likewise.
23475
23476         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23477         (input_eh_region): Likewise.
23478         (input_eh_lp): Likewise.
23479         (make_new_block): Likewise.
23480         (unpack_ts_real_cst_value_fields): Likewise.
23481
23482         * lto-section-in.c (lto_new_in_decl_state): Likewise.
23483
23484         * lto-cgraph.c (input_node_opt_summary): Likewise.
23485
23486         * loop-init.c (loop_optimizer_init): Likewise.
23487
23488         * lambda.h (lambda_vector_new): Likewise.
23489
23490         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
23491
23492         * ira.c (update_equiv_regs): Likewise.
23493
23494         * ipa.c (cgraph_node_set_new): Likewise.
23495         (cgraph_node_set_add): Likewise.
23496         (varpool_node_set_new): Likewise.
23497         (varpool_node_set_add): Likewise.
23498
23499         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
23500         (duplicate_ipa_jump_func_array): Likewise.
23501         (ipa_read_node_info): Likewise.
23502
23503         * ipa-cp.c (ipcp_create_replace_map): Likewise.
23504
23505         * integrate.c (get_hard_reg_initial_val): Likewise.
23506
23507         * gimple.c (gimple_alloc_stat): Likewise.
23508         (gimple_build_omp_for): Likewise.
23509         (gimple_seq_alloc): Likewise.
23510         (gimple_copy): Likewise.
23511
23512         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
23513         (gsi_insert_after_without_update): Likewise.
23514
23515         * function.c (add_frame_space): Likewise.
23516         (insert_temp_slot_address): Likewise.
23517         (assign_stack_temp_for_type): Likewise.
23518         (allocate_struct_function): Likewise.
23519         (types_used_by_var_decl_insert): Likewise.
23520
23521         * except.c (init_eh_for_function): Likewise.
23522         (gen_eh_region): Likewise.
23523         (gen_eh_region_catch): Likewise.
23524         (gen_eh_landing_pad): Likewise.
23525         (add_call_site): Likewise.
23526
23527         * emit-rtl.c (get_mem_attrs): Likewise.
23528         (get_reg_attrs): Likewise.
23529         (start_sequence): Likewise.
23530         (init_emit): Likewise.
23531
23532         * dwarf2out.c (new_cfi): Likewise.
23533         (queue_reg_save): Likewise.
23534         (dwarf2out_frame_init): Likewise.
23535         (new_loc_descr): Likewise.
23536         (find_AT_string): Likewise.
23537         (new_die): Likewise.
23538         (add_var_loc_to_decl): Likewise.
23539         (clone_die): Likewise.
23540         (clone_as_declaration): Likewise.
23541         (break_out_comdat_types): Likewise.
23542         (new_loc_list): Likewise.
23543         (loc_descriptor): Likewise.
23544         (add_loc_descr_to_each): Likewise.
23545         (add_const_value_attribute): Likewise.
23546         (tree_add_const_value_attribute): Likewise.
23547         (add_comp_dir_attribute): Likewise.
23548         (add_name_and_src_coords_attributes): Likewise.
23549         (lookup_filename): Likewise.
23550         (store_vcall_insn): Likewise.
23551         (dwarf2out_init): Likewise.
23552
23553         * dbxout.c (dbxout_init): Likewise.
23554
23555         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23556
23557         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23558
23559         * config/score/score7.c (score7_output_external): Likewise.
23560
23561         * config/score/score3.c (score3_output_external): Likewise.
23562
23563         * config/s390/s390.c (s390_init_machine_status): Likewise.
23564
23565         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23566         (rs6000_init_machine_status): Likewise.
23567         (output_toc): Likewise.
23568
23569         * config/pa/pa.c (pa_init_machine_status): Likewise.
23570         (get_deferred_plabel): Likewise.
23571
23572         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23573
23574         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23575
23576         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23577
23578         * config/mep/mep.c (mep_init_machine_status): Likewise.
23579         (mep_note_pragma_flag): Likewise.
23580
23581         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23582
23583         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23584
23585         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23586
23587         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23588         (i386_pe_maybe_record_exported_symbol): Likewise.
23589
23590         * config/i386/i386.c (get_dllimport_decl): Likewise.
23591         (ix86_init_machine_status): Likewise.
23592         (assign_386_stack_local): Likewise.
23593
23594         * config/frv/frv.c (frv_init_machine_status): Likewise.
23595
23596         * config/darwin.c (machopic_indirection_name): Likewise.
23597
23598         * config/cris/cris.c (cris_init_machine_status): Likewise.
23599
23600         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23601
23602         * config/avr/avr.c (avr_init_machine_status): Likewise.
23603
23604         * config/arm/arm.c (arm_init_machine_status): Likewise.
23605
23606         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23607         (alpha_need_linkage): Likewise.
23608         (alpha_use_linkage): Likewise.
23609
23610         * cgraph.c (cgraph_allocate_node): Likewise.
23611         (cgraph_create_edge_1): Likewise.
23612         (cgraph_create_indirect_edge): Likewise.
23613         (cgraph_add_asm_node): Likewise.
23614
23615         * cfgrtl.c (init_rtl_bb_info): Likewise.
23616
23617         * cfgloop.c (alloc_loop): Likewise.
23618         (rescan_loop_exit): Likewise.
23619
23620         * cfg.c (init_flow): Likewise.
23621         (alloc_block): Likewise.
23622         (unchecked_make_edge): Likewise.
23623
23624         * c-parser.c (c_parse_init): Likewise.
23625         (c_parse_file): Likewise.
23626
23627         * c-decl.c (bind): Likewise.
23628         (record_inline_static): Likewise.
23629         (push_scope): Likewise.
23630         (make_label): Likewise.
23631         (lookup_label_for_goto): Likewise.
23632         (finish_struct): Likewise.
23633         (finish_enum): Likewise.
23634         (c_push_function_context): Likewise.
23635
23636         * bitmap.c (bitmap_element_allocate): Likewise.
23637         (bitmap_gc_alloc_stat): Likewise.
23638
23639         * alias.c (record_alias_subset): Likewise.
23640         (init_alias_analysis): Likewise.
23641
23642 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
23643
23644         * fold-const.c (fold_comparison): Remove redundant parenthesis.
23645         * tree-inline.c (expand_call_inline): Pass translated return value of
23646         cgraph_inline_failed_string to diagnostic function.
23647
23648 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
23649             Shujing Zhao  <pearly.zhao@oracle.com>
23650
23651         PR c/37724
23652         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
23653         implicit bad conversions is initialization.
23654         (error_init): Use gmsgid instead of msgid for argument name and change
23655         the call for error.
23656         (pedwarn_init): Use gmsgid instead of msgid for argument name and
23657         change the call for pedwarn.
23658         (warning_init): Use gmsgid instead of msgid for argument name and
23659         change the call for warning.
23660
23661 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
23662
23663         * config/mips/mips-protos.h (mips_print_operand): Delete.
23664         (mips_print_operand_address): Delete.
23665         * config/mips/mips.h (mips_print_operand_punct): Delete.
23666         (PRINT_OPERAND): Delete.
23667         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23668         (PRINT_OPERAND_ADDRESS): Delete.
23669         * config/mips/mips.c (mips_print_operand_punct): Make static.
23670         (mips_print_operand_address): Make static.
23671         (mips_print_operand): Make static.  Call
23672         mips_print_operand_punct_valid_p.
23673         (mips_print_operand_punct_valid_p): New function.
23674         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23675         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23676
23677 2010-06-07  Jan Hubicka  <jh@suse.cz>
23678
23679         PR middle-end/44454
23680         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
23681         are allocated.
23682
23683 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
23684
23685         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
23686         name of RECORD.
23687
23688 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23689
23690         * doc/sourcebuild.texi (Effective-Target Keywords, Other
23691         attributes): Document gas.
23692
23693 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
23694
23695         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
23696         <TYPE_LEA>: Split instruction.
23697         <default>: Remove alternative 2 handling.
23698         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
23699         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
23700         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
23701
23702         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
23703         (ashift_zext lea splitter): Use DImode for multiplication.
23704
23705         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
23706         to generate addition.
23707
23708 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
23709
23710         * common.opt (fira-verbose): Use Var.
23711         (fpcc-struct-return): Use Init instead of VarExists.
23712         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
23713         toplev.c.
23714         * flags.h (flag_signed_char, flag_short_enums,
23715         flag_pcc_struct_return, flag_ira_verbose,
23716         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
23717         * toplev.c (flag_detailed_statistics, flag_signed_char,
23718         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
23719         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
23720         * toplev.h (flag_crossjumping, flag_if_conversion,
23721         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
23722         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
23723         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
23724         flag_cprop_registers, time_report, flag_ira_loop_pressure,
23725         flag_ira_coalesce, flag_ira_move_spills,
23726         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
23727
23728 2010-06-07  Jan Hubicka  <jh@suse.cz>
23729
23730         * df-core.c (df_analyze_problem): Do verification after allocation.
23731
23732         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
23733         (df_lr_alloc): Initialize problem data; move bitmaps to
23734         lr_bitmaps obstack.
23735         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
23736         (df_lr_verify_solution_start): Do not initialize problem data;
23737         allocate bitmaps in lr_bitmaps.
23738         (df_lr_verify_solution_end): Do not free problem data.
23739
23740 2010-06-07  Jan Hubicka  <jh@suse.cz>
23741
23742         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
23743         if caller is noreturn.
23744         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
23745         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
23746         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
23747         * ipa-pure-const.c (check_decl): Add IPA parameter.
23748         (state_from_flags): New function.
23749         (better_state, worse_state): New functions.
23750         (check_call): When in IPA mode, do not care about callees.
23751         (check_load, check_store): Update.
23752         (check_ipa_load, check_ipa_store): New.
23753         (check_stmt): When in IPA mode, use IPA checkers.
23754         (analyze_function): Use state_from_flags.
23755         (propagate): Check indirect edges and references.
23756
23757 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
23758
23759         PR rtl-optimization/44404
23760         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
23761         of count_occurrences to see if it's safe to modify mem_insn.
23762
23763 2010-06-07  Richard Guenther  <rguenther@suse.de>
23764
23765         * gimplify.c (gimplify_cleanup_point_expr): For empty body
23766         and EH-only cleanup drop the cleanup instead of inserting it
23767         unconditionally.
23768
23769 2010-06-07  Ira Rosen  <irar@il.ibm.com>
23770
23771         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
23772         documentation.
23773         * targhooks.c (default_builtin_vectorization_cost): New function.
23774         * targhooks.h (default_builtin_vectorization_cost): Declare.
23775         * target.h (enum vect_cost_for_stmt): Define.
23776         (builtin_vectorization_cost): Change argument and comment.
23777         * tree-vectorizer.h: Remove cost model macros.
23778         * tree-vect-loop.c: Include target.h.
23779         (vect_get_cost): New function.
23780         (vect_estimate_min_profitable_iters): Replace cost model macros with
23781         calls to vect_get_cost.
23782         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
23783         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
23784         default implementation.
23785         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
23786         calls to target hook builtin_vectorization_cost.
23787         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
23788         Likewise.
23789         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
23790         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
23791         implementation to return costs.
23792         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
23793         * config/spu/spu.h: Remove vectorizer cost model macros.
23794         * config/i386/i386.h: Likewise.
23795         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
23796         a call to target hook builtin_vectorization_cost.
23797
23798 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
23799
23800         PR target/44319
23801         * config/i386/i386.c (override_options): Turn zee pass on for level 2
23802         and above and defer till target is known.
23803         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
23804         turn off otherwise.
23805
23806 2010-05-25  Jan Hubicka  <jh@suse.cz>
23807
23808         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
23809         (df_compact_blocks): Likewise.
23810         * df.h (struct df): Turn hardware_regs_used,
23811         regular_block_artificial_uses, eh_block_artificial_uses,
23812         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
23813         bitmap_head.
23814         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
23815         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
23816         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
23817         df_scan_blocks, df_insn_delete, df_insn_rescan,
23818         df_insn_rescan_debug_internal, df_insn_rescan_all,
23819         df_process_deferred_rescans, df_process_deferred_rescans,
23820         df_notes_rescan, df_get_call_refs, df_get_call_refs,
23821         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
23822         df_record_entry_block_defs, df_record_exit_block_uses,
23823         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
23824         df_scan_verify): Update.
23825
23826 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
23827
23828         PR c++/44188
23829         * c-common.c (is_typedef_decl): Move this definition ...
23830         * tree.c (is_typedef_decl): ... here.
23831         (typdef_variant_p): Move definition here from cp/tree.c.
23832         * c-common.h (is_typedef_decl): Move this declaration ...
23833         * tree.h (is_typedef_decl): ... here.
23834         (typedef_variant_p): Move declaration here from cp/cp-tree.h
23835         * dwarf2out.c (is_naming_typedef_decl): New function.
23836         (gen_tagged_type_die): Split out of ...
23837         (gen_type_die_with_usage): ... this function. When an anonymous
23838         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23839         is emitted for the typedef.
23840         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23841         anonymous tagged types.
23842
23843 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23844
23845         PR c/20000
23846         * c-decl.c (grokdeclarator): Delete warning.
23847
23848 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
23849
23850         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
23851         newly built CALL_EXPR.
23852         * tree-profile.c (tree_profiling): Don't profile functions produced
23853         for built-in stuff.
23854
23855 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
23856
23857         PR bootstrap/44427
23858         PR bootstrap/44428
23859         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
23860         endianness-independent.
23861
23862 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
23863
23864         * c-common.c: Move to c-family/.
23865         * c-common.def: Likewise.
23866         * c-common.h: Likewise.
23867         * c-cppbuiltin.c: Likewise.
23868         * c-dump.c: Likewise.
23869         * c-format.c: Likewise.
23870         * c-format.h : Likewise.
23871         * c-gimplify.c: Likewise.
23872         * c-lex.c: Likewise.
23873         * c-omp.c: Likewise.
23874         * c.opt: Likewise.
23875         * c-opts.c: Likewise.
23876         * c-pch.c: Likewise.
23877         * c-ppoutput.c: Likewise.
23878         * c-pragma.c: Likewise.
23879         * c-pragma.h: Likewise.
23880         * c-pretty-print.c: Likewise.
23881         * c-pretty-print.h: Likewise.
23882         * c-semantics.c: Likewise.
23883         * stub-objc.c: Likewise.
23884
23885         * gengtype.c (get_file_langdir): Special-case files in c-family/.
23886         (get_output_file_with_visibility): Fix name for c-common.h.
23887         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
23888
23889         * c-tree.h: Update include path for moved files.
23890         * c-lang.c: Likewise.
23891         * c-lang.h: Likewise.
23892         * c-parser.c: Likewise.
23893         * c-convert.c: Likewise.
23894         * c-decl.c: Likewise.
23895         * c-objc-common.c: Likewise.
23896         * configure.ac: Make sure c-family/ exists in the build directory.
23897         * configure: Regenerate.
23898         * Makefile.in: Update paths for moved files.  Regroup files per
23899         location and update dependencies.  Move generated_files down after
23900         ALL_GTFILES_H.
23901
23902         * config/spu/spu-c.c: Update paths for moved files.
23903         * config/mep/mep-pragma.c: Likewise.
23904         * config/darwin-c.c: Likewise.
23905         * config/i386/msformat-c.c: Likewise.
23906         * config/i386/i386-c.c: Likewise.
23907         * config/avr/avr-c.c: Likewise.
23908         * config/sol2-c.c: Likewise.
23909         * config/ia64/ia64-c.c: Likewise.
23910         * config/rs6000/rs6000-c.c: Likewise.
23911         * config/arm/arm.c: Likewise.
23912         * config/arm/arm-c.c: Likewise.
23913         * config/h8300/h8300.c: Likewise.
23914         * config/v850/v850-c.c: Likewise.
23915
23916         * config/t-darwin: Fix dependencies for moved files.
23917         * config/t-sol2: Fix dependencies for moved files.
23918         * config/mep/t-mep: Fix dependencies for moved files.
23919         * config/ia64/t-ia64: Fix dependencies for moved files.
23920         * config/rs6000/t-rs6000: Fix dependencies for moved files.
23921         * config/v850/t-v850: Fix dependencies for moved files.
23922         * config/v850/t-v850e: Fix dependencies for moved files.
23923
23924         * config/m32c/m32c-pragma.c
23925
23926         * po/exgettext: Look in c-family/ also.
23927
23928 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
23929
23930         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
23931         (mark_control_dependent_edges_necessary): Call it instead of marking
23932         the last statement manually.
23933         (propagate_necessity): Likewise.
23934
23935 2010-06-05  Jan Hubicka  <jh@suse.cz>
23936
23937         * basic-block.h (compute_dominance_frontiers): Updated.
23938         (compute_idf): Likewise.
23939
23940         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
23941         for dominance frontiers.
23942         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
23943         (insert_updated_phi_nodes_for): Likewise.
23944         (update_ssa): Likewise.
23945         * cfganal.c (compute_dominance_frontiers_1): Likewise.
23946         (compute_dominance_frontiers): Likewise.
23947         (compute_idf): Likewise.
23948         * df-problems.c (df_md_local_compute): Likewise.
23949
23950 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
23951
23952         * target.h (struct gcc_target): Add memory_move_cost field.
23953         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
23954         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
23955         * targhooks.c (default_memory_move_cost): New function.
23956         * targhooks.h (default_memory_move_cost): Declare function.
23957         * reload.h (memory_move_cost): Declare.
23958         (memory_move_secondary_cost): Change type of 'in' argument to bool.
23959         * reginfo.c (memory_move_cost): New function.
23960         (memory_move_secondary_cost): Change type of 'in' argument to bool.
23961         * ira.h (ira_memory_move_cost): Update comment.
23962         * ira.c (ira_memory_move_cost): Update comment.
23963         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
23964         with memory_move_cost.
23965         * postreload.c (reload_cse_simplify_set): (Ditto.).
23966         * reload1.c (choose_reload_regs): (Ditto.).
23967         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
23968         (MEMORY_MOVE_COST):  Revise documentation.
23969
23970         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23971         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23972         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
23973         type of 'in' argument to bool.
23974         (TARGET_MEMORY_MOVE_COST): Define.
23975
23976 2010-06-05  Jan Hubicka  <jh@suse.cz>
23977
23978         * ipa-pure-const.c (propagate): Fix typo in handling of functions
23979         that cannot return.  Be more careful when merging the results with
23980         previously known ones.
23981
23982 2010-06-05  Matthias Klose  <doko@ubuntu.com>
23983
23984         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
23985         function to add the -iplugindir option.
23986         (find_plugindir_spec_function): Add new declaration and function.
23987         (static_spec_func): Use it for "find-plugindir".
23988
23989 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
23990
23991         PR c++/44361
23992         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
23993         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
23994         statement expression.
23995
23996 2010-06-05  Jan Hubicka  <jh@suse.cz>
23997
23998         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
23999         (df_rd_problem_data): Convert sparse_invalidated_by_call,
24000         dense_invalidated_by_call to bitmap head.
24001         (df_rd_alloc, df_rd_bb_local_compute_process_def,
24002         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
24003         df_rd_start_dump, df_lr_verify_transfer_functions,
24004         df_live_verify_transfer_functions, df_chain_create_bb,
24005         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
24006         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
24007         df_simulate_one_insn_forwards, df_md_alloc,
24008         df_md_bb_local_compute_process_def,
24009         df_md_bb_local_compute_process_def, df_md_local_compute,
24010         df_md_transfer_function df_md_free): Update.
24011
24012 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
24013
24014         PR c/44322
24015         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
24016         target type for ADDR_EXPR; require no changes to qualifiers except
24017         for function types.
24018         * c-tree.h (c_build_type_variant): Remove.
24019
24020 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
24021
24022         * genautomata.c (get_excl_set): Do work per element, not per char.
24023         (check_presence_pattern_sets): Similar.
24024         (check_absence_pattern_sets): Similar.
24025
24026 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
24027
24028         * genautomata.c (curr_state_pass_num): Delete.
24029         (min_issue_delay_pass_states): Delete.
24030         (min_issue_delay): Delete.
24031         (initiate_min_issue_delay_pass_states): Delete.
24032         (output_min_issue_delay_table): Compute min_issue_delay_vect
24033         using a breadth-first search variant.
24034         (output_tables): Don't call initiate_min_issue_delay_pass_states.
24035
24036 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
24037
24038         PR boostrap/44421
24039         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
24040         (df_byte_lr_bb_local_compute): Likewise.
24041
24042 2010-06-03  Jason Merrill  <jason@redhat.com>
24043
24044         Implement noexcept operator (5.3.7)
24045         * c-common.c (c_common_reswords): Add noexcept.
24046         * c-common.h (enum rid): Add RID_NOEXCEPT.
24047
24048 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * config/darwin-driver.c (darwin_default_min_version): Use
24051         GCC-specific formats in diagnostics.
24052         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
24053         diagnostics.
24054         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
24055         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
24056         eval_spec_function, handle_braces, process_brace_body, main,
24057         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
24058         getenv_spec_function, compare_version_strings,
24059         version_compare_spec_function): Use GCC-specific formats in
24060         diagnostics.
24061
24062 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
24063
24064         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
24065         that operand 0 and operand 1 are equal.
24066         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
24067         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
24068         and operand 1 are equal.
24069         <default>: Ditto.  Remove ??? comment.
24070         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
24071         and operand 1 are equal.
24072         <default>: Ditto.  Remove ??? comment.
24073         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
24074         are equal.
24075         (*add<mode>_4) <default>: Ditto.
24076         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
24077
24078 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
24079
24080         * config/i386/i386-protos.h (ix86_print_operand): Declare.
24081         * config/i386/i386.c (ix86_print_operand): Make non-static.
24082         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
24083         * output.h (output_operand): Declare.
24084         * final.c (output_operand): Make non-static.
24085
24086 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
24087
24088         PR rtl-optimization/44013
24089         * sched-deps.c (add_dependence_list_and_free): Don't free lists
24090         when processing debug insns.
24091
24092         PR debug/41371
24093         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
24094         recursing.  Check that recursion is bounded.  Rename inner var
24095         to avoid hiding incoming argument.
24096
24097 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
24098
24099         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
24100         operands[2] == 255.
24101         (*addqi_3): Ditto.
24102         (*addqi_4): Ditto.
24103         (*addqi_5): Ditto.
24104         (*addqi_ext_1_rex64): Ditto.
24105         (*addqi_ext_1): Ditto.
24106
24107         (*addqi_4): Check for incdec_operand in QImode.
24108
24109         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
24110         using SWI mode iterator.
24111         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
24112         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
24113         mode iterator.
24114         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
24115         using SWI mode iterator.
24116
24117 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24118
24119         PR c/25880
24120         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
24121         * c-format.c (gcc_diag_flag_specs): Add hash.
24122         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
24123         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
24124         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
24125         pp_c_cv_qualifiers. Handle qualifiers spelling here.
24126         (pp_c_type_qualifier_list): Call the function above.
24127         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
24128         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
24129         (WARN_FOR_QUALIFIERS): New macro.
24130         (convert_for_assignment): Use it.
24131
24132 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
24133
24134         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
24135
24136 2010-06-04  Jan Hubicka  <jh@suse.cz>
24137
24138         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
24139         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
24140         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
24141         DF_BYTE_LR_OUT): Update for embedded bitmaps.
24142         * fwprop.c (single_def_use_enter_block): Likewise.
24143         * ddg.c (create_ddg_dep_from_intra_loop_link,
24144         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
24145         * loop-iv.c (latch_dominating_def): Likewise.
24146         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
24147         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
24148         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
24149         df_rd_transfer_function, df_rd_top_dump,
24150         df_rd_bottom_dump): Update.
24151         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
24152         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
24153         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
24154         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
24155         df_lr_verify_solution_start, df_lr_verify_solution_end,
24156         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
24157         df_live_free_bb_info, df_live_alloc, df_live_reset,
24158         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
24159         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
24160         df_live_verify_solution_start, df_live_verify_solution_end,
24161         df_live_verify_transfer_functions, df_chain_create_bb,
24162         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
24163         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24164         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24165         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
24166         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
24167         df_byte_lr_transfer_function, df_byte_lr_top_dump,
24168         df_byte_lr_bottom_dump, df_create_unused_note,
24169         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
24170         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
24171         df_md_transfer_function, df_md_init, df_md_confluence_0,
24172         df_md_confluence_n,
24173         df_md_top_dump, df_md_bottom_dump): Update.
24174         (struct df_lr_problem_data): Embedd bitmap headers.
24175
24176 2010-06-04  Jan Hubicka  <jh@suse.cz>
24177
24178         * dce.c (dce_process_block): Do not re-scan already marked
24179         instructions.
24180
24181 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
24182
24183         PR rtl-optimization/39871
24184         PR rtl-optimization/40615
24185         PR rtl-optimization/42500
24186         PR rtl-optimization/42502
24187         * ira.c (init_reg_equiv_memory_loc: New function.
24188         (ira): Call it twice.
24189         * reload.h (calculate_elim_costs_all_insns): Declare.
24190         * ira-costs.c: Include "reload.h".
24191         (regno_equiv_gains): New static variable.
24192         (init_costs): Allocate it.
24193         (finish_costs): Free it.
24194         (ira_costs): Call calculate_elim_costs_all_insns.
24195         (find_costs_and_classes): Take estimated elimination costs
24196         into account.
24197         (ira_adjust_equiv_reg_cost): New function.
24198         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
24199         * reload1.c (init_eliminable_invariants, free_reg_equiv,
24200         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
24201         (elim_bb): New static variable.
24202         (reload): Move code out of here into init_eliminable_invariants and
24203         free_reg_equiv.  Call them.
24204         (calculate_elim_costs_all_insns): New function.
24205         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
24206         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
24207         but call note_reg_elim_costly if we turned a valid memory address
24208         into an invalid one.
24209         * Makefile.in (ira-costs.o): Depend on reload.h.
24210
24211 2010-06-04  Julian Brown  <julian@codesourcery.com>
24212
24213         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
24214         for pool ranges.
24215
24216 2010-06-04  Richard Guenther  <rguenther@suse.de>
24217
24218         PR lto/41584
24219         * cgraph.h (struct varpool_node): Add lto_file_data field.
24220         * lto-cgraph.c (input_varpool_node): Initialize it.
24221
24222 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
24223
24224         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
24225         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
24226         predicate in "type" attribute calculation.
24227         (*addsi_1_zext): Ditto.
24228         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
24229         (*addsi_2_zext): Ditto.
24230         (*add<mode>_3): Ditto.
24231         (*addsi_3_zext): Ditto.
24232         (*add<mode>_5): Ditto.
24233
24234 2010-06-03  Jan Hubicka  <jh@suse.cz>
24235
24236         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
24237         of bitmap_bit_p.
24238         * cfganal.c (compute_dominance_frontiers_1): Likewise.
24239
24240 2010-06-03  Jan Hubicka  <jh@suse.cz>
24241
24242         * df-problems.c (df_create_unused_note, df_note_bb_compute):
24243         micro-optimize the checks when to add new note.
24244
24245 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
24246
24247         * final.c (output_asm_insn): Call
24248         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
24249         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
24250         (output_address): Call targetm.asm_out.print_operand_address.
24251         Update comments.
24252         * target.h (struct gcc_target): Add print_operand,
24253         print_operand_address, and print_operand_punct_valid_p fields.
24254         * targhooks.h (default_print_operand): Declare.
24255         (default_print_operand_address): Declare.
24256         (default_print_operand_punct_valid_p): Declare.
24257         * targhooks.c (default_print_operand): Define.
24258         (default_print_operand_address): Define.
24259         (default_print_operand_punct_valid_p): Define.
24260         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
24261         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
24262         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
24263         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
24264         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
24265         * vmsdbgout.c (addr_const_to_string): Update comment.
24266         * config/i386/i386.c (print_operand): Rename to...
24267         (ix86_print_operand): ...this.  Make static.
24268         (print_operand_address): Rename to...
24269         (ix86_print_operand_address): ...this.  Make static.  Call
24270         ix86_print_operand instead of PRINT_OPERAND.
24271         (ix86_print_operand_punct_valid_p): New function.
24272         (TARGET_PRINT_OPERAND): Define.
24273         (TARGET_PRINT_OPERAND_ADDRESS): Define.
24274         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24275         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
24276         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24277         (PRINT_OPERAND): Delete.
24278         (PRINT_OPERAND_ADDRESS): Delete.
24279         * config/i386/i386-protos.h (print_operand): Delete prototype.
24280         (print_operand_address): Delete prototype.
24281
24282 2010-06-03  Richard Guenther  <rguenther@suse.de>
24283
24284         PR tree-optimization/44403
24285         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24286         Preserve pointer qualifiers.
24287         (vect_create_data_ref_ptr): Likewise.
24288
24289 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
24290
24291         PR c++/44294
24292         * defaults.h (MAX_FIXED_MODE_SIZE): New.
24293
24294         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
24295
24296 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
24297
24298         PR debug/44375
24299         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
24300         return false if merging the bbs would lead to goto_locus
24301         location being lost from the IL.
24302
24303 2010-06-03  Jan Hubicka  <jh@suse.cz>
24304             Jakub Jelinek  <jakub@redhat.com>
24305
24306         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
24307         set->regs[i] is NULL or has just one entry.
24308
24309 2010-06-03  Jan Hubicka  <jh@suse.cz>
24310
24311         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
24312         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
24313
24314 2010-06-03  Paul Brook  <paul@codesourcery.com>
24315
24316         * config/arm/arm.c (FL_TUNE): Define.
24317         (arm_default_cpu, arm_cpu_select): Remove.
24318         (all_cores): Populate core field.
24319         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
24320         (arm_find_cpu): New function.
24321         (arm_handle_option): Lookup cpu/architecture names.
24322         (arm_override_options): Cleanup mcpu/march/mtune handling.
24323         (arm_file_start): Ditto.
24324
24325 2010-06-03  Alan Modra  <amodra@gmail.com>
24326
24327         PR target/44169
24328         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
24329         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
24330         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
24331         (rs6000_emit_load_toc_table): Likewise.
24332
24333 2010-06-02  Jan Hubicka  <jh@suse.cz>
24334
24335         * passes.c (init_optimization_passes): Put ipa reference
24336         after ipa pure-const.
24337
24338 2010-06-02  Jan Hubicka  <jh@suse.cz>
24339
24340         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
24341         calls_read_all and calls_write_all.
24342         (get_reference_optimization_summary): Fix formatting.
24343         (is_proper_for_analysis): Check that decl is not readonly.
24344         (propagate_bits): Check CONST/PURE/noreturn flags.
24345         (ipa_init): Move all_module_statics to optimization_summary_obstack.
24346         (analyze_function): Ignore indirect edges.
24347         (copy_global_bitmap): For all module statics, do nothing.
24348         (generate_summary): Do not print calls_read_all/calls_write_all.
24349         (read_write_all_from_decl): Take node as argument; check
24350         cgraph_node_cannot_return.
24351         (propagate): Reorganize read_all/write_all computation;
24352         check indirect edges; check ecf flags; use all_module_statics
24353         in the results; do not free all_module_statics.
24354         (stream_out_bitmap): Handle all_module_statics.
24355         (ipa_reference_write_optimization_summary): Likewise; use
24356         varpool/cgraph encoders to get boundaries.
24357         (ipa_reference_read_optimization_summary): Read in all_module_statics;
24358         use it when possible.
24359
24360 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24361
24362         PR target/44218
24363         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
24364         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
24365
24366         * doc/extend.texi (powerpc builtins): Document vec_recip,
24367         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
24368
24369         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
24370         (rs6000_emit_swrsqrt): Ditto.
24371         (rs6000_emit_swdivsf): Delete.
24372         (rs6000_emit_swdivdf): Ditto.
24373         (rs6000_emit_swrsqrtsf): Ditto.
24374
24375         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
24376         describe the reciprocal estimate support for each type.
24377         (recip_options): Map -mrecip=<opt> into option bits.
24378         (gen_2arg_fn_t): New typedef for binary rtx gen function.
24379         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
24380         reciprocal estimate instructions.
24381         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
24382         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
24383         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
24384         cost information if -mdebug=cost or -mdebug=reg.
24385         (rs6000_override_options): Set -mrecip-precision for power6, and
24386         power7 machines.  If -mvsx or -mdfp, enable various options that
24387         came in previous instruction set ISAs, unless the option was
24388         explicitly disabled by the command line option.  Parse
24389         -mrecip=<opt> options.
24390         (rs6000_builtin_vectorized_function): Add support for vectorizing
24391         the reciprocal estimate builtins and expansions.
24392         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
24393         (bdesc_2arg): Add reciprocal estimate builtins.
24394         (bdesc_1arg): Add reciprocal square root estimate builtins.
24395         (rs6000_expand_builtin): Rewrite to use a switch statement,
24396         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
24397         (rs6000_init_builtins): Create declarations for reciprocal
24398         estimate builtins.
24399         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
24400         sized, prefer traditional floating point registers, if integer
24401         vector types, prefer altivec registers.  Don't actually look at
24402         the memory address any more.
24403         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
24404         builtins.
24405         (rs6000_load_constant_and_splat): New helper function to load up
24406         the constant for reciprocal estimate instructions.
24407         (rs6000_emit_madd): New helper function for generating
24408         multiply/add type instructions, based on the current switches.
24409         (rs6000_emit_msub): Ditto.
24410         (rs6000_emit_mnsub): Ditto.
24411         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
24412         replace a divide with a reciprocal estimate and fixup, adding
24413         support for machines with high precision and vectors.
24414         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
24415         low precision machines.
24416         (rs6000_emit_swdiv): New common function to be called to replace a
24417         division with reciprocal estimate and fixup.
24418         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
24419         for double and vector types.  Add support for high precision machines.
24420
24421         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
24422         the reciprocal estimate instructions can be generated.
24423         (TARGET_FRE): Ditto.
24424         (TARGET_FRSQRTES): Ditto.
24425         (TARGET_FRSQRTE): Ditto.
24426         (RS6000_RECIP_*): New macros for reciprocal estimate support.
24427
24428         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
24429         square root estimate on vectors.
24430         (re<mode>2): New insn for reciprocal division estimate on vectors.
24431
24432         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
24433         New builtin.
24434         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
24435         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
24436         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
24437         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
24438         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
24439         (RS6000_BUILTIN_RSQRT): Ditto.
24440         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
24441         floating point builtin.
24442
24443         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24444         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
24445         __RECIP_PRECISION__ based on the command line switches.
24446         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
24447
24448         * config/rs6000/rs6000.opt (-mrecip): Document add support for
24449         replacing division instructions with reciprocal estimate and fixup.
24450         (-mrecip=<opt>): New option.
24451         (-mrecip-precision): Ditto.
24452
24453         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
24454         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
24455         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
24456         precision scalar.
24457
24458         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
24459         (UNSPEC_VREFP): Ditto.
24460         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
24461         conterparts with regard to support of -mno-fused-madd and -ffast-math.
24462         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
24463         reciprocal estimate instructions to be generated.
24464         (altivec_vrefp): Ditto.
24465
24466         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
24467         estimate support.
24468         (rreg): New mode attribute for reciprocal estimate support.
24469         (recip<mode>3): New insn for division using reciprocal estimate
24470         and fixup builtins.
24471         (divide define_split): New define_split to convert floating point
24472         division to use reciprocal estimate if the user used the
24473         appropriate options and the split is run when we can add new
24474         pseudo registers for the fixup.
24475         (rsqrt<mode>2): New insn for reciprocal square root support.
24476         (recipsf3): Move into recip<mode>3.
24477         (recipdf3): Ditto.
24478         (fres): Use TARGET_FRES.
24479         (rsqrtsf2): Move into rsqrt<mode>2.
24480         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
24481         (copysignsf3): Add support for VSX.
24482         (fred): Use TARGET_FRE.
24483         (fred_fpr): Ditto.
24484         (rsqrtdf_internal1): New function for frsqrte instruciton.
24485
24486         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
24487         (vec_rsqrt): Ditto.
24488
24489 2010-06-03  Richard Guenther  <rguenther@suse.de>
24490
24491         PR middle-end/44291
24492         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
24493         (set_user_assembler_libfunc): Likewise.
24494
24495 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
24496
24497         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
24498         defaults.h.
24499         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
24500         to defaults.h
24501         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
24502         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
24503         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
24504         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
24505         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
24506         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
24507         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
24508         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
24509         * defaults.h: Updated for above mentioned changes.
24510
24511 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
24512
24513         * c-common.c: Remove header include of tm_p.h.
24514         * Makefile.in (c-common.o): Remove TM_P_H dependency.
24515
24516 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
24517
24518         * tree.h (struct tree_decl_map): New type.
24519         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
24520         (tree_decl_map_hash): New prototype.
24521         (debug_expr_for_decl, value_expr_for_decl): Change into
24522         tree_decl_map hashtab from tree_map.
24523         (init_ttree): Adjust initialization.
24524         (tree_decl_map_hash): New function.
24525         (decl_debug_expr_lookup, decl_debug_expr_insert,
24526         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
24527
24528 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24529
24530         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
24531         linker emulations.
24532         * configure: Regenerate.
24533         * config.in: Regenerate.
24534
24535         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
24536         (X86_64_EMULATION): Define.
24537         (TARGET_LD_EMULATION): Use them.
24538
24539         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
24540         (SPARC64_EMULATION): Define.
24541         (LINK_ARCH_SPEC): Use them.
24542
24543 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
24544
24545         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
24546         smallest_mode_for_size for computing the precision types of new
24547         graphite IVs.  Do not call lang_hooks.types.type_for_size.
24548
24549 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
24550
24551         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
24552         information.
24553         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
24554
24555 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
24556
24557         PR middle-end/44363
24558         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
24559         return false instead.
24560
24561 2010-06-02  Jan Hubicka  <jh@suse.cz>
24562
24563         PR middle-end/44295
24564         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
24565         create new cgraph node to check callee.
24566
24567 2010-06-02  Richard Guenther  <rguenther@suse.de>
24568
24569         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
24570
24571 2010-06-02  Richard Guenther  <rguenther@suse.de>
24572
24573         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
24574         (lto_wrapper_cleanup): ... this.  Do not exit.
24575         (fatal): Adjust.  Exit here.
24576         (fatal_perror): Likewise.
24577         (fatal_signal): New function.
24578         (main): Set up signal handlers to cleanup temporary files.
24579         * Makefile.in (lto-wrapper.o): Adjust dependencies.
24580
24581 2010-06-02  Richard Guenther  <rguenther@suse.de>
24582
24583         PR tree-optimization/44377
24584         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
24585
24586 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24587
24588         * config/s390/2097.md (z10_fhex): Remove insn reservation.
24589         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
24590         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
24591         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
24592         instruction.
24593         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
24594
24595 2010-06-02  Jan Hubicka  <jh@suse.cz>
24596
24597         * bitmap.c (bitmap_descriptor): Add search_iter.
24598         (bitmap_find_bit): Increment it.
24599         (print_statistics): Print it.
24600
24601 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
24602
24603         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
24604         instead of gimple_build_call_vec.  Delete unnecessary local variable.
24605
24606 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
24607
24608         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
24609         change from yesterday.
24610
24611 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
24612
24613         * c-ada-spec.c: Clean up redundant includes.
24614
24615 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
24616
24617         * gimplify.c: Do not include except.h and optabs.h.
24618         (gimplify_body): Do not initialize RTL profiling.
24619         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
24620         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
24621         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
24622         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
24623         langhooks.h.
24624
24625         * tree-pretty-print.h: Include pretty-print.h.
24626         * gimple-pretty-print.h: Include pretty-print.h.
24627
24628         * tree-pretty-print.c: Do not include diagnostic.h.
24629         * tree-vrp.c: Likewise.
24630         * tree-tailcall.c: Likewise
24631         * tree-scalar-evolution.c: Likewise
24632         * tree-ssa-dse.c: Likewise
24633         * tree-chrec.c: Likewise
24634         * tree-ssa-sccvn.c: Likewise
24635         * tree-ssa-copyrename.c: Likewise
24636         * tree-nomudflap.c: Likewise
24637         * tree-call-cdce.c: Likewise
24638         * tree-stdarg.c: Likewise
24639         * tree-ssa-math-opts.c: Likewise
24640         * tree-nrv.c: Likewise
24641         * tree-ssa-sink.c: Likewise
24642         * tree-browser.c: Likewise
24643         * tree-ssa-loop-ivcanon.c: Likewise
24644         * tree-ssa-loop.c: Likewise
24645         * tree-parloops.c: Likewise
24646         * tree-ssa-address.c: Likewise
24647         * tree-ssa-ifcombine.c: Likewise
24648         * tree-if-conv.c: Likewise
24649         * tree-data-ref.c: Likewise
24650         * tree-affine.c: Likewise
24651         * tree-ssa-phiopt.c: Likewise
24652         * tree-ssa-coalesce.c: Likewise
24653         * tree-ssa-pre.c: Likewise
24654         * tree-ssa-live.c: Likewise
24655         * tree-predcom.c: Likewise
24656         * tree-ssa-forwprop.c: Likewise
24657         * tree-ssa-dce.c: Likewise
24658         * tree-ssa-ter.c: Likewise
24659         * tree-ssa-loop-prefetch.c: Likewise
24660         * tree-optimize.c: Likewise
24661         * tree-ssa-phiprop.c: Likewise
24662         * tree-object-size.c: Likewise
24663         * tree-outof-ssa.c: Likewise
24664         * tree-ssa-structalias.c: Likewise
24665         * tree-switch-conversion.c: Likewise
24666         * tree-ssa-reassoc.c: Likewise
24667         * tree-ssa-operands.c: Likewise
24668         * tree-vectorizer.c: Likewise
24669         * tree-vect-data-refs.c: Likewise
24670         * tree-vect-generic.c: Likewise
24671         * tree-vect-stmts.c: Likewise
24672         * tree-vect-patterns.c: Likewise
24673         * tree-vect-slp.c: Likewise
24674         * tree-vect-loop.c: Likewise
24675         * tree-ssa-loop-ivopts.c: Likewise
24676         * tree-ssa-loop-im.c: Likewise
24677         * tree-ssa-loop-niter.c: Likewise
24678         * tree-ssa-loop-unswitch.c: Likewise
24679         * tree-ssa-loop-manip.c: Likewise
24680         * tree-ssa-loop-ch.c: Likewise
24681         * tree-dump.c: Likewise
24682         * tree-complex.c: Likewise
24683
24684         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
24685         * tree-ssa-uninit.c: Likewise
24686         * tree-ssa-threadupdate.c: Likewise
24687         * tree-ssa-uncprop.c: Likewise
24688         * tree-ssa-ccp.c: Likewise
24689         * tree-ssa-dom.c: Likewise
24690         * tree-ssa-propagate.c: Likewise
24691         * tree-ssa-alias.c: Likewise
24692         * tree-dfa.c: Likewise
24693         * tree-cfgcleanup.c: Likewise
24694         * tree-sra.c: Likewise
24695         * tree-ssa-copy.c: Likewise
24696         * tree-ssa.c: Likewise
24697         * tree-profile.c: Likewise
24698         * tree-cfg.c: Likewise
24699         * tree-ssa-threadedge.c: Likewise
24700         * tree-vect-loop-manip.c: Likewise
24701
24702         * tree-inline.c: Do not include diagnostic.h and expr.h.
24703         Include rtl.h.
24704         (copy_decl_for_dup_finish): Do not use NULL_RTX.
24705
24706         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
24707         * tree-loop-distribution.c: Likewise.
24708
24709 2010-06-01  Jan Hubicka  <jh@suse.cz>
24710
24711         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
24712
24713 2010-06-01  Jan Hubicka  <jh@suse.cz>
24714
24715         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
24716         remove return value.
24717         (split_bbs_on_noreturn_calls) .... here.
24718         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
24719         * tree-flow.h (fixup_noreturn_call): New.
24720
24721 2010-06-01  Jan Hubicka  <jh@suse.cz>
24722
24723         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
24724
24725 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
24726
24727         * tree.h (build_nt_call_list): Delete.
24728         * tree.c (build_nt_call_list): Delete.
24729
24730 2010-06-01  Jan Hubicka  <jh@suse.cz>
24731
24732         * fwprop.c: Make emit-rtl.h include last.
24733         * rtlanal.c: Include emit-rtl.h.
24734         * genautomata.c: Output emit-rtl include into insn-automata.c
24735         * df-scan.c: Include emit-rtl.h.
24736         * haifa-sched.c: Indlude emit-rtl.h.
24737         * mode-switching.c: Indlude emit-rtl.h.
24738         * graph.c: Indlude emit-rtl.h.
24739         * sel-sched.c: Include emit-rtl.h.
24740         * sel-sched-ir.c: Include emit-rtl.h.
24741         * ira-build.c: Include emit-rtl.h.
24742         * emit-rtl.c (first_insn, last_insn): Remove defines.
24743         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
24744         Move to emit-rtl.h.
24745         (set_new_first_and_last_insn, get_last_insn_anywhere,
24746         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
24747         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
24748         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
24749         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
24750         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
24751         Use accessor functions.
24752         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24753          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24754         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24755         mem_expr_equal_p): Move here from rtl.h.
24756         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
24757         Move here from emit-rtl.c; make inline.
24758         * cfglayout.h: Include emit-rtl.h.
24759         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24760          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24761         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24762         mem_expr_equal_p, get_insns, set_first-insn,
24763         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
24764         * reg-stack.c: Include emit-rtl.h.
24765         * dce.c: Likewise.
24766
24767 2010-06-01  Jan Hubicka  <jh@suse.cz>
24768
24769         * cgraph.h (tree_function_versioning): Update prototype.
24770         (cgraph_function_versioning): Update prototype.
24771         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
24772         bitmap.
24773         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
24774         (cgraph_materialize_clone, save_inline_function_body): Update use of
24775         tree_function_versioning.
24776         * tree-inline.c (copy_bb): Look for previous copied block to link
24777         after; fix debug output.
24778         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
24779         (copy_body): Likewise.
24780         (expand_call_inline): Update use of copy_body.
24781         (tree_function_versioning): Update use of copy body; accept
24782         blocks_to_copy and new_entry.
24783
24784 2010-06-01  Jan Hubicka  <jh@suse.cz>
24785
24786         * gegenrtl.c: Remove unnecesary prototypes.
24787         (gendecl): Remove.
24788         (gendef): Produce static inline.
24789         (gencode): Remove.
24790         (main): Do not decode parameters; generate header only.
24791         * Makefile.in (genrtl.c): Remove.
24792
24793 2010-06-01  Jan Hubicka  <jh@suse.cz>
24794
24795         * tree-switch-conversion.c (build_one_array): Make it readonly.
24796
24797 2010-06-01  Richard Guenther  <rguenther@suse.de>
24798
24799         * optabs.c (init_optabs): Guard all accesses to reinit.
24800         * ipa-pure-const.c (propagate): Fix another typo.
24801         * opts.c (common_handle_option): Split assignment to bool.
24802         * c-opts.c (c_common_handle_option): Likewise.
24803
24804 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
24805             Matthew Gingell  <gingell@adacore.com>
24806
24807         * doc/invoke.texi: Mention -fdump-ada-spec.
24808         * tree-dump.c (dump_files): Add ada-spec.
24809         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
24810         * tree-pass.h (tree_dump_index): Add TDI_ada.
24811         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
24812         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
24813         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
24814         * c-decl.c: Include c-ada-spec.h.
24815         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
24816         functions.
24817         (c_write_global_declarations): Add handling of -fdump-ada-spec.
24818         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
24819         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
24820         * c-ada-spec.h, c-ada-spec.c: New files.
24821
24822 2010-06-01  Richard Guenther  <rguenther@suse.de>
24823
24824         PR lto/43853
24825         * ipa-pure-const.c (get_function_state): Hand back varying state
24826         if we do not have one.
24827         (has_function_state): New function.
24828         (duplicate_node_data): Adjust.
24829         (remove_node_data): Likewise.
24830         (pure_const_write_summary): Likewise.
24831         (propagate): Likewise.  Fix typo.
24832
24833 2010-06-01  Jan Hubicka  <jh@suse.cz>
24834
24835         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
24836         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
24837         (execute_all_ipa_transforms): Do not play with the states.
24838
24839 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
24840
24841         * config/arm/t-linux-androideabi: New.
24842         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
24843
24844 2010-06-01  Jan Hubicka  <jh@suse.cz>
24845
24846         * tree-inline.c (estimate_num_insns): For stdarg functions look
24847         into call statement to count cost of argument passing.
24848
24849 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
24850
24851         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
24852         argument for fprintf.
24853         (ix86_output_addr_diff_elt): Likewise.
24854         (x86_function_profiler): Likewise.
24855         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
24856         (LPREFIX): Likewise.
24857         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
24858
24859 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
24860
24861         PR target/44338
24862         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
24863         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
24864         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
24865         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
24866         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
24867         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
24868         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
24869         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
24870         TARGET_FUSED_MADD.
24871
24872 2010-05-31  Jan Hubicka  <jh@suse.cz>
24873
24874         * tree.h (tree_range_check_failed): Declare noreturn.
24875
24876 2010-05-31  Jan Hubicka  <jh@suse.cz>
24877
24878         * gimple.c (gimple_call_builtin_p): New function.
24879         * gimple.h (gimple_call_builtin_p): Declare.
24880         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
24881         to exit.
24882         (execute_warn_function_return): BUILT_IN_RETURN is return.
24883         (split_critical_edges): Return edges are not critical.
24884         (is_ctrl_altering_stmt): Builtin_in_return is altering.
24885         (gimple_verify_flow_info): Handle built_in_return.
24886         (execute_warn_function_return): Handle built_in_return.
24887         * ipa-pure-const.c (check_call): Ignore builtin_return.
24888
24889 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
24890
24891         PR middle-end/44337
24892         * expr.c (expand_assignment): Don't store anything for out-of-bounds
24893         array accesses with non-MEM.
24894
24895         PR tree-optimization/44182
24896         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
24897         newly needs to end a bb is followed by debug stmts, instead return
24898         true from the function at the end.
24899         (maybe_move_debug_stmts_to_successors): New function.
24900         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
24901
24902 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
24903
24904         PR target/44161
24905         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
24906
24907 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24908
24909         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
24910         for nested functions in non-optimized compilation.
24911
24912 2010-05-31  Richard Guenther  <rguenther@suse.de>
24913
24914         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
24915
24916 2010-05-30  Jan Hubicka  <jh@suse.cz>
24917
24918         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
24919
24920 2010-05-30  Richard Guenther  <rguenther@suse.de>
24921
24922         PR lto/42975
24923         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
24924         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
24925         no longer needed.
24926
24927 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
24928
24929         * config/darwin.c (output_objc_section_asm_op): Add comment.
24930         (name_needs_quotes): Add '_' to list of valid comment chars.
24931         (machopic_output_function_base_name): Remove unneeded quotes.
24932         (darwin_encode_section_info): Adjust asm whitespace.
24933         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
24934         (ASM_OUTPUT_LOCAL): Ditto.
24935         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
24936         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
24937         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
24938
24939 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
24940
24941         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
24942         RS6000_OUTPUT_BASENAME unconditionally.
24943         (rs6000_output_function_epilogue): Likewise.
24944
24945 2010-05-30  Jan Hubicka  <jh@suse.cz>
24946
24947         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
24948         nodes.
24949
24950 2010-05-30  Richard Guenther  <rguenther@suse.de>
24951
24952         * tree-cfg.c (verify_gimple_assign_single): Implement
24953         verification for COND_EXPR rhs.
24954
24955 2010-05-30  Jan Hubicka  <jh@suse.cz>
24956
24957         * cgraph.h (cgraph_dump_file): Declare.
24958         * cgraphunit.c (cgraph_dump_file): Export.
24959         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
24960
24961 2010-05-30  Jan Hubicka  <jh@suse.cz>
24962
24963         * dwarf2out.c (reference_to_unused,
24964         premark_types_used_by_global_vars_helper): Avoid creation of new
24965         varpool nodes.
24966
24967 2010-05-30  Jan Hubicka  <jh@suse.cz>
24968
24969         * cgraph.h (cgraph_node_cannot_return,
24970         cgraph_edge_cannot_lead_to_return): New functions.
24971         * cgraph.c (cgraph_node_cannot_return,
24972         cgraph_edge_cannot_lead_to_return): Use them.
24973         * ipa-pure-const.c (pure_const_names): New static var.
24974         (check_call): Handle calls not leading to return.
24975         (pure_const_read_summary): Dump info read.
24976         (propagate): Dump info about propagation process; ignore side effects
24977         of functions not leading to exit; fix handling of pure functions.
24978
24979 2010-05-30  Jan Hubicka  <jh@suse.cz>
24980
24981         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
24982         for tail call epilogues.
24983
24984 2010-05-30  Jan Hubicka  <jh@suse.cz>
24985
24986         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
24987         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
24988         dump files.
24989
24990 2010-05-29  Jan Hubicka  <jh@suse.cz>
24991
24992         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
24993         node; remove references in node we no longer keep in cgrpah but need
24994         body of.
24995
24996 2010-05-29  Jan Hubicka  <jh@suse.cz>
24997
24998         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
24999
25000 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25001
25002         PR target/44165
25003         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
25004
25005 2010-05-29  Jan Hubicka  <jh@suse.cz>
25006
25007         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
25008         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
25009         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
25010         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
25011         debug_names_replaced_by, debug_update_ssa): Likewise.
25012         * sbitmap.c (debug_sbitmap): Likewise.
25013         * genrecog.c (debug_decision, debug_decision_list): Likewise.
25014         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
25015         debug_tree_chain): Likewise.
25016         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
25017         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
25018         * optabs.c (debug_optab_libfuncs): Likewise.
25019         (verify_loop_closed_ssa): Likewise.
25020         * value-prof.c (verify_histograms): Likewise.
25021         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
25022         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
25023         * cfghooks.c (verify_flow_info): Likewise.
25024         * fold-const.c (debug_fold_checksum): Likewise.
25025         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
25026         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
25027         Likewise.
25028         * omega.c (debug_omega_problem): Likewise.
25029         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
25030         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
25031         * dominance.c (verify_dominators, debug_dominance_info,
25032         debug_dominance_tree): Likewise.
25033         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
25034         * df_regno_debug, df_ref_debug,
25035         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
25036         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
25037         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
25038         * sel-sched.c (debug_state): Likewise.
25039         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
25040         Likewise.
25041         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
25042         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
25043         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
25044         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
25045         Likewise.
25046         * c-pretty-print.c (debug_c_tree): Likewise.
25047         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
25048         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
25049         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
25050         * ebitmap.c (debug_ebitmap): Likewise.
25051         * function.c (debug_find_var_in_block_tree): Likewise.
25052         * print-rtl.c (debug_rtx): Likewise.
25053         (debug_rtx_count): Likewise.
25054         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
25055         * stor-layout.c (debug_rli): Likewise.
25056         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
25057         * tree-data-ref.c (debug_data_references,
25058         debug_data_dependence_relations, debug_data_reference,
25059         debug_data_dependence_relation, debug_rdg_vertex,
25060         debug_rdg_component, debug_rdg): Likewise.
25061         * tree-affine.c (debug_aff): Likewise.
25062         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
25063         Likewise.
25064         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
25065         * emit-rtl.c (verify_rtl_sharing): Likewise.
25066         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
25067         debug_value_expressions): Likewise.
25068         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
25069         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
25070         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
25071         * cfglayout.c (verify_insn_chain): Likewise.
25072         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
25073         debug_clast_stmt, debug_generated_program): Likewise.
25074         * ggc-page.c (debug_print_page_list): Likewise.
25075         * tree-ssa-ter.c (debug_ter): Likewise.
25076         * graphite-dependences.c (debug_pddr): Likewise.
25077         * sched-deps.c (debug_ds): Likewise.
25078         * tree-ssa.c (verify_ssa): Likewise.
25079         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
25080         debug_scattering_functions, debug_iteration_domains, debug_pdr,
25081         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
25082         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
25083         * tree-inline.c (debug_find_tree): Likewise.
25084         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
25085         debug_ppl_powerset_matrix): Likewise.
25086         * var-tracking.c (debug_dv): Likewise.
25087         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
25088         * cfgloop.c (verify_loop_structure): Likewise.
25089         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
25090         * c-common.c (verify_sequence_points): Likewise.
25091         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
25092         debug_candidates, debug_rgn_dependencies): Likewise.
25093         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
25094         * debug_constraint_graph, debug_solution_for_var,
25095         debug_sa_points_to_info): Likewise.
25096         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
25097         Likewie.
25098         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
25099         debug_loops, debug_loop, debug_loop_num): Likewise.
25100         * passes.c (debug_pass): Likewise.
25101         (dump_properties): Likewise; add cfglayout property.
25102         (debug_properties): Likewise.
25103         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
25104         * varpool.c (debug_varpool): Likewise.
25105         * regcprop.c (debug_value_data): Likewise.
25106         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
25107         debug_immediate_uses_for): Likewise.
25108
25109 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
25110
25111         PR bootstrap/44315
25112         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
25113         Filter out insn-flags.h.
25114
25115 2010-05-29  Jan Hubicka  <jh@suse.cz>
25116
25117         * cgraph.h (struct varpool_node_set_def,
25118         struct cgraph_node_set_def): Remove unused AUX pointer.
25119         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
25120         VEC_empty macro.
25121
25122 2010-05-29  Jan Hubicka  <jh@suse.cz>
25123
25124         PR middle-end/44324
25125         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
25126
25127 2010-05-29  Richard Guenther  <rguenther@suse.de>
25128
25129         * lto-streamer.c (cached_bp): New global variable.
25130         (bitpack_create): Return the cached bitpack, if available.
25131         (bitpack_delete): Clear and cache the bitpack, if appropriate.
25132         (bp_pack_value): Remove redundant asserts.
25133
25134 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
25135
25136         PR middle-end/44306
25137         * tree-if-conv.c (is_true_predicate): New.
25138         (is_predicated): Use is_true_predicate.
25139         (add_to_predicate_list): Same.  Do not use unshare_expr.
25140         (add_to_dst_predicate_list): Same.
25141
25142 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
25143
25144         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
25145         field on edges.
25146         (predicate_bbs): Same.
25147         (clean_predicate_lists): Same.
25148         (find_phi_replacement_condition): Do not AND the predicate from
25149         edge->aux.
25150
25151 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
25152
25153         PR bootstrap/44315
25154         * Makefile.in (build/gencondmd.o): Add a missing `\'.
25155
25156 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25157
25158         PR target/44261
25159         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
25160         (negdf2): Adjust expander pattern and use negdf2_slow.
25161         (negsf2): Likewise.
25162
25163 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
25164
25165         * basic-block.h (struct control_flow_graph): Move last_label_uid field
25166         up.
25167         * df.h (struct df_base_ref): Move regno field up.
25168         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
25169         * expr.h (struct separate_ops): Move location field up.
25170         * optabs.h (struct optab_d): Move libcall_basename field down.
25171         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
25172         * config/i386/i386.h (struct machine_function): Convert call_abi field
25173         into a bitfield.  Move cfa field to the end of the structure.
25174
25175 2010-05-29  Jan Hubicka  <jh@suse.cz>
25176
25177         * varpool.c (varpool_get_node): Fix lookup.
25178
25179 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
25180
25181         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
25182         RTL specific prototypes with #ifdef RTX_CODE.
25183         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
25184         * config/spu/t-spu-elf: Fix dependencies.
25185
25186         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
25187
25188 2010-05-29  Mike Stump  <mikestump@comcast.net>
25189
25190         PR bootstrap/44315
25191         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
25192         TM_H when building to avoid dependency loops.
25193
25194 2010-05-29  Jan Hubicka  <jh@suse.cz>
25195
25196         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
25197         refs and body; not the whole node for masters of materialized clones.
25198
25199 2010-05-29  Mike Stump  <mikestump@comcast.net>
25200
25201         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
25202
25203 2010-05-29  Jan Hubicka  <jh@suse.cz>
25204
25205         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
25206         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
25207         use of clone_function_name.
25208         * cgraph.h (cgraph_create_virtual_clone,
25209         cgraph_function_versioning): update prototypes.
25210         (clone_function_name): Declare.
25211         * ipa-cp.c (ipcp_insert_stage): Update call of
25212         cgraph_create_virtual_clone.
25213         * omp-low.c (create_omp_child_function_name): Use
25214         cgraph_create_virtual_clone.
25215         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
25216         (cgraph_function_versioning): Take SUFFIX argument; produce new name
25217         and make decl local.
25218
25219 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
25220
25221         * vec.h: Include statistics.h
25222         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
25223         with VEC_H.
25224
25225 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
25226
25227         * c-lex.c: Do not include c-tree.h.
25228         * c-pretty-print.c: Likewise.
25229         * c-opts.c: Likewise.
25230         * c-gimplify.c: Likewise.
25231         * c-common.c: Likewise.
25232         * c-dump.c: Likewise.  Include c-common.h.
25233
25234 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
25235
25236         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
25237         before including diagnostic-core.h.
25238         (c_cpp_error): New prototype moved from c-tree.h.
25239         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
25240         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
25241         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
25242         (c_cpp_error): Prototype moved to c-common.h.
25243         * Makefile.in: Update dependency for C_COMMON_H.
25244
25245 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
25246
25247         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
25248         * c-common.c (c_register_addr_space): Remove here.
25249         * c-decl.c (c_register_addr_space): Re-add here.
25250
25251 2010-05-28  Mike Stump  <mikestump@comcast.net>
25252
25253         * config/darwin-c.c: Remove c-tree.h include.
25254
25255 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
25256
25257         * gcc.c: Include diagnostic.h.
25258         (error_count): Remove.  All users changed to use errorcount.
25259         (programname): Remove.  All users changed to use progname.
25260         (fancy_abort, internal_error, fatal_error, error, warning, inform,
25261         fnotice): Remove.
25262         (execute): Don't include "Internal error" and bug reporting
25263         information in argument of internal_error call.
25264         (process_command): Don't increment error_count after calling
25265         perror_with_name.
25266         (input_filename): Rename to gcc_input_filename.  All users
25267         changed.
25268         (main): Call diagnostic_initialize.  Register delete_temp_files
25269         with atexit.  Use seen_error to test for errors.
25270         * gcc.h: Include diagnostic-core.h.
25271         (fatal_error, error, warning): Remove.
25272         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
25273         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
25274         (gcc.o): Update dependencies.
25275
25276 2010-05-28  Jeff Law  <law@redhat.com>
25277
25278         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
25279         functions.
25280         * ira.h (ira_bad_reload_regno): Declare
25281         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
25282
25283         * ira-color.c (update_curr_costs): Free updated hard reg costs.
25284         (ira_reassign_conflict_allocnos): Remove bogus asserts.
25285         (allocno_reload_assign): Likewise.
25286
25287 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
25288
25289         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
25290         build1_stat.
25291
25292 2010-05-28  Richard Guenther  <rguenther@suse.de>
25293
25294         PR lto/44312
25295         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
25296         Stream fixed-point constants mode.
25297         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
25298         and TYPE_PRECISION.
25299         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
25300         Stream fixed-point constants mode.
25301         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
25302         and TYPE_PRECISION.
25303
25304 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
25305
25306         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
25307         only place it was called from.
25308         (number_of_latch_executions): Do not return chrec_dont_know when the
25309         may_be_zero is a runtime condition: instead, return a COND_EXPR
25310         including the may_be_zero condition.
25311         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
25312         of nb_iterations.
25313         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
25314         COND_EXPRs.
25315
25316 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
25317
25318         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
25319         generate COND_EXPRs for degenerate_phi_result.
25320
25321 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
25322
25323         PR middle-end/44293
25324         * tree-if-conv.c (if_convertible_loop_p): Check the
25325         if-convertibility of phi nodes in non predicated BBs.
25326
25327 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
25328
25329         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
25330
25331 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
25332
25333         PR driver/15303
25334         * gcc.c (inform, warning, inform): New functions.
25335         (fatal_ice): Rename to internal_error; change cmsgid parameter to
25336         gmsgid.  All callers changed.
25337         (notice): Rename to fnotice; add parameter fp.  All callers changed.
25338         (fatal_error): Rename to fatal_signal.  All users changed.
25339         (fatal): Rename to fatal_error; change cmsgid parameter to
25340         gmsgid.  All callers changed.
25341         (process_command): Use warning instead of error for warnings.
25342         (end_going_arg): Don't use _() around argument of error.
25343         (do_spec_1): Use inform for message from %n specs.  Use warning
25344         instead of error for warnings.
25345         (main): Use inform for comparison messages.  Use warning for
25346         message about unused linker input.
25347         (error): Increment error_count.  Print "error: ".
25348         * gcc.h (fatal): Change to fatal_error.
25349         (warning): Declare.
25350         * config/darwin-driver.c (darwin_default_min_version): Use warning
25351         instead of fprintf for warnings.
25352         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
25353
25354 2010-05-28  Julian Brown  <julian@codesourcery.com>
25355
25356         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
25357         (*thumb2_addsi3_compare0_scratch): New.
25358         * config/arm/constraints.md (Pv): New.
25359         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
25360         for ARM mode only.
25361         (*addsi3_compare0_scratch): Likewise.
25362
25363 2010-05-28  Jan Hubicka  <jh@suse.cz>
25364
25365         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
25366         check.
25367         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
25368         only on local statics.
25369
25370 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
25371
25372         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
25373
25374 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
25375
25376         PR bootstrap/44314
25377         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
25378         (OPTION_GLIBC): Define.
25379
25380 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
25381
25382         PR debug/41048
25383         * dwarf2out.c (double_int_type_size_in_bits): New function.
25384         (round_up_to_align): Change first argument and return value to
25385         double_int.
25386         (field_byte_offset): Work internally on double_ints.
25387
25388         PR target/43636
25389         * builtins.c (expand_movstr): Use a temporary pseudo instead
25390         of target even when target is not NULL and not const0_rtx, but
25391         fails movstr predicate.
25392         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
25393
25394 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
25395
25396         * final.c (rest_of_clean_state): Use %m in errors instead of
25397         strerror (errno).
25398         * gengtype.c (read_input_list, close_output_files): Use xstrerror
25399         instead of strerror.
25400         * toplev.c (process_options): Use %m in errors instead of strerror
25401         (errno).
25402         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
25403         (errno).
25404
25405 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
25406
25407         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
25408         (ix86_canonical_va_list_type): Make static.  Add declaration.
25409         (ix86_enum_va_list): Make static.  Reindent.
25410         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
25411         (ix86_canonical_va_list_type): Ditto.
25412         (ix86_enum_va_list): Ditto.
25413
25414 2010-05-28  Richard Guenther  <rguenther@suse.de>
25415
25416         * lto-wrapper.c (run_gcc): With -save-temps generate a
25417         user-visible ltrans filename.  Fixup ltrans unit numbering.
25418
25419 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
25420
25421         * c-common.c (c_common_nodes_and_builtins): Replace use
25422         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
25423         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
25424         to ix86_enum_va_list.
25425         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
25426         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
25427         (TARGET_ENUM_VA_LIST_P): Add hook description.
25428         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
25429         * target.h (gcc_target): Add enum_va_list hook.
25430
25431         PR bootstrap/44299
25432         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
25433         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
25434         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
25435
25436 2010-05-28  Alan Modra  <amodra@gmail.com>
25437
25438         PR target/44266
25439         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25440         emit_library_call machinery to set up __tls_get_addr calls.
25441
25442 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25443
25444         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
25445
25446 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
25447
25448         Revert fix for PR c++/44188
25449         * c-common.c (is_typedef_decl): Revert the moving of  this
25450         definition ...
25451         * tree.c (is_typedef_decl): ... here.
25452         (typdef_variant_p): Revert the moving of this  definition
25453         here from cp/tree.c.
25454         * c-common.h (is_typedef_decl): Revert the moving of this
25455         declaration ...
25456         * tree.h (is_typedef_decl): ... here.
25457         (typedef_variant_p): Revert the moving of this  declaration here
25458         from cp/cp-tree.h
25459         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
25460         (gen_tagged_type_die): Revert the splitting out of ...
25461         (gen_type_die_with_usage): ... this function. Revert the anonymous
25462         tagged type handling.
25463         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
25464         typedefs naming anonymous tagged types.
25465
25466 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
25467
25468         * config/rs6000/rs6000-modes.def (PSImode): Delete.
25469
25470 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
25471
25472         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
25473         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
25474         throughout.
25475         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
25476         "xer" to "ca".
25477         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
25478         XER_REGS to CA_REGS throughout.
25479         * config/rs6000/rs6000.h: Same.
25480         (ADDITIONAL_REGISTER_NAMES): Add "xer".
25481         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
25482         that mode_iterator "P" is the size for arithmetic carries as well.
25483         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
25484
25485 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
25486
25487         PR bootstrap/44255
25488         * combine.c (struct rtx_subst_pair): Define unconditionally.
25489         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
25490         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
25491         Call make_compound_operation on pair->to.
25492         (propagate_for_debug): Don't call make_compound_operation here.
25493         Always use simplify_replace_fn_rtx.
25494
25495 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
25496
25497         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
25498         * config/xtensa/xtensa.c (override_options): Check
25499           TARGET_FORCE_NO_PIC and set flag_pic.
25500         * config/xtensa/xtensa.opt: Document -mforce-no-pic
25501
25502 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
25503
25504         PR bootstrap/44299
25505         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
25506         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
25507
25508 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
25509
25510         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
25511         toplev.h.
25512         * diagnostic.c: Don't include toplev.h.
25513         (progname): Define.  Moved from toplev.c.
25514         (seen_error): New function.
25515         * diagnostic.h: Include diagnostic-core.h.
25516         (diagnostic_t, emit_diagnostic): Don't declare here.
25517         * toplev.c (progname): Move to toplev.c.
25518         (emit_debug_global_declarations, compile_file, finalize,
25519         do_compile, toplev_main): Use seen_error.
25520         * toplev.h: Include diagnostic-core.h.
25521         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
25522         internal_error, warning, warning_at, error, error_n, error_at,
25523         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
25524         verbatim, fnotice, progname): Move to diagnostic-core.h.
25525         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
25526         (expand_builtin_expect): Use seen_error.
25527         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
25528         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
25529         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
25530         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
25531         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
25532         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
25533         errorcount for errors.
25534         * c-opts.c (c_common_finish): Use seen_error.
25535         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25536         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
25537         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
25538         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
25539         (get_coverage_counts): Use seen_error.
25540         * dwarf2out.c (dwarf2out_finish): Use seen_error.
25541         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
25542         gimplify_body): Use seen_error.
25543         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
25544         * ipa-pure-const.c (gate_pure_const): Use seen_error.
25545         * ipa-reference.c (gate_reference): Use seen_error.
25546         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
25547         * lambda-code.c: Include diagnostic-core.h instead of
25548         diagnostic.h.
25549         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25550         * lto-compress.c: Include diagnostic-core.h instead of
25551         diagnostic.h.
25552         * lto-section-in.c: Include diagnostic-core.h instead of
25553         diagnostic.h.
25554         * lto-streamer-out.c: Include diagnostic-core.h instead of
25555         diagnostic.h.
25556         * lto-streamer.c: Include diagnostic-core.h instead of
25557         diagnostic.h.
25558         (gate_lto_out): Use seen_error.
25559         * matrix-reorg.c: Include diagnostic-core.h instead of
25560         diagnostic.h.
25561         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
25562         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
25563         (gate_expand_omp, lower_omp_1): Use seen_error.
25564         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
25565         (rest_of_decl_compilation, rest_of_type_compilation,
25566         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
25567         * tree-cfg.c (label_to_block_fn): Use seen_error.
25568         * tree-inline.c (optimize_inline_calls): Use seen_error.
25569         * tree-mudflap.c (mudflap_finish_file): Use
25570         seen_error.
25571         * tree-optimize.c (gate_all_optimizations,
25572         gate_all_early_local_passes, gate_all_early_optimizations): Use
25573         seen_error.
25574         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
25575         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
25576         (varpool_remove_unreferenced_decls,
25577         varpool_assemble_pending_decls): Use seen_error.
25578         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
25579         (TOPLEV_H, DIAGNOSTIC_H): Update.
25580         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
25581         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
25582         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
25583         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
25584         coverage.o, lambda-code.o): Update dependencies.
25585
25586 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
25587
25588         PR c++/44188
25589         * c-common.c (is_typedef_decl): Move this definition ...
25590         * tree.c (is_typedef_decl): ... here.
25591         (typdef_variant_p): Move definition here from cp/tree.c.
25592         * c-common.h (is_typedef_decl): Move this declaration ...
25593         * tree.h (is_typedef_decl): ... here.
25594         (typedef_variant_p): Move declaration here from cp/cp-tree.h
25595         * dwarf2out.c (is_naming_typedef_decl): New function.
25596         (gen_tagged_type_die): Split out of ...
25597         (gen_type_die_with_usage): ... this function. When an anonymous
25598         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25599         is emitted for the typedef.
25600         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25601         anonymous tagged types.
25602
25603 2010-05-27  Jason Merrill  <jason@redhat.com>
25604
25605         * print-tree.c (debug_vec_tree): New fn.
25606         (print_vec_tree): New fn.
25607         * tree.h: Declare them.
25608         * gdbinit.in (pvt): New command.
25609
25610         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
25611
25612         * gdbinit.in (pdd): New command.
25613
25614 2010-05-27  Jan Hubicka  <jh@suse.cz>
25615
25616         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
25617         (update_caller_keys): Return early if there are no callers;
25618         only update fibheap when decresing the key.
25619         (update_callee_keys): Avoid recursion.
25620         (decide_inlining_of_small_functions): When badness does not match;
25621         re-insert into fibheap.
25622
25623 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
25624
25625         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
25626         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
25627         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
25628         (ALL_HOST_OBJS): Now a union of the above two.
25629         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
25630         all files in ALL_HOST_FRONTEND_OBJS.
25631         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
25632
25633         * c-common.c: Pretend to be a backend file by undefining
25634         IN_GCC_FRONTEND (still need rtl.h here).
25635
25636 2010-05-27  Jan Hubicka  <jh@suse.cz>
25637
25638         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
25639         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
25640
25641 2010-05-27  Jan Hubicka  <jh@suse.cz>
25642
25643         * sched-ebb.c: Rename struct deps to struct deps_desc.
25644         * ddg.c: Likewise.
25645         * sel-sched-ir.c: Likewise.
25646         * sched-deps.c: Likewise.
25647         * sched-int.h: Likewise.
25648         * sched-rgn.c: Likewise.
25649
25650 2010-05-27  Jon Beniston  <jon@beniston.com>
25651
25652         PR 43726
25653         * config/lm32/lm32.h: Remove definition of
25654         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
25655
25656 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25657
25658         PR lto/44230
25659         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
25660
25661 2010-05-27  Richard Guenther  <rguenther@suse.de>
25662
25663         PR tree-optimization/44284
25664         * tree-vect-stmts.c (vectorizable_assignment): Handle
25665         sign-changing conversions as simple copy.
25666
25667 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
25668
25669         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
25670         Bionic C library.
25671         (__gthread_active_p): Check for pthread_create if compiling against
25672         Bionic C library.
25673
25674 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
25675
25676         Support compilation for Android platform.  Reimplement -mandroid.
25677
25678         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
25679         (*android*): Set ANDROID_DEFAULT.
25680         (arm*-*-linux*): Include linux-android.h.
25681         (arm*-*-eabi*): Don't include previous -mandroid implementation.
25682         * config/arm/eabi.h: Remove, move Android-specific parts ...
25683         * config/linux-android.h: ... here.  New file.
25684         * config/arm/eabi.opt: Rename to ...
25685         * config/linux-android.opt: ... this.
25686         (mandroid): Allow -mno-android option.  Initialize based on
25687         ANDROID_DEFAULT.
25688         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
25689         Move logic to corresponding LINUX_TARGET_* macros.
25690         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
25691         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
25692         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
25693         Android definitions.
25694         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
25695         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
25696         Document.
25697
25698 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
25699
25700         Add support for Bionic C library
25701
25702         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
25703         macro.
25704         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
25705         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
25706
25707         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
25708         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
25709         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
25710         to support multiple C libraries.  Handle Bionic.
25711         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
25712         (BIONIC_DYNAMIC_LINKER64): Define.
25713         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
25714         Update.
25715         (TARGET_HAS_SINCOS): Enable for Bionic.
25716
25717         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
25718         the last option specified on command line take effect.
25719         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
25720         (mbionic): New.
25721         (mglibc, muclibc): Update.
25722
25723         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
25724         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
25725         DEFAULT_LIBC.
25726
25727         * doc/invoke.texi (-mglibc, -muclibc): Update.
25728         (-mbionic): Document.
25729
25730 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25731
25732         * c-common.h (c_register_addr_space): Add prototype.
25733         (ADDR_SPACE_KEYWORD): Remove.
25734         * c-common.c (c_register_addr_space): New function.
25735         (c_addr_space_name): Reimplement.
25736         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
25737
25738         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
25739         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
25740
25741         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
25742         Remove TARGET_ADDR_SPACE_KEYWORDS.
25743
25744 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
25745
25746         * input.c: New file.
25747         * input.h (main_input_filename): Move declaration to toplev.h.
25748         * toplev.c (input_location, line_table): Move to input.c
25749         * toplev.h (main_input_filename): Move declaration from input.h.
25750         * tree.c (expand_location): Move to input.c.
25751         * Makefile.in (OBJS-common): Add input.o.
25752         (input.o): Add dependencies.
25753
25754 2010-05-27  Richard Guenther  <rguenther@suse.de>
25755
25756         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
25757         for non-existant files.
25758         (fork_execute): Mark args_name file as deleted.
25759
25760 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
25761
25762         PR bootstrp/44287
25763         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
25764         (narrow_signed_type): Likewise.
25765
25766 2010-05-26  Jan Hubicka  <jh@suse.cz>
25767
25768         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
25769         edge only when checking is enabled; check using former_clone_of;
25770         check inline clones too.
25771         (cgraph_materialize_clone): Record former_clone_of pointer.
25772         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
25773         combining redirections; dump args_to_skip bitmap
25774         (cgraph_materialize_all_clones): Do no redirection here.
25775         * ipa-inline.c (inline_transform): Do redirection here.
25776         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
25777         cheking only).
25778
25779 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
25780
25781         * config/avr/avr-c.c: Do not include regs.h.
25782         Include cpplib.h for cpp_define and tree.h for c-common.h.
25783         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
25784         * config/avr/t-avr: Fix dependencies for avr-c.o.
25785
25786 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
25787
25788         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
25789         string instead of SYMBOL_REF rtx.
25790         * rtl.h (set_stack_check_libfunc): Move prototype from here...
25791         * libfuncs.h: ...to here.  Adjust for explow.c change.
25792
25793 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
25794
25795         * pretty-print.c: Don't include ggc.h.
25796         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
25797         (identifier_to_locale): Use them for allocation.
25798         * pretty-print.h (identifier_to_locale_alloc,
25799         identifier_to_locale_free): Declare.
25800         * toplev.c (alloc_for_identifier_to_locale): New.
25801         (general_init): Set identifier_to_locale_alloc and
25802         identifier_to_locale_free.
25803         * Makefile.in (pretty-print.o): Update dependencies.
25804
25805 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
25806
25807         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
25808         pointer types if they have different alignment or mode.
25809
25810 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
25811
25812         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25813         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25814         * config/sparc/sparc-protos.h (function_value): Remove declaration.
25815         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
25816         sparc_function_value_regno_p): New functions.
25817         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25818         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25819         (function_value): Rename to...
25820         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
25821         argument to 'outgoing'.
25822         (function_arg_record_value, function_arg_union_value,
25823         function_arg_vector_value): Update comment.
25824
25825 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
25826
25827         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
25828         (fde_needed_for_eh_p): New predicate.
25829         (output_call_frame_info): Use it throughout to decide whether FDEs
25830         are needed for EH purpose.
25831         (dwarf2out_begin_prologue): Reorder assignments.
25832
25833 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25834
25835         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
25836         special case loop->header.
25837         (is_predicated): New.
25838         (if_convertible_loop_p): Call it.
25839
25840 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25841
25842         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
25843         iterator in parameter.  Do not generate code during the analysis.
25844         (tree_if_convert_cond_stmt): Removed.
25845         (tree_if_convert_stmt): Removed.
25846         (predicate_bbs): New.
25847         (if_convertible_loop_p): Call predicate_bbs.
25848         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
25849         now contains all the analysis part.
25850
25851 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25852
25853         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
25854         statements in the analysis part.
25855         (tree_if_convert_stmt): Update comment.
25856         (remove_conditions_and_labels): New.
25857         (combine_blocks): Call remove_conditions_and_labels.
25858         (tree_if_conversion): Update comment.
25859
25860 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25861
25862         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
25863         than 2 predecessors or more than 2 successors.
25864
25865 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25866
25867         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
25868         of loops in which the data dependence analysis fails.
25869
25870 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25871
25872         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
25873         CDI_POST_DOMINATORS.
25874         (tree_if_conversion): Same.
25875
25876 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25877
25878         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
25879
25880 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
25881
25882         * tree-if-conv.c: Update copyright years.  Fix comments.
25883         Fix indentation.
25884
25885 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
25886
25887         * builtin-types.def (BT_INT128): New primitive type.
25888         (BT_UINT128): Likewise.
25889         * c-common.c (c_common_r): Add __int128 keyword.
25890         (c_common_type_for_size): Handle __int128.
25891         (c_common_type_for_mode): Likewise.
25892         (c_common_signed_or_unsigned_type): Likewise.
25893         (c_common_nodes_and_builtins): Add builtin type
25894         if target supports 128-bit integer scalar.
25895         * c-common.h (enum rid): Add RID_INT128.
25896         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
25897         if target supports 128-bit integer scalar.
25898         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
25899         (finish_declspecs): Likewise.
25900         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
25901         (c_token_starts_declspecs): Likewise.
25902         (c_parser_declspecs): Likewise.
25903         (c_parser_attributes): Likewise.
25904         (c_parser_objc_selector): Likewise.
25905         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
25906         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
25907         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
25908         * tree.c (make_or_reuse_type): Likewise.
25909         (make_unsigned_type): Likewise.
25910         (build_common_tree_nodes_2): Likewise.
25911         * tree.h (enum integer_type_kind): Add itk_int128 and
25912         itk_unsigned_int128.
25913         (int128_integer_type_node): New define.
25914         (int128_unsigned_type_node): New define.
25915         * doc/extend.texi: Add documentation about __int128 type.
25916
25917 2010-05-26  Richard Guenther  <rguenther@suse.de>
25918
25919         * tree-ssa-sccvn.c (copy_nary): Adjust.
25920         (copy_phis): Rename to ...
25921         (copy_phi): ... this.  Adjust.
25922         (copy_references): Rename to ...
25923         (copy_reference): ... this.  Adjust.
25924         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
25925         result into the valid table.
25926
25927 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
25928
25929         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
25930         insn-config.h, insn-codes.h, recog.h, and optabs.h.
25931
25932 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25933
25934         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
25935
25936 2010-05-26  Richard Guenther  <rguenther@suse.de>
25937
25938         * opts.c (common_handle_option): Handle OPT_Ofast.
25939
25940 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
25941
25942         * diagnostic.c: Don't include opts.h.
25943         (permissive_error_option): Define.
25944         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
25945         for classify_diagnostic.  Don't use memset for
25946         classify_diagnostic.  Initialize new and recently added fields.
25947         (diagnostic_classify_diagnostic): Use context->n_opts instead of
25948         N_OPTS.
25949         (diagnostic_report_diagnostic): Pass context parameter to
25950         diagnostic_report_warnings_p.  Use option_enabled and option_name
25951         hooks from context.
25952         (emit_diagnostic): Use permissive_error_option.
25953         (permerror): Likewise.
25954         * diagnostic.h: Don't include options.h.
25955         (struct diagnostic_context): Add n_opts, opt_permissive,
25956         inhibit_warnings, warn_system_headers, option_enabled and
25957         option_name fields.  Change classify_diagnostic to a pointer.
25958         * opts-diagnostic.h: New file.
25959         * opts.c: Include opts-diagnostic.h.
25960         (common_handle_option): Set global_dc fields for -Wfatal-errors,
25961         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
25962         (option_name): New function.
25963         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
25964         (c_common_handle_option): Set global_dc->permissive for
25965         -fpermissive.
25966         * c-common.c (c_cpp_error): Save and restore
25967         global_dc->warn_system_headers, not variable warn_system_headers.
25968         * toplev.c: Include opts-diagnostic.h.
25969         (general_init): Update call to diagnostic_initialize.  Set
25970         global_dc->show_column, global_dc->option_enabled and
25971         global_dc->option_name.
25972         (process_options): Don't set global_dc fields here.
25973         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
25974         (diagnostic.o, opts.o, toplev.o): Update dependencies.
25975
25976 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25977
25978         * config/picochip/picochip.md (movsi): Split a movsi from a
25979         const after reload.
25980
25981 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25982
25983         * ggc-zone.c: Update copyright year.
25984         (poison_region): Mark memory for Valgrind as undefined before
25985         memset () call and inaccessible afterwards.
25986         (ggc_pch_total_size): Change type of i to int.
25987
25988 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25989
25990         * ggc-common.c (ggc_free_overhead): Allow empty slot.
25991
25992 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25993
25994         * ggc-common.c: Update copyright year.
25995         (ggc_rlimit_bound): Remove prototype.  Compile only if
25996         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
25997         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
25998         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
25999         (ggc_min_heapsize_heuristic): Likewise.
26000
26001 2010-05-26  Richard Guenther  <rguenther@suse.de>
26002
26003         PR rtl-optimization/44164
26004         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
26005         no-common access-path disambiguation.
26006         (indirect_ref_may_alias_decl_p): Adjust.
26007         (indirect_refs_may_alias_p): Likewise.
26008         (refs_may_alias_p_1): Likewise.
26009
26010 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26011
26012         * c-typeck.c: Do not include expr.h.
26013
26014 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26015
26016         * rtl.h (decl_default_tls_model): Move prototype from here...
26017         * output.h: ...to here.
26018         * c-decl.c: Do not include rtl.h.
26019         * c-pragma.c: Likewise.
26020         * c-parser.c: Likewise.
26021         * c-gimplify.c: Likewise.  And also not hard-reg-set.
26022         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
26023         FIXME note for it.  Add a FIXME note for expr.h.
26024         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
26025         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
26026         defined.
26027
26028 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
26029
26030         PR target/44199
26031         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
26032         or total_size is larger than red zone size for non-V4 ABI, emit a
26033         stack_tie resp. frame_tie insn before stack pointer restore.
26034         * config/rs6000/rs6000.md (frame_tie): New insn.
26035
26036 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
26037
26038         * function.h (struct function): Add can_throw_non_call_exceptions bit.
26039         * lto-streamer-in.c (input_function): Stream it in.
26040         * lto-streamer-out.c (output_function): Stream it out.
26041         * function.c (allocate_struct_function): Set it.
26042         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
26043         for flag_non_call_exceptions.
26044         * cfgbuild.c (control_flow_insn_p): Likewise.
26045         (make_edges): Likewise.
26046         * cfgexpand.c (expand_stack_alignment): Likewise.
26047         * combine.c (distribute_notes): Likewise.
26048         * cse.c (cse_extended_basic_block): Likewise.
26049         * except.c (insn_could_throw_p): Likewise.
26050         * gcse.c (simple_mem): Likewise.
26051         * ipa-pure-const.c (check_call): Likewise.
26052         (check_stmt ): Likewise.
26053         * lower-subreg.c (lower-subreg.c): Likewise.
26054         * optabs.c (emit_libcall_block): Likewise.
26055         (prepare_cmp_insn): Likewise.
26056         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
26057         * postreload.c (rest_of_handle_postreload): Likewise.
26058         * reload1.c (reload_as_needed): Likewise.
26059         (emit_input_reload_insns): Likewise.
26060         (emit_output_reload_insns): Likewise.
26061         (fixup_abnormal_edges): Likewise.
26062         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
26063         * store-motion.c (find_moveable_store): Likewise.
26064         * tree-eh.c (stmt_could_throw_p): Likewise.
26065         (tree_could_throw_p): Likewise.
26066         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26067         * config/arm/arm.c (arm_expand_prologue): Likewise.
26068         (thumb1_expand_prologue): Likewise.
26069         * config/rx/rx.md (cbranchsf4): Likewise.
26070         (cmpsf): Likewise.
26071         * config/s390/s390.c (s390_emit_prologue): Likewise.
26072         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
26073         (inline_forbidden_into_p): New predicate.
26074         (expand_call_inline): Use it to forbid inlining.
26075         (tree_can_inline_p): Likewise.
26076
26077 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26078
26079         * config/i386/i386-c.c: Do not include rtl.h.
26080         * config/i386/t-i386: Update dependencies.
26081
26082 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26083
26084         * attribs.c: Do not include rtl.h.
26085         * Makefile.in: Update dependencies.
26086
26087 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
26088
26089         * double-int.h (double_int_and): New.
26090         * combine.c (try_combine): Clean up, use double_int_* and
26091         immed_double_int_const functions.
26092
26093 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26094
26095         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
26096         stderr to /dev/null instead of grep -q.
26097         * configure: Regenerate.
26098
26099 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26100
26101         * Makefile.in (EXCEPT_H): Fix typo.
26102
26103 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
26104
26105         * ira-build.c (update_conflict_hard_reg_costs): New.
26106         (ira_build): Call update_conflict_hard_reg_costs.
26107
26108 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
26109
26110         PR debug/41371
26111         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
26112         ENABLE_CHECKING.
26113         (intersect_loc_chains): Walk the s2var's loc_chain together
26114         with s1node chain as long as the locations are equal, don't
26115         call find_loc_in_1pdv in that case.
26116
26117         PR debug/42801
26118         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
26119         (copy_bind_expr): ... instead of here.
26120         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
26121         if the block hasn't been remapped.
26122         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
26123         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
26124
26125 2010-05-25  Richard Guenther  <rguenther@suse.de>
26126
26127         PR middle-end/44069
26128         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
26129         out-of-bounds array accesses.
26130
26131 2010-05-25  Richard Guenther  <rguenther@suse.de>
26132
26133         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
26134         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
26135         (run_gcc): Re-organize to make cleanup easier.
26136
26137 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26138
26139         * config/s390/s390.c (optimization_options): Fix and move the
26140         flag_prefetch_loop_arrays override ...
26141         (override_options): ... here.
26142
26143 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
26144
26145         * diagnostic.c: Don't include plugin.h.
26146         (diagnostic_report_diagnostic): Don't handle plugins specially
26147         here.  Pass context to internal_error callback.
26148         * diagnostic.h (struct diagnostic_context): Add context parameter
26149         to internal_error callback.
26150         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
26151         * plugin.h (struct diagnostic_context): Declare.
26152         (warn_if_plugins, plugins_internal_error_function): Declare.
26153         * toplev.c (general_init): Set global_dc->internal_error.
26154         * Makefile.in (diagnostic.o): Update dependencies.
26155
26156 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
26157
26158         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
26159         * config/rs6000/t-darwin64: New.
26160         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
26161         build crt2.
26162
26163 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
26164
26165         PR 44203
26166         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
26167         match the original (and intended) behaviour before r159557.  This
26168         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
26169         in two ways.
26170
26171 2010-05-25  Richard Guenther  <rguenther@suse.de>
26172
26173         * doc/invoke.texi: Document -Ofast.
26174         * target.h (struct gcc_target): Add handle_ofast.
26175         * target-def.h (TARGET_HANDLE_OFAST): Add.
26176         (TARGET_INITIALIZER): Adjust.
26177         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
26178         * common.opt (Ofast): Add.
26179
26180 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
26181
26182         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
26183         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
26184
26185 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
26186
26187         PR target/43610
26188         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
26189         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
26190         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
26191         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
26192
26193 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
26194
26195         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
26196         DW_OP_minus with negated offset instead of DW_OP_plus.
26197         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
26198
26199 2010-05-25  Wei Guozhi  <carrot@google.com>
26200
26201         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
26202         tst instruction and a new alternative.
26203         * config/arm/constraints.md (Pu): New constraint.
26204
26205 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
26206
26207         * function.c (assign_stack_local_1): Initialize variable
26208         to avoid warning when bootstrapping at -O3.
26209
26210 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
26211
26212         * configure.ac (all_lang_makefiles): Remove everything related to it.
26213         * configure: Regenerate.
26214         * Makefile.in: Fix reference to ada Make-lang.in.
26215         Remove support for LANG_MAKEFILES.
26216
26217 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
26218             Sandra Loosemore  <sandra@codesourcery.com>
26219
26220         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
26221         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
26222         description.  Add arm_neon_fp16_ok.
26223         (Add Options): Add arm_neon and arm_neon_fp16.
26224
26225 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
26226
26227         * diagnostic.c: Don't include flags.h.
26228         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
26229         context parameters.  Check flags in the context passed as a parameter.
26230         (diagnostic_build_prefix): Add context parameter.  Check
26231         show_column flag in context.
26232         (diagnostic_action_after_output): Check fatal_errors flag in context.
26233         (diagnostic_report_current_module): Check show_column flag in context.
26234         (default_diagnostic_starter): Update call to
26235         diagnostic_build_prefix.
26236         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
26237         (emit_diagnostic): Pass context to permissive_error_kind.
26238         (permerror): Pass context to permissive_error_kind.
26239         * diagnostic.h (struct diagnostic_context): Add show_column,
26240         pedantic_errors, permissive and fatal_errors fields.
26241         (diagnostic_build_prefix): Update prototype.
26242         * langhooks.c
26243         * toplev.c (process_options): Set flags in global_dc from
26244         flag_show_column, flag_pedantic_errors, flag_permissive,
26245         flag_fatal_errors.
26246         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
26247         to diagnostic_build_prefix.
26248         * Makefile.in (diagnostic.o): Update dependencies.
26249
26250 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
26251
26252         * config/i386/ia32intrin.h (__crc32q): Define only if
26253         __SSE4_2__ is defined.
26254
26255 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
26256
26257         PR target/44132
26258         PR middle-end/43602
26259         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
26260         DECL_VISIBILITY_SPECIFIED.
26261         (emutls_decl): Set DECL_PRESERVE_P and copy
26262         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
26263         (emutls_finalize_control_var): New callback.
26264         (emutls_finish): Finalize emutls control variables.
26265         * toplev.c (compile_file): Move the call to emutls_finish ()
26266         before varpool_assemble_pending_decls ().
26267
26268 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
26269
26270         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
26271         added to the preprocessor condition.
26272
26273 2010-05-24  Paul Brook  <paul@codesourcery.com>
26274
26275         * gengtype-lex.l: Add HARD_REG_SET.
26276         * expr.c (expand_expr_real_1): Record writes to hard registers.
26277         * function.c (rtl_data): Add asm_clobbers.
26278         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
26279         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
26280         Use crtl->asm_clobbers.
26281
26282 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26283
26284         * doc/makefile.texi (Makefile): Mention stages 'profile'
26285         and 'feedback' for profiledbootstrap.
26286
26287 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
26288
26289         PR target/44245
26290         * config/i386/i386.c (def_builtin): Properly check
26291         OPTION_MASK_ISA_64BIT.
26292
26293 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
26294
26295         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
26296         typedefs with different but compatible types.  Allow duplicate
26297         typedefs with the same type except for pedantic non-C1X, but give
26298         warning for variably modified types.
26299         * c-typeck.c (tagged_types_tu_compatible_p,
26300         function_types_compatible_p, type_lists_compatible_p,
26301         comptypes_internal): Add parameter different_types_p; set
26302         *different_types_p for different but compatible types.  All
26303         callers changed.
26304         (comptypes_check_different_types): New.
26305         * c-tree.h (comptypes_check_different_types): Declare.
26306
26307 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
26308
26309         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
26310         * jump.c: Include basic-block.h.
26311         * profile.c: Likewise.
26312         * tree-profile.c: Likewise.
26313         * coverage.c: Likewise.
26314         * basic-block.h (optimize_function_for_size_p): Move to function.h.
26315         (optimize_function_for_speed_p): Likewise.
26316         * function.h (optimize_function_for_size_p,
26317         optimize_function_for_speed_p): Moved here from basic-block.h.
26318         * Makefile.in: Update dependencies.
26319
26320 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26321
26322         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
26323         before calling make; allow override through $MAKE.
26324         * doc/invoke.texi (Optimize Options): Document override.
26325
26326 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
26327
26328         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
26329         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26330         (rs6000_mode_dependent_address_ptr): Make static.
26331         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26332         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
26333         Remove.
26334
26335 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
26336
26337         PR target/43869
26338         * config/i386/i386.c: Make sure that the correct regparm is passed.
26339
26340 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
26341
26342         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
26343         * sbitmap.c: ...to here to internalize sbitmap element access.
26344         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
26345         Explain why basic-block.h is included.
26346         * function.h: Include tm.h for CUMULATIVE_ARGS.
26347         * Makefile.in: Update dependencies.
26348
26349 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
26350
26351         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
26352         New core types.
26353         * sbitmap.h (struct sbitmap_def): Do not typedef here.
26354         * sbitmap.c: Include sbitmap.h.
26355         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
26356         hard-reg-set.h.  Split everything related to regsets out from here...
26357         * regset.h: ...to here.  New file.
26358         * df.h: Include regset.h and sbitmap.h.
26359         * tree-flow.h: Likewise.
26360         * cfgloop.h: Likewise.
26361         * except.h: Do not include sbitmap.h.  Include hashtab.h.
26362         * cgraph.h: Include vec.h and function.h.
26363         * reload.h (struct insn_chain): Change types of live_throughout
26364         and dead_or_set from regset_head to bitmap_head.
26365         (compute_use_by_pseudos): Be defined also if regset.h is not included.
26366         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
26367         spilled_regs from regset_head to bitmap_head to avoid dependency
26368         in regset.h.
26369         * sel-sched-ir.h: Include regset.h.
26370         * reload.c: Include df.h before reload.h.
26371         * caller-save.c: Likewise.
26372         * reload1.c: Likewise.
26373         * ira.c: Likewise.
26374         (mark_elimination): Update type of r to bitmap, consistent with
26375         DF_LR_IN.
26376         * dominance.c: Include bitmap.h.
26377         * modulo-sched.c: Include df.h.
26378         * cfganal.c: Include bitmap.h and sbitmap.h.
26379         * cfgbuild.c: Include sbitmap.h.
26380         * lcm.c: Include sbitmap.h.
26381         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
26382         * domwalk.c: Include sbitmap.h, exclude ggc.h.
26383         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
26384         * cselib.c: Include bitmap.h.
26385         * tree-optimize.c: Include regset.h.
26386         * stmt.c: Include bitmap.h.
26387         * Makefile.in: Update dependencies.
26388
26389 2010-05-22  Jan Hubicka  <jh@suse.cz>
26390
26391         * cgraph.h (struct varpool_node): Add same_comdat_group.
26392         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
26393         pointer.
26394         (output_varpool): Update call of lto_output_varpool_node.
26395         (input_varpool): Read same_comdat_group pointer.
26396         (input_varpool_1): Fixup same_comdat_group pointer.
26397         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
26398         group is needed, all are.
26399         * varpool.c (varpool_remove_node): Remove node from same comdat group
26400         linklist too.
26401         (varpool_analyze_pending_decls): Walk same comdat groups.
26402
26403 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
26404
26405         * rtl.h (union rtunion_def): Remove rt_bit member.
26406         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
26407         * print-rtl (print_rtx): Do not print the member.
26408         * gengtype.c (adjust_field_rtx_def): Do not handle it.
26409         * gengenrtl.c (type_from_format): Likewise.
26410         (accessor_from_format): Likewise.
26411
26412 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
26413
26414         * dbgcnt.c: Include toplev.h instead of errors.h.
26415         * ira-emit.c: Don't include errors.h.
26416         * ira.c: Include toplev.h instead of errors.h.
26417         * lto-compress.c: Include toplev.h instead of errors.h.
26418         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
26419         ira.o, dbgcnt.o): Update dependencies.
26420
26421 2010-05-22  Richard Guenther  <rguenther@suse.de>
26422
26423         * gimple.c (gimple_types_compatible_p): Check type qualifications
26424         before merging pointer to complete and pointer to incomplete type.
26425         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
26426         we use our own resolution algorithm.  The gold linker plugin
26427         doesn't do the job we want it to do here.
26428
26429 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
26430
26431         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26432         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26433         (sparc_mode_dependent_address_p): New function.
26434
26435 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
26436
26437         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
26438
26439         * timevar.c: Do not include any core headers.
26440         (timevar_print): De-i18n-ize.
26441         (print_time): Likewise.
26442         * timevar.h (timevar_push, timevar_pop): Make inline functions.
26443
26444 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
26445
26446         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
26447         langhooks-def.h.
26448         (diagnostic_initialize): Initialize x_data not last_function.
26449         (diagnostic_report_current_function): Move to tree-diagnostic.c.
26450         (default_diagnostic_starter): Call
26451         diagnostic_report_current_module not
26452         diagnostic_report_current_function.
26453         (diagnostic_report_diagnostic): Initialize x_data not
26454         abstract_origin.
26455         (verbatim): Likewise.
26456         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
26457         x_data.
26458         (struct diagnostic_context): Change last_function to x_data.
26459         (diagnostic_auxiliary_data): Replace with
26460         diagnostic_context_auxiliary_data and
26461         diagnostic_info_auxiliary_data.
26462         (diagnostic_last_function_changed, diagnostic_set_last_function,
26463         diagnostic_report_current_function): Move to tree-diagnostic.h.
26464         (print_declaration, dump_generic_node, print_generic_stmt,
26465         print_generic_stmt_indented, print_generic_expr,
26466         print_generic_decl, debug_c_tree, dump_omp_clauses,
26467         print_call_name, debug_generic_expr, debug_generic_stmt,
26468         debug_tree_chain, default_tree_printer): Move to
26469         tree-pretty-print.h.
26470         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
26471         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
26472         gimple-pretty-print.h.
26473         * pretty-print.c: Don't include tree.h
26474         (pp_base_format): Don't handle %K here.
26475         (pp_base_tree_identifier): Move to tree-pretty-print.c.
26476         * pretty-print.h (text_info): Change abstract_origin to x_data.
26477         (pp_tree_identifier, pp_unsupported_tree,
26478         pp_base_tree_identifier): Move to tree-pretty-print.h.
26479         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
26480         tree-pretty-print.h: New files.
26481         * tree-pretty-print.c: Include tree-pretty-print.h.
26482         (percent_K_format): New.  Moved from pretty-print.c.
26483         (pp_base_tree_identifier): Move from pretty-print.c.
26484         * c-objc-common.c: Include tree-pretty-print.h.
26485         (c_tree_printer): Handle %K here.
26486         * langhooks.c: Include tree-diagnostic.h.
26487         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
26488         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
26489         (default_tree_printer): Handle %K using percent_K_format.
26490         (general_init): Use default_tree_diagnostic_starter.
26491         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
26492         (free_lang_data): Use default_tree_diagnostic_starter.
26493         * c-pretty-print.c: Include tree-pretty-print.h.
26494         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26495         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26496         * dwarf2out.c: Include tree-pretty-print.h.
26497         * except.c: Include tree-pretty-print.h.
26498         * gimple-pretty-print.c: Include tree-pretty-print.h and
26499         gimple-pretty-print.h.
26500         * gimplify.c: Include tree-pretty-print.h.
26501         * graphite-poly.c: Include tree-pretty-print.h and
26502         gimple-pretty-print.h.
26503         * ipa-cp.c: Include tree-pretty-print.h.
26504         * ipa-inline.c: Include gimple-pretty-print.h.
26505         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26506         * ipa-pure-const.c: Include gimple-pretty-print.h.
26507         * ipa-struct-reorg.c: Include tree-pretty-print.h and
26508         gimple-pretty-print.h.
26509         * ipa-type-escape.c: Include tree-pretty-print.h.
26510         * print-rtl.c: Include tree-pretty-print.h.
26511         * print-tree.c: Include gimple-pretty-print.h.
26512         * sese.c: Include tree-pretty-print.h.
26513         * tree-affine.c: Include tree-pretty-print.h.
26514         * tree-browser.c: Include tree-pretty-print.h.
26515         * tree-call-cdce.c: Include gimple-pretty-print.h.
26516         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26517         * tree-chrec.c: Include tree-pretty-print.h.
26518         * tree-data-ref.c: Include tree-pretty-print.h and
26519         gimple-pretty-print.h.
26520         * tree-dfa.c: Include tree-pretty-print.h.
26521         * tree-if-conv.c: Include tree-pretty-print.h and
26522         gimple-pretty-print.h.
26523         * tree-inline.c: Include tree-pretty-print.h.
26524         * tree-into-ssa.c: Include tree-pretty-print.h and
26525         gimple-pretty-print.h.
26526         * tree-nrv.c: Include tree-pretty-print.h.
26527         * tree-object-size.c: Include tree-pretty-print.h and
26528         gimple-pretty-print.h.
26529         * tree-outof-ssa.c: Include tree-pretty-print.h and
26530         gimple-pretty-print.h.
26531         * tree-parloops.c: Include tree-pretty-print.h and
26532         gimple-pretty-print.h.
26533         * tree-predcom.c: Include tree-pretty-print.h and
26534         gimple-pretty-print.h.
26535         * tree-scalar-evolution.c: Include tree-pretty-print.h and
26536         gimple-pretty-print.h.
26537         * tree-sra.c: Include tree-pretty-print.h.
26538         * tree-ssa-address.c: Include tree-pretty-print.h.
26539         * tree-ssa-alias.c: Include tree-pretty-print.h.
26540         * tree-ssa-ccp.c: Include tree-pretty-print.h and
26541         gimple-pretty-print.h.
26542         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
26543         * tree-ssa-copy.c: Include tree-pretty-print.h and
26544         gimple-pretty-print.h.
26545         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
26546         * tree-ssa-dce.c: Include tree-pretty-print.h and
26547         gimple-pretty-print.h.
26548         * tree-ssa-dom.c: Include tree-pretty-print.h and
26549         gimple-pretty-print.h.
26550         * tree-ssa-dse.c: Include gimple-pretty-print.h.
26551         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
26552         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
26553         * tree-ssa-live.c: Include tree-pretty-print.h and
26554         gimple-pretty-print.h.
26555         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
26556         gimple-pretty-print.h.
26557         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
26558         gimple-pretty-print.h.
26559         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
26560         gimple-pretty-print.h.
26561         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
26562         gimple-pretty-print.h.
26563         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
26564         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
26565         * tree-ssa-operands.c: Include tree-pretty-print.h and
26566         gimple-pretty-print.h.
26567         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
26568         gimple-pretty-print.h.
26569         * tree-ssa-pre.c: Include tree-pretty-print.h and
26570         gimple-pretty-print.h.
26571         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
26572         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
26573         gimple-pretty-print.h.
26574         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
26575         gimple-pretty-print.h.
26576         * tree-ssa-sink.c: Include gimple-pretty-print.h.
26577         * tree-ssa-ter.c: Include tree-pretty-print.h and
26578         gimple-pretty-print.h.
26579         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
26580         * tree-ssa.c: Include tree-pretty-print.h and
26581         gimple-pretty-print.h.
26582         * tree-stdarg.c: Include gimple-pretty-print.h.
26583         * tree-switch-conversion.c: Include gimple-pretty-print.h.
26584         * tree-tailcall.c: Include tree-pretty-print.h and
26585         gimple-pretty-print.h.
26586         * tree-vect-data-refs.c: Include tree-pretty-print.h and
26587         gimple-pretty-print.h.
26588         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
26589         gimple-pretty-print.h.
26590         * tree-vect-loop.c: Include tree-pretty-print.h and
26591         gimple-pretty-print.h.
26592         * tree-vect-patterns.c: Include gimple-pretty-print.h.
26593         * tree-vect-slp.c: Include tree-pretty-print.h and
26594         gimple-pretty-print.h.
26595         * tree-vect-stmts.c: Include tree-pretty-print.h and
26596         gimple-pretty-print.h.
26597         * tree-vectorizer.c: Include tree-pretty-print.h.
26598         * tree-vrp.c: Include tree-pretty-print.h and
26599         gimple-pretty-print.h.
26600         * value-prof.c: Include tree-pretty-print.h and
26601         gimple-pretty-print.h.
26602         * var-tracking.c: Include tree-pretty-print.h.
26603         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
26604         (tree-diagnostic.o): New dependencies.
26605         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
26606         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
26607         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
26608         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
26609         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
26610         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
26611         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
26612         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
26613         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
26614         tree-ssa-address.o, tree-ssa-loop-niter.o,
26615         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
26616         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
26617         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
26618         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
26619         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
26620         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
26621         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
26622         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
26623         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
26624         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
26625         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
26626         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
26627         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
26628         tree-switch-conversion.o, var-tracking.o, value-prof.o,
26629         cfgexpand.o, pretty-print.o): Update dependencies.
26630
26631 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
26632
26633         * tree-ssa-structalias.c: Remove tm_p.h from include.
26634
26635 2010-05-21  Jeff Law  <law@redhat.com>
26636
26637         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
26638
26639 2010-05-21  Jason Merrill  <jason@redhat.com>
26640
26641         * tree-eh.c (cleanup_is_dead_in): New.
26642         (lower_try_finally): Don't generate a dead cleanup region.
26643         (lower_cleanup): Likewise.
26644
26645 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
26646
26647         PR debug/44223
26648         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
26649         unchain each use from the cyclic next_regno_use chain first.
26650
26651 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
26652
26653         * real: Do not include gmp.h, mpfr.h, and mpc.h.
26654         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
26655         (real_value_negate, real_value_abs): New prototypes.
26656         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
26657         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
26658         new include file for interface between MPFR and REAL_VALUE_TYPE.
26659         * real.c: Include realmpfr.h.
26660         (real_arithmetic2): Remove legacy function.
26661         (real_value_negate): New.
26662         (real_value_abs): New.
26663         (mfpr_from_real, real_from_mpfr): Move from here...
26664         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
26665         * builtins.c: Include realmpfr.h.
26666         * fold-const.c: Include realmpfr.h.
26667         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
26668         (fold_negate_const): Likewise.
26669         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
26670         * toplev.c: Include realmpfr.h.
26671         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
26672         and real_value_negate.
26673         * fixed-value.c (check_real_for_fixed_mode): Likewise.
26674         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
26675         (vfp3_const_double_index): Likewise.
26676         (arm_print_operand): Likewise.
26677         * Makefile.in: Update dependencies.
26678
26679 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26680
26681         * config/s390/s390.c (override_options): Increase the default
26682         of max-completely-peel-times.
26683
26684 2010-05-21  Julian Brown  <julian@codesourcery.com>
26685             Mark Mitchell  <mark@codesourcery.com>
26686
26687         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
26688         sibling calls for Thumb-1.
26689         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
26690         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
26691         Thumb-2.
26692         (*call_insn, *call_value_insn): Don't use for Thumb-2.
26693         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
26694         for Thumb-2.
26695         (return): New expander.
26696         (*arm_return): New name for ARM return insn.
26697         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
26698
26699 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
26700
26701         * config.gcc (sparc64-*-rtems*): New target.
26702
26703 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
26704
26705         * tree.c (build_function_decl_skip_args): Fix grammar.
26706         (build_function_type_list_1): Fix typos, adjust formatting.
26707
26708 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
26709
26710         * tree.h: Include real.h and fixed-value.h as basic datatypes.
26711         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
26712         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
26713         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
26714         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
26715         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
26716         tree-pretty-print.c, tree-loop-distribution.c,
26717         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
26718         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
26719         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
26720         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
26721         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
26722         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
26723         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
26724         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
26725         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
26726         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
26727         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
26728         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
26729         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
26730         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
26731         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
26732         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
26733         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
26734         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
26735         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
26736         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
26737         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
26738         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
26739         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
26740         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
26741         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
26742         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
26743         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
26744         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
26745         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
26746         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
26747         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
26748         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
26749         config/score/score7.c, config/score/score.c, config/arm/arm.c,
26750         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
26751         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
26752         config/bfin/bfin.c: Clean up redundant includes.
26753         * Makefile.in: Update accordingly.
26754
26755 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
26756
26757         PR middle-end/44204
26758         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
26759         statement has no arguments.
26760
26761 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
26762
26763         PR/44139
26764         * varasm.c (emutls_decl): Merge attributes to new decl.
26765
26766 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
26767
26768         PR middle-end/44101
26769         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
26770         around the uniquized constructor if its type requires a conversion.
26771
26772 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
26773
26774         PR debug/44205
26775         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
26776         at -O0 goto_locus of any of the incoming edges differs from
26777         goto_locus of outgoing edge, or gimple_location of any of the
26778         labels differs.
26779
26780 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
26781
26782         * ira.c (ira_non_ordered_class_hard_regs): Define.
26783         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
26784         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
26785         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
26786         cost of unaligned hard regs when allocating multi-reg pseudos.
26787
26788 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
26789
26790         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
26791         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
26792         for TARGET_NO_FLOAT.
26793         * config/mips/mips.c (mips_file_start): Expand conditional expression
26794         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
26795         (mips_override_options): Move -mno-float override -msoft-float and
26796         -mhard-float.
26797         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
26798         Condition(TARGET_SUPPORTS_NO_FLOAT).
26799         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
26800         __mips_no_float here.
26801         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
26802         (TARGET_SUPPORTS_NO_FLOAT): Define.
26803         * config/mips/sdemtk.opt: Delete.
26804
26805 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
26806
26807         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
26808
26809 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
26810
26811         PR target/43733
26812         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
26813         * configure: Regenerate.
26814         * config.in: Regenerate.
26815         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
26816         instead of sahf only for 64bit targets.
26817
26818 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
26819
26820         PR debug/44178
26821         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
26822         setup_ref_regs for DEBUG_INSNs.
26823
26824 2010-05-20  Jan Hubicka  <jh@suse.cz>
26825
26826         PR middle-end/44197
26827         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
26828
26829 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
26830
26831         PR bootstrap/43870
26832         * df-scan.c (df_ref_compare): Stabilize sort.
26833
26834 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
26835
26836         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
26837         argument.  Don't use DW_OP_piece if offset is non-zero,
26838         put offset into second DW_OP_bit_piece argument.
26839         (dw_sra_loc_expr): Adjust callers.  For memory expressions
26840         compute offset.
26841
26842 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
26843
26844         PR target/44202
26845         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
26846         settings for 16-bit-constant "addo" alternative.
26847
26848 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
26849
26850         * config/mips/mips-dsp.md (add<DSPV:mode>3,
26851         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
26852
26853         PR target/43764
26854         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
26855         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
26856         Use it.
26857
26858 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
26859
26860         * diagnostic.c (FLOAT, FFS): Don't undefine.
26861         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
26862         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
26863         include ordering.
26864
26865 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26866
26867         * combine.c (propagate_for_debug): Call make_compound_operation
26868         on the source value.
26869         (try_combine): When implementing a split chosen by find_split_point,
26870         either copy i2src or set it to null.  Assert that i2src is not null
26871         before substituting into CALL_INSN_FUNCTION_USAGE.
26872
26873 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
26874
26875         * double-int.h (double_int_ior): New function.
26876         * tree.h (build_int_cst_wide_type): Remove.
26877         * tree.c (build_int_cst_wide_type): Remove.
26878         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
26879         of build_int_cst_wide_type.
26880         * stor-layout.c (set_sizetype): (Ditto.).
26881         * dojump.c (do_jump): Use build_int_cstu instead of
26882         build_int_cst_wide_type.
26883
26884 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26885
26886         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
26887         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
26888         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
26889         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
26890         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
26891         propagate the 'data' argument to copy_tree_r.
26892         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
26893         Propagate 'data' argument to walk_tree.
26894         (copy_if_shared): New function.
26895         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
26896         (unmark_visited): New function.
26897         (unshare_body): Call copy_if_shared instead of doing it manually.
26898         (unvisit_body): Call unmark_visited instead of doing it manually.
26899
26900 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
26901
26902         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
26903         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
26904         * hooks.c: Likewise.
26905         * target-def.h (TARGET_FOLD_BUILTIN): Define to
26906         hook_tree_tree_int_treep_bool_null.
26907         * target.h (struct gcc_target): Update signature of fold_builtin
26908         field.
26909         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
26910         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
26911         instead of the call expression.
26912         (fold_builtin_call_array): Pass n and argarray directly.
26913         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
26914         consing a list.
26915         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
26916         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
26917         `i' and use it in place of `arity'.
26918         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
26919         Dereference `args' directly.
26920         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
26921
26922 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26923
26924         * doc/sourcebuild.texi (Effective-Target Keywords): Document
26925         3dnow, sse3, sse2.
26926         (Directives): Document optional dg-require-effective-target
26927         selector.
26928
26929 2010-05-19  Richard Guenther  <rguenther@suse.de>
26930
26931         PR lto/44196
26932         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
26933
26934 2010-05-19  Richard Guenther  <rguenther@suse.de>
26935
26936         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
26937         * common.opt (fwhopr=): New.
26938         * opts.c (common_handle_option): Handle OPT_fwhopr.
26939         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
26940         * collect2.c (main): Match -fwhopr*.
26941         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
26942         Execute ltrans stage in parallel when jobs is bigger than 1.
26943
26944 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26945
26946         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
26947         pentiumpro on Solaris 8/x86 with Sun as.
26948         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
26949         hidden alias bug.
26950         (gcc_cv_as_ix86_quad): Check for .quad directive.
26951         * configure: Regenerate.
26952         * config.in: Regenerate.
26953         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
26954
26955 2010-05-19  Martin Jambor  <mjambor@suse.cz>
26956
26957         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
26958         also for indirect edges.  Actual printing moved...
26959         (ipa_print_node_jump_functions_for_edge): ...here.
26960         (ipa_compute_jump_functions): Renamed to
26961         ipa_compute_jump_functions_for_edge and made static.
26962         (ipa_compute_jump_functions): New function.
26963         (make_edge_direct_to_target): Check if the number of arguments on
26964         the newly direct edge is the same as the number of parametrs of
26965         the callee.
26966         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
26967         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
26968         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
26969         analysis functions unconditionally, call the new
26970         ipa_analyze_params_uses on the node instead of every edge.
26971
26972 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
26973
26974         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
26975         to tree.
26976         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
26977         also checks for a constant int vs.  non-constant but
26978         loop-invariant steps.
26979         (find_or_create_group): Change the sort algorithm to only consider
26980         steps that are constant ints.
26981         (idx_analyze_ref): Adopt code to handle a tree instead of a
26982         HOST_WIDE_INT for step.
26983         (gather_memory_references_ref): Handle tree instead of int and be
26984         prepared to see a NULL_TREE.
26985         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
26986         prefetches if the step cannot be calculated at compile time.
26987         (issue_prefetch_ref): Issue prefetches for non-constant but
26988         loop-invariant steps.
26989
26990 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26991
26992         Revert:
26993         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26994
26995         * tree.h (build_call_list): Remove.
26996         * tree.c (build_call_list): Remove.
26997
26998 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
26999
27000         * tree.h (build_call_list): Remove.
27001         * tree.c (build_call_list): Remove.
27002
27003 2010-05-18  Jan Hubicka  <jh@suse.cz>
27004
27005         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
27006
27007 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
27008
27009         PR rtl-optimization/43332
27010         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
27011
27012 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
27013
27014         * tree.h (build_int_cstu): Implement as static inline.
27015         * tree.c (build_int_cstu): Remove function.
27016         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
27017         sign extended.
27018
27019 2010-05-18  Richard Guenther  <rguenther@suse.de>
27020
27021         PR lto/44143
27022         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
27023         (debug): Initialize from -save-temps.
27024         (collect_execute): Print command-line when verbose.
27025         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
27026         for ltrans invocation.  Produce -dumpbase flag again.
27027         (process_args): Remove.
27028         (main): Simplify.
27029         * collect2.c (maybe_run_lto_and_relink): Only pass object
27030         files to lto-wrapper.
27031         * gcc.c (LINK_COMMAND_SPEC): Likewise.
27032
27033 2010-05-18  Jan Hubicka  <jh@suse.cz>
27034
27035         * opts.c (decode_options): Do not disable whopr at ipa_cp.
27036         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
27037
27038 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
27039
27040         PR lto/44184
27041         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
27042         in a GIMPLE_ASM.
27043         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
27044         in a GIMPLE_ASM.
27045
27046 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
27047
27048         PR debug/41371
27049         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
27050         rtx_equal_p inline.
27051
27052 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
27053
27054         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
27055         lto-macho as lto_binary_reader.
27056
27057         * darwin.c (darwin_asm_named_section): Do not add assembler comment
27058         after .section directive; just print it before the directive instead.
27059
27060 2010-05-17  Jan Hubicka  <jh@suse.cz>
27061
27062         * cgraph.c (cgraph_create_virtual_clone): Only check
27063         versionable_function_p when not in wpa and checking is enabled.
27064         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
27065         there are no more functions to materialize.
27066
27067 2010-05-17  Jan Hubicka  <jh@suse.cz>
27068
27069         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
27070         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
27071         New functions.
27072         (output_cgraph): Call output_cgraph_opt_summary.
27073         (input_cgrpah): Call input_cgraph_opt_summary.
27074         (output_cgraph_opt_summary_p, output_node_opt_summary,
27075         input_node_opt_summary, input_cgraph_opt_section): New functions.
27076         * lto-section-in.c (lto_section_name): Add cgraphopt.
27077         * tree-inline.c (tree_function_versioning): Handle parm_num.
27078         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
27079         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
27080
27081 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
27082
27083         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
27084         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
27085         the insn to prefetch ratio heuristic to loops with known trip count.
27086
27087 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
27088
27089         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
27090         (schedule_prefetches): Do not generate a prefetch if the unroll factor
27091         is far from what is required by the prefetch.
27092
27093 2010-05-17  Jan Hubicka  <jh@suse.cz>
27094
27095         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
27096         (ipcp_estimate_growth): Likewise.
27097         (ipcp_const_param_count): Likewise.
27098         (ipcp_insert_stage): Likewise.
27099         * ipa-prop.c (visit_load_for_mod_analysis): New function.
27100         (visit_store_addr_for_mod_analysis): Set used flag.
27101         (ipa_detect_param_modifications): Set used flag for SSE params;
27102         update use of walk_stmt_load_store_addr_ops.
27103         (ipa_print_node_params): Print used flag.
27104         (ipa_write_node_info): Stream used flag.
27105         (ipa_read_node_info): Likewise.
27106         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
27107         (ipa_is_param_used): New function.
27108         (lto_ipa_fixup_call_notes): Remove unused declaration.
27109
27110 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27111
27112         PR target/44074
27113         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
27114         * configure: Regenerate.
27115         * config.in: Regenerate.
27116         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
27117         !HAVE_AS_IX86_REP_LOCK_PREFIX.
27118         Don't emit whitespace.
27119         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
27120         (*rep_movsi): Likewise.
27121         (*rep_movsi_rex64): Likewise.
27122         (*rep_movqi): Likewise.
27123         (*rep_movqi_rex64): Likewise.
27124         (*rep_stosdi_rex64): Likewise.
27125         (*rep_stossi): Likewise.
27126         (*rep_stossi_rex64): Likewise.
27127         (*rep_stosqi): Likewise.
27128         (*rep_stosqi_rex64): Likewise.
27129         (*cmpstrnqi_nz_1): Use {%;} after repz.
27130         (*cmpstrnqi_nz_rex_1): Likewise.
27131         (*cmpstrnqi_1): Likewise.
27132         (*cmpstrnqi_rex_1): Likewise.
27133         (*strlenqi_1): Use {%;} after repnz.
27134         (*strlenqi_rex_1): Likewise.
27135         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
27136         (*sync_compare_and_swap<mode>): Likewise.
27137         (sync_double_compare_and_swap<mode>): Likewise.
27138         (*sync_double_compare_and_swapdi_pic): Likewise.
27139         (sync_old_add<mode>): Likewise.
27140         (sync_add<mode>): Likewise.
27141         (sync_sub<mode>): Likewise.
27142         (sync_<code><mode>): Likewise.
27143
27144 2010-05-17  Martin Jambor  <mjambor@suse.cz>
27145
27146         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
27147         otr_token and polymorphic.
27148         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
27149         (cgraph_clone_edge): Copy the above fields.
27150         * tree.c (get_binfo_at_offset): New function.
27151         * tree.h (get_binfo_at_offset): Declare.
27152         * ipa-prop.h (enum jump_func_type): Added known_type jump function
27153         type, reordered items, updated comments.
27154         (union jump_func_value): Added base_type field, reordered fields.
27155         (enum ipa_lattice_type): Moved down in the file.
27156         (struct ipa_param_descriptor): New field polymorphic.
27157         (ipa_is_param_polymorphic): New function.
27158         * ipa-prop.c: Include gimple.h and gimple-fold.h.
27159         (ipa_print_node_jump_functions): Print known type jump functions.
27160         (compute_complex_pass_through): Renamed to...
27161         (compute_complex_assign_jump_func): this.
27162         (compute_complex_ancestor_jump_func): New function.
27163         (compute_known_type_jump_func): Likewise.
27164         (compute_scalar_jump_functions): Create known type and complex ancestor
27165         jump functions.
27166         (ipa_note_param_call): New parameter polymorphic, set the corresponding
27167         flag in the call note accordingly.
27168         (ipa_analyze_call_uses): Renamed to...
27169         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
27170         variable var only in the block where it is used.
27171         (ipa_analyze_virtual_call_uses): New function.
27172         (ipa_analyze_call_uses): Likewise.
27173         (combine_known_type_and_ancestor_jfs): Likewise.
27174         (update_jump_functions_after_inlining): Implemented handling of a
27175         number of new jump function types combination.
27176         (print_edge_addition_message): Removed.
27177         (make_edge_direct_to_target): New function.
27178         (try_make_edge_direct_simple_call): Likewise.
27179         (try_make_edge_direct_virtual_call): Likewise.
27180         (update_call_notes_after_inlining): Renamed to...
27181         (update_indirect_edges_after_inlining): this.  Moved edge creation for
27182         indirect calls to try_make_edge_direct_simple_call, also calls
27183         try_make_edge_direct_virtual_call for virtual calls.
27184         (ipa_print_node_params): Changed the header message.
27185         (ipa_write_jump_function): Stream also known type jump functions.
27186         (ipa_read_jump_function): Likewise.
27187         (ipa_write_indirect_edge_info): Stream new fields in
27188         cgraph_indirect_call_info.
27189         (ipa_read_indirect_edge_info): Likewise.
27190         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
27191         GIMPLE_FOLD_H.
27192
27193 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27194
27195         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
27196
27197 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
27198
27199         * tree.h (CALL_EXPR_ARGS): Delete.
27200         (call_expr_arglist): Delete.
27201         * tree.c (call_expr_arglist): Delete.
27202         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
27203         targetm.fold_builtin.
27204         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
27205         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
27206         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
27207         arglist parameter.  Use CALL_EXPR_ARG.
27208         (picochip_expand_builtin_3op): Likewise.
27209         (picochip_expand_builtin_2opvoid): Likewise.
27210         (picochip_expand_array_get): Likewise.
27211         (picochip_expand_array_put): Likewise.
27212         (picochip_expand_array_testport): Likewise.
27213         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
27214         rather than arglist.
27215         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
27216         CALL_EXPR_ARGS.
27217         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
27218         than TREE_VALUE and TREE_CHAIN.
27219         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
27220         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
27221         the arglist.
27222
27223 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
27224
27225         PR bootstrap/42347
27226         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
27227         to have no fallthru edge.
27228
27229         PR middle-end/44102
27230         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
27231         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
27232         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
27233         add BARRIER after previous bb if needed.
27234
27235 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
27236
27237         * tree.c (build_function_type_list_1): Remove bogus assert condition.
27238
27239 2010-05-17  Alan Modra  <amodra@gmail.com>
27240
27241         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
27242         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
27243         with copy_reg rtx param.
27244         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
27245         Correct cases where code for ABI_V4 did not initialise the reg
27246         used to access frame.  Also leave frame_reg_rtx as sp for large
27247         frames that save no regs.
27248
27249 2010-05-17  Martin Jambor  <mjambor@suse.cz>
27250
27251         PR middle-end/44133
27252         * tree-sra.c (create_access_replacement): New parameter rename, mark
27253         the replaement for renaming only when it is true.
27254         (get_access_replacement): Pass true in the rename parameter of
27255         create_access_replacement.
27256         (get_unrenamed_access_replacement): New function.
27257         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
27258         replacement declaration from it.
27259
27260 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
27261
27262         * function.c (try_fit_stack_local, add_frame_space): New static
27263         functions.
27264         (assign_stack_local_1): Use them.  Look for opportunities to use
27265         space previously wasted on alignment.
27266         * function.h (struct frame_space): New.
27267         (struct rtl_data): Add FRAME_SPACE_LIST member.
27268         * reload1.c (something_was_spilled): New static variable.
27269         (alter_reg): Set it.
27270         (reload): Test it in addition to testing if the frame size changed.
27271
27272 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
27273
27274         * config/s390/s390.c: Define sane prefetch settings and activate
27275         flag_prefetch_loop_arrays on -O3.
27276         * config/s390/s390.h: Declare that read can use write prefetch.
27277
27278 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
27279
27280         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
27281         build.
27282
27283 2010-05-16  Jan Hubicka  <jh@suse.cz>
27284
27285         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
27286         function body; do not check stdarg field of struct function.
27287
27288 2010-05-16  Jan Hubicka  <jh@suse.cz>
27289
27290         * cgraph.c (dump_cgraph_node): Dump versionable flag.
27291         * cgraph.h (cgraph_local_info): Add versionable flag.
27292         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
27293         (ipcp_versionable_function_p): Use it.
27294         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27295         versionable flag.
27296
27297 2010-05-16  Jan Hubicka  <jh@suse.cz>
27298
27299         * cgraph.c (cgraph_clone_node): Take decl argument and insert
27300         clone into hash when it is different from orig.
27301         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
27302         * cgraph.h (cgraph_clone_node): Update prototype.
27303         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
27304         (lto_cgraph_encoder_delete): Delete body map.
27305         (lto_cgraph_encoder_size): Move to header.
27306         (lto_cgraph_encoder_encode_body_p,
27307         lto_set_cgraph_encoder_encode_body): New.
27308         (lto_output_node): Do not take written_decls argument; output clone_of
27309         pointer.
27310         (add_node_to): Add include_body_argument; call
27311         lto_set_cgraph_encoder_encode_body on master of the clone.
27312         (add_references): Update use of add_node_to.
27313         (compute_ltrans_boundary): Likewise.
27314         (output_cgraph): Do not create written_decls bitmap.
27315         (input_node): Take nodes argument; stream in clone_of correctly.
27316         (input_cgraph_1): Update use of input_node.
27317         * lto-streamer-out.c (lto_output): Use encoder info to decide
27318         what bodies to output.
27319         * ipa-inline.c (cgraph_clone_inlined_nodes,
27320         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
27321         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
27322         (lto_cgraph_encoder_size): Define here.
27323         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
27324         Declare.
27325
27326 2010-05-16  Richard Guenther  <rguenther@suse.de>
27327
27328         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
27329         -fipa-type-escape.
27330         * ipa-type-escape.c (gate_type_escape_vars): Run when
27331         -fipa-struct-reorg runs.
27332         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
27333         * common.opt (fipa-type-escape): Remove.
27334
27335 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
27336
27337         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
27338         (decode_options): Likewise.
27339         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
27340
27341 2010-05-16  Jan Hubicka  <jh@suse.cz>
27342
27343         * ipa.c (function_and_variable_visibility): Also bring local all
27344         aliases.
27345
27346 2010-05-16  Richard Guenther  <rguenther@suse.de>
27347
27348         * alias.c (nonoverlapping_memrefs_p): Remove use of
27349         IPA type-escape information.
27350
27351 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
27352
27353         * c-common.c (c_common_reswords): Add _Static_assert for C.
27354         * c-parser.c (c_token_starts_declaration,
27355         c_parser_next_token_starts_declaration,
27356         c_parser_static_assert_declaration_no_semi,
27357         c_parser_static_assert_declaration): New.
27358         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
27359         Handle static assertions if static_assert_ok.
27360         (c_parser_external_declaration, c_parser_declaration_or_fndef,
27361         c_parser_compound_statement_nostart, c_parser_label,
27362         c_parser_for_statement, c_parser_objc_methodprotolist,
27363         c_parser_omp_for_loop): All callers of
27364         c_parser_declaration_or_fndef changed.
27365         (c_parser_struct_declaration): Handle static assertions.
27366         (c_parser_compound_statement_nostart): Use
27367         c_parser_next_token_starts_declaration and
27368         c_token_starts_declaration to detect start of declarations.
27369         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
27370         Likewise.
27371
27372 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
27373
27374         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27375         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27376         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27377         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27378         (mmix_function_outgoing_value): Rename to...
27379         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
27380         (mmix_function_value_regno_p): Make static.
27381         (mmix_libcall_value): New function.
27382         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
27383         mmix_function_value_regno_p): Remove declaration.
27384
27385 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
27386
27387         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
27388         BUILT_IN_ALLOCA if stack checking is enabled.
27389
27390 2010-05-16  Richard Guenther  <rguenther@suse.de>
27391
27392         * var-tracking.c (vars_copy_1): Inline ...
27393         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
27394         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
27395         (variable_merge_over_cur): Adjust.  Merge asserts.
27396         (variable_merge_over_src): Likewise.
27397         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
27398         (variable_post_merge_new_vals): Merge asserts.
27399         (variable_post_merge_perm_vals): Likewise.
27400         (find_mem_expr_in_1pdv): Likewise.
27401         (dataflow_set_different_value): Remove.
27402         (onepart_variable_different_p): Merge asserts.
27403         (variable_different_p): Likewise.
27404         (dataflow_set_different_1): Inline ...
27405         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
27406         (emit_notes_for_differences_1): Merge asserts.
27407
27408 2010-05-16  Richard Guenther  <rguenther@suse.de>
27409
27410         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
27411         * optabs.c (libfunc_decl_hash): Likewise.
27412         * varasm.c (emutls_decl): Likewise.
27413
27414 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
27415
27416         * c-decl.c: Don't include gimple.h.
27417         (merge_decls): Do not copy gimple_body.
27418
27419 2010-05-15  Jason Merrill  <jason@redhat.com>
27420
27421         * c.opt: Add -fnothrow-opt.
27422
27423 2010-05-15  Jan Hubicka  <jh@suse.cz>
27424
27425         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
27426         analyzed.
27427         * passes.c (ipa_write_summaries): Write all analyzed nodes.
27428
27429 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
27430
27431         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
27432         * Makefile.in: Add it.
27433         Fix all other Makefile dependencies for changes below.
27434         * tree.h: Include it instead of defining VEC primitives here.
27435         * gimple.h: Likewise.
27436         * rtl.h: Likewise.
27437         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
27438         * except.h: Include vecir.h, break dependence on tree.h.
27439
27440         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
27441         Move from here...
27442         * tree-iterator.c: ...to here.
27443         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
27444
27445         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
27446         tm_p.h.
27447         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
27448         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
27449         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
27450         tree-mudflap.h, and target.h.
27451         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
27452         predict.h, tree-inline.h, gimple.h, and langhooks.h.
27453         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
27454         Add FIXME for why gimple.h is still included (should be unnecessary
27455         since GCC 4.5 gimplification unit-at-a-time).
27456         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
27457         * c-pragma.c: Add FIXME for why function.h needs to be included just
27458         for cfun, at front-end level.
27459         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
27460         Do not include ggc.h, but include vecprim.h for VEC(char).
27461         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
27462         Explain why target.h is included.
27463         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
27464         Explain why gimple.h is included.
27465         * c-ppoutput.c: Do not include tm.h.
27466         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
27467         * c-parses.c: Explain why rtl.h is included, and that this (and only
27468         this) is also why tm.h must be included.
27469         Do not include except.h.
27470         * c-lang.c: Do not include ggc.h.
27471
27472 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
27473
27474         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
27475
27476 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
27477
27478         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
27479         unions by default if those structs and unions have no tags.  Do
27480         not condition anonymous struct and unions handling on flag_iso.
27481         Allow anonymous structs and unions for C1X.
27482         (finish_struct): Do not diagnose lack of named fields when
27483         anonymous structs and unions present for C1X.  Accept flexible
27484         array members in structure with anonymous structs or unions but no
27485         directly named fields.
27486         * doc/extend.texi (Unnamed Fields): Update.
27487
27488 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
27489
27490         * gimple.h (compare_field_offset): Rename into...
27491         (gimple_compare_field_offset): ...this.
27492         * gimple.c (compare_field_offset): Rename into...
27493         (gimple_compare_field_offset): ...this.  Compare the full access if
27494         the offset is self-referential.
27495         (gimple_types_compatible_p): Adjust for above renaming.
27496         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
27497         DECL_NONADDRESSABLE_P flag of fields before merging them.
27498
27499 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
27500
27501         * tree.h (ctor_to_list): Delete.
27502         * tree.c (ctor_to_list): Delete.
27503
27504 2010-05-15  Jan Hubicka  <jh@suse.cz>
27505
27506         * ipa-reference.c: Include toplev.h
27507         (is_proper_for_analysis): Only add to all_module_statics
27508         if it is allocated.
27509         (write_node_summary_p, stream_out_bitmap,
27510         ipa_reference_write_optimization_summary,
27511         ipa_reference_read_optimization_summary): New.
27512         (struct ipa_opt_pass_d pass_ipa_reference): Add
27513         optimization summary streaming.
27514         * lto-cgraph.c (referenced_from_this_partition_p,
27515         reachable_from_this_partition_p): New functions.
27516         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
27517         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
27518         * opts.c (decode_options): Enable ipa_reference.
27519         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
27520         * lto-streamer.h (referenced_from_this_partition_p,
27521         reachable_from_this_partition_p): Declare.
27522
27523 2010-05-15  Richard Guenther  <rguenther@suse.de>
27524
27525         PR tree-optimization/44038
27526         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
27527         taking the address of a V_C_E of a constant.
27528
27529 2010-05-14  Jan Hubicka  <jh@suse.cz>
27530
27531         * tree.h (memory_identifier_string): Remove.
27532         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
27533         (ipa_reference_global_vars_info_d): Remove statics_not_read and
27534         statics_not_written.
27535         (ipa_reference_optimization_summary_d): New structure.
27536         (ipa_reference_optimization_summary_t): New type and vector.
27537         (ipa_reference_vars_info_d): Embedd structures instead of using
27538         pointers.
27539         (reference_vars_to_consider): Remove out of GGC space.
27540         (module_statics_escape): Remove.
27541         (global_info_obstack): Rename to ...
27542         (optimization_summary_obstack): ... this one.
27543         (initialization_status_t): Remove.
27544         (memory_identifier_string): Remove.
27545         (get_reference_vars_info): Fix indenting.
27546         (set_reference_vars_info): Likewise.
27547         (get_reference_optimization_summary): New.
27548         (set_reference_optimization_summary): New.
27549         (get_global_reference_vars_info): Remove.
27550         (ipa_reference_get_read_global): Remove.
27551         (ipa_reference_get_written_global): Remove.
27552         (ipa_reference_get_not_read_global): Update.
27553         (ipa_reference_get_not_written_global): Update.
27554         (is_proper_for_analysis): Outlaw addressable.
27555         (propagate_bits): Update for new datastructures.
27556         (analyze_variable): Remove.
27557         (init_function_info): Update for new datastructures.
27558         (clean_function_local_data): Remove.
27559         (clean_function): Remove.
27560         (copy_global_bitmap): Use optimizations_summary_obstack.
27561         (duplicate_node_data): Duplicate optimization summary only.
27562         (remove_node_data): Remove optimization summary only.
27563         (generate_summary): Do not analyze variables; do not compute
27564         module_statics_escape; do not prune solutions by it.
27565         (read_write_all_from_decl): Fix typos in comments.
27566         (propagate): Doscover readonly and nonaddressable first;
27567         update for new datastructures; share global bitmaps.
27568         * ipa-reference.h (ipa_reference_get_read_global,
27569         ipa_reference_get_written_global): Remove.
27570         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
27571         * Makefile.in: Remove ipa-refereference from GT files.
27572
27573 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
27574
27575         PR debug/44112
27576         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
27577         for all SYMBOL_REF_DECLs.
27578
27579 2010-05-14  Jan Hubicka  <jh@suse.cz>
27580
27581         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
27582         (varpool_all_refs_explicit_p): New inline function.
27583         * ipa-reference.c: Update comment.
27584         (module_statics_written): Remove.
27585         (get_static_decl): Remove.
27586         (ipa_init): Do not initialize module_statics_written.
27587         (analyze_function): Likewise.
27588         (generate_summary): Likewise; do not compute module_statics_readonly
27589         and do not update variable flags.
27590         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
27591         * ipa.c: Inlucde flags.h
27592         (cgraph_local_node_p): New.
27593         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
27594         promote functions to local.
27595         (ipa_discover_readonly_nonaddressable_vars): New function.
27596         (function_and_variable_visibility): Use cgraph_local_node_p.
27597         * varpool.c (varpool_finalize_decl): Set force_output for
27598         DECL_PRESERVE_P vars.
27599
27600 2010-05-14  Jan Hubicka  <jh@suse.cz>
27601
27602         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
27603
27604 2010-05-14  Richard Guenther  <rguenther@suse.de>
27605
27606         PR tree-optimization/44119
27607         * tree-ssa-pre.c (eliminate): Properly mark replacement of
27608         a PHI node necessary.
27609
27610 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27611
27612         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
27613
27614 2010-05-14  Jason Merrill  <jason@redhat.com>
27615
27616         PR c++/44127
27617         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
27618         (gimple_call_set_nothrow): New.
27619         * gimple.c (gimple_build_call_from_tree): Call it.
27620         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
27621
27622         PR c++/44127
27623         * gimplify.c (gimplify_seq_add_stmt): No longer static.
27624         * gimple.h: Declare it.
27625         * gimple.c (gimple_build_eh_filter): No ops.
27626
27627 2010-05-14  Jan Hubicka  <jh@suse.cz>
27628
27629         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
27630         nodes already in queue.
27631         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
27632         re-enqueueing node.
27633
27634 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
27635
27636         PR debug/44136
27637         * cfgexpand.c (expand_debug_expr): If non-memory op0
27638         has BLKmode, return NULL.
27639
27640 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
27641
27642         * config.gcc: Add support for --with-cpu option for bdver1.
27643         * config/i386/i386.h (TARGET_BDVER1): New macro.
27644         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
27645         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27646         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
27647         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27648         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
27649         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
27650         (processor_type): Add PROCESSOR_BDVER1.
27651         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
27652         processor_type in config/i386/i386.h.
27653         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
27654         movaps <reg, reg> instead of movapd <reg, reg> when replacing
27655         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
27656         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
27657         to emit packed xor instead of packed double/packed integer
27658         xor for SSE and AVX when moving a zero value.
27659         * config/i386/sse.md: Add check for
27660         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
27661         movapd/movdqa for SSE and AVX.
27662         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
27663         single logical operations i.e and, or and xor instead of packed double
27664         logical operations for SSE and AVX.
27665         * config/i386/i386-c.c (ix86_target_macros_internal):
27666         Add PROCESSOR_BDVER1.
27667         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
27668         (has_fma4, has_xop): New.
27669         * config/i386/i386.c (bdver1_cost): New variable.
27670         (m_BDVER1): New macro.
27671         (m_AMD_MULTIPLE): Add m_BDVER1.
27672         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
27673         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
27674         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
27675         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
27676         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
27677         x86_tune_sse_partial_reg_dependency,
27678         x86_tune_sse_unaligned_load_optimal,
27679         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
27680         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
27681         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
27682         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
27683         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
27684         Enable/disable for bdver1.
27685         (processor_target_table): Add bdver1_cost.
27686         (cpu_names): Add bdver1.
27687         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
27688          processor_alias_table.
27689         (ix86_expand_vector_move_misalign): Change.
27690         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
27691         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
27692         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
27693         of movupd/movdqu for SSE and AVX.
27694         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
27695         (ix86_tune_adjust_cost): Add code for bdver1.
27696         (standard_sse_constant_opcode): Add check for
27697         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
27698         of packed double xor for SSE and AVX.
27699
27700 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
27701
27702         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
27703         result to unsigned.
27704
27705 2010-05-14  Tristan Gingold  <gingold@adacore.com>
27706
27707         * toplev.c (default_debug_hooks): Remove this variable.
27708         (process_options): Remove assignments to default_debug_hooks.
27709
27710 2010-05-14  Martin Jambor  <mjambor@suse.cz>
27711
27712         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
27713         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
27714         * langhooks.h (struct lang_hooks_for_decls): Removed field
27715         fold_obj_type_ref.
27716         * tree.c (free_lang_data): Remove assignment to
27717         lang_hooks.fold_obj_type_ref.
27718         * tree.def (OBJ_TYPE_REF): Update comment.
27719
27720 2010-05-14  Richard Guenther  <rguenther@suse.de>
27721
27722         PR tree-optimization/44124
27723         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
27724
27725 2010-05-14  Alan Modra  <amodra@gmail.com>
27726
27727         PR target/44075
27728         * config/rs6000/rs6000.c (struct machine_function): Reorder
27729         fields for better packing.  Add lr_save_state.
27730         (rs6000_ra_ever_killed): Return lr_save_state if set.
27731         (rs6000_emit_eh_reg_restore): Set lr_save_state.
27732
27733 2010-05-13  Jan Hubicka  <jh@suse.cz>
27734
27735         * varpool.c (decide_is_variable_needed): Drop code checking
27736         TREE_SYMBOL_REFERENCED.
27737
27738 2010-05-13  Jan Hubicka  <jh@suse.cz>
27739
27740         * final.c (output_addr_const): Do not call mark_decl_referenced.
27741         * cgraphunit.c (process_function_and_variable_attributes): Use
27742         mark_needed_node dirrectly.
27743         (assemble_thunk): Do not call mark_decl_referenced.
27744
27745 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
27746
27747         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
27748
27749 2010-05-13  Jeff Law  <law@redhat.com>
27750
27751         * ira-conflicts.c (print_allocno_conflicts): New function broken out
27752         from...
27753         (print_conflicts): Call print_allocno_conflicts.
27754
27755 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
27756
27757         PR debug/44104
27758         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
27759         if it is NULL.
27760
27761 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
27762
27763         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
27764         t-mingw-w64 or t-mingw-w32 for multilib configuration.
27765         * config/i386/t-mingw-w32: New.
27766         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
27767
27768 2010-05-13  Martin Jambor  <mjambor@suse.cz>
27769
27770         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
27771         gimple-fold.c).
27772         * gimple-fold.c (get_base_binfo_for_type): New function.
27773         (gimple_get_relevant_ref_binfo): Likewise.
27774         (gimple_fold_obj_type_ref_known_binfo): Likewise.
27775         (gimple_fold_obj_type_ref): Likewise.
27776         (fold_gimple_call): Simplify condition for folding virtual calls
27777         and call gimple_fold_obj_type_ref.
27778         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
27779         (gimple_fold_obj_type_ref_known_binfo): Likewise.
27780
27781 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
27782
27783         * config/rs6000/rs6000-protos.h
27784         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
27785         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
27786         (rs6000_debug_mode_dependent_address)
27787         (rs6000_mode_dependent_address_ptr): Likewise.
27788
27789 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
27790
27791         PR debug/43983
27792         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
27793         by SRA.
27794         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
27795         * tree-sra.c (create_access_replacement): Call unshare_expr before
27796         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
27797         * dwarf2out.c: Include tree-flow.h.
27798         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
27799         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
27800         Handle DW_OP_bit_piece.
27801         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
27802         construct_piece_list, adjust_piece_list): New functions.
27803         (add_var_loc_to_decl): Handle SRA optimized variables.
27804         Adjust for var_loc_note to loc field renaming.
27805         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
27806         in VAR_LOCATION note.
27807         (new_loc_descr_op_bit_piece): New function.
27808         (dw_sra_loc_expr): New function.
27809         (dw_loc_list): Use it.  Don't handle the last range after the
27810         loop, handle it inside of the loop.  Adjust for var_loc_note
27811         to loc field renaming.
27812         (add_location_or_const_value_attribute): Only special case
27813         single entry loc lists if loc is NOTE_P.  Adjust for
27814         var_loc_note to loc field renaming.
27815         (dwarf2out_var_location): Don't set newloc->var_loc_note
27816         and newloc->next here.
27817
27818 2010-05-12  Jan Hubicka  <jh@suse.cz>
27819
27820         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
27821         flag.
27822         * cgraph.h (cgraph_only_called_directly_p,
27823         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
27824         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
27825         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
27826         (assemble
27827         * ipa.c (cgraph_remove_unreachable_nodes): Use
27828         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
27829         flags.
27830         * tree-inline.c (copy_bb): Check address_taken flag.
27831         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
27832         externally_visible flag.
27833
27834 2010-05-12  Jason Merrill  <jason@redhat.com>
27835
27836         PR bootstrap/44048
27837         PR target/44099
27838         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
27839         * sdbout.c (plain_type_1): Likewise.
27840         * dwarf2out.c (is_base_type): Likewise.
27841         (gen_type_die_with_usage): Likewise.  Generate
27842         DW_TAG_unspecified_type for any LANG_TYPE.
27843
27844 2010-05-12  Jan Hubicka  <jh@suse.cz>
27845
27846         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
27847         indrect edges too.
27848         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
27849         (cgraph_clone_edge): Update.
27850         (cgraph_node_remove_callees): Remove indirect calls too.
27851         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
27852         (cgraph_create_indirect_edge): Update prototype.
27853         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
27854         is_proper_for_analysis.
27855         (add_new_function, visited_nodes, function_insertion_hook_holder,
27856         get_local_reference_vars_info, mark_address_taken, mark_address,
27857         mark_load, mark_store, check_asm_memory_clobber, check_call,
27858         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
27859         (ipa_init): Do not initialize visited_nodes;
27860         function_insertion_hook_holder.
27861         (analyze_variable): Rewrite.
27862         (analyze_function): Rewrite.
27863         (copy_local_bitmap): Remove.
27864         (duplicate_node_dat): Do not duplicate local info.
27865         (generate_summary): Simplify to only walk cgraph.
27866         (write_node_summary_p, ipa_reference_write_summary,
27867         ipa_reference_read_summary): Remove.
27868         (propagate): Do not remove function insertion;
27869         generate summary.
27870         (pass_ipa_reference): NULLify summary handling fields.
27871         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
27872         (input_edge): Input ecf_flags.
27873         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
27874         (update_indirect_edges_after_inlining): Ignore edges with unknown
27875         param.
27876
27877 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
27878
27879         * implicit-zee.c: New file.
27880         * tree-pass.h (pass_implicit_zee): Declare.
27881         * passes.c (init_optimization_passes): Add zee pass.
27882         * common.opt (fzee): New flag.
27883         * timevar.def (TV_ZEE): Define.
27884         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
27885         and beyond.
27886         * Makefile.in (implicit-zee.o): Add new build file.
27887
27888 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
27889             Nathan Froyd  <froydnj@codesourcery.com>
27890
27891         * c-common.c (sync_resolve_params): Remove write-only variable.
27892
27893 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
27894
27895         * target.h (struct gcc_target): Add mode_dependent_address_p field.
27896         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27897         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
27898         * targhooks.c (default_mode_dependent_address_p): New function.
27899         * targhooks.h (default_mode_dependent_address_p): Declare function.
27900         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27901         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
27902         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
27903         target hook. Change return type to bool.
27904         * recog.h (mode_dependent_address_p): Change return type to bool.
27905
27906 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
27907             Nathan Froyd  <froydnj@codesourcery.com>
27908
27909         * tree-mudflap.c (build_function_type_0, build_function_type_1,
27910         build_function_type_2, build_function_type_3): Remove.
27911         (mudflap_init): Use build_function_type_list.
27912
27913 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
27914             Nathan Froyd  <froydnj@codesourcery.com>
27915
27916         * coverage.c (build_fn_info_value): Call build_constructor instead of
27917         build_constructor_from_list.
27918         (build_ctr_info_value): Likewise.
27919         (build_gcov_info): Likewise.
27920
27921 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
27922
27923         * tree.c (build_constructor): Compute TREE_CONSTANT for the
27924         resultant constructor.
27925         (build_constructor_single): Don't set TREE_CONSTANT.
27926         (build_constructor_from_list): Don't compute TREE_CONSTANT.
27927
27928 2010-05-12  Jan Hubicka  <jh@suse.cz>
27929
27930         * cgraph.h (struct varpool_node): Add aux.
27931         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
27932         * varpool.c (varpool_remove_node): Do not remove initializer.
27933         (varpool_reset_queue): Export.
27934         (varpool_finalize_decl): Volatile vars are forced to be output.
27935         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
27936         replaced decl.
27937         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
27938         process_references, varpool_can_remove_if_no_refs): New functions.
27939         (cgraph_remove_unreachable_nodes): Handle variables too.
27940
27941 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
27942
27943         PR target/44088
27944         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
27945
27946 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
27947
27948         PR middle-end/44085
27949         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
27950         change value of ORT_TASK.
27951         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
27952         (omp_notice_threadprivate_variable): New function.
27953         (omp_notice_variable): Call it for threadprivate variables.
27954         If enclosing ctx is a task, print enclosing task rather than
27955         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
27956         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
27957         if task has untied clause.
27958
27959         PR debug/42278
27960         * dwarf2out.c (base_type_die): Don't add name attribute here.
27961         (modified_type_die): Instead of sizetype use
27962         its underlying original type.  If a DW_TAG_base_type doesn't
27963         have name added, add __unknown__.
27964         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
27965         always call force_type_die instead.
27966
27967 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
27968
27969         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
27970         for __stack_chk_guard.
27971
27972 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
27973
27974         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
27975         don't call start_source_file debug hook here...
27976         (finish_options): ... but here, after outputting predefined and
27977         command line defines and undefs.
27978
27979         PR middle-end/44071
27980         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
27981         no fallthru edge.
27982         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
27983         optimizing away empty bb with no successors, move over its
27984         footer chain to fallthru predecessor.
27985         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
27986         (rtl_split_edge): For asm goto call patch_jump_insn even if
27987         splitting fallthru edge.
27988
27989         PR c++/44059
27990         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
27991         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
27992         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
27993         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
27994         on DW.ref.* decls.
27995
27996         PR c++/44062
27997         * c-parser.c (c_parser_expression): Mark LHS of a comma
27998         expression as read if it is a decl, handled component or
27999         COMPOUND_EXPR with that on the RHS.
28000         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
28001         if it is a decl or handled component.
28002
28003 2010-05-11  Jan Hubicka  <jh@suse.cz>
28004
28005         * lto-symtab.c (lto_symtab_free): New function.
28006         * lto-streamer.h (lto_symtab_free): Declare.
28007
28008 2010-05-11  Jan Hubicka  <jh@suse.cz>
28009
28010         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
28011         that if function is needed it is reachable.
28012         (lto_output_node): See if it the function is reachable or referenced.
28013         (output_cgraph): Update call of lto_output_node.
28014         * lto-streamer.h (reachable_from_other_partition_p): Declare.
28015
28016 2010-05-11  Jan Hubicka  <jh@suse.cz>
28017
28018         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
28019         Mark as used.
28020
28021 2010-05-11  Jan Hubicka  <jh@suse.cz>
28022
28023         PR tree-optimize/44063
28024         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
28025         queue.
28026         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
28027         limits.
28028         (estimate_function_body_sizes): Compute sizes even when disregarding.
28029
28030 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
28031
28032         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
28033
28034 2010-05-11  Jan Hubicka  <jh@suse.cz>
28035
28036         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
28037         into every boundary.
28038
28039 2010-05-11  Jan Hubicka  <jh@suse.cz>
28040
28041         * matrix-reorg.c (matrix_reorg): Rebuild edges.
28042
28043 2010-05-11  Jan Hubicka  <jh@suse.cz>
28044
28045         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
28046         lto_streamer_cache_delete): Put nodes into heap.
28047         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
28048         heap.
28049
28050 2010-05-11  Jan Hubicka  <jh@suse.cz>
28051
28052         * cgraphbuild.c (cgraph_rebuild_references): New.
28053         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
28054         out extern inlines.
28055         * cgraph.h (cgraph_rebuild_references): Declare.
28056         * tree-inline.c (tree_function_versioning): Use it.
28057         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
28058
28059 2010-05-11  Jan Hubicka  <jh@suse.cz>
28060
28061         * cgraph.c: Include ipa-utils.h
28062         (cgraph_create_virtual_clone): Update references.
28063         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
28064
28065 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
28066
28067         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
28068         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
28069         cache size.
28070
28071 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
28072
28073         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
28074
28075 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
28076
28077         * gcc.c (execute): For -### don't quote arguments that
28078         contain just alphanumerics and _/-. characters.
28079         * doc/invoke.texi: Document that change for -###.
28080
28081         PR debug/44023
28082         * df-problems.c (struct dead_debug): Add to_rescan field.
28083         (dead_debug_init): Clear to_rescan field.
28084         (dead_debug_finish): Rescan all debug insns in to_rescan
28085         bitmap and free the bitmap.
28086         (dead_debug_insert_before): Instead of rescanning debug insns
28087         immediately queue their rescanning until dead_debug_finish.
28088         (df_note_bb_compute): After dead_debug_add do continue instead
28089         of break.
28090
28091 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
28092
28093         PR debug/44028
28094         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
28095         clear also INSN_REG_USE_LIST.
28096
28097 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28098
28099         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
28100
28101 2010-05-10  Jan Hubicka  <jh@suse.cz>
28102
28103         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
28104         commited change.
28105
28106 2010-05-10  Jan Hubicka  <jh@suse.cz>
28107
28108         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
28109         Allocate encoders.
28110         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
28111         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
28112         (lto_streamer_cache_create): Init alloc pool.
28113         (lto_streamer_cache_delete): Free alloc pool.
28114         * lto-streamer.h: Include alloc pool.
28115         (lto_streamer_cache_d): Use alloc pool.
28116         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
28117
28118 2010-05-10  Jan Hubicka  <jh@suse.cz>
28119
28120         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
28121         * cgraphbuild.c: Include except.h
28122         (record_type_list, record_eh_tables): New function.
28123         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
28124
28125 2010-05-10  Jan Hubicka  <jh@suse.cz>
28126
28127         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
28128         __frame_dummy_init_array_entry, force_to_data): Attribute as used
28129         rather than unused.
28130
28131 2010-05-10  Michael Matz  <matz@suse.de>
28132
28133         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
28134         (can_reassociate_p): Use FLOAT_TYPE_P.
28135         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
28136         (vect_force_simple_reduction): ... this.
28137         * tree-parloops.c (gather_scalar_reductions): Use
28138         vect_force_simple_reduction.
28139         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
28140         vect_is_simple_reduction, add modify argument, if true rewrite
28141         "a-b" into "a+(-b)".
28142         (vect_is_simple_reduction, vect_force_simple_reduction): New
28143         functions.
28144         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
28145
28146 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
28147             Vladimir Makarov  <vmakarov@redhat.com>
28148
28149         PR rtl-optimization/44012
28150         * ira-build.c (remove_unnecessary_allocnos): Nullify
28151         regno_allocno_map of the removed allocno.
28152
28153 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28154
28155         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
28156         to /dev/null.
28157         * configure: Regenerate.
28158
28159 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28160
28161         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
28162         unused.
28163         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
28164         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
28165         support in Sun ld.
28166         * configure: Regenerate.
28167
28168 2010-05-10  Richard Guenther  <rguenther@suse.de>
28169
28170         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
28171         marked if the entry identifier is marked.
28172
28173 2010-05-10  Richard Guenther  <rguenther@suse.de>
28174
28175         * c-common.c (struct c_common_attributes): Add fnspec attribute.
28176         (handle_fnspec_attribute): New function.
28177         * gimple.h (gimple_call_return_flags): Declare.
28178         (gimple_call_arg_flags): Likewise.
28179         * gimple.c (gimple_call_arg_flags): New function.
28180         (gimple_call_return_flags): Likewise.
28181         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
28182         New argument flags.
28183         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
28184         return value flags.
28185         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
28186         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
28187         main work to ...
28188         (make_heapvar_for): ... this new function.
28189         (handle_rhs_call): Handle fnspec attribute argument specifiers.
28190         (handle_lhs_call): Likewise.
28191         (find_func_aliases): Adjust.
28192
28193 2010-05-10  Richard Guenther  <rguenther@suse.de>
28194
28195         PR tree-optimization/44050
28196         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
28197
28198 2010-05-10  Wei Guozhi  <carrot@google.com>
28199
28200         PR target/42879
28201         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
28202
28203 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
28204
28205         PR c/10676
28206         * c-typeck.c (lookup_field): Take a type directly.  Update
28207         recursive calls.
28208         (build_component_ref): Update call to lookup_field.
28209         (set_init_label): Use lookup_field to find initialized field.
28210         Handle returned list of fields like a sequence of designators.
28211
28212 2010-05-09  Richard Guenther  <rguenther@suse.de>
28213
28214         PR middle-end/44024
28215         * fold-const.c (tree_single_nonzero_warnv_p): Properly
28216         handle &FUNCTION_DECL.
28217
28218 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
28219
28220         PR c/4784
28221         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
28222         structures and unions recursively.
28223         (detect_field_duplicates): Move duplicate detection with a hash to
28224         detect_field_duplicates_hash.  Always use a hash if anonymous
28225         structures or unions are present.
28226         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
28227         give errors.
28228
28229 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
28230
28231         PR target/44046
28232         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
28233         detect Atom, Core 2 and Core i7.
28234
28235 2010-05-09  Richard Guenther  <rguenther@suse.de>
28236
28237         * gcc.c (store_arg): Handle temporary file deletion for
28238         joined arguments.
28239
28240 2010-05-09  Richard Guenther  <rguenther@suse.de>
28241
28242         PR middle-end/44043
28243         * ipa-inline.c (estimate_function_body_sizes): Return after
28244         disregarding inline limits.
28245
28246 2010-05-09  Richard Guenther  <rguenther@suse.de>
28247
28248         * gcc.c (store_arg): Revert last change.
28249
28250 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
28251
28252         PR middle-end/28685
28253         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
28254         (optimize_ops_list): Call it.
28255
28256 2010-05-08  Richard Guenther  <rguenther@suse.de>
28257
28258         PR tree-optimization/44030
28259         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
28260         NECESSARY flag if we propagate from a inserted expression.
28261
28262 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
28263
28264         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
28265         domain types as equal if they are both PLACEHOLDER_EXPRs.
28266
28267 2010-05-08  Richard Guenther  <rguenther@suse.de>
28268
28269         * lto-wrapper.c (run_gcc): Remove linker output from
28270         command line for LTRANS invocation.
28271
28272 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
28273
28274         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
28275         lto-macho as lto_binary_reader.
28276         * target.h (struct gcc_target): New hooks lto_start and lto_end.
28277         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
28278         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
28279         in lto_start and lto_end calls.
28280         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
28281         magic numbers.
28282         (scan_prog_file): Update is_elf_or_coff call.
28283         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
28284
28285         * collect2.c (main): Fix enum comparison.
28286
28287         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
28288         Add prototypes.
28289         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
28290         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
28291         and TARGET_ASM_LTO_END.
28292         * darwin.c: Include obstack.h and lto-streamer.h.
28293         (lto_section_names_offset, lto_section_names_obstack,
28294         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
28295         global variables.
28296         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
28297         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
28298         to a temporary file.
28299         (darwin_asm_lto_end): New function.  Restore asm_out_file.
28300         (darwin_asm_named_section): For LTO sections, replace the name with
28301         the offset of the section name in a string table, and build this
28302         table.
28303         (darwin_file_start): Initialize global vars for LTO support.
28304         (darwin_file_end): If output to asm_out_file was redirected, append it
28305         to the proper asm_out_file here.  Add the section names section.
28306
28307 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
28308
28309         * c-pragma.c (pending_weak_d, pending_weak): New.
28310         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
28311         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
28312         handle_pragma_weak): Update the uses of pending_weaks.
28313
28314 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28315
28316         PR documentation/44016
28317         * doc/standards.texi (Standards): Link to unversioned
28318         cxx0x_status.html page.
28319
28320 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
28321
28322         PR target/43708
28323         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
28324         in addition to TREE_USED, to avoid "set but unused" warnings.
28325
28326 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
28327
28328         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
28329         (is_loop_prefetching_profitable): Do not insert prefetches
28330         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
28331         times the prefetch ahead distance.
28332
28333 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
28334
28335         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
28336         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
28337         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
28338         the unroll_factor.
28339
28340 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
28341
28342         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
28343         a diagnostic info when the insn-to-mem ratio is too small.
28344
28345 2010-05-07  Richard Guenther  <rguenther@suse.de>
28346
28347         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
28348         the linker plugin.
28349         (store_arg): Queue temp_filename for deletion instead of
28350         the whole argument.
28351
28352 2010-05-07  Richard Guenther  <rguenther@suse.de>
28353
28354         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
28355         (run_gcc): Handle LTRANS phase invocation.
28356         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
28357
28358 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
28359
28360         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
28361         this is also meaningful on PARM_DECLs and RESULT_DECLs.
28362
28363 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28364
28365         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
28366
28367 2010-05-07  Richard Guenther  <rguenther@suse.de>
28368
28369         PR tree-optimization/44020
28370         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
28371         code when PRE is not yet initialized.
28372
28373 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28374
28375         * config/mips/dbxmdebug.h: Remove.
28376         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
28377
28378 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
28379
28380         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
28381         with null pointer and also warn about ordered comparison of zero with
28382         pointer if -Wextra.
28383
28384 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
28385
28386         * graphite-blocking.c
28387         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
28388         * graphite-clast-to-gimple.c
28389         (clast_to_gcc_expression): Same.
28390         (precision_for_value): Same.
28391         (precision_for_interval): Same.
28392         (gcc_type_for_interval): Same.
28393         (graphite_create_new_guard): Same.
28394         (compute_bounds_for_level): Same.
28395         (graphite_create_new_loop_guard): Same.
28396         * graphite-interchange.c
28397         (build_linearized_memory_access): Same.
28398         (pdr_stride_in_loop): Same.
28399         (memory_strides_in_loop_1): Same.
28400         (memory_strides_in_loop): Same.
28401         (extend_scattering): Same.
28402         (psct_scattering_dim_for_loop_depth): Same.
28403         (pbb_number_of_iterations): Same.
28404         * graphite-poly.h
28405         (debug_iteration_domains): Same.
28406         * graphite-ppl.c
28407         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
28408         (ppl_set_inhomogeneous_gmp): Same.
28409         (ppl_strip_loop): Same.
28410         (ppl_lexico_compare_linear_expressions): Same.
28411         (ppl_read_polyhedron_matrix): Same.
28412         (ppl_max_for_le_pointset): Same.
28413         * graphite-ppl.h
28414         (ppl_read_polyhedron_matrix): Same.
28415         (tree_int_to_gmp): Same.
28416         (gmp_cst_to_tree): Same.
28417         (ppl_set_inhomogeneous): Same.
28418         (ppl_set_inhomogeneous_tree): Same.
28419         (ppl_set_coef): Same.
28420         (ppl_set_coef_tree): Same.
28421         * graphite-sese-to-poly.c
28422         (build_pbb_scattering_polyhedrons): Same.
28423         (build_scop_scattering): Same.
28424         (scan_tree_for_params_right_scev): Same.
28425         (scan_tree_for_params): Same.
28426         (find_params_in_bb): Same.
28427         (find_scop_parameters): Same.
28428         (add_upper_bounds_from_estimated_nit): Same.
28429         (build_loop_iteration_domains): Same.
28430         (add_condition_to_domain): Same.
28431         (pdr_add_memory_accesses): Same.
28432
28433 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
28434
28435         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
28436         CLooG's value_* macros to their respective mpz_* counterparts.
28437         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
28438         (graphite_create_new_loop_guard): Same.
28439         * graphite-interchange.c (build_linearized_memory_access): Same.
28440         (pdr_stride_in_loop): Same.
28441         (memory_strides_in_loop_1): Same.
28442         (1st_interchange_profitable_p): Same.
28443         * graphite-poly.c (extend_scattering): Same.
28444         (psct_scattering_dim_for_loop_depth): Same.
28445         (pbb_number_of_iterations): Same.
28446         (pbb_number_of_iterations_at_time): Same.
28447         * graphite-poly.h (new_1st_loop): Same.
28448         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
28449         (oppose_constraint): Same.
28450         (insert_constraint_into_matrix): Same.
28451         (ppl_set_inhomogeneous_gmp): Same.
28452         (ppl_set_coef_gmp): Same.
28453         (ppl_strip_loop): Same.
28454         (ppl_lexico_compare_linear_expressions): Same.
28455         (ppl_max_for_le_pointset): Same.
28456         (ppl_min_for_le_pointset): Same.
28457         (ppl_build_realtion): Same.
28458         * graphite-ppl.h (gmp_cst_to_tree): Same.
28459         (ppl_set_inhomogeneous): Same.
28460         (ppl_set_inhomogeneous_tree): Same.
28461         (ppl_set_coef): Same.
28462         (ppl_set_coef_tree): Same.
28463         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
28464         (build_scop_scattering): Same.
28465         (add_value_to_dim): Same.
28466         (scan_tree_for_params_right_scev): Same.
28467         (scan_tree_for_params_int): Same.
28468         (scan_tree_for_params): Same.
28469         (find_params_in_bb): Same.
28470         (find_scop_parameters): Same.
28471         (add_upper_bounds_from_estimated_nit): Same.
28472         (build_loop_iteration_domains): Same.
28473         (create_linear_expr_from_tree): Same.
28474         (add_condition_to_domain): Same.
28475         (pdr_add_memory_accesses): Same.
28476
28477 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
28478             Jason Merrill  <jason@redhat.com>
28479
28480         * c-common.c (c_common_reswords): Add nullptr.
28481         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
28482         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
28483         (gen_type_die_with_usage): Likewise.
28484         * dbxout.c (dbxout_type): Likewise.
28485         * sdbout.c (plain_type_1): Likewise.
28486
28487 2010-05-06  Jason Merrill  <jason@redhat.com>
28488
28489         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
28490         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
28491         ret appropriately.
28492         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
28493
28494         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
28495         stripping WITH_SIZE_EXPR.
28496         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
28497         change.
28498
28499 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28500
28501         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
28502         list of obsolete configurations.
28503         Disabled check for obsolete configurations.
28504         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
28505         Removed support for previous versions.
28506         * config/mips/iris.h: Removed.
28507         * config/mips/iris5.h: Removed.
28508         * config/mips/iris6.h: Merged old iris.h contents.
28509         (TARGET_IRIX): Removed.
28510         (DRIVER_SELF_SPECS): Removed mabi=32.
28511         (IDENT_ASM_OP): Removed undef.
28512         (STARTFILE_SPEC): Removed mabi=32.
28513         (ENDFILE_SPEC): Likewise.
28514         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
28515         (MACHINE_TYPE): Update for IRIX 6.5.
28516         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
28517         TARGET_IRIX by TARGET_IRIX6.
28518         (mips_file_start): Likewise.
28519         (mips_output_external): Remove IRIX 5/6 O32 support.
28520         (mips_output_function_prologue): Likewise.
28521         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
28522         TARGET_IRIX6.
28523         (TARGET_CPU_CPP_BUILTINS): Likewise.
28524         (TARGET_IRIX): Removed.
28525         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
28526         (MULTILIB_DIRNAMES): Removed 32.
28527         (MULTILIB_OSDIRNAMES): Removed ../lib.
28528         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
28529         (Specific, mips-sgi-irix5): Document removal.
28530         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
28531         Remove references to older IRIX 6 releases and the O32 ABI.
28532
28533 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
28534
28535         PR bootstrap/43994
28536         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
28537         instead of DF_REF_REAL_REG.
28538
28539 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
28540
28541         PR target/43888
28542         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
28543         handling to still return true for x64 targets.
28544
28545 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
28546
28547         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
28548
28549 2010-05-06  Jan Hubicka  <jh@suse.cz>
28550
28551         PR tree-optimization/43791
28552         * ipa-inline.c (update_caller_keys): Remove bogus
28553         disregard_inline_limits check.
28554
28555 2010-05-06  Michael Matz  <matz@suse.de>
28556
28557         PR tree-optimization/43984
28558         * tree-ssa-pre.c (inserted_phi_names): Remove.
28559         (inserted_exprs): Change to bitmap.
28560         (create_expression_by_pieces): Set bits, don't append to vector.
28561         (insert_into_preds_of_block): Don't handle inserted_phi_names.
28562         (eliminate): Don't look at inserted_phi_names, remove deleted
28563         insns from inserted_exprs.
28564         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
28565         (init_pre, fini_pre): Allocate and free bitmaps.
28566         (execute_pre): Insert insns on edges before elimination.
28567
28568 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
28569
28570         * tree.c (initializer_zerop): Handle STRING_CST.
28571
28572 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28573
28574         PR 40989
28575         * doc/invoke.texi (Wimplicit): Document as C only.
28576         * opts.c (common_handle_option): Add argument kind.
28577         (handle_option): Rename as read_cmdline_option. Factor out code to...
28578         (handle_option): ... here. New.
28579         (handle_options): Rename as read_cmdline_options.
28580         (decode_options): Update call.
28581         (set_option): Use option index instead of option pointer. Classify
28582         diagnostics correctly.
28583         (enable_warning_as_error): Call handle_option.
28584         * opts.h (set_option): Update declaration.
28585         (handle_option): Declare.
28586         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
28587         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
28588         * c-opts.c (set_Wimplicit): Delete.
28589         (c_family_lang_mask): New static constant.
28590         (c_common_handle_option): Add argument kind. Use handle_option
28591         instead of set_Wimplicit.
28592         (c_common_post_options): warn_implicit and warn_implicit_int
28593         are disabled by default.
28594         * c-common.c (warn_implicit): Do not define here.
28595         * c-common.h (warn_implicit): Do not declare here.
28596         (c_common_handle_option): Update declaration.
28597         * lto-opts.c (lto_reissue_options): Update call to set_option.
28598
28599 2010-05-06  Richard Guenther  <rguenther@suse.de>
28600
28601         PR tree-optimization/43571
28602         * domwalk.c (walk_dominator_tree): Walk the dominator
28603         sons in more optimal order.
28604
28605 2010-05-06  Richard Guenther  <rguenther@suse.de>
28606
28607         PR tree-optimization/43934
28608         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
28609         (stmt_cost): Likewise.
28610         (extract_true_false_args_from_phi): New helper.
28611         (determine_max_movement): For PHI nodes verify we can hoist them
28612         and compute their cost.
28613         (determine_invariantness_stmt): Handle PHI nodes.
28614         (move_computations_stmt): Likewise.  Hoist PHI nodes in
28615         if-converted form using COND_EXPRs.
28616         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
28617         (tree_ssa_lim): Likewise.
28618         * tree-flow.h (tree_ssa_lim): Adjust prototype.
28619         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
28620
28621 2010-05-06  Richard Guenther  <rguenther@suse.de>
28622
28623         PR tree-optimization/43987
28624         * tree-ssa-structalias.c (could_have_pointers): For possibly
28625         address-taken variables force pointers to be recorded.
28626         (create_variable_info_for_1): Likewise.
28627         (push_fields_onto_fieldstack): Pass in wheter all fields
28628         must have pointers.
28629         (find_func_aliases): Query types instead of vars whether
28630         they contain pointers where appropriate.
28631
28632 2010-05-06  Jan Hubicka  <jh@suse.cz>
28633
28634         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
28635         (record_reference, mark_address, mark_load, mark_store): Record
28636         references.
28637         (record_references_in_initializer): Update call of record_references.
28638         (rebuild_cgraph_edges): Remove all references before rebuiding.
28639         * cgraph.c (cgraph_create_node): Clear ref list.
28640         (cgraph_remove_node): Remove references.
28641         (dump_cgraph_node): Dump references.
28642         (cgraph_clone_node): Clone references.
28643         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
28644         (struct cgraph_node, varpool_node): Add ref_lst.
28645         * ipa-ref.c: New file.
28646         * ipa-ref.h: New file.
28647         * ipa-ref-inline.h: New file.
28648         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
28649         (referenced_from_other_partition_p): New function.
28650         (lto_output_varpool_node): Take set arugment; call
28651         referenced_from_other_partition.
28652         (lto_output_ref): New.
28653         (add_references): New.
28654         (output_refs): New.
28655         (output_cgraph): Compute boundary based on references; output refs.
28656         (output_varpool): Accept cgraph_node_set argument.
28657         (input_ref): New.
28658         (input_refs): New.
28659         (input_cgraph): Call input_refs.
28660         * lto-section-in.c (lto_section_name): Add refs.
28661         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
28662         (ipa-ref.o): New file.
28663         * varpool.c (varpool_node): Clear ipa ref list.
28664         (varpool_remove_node): Remove references.
28665         (dump_varpool_node): Dump references.
28666         (varpool_assemble_decl): Only compile finalized ones.
28667         (varpool_extra_name_alias): Initialize ref list.
28668         * lto-streamer.c (lto-get_section_name): Add .refs section.
28669         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
28670         (referenced_from_other_partition_p): Declared.
28671
28672 2010-05-06  Ira Rosen  <irar@il.ibm.com>
28673
28674         PR tree-optimization/43901
28675         * tree-vect-stmts.c (vectorizable_call): Assert that vector
28676         type is not NULL if it's transformation phase, and return
28677         FALSE if it's analysis.
28678         (vectorizable_conversion, vectorizable_operation,
28679         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
28680
28681 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
28682
28683         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28684         Delete.
28685         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28686         New define.
28687         * config/mips/mips-protos.h
28688         (mips_small_register_classes_for_mode_p): Delete prototype.
28689
28690 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
28691
28692         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
28693         * config/arm/arm.c (multiple_operation_profitable_p,
28694         compute_offset_order): New static functions.
28695         (load_multiple_sequence, store_multiple_sequence): Use them.
28696         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
28697         memory offsets, not register numbers.
28698         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
28699
28700 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
28701
28702         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
28703         (get_pending_sizes, put_pending_size, put_pending_sizes):
28704         Update the uses of pending_sizes.
28705         * c-decl.c (store_parm_decls): Likewise.
28706         * c-tree.h (struct c_arg_info): Likewise.
28707         * tree.h: Update the prototype for get_pending_sizes and
28708         put_pending_sizes.
28709
28710 2010-05-05  Jason Merrill  <jason@redhat.com>
28711
28712         PR debug/43370
28713         * c-common.c (handle_aligned_attribute): Respect
28714         ATTR_FLAG_TYPE_IN_PLACE.
28715
28716         PR testsuite/43758
28717         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
28718         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28719         (TARGET_INITIALIZER): Use it.
28720         * c-common.c (attribute_takes_identifier_p): Call it.
28721         * c-common.h: Update prototype.
28722         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
28723         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28724
28725 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
28726
28727         PR debug/43950
28728         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
28729         DW_ID_down_case for Fortran compilation units.
28730
28731 2010-05-05  Jan Hubicka  <jh@suse.cz>
28732
28733         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
28734         handle aliases.
28735
28736 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
28737
28738         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
28739         a variable-sized RESULT_DECL.
28740
28741 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
28742
28743         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
28744
28745 2010-05-05  Jason Merrill  <jason@redhat.com>
28746
28747         PR c++/43787
28748         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
28749         returns GS_OK.
28750         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
28751
28752 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
28753             Jakub Jelinek  <jakub@redhat.com>
28754
28755         PR debug/43478
28756         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
28757         (dead_debug_init, dead_debug_finish): New functions.
28758         (dead_debug_add, dead_debug_insert_before): Likewise.
28759         (df_note_bb_compute): Initialize a dead_debug object, add dead
28760         debug uses to it, insert debug bind insns before death insns,
28761         reset debug insns that refer to pending uses at the end.
28762         * rtl.h (make_debug_expr_from_rtl): New prototype.
28763         * varasm.c (make_debug_expr_from_rtl): New function.
28764
28765 2010-05-05  Jan Hubicka  <jh@suse.cz>
28766
28767         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
28768         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
28769         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
28770         lto_varpool_encoder_deref, lto_varpool_encoder_size,
28771         lto_varpool_encoder_encode_initializer_p,
28772         lto_set_varpool_encoder_encode_initializer): New functions.
28773         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
28774         call output_varpool.
28775         (input_varpool_node): Do not always set analyzed.
28776         (input_cgraph_1): Return vector of cgraph nodes.
28777         (input_varpool_1): Return vector of varpools.
28778         (input_cgraph): Free the vectors.
28779         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28780         output only initializers needed.
28781         (lto_output): Only call output_cgraph.
28782         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
28783         * lto-section-out.c (lto_new_out_decl_state): Initialize
28784         state->varpool_node_encoder.
28785         * lto-streamer.h (lto_varpool_encoder_d): New.
28786         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
28787         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
28788         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
28789         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
28790         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
28791         Declare.
28792         (output_varpool, input_varpool): Remove declarations.
28793
28794 2010-05-05  Jan Hubicka  <jh@suse.cz>
28795
28796         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
28797         with body can prevail.
28798
28799 2010-05-05  Jan Hubicka  <jh@suse.cz>
28800
28801         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
28802         size.
28803
28804 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28805
28806         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
28807
28808         * gengtype.h (erro_at_line): Constify pos argument.
28809
28810         * gengtype.c: Include hashtab.h.
28811         (enum gc_used): Document GC_MAYBE_POINTED_TO.
28812         (error_at_line): Constify pos argument.
28813         (do_typedef): Initialize p->opt field.
28814         (get_file_gtfilename): Fix comment typo.
28815         (struct walk_type_data): Constify line field.
28816         (get_output_file_for_structure): New function.
28817         (write_local_func_for_structure): Constify orig_s argument.
28818         Use get_output_file_for_structure.
28819         (write_func_for_structure): Use get_output_file_for_structure.
28820         (INDENT): New define.
28821         (dump_pair, dump_type, dump_type_list, dump_typekind)
28822         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
28823         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
28824         functions.
28825         (seen_types): New variable.
28826         (main): New variable do_dump.  Process "-d" command line option.
28827         Call dump_everything if dump requested.
28828
28829 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
28830
28831         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
28832         in a temporary instead of invoking the macro multiple times.
28833         (track_expr_p): Likewise.
28834
28835 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
28836
28837         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
28838         per new semantics.
28839         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
28840         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
28841         conditions for printing notes.
28842         * common.opt (-Wcoverage-mismatch): Allow negative, default to
28843         true, update documentation.
28844         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
28845
28846 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
28847
28848         PR c/43981
28849         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
28850         on dimen.
28851
28852 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
28853
28854         PR target/43799
28855         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
28856         (*sse_prologue_save_insn1): Likewise.
28857         (SSE prologue save splitter): Likewise.
28858
28859 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
28860
28861         * tree.c (free_lang_data_in_one_sizepos): New inline function.
28862         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
28863         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
28864         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
28865         all decls.  Call it on DECL_FIELD_OFFSET of fields.
28866         (find_decls_types_r): Follow DECL_VALUE_EXPR.
28867         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
28868
28869 2010-05-04  Martin Jambor  <mjambor@suse.cz>
28870
28871         * tree-sra.c (build_access_from_expr_1): The first parameter type
28872         changed to simple tree.
28873         (build_access_from_expr): Likewise, gsi parameter was eliminated.
28874         (scan_assign_result): Renamed to assignment_mod_result, enum elements
28875         renamed as well.
28876         (build_accesses_from_assign): Removed all parameters except for a
28877         simple gimple statement.  Now returns a simple bool.
28878         (scan_function): All non-analysis parts moved to separate functions
28879         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
28880         parameters and updated both callers.
28881         (sra_modify_expr): Removed parameter data.
28882         (sra_modify_function_body): New function.
28883         (perform_intra_sra): Call sra_modify_function_body to modify the
28884         function body.
28885         (replace_removed_params_ssa_names): Parameter data changed into
28886         adjustments vector.
28887         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
28888         changed the parameter dont_convert to convert with the opposite
28889         meaning.
28890         (sra_ipa_modify_assign): Parameter data changed into adjustments
28891         vector, return value changed to bool.
28892         (ipa_sra_modify_function_body): New function.
28893         (sra_ipa_reset_debug_stmts): Updated a comment.
28894         (modify_function): Use ipa_sra_modify_function_body to modify function
28895         body.
28896
28897 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
28898
28899         PR middle-end/43671
28900         * alias.c (true_dependence): Handle the same VALUE in x and mem.
28901         (canon_true_dependence): Likewise.
28902         (write_dependence_p): Likewise.
28903
28904 2010-05-04  Jan Hubicka  <jh@suse.cz>
28905
28906         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
28907         * cgraphbuild.c: Include ipa-utils.h
28908         (record_reference_ctx): New struct.
28909         (record_reference): Simplify to work on initializers; not statements.
28910         (mark_address, mark_load, mark_store): New.
28911         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28912         walk PHI nodes too.
28913         (record_references_in_initializer): Update use of record_reference.
28914         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28915         walk PHI nodes too.
28916
28917 2010-05-04  Jan Hubicka  <jh@suse.cz>
28918
28919         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
28920         node will be removed anyway.
28921         (lto_varpool_replace_node): Allow also unanalyzed nodes;
28922         relink aliases of node into prevailing node.
28923         * varpool.c (varpool_remove_node): Remove aliases properly;
28924         when removing node, remove all its aliases too; remove DECL_INITIAL
28925         of removed node; ggc_free the varpool node.
28926
28927 2010-05-04  Richard Guenther  <rguenther@suse.de>
28928
28929         PR tree-optimization/43879
28930         * tree-ssa-structalias.c (alias_get_name): Use
28931         DECL_ASSEMBLER_NAME if available.
28932         (create_function_info_for): Return the varinfo node.
28933         (ipa_pta_execute): Associate same-body aliases and extra names
28934         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
28935
28936 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
28937
28938         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
28939
28940 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
28941
28942         PR bootstrap/43964
28943         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
28944         only if HONOR_REG_ALLOC_ORDER is not defined.
28945
28946 2010-05-04  Richard Guenther  <rguenther@suse.de>
28947
28948         PR tree-optimization/43949
28949         * tree-vrp.c (extract_range_from_binary_expr): Only handle
28950         TRUNC_MOD_EXPR.
28951
28952 2010-04-26  Jason Merrill  <jason@redhat.com>
28953
28954         * c.opt (-fstrict-enums): New.
28955         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
28956
28957 2010-05-03  David Ung  <davidu@mips.com>
28958             James E. Wilson  <wilson@codesourcery.com>
28959
28960         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
28961         emit the trap instruction before the divide for TUNE_74K.
28962
28963 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
28964
28965         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
28966         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
28967         based on the above, for new target hook.
28968
28969         * hooks.c (hook_bool_mode_true): New generic hook.
28970         * hooks.h (hook_bool_mode_true): Add prototype.
28971
28972         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
28973         target hook.
28974         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
28975         target hook, set to hook_bool_mode_false.
28976         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
28977         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
28978         with targetm.small_register_classes_for_mode_p.
28979         (find_reusable_reload): Likewise.
28980         (combine_reloads): Likewise.
28981         * reload1.c (reload_as_needed): Likewise.
28982         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
28983         * ifcvt.c (noce_process_if_block, check_cond_move_block,
28984         dead_or_predicable): Likewise.
28985         * regmove.c (optimize_reg_copy_1): Likewise.
28986         * calls.c (prepare_call_address): Likewise.
28987         (precompute_register_parameters): Likewise.
28988
28989         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
28990         hook definition.
28991         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
28992         implementation of the hook that considers all register classes
28993         small except for SH64.
28994         (sh_override_options): Use the new hook.
28995         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
28996         Add prototype.
28997
28998         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
28999         hook definition.
29000         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
29001         implementation of the hook that considers all register classes
29002         small for THUMB1.
29003         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
29004         Add prototype.
29005
29006         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
29007         hook definition.
29008         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
29009         implementation of the hook that considers all register classes
29010         small for MIPS16.
29011         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
29012         Add prototype.
29013
29014         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
29015         hook definition.
29016         * config/m32c/m32c.h: Likewise.
29017         * config/pdp11/pdp11.h: Likewise.
29018         * config/avr/avr.h: Likewise.
29019         * config/xtensa/xtensa.h: Likewise.
29020         * config/m68hc11/m68hc11.h: Likewise.
29021         * config/mn10300/mn10300.h: Likewise.
29022         * config/mcore/mcore.h: Likewise.
29023         * config/h8300/h8300.h: Likewise.
29024         * config/bfin/bfin.h: Likewise.
29025
29026         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
29027         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
29028
29029 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
29030
29031         * double-int.h (tree_to_double_int): Remove macro.
29032         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
29033         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29034         (tree_to_double_int): New function.
29035         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
29036         Move ...
29037         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29038
29039 2010-05-03  Richard Guenther  <rguenther@suse.de>
29040
29041         PR tree-optimization/43971
29042         * tree-ssa-structalias.c (get_constraint_for_1): Fix
29043         constraints in the !flag_delete_null_pointer_checks case.
29044
29045 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
29046
29047         PR debug/43972
29048         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
29049         result mode matches original rtl mode.
29050
29051 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
29052
29053         PR target/43888
29054         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
29055
29056 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29057
29058         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
29059         when processing flag options.
29060
29061 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29062
29063         * gcov-iov.c (main): Change format string placeholder
29064         from %#08x to 0x%08x.
29065         * genchecksum.c (dosum): Change format string placeholder
29066         from %#02x to 0x%02x.
29067
29068 2010-05-02  Richard Guenther  <rguenther@suse.de>
29069
29070         PR tree-optimization/43879
29071         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
29072
29073 2010-05-02  Bruno Haible  <bruno@clisp.org>
29074
29075         * doc/extend.texi (Function Attributes): Fix a typo.
29076
29077 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29078
29079         Revert:
29080         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
29081         placeholder from 0x%x to %#x.
29082         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29083         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29084         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29085         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29086         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29087         * config/i386/i386.c (ix86_target_string): Ditto.
29088         * config/i386/i386.c (output_pic_addr_const): Ditto.
29089         (print_operand): Ditto.
29090
29091 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29092
29093         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
29094         placeholder from 0x%x to %#x.
29095         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
29096         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
29097         (ASM_OUTPUT_DEBUG_DATA): Ditto.
29098         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
29099         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
29100         * optc-gen.awk: Ditto.
29101         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
29102         (HOST_WIDE_INT_PRINT_HEX): Ditto.
29103         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
29104         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29105
29106 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
29107
29108         * target.h (struct calls): Add function_value_regno_p field.
29109         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
29110         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
29111         * targhooks.c (default_function_value_regno_p): New function.
29112         * targhooks.h (default_function_value_regno_p): Declare function.
29113         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
29114         * builtins.c. (apply_result_size): (Ditto.).
29115         * combine.c. (likely_spilled_retval_p): (Ditto.).
29116         * mode-switching.c. Include 'target.h'.
29117         (create_pre_exit): Use function_value_regno_p hook.
29118         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
29119         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
29120         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
29121
29122         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
29123         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
29124         (ix86_function_value_regno_p): Declare as static, change argument
29125         type to const unsigned int.
29126         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
29127
29128 2010-05-01  Richard Guenther  <rguenther@suse.de>
29129
29130         PR tree-optimization/43949
29131         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
29132         types.
29133         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
29134
29135 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
29136
29137         * rtl.h (CONST_DOUBLE_P): Define.
29138         (rtx_to_double_int): Declare.
29139         * emit-rtl.c (rtx_to_double_int): New function.
29140         * dwarf2out.c (insert_double): New function.
29141         (loc_descriptor, add_const_value_attribute): Clean up, use
29142         rtx_to_double_int and insert_double functions.
29143
29144 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
29145
29146         * doc/extend.texi (Inline): Add missing return keyword to examples.
29147         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
29148         "command-line".
29149
29150 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
29151
29152         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
29153         the variable part of the offset as well.  Use highest_pow2_factor for
29154         all alignment checks.
29155
29156 2010-04-30  Richard Guenther  <rguenther@suse.de>
29157
29158         PR tree-optimization/43879
29159         * tree-ssa-structalias.c (type_could_have_pointers): Functions
29160         can have pointers.
29161
29162 2010-04-30  Jan Hubicka  <jh@suse.cz>
29163
29164         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
29165         varpool.
29166         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
29167
29168 2010-04-30  Jan Hubicka  <jh@suse.cz>
29169
29170         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
29171         New.
29172         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
29173         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
29174         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
29175         cgraph_node_set_needs_ltrans_p): Remove.
29176
29177 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
29178
29179         * sdbout.c: Include vec.h, do not include varray.h.
29180         (deferred_global_decls, sdbout_global_decl,
29181         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
29182         * toplev.c: Do not include varray.h.
29183         (dump_memory_report): Do not dump VARRAY statistics.
29184         * gengtype.c (open_base_file): Ignore varray.h.
29185         * Makefile.in: Update for abovementioned changes.
29186         Remove all traces of varray.c and varray.h.
29187         * varray.c: Remove file.
29188         * varray.h: Remove file.
29189
29190 2010-04-30  Jan Hubicka  <jh@suse.cz>
29191
29192         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
29193         references.
29194
29195 2010-04-30  Jan Hubicka  <jh@suse.cz>
29196
29197         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
29198         needed.
29199
29200 2010-04-30  Richard Guenther  <rguenther@suse.de>
29201
29202         * tree-ssa-structalias.c (get_constraint_for_1): Generate
29203         constraints for CONSTRUCTOR.
29204
29205 2010-04-30  Richard Guenther  <rguenther@suse.de>
29206
29207         PR lto/43946
29208         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
29209         first after all lowering passes.
29210
29211 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
29212
29213         * toplev.c: Include varray.h for statistics dumping.
29214         * tree.h: Do not declare varray_head_tag.
29215         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
29216         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
29217         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
29218         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
29219         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
29220         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
29221         c-common.c, c-common.h, reg-stack.c, basic-block.h,
29222         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
29223         include varray.h.
29224         * Makefile.in: Update for abovementioned changes.
29225
29226 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
29227
29228         PR debug/43942
29229         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
29230
29231 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29232
29233         * config/picochip/picochip.c (picochip_legitimize_address): Define.
29234         Use this function to do machine-specific conversion.
29235         (picochip_legitimize_reload_address): Likewise.
29236         (picochip_legitimate_address_p): Check valid base register only if
29237         strict.
29238         (picochip_check_conditional_copy): Check for modw only if opnd is
29239         register.
29240         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
29241         to call the function in c.
29242         * config/picochip/picochip-protos.h
29243         (picochip_legitimize_reload_address): Define.
29244         * config/picochip/picochip.md (supported_compare1): Define.
29245
29246 2010-04-30  Jan Hubicka  <jh@suse.cz>
29247
29248         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
29249         (cgraph_global_info): Remove inlined.
29250         (LTO_cgraph_tag_names): Remove.
29251         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
29252         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
29253         simplify cgraph tags and document.
29254         (lto_output_node): Use only LTO_cgraph_unavail_node and
29255         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
29256         for_functions_valid, global info, process and output flags.
29257         (input_overwrite_node): Initialize estimated stack size and
29258         estimated growth.  Do not read flags we no longer store.
29259         (input_node): Likewise do not read info no longer stored.
29260         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
29261         flag.
29262
29263 2010-04-30  Richard Guenther  <rguenther@suse.de>
29264
29265         PR tree-optimization/43879
29266         * tree-ssa-structalias.c (get_constraint_for_1): Properly
29267         handle non-zero initializers.
29268
29269 2010-04-30  Richard Guenther  <rguenther@suse.de>
29270
29271         * builtins.c (fold_builtin_1): Delete free (0).
29272
29273 2010-04-29  Jan Hubicka  <jh@suse.cz>
29274
29275         * gengtype.c (open_base_files): Add lto-streamer.h
29276         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
29277         (pass_ipa_cp): GGC collect.
29278         * toplev. (compile_file): Do not output symbols.
29279         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
29280         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
29281         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
29282         * lto-section-in.c: Include ggc.h
29283         (lto_new_in_decl_state): Alloc in GGC.
29284         (lto_delete_in_decl_state): Likewise.
29285         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
29286         Collect.
29287
29288 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
29289
29290         PR target/42895
29291         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
29292         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
29293         (HONOR_REG_ALLOC_ORDER): Describe new macro.
29294         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
29295         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
29296         account only if HONOR_REG_ALLOC_ORDER is not defined.
29297         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
29298         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
29299
29300 2010-04-29  Jon Grant  <04@jguk.org>
29301
29302         * collect2.c (vflag): Change type from int to bool.
29303         (debug): Likewise.
29304         (helpflag): New global bool.
29305         (main): Set vflag and debug with boolean, not integer truth values.
29306         Accept new "--help" option and output usage text if found.
29307         * collect2.h (vflag): Update prototype.
29308         (debug): Likewise.
29309
29310 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
29311
29312         PR bootstrap/43936
29313         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
29314
29315 2010-04-29  Richard Guenther  <rguenther@suse.de>
29316
29317         PR bootstrap/43935
29318         * plugin.h (invoke_plugin_callbacks): Annotate arguments
29319         with ATTRIBUTE_UNUSED.
29320
29321 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
29322
29323         PR target/43921
29324         * config/i386/i386.c (get_some_local_dynamic_name): Replace
29325         INSN_P with NONDEBUG_INSN_P.
29326         (distance_non_agu_define): Likewise.
29327         (distance_agu_use): Likewise.
29328
29329 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
29330
29331         From Dominique d'Humieres  <dominiq@lps.ens.fr>
29332         PR bootstrap/43858
29333         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
29334         test_set.
29335
29336 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
29337
29338         * plugin.h (invoke_plugin_callbacks): New inline function.
29339         * plugin.c (flag_plugin_added): New global flag.
29340         (add_new_plugin): Initialize above flag.
29341         (invoke_plugin_callbacks): Rename to ...
29342         (invoke_plugin_callbacks_full): ... this.
29343
29344 2010-04-28  Jan Hubicka  <jh@suse.cz>
29345
29346         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
29347         (lto_varpool_replace_node): New.
29348         (lto_symtab_resolve_symbols): Resolve varpool nodes.
29349         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
29350         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
29351         * cgraph.h (varpool_node_ptr): New type.
29352         (varpool_node_ptr): New vector.
29353         (varpool_node_set_def): New structure.
29354         (varpool_node_set): New type.
29355         (varpool_node_set): New vector.
29356         (varpool_node_set_element_def): New structure.
29357         (varpool_node_set_element, const_varpool_node_set_element): New types.
29358         (varpool_node_set_iterator): New type.
29359         (varpool_node): Add prev pointers, add used_from_other_partition,
29360         in_other_partition.
29361         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
29362         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
29363         varpool_get_node, varpool_remove_node): Declare.
29364         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
29365         varpool_node_set_size): New inlines.
29366         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
29367         * tree-pass.h (varpool_node_set_def): Forward declare.
29368         (ipa_opt_pass_d): Summary writting takes vnode sets too.
29369         (ipa_write_optimization_summaries): Update prototype.
29370         * ipa-cp.c (ipcp_write_summary): Update.
29371         * ipa-reference.c (ipa_reference_write_summary): Update.
29372         * lto-cgraph.c (lto_output_varpool_node): New static function.
29373         (output_varpool): New function.
29374         (input_varpool_node): New static function.
29375         (input_varpool_1): New function.
29376         (input_cgraph): Input varpool.
29377         * ipa-pure-const.c (pure_const_write_summary): Update.
29378         * lto-streamer-out.c (lto_output): Update, output varpool too.
29379         (write_global_stream): Kill WPA hack.
29380         (produce_asm_for_decls): Update.
29381         (output_alias_pair_p): Handle variables.
29382         (output_unreferenced_globals): Output only needed partition of varpool.
29383         * ipa-inline.c (inline_write_summary): Update.
29384         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
29385         cgraph.
29386         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
29387         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
29388         varpool_node_set_new, varpool_node_set_add,
29389         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
29390         debug_varpool_node_set): New functions.
29391         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
29392         (execute_one_pass): Process new decls too.
29393         (ipa_write_summaries_2): Pass around vsets.
29394         (ipa_write_summaries_1): Likewise.
29395         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
29396         to add.
29397         (ipa_write_optimization_summaries_1): Pass around vsets.
29398         (ipa_write_optimization_summaries): Likewise.
29399         * varpool.c (varpool_get_node): New.
29400         (varpool_node): Update doubly linked lists.
29401         (varpool_remove_node): New.
29402         (dump_varpool_node): More dumping.
29403         (varpool_enqueue_needed_node): Update doubly linked lists.
29404         (decide_is_variable_needed): Kill ltrans hack.
29405         (varpool_finalize_decl): Kill lto hack.
29406         (varpool_assemble_decl): Skip decls in other partitions.
29407         (varpool_assemble_pending_decls): Update doubly linkes lists.
29408         (varpool_empty_needed_queue): Likewise.
29409         (varpool_extra_name_alias): Likewise.
29410         * lto-streamer.c (lto_get_section_name): Add vars section.
29411         * lto-streamer.h (lto_section_type): Update.
29412         (output_varpool, input_varpool): Declare.
29413
29414 2010-04-28  Mike Stump  <mikestump@comcast.net>
29415
29416         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
29417
29418 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
29419
29420         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
29421         record or union type with RECORD_OR_UNION_TYPE_P predicate.
29422         (lto_input_ts_type_tree_pointers): Likewise.
29423         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
29424         (lto_output_ts_type_tree_pointers): Likewise.
29425
29426 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
29427
29428         Uniquization of constants at the Tree level
29429         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
29430         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
29431         bit to the end.
29432         (tree_output_constant_def): Declare.
29433         * gimplify.c (gimplify_init_constructor): When using block copy, first
29434         uniquize the constant constructor on the RHS.
29435         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
29436         DECL_IN_CONSTANT_POOL flag.
29437         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
29438         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
29439         constant pool.
29440         (assemble_variable): Deal with symbols belonging to the tree constant
29441         pool.
29442         (get_constant_section): Add ALIGN parameter and simplify.
29443         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
29444         (assemble_constant_contents): Use the expression of the VAR_DECL.
29445         (output_constant_def_contents): Use the alignment of the VAR_DECL.
29446         (tree_output_constant_def): New global function.
29447         (mark_constant): Use the expression of the VAR_DECL.
29448         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
29449         its expression.
29450         (output_object_block): Likewise and assemble the expression.
29451
29452 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
29453
29454         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
29455         hash_tree, eq_tree): New tree hash table.
29456         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
29457         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
29458         lto_orig_address_remove): Reimplement.
29459
29460 2010-04-28  Xinliang David Li  <davidxl@google.com>
29461
29462         PR c/42643
29463         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
29464         (compute_uninit_opnds_pos): New function.
29465         (is_non_loop_exit_postdominating): New function.
29466         (compute_control_dep_chain): New function.
29467         (find_pdom): New function.
29468         (convert_control_dep_chain_into_preds): New function.
29469         (find_predicates): New function.
29470         (find_control_equiv_block): New function.
29471         (collect_phi_def_edges): New function.
29472         (find_def_preds): New function.
29473         (find_dom): New function.
29474         (dump_predicates): New function.
29475         (get_cmp_code): New function.
29476         (is_value_included_in): New function.
29477         (find_matching_predicate_in_rest_chains): New function.
29478         (use_pred_not_overlap_with_undef_path_pred): New function.
29479         (is_use_properly_guarded): New function.
29480         (normalize_cond_1): New function.
29481         (is_and_or_or): New function.
29482         (normalize_cond): New function.
29483         (is_gcond_subset_of): New function.
29484         (is_subset_of_any): New function.
29485         (is_or_set_subset_of): New function.
29486         (is_and_set_subset_of): New function.
29487         (is_norm_cond_subset_of): New function.
29488         (is_pred_expr_subset_of): New function.
29489         (is_pred_chain_subset_of): New function.
29490         (is_included_in): New function.
29491         (is_superset_of): New function.
29492         (find_uninit_use): New function.
29493         (warn_uninitialized_phi): New function.
29494         (compute_possibly_undefined_names): New function.
29495         (ssa_undefined_value_p): New function.
29496         (execute_late_warn_uninitialized): New function.
29497         * tree-ssa.c (ssa_undefined_value_p): Removed.
29498         (warn_uninit): Changed to extern.
29499         (warn_uninitialized_phi): Removed.
29500         (warn_uninitialized_vars): Changed to extern.
29501         (execute_late_warn_uninitialized): Removed
29502         * tree-flow.h: Add new prototypes.
29503         * timevar.def: Add new time variable.
29504         * Makefile.in: Add new build file.
29505
29506 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
29507
29508         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
29509         type if available.
29510
29511 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29512
29513         PR target/22224
29514         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
29515
29516 2010-04-28  Martin Jambor  <mjambor@suse.cz>
29517
29518         * cgraph.h (struct cgraph_node): New field indirect_calls.
29519         (struct cgraph_indirect_call_info): New type.
29520         (struct cgraph_edge): Removed field indirect_call. New fields
29521         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
29522         (cgraph_create_indirect_edge): Declare.
29523         (cgraph_make_edge_direct): Likewise.
29524         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
29525         * ipa-prop.h (struct ipa_param_call_note): Removed.
29526         (struct ipa_node_params): Removed field param_calls.
29527         (ipa_create_all_structures_for_iinln): Declare.
29528         * cgraph.c: Described indirect edges and uids in initial comment.
29529         (cgraph_add_edge_to_call_site_hash): New function.
29530         (cgraph_edge): Search also among the indirect edges, use
29531         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
29532         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
29533         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
29534         site hash.
29535         (initialize_inline_failed): Assign a reason to indirect edges.
29536         (cgraph_create_edge_1): New function.
29537         (cgraph_create_edge): Moved some functionality to
29538         cgraph_create_edge_1.
29539         (cgraph_create_indirect_edge): New function.
29540         (cgraph_edge_remove_callee): Add an assert checking for
29541         non-indirectness.
29542         (cgraph_edge_remove_caller): Special-case indirect edges.
29543         (cgraph_remove_edge): Likewise.
29544         (cgraph_set_edge_callee): New function.
29545         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
29546         (cgraph_make_edge_direct): New function.
29547         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
29548         the declaration of the call statement matches.
29549         (cgraph_node_remove_callees): Special-case indirect edges.
29550         (cgraph_clone_edge): Likewise.
29551         (cgraph_clone_node): Clone also the indirect edges.
29552         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
29553         indirect_call, dump count of indirect_calls edges.
29554         * ipa-prop.c (iinlining_processed_edges): New variable.
29555         (ipa_note_param_call): Create indirect edges instead of
29556         creating notes.  New parameter node.
29557         (ipa_analyze_call_uses): New parameter node, pass it on to
29558         ipa_note_param_call.
29559         (ipa_analyze_stmt_uses): Likewise.
29560         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
29561         (print_edge_addition_message): Work on edges rather than on notes.
29562         (update_call_notes_after_inlining): Likewise, renamed to
29563         update_indirect_edges_after_inlining.
29564         (ipa_create_all_structures_for_iinln): New function.
29565         (ipa_free_node_params_substructures): Do not free notes.
29566         (ipa_edge_duplication_hook): Propagate bits within
29567         iinlining_processed_edges bitmap.
29568         (ipa_node_duplication_hook): Do not duplicate notes.
29569         (free_all_ipa_structures_after_ipa_cp): Renamed to
29570         ipa_free_all_structures_after_ipa_cp.
29571         (free_all_ipa_structures_after_iinln): Renamed to
29572         ipa_free_all_structures_after_iinln.
29573         (ipa_write_param_call_note): Removed.
29574         (ipa_read_param_call_note): Removed.
29575         (ipa_write_indirect_edge_info): New function.
29576         (ipa_read_indirect_edge_info): Likewise.
29577         (ipa_write_node_info): Do not stream notes, do stream information
29578         in indirect edges.
29579         (ipa_read_node_info): Likewise.
29580         (lto_ipa_fixup_call_notes): Removed.
29581         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
29582         * ipa-inline.c (pass_ipa_inline): Likewise.
29583         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
29584         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
29585         * tree-inline.c (copy_bb): Removed an unnecessary double check for
29586         is_gimple_call.
29587         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
29588         edges.
29589         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
29590         (output_cgraph): Stream also indirect edges.
29591         (lto_output_edge): Added capability to stream indirect edges.
29592         (input_edge): Likewise.
29593         (input_cgraph_1): Likewise.
29594         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
29595         of indirect edges.
29596
29597 2010-04-28  Richard Guenther  <rguenther@suse.de>
29598
29599         PR tree-optimization/43879
29600         PR tree-optimization/43909
29601         * tree-ssa-structalias.c (struct variable_info): Add
29602         only_restrict_pointers flag.
29603         (new_var_info): Initialize it.  Increment stats.total_vars here.
29604         (create_function_info_for): Do not increment stats.total_vars here.
29605         (get_function_part_constraint): Fix build with C++.
29606         (insert_into_field_list): Remove.
29607         (push_fields_onto_fieldstack): Properly merge fields.
29608         (create_variable_info_for): Split and simplify.
29609         (create_variable_info_for_1): New piece.
29610         (intra_create_variable_infos): Properly make restrict constraints
29611         from parameters.
29612
29613 2010-04-28  Richard Guenther  <rguenther@suse.de>
29614
29615         PR c++/43880
29616         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
29617
29618 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29619             Jan Hubicka  <hubicka@ucw.cz>
29620
29621         * doc/invoke.texi (-Wsuggest-attribute=const,
29622         -Wsuggest-attribute=pure): Document.
29623         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
29624         (function_always_visible_to_compiler_p,
29625         suggest_attribute, warn_function_pure, warn_function_const):
29626         New functions.
29627         (check_call): Improve debug info.
29628         (analyze_function): Do not check availability.
29629         (add_new_function): Check availability.
29630         (propagate): Output warnings.
29631         (skip_function_for_local_pure_const): New function.
29632         (local_pure_const): Use it; output warnings.
29633         * common.opt (Wsuggest-attribute=const,
29634         Wsuggest-attribute=pure): New.
29635
29636 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
29637
29638         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
29639         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
29640         or DW_CFA_def_cfa_offset{,_sf}.
29641
29642 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29643
29644         * tree.h: Fix truncated long macros.
29645
29646 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
29647
29648         * collect2.c (TARGET_64BIT): Redefine to target's default.
29649         * tlink.c: Likewise.
29650         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
29651         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
29652         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
29653         for underscoring __USER_LABEL_PREFIX__.
29654         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
29655         (SUB_LINK_ENTRY32): New.
29656         (SUB_LINK_ENTRY64): New.
29657         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
29658         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
29659         (SUB_LINK_ENTRY64): New.
29660         (SUB_LINK_ENTRY): New.
29661         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
29662         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
29663         x64 target is choosen.
29664         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
29665         * configure: Regenerated.
29666         * configure.ac (leading-mingw64-underscores): Option added.
29667
29668 2010-04-27  Jan Hubicka  <jh@suse.cz>
29669
29670         * doc/invoke.texi (-fipa-profile): Document.
29671         * opts.c (decode_options): Enable ipa-profile at -O1.
29672         * timevar.def (TV_IPA_PROFILE): Define.
29673         * common.opt (fipa-profile): Add.
29674         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
29675         flag for clones.
29676         (cgraph_propagate_frequency): Handle only local ones.
29677         * tree-pass.h (pass_ipa_profile): Declare.
29678         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
29679         (pass_ipa_profile): Use TV_IPA_PROFILE.
29680         * ipa.c (ipa_profile): New function.
29681         (gate_ipa_profile): Likewise.
29682         (pass_ipa_profile): New global variable.
29683         * passes.c (pass_ipa_profile): New.
29684
29685 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
29686
29687         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
29688
29689 2010-04-27  Martin Jambor  <mjambor@suse.cz>
29690
29691         PR middle-end/43812
29692         * ipa.c (dissolve_same_comdat_group_list): New function.
29693         (function_and_variable_visibility): Call
29694         dissolve_same_comdat_group_list when comdat group contains external or
29695         newly local nodes.
29696         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
29697         lists are circular and that they contain only DECL_ONE_ONLY nodes.
29698
29699 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29700
29701         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
29702         (const_hash_1) <VECTOR_CST>: New case.
29703         (compare_constant) <VECTOR_CST>: Likewise.
29704         <ADDR_EXPR>: Deal with LABEL_REFs.
29705         (copy_constant) <VECTOR_CST>: New case.
29706
29707 2010-04-27  Jan Hubicka  <jh@suse.cz>
29708
29709         * cgraph.c (cgraph_propagate_frequency): New function.
29710         * cgraph.h (cgraph_propagate_frequency): Declare.
29711         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
29712         cgraph_propagate_frequency.
29713
29714 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
29715
29716         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
29717
29718 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
29719
29720         PR target/40657
29721         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
29722         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
29723         here to determine which regs to push and how much stack to reserve.
29724
29725 2010-04-27  Jie Zhang  <jie@codesourcery.com>
29726
29727         * doc/gimple.texi (gimple_statement_with_ops): Remove
29728         addresses_taken field.
29729         (gimple_statement_with_memory_ops): Likewise.
29730
29731 2010-04-27  Jan Hubicka  <jh@suse.cz>
29732
29733         * tree-inline.c (eni_inlining_weights): Remove.
29734         (estimate_num_insns): Special case more builtins.
29735
29736 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
29737
29738         PR c/32207
29739         * c-typeck.c (build_binary_op): Move forward check for comparison
29740         pointer with null pointer constant and adjust the diagnostic message.
29741
29742 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
29743
29744         PR lto/42776
29745         * configure.ac (gcc_cv_as_section_has_align): Set if installed
29746         binutils supports extended .section directive needed by LTO, or
29747         warn if older binutils found.
29748         (LTO_BINARY_READER): New AC_SUBST'd variable.
29749         (LTO_USE_LIBELF): Likewise.
29750         * config.gcc (lto_binary_reader): New target-specific configure
29751         variable.
29752         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
29753         (LTO_USE_LIBELF): Likewise.
29754         * configure: Regenerate.
29755
29756         * collect2.c (is_elf): Rename from this ...
29757         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
29758          object files in addition to ELF-formatted ones.
29759         (scan_prog_file): Caller updated.  Also allow for LTO info marker
29760         symbol to be prefixed or not by an extra underscore.
29761
29762         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
29763         * config/i386/winnt.c: Also #include lto-streamer.h
29764         (i386_pe_asm_named_section): Specify 1-byte section alignment for
29765         LTO named sections.
29766         (i386_pe_asm_output_aligned_decl_common): Add comment.
29767         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
29768
29769 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
29770
29771         PR target/43889
29772         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
29773         Add missing earlyclobber for second alternative.
29774
29775 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
29776
29777         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
29778         bits for artificial defs at the top of the block.
29779         * fwprop.c (single_def_use_enter_block): Don't call it.
29780
29781 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
29782
29783         PR 43715
29784         * configure.ac: Use "$gcc_cv_nm -g" on darwin
29785         instead of "$gcc_cv_objdump -T".
29786         Use "-undefined dynamic_lookup" on darwin.
29787         * configure: Regenerate.
29788
29789 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
29790
29791         PR c/43893
29792         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
29793
29794 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
29795
29796         * c-parser.c (struct c_token): Move location field up.
29797         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
29798         (struct c_declspecs): Convert typespec_word, storage_class, and
29799         default_int_p into bitfields.
29800         (struct c_declarator): Move loc field up.
29801
29802 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
29803
29804         * cfgloop.h (struct loop): Move can_be_parallel field up.
29805         * ipa-prop.h (struct ip_node_params): Move bitfields up.
29806         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
29807         down.
29808         (struct iv_cand): Convert pos field into a bitfield.
29809         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
29810         field up.
29811         (struct _stmt_vec_info): Shuffle fields for better packing.
29812
29813 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
29814
29815         * varasm.c (IN_NAMED_SECTION): Remove guard.
29816         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
29817         (IN_NAMED_SECTION_P): ...this.
29818         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
29819         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
29820
29821 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
29822
29823         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
29824         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
29825         of shadowing it.  Fix comments.
29826
29827 2010-04-26  Jan Hubicka  <jh@suse.cz>
29828
29829         * cgraph.c (cgraph_create_node): Set node frequency to normal.
29830         (cgraph_clone_node): Copy function frequency.
29831         * cgraph.h (node_frequency): New enum
29832         (struct cgraph_node): Add.
29833         * final.c (rest_of_clean_state): Update.
29834         * lto-cgraph.c (lto_output_node): Output node frequency.
29835         (input_overwrite_node): Input node frequency.
29836         * tre-ssa-loop-ivopts (computation_cost): Update.
29837         * lto-streamer-out.c (output_function): Do not output function
29838         frequency.
29839         * predict.c (maybe_hot_frequency_p): Update and handle functions
29840         executed once.
29841         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
29842         attribute lookup.
29843         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
29844         (compute_function_frequency): Set noreturn functions to be executed
29845         once.
29846         (choose_function_section): Update.
29847         * lto-streamer-in.c (input_function): Do not input function frequency.
29848         * function.c (allocate_struct_function): Do not initialize function
29849         frequency.
29850         * function.h (function_frequency): Remove.
29851         (struct function): Remove function frequency.
29852         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
29853         (try_update): Update.
29854         * tree-inline.c (initialize_cfun): Do not update function frequency.
29855         * passes.c (pass_init_dump_file): Update.
29856         * i386.c (ix86_compute_frame_layout): Update.
29857         (ix86_pad_returns): Update.
29858
29859 2010-04-26  Jie Zhang  <jie@codesourcery.com>
29860
29861         PR tree-optimization/43833
29862         * tree-vrp.c (range_int_cst_p): New.
29863         (range_int_cst_singleton_p): New.
29864         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
29865         when both operands are constants.  Use range_int_cst_p in
29866         BIT_IOR_EXPR case.
29867
29868 2010-04-26  Jan Hubicka  <jh@suse.cz>
29869
29870         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
29871
29872 2010-04-26  Richard Guenther  <rguenther@suse.de>
29873
29874         PR lto/43080
29875         * gimple.c (gimple_decl_printable_name): Deal gracefully
29876         with a NULL DECL_NAME.
29877
29878 2010-04-26  Richard Guenther  <rguenther@suse.de>
29879
29880         PR lto/42425
29881         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
29882         if emitting debug information and it is either a function
29883         or a namespace decl.
29884
29885 2010-04-26  Ira Rosen  <irar@il.ibm.com>
29886
29887         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
29888         determine if the statement is vectorizable, and a macro to access it.
29889         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29890         Skip statements that can't be vectorized. If the analysis fails,
29891         mark the statement as unvectorizable if vectorizing basic block.
29892         (vect_compute_data_refs_alignment): Likewise.
29893         (vect_verify_datarefs_alignment): Skip statements marked as
29894         unvectorizable. Add print.
29895         (vect_analyze_group_access): Skip statements that can't be
29896         vectorized. If the analysis fails, mark the statement as
29897         unvectorizable if vectorizing basic block.
29898         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
29899         * tree-vect-stmts.c (vectorizable_store): Fix the number of
29900         generated stmts for SLP.
29901         (new_stmt_vec_info): Initialize the new field.
29902         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
29903         statements marked as unvectorizable.
29904
29905 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
29906
29907         * c-common.c (flag_isoc1x): New.
29908         (flag_isoc99): Update comment.
29909         * c-common.h (flag_isoc1x): New.
29910         (flag_isoc99): Update comment.
29911         * c-cppbuiltin.c (builtin_define_float_constants): Also define
29912         __<type>_DECIMAL_DIG__.
29913         * c-opts.c (set_std_c1x): New.
29914         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
29915         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
29916         * c.opt (-std=c1x, -std=gnu1x): New options.
29917         * doc/cpp.texi: Mention -std=c1x.
29918         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
29919         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
29920         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
29921         * doc/standards.texi: Mention C1X.
29922         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
29923         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
29924         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
29925         Define for C1X.
29926
29927 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
29928
29929         * config/i386/gmon-sol2.c (_mcleanup): Change format string
29930         placeholder from 0x%x to %#x.
29931         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29932         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29933         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29934         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29935         * config/i386/i386.c (ix86_target_string): Ditto.
29936         (output_pic_addr_const): Ditto.
29937         (print_operand): Ditto.
29938
29939 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
29940
29941         * combine.c (find_split_point): Add third argument.  Use it
29942         to find nested multiply-accumulate instructions.  Adjust calls.
29943         (try_combine): Adjust call to find_split_point.
29944
29945 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
29946
29947         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
29948
29949 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
29950
29951         PR tree-optimization/41442
29952         * fold-const.c (merge_truthop_with_opposite_arm): New function.
29953         (fold_binary_loc): Call it.
29954
29955 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29956
29957         * toplev.c (general_init): Set default for fdiagnostics-show-option.
29958         * opts.c (common_handle_option): Allow disabling it.
29959         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
29960
29961 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
29962
29963         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
29964         between modes if both types are integral.
29965
29966 2010-04-23  Richard Guenther  <rguenther@suse.de>
29967
29968         PR tree-optimization/43572
29969         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
29970
29971 2010-04-23  Richard Guenther  <rguenther@suse.de>
29972
29973         PR lto/43455
29974         * tree-inline.c (tree_can_inline_p): Also check compatibility
29975         of return types.
29976
29977 2010-04-23  Martin Jambor  <mjambor@suse.cz>
29978
29979         PR tree-optimization/43846
29980         * tree-sra.c (struct access): New flag grp_assignment_read.
29981         (build_accesses_from_assign): Set grp_assignment_read.
29982         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
29983         (enum mark_read_status): New type.
29984         (analyze_access_subtree): Propagate grp_assignment_read, create
29985         accesses also if both direct_read and root->grp_assignment_read.
29986
29987 2010-04-23  Martin Jambor  <mjambor@suse.cz>
29988
29989         PR middle-end/43835
29990         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
29991         function does not have type attributes.
29992
29993 2010-04-23  Richard Guenther  <rguenther@suse.de>
29994
29995         PR lto/42653
29996         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
29997         of FUNCTION_DECLs.
29998
29999 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30000
30001         * sese.h (create_if_region_on_edge): Remove.
30002
30003         * sese.c (create_if_region_on_edge): Make static.
30004
30005         * tree-inline.c: Do not include ggc.h.
30006
30007         * expr.c: Do not include ggc.h.
30008
30009         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
30010         dependencies.
30011
30012 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
30013
30014         PR target/43744
30015         * config/sh/sh.c (find_barrier): Don't emit a constant pool
30016         in the middle of insns for casesi_worker_2.
30017
30018 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
30019
30020         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
30021
30022 2010-04-22  Ira Rosen  <irar@il.ibm.com>
30023
30024         PR tree-optimization/43842
30025         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
30026         loop unrolling in update of exit phis. Fix comment.
30027         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
30028         least two reduction statements in the loop before starting SLP
30029         analysis.
30030
30031 2010-04-22  Nick Clifton  <nickc@redhat.com>
30032
30033         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
30034
30035 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
30036
30037         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
30038         to simplify a + ~a.
30039
30040 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30041
30042         * tree-parloops.c (loop_parallel_p): New argument
30043         parloop_obstack.  Pass it down.
30044         (parallelize_loops): New variable parloop_obstack.  Initialize it,
30045         pass it down, free it.
30046
30047         * tree-loop-linear.c (linear_transform_loops): Pass down
30048         lambda_obstack.
30049
30050         * tree-data-ref.h (lambda_compute_access_matrices): New argument
30051         of type struct obstack *.
30052
30053         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
30054         scratch_obstack.  Initialize it, pass down, free it.
30055
30056         * lambda.h (lambda_loop_new): Remove.
30057         (lambda_matrix_new, lambda_matrix_inverse)
30058         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
30059         argument of type struct obstack *.
30060
30061         * lambda-trans.c (lambda_trans_matrix_new): New argument
30062         lambda_obstack.  Pass it down, use obstack allocation for ret.
30063         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
30064         it down.
30065
30066         * lambda-mat.c (lambda_matrix_get_column)
30067         (lambda_matrix_project_to_null): Remove.
30068         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
30069         allocation for mat.
30070         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
30071         lambda_obstack.
30072
30073         * lambda-code.c (lambda_loop_new): New function.
30074         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
30075         (lambda_compute_auxillary_space, lambda_compute_target_space)
30076         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
30077         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
30078         (build_access_matrix): New argument lambda_obstack.  Use obstack
30079         allocation for am.
30080         (lambda_compute_step_signs, lambda_compute_access_matrices): New
30081         argument lambda_obstack.  Pass it down.
30082
30083 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30084
30085         * optabs.h (expand_widening_mult): Declare.
30086
30087 2010-04-22  Richard Guenther  <rguenther@suse.de>
30088
30089         PR tree-optimization/43845
30090         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
30091         lookup the CALL_EXPR function and arguments.
30092
30093 2010-04-22  Nick Clifton  <nickc@redhat.com>
30094
30095         * config/stormy16/stormy16.c
30096         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
30097         * config/stormy16/stormy16.h: Tidy up formatting.
30098         (DONT_USE_BUILTIN_SETJMP): Remove definition.
30099         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
30100         (ineqbranchsi): Delete pattern.
30101         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
30102         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
30103         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
30104         stormy16-lib2-ucmpsi2.c.
30105
30106 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30107
30108         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
30109         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
30110         extra set merge_set_noclobber, and use it to relax the final test
30111         slightly.
30112         * df.h (df_simulate_find_noclobber_defs): Declare.
30113         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
30114         conditional defs.
30115         (df_simulate_find_noclobber_defs): New function.
30116
30117 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
30118
30119         * config/i386/i386.md: Use {} around multi-line preparation statements.
30120
30121 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30122
30123         * c-tree.h (push_init_level, pop_init_level, set_init_index)
30124         (process_init_element): New argument of type struct obstack *.
30125
30126         * c-typeck.c (push_init_level, pop_init_level, set_designator)
30127         (set_init_index, set_init_label, set_nonincremental_init)
30128         (set_nonincremental_init_from_string, find_init_member)
30129         (output_init_element, output_pending_init_elements)
30130         (process_init_element): New argument braced_init_obstack.  Pass it
30131         down.
30132         (push_range_stack, add_pending_init): New argument
30133         braced_init_obstack.  Use obstack allocation.
30134
30135         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
30136         braced_init_obstack.  Pass it down.
30137         (c_parser_braced_init): New variables ret, braced_init_obstack.
30138         Initialize obstack, pass it down and finally free it.
30139
30140 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30141
30142         PR middle-end/29274
30143         * tree-pass.h (pass_optimize_widening_mul): Declare.
30144         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
30145         gate_optimize_widening_mul): New static functions.
30146         (pass_optimize_widening_mul): New.
30147         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
30148         <case MULT_EXPR>: Remove support for widening multiplies.
30149         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
30150         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
30151         simplify_gen_unary rather than directly building extensions.
30152         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
30153         WIDEN_MULT_EXPR.
30154         * expmed.c (expand_widening_mult): New function.
30155         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
30156
30157 2010-04-21  Jan Hubicka  <jh@suse.cz>
30158
30159         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
30160         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
30161         * lto-wpa-fixup.c: Remove.
30162         * Makefile.in (lto-wpa-fixup.o): Remove.
30163         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
30164         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
30165         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
30166
30167 2010-04-21  Jan Hubicka  <jh@suse.cz>
30168
30169         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
30170         add write_optimization_summary, read_optimization_summary.
30171         (ipa_write_summaries_of_cgraph_node_set): Remove.
30172         (ipa_write_optimization_summaries): Declare.
30173         (ipa_read_optimization_summaries): Declare.
30174         * ipa-cp.c (pass_ipa_cp): Update.
30175         * ipa-reference.c (pass_ipa_reference): Update.
30176         * ipa-pure-const.c (pass_ipa_pure_const): Update.
30177         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
30178         Update.
30179         * ipa-inline.c (pass_ipa_inline): Update.
30180         * ipa.c (pass_ipa_whole_program): Update.
30181         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
30182         * passes.c (ipa_write_summaries_1): Do not test wpa.
30183         (ipa_write_optimization_summaries_1): New.
30184         (ipa_write_optimization_summaries): New.
30185         (ipa_read_summaries): Do not test ltrans.
30186         (ipa_read_optimization_summaries_1): New.
30187         (ipa_read_optimization_summaries): New.
30188
30189 2010-04-21  Jan Hubicka  <jh@suse.cz>
30190
30191         * lto-cgraph.c (lto_output_node): Do not output comdat groups
30192         for boundary nodes.
30193         (output_cgraph): Do not arrange comdat groups for boundary nodes.
30194
30195 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
30196
30197         PR debug/40040
30198         * dwarf2out.c (add_name_and_src_coords_attributes): Add
30199         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
30200
30201 2010-04-21  Jan Hubicka  <jh@suse.cz>
30202
30203         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
30204
30205 2010-04-21  Jan Hubicka  <jh@suse.cz>
30206
30207         * varpool.c (decide_is_variable_needed): Variable is always needed
30208         during ltrans.
30209
30210 2010-04-21  Jan Hubicka  <jh@suse.cz>
30211
30212         * opts.c (decode_options): Enable pure-const pass for whopr.
30213
30214 2010-04-21  Jan Hubicka  <jh@suse.cz>
30215
30216         * cgraph.c (dump_cgraph_node): Dump also assembler name.
30217         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
30218         at WPA dumping.
30219         (cgraph_decide_inlining): Do not expect callee to be removed in all
30220         cases.
30221
30222 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
30223
30224         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
30225
30226 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
30227
30228         * config/i386/i386.md (x86_shrd): Add athlon_decode and
30229         amdfam10_decode attributes.
30230
30231 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
30232
30233         PR middle-end/43570
30234         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
30235         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
30236         (lower_copyprivate_clauses): Use private var in outer
30237         context instead of original var.  Make sure the types
30238         are correct for VLAs.
30239
30240 2010-04-21  Richard Guenther  <rguenther@suse.de>
30241
30242         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
30243         to non-pointer objects.
30244
30245 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
30246
30247         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
30248         last chain entry if it starts with the still current label.
30249         (add_location_or_const_value_attribute): Check that
30250         loc_list->first->next is NULL instead of comparing ->first with ->last.
30251         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
30252         to add_var_loc_to_decl.
30253
30254         * dwarf2out.c (output_call_frame_info): For dw_cie_version
30255         >= 4 add also address size and segment size fields into CIE header.
30256
30257         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
30258         long as address size is the same as sizeof (void *) and
30259         segment size is 0.
30260         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
30261         address size or segment size is unexpected, return DW_EH_PE_omit.
30262         (classify_object_over_fdes): If get_cie_encoding returned
30263         DW_EH_PE_omit, return -1.
30264         (init_object): If classify_object_over_fdes returned -1,
30265         pretend there were no FDEs at all.
30266
30267 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
30268
30269         * config/i386/i386.md (bswap<mode>2): Macroize expander from
30270         bswap{si,di}2 using SWI48 mode iterator.
30271         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
30272         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
30273         set modrm attribute of bswap insn to 0 and remove length attribute.
30274         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
30275         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
30276         set mode attribute to <MODE> and remove length attribute.
30277
30278 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
30279
30280         PR rtl-optimization/43520
30281         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
30282         zero available registers.
30283
30284 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30285
30286         * builtins.c (fold_builtin_cproj): Fold more cases.
30287
30288 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
30289
30290         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
30291         (fold_builtin_1): Fold builtin cproj.
30292         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
30293         Use ATTR_CONST_NOTHROW_LIST.
30294
30295 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
30296
30297         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
30298         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
30299         ffsi2_no_cmove for !TARGET_CMOVE.
30300         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
30301         (ffssi2): Remove expander.
30302         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
30303         mode iterator.
30304         (ctz<mode>2): Ditto from ctz{si,di}2.
30305         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
30306         mode iterator.
30307         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
30308         mode iterator.
30309
30310 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
30311
30312         * dwarf2out.c (AT_linkage_name): Define.
30313         (clone_as_declaration): Handle DW_AT_linkage_name.
30314         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
30315         of DW_AT_MIPS_linkage_name.
30316         (move_linkage_attr): Likewise.
30317         (dwarf2out_finish): Likewise.
30318
30319 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
30320
30321         PR middle-end/41952
30322         * fold-const.c (fold_comparison): New folding rule.
30323
30324 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
30325
30326         * double-int.h (double_int_setbit): Declare.
30327         * double-int.c (double_int_setbit): New function.
30328         * rtl.h (immed_double_int_const): Declare.
30329         * emit-rtl.c (immed_double_int_const): New function.
30330         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
30331         and immed_double_int_const functions.
30332         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
30333         expand_copysign_bit): (Ditto.).
30334         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
30335         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
30336         * dojump.c (prefer_and_bit_test): (Ditto.).
30337         * expr.c (convert_modes, reduce_to_bit_field_precision,
30338         const_vector_from_tree): (Ditto.).
30339         * expmed.c (mask_rtx, lshift_value): (Ditto.).
30340
30341 2010-04-20  Jan Hubicka  <jh@suse.cz>
30342
30343         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
30344         (dump_cgraph_node): Dump new flags.
30345         * cgraph.h (struct cgraph_node): Add flags
30346         reachable_from_other_partition and in_other_partition.
30347         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
30348         other partition can not be removed.
30349         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
30350         the other partition must be output; silence sanity checking on
30351         leaking functions bodies from other paritition.
30352         * lto-cgraph.c (reachable_from_other_partition_p): New function.
30353         (lto_output_node): Output new flags; do not sanity check that inline
30354         clones are output; drop lto_forced_extern_inline_p code; do not mock
30355         visibility flags at partition boundaries.
30356         (add_node_to): New function.
30357         (output_cgraph): Use it to sort functions so masters appear before
30358         clones.
30359         (input_overwrite_node): Input new flags.
30360         * passes.c (ipa_write_summaries): Do not call
30361         lto_new_extern_inline_states.
30362         * lto-section-out.c (forced_extern_inline,
30363         lto_new_extern_inline_states lto_delete_extern_inline_states,
30364         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
30365         * lto-streamer.h (lto_new_extern_inline_states,
30366         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
30367         lto_forced_extern_inline_p): Kill.
30368
30369 2010-04-20  Richard Guenther  <rguenther@suse.de>
30370
30371         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
30372         from vars that can have pointers.
30373         (process_constraint): Dump useless constraints.
30374
30375 2010-04-20  Richard Guenther  <rguenther@suse.de>
30376
30377         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
30378         (dump_sa_points_to_info): Remove asserts.
30379         (init_base_vars): nothing_id isn't an escape point nor does it
30380         have pointers.
30381
30382 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
30383
30384         * tree.h (TYPE_REF_IS_RVALUE): Define.
30385         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
30386         should_move_die_to_comdat, prune_unused_types_walk): Handle
30387         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
30388         (modified_type_die, gen_reference_type_die): Emit
30389         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
30390         if TYPE_REF_IS_RVALUE and -gdwarf-4.
30391
30392 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30393
30394         PR target/43635
30395         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
30396         calls for -fpic -m31 if they have been sibcall optimized.
30397
30398 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
30399
30400         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
30401         ar.lc fixed and call-used.
30402
30403         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
30404
30405 2010-04-19  Jan Hubicka  <jh@suse.cz>
30406
30407         * opts.c (decode_options): Disable whpr incompatible passes.
30408         * lto/lto.c (lto_1_to_1_map): Skip clones.
30409         (read_cgraph_and_symbols): Do not mark everything as needed.
30410         (do_whole_program_analysis): Do map only after optimizing;
30411         set proper cgraph_state; use passmanager.
30412
30413 2010-04-19  DJ Delorie  <dj@redhat.com>
30414
30415         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
30416         POINTER_PLUS_EXPR and fix them.
30417
30418 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
30419
30420         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
30421         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
30422         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
30423         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
30424         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
30425         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
30426         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
30427         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
30428         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
30429         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
30430         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
30431
30432 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
30433
30434         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
30435         (check_cond_move_block): Likewise.
30436         (cond_move_process_if_block): Likewise.
30437         (noce_find_if_block): Improve formatting.
30438         (find_if_header): Pass 0 to memset and tweak conditions.
30439         (cond_exec_find_if_block): Fix long lines and tweak conditions.
30440
30441 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
30442
30443         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
30444         for -gdwarf-4.
30445
30446         PR middle-end/43337
30447         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
30448         with non-local decl doesn't need chain.
30449
30450 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
30451
30452         * ira-color.c (allocno_reload_assign): Avoid accumulating
30453         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
30454
30455 2010-04-19  Martin Jambor  <mjambor@suse.cz>
30456
30457         * gimple.h (create_tmp_reg): Declare.
30458         * gimplify.c (create_tmp_reg): New function.
30459         (gimplify_return_expr): Use create_tmp_reg.
30460         (gimplify_omp_atomic): Likewise.
30461         (gimple_regimplify_operands): Likewise.
30462         * tree-dfa.c (make_rename_temp): Likewise.
30463         * tree-predcom.c (predcom_tmp_var): Likewise.
30464         (reassociate_to_the_same_stmt): Likewise.
30465         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
30466         (get_replaced_param_substitute): Likewise.
30467         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
30468         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
30469         * tree-ssa-pre.c (get_representative_for): Likewise.
30470         (create_expression_by_pieces): Likewise.
30471         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
30472         (create_tailcall_accumulator): Likewise.
30473
30474 2010-04-19  Martin Jambor  <mjambor@suse.cz>
30475
30476         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
30477         new_stmt.
30478         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
30479
30480 2010-04-19  Richard Guenther  <rguenther@suse.de>
30481
30482         PR tree-optimization/43796
30483         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
30484         from SCEV in the lattice.
30485         (vrp_visit_phi_node): Dump change.
30486
30487 2010-04-19  Richard Guenther  <rguenther@suse.de>
30488
30489         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
30490         * configure: Re-generated.
30491
30492 2010-04-19  Richard Guenther  <rguenther@suse.de>
30493
30494         PR tree-optimization/43783
30495         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
30496         constant ARRAY_REF operands two and three if possible.
30497
30498 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
30499
30500         PR target/43766
30501         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
30502
30503 2010-04-19  Jie Zhang  <jie@codesourcery.com>
30504
30505         PR target/43662
30506         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
30507
30508 2010-04-19  Ira Rosen  <irar@il.ibm.com>
30509
30510         PR tree-optimization/37027
30511         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
30512         and macro to access it.
30513         (vectorizable_reduction): Add argument.
30514         (vect_get_slp_defs): Likewise.
30515         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
30516         statements for possible use in SLP.
30517         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
30518         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
30519         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
30520         add new argument.
30521         (vectorizable_reduction): Likewise.
30522         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
30523         vect_get_slp_defs.
30524         (vectorizable_type_demotion, vectorizable_type_promotion,
30525         vectorizable_store): Likewise.
30526         (vect_analyze_stmt): Update call to vectorizable_reduction.
30527         (vect_transform_stmt): Likewise.
30528         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
30529         (vect_build_slp_tree): Fix indentation. Check that there are no loads
30530         from different interleaving chains in same node.
30531         (vect_slp_rearrange_stmts): New function.
30532         (vect_supported_load_permutation_p): Allow load permutations for
30533         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
30534         inside SLP nodes if necessary.
30535         (vect_analyze_slp_instance): Handle reductions.
30536         (vect_analyze_slp): Try to build SLP instances originating from groups
30537         of reductions.
30538         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
30539         (vect_get_constant_vectors): Create initial vectors for reductions
30540         according to reduction code. Add new argument.
30541         (vect_get_slp_defs): Add new argument, pass it to
30542         vect_get_constant_vectors.
30543         (vect_schedule_slp_instance): Remove SLP tree root statements.
30544
30545 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
30546
30547         * tree.h (ENUM_IS_SCOPED): Define.
30548         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
30549         for ENUM_IS_SCOPED enums.
30550
30551 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
30552
30553         * fold-const.c (fold_comparison): Use ssizetype.
30554         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
30555         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
30556         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
30557         * tree-object-size.c (compute_object_sizes): Use size_type_node.
30558
30559         * tree.h (initialize_sizetypes): Remove parameter.
30560         (build_common_tree_nodes): Remove second parameter.
30561         * stor-layout.c (initialize_sizetypes): Remove parameter.
30562         Always create an unsigned type.
30563         (set_sizetype): Assert that the passed type is unsigned and simplify.
30564         * tree.c (build_common_tree_nodes): Remove second parameter.
30565         Adjust call to initialize_sizetypes.
30566         * c-decl.c (c_init_decl_processing): Remove second argument in call to
30567         build_common_tree_nodes.
30568
30569 2010-04-18  Matthias Klose  <doko@ubuntu.com>
30570
30571         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
30572
30573 2010-04-18  Ira Rosen  <irar@il.ibm.com>
30574
30575         PR tree-optimization/43771
30576         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
30577         load permutation doesn't have gaps.
30578
30579 2010-04-18  Jan Hubicka  <jh@suse.cz>
30580
30581         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
30582         (sse_prologue_save_insn expander): Use new pattern.
30583         (sse_prologue_save_insn1): New pattern and splitter.
30584         (sse_prologue_save_insn): Update to deal also with 64bit aligned
30585         blocks.
30586         * i386.c (setup_incoming_varargs_64): Do not compute jump
30587         destination here.
30588         (ix86_gimplify_va_arg): Update alignment needed.
30589         (ix86_local_alignment): Do not align all local arrays to 128bit.
30590
30591 2010-04-17  Jan Hubicka  <jh@suse.cz>
30592
30593         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
30594
30595 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
30596
30597         * arm.md (negdi2): Remove redundant code to force values into a
30598         register.
30599
30600 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
30601
30602         * arm/bpabi.S: Add EABI alignment attributes to objects.
30603         * arm/bpabi-v6m.S: Likewise.
30604         * arm/crti.asm: Likewise.
30605         * arm/crtn.asm: Likewise.
30606         * arm/lib1funcs.asm: Likewise.
30607         * arm/libunwind.S: Likewise.
30608
30609 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
30610
30611         * arm-protos.h (tune_params): New structure.
30612         * arm.c (current_tune): New variable.
30613         (arm_constant_limit): Delete.
30614         (struct processors): Add pointer to the tune parameters.
30615         (arm_slowmul_tune): New tuning option.
30616         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
30617         (all_cores): Adjust to pick up the tuning model.
30618         (arm_constant_limit): New function.
30619         (arm_override_options): Select the appropriate tuning model.  Delete
30620         initialization of arm_const_limit.
30621         (arm_split_constant): Use the new constant-limit model.
30622         (arm_rtx_costs): Pick up the current tuning model.
30623         * arm.md (is_strongarm, is_xscale): Delete.
30624         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
30625         for Xscale variant architectures.
30626         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
30627
30628 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30629
30630         * config/arm/arm.c (arm_gen_constant): Remove unused variable
30631         can_shift.
30632         (arm_rtx_costs_1): Remove unused variable extra_cost.
30633         (arm_unwind_emit_set): Use variable offset.
30634         (thumb1_output_casesi): Remove unused variable flags.
30635
30636 2010-04-16  Jeff Law  <law@redhat.com>
30637
30638         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
30639         needing assignment rather than doing a two-phase assignment.  Remove
30640         unused variable 'm'.
30641
30642 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
30643
30644         PR bootstrap/43767
30645         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
30646
30647 2010-04-16  Doug Kwan  <dougkwan@google.com>
30648
30649         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
30650         (next_operand_entry_id): New static variable.
30651         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
30652         (add_to_ops_vec): Assigned unique ID to operand entry.
30653         (struct oecount_s): New field ID.
30654         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
30655         (undistribute_ops_list): Assign unique IDs to oecounts.
30656         (init_reassoc): reset next_operand_entry_id.
30657
30658 2010-04-16  Doug Kwan  <dougkwan@google.com>
30659
30660         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
30661         missing left parenthesis.
30662
30663 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
30664
30665         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
30666         *btdi_rex64 using SWI48 mode iterator.
30667         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
30668         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
30669         *jcc_btdi_mask_rex64.
30670
30671 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
30672
30673         * double-int.h (tree_to_double_int): Convert to macro.
30674         * double-int.c (tree_to_double_int): Remove.
30675
30676 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
30677
30678         PR debug/43762
30679         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
30680         with want_address 2 and in case a single element list might be
30681         possible, call it again with want_address 0.
30682
30683 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
30684
30685         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
30686         case 'W' print operands for HI mode.
30687         * config/h8300/h8300.h (Y0, Y2) : New constraints.
30688         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
30689         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
30690         * config/h8300/predicate.md (bit_register_indirect_operand): New.
30691
30692         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
30693
30694         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
30695         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
30696         #xx:3 and #xx:4 mode.
30697
30698         * config/h8300/h8300.md (inverted load with HImode dest): Add
30699         support for H8300SX.
30700
30701         * config/h8300/predicate.md (bit_operand): Allow immediate values that
30702         satisfy 'U' constraint.
30703
30704 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30705
30706         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
30707         * configure: Regenerate.
30708         * config.in: Regenerate.
30709         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
30710         works.
30711
30712 2010-04-16  Richard Guenther  <rguenther@suse.de>
30713
30714         * tree.h (struct tree_decl_minimal): Move pt_uid ...
30715         (struct tree_decl_common): ... here.
30716         (DECL_PT_UID): Adjust.
30717         (SET_DECL_PT_UID): Likewise.
30718         (DECL_PT_UID_SET_P): Likewise.
30719
30720 2010-04-16  Richard Guenther  <rguenther@suse.de>
30721
30722         PR tree-optimization/43572
30723         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
30724         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
30725         * tree-flow.h (is_call_clobbered): Remove.
30726         * tree-flow-inline.h (is_call_clobbered): Likewise.
30727         * tree-dfa.c (dump_variable): Do not dump call clobber state.
30728         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
30729         (execute_return_slot_opt): Adjust.
30730         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
30731         check for call clobbered vars here.
30732         (find_tail_calls): Move tailcall verification to the
30733         proper place.
30734
30735 2010-04-16  Diego Novillo  <dnovillo@google.com>
30736
30737         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
30738
30739 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
30740
30741         PR target/40603
30742         * config/arm/arm.md (cbranchqi4): New pattern.
30743         * config/arm/predicates.md (const0_operand,
30744         cbranchqi4_comparison_operator): New predicates.
30745
30746 2010-04-16  Richard Guenther  <rguenther@suse.de>
30747
30748         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
30749         (dump_gimple_stmt): Likewise.
30750
30751 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
30752
30753         * recog.h (struct recog_data): New field is_operator.
30754         (struct insn_operand_data): New field is_operator.
30755         * recog.c (extract_insn): Set recog_data.is_operator.
30756         * genoutput.c (output_operand_data): Emit code to set the
30757         is_operator field.
30758         * reload.c (find_reloads): Use it rather than testing for an
30759         empty constraint string.
30760
30761         PR target/41514
30762         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
30763         If the previous insn is a cbranchsi4_insn with the same arguments,
30764         omit the compare instruction.
30765
30766         * config/arm/arm.md (addsi3_cbranch): If destination is a high
30767         register, inputs must be low registers and we need a low register
30768         scratch.  Handle alternative 2 like alternative 3.
30769
30770 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
30771
30772         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
30773         don't call get_addr on both.  If one expression is a VALUE and
30774         the other a REG, check VALUE's locs if the REG isn't among them.
30775
30776 2010-04-16  Christian Bruel  <christian.bruel@st.com>
30777
30778         * config/sh/sh.h (sh_frame_pointer_required): New function.
30779         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
30780         (flag_omit_frame_pointer) Set.
30781         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
30782         (rounded_frame_size): Adjust size with outgoing_args_size.
30783         (sh_set_return_address): Must return from stack pointer.
30784         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
30785         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
30786         (ACCUMULATE_OUTGOING_ARGS): Define.
30787         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
30788         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
30789
30790 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
30791
30792         PR target/43471
30793         * config/sh/sh.c (sh_legitimize_reload_address): Use
30794         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
30795         Remove a unneeded check for offset_base.
30796
30797 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
30798
30799         * configure: Regenerated.
30800
30801 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30802
30803         * config/s390/s390.c (s390_call_save_register_used): Switch back
30804         to HARD_REGNO_NREGS.
30805
30806 2010-04-15  Richard Guenther  <rguenther@suse.de>
30807
30808         * alias.c (alias_set_subset_of): Handle alias-set zero
30809         child properly.
30810
30811 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
30812             Julian Brown  <julian@codesourcery.com>
30813
30814         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
30815         alternatives according to use of high and low regs.
30816         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
30817         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
30818         optimizing for size on Thumb-2.
30819
30820 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
30821
30822         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
30823
30824 2010-04-15  Richard Guenther  <rguenther@suse.de>
30825
30826         * tree-ssa-structalias.c (struct variable_info): Add
30827         is_fn_info flag.
30828         (new_var_info): Initialize it.
30829         (dump_constraints): Support printing last added constraints.
30830         (debug_constraints): Adjust.
30831         (dump_constraint_graph): Likewise.
30832         (make_heapvar_for): Check for NULL cfun.
30833         (get_function_part_constraint): New function.
30834         (get_fi_for_callee): Likewise.
30835         (find_func_aliases): Properly implement IPA PTA constraints.
30836         (process_ipa_clobber): New function.
30837         (find_func_clobbers): Likewise.
30838         (insert_into_field_list_sorted): Remove.
30839         (create_function_info_for): Properly allocate vars for IPA mode.
30840         Do not use insert_into_field_list_sorted.
30841         (create_variable_info_for): Properly generate constraints for
30842         global vars in IPA mode.
30843         (dump_solution_for_var): Always dump the solution.
30844         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
30845         (find_what_var_points_to): Adjust.
30846         (pt_solution_set): Change.
30847         (pt_solution_ior_into): New function.
30848         (pt_solution_empty_p): Export.
30849         (pt_solution_includes_global): Adjust.
30850         (pt_solution_includes_1): Likewise.
30851         (pt_solutions_intersect_1): Likewise.
30852         (dump_sa_points_to_info): Check some invariants.
30853         (solve_constraints): Move constraint dumping ...
30854         (compute_points_to_sets): ... here.
30855         (ipa_pta_execute): ... and here.
30856         (compute_may_aliases): Do not re-compute points-to info
30857         locally if IPA info is available.
30858         (ipa_escaped_pt): New global var.
30859         (ipa_pta_execute): Properly implement IPA PTA.
30860         * tree-into-ssa.c (dump_decl_set): Support dumping
30861         decls not in referenced-vars.
30862         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
30863         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
30864         (dump_points_to_solution): Likewise.
30865         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
30866         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
30867         (remap_gimple_stmt): Reset call clobber/use information if necessary.
30868         (copy_decl_to_var): Copy DECL_PT_UID.
30869         (copy_result_decl_to_var): Likewise.
30870         * tree.c (make_node_stat): Initialize DECL_PT_UID.
30871         (copy_node_stat): Copy it.
30872         * tree.h (DECL_PT_UID): New macro.
30873         (SET_DECL_PT_UID): Likewise.
30874         (DECL_PT_UID_SET_P): Likewise.
30875         (struct tree_decl_minimal): Add pt_uid member.
30876         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
30877         (pt_solution_empty_p): Declare.
30878         (pt_solution_set): Adjust.
30879         (ipa_escaped_pt): Declare.
30880         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
30881         * gimple-pretty-print.c (pp_points_to_solution): New function.
30882         (dump_gimple_call): Dump call clobber/use information.
30883         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
30884         * tree-pass.h (TDF_ALIAS): New dump option.
30885         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
30886         * doc/invoke.texi (-fipa-pta): Update documentation.
30887
30888 2010-04-15  Richard Guenther  <rguenther@suse.de>
30889
30890         * Makefile.in (OBJS-common): Add gimple-fold.o.
30891         (gimple-fold.o): New rule.
30892         * tree.h (maybe_fold_offset_to_reference,
30893         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
30894         prototypes ...
30895         * gimple.h: ... here.
30896         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
30897         may_propagate_address_into_dereference): Move prototypes ...
30898         * gimple.h: ... here.
30899         * tree-ssa-ccp.c (get_symbol_constant_value,
30900         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
30901         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
30902         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
30903         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
30904         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
30905         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
30906         gimplify_and_update_call_from_tree): Move ...
30907         * gimple-fold.c: ... here.  New file.
30908         (ccp_fold_builtin): Rename to ...
30909         (gimple_fold_builtin): ... this.
30910         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
30911
30912 2010-04-15  Richard Guenther  <rguenther@suse.de>
30913
30914         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
30915         fit_double_type, force_fit_type_double, add_double_with_sign,
30916         neg_double, mul_double_with_sign, lshift_double, rshift_double,
30917         lrotate_double, rrotate_double, div_and_round_double): Move ...
30918         * double-int.c: ... here.
30919         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
30920         add_double, neg_double, mul_double_with_sign, mul_double,
30921         lshift_double, rshift_double, lrotate_double, rrotate_double,
30922         div_and_round_double): Move prototypes ...
30923         * double-int.h: ... here.
30924
30925 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
30926
30927         PR target/43742
30928         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
30929         matching constraints to ensure inputs match the output.
30930
30931 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
30932
30933         PR target/43742
30934         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
30935         in an input-only operand.
30936
30937 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
30938
30939         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
30940         (double_int_not, double_int_lshift, double_int_rshift): Declare.
30941         (double_int_negative_p): Convert to static inline function.
30942         * double-int.c (double_int_lshift, double_int_lshift): New functions.
30943         (double_int_negative_p): Remove.
30944         * tree.h (lshift_double, rshift_double):
30945         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
30946         * fold-const.c (fold_convert_const_int_from_real,
30947         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
30948         (lshift_double): Change type of arith argument to bool.
30949         (rshift_double): Change type of arith argument to bool. Correct
30950         comment.
30951         * expmed.c (mask_rtx, lshift_value): (Ditto.).
30952
30953 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
30954
30955         PR target/21803
30956         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
30957         at the start and end of the then/else blocks, and omit them from the
30958         conversion.
30959         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
30960         argument; all callers changed.  Pass zero to old_insns_match_p instead.
30961         (flow_find_head_matching_sequence): New function.
30962         (old_insns_match_p): Check REG_EH_REGION notes for calls.
30963         * basic-block.h (flow_find_cross_jump,
30964         flow_find_head_matching_sequence): Declare functions.
30965
30966 2010-04-14  Jason Merrill  <jason@redhat.com>
30967
30968         PR c++/36625
30969         * c-common.c (attribute_takes_identifier_p): New fn.
30970         * c-common.h: Declare it.
30971
30972 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30973
30974         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
30975         splitter condition.
30976         (*udivmod<mode>4): Ditto.
30977
30978 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30979
30980         * config/i386/i386.md (maxmin_int): Rename code attribute from
30981         maxminiprefix and update all users.
30982         (maxmin_float): Ditto from maxminfprefix.
30983         (logic): Ditto from logicprefix.
30984         (absneg_mnemonic): Ditto from absnegprefix.
30985         * config/i386/mmx.md: Update all users of maxminiprefix,
30986         maxminfprefix and logicprefix for rename.
30987         * config/i386/sse.md: Ditto.
30988         * config/i386/sync.md (sync_<code><mode>): Update for
30989         logicprefix rename.
30990
30991 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30992
30993         PR 42966
30994         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
30995         warnings converted to errors.
30996
30997 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
30998
30999         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
31000         used insn_type variable.
31001         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
31002         to avoid set-but-not-used warning.
31003
31004 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31005
31006         * df-core.c (df_ref_debug): Change format string placeholder
31007         from 0x%x to %#x.
31008         * dwarf2asm.c (dw2_asm_output_data_raw,
31009         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
31010         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
31011         * dwarf2out.c (output_cfi, output_cfi_directive,
31012         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
31013         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
31014         Ditto.
31015         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
31016         * print-rtl.c (print_rtx): Ditto.
31017
31018 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
31019
31020         PR middle-end/42694
31021         * builtins.c (expand_builtin_pow_root): New function to expand pow
31022         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
31023         series of sqrt and cbrt calls under -ffast-math.
31024         (expand_builtin_pow): Call it.
31025
31026 2010-04-14  Michael Matz  <matz@suse.de>
31027
31028         PR tree-optimization/42963
31029         * tree-cfg.c (touched_switch_bbs): New static variable.
31030         (group_case_labels_stmt): New function broken out from ...
31031         (group_case_labels): ... here, use the above.
31032         (start_recording_case_labels): Allocate touched_switch_bbs.
31033         (end_recording_case_labels): Deallocate it, call
31034         group_case_labels_stmt.
31035         (gimple_redirect_edge_and_branch): Remember index of affected BB.
31036
31037 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31038
31039         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
31040         from insn template.
31041
31042 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31043
31044         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
31045
31046 2010-04-13  Jan Hubicka  <jh@suse.cz>
31047
31048         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
31049         of optimized out static functions.
31050         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
31051         cost computation.  Also sanity check for overflows.
31052         (update_caller_keys): Update cgraph_edge_badness call; properly
31053         update fibheap and sanity check that it is up to date.
31054         (add_new_edges_to_heap): Update cgraph_edge_badness.
31055         (cgraph_decide_inlining_of_small_function): Likewise;
31056         add sanity checking that badness in heap is up to date;
31057         improve dumping of reason; Update badness of calls to the
31058         offline copy of function currently inlined; dump badness
31059         of functions not inlined because of unit growth limits.
31060
31061 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
31062
31063         PR middle-end/32628
31064         * c-common.c (pointer_int_sum): Disregard overflow that occured only
31065         because of sign-extension change when converting to sizetype here...
31066         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
31067
31068         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
31069         the folding to constants.  Remove redundant final conversion.
31070         (fold_binary) <associate>: Do not associate if the re-association of
31071         constants alone overflows.
31072         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
31073         to the end of the list.
31074         (multiple_of_p) <COND_EXPR>: New case.
31075
31076 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31077
31078         * opt-functions.awk (opt_sanitized_name): New.
31079         (opt_enum): New.
31080         * optc-gen.awk: Use it
31081         * opth-gen.awk: Use it.
31082
31083 2010-04-13  Martin Jambor  <mjambor@suse.cz>
31084
31085         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
31086         (sra_modify_assign): Delete stmts loading dead data even if racc has no
31087         children.  Call replace_uses_with_default_def_ssa_name to handle
31088         SSA_NAES on lhs.
31089
31090 2010-04-13  Michael Matz  <matz@suse.de>
31091
31092         PR middle-end/43730
31093         * builtins.c (expand_builtin_interclass_mathfn): Also create
31094         a register if the predicate doesn't match.
31095
31096 2010-04-13  Diego Novillo  <dnovillo@google.com>
31097
31098         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
31099         * c-pch.c: Include timevar.h.
31100         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
31101         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
31102         * ggc-common.c: Include timevar.h.
31103         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
31104         * timevar.def (TV_PCH_SAVE): Define.
31105         (TV_PCH_CPP_SAVE): Define.
31106         (TV_PCH_PTR_REALLOC): Define.
31107         (TV_PCH_PTR_SORT): Define.
31108         (TV_PCH_RESTORE): Define.
31109         (TV_PCH_CPP_RESTORE): Define.
31110
31111 2010-04-13  Michael Matz  <matz@suse.de>
31112
31113         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
31114         into MINUS_EXPRs.
31115         (can_reassociate_p): New function.
31116         (break_up_subtract_bb, reassociate_bb): Use it.
31117
31118 2010-04-13  Richard Guenther  <rguenther@suse.de>
31119
31120         PR bootstrap/43737
31121         * builtins.c (c_readstr): Fix assert.
31122
31123 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
31124
31125         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
31126         when generating cltd insn.
31127
31128         (*ashl<mode>3_1): Remove special handling for register operand 2.
31129         (*ashlsi3_1_zext): Ditto.
31130         (*ashlhi3_1): Ditto.
31131         (*ashlhi3_1_lea): Ditto.
31132         (*ashlqi3_1): Ditto.
31133         (*ashlqi3_1_lea): Ditto.
31134         (*<shiftrt_insn><mode>3_1): Ditto.
31135         (*<shiftrt_insn>si3_1_zext): Ditto.
31136         (*<shiftrt_insn>qi3_1_slp): Ditto.
31137         (*<rotate_insn><mode>3_1): Ditto.
31138         (*<rotate_insn>si3_1_zext): Ditto.
31139         (*<rotate_insn>qi3_1_slp): Ditto.
31140
31141 2010-04-13  Richard Guenther  <rguenther@suse.de>
31142
31143         * tree-ssa-structalias.c (callused_id): Remove.
31144         (call_stmt_vars): New.
31145         (get_call_vi): Likewise.
31146         (lookup_call_use_vi): Likewise.
31147         (lookup_call_clobber_vi): Likewise.
31148         (get_call_use_vi): Likewise.
31149         (get_call_clobber_vi): Likewise.
31150         (make_transitive_closure_constraints): Likewise.
31151         (handle_const_call): Adjust to do per-call call-used handling.
31152         (handle_pure_call): Likewise.
31153         (find_what_var_points_to): Remove general callused handling.
31154         (init_base_vars): Likewise.
31155         (init_alias_vars): Initialize call_stmt_vars.
31156         (compute_points_to_sets): Process call-used and call-clobbered
31157         vars for call statements.
31158         (delete_points_to_sets): Free call_stmt_vars.
31159
31160 2010-04-13  Richard Guenther  <rguenther@suse.de>
31161
31162         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31163         Only add RW dependence for dependence distance zero.
31164         Adjust maximal vectorization factor according to dependences.
31165         Move alignment handling ...
31166         (vect_find_same_alignment_drs): ... here.  New function.
31167         (vect_analyze_data_ref_dependences): Adjust.
31168         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
31169         (vect_analyze_data_refs): Adjust minimal vectorization factor
31170         according to data references.
31171         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
31172         dependences before determining the vectorization factor.
31173         Analyze alignment after determining the vectorization factor.
31174         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
31175         dependences before alignment.
31176         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
31177         Adjust prototype.
31178         (vect_analyze_data_refs): Likewise.
31179         (MAX_VECTORIZATION_FACTOR): New define.
31180
31181 2010-04-13  Duncan Sands  <baldrick@free.fr>
31182
31183         * except.h (lang_eh_type_covers): Remove.
31184         * except.c (lang_eh_type_covers): Likewise.
31185
31186 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31187             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31188
31189         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
31190         * config/s390/s390.c: Replace UNTIS_PER_WORD with
31191         UNITS_PER_LONG where it is ABI relevant.
31192         (s390_return_addr_rtx): Likewise.
31193         (s390_back_chain_rtx): Likewise.
31194         (s390_frame_area): Likewise.
31195         (s390_frame_info): Likewise.
31196         (s390_initial_elimination_offset): Likewise.
31197         (save_gprs): Likewise.
31198         (s390_emit_prologue): Likewise.
31199         (s390_emit_epilogue): Likewise.
31200         (s390_function_arg_advance): Likewise.
31201         (s390_function_arg): Likewise.
31202         (s390_va_start): Likewise.
31203         (s390_gimplify_va_arg): Likewise.
31204         (s390_function_profiler): Likewise.
31205         (s390_optimize_prologue): Likewise.
31206         (s390_rtx_costs): Likewise.
31207         (s390_secondary_reload): Likewise.
31208         (s390_promote_function_mode): Likewise.
31209         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
31210         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
31211         registers available.
31212         (s390_unwind_word_mode): New function.
31213         (s390_function_value): Split 64 bit values into register pair if
31214         used as return value.
31215         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
31216         function call parameters.  Handle parallels.
31217         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
31218         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
31219         (DWARF_CIE_DATA_ALIGNMENT): New macro.
31220         (s390_expand_setmem): Remove unused variable src_addr.
31221         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
31222         deal with 64 bit registers.
31223         * config/s390/s390.h: Define __zarch__ predefined macro.
31224         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
31225         (UNITS_PER_LONG): New macro.
31226         * libjava/include/s390-signal.h: Define extended ucontext
31227         structure containing the upper halfs of the 64 bit registers.
31228
31229 2010-04-13  Simon Baldwin  <simonb@google.com>
31230
31231         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
31232
31233 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
31234
31235         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
31236         rvalue on the RHS if the LHS is of a non-renamable type.
31237         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
31238
31239 2010-04-13  Matthias Klose  <doko@ubuntu.com>
31240
31241         * gcc.c (cc1_options): Handle -iplugindir before processing
31242         the cc1 spec. Only add -iplugindir once.
31243         (cpp_unique_options): Add -iplugindir option if -fplugin* options
31244         found.
31245         * common.opt (iplugindir): Remove `Separate' property, initialize.
31246         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
31247         option.
31248         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
31249         (distclean): Remove plugin dir.
31250         * doc/invoke.texi: Document -iplugindir.
31251
31252 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
31253
31254         * doc/plugins.texi (Loading Plugins): Document short
31255         -fplugin=foo option.
31256         (Plugin API): Mention default_plugin_dir_name function.
31257
31258         * gcc.c (find_file_spec_function): Add new declaration.
31259         (static_spec_func): Use it for "find-file".
31260         (find_file_spec_function): Add new function.
31261         (cc1_options): Add -iplugindir option if -fplugin* options found.
31262
31263         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
31264
31265         * plugin.c (add_new_plugin): Updated comment, and handle short
31266         plugin name.
31267         (default_plugin_dir_name): Added new function.
31268
31269         * common.opt (iplugindir): New option to set the plugin directory.
31270
31271 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
31272
31273         * config/i386/i386.md (any_rotate): New code iterator.
31274         (rotate_insn): New code attribute.
31275         (rotate): Ditto.
31276         (SWIM124): New mode iterator.
31277         (<rotate_insn>ti3): New expander.
31278         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
31279         any_rotate code iterator.
31280         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
31281         using any_rotate code iterator and SWIM124 mode iterator.
31282         (ix86_rotlti3): New insn_and_split pattern.
31283         (ix86_rotrti3): Ditto.
31284         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
31285         ix86_rotl{di,ti}3 patterns.
31286         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
31287         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
31288         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
31289         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
31290         code iterator and SWI mode iterator.
31291         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
31292         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
31293         code iterator.
31294         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
31295         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
31296         (bswap rotatert splitter): Add splitter.
31297         (bswap splitter): Macroize splitter using any_rotate code iterator.
31298         Add insn predicate to split only for TARGET_USE_XCHGB or when
31299         optimizing function for size.
31300
31301 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
31302
31303         * config/pa/pa.c (emit_move_sequence): Remove use of
31304         deleted variable flag_argument_noalias.
31305
31306 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31307
31308         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
31309         configurations.
31310         Add to unsupported targets list.
31311         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
31312         sparc*-sun-solaris2.[567]* from target lists.
31313         * configure: Regenerate.
31314         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
31315         removal.
31316         Remove Solaris 7 patch references.
31317         (Specific, sparc-sun-solaris2.7): Removed.
31318         (sparc-sun-solaris2*): Update Solaris 7 example.
31319         (sparc64-*-solaris2*): Likewise.
31320
31321 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31322
31323         * config.build (alpha*-dec-osf4*): Remove.
31324         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
31325         of obsolete configurations.
31326         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
31327         support.
31328         * config/alpha/t-osf4: Renamed to ...
31329         * config/alpha/t-osf5: ... this.
31330         * config/alpha/osf.h: Renamed to ...
31331         * config/alpha/osf5.h: ... this.
31332         Merged old osf5.h contents.
31333         Update comments.
31334         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
31335         (EXTRA_SPECS): Removed.
31336         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
31337         reflect removal of Tru64 UNIX V4.0/V5.0 support.
31338         Document that.
31339
31340 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31341
31342         * doc/contrib.texi (Contributors, Rainer Orth): Update.
31343
31344 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
31345
31346         PR/43702
31347         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
31348         __thiscall convention.
31349
31350 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
31351
31352         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
31353         orig_base.
31354         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
31355
31356 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
31357
31358         * function.c (assign_parms_initialize_all): Add unused attribute
31359         to fntype.
31360
31361 2010-04-12  Richard Guenther  <rguenther@suse.de>
31362
31363         * gsstruct.def (GSS_CALL): New.
31364         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
31365         * gimple.h: Include tree-ssa-alias.h.
31366         (struct gimple_statement_call): New.
31367         (union gimple_statement_struct_d): Add gimple_call member.
31368         (gimple_call_reset_alias_info): Declare.
31369         (gimple_call_use_set): New function.
31370         (gimple_call_clobber_set): Likewise.
31371         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
31372         * gimple.c (gimple_call_reset_alias_info): New function.
31373         (gimple_build_call_1): Call it.
31374         * lto-streamer-in.c (input_gimple_stmt): Likewise.
31375         * tree-inline.c (remap_gimple_stmt): Likewise.
31376         (expand_call_inline): Remove callused handling.
31377         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
31378         * tree-dfa.c (dump_variable): Likewise.
31379         * tree-parloops.c (parallelize_loops): Likewise.
31380         * tree-ssa.c (init_tree_ssa): Likewise.
31381         (delete_tree_ssa): Likewise.
31382         * tree-flow-inline.h (is_call_used): Remove.
31383         * tree-flow.h (struct gimple_df): Remove callused member.
31384         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
31385         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
31386         (ref_maybe_used_by_call_p_1): Simplify.
31387         (call_may_clobber_ref_p_1): Likewise.
31388         * tree-ssa-structalias.c (compute_points_to_sets): Set
31389         the call stmt used and clobbered sets.
31390         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
31391         (find_tail_calls): Verify the tail call.
31392
31393 2010-04-12  Richard Guenther  <rguenther@suse.de>
31394
31395         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
31396         single-iteration always-inline inlining.
31397         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
31398         (cgraph_decide_inlining): Do not handle always-inline specially.
31399         (try_inline): Remove always-inline cycle detection special case.
31400         Do not recurse on always-inlines.
31401         (cgraph_early_inlining): Do not iterate if not optimizing.
31402         (cgraph_gate_early_inlining): remove.
31403         (pass_early_inline): Run unconditionally.
31404         (gate_cgraph_decide_inlining): New function.
31405         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
31406         not inlining or optimizing.
31407         (cgraph_decide_inlining_of_small_functions): Also consider
31408         always-inline functions.
31409         (cgraph_default_inline_p): Return true for nodes which should
31410         disregard inline limits.
31411         (estimate_function_body_sizes): Assume zero size and time for
31412         nodes which are marked as disregarding inline limits.
31413         (cgraph_decide_recursive_inlining): Do not perform recursive
31414         inlining on always-inline nodes.
31415
31416 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
31417
31418         PR bootstrap/43699
31419         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
31420         for exprs satisfying handled_component_p.
31421
31422 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
31423
31424         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
31425         non-constant aggregate elements.
31426
31427         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
31428         is a real initialization.
31429
31430 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
31431
31432         PR c/36774
31433         * c-decl.c (start_function): Move forward check for nested function.
31434
31435 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
31436
31437         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
31438         * config/sh/sh.c: Include reload.h.
31439         (sh_legitimize_reload_address): New.
31440         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
31441         sh_legitimize_reload_address.
31442
31443 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
31444
31445         * config/sh/sh.md (*movqi_pop): New insn pattern.
31446         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
31447
31448 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
31449
31450         * config/i386/i386.md (any_shiftrt): New code iterator.
31451         (shiftrt_insn): New code attribute.
31452         (shiftrt): Ditto.
31453         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
31454         using any_shiftrt code iterator.
31455         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
31456         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
31457         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
31458         pattern from corresponding peephole2 patterns.
31459         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
31460         using any_shiftrt code iterator.
31461         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
31462         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
31463         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
31464         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
31465         *{ashr,lshr}<mode>3_cmp_zext.
31466         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
31467
31468 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
31469
31470         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
31471         scratch register.
31472         (*lshr<mode>3_cconly): Ditto.
31473
31474 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
31475
31476         * config/i386/i386.md (lshr<mode>3): Macroize expander from
31477         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31478         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
31479         pattern from *lshr{di,ti}3_1 and corresponding splitters using
31480         DWI mode iterator.
31481         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31482         from corresponding peephole2 patterns.
31483         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
31484         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
31485         and *lshrdi3_1_rex64 using SWI mode iterator.
31486         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
31487         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
31488         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
31489         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
31490         and *lshrdi3_cmp_rex64 using SWI mode iterator.
31491         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
31492         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
31493         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
31494         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
31495         SWI mode iterator.
31496
31497 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
31498
31499         * config/i386/i386.md (ashr<mode>3): Macroize expander from
31500         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31501         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
31502         pattern from *ashr{di,ti}3_1 and corresponding splitters using
31503         DWI mode iterator.
31504         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31505         from corresponding peephole2 patterns.
31506         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
31507         (ashrsi3_cvt): Rename from ashrsi3_31.
31508         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
31509         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
31510         and x86_64_shift_adj_3 using SWI48 mode iterator.
31511         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
31512         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
31513         and *ashrdi3_1_rex64 using SWI mode iterator.
31514         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
31515         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
31516         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
31517         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
31518         and *ashrdi3_cmp_rex64 using SWI mode iterator.
31519         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
31520         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
31521         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
31522         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
31523         SWI mode iterator.
31524         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
31525         * config/i386/i386.c (ix86_split_ashr): Update for renamed
31526         x86_shift<mode>_adj_3 expanders.
31527
31528 2010-04-10  Wei Guozhi  <carrot@google.com>
31529
31530         PR target/42601
31531         * config/arm/arm.c (arm_pic_static_addr): New function.
31532         (legitimize_pic_address): Call arm_pic_static_addr when it detects
31533         a static symbol.
31534         (arm_output_addr_const_extra): Output expression for new pattern.
31535         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
31536
31537 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
31538
31539         * ira-costs.c (record_reg_classes): Ignore alternatives that are
31540         not enabled.
31541
31542         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
31543         * web.c: Include "insn-config.h" and "recog.h".
31544         (union_match_dups): New function.
31545         (web_main): Call it.
31546         (union_defs): Don't try to recognize match_dups.
31547
31548         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
31549         if doing so would replace the entire pattern.
31550
31551 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
31552
31553         PR target/43707
31554         PR target/43709
31555         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
31556         and splitter pattern.  Change splitter operand 1 predicate to
31557         nonmemory_operand.
31558
31559 2010-04-09  Martin Jambor  <mjambor@suse.cz>
31560
31561         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
31562         lattices are addresses of CONST_DECLs with the same initial value.
31563         (ipcp_print_all_lattices): Print values of CONST_DECLs.
31564         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
31565
31566 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
31567             Bernd Schmidt  <bernds@codesourcery.com>
31568
31569         * loop-invariant.c (replace_uses): New static function.
31570         (move_invariant_reg): Use it to ensure we can replace the uses.
31571
31572 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
31573
31574         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
31575         function template.
31576         (picochip_override_options): Enable section anchors only above -O1.
31577         (picochip_reorg): Fixed a couple of build warnings.
31578
31579 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31580
31581         * configure.ac (plugin -rdynamic test): Log result.
31582         * configure: Regenerate.
31583         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
31584         (RDYNAMIC_SPEC): Define.
31585         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
31586
31587 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31588
31589         * configure.ac: Determine Sun ld version numbers.
31590         (comdat_group): Restrict GNU ld version checks to gld.
31591         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
31592         (enable_comdat): Support --enable-comdat.
31593         * configure: Regenerate.
31594         * doc/install.texi (Configuration): Document --enable-comdat.
31595
31596 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31597
31598         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
31599         * config/sol2-gld.h: ... here.
31600         * config.gcc (sparc*-*-solaris2*): Reflect this.
31601         (i[34567]86-*-solaris2*): Use it.
31602
31603 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
31604
31605         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
31606         setup_clocks_p.
31607         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
31608
31609 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31610
31611         PR 42965
31612         * diagnostic.c (diagnostic_initialize): Initialize
31613         some_warnings_are_errors.
31614         (diagnostic_finish): New.
31615         (diagnostic_action_after_output): Call it before exiting.
31616         (diagnostic_report_diagnostic): Do not print message here. Set
31617         some_warnings_are_errors.
31618         * diagnostic.h (diagnostic_context): Delete
31619         issue_warnings_are_errors_message. Add some_warnings_are_errors.
31620         (diagnostic_finish): Declare.
31621         * toplev.c (toplev_main): Call it before exit.
31622
31623 2010-04-09  Jason Merrill  <jason@redhat.com>
31624
31625         PR c++/42623
31626         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
31627         for incomplete type.
31628
31629         PR c++/41788
31630         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
31631         based on a warning flag.
31632
31633 2010-04-09  Richard Guenther  <rguenther@suse.de>
31634
31635         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
31636
31637 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
31638
31639         PR bootstrap/43684
31640         * varasm.c (default_assemble_visibility): Wrap vars that are
31641         set, but unused, by targets without GAS.
31642         * config/rs6000/rs6000.c (paired_emit_vector_compare):
31643         Remove set, but unused, vars.
31644         (rs6000_legitimize_tls_address): Likewise.
31645         (altivec_expand_dst_builtin): Likewise.
31646         * config/darwin.c (machopic_classify_symbol): Likewise.
31647         (machopic_indirection_name): Likewise.
31648
31649 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
31650
31651         * config/i386/i386.md (DWI): New mode iterator.
31652         (S): New mode attribute.
31653         (shift_operand): Ditto.
31654         (shift_immediate_operand): Ditto.
31655         (ashl_input_operand): Ditto.
31656         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
31657         using SDWIM mode iterator.
31658         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
31659         pattern from *ashl{di,ti}3_1 and corresponding splitters using
31660         DWI mode iterator.
31661         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
31662         from corresponding peephole2 patterns.
31663         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
31664         and x86_64_shift_adj_1 using SWI48 mode iterator.
31665         (x86_shift<mode>_adj_2): Ditto.
31666         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
31667         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
31668         using SWI48 mode iterator.
31669         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
31670         *ashldi3_cmp_rex64 using SWI mode iterator.
31671         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
31672         *ashldi3_cconly_rex64 using SWI mode iterator.
31673         * config/i386/i386.c (ix86_split_ashl): Update for renamed
31674         x86_shift<mode>_adj_{1,2}.
31675         (ix86_split_ashr): Ditto.
31676         (ix86_split_lshr): Ditto.
31677
31678 2010-04-09  Richard Guenther  <rguenther@suse.de>
31679
31680         * target.h (builtin_conversion): Pass in input and output types.
31681         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
31682         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
31683         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
31684         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
31685
31686         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
31687         Handle AVX modes.
31688         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
31689
31690 2010-04-09  Richard Guenther  <rguenther@suse.de>
31691
31692         PR target/43152
31693         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
31694
31695 2010-04-09  Richard Guenther  <rguenther@suse.de>
31696
31697         * tree-vectorizer.h (struct _stmt_vec_info): Document
31698         that vectype is the type of the LHS.
31699         (supportable_widening_operation, supportable_narrowing_operation):
31700         Get both input and output vector types as arguments.
31701         (vect_is_simple_use_1): Declare.
31702         (get_same_sized_vectype): Likewise.
31703         * tree-vect-loop.c (vect_determine_vectorization_factor):
31704         Set STMT_VINFO_VECTYPE to the vector type of the def.
31705         (vectorizable_reduction): Adjust.
31706         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
31707         Adjust.  Specify the output vector type.
31708         (vect_pattern_recog_1): Adjust.
31709         * tree-vect-stmts.c (get_same_sized_vectype): New function.
31710         (vectorizable_call): Adjust.
31711         (vectorizable_conversion): Likewise.
31712         (vectorizable_operation): Likewise.
31713         (vectorizable_type_demotion): Likewise.
31714         (vectorizable_type_promotion): Likewise.
31715         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
31716         the def.
31717         (vect_is_simple_use_1): New function.
31718         (supportable_widening_operation): Get both input and output
31719         vector types.
31720         (supportable_narrowing_operation): Likewise.
31721         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
31722
31723 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
31724
31725         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
31726         __thiscall and _thiscall as predefined macros.
31727         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
31728         thiscall attribute handling.
31729         (ix86_comp_type_attributes): Likewise.
31730         (ix86_function_regparm): Likewise.
31731         (ix86_return_pops_args): Likewise.
31732         (init_cumulative_args): Likewise.
31733         (find_drap_reg): Likewise.
31734         (ix86_static_chain): Likewise.
31735         (x86_this_parameter): Likewise.
31736         (x86_output_mi_thunk): Likewise.
31737         (ix86_attribute_table): Add description for thiscall attribute.
31738         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
31739         * doc/extend.texi: Add documentation for thiscall.
31740
31741 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31742
31743         PR c++/28584
31744         * c.opt (Wint-to-pointer-cast): Available in C++.
31745         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
31746
31747 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
31748
31749         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
31750         * calls.c (expand_call): Pass the function type to aggregate_value_p.
31751         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
31752         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
31753         function type instead.  Reorder and simplify checks.
31754
31755         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
31756
31757 2010-04-08  Jing Yu  <jingyu@google.com>
31758             Zdenek Dvorak  <ook@ucw.cz>
31759
31760         PR tree-optimization/42720
31761         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
31762         loop unswitch conditions here from ...
31763         (tree_unswitch_single_loop): ... here.
31764
31765 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
31766
31767         * tree-if-conv.c: Fix comments and simplify logic.
31768
31769 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
31770
31771         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
31772         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
31773         (main_tree_if_conversion): Update call to tree_if_conversion.
31774
31775 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31776
31777         PR 42485
31778         * doc/invoke.texi (-b,-V): Delete.
31779         * doc/tm.texi: Do not mention -b.
31780         * gcc.c (display_help): Delete -b and -V.
31781         (process_command): Delete -b and -V.
31782         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
31783
31784 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
31785             Wolfgang Gellerich  <gellerich@de.ibm.com>
31786
31787         Implement target hook for loop unrolling
31788         * target.h (loop_unroll_adjust): Add a new target hook function.
31789         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
31790         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
31791         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
31792         (s390_loop_unroll_adjust): Implement the new target hook for s390.
31793         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
31794         target hook.
31795         (decide_unroll_stupid): Likewise.
31796
31797 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31798
31799         PR target/43643
31800         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
31801
31802 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31803
31804         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
31805         (Specific, *-*-solaris2*): Likewise.
31806         Don't prefer Sun as over GNU as.
31807
31808 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
31809
31810         * config/s390/s390.c (override_options): Adjust the z10 defaults
31811         for max-unroll-times, max-completely-peeled-insns
31812         and max-completely-peel-times.
31813
31814 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31815
31816         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
31817         instructions for z10.
31818         (s390_expand_setmem): Likewise.
31819         (s390_expand_cmpmem): Likewise.
31820
31821 2010-04-08  Richard Guenther  <rguenther@suse.de>
31822
31823         PR tree-optimization/43679
31824         * tree-ssa-pre.c (eliminate): Only propagate copies.
31825
31826 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
31827
31828         PR bootstrap/43681
31829         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
31830         set but not used variable warning.
31831
31832 2010-04-08  Wei Guozhi  <carrot@google.com>
31833
31834         PR target/41653
31835         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
31836         (arm_size_rtx_costs): Call the new function when optimized for size.
31837
31838 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
31839
31840         PR debug/43670
31841         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
31842         op0 is not a MEM, just return NULL instead of assertion
31843         failure.
31844         (discover_nonconstant_array_refs): Don't walk debug stmts.
31845
31846 2010-04-08  Doug Kwan  <dougkwan@google.com>
31847
31848         * configure.ac: Recognize gold and do not use its version number
31849         to test ld features.
31850         * configure: Regenerate.
31851
31852 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
31853
31854         PR middle-end/40815
31855         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
31856         (negate_value): Move code to push elements to broken_up_substracts ...
31857         (eliminate_plus_minus_pair): ... here.  Push operands that have no
31858         negative pair to plus_negates.
31859         (repropagate_negates, init_reassoc, fini_reassoc): Update.
31860
31861 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31862
31863         * doc/install.texi (Configuration): Move description of
31864         --enable-lto, --with-libelf*, --enable-gold from Java section to
31865         general section.
31866
31867         * doc/generic.texi (Working with declarations)
31868         (Function Properties, C and C++ Trees): Fix typos.
31869         * doc/sourcebuild.texi (Top Level): Likewise.
31870
31871 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
31872
31873         PR c/18624
31874         * tree.h (DECL_READ_P): Define.
31875         (struct tree_decl_common): Add decl_read_flag.
31876         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
31877         a set but not used warning.
31878         (merge_decls): Merge DECL_READ_P flag.
31879         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
31880         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
31881         * c-common.c (handle_used_attribute, handle_unused_attribute):
31882         Likewise.
31883         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
31884         New prototypes.
31885         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
31886         New functions.
31887         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
31888         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
31889         c_parser_binary_expression, c_parser_cast_expression,
31890         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
31891         Call default_function_array_read_conversion instead of
31892         default_function_array_conversion where needed.
31893         (c_parser_unary_expression, c_parser_conditional_expression,
31894         c_parser_postfix_expression_after_primary, c_parser_initelt):
31895         Likewise.  Call mark_exp_read where needed.
31896         (c_parser_statement_after_labels, c_parser_asm_operands,
31897         c_parser_typeof_specifier, c_parser_sizeof_expression,
31898         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
31899         where needed.
31900         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
31901         New.
31902         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
31903         (warn_unused_but_set_parameter): Default to warn_unused
31904         && extra_warnings.
31905         * doc/invoke.texi: Document -Wunused-but-set-variable and
31906         -Wunused-but-set-parameter.
31907
31908         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
31909         used count variable.
31910         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
31911         when operandN variables aren't used in the body of the expander
31912         or splitter.
31913         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
31914         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
31915         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
31916         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
31917         FOR_EACH_IMM_USE_ON_STMT): Likewise.
31918         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
31919         * tree.c (PROCESS_ARG): Likewise.
31920
31921 2010-04-07  Simon Baldwin  <simonb@google.com>
31922
31923         * diagnostic.h (diagnostic_override_option_index): New macro to
31924         set a diagnostic's option_index.
31925         * c-tree.h (c_cpp_error): Add warning reason argument.
31926         * opts.c (_warning_as_error_callback): New.
31927         (register_warning_as_error_callback): Store callback for
31928         warnings enabled via enable_warning_as_error.
31929         (enable_warning_as_error): Call callback, minor code tidy.
31930         * opts.h (register_warning_as_error_callback): Declare.
31931         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
31932         response to -Werror=.
31933         (c_common_init_options): Register warning_as_error_callback in opts.c.
31934         * common.opt: Add -Wno-cpp option.
31935         * c-common.c (struct reason_option_codes_t): Map cpp warning
31936         reason codes to gcc option indexes.
31937         * (c_option_controlling_cpp_error): New function, lookup the gcc
31938         option index for a cpp warning reason code.
31939         * (c_cpp_error): Add warning reason argument, call
31940         c_option_controlling_cpp_error for diagnostic_override_option_index.
31941         * doc/invoke.texi: Document -Wno-cpp.
31942
31943 2010-04-07  Richard Guenther  <rguenther@suse.de>
31944
31945         * ipa-reference.c (mark_load): Use get_base_address.
31946         (mark_store): Likewise.
31947
31948         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
31949         inserting GIMPLE_NOPs into the IL.
31950         * tree-ssa-structalias.c (get_constraint_for_component_ref):
31951         Explicitly strip handled components and indirect references.
31952
31953         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
31954         folding address expressions.
31955         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
31956         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
31957         operand_equal_p to compare decls.
31958         (ptr_deref_may_alias_decl_p): Likewise.
31959         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
31960         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
31961         Handle reversed comparison ops.
31962         * tree-sra.c (asm_visit_addr): Use get_base_address.
31963         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
31964         * ipa-reference.c (mark_address): Use get_base_address.
31965
31966 2010-04-07  Richard Guenther  <rguenther@suse.de>
31967
31968         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
31969         Propagate constants everywhere.
31970
31971 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
31972
31973         PR debug/43516
31974         * tree.c (MAX_INT_CACHED_PREC): Define.
31975         (nonstandard_integer_type_cache): New array.
31976         (build_nonstandard_integer_type): Cache results for precision
31977         <= MAX_INT_CACHED_PREC.
31978
31979 2010-04-07  Richard Guenther  <rguenther@suse.de>
31980
31981         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
31982         -fargument-noalias-global, -fargument-noalias-anything): Remove.
31983         * common.opt: Likewise.
31984         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
31985         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
31986         (nonoverlapping_memrefs_p): Likewise.
31987         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31988         * opts.c (common_handle_option): Handle OPT_fargument_alias,
31989         OPT_fargument_noalias, OPT_fargument_noalias_anything and
31990         OPT_fargument_noalias_global for backward compatibility.
31991
31992 2010-04-07  Richard Guenther  <rguenther@suse.de>
31993
31994         PR tree-optimization/43270
31995         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
31996         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
31997         * tree-ssa-pre.c (phi_translate_1): Adjust.
31998         (fully_constant_expression): Split out vn_reference handling to ...
31999         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
32000         Fold reads from constant strings.
32001         (vn_reference_lookup): Handle fully constant references.
32002         (vn_reference_lookup_pieces): Likewise.
32003         * Makefile.in (expmed.o-warn): Add -Wno-error.
32004
32005 2010-04-07  Martin Jambor  <mjambor@suse.cz>
32006
32007         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
32008
32009 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
32010
32011         PR driver/41594
32012         * gcc.c: Add -static-libstdc++ to list of recognized options.
32013
32014 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32015
32016         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
32017
32018 2010-04-07  Richard Guenther  <rguenther@suse.de>
32019
32020         PR middle-end/42617
32021         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
32022         bases build simple mem attributes to retain points-to information.
32023
32024 2010-04-07  Richard Guenther  <rguenther@suse.de>
32025
32026         PR middle-end/42617
32027         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
32028         preserve points-to related information.
32029
32030 2010-04-07  Richard Guenther  <rguenther@suse.de>
32031
32032         PR middle-end/42617
32033         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
32034         discard plain indirect references.
32035         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
32036         * tree.c (tree_nop_conversion): Likewise.
32037
32038 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
32039
32040         PR debug/43628
32041         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
32042
32043 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
32044
32045         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
32046         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
32047
32048 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32049
32050         * tree-if-conv.c: Fix indentation and comments.
32051
32052 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32053
32054         * tree-if-conv.c: Sort static functions in topological order.
32055
32056 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32057
32058         * tree-if-conv.c: Fix indentation and comments.
32059
32060 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32061
32062         PR middle-end/43519
32063         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
32064         lang_hooks.types.type_for_size instead of
32065         build_nonstandard_integer_type.
32066         When converting an unsigned type to signed, double its precision.
32067         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
32068         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
32069         (graphite_create_new_loop_guard): When ub + 1 wraps around,
32070         use lb <= ub.
32071
32072 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32073
32074         PR middle-end/43519
32075         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
32076         POINTER_PLUS_EXPR for pointer types.
32077
32078 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32079
32080         PR middle-end/43519
32081         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
32082         * graphite-clast-to-gimple.c: Include langhooks.h.
32083         (max_signed_precision_type): New.
32084         (max_precision_type): Takes two types as arguments.
32085         (precision_for_value): New.
32086         (precision_for_interval): New.
32087         (gcc_type_for_interval): New.
32088         (gcc_type_for_value): New.
32089         (gcc_type_for_clast_term): New.
32090         (gcc_type_for_clast_red): New.
32091         (gcc_type_for_clast_bin): New.
32092         (gcc_type_for_clast_expr): Split up into several functions.
32093         (gcc_type_for_clast_eq): Rewritten.
32094         (compute_bounds_for_level): New.
32095         (compute_type_for_level_1): New.
32096         (compute_type_for_level): New.
32097         (gcc_type_for_cloog_iv): Removed.
32098         (gcc_type_for_iv_of_clast_loop): Rewritten.
32099         (graphite_create_new_loop): Compute the lower and upper bound types
32100         with gcc_type_for_clast_expr.
32101         (graphite_create_new_loop_guard): Same.
32102         (find_cloog_iv_in_expr): Removed.
32103         (compute_cloog_iv_types_1): Removed.
32104         (compute_cloog_iv_types): Removed.
32105         (gloog): Do not call compute_cloog_iv_types.
32106         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
32107         GBB_CLOOG_IV_TYPES.
32108         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
32109         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
32110         (GBB_CLOOG_IV_TYPES): Removed.
32111
32112 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32113
32114         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
32115         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
32116         (detect_commutative_reduction): Same.
32117
32118 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32119
32120         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
32121         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
32122         argument.
32123         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
32124         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
32125         (rewrite_commutative_reductions_out_of_ssa): Same.
32126         * passes.c (execute_function_todo): Call verify_ssa for every pass
32127         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
32128         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
32129         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
32130         with an extra argument.
32131         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
32132         verify_ssa only when the extra argument is true.
32133         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
32134         with an extra argument.
32135         (tree_transform_and_unroll_loop): Same.
32136
32137 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32138
32139         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
32140         for all the passes of the LNO having LOOP_CLOSED_SSA.
32141         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
32142         * tree-loop-distribution.c (pass_loop_distribution): Same.
32143         * tree-pass.h (TODO_verify_loops): Removed.
32144         * tree-ssa-loop.c (pass_tree_loop_init): Same.
32145         (pass_lim): Same.
32146         (pass_tree_unswitch): Same.
32147         (pass_predcom): Same.
32148         (pass_vectorize): Same.
32149         (pass_linear_transform): Same.
32150         (pass_graphite_transforms): Same.
32151         (pass_iv_canon): Same.
32152         (pass_complete_unroll): Same.
32153         (pass_complete_unrolli): Same.
32154         (pass_parallelize_loops): Same.
32155         (pass_loop_prefetch): Same.
32156         (pass_iv_optimize): Same.
32157
32158 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
32159
32160         PR middle-end/32824
32161         * passes.c (init_optimization_passes): Move pass_lim before
32162         pass_copy_prop and pass_dce_loop.
32163
32164 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
32165
32166         PR target/43667
32167         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
32168         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
32169         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
32170         MULTI_* defines for 4 argument vpermil2p* builtins.
32171
32172 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
32173
32174         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
32175         * config/i386/i386.c (x86_maybe_negate_const_int): New.
32176         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
32177         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
32178         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
32179         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
32180         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
32181         Use x86_maybe_negate_const_int to output insn mnemonic.
32182         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
32183         check from instruction predicate.  Update comments.
32184         * config/i386/sync.md (sync_add<mode>): Use
32185         x86_maybe_negate_const_int to output insn mnemonic.
32186
32187 2010-04-06  Jan Hubicka  <jh@suse.cz>
32188
32189         PR tree-optimization/42906
32190         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
32191         IGNORE_SELF argument.  Set visited_control_parents for fully
32192         processed BBs.
32193         (find_obviously_necessary_stmts): Update call of
32194         mark_control_dependent_edges_necessary.
32195         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
32196
32197 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
32198
32199         * config/i386/i386.md: Remove comment about 'e' and 'E'
32200         operand modifier.
32201
32202 2010-04-06  Richard Guenther  <rguenther@suse.de>
32203
32204         PR tree-optimization/43627
32205         * tree-vrp.c (extract_range_from_unary_expr): Widenings
32206         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
32207         not varying.
32208
32209 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
32210
32211         * BASE-VER: Change to 4.6.0.
32212
32213         PR target/43638
32214         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
32215         handling.
32216
32217 2010-04-06  Richard Guenther  <rguenther@suse.de>
32218
32219         PR middle-end/43661
32220         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
32221
32222 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32223
32224         * doc/invoke.texi (Optimize Options): Document that LTO
32225         won't remove object access purely due to incompatible
32226         declarations.
32227
32228 2010-04-04  Matthias Klose  <doko@ubuntu.com>
32229
32230         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
32231         Initialize variable.
32232
32233 2010-04-03  Richard Guenther  <rguenther@suse.de>
32234
32235         PR middle-end/42509
32236         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
32237         require a non-NULL MEM_OFFSET.
32238
32239 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
32240
32241         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
32242         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
32243         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
32244         config/alpha/predicates.md, config/arm/arm.md,
32245         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
32246         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
32247         config/darwin9.h, config/darwin.c, config/darwin.h,
32248         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
32249         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
32250         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
32251         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
32252         config/mips/mips.md, config/mn10300/mn10300.c,
32253         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
32254         config/rs6000/aix.h, config/rs6000/dfp.md,
32255         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
32256         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
32257         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
32258         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
32259         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
32260         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
32261         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
32262         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
32263         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
32264         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
32265         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
32266         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
32267         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
32268         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
32269         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
32270         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
32271         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
32272         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
32273         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
32274         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
32275         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
32276         opt-functions.awk, opth-gen.awk, params.def, passes.c,
32277         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
32278         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
32279         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
32280         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
32281         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
32282         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
32283         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
32284         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
32285         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
32286         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
32287         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
32288         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
32289         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
32290         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
32291
32292 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32293
32294         PR other/43620
32295         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
32296         * aclocal.m4: Regenerate.
32297
32298 2010-04-02  Richard Guenther  <rguenther@suse.de>
32299
32300         PR tree-optimization/43629
32301         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
32302         if we have seen a constant value.
32303
32304 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
32305
32306         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
32307
32308 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
32309
32310         PR target/43469
32311         * arm.c (legitimize_tls_address): Adjust call to
32312         gen_tls_load_dot_plus_four.
32313         (arm_note_pic_base): New function.
32314         (arm_cannot_copy_insn_p): Use it.
32315         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
32316         constraint.
32317
32318 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32319
32320         PR bootstrap/43531
32321
32322         Revert:
32323         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32324
32325         * Makefile.in ($(out_object_file)): Depend on
32326         gt-$(basename $(notdir $(out_file))).h.
32327
32328 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
32329
32330         * config.gcc (lm32-*-rtems*): Add t-lm32.
32331
32332 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
32333
32334         * config.gcc: Add lm32-*-rtems*.
32335         * config/lm32/rtems.h: New file.
32336
32337 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
32338
32339         PR target/42609
32340         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
32341
32342 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
32343
32344         * dwarf2out.c (output_compilation_unit_header): For
32345         -gdwarf-4 use version 4 instead of version 3.
32346         (output_line_info): For version 4 and above emit additional
32347         maximum ops per insn header field.
32348         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
32349
32350         * dwarf2out.c (is_c_family, is_java): Remove.
32351         (lower_bound_default): New function.
32352         (add_bound_info, gen_descr_array_type_die): Use it.
32353
32354 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
32355
32356         PR debug/43325
32357         * dwarf2out.c (gen_variable_die): Allow debug info for variable
32358         re-declaration when it happens in a function.
32359
32360 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
32361
32362         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
32363         (cgraph_remove_function_insertion_hook): Same.
32364         (cgraph_call_function_insertion_hooks): Same.
32365
32366 2010-04-01  Richard Guenther  <rguenther@suse.de>
32367
32368         PR middle-end/43614
32369         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
32370         and TREE_THIS_VOLATILE.
32371         (copy_ref_info): Likewise.
32372         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
32373         * tree.c (build6_stat): Ignore side-effects of all but arg5
32374         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
32375         TARGET_MEM_REF.
32376
32377 2010-04-01  Richard Guenther  <rguenther@suse.de>
32378
32379         PR tree-optimization/43607
32380         * ipa-type-escape.c (check_call): Do not access non-existing
32381         arguments.
32382
32383 2010-04-01  Richard Guenther  <rguenther@suse.de>
32384
32385         PR middle-end/43602
32386         Revert
32387         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
32388                     Jack Howarth  <howarth@bromo.med.uc.edu>
32389
32390         * tree-profile.c (tree_init_ic_make_global_vars): Make static
32391         variables TLS.
32392
32393 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32394
32395         * doc/install.texi (Prerequisites): Document libelf usability on
32396         IRIX 5/6 and Solaris 2.
32397         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
32398         Update GNU as, GNU ld requirements.
32399         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
32400         Document Sun Studio compiler download.
32401         Update and simplify as, ld recommendations.
32402         (Specific, *-*-solaris2.7): Note obsoletion, removal.
32403
32404 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32405
32406         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
32407         with_tune_32 to pentium4.
32408
32409 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
32410
32411         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
32412
32413 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32414
32415         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
32416         obsoletion, removal.
32417         Update IDO URL.
32418         Document GNU as requirement.
32419         Update configure requirements.
32420         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
32421         Recomment IRIX 6.5.18+.
32422         Document IDF/IDL requirement.
32423         Document GNU as requirement.
32424         Document GNU ld bootstrap failure.
32425         Remove freeware.sgi.com reference.
32426
32427 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32428
32429         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
32430         UNIX V4.0, V5.0 obsoletion, removal.
32431         Remove --with-gc=simple reference.
32432         Update VM requirements during bootstrap.
32433         Remove -oldas bootstrap description.
32434         Update binutils reference.
32435         Remove comparison failure note.
32436
32437 2010-03-31  Richard Guenther  <rguenther@suse.de>
32438             Zdenek Dvorak  <ook@ucw.cz>
32439             Sebastian Pop  <sebastian.pop@amd.com>
32440
32441         PR middle-end/43464
32442         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
32443         with multiple arguments.
32444         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
32445
32446 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
32447
32448         * graphite-dependences.c (print_pddr): Call print_pdr with an
32449         extra argument.
32450         * graphite-poly.c (debug_pdr): Add an extra argument for the
32451         verbosity level.
32452         (print_pdr): Same.
32453         (print_pbb_domain): Same.
32454         (print_pbb): Same.
32455         (print_scop_context): Same.
32456         (print_scop): Same.
32457         (print_cloog): Same.
32458         (debug_pbb_domain): Same.
32459         (debug_pbb): Same.
32460         (print_pdrs): Same.
32461         (debug_pdrs): Same.
32462         (debug_scop_context): Same.
32463         (debug_scop): Same.
32464         (debug_cloog): Same.
32465         (print_scop_params): Same.
32466         (debug_scop_params): Same.
32467         (print_iteration_domain): Same.
32468         (print_iteration_domains): Same.
32469         (debug_iteration_domain): Same.
32470         (debug_iteration_domains): Same.
32471         (print_scattering_function): Same.
32472         (print_scattering_functions): Same.
32473         (debug_scattering_function): Same.
32474         (debug_scattering_functions): Same.
32475         * graphite-poly.h (debug_pdr): Update declaration.
32476         (print_pdr): Same.
32477         (print_pbb_domain): Same.
32478         (print_pbb): Same.
32479         (print_scop_context): Same.
32480         (print_scop): Same.
32481         (print_cloog): Same.
32482         (debug_pbb_domain): Same.
32483         (debug_pbb): Same.
32484         (print_pdrs): Same.
32485         (debug_pdrs): Same.
32486         (debug_scop_context): Same.
32487         (debug_scop): Same.
32488         (debug_cloog): Same.
32489         (print_scop_params): Same.
32490         (debug_scop_params): Same.
32491         (print_iteration_domain): Same.
32492         (print_iteration_domains): Same.
32493         (debug_iteration_domain): Same.
32494         (debug_iteration_domains): Same.
32495         (print_scattering_function): Same.
32496         (print_scattering_functions): Same.
32497         (debug_scattering_function): Same.
32498         (debug_scattering_functions): Same.
32499
32500 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
32501
32502         * graphite-poly.c (print_scattering_function_1): New.
32503         (print_scattering_function): Call it.
32504         (print_scop_params): Remove spaces at the end of lines.
32505         (print_cloog): New.
32506         (debug_cloog): New.
32507         * graphite-poly.h (print_cloog): Declared.
32508         (debug_cloog): Declared.
32509
32510 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
32511
32512         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
32513         in loop->header.
32514         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
32515         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
32516         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
32517         to switch between adding the IV bump in loop->latch or in loop->header.
32518
32519 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
32520
32521         * graphite-poly.c (print_scattering_function): Pretty print following
32522         the scoplib format.
32523         (print_pdr): Same.
32524         (print_pbb_domain): Same.
32525         (dump_gbb_cases): Same.
32526         (dump_gbb_conditions): Same.
32527         (print_pdrs): Same.
32528         (print_pbb): Same.
32529         (print_scop_params): Same.
32530         (print_scop_context): Same.
32531         (print_scop): Same.
32532         (print_pbb_body): New.
32533         (lst_indent_to): New.
32534         (print_lst): Start new lines with a #.
32535         * graphite-poly.h (pbb_bb): New.
32536         (pbb_index): Use pbb_bb.
32537         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
32538         disjuncts.
32539         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
32540
32541 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
32542
32543         * dwarf2out.c (size_of_die): For -gdwarf-4 use
32544         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
32545         and 0 instead of 1 for dw_val_class_flag.
32546         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
32547         dw_val_class_range_list, dw_val_class_loc_list,
32548         dw_val_class_lineptr and dw_val_class_macptr, use
32549         DW_FORM_flag_present for dw_val_class_flag and
32550         DW_FORM_exprloc for dw_val_class_loc.
32551         (output_die): For -gdwarf-4 print dw_val_class_loc
32552         size as uleb128 instead of 1 or 2 bytes and don't print
32553         anything for dw_val_class_flag.
32554
32555         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
32556         instead of cselib_lookup following by tweaking locs->setting_insn.
32557
32558         PR bootstrap/43596
32559         * cselib.c (cselib_process_insn): Clear cselib_current_insn
32560         even before returning from label, setjmp call or volatile asm
32561         handling.
32562
32563 2010-03-31  Richard Guenther  <rguenther@suse.de>
32564
32565         PR middle-end/43600
32566         * cgraphunit.c (cgraph_output_in_order): Do not allocate
32567         temporary data on stack.
32568
32569 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32570
32571         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
32572         (PUSHSECTION_ASM_OP): Remove.
32573         (POPSECTION_ASM_OP): Remove.
32574         (PUSHSECTION_FORMAT): Remove.
32575         * config/sol2.h (PUSHSECTION_FORMAT): Define.
32576         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
32577         * config/sol2.c (solaris_output_init_fini): Use it.
32578
32579 2010-03-31  Jie Zhang  <jie@codesourcery.com>
32580
32581         PR 43574
32582         * opt-functions.awk (var_type_struct): Use signed char type
32583         for simple variables.
32584
32585 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32586
32587         * config/sol2.c: Include output.h.
32588         (solaris_assemble_visibility): New function.
32589         * config/t-sol2 (sol2.o): Add output.h dependency.
32590         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
32591         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
32592         Redefine.
32593
32594 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
32595
32596         PR target/43580
32597         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
32598         V2SImode or XFmode on PRE_DEC.
32599
32600         PR debug/43557
32601         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
32602         BLKmode.
32603
32604 2010-03-31  Jie Zhang  <jie@codesourcery.com>
32605
32606         PR 43562
32607         * reload.h (caller_save_initialized_p): Declare.
32608         * toplev.c (backend_init_target): Don't call
32609         init_caller_save but set caller_save_initialized_p to false.
32610         * caller-save.c (caller_save_initialized_p): Define.
32611         (init_caller_save): Check caller_save_initialized_p.
32612         * ira.c (ira): Call init_caller_save if flag_caller_saves.
32613
32614 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32615
32616         PR target/39048
32617         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
32618         and soft-fp/t-softfp to tmake_file.
32619         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
32620         (LIBGCC2_TF_CEXT): Define.
32621         (TF_SIZE): Define.
32622
32623 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
32624
32625         PR debug/42977
32626         * cselib.c (n_useless_values): Document handling of debug locs.
32627         (n_useless_debug_values, n_debug_values): New variables.
32628         (new_elt_loc_list): Don't add to debug values, keep count.
32629         (promote_debug_loc): New.
32630         (cselib_reset_table): Zero new variables.
32631         (entry_and_rtx_equal_p): Promote debug locs.
32632         (discard_useless_locs): Increment n_useless_debug_values for
32633         debug values.
32634         (remove_useless_values): Adjust n_useless_values and n_debug_values
32635         with n_useless_debug_values.
32636         (add_mem_for_addr): Promote debug locs.
32637         (cselib_lookup_mem): Likewise.
32638         (cselib_lookup_addr): Renamed to...
32639         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
32640         (cselib_log_lookup): ... this.  Turn into...
32641         (cselib_lookup_addr): ... new wrapper.
32642         (cselib_lookup_from_insn): New.
32643         (cselib_invalidate_regno): Increment n_useless_debug_values for
32644         debug values.
32645         (cselib_invalidate_mem): Likewise.
32646         (cselib_process_insn): Take n_deleted and n_debug_values into
32647         account to guard remove_useless_value call.
32648         (cselib_finish): Zero n_useless_debug_values.
32649         * cselib.h (cselib_lookup_from_insn): Declare.
32650         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
32651         (sched_analyze_2): Likewise.
32652
32653 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
32654
32655         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
32656         functions.
32657         (adjust_mems): Replace narrowing SUBREG of expression containing
32658         just PLUS, MINUS, MULT and ASHIFT of registers and constants
32659         with operations in the narrower mode.
32660
32661         PR debug/43593
32662         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
32663         regs_invalidated_by_call instead all call_used_reg_set registers.
32664
32665 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
32666
32667         PR middle-end/43430
32668         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
32669         pointer comparisons with types_compatible_p.
32670         * tree-vect-stmts.c (vectorizable_call): Same.
32671         (vectorizable_condition): Same.
32672
32673 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32674
32675         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
32676         stack check if the mask would be zero.
32677
32678 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
32679             Jack Howarth  <howarth@bromo.med.uc.edu>
32680
32681         * tree-profile.c (tree_init_ic_make_global_vars): Make static
32682         variables TLS.
32683
32684 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
32685
32686         PR other/25232
32687         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
32688         and __unordtf2.
32689         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
32690         Include ___unordxf2 and ___unordtf2.
32691         * config/i386/libgcc-glibc.ver: Do not define inheritance from
32692         GCC_4.4.0 here.
32693
32694 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
32695
32696         * config/lm32/t-lm32: New file.
32697         * config.gcc: Use the above file when targetting lm32.
32698
32699 2010-03-28  Duncan Sands  <baldrick@free.fr>
32700
32701         * Makefile.in (PLUGIN_HEADERS): Add except.h.
32702
32703 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
32704
32705         PR middle-end/43431
32706         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
32707         Improve vectorization cost model diagnostic.
32708
32709 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
32710
32711         PR middle-end/43436
32712         * tree-vect-data-refs.c (vect_analyze_data_refs): When
32713         compute_data_dependences_for_loop returns false, early exit
32714         and output an extra diagnostic for the failed data reference
32715         analysis.
32716
32717 2010-03-29  Richard Guenther  <rguenther@suse.de>
32718
32719         PR tree-optimization/43560
32720         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
32721         (can_sm_ref_p): Treat stores to readonly locations as trapping.
32722
32723 2010-03-29  Jie Zhang  <jie@codesourcery.com>
32724
32725         PR 43564
32726         * toplev.c (process_options): Set optimization_default_node
32727         and optimization_current_node.
32728         * opts.c (decode_options): Don't set optimization_default_node
32729         and optimization_current_node.
32730
32731 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
32732
32733         * config/rtems.h: Abandon -qrtems_debug.
32734
32735 2010-03-28  Jan Hubicka  <jh@suse.cz>
32736
32737         PR tree-optimization/43505
32738         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
32739         map should not be copied.
32740
32741 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32742
32743         PR middle-end/41674
32744         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
32745         cdtors, set DECL_PRESERVE_P.
32746         * ipa.c (cgraph_externally_visible_p): Return true if declaration
32747         should be preseved.
32748
32749 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
32750
32751         PR tree-optimization/43528
32752         * stor-layout.c (place_field): Check that constant fits into
32753         unsigned HWI when skipping calculation of MS bitfield layout.
32754
32755 2010-03-27  Jan Hubicka  <jh@suse.cz>
32756
32757         PR middle-end/43391
32758         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
32759         notice_global_symbol work.
32760
32761 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
32762
32763         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
32764         instead of dwarf2out_decl.
32765         (struct var_loc_node): Remove section_label field.
32766         (dwarf2out_function_decl): New function.
32767         (dwarf2out_var_location): Don't set section_label field.
32768         (dwarf2out_begin_function): Don't empty decl_loc_table here.
32769
32770 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
32771
32772         PR tree-optimization/43544
32773         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32774         First argument for builtin vectorized function hook is now a
32775         tree to be able to distinguish between machine specific and
32776         standard builtins.
32777         * targhooks.c (default_builtin_vectorized_function): Ditto.
32778         * targhooks.h (default_builtin_vectorized_function): Ditto.
32779         * target.h (struct gcc_target): Ditto.
32780         * tree-vect-stmts.c (vectorizable_function): Ditto.
32781         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
32782         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
32783         Ditto.
32784
32785 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
32786
32787         PR c/43381
32788         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
32789         nested binding iff it is a FUNCTION_DECL.
32790         (store_parm_decls_newstyle): Pass nested=true to bind for
32791         FUNCTION_DECLs amongst parameters.
32792
32793 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
32794
32795         * var-tracking.c (vt_expand_loc_callback): Don't run
32796         cselib_expand_value_rtx_cb in dummy mode if
32797         cselib_dummy_expand_value_rtx_cb returned false.
32798
32799         * var-tracking.c (emit_note_insn_var_location): For one part
32800         notes with offset 0, don't add EXPR_LIST around the location.
32801         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
32802         add_location_or_const_value_attribute): Adjust for that change.
32803
32804         PR debug/43540
32805         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
32806         into first operand and location into second.
32807         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
32808         dw_cfi_oprnd_loc for DW_CFA_expression.
32809         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
32810         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
32811         assume first argument is regnum and second argument is location.
32812
32813 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
32814
32815         PR target/42113
32816         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
32817         of scratch register to DImode.  Split to DImode comparison operator.
32818         Use SImode subreg of scratch register in the multiplication.
32819         (*cmp_sadd_sidi): Ditto.
32820         (*cmp_ssub_si): Ditto.
32821         (*cmp_ssub_sidi): Ditto.
32822
32823 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
32824
32825         PR target/43524
32826         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
32827         Remove invalid assert and wrong comment.
32828
32829 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
32830
32831         PR debug/43516
32832         * flags.h (final_insns_dump_p): New extern.
32833         * final.c (final_insns_dump_p): New variable.
32834         (rest_of_clean_state): Set it before -fdump-final-insns=
32835         dumping, clear afterwards.
32836         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
32837         MEM_ALIAS_SET on MEMs.
32838
32839 2010-03-26  David S. Miller  <davem@davemloft.net>
32840
32841         * configure.ac: Fix sparc GOTDATA_OP bug check.
32842         * configure: Rebuild.
32843
32844 2010-03-26  Alan Modra  <amodra@gmail.com>
32845
32846         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
32847
32848 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32849
32850         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
32851         TLS_SECTION_ASM_FLAG.
32852
32853 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
32854
32855         PR bootstrap/43511
32856         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
32857         Clear first_function_block_is_cold.
32858
32859         PR c/43385
32860         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
32861         argument if the argument is truth_value_p.
32862
32863 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
32864
32865         * config/rs6000/constraints.md: Update copyright year for my changes.
32866
32867         PR target/43484
32868         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
32869         used in reg+reg addressing, swap registers.
32870
32871 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
32872
32873         PR debug/43293
32874         * target.h (struct gcc_target): Add code_end hook.
32875         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
32876         if not yet defined.
32877         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
32878         * toplev.c (compile_file): Call targetm.asm_out.code_end
32879         hook before unwind info/debug info output.
32880         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
32881         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
32882         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32883         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
32884         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32885         * config/i386/i386.c (ix86_file_end): Renamed to...
32886         (ix86_code_end): ... this.  Make static.  Don't call
32887         file_end_indicate_exec_stack.  Emit unwind info using
32888         final_start_function/final_end_function.
32889         (darwin_x86_file_end): Remove.
32890         (TARGET_ASM_CODE_END): Define.
32891         * config/i386/i386.h (TARGET_ASM_FILE_END,
32892         NEED_INDICATE_EXEC_STACK): Don't define.
32893         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
32894         (TARGET_ASM_FILE_END): Define to darwin_file_end.
32895         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
32896         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
32897
32898         PR target/43498
32899         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
32900         at the beginning and final_end_function at the end.
32901         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
32902
32903 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32904
32905         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
32906         and Sun as TLS syntax.
32907         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
32908         * configure: Regenerate.
32909         * config.in: Regenerate.
32910         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
32911         (default_elf_asm_named_section): Use it.
32912         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
32913         (i386_output_dwarf_dtprel): Likewise.
32914         (output_addr_const_extra): Likewise.
32915         (output_pic_addr_const): Lowercase @GOTTPOFF.
32916         (output_addr_const_extra): Likewise.
32917         (output_pic_addr_const): Lowercase @GOTNTPOFF.
32918         (output_addr_const_extra): Likewise.
32919         (output_pic_addr_const): Lowercase @INDNTPOFF.
32920         (output_addr_const_extra): Likewise.
32921         (output_pic_addr_const): Lowercase @NTPOFF.
32922         (output_addr_const_extra): Likewise.
32923         (output_pic_addr_const): Lowercase @TPOFF.
32924         (output_addr_const_extra): Likewise.
32925         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
32926         (*tls_global_dynamic_64): Likewise.
32927         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
32928         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
32929
32930         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
32931         (ASM_OUTPUT_TLS_COMMON): Use it.
32932         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
32933
32934         PR target/38118
32935         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
32936         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
32937         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
32938         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
32939         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32940         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
32941
32942 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32943
32944         * config/i386/i386.c (override_options): Don't accept
32945         -mtls-dialect=sun any longer.
32946         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
32947         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
32948         (*tls_local_dynamic_base_32_sun): Likewise.
32949         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32950
32951 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
32952
32953         PR debug/43508
32954         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32955         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
32956
32957         PR debug/43479
32958         * ira.c (adjust_cleared_regs): New function.
32959         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
32960
32961         PR debug/19192
32962         PR debug/43479
32963         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
32964         from gimple_block.
32965         * expr.c (expand_expr_real): Restore previous
32966         curr_insn_source_location and curr_insn_block after
32967         expand_expr_real_1 call.
32968         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
32969         instead of expand_expr_real_1.
32970
32971 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
32972
32973         PR rtl-optimization/43413
32974         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
32975         hard regs too.
32976
32977 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
32978
32979         PR target/43348
32980         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
32981         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
32982
32983 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
32984
32985         * config/i386/i386.c (ix86_target_string): Add -mfma.
32986         Fix a typo in comment.
32987
32988 2010-03-22  Mike Stump  <mikestump@comcast.net>
32989
32990         PR target/23071
32991         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
32992         Don't overly align based upon packed packed fields.
32993
32994 2010-03-22  Jason Merrill  <jason@redhat.com>
32995
32996         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
32997         Use () rather than [], and move before the element type.
32998
32999 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33000
33001         * doc/configfiles.texi (Configuration Files): Removed
33002         fixinc/Makefile*, intl/Makefile.*.
33003         * doc/makefile.texi: Fixed markup. Abstract from version
33004         control system used.
33005         (Makefile): Removed obsolete java/parse.y example.
33006         * doc/sourcebuild.texi: Likewise.
33007         (Top Level): Added config, gnattools, libdecnumber, libgcc,
33008         libgomp, libssp.  Removed fastjar.
33009         (Miscellaneous Docs): Clarify location.
33010         Added COPYING3, COPYING3.LIB.
33011         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
33012
33013 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33014
33015         PR target/38085
33016         * config/i386/i386.c (x86_function_profiler)
33017         [!NO_PROFILE_COUNTERS]: Fix typo.
33018         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
33019         instead of callq.
33020
33021 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
33022             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33023
33024         * doc/sourcebuild.texi (Test Directives): Split into six
33025         subsections, with most of the current text in new subsections
33026         Directives, Selectors, and Final Actions.
33027         (Directives): Split list of test directives into multiple
33028         subsubsections.
33029         (Selectors): Describe use and syntax of selectors.
33030         (Effective-Target Keywords): Describe all existing keywords.
33031         (Add Options): Describe features for dg-add-options.
33032         (Require Support): Describe variants of dg-require-support.
33033         (Final Actions): Describe commands to use in dg-final.
33034
33035 2010-03-22  Michael Matz  <matz@suse.de>
33036
33037         PR middle-end/43475
33038         * recog.c (validate_replace_rtx_group): Replace also in
33039         REG_EQUAL and REG_EQUIV notes.
33040
33041 2010-03-22  Richard Guenther  <rguenther@suse.de>
33042
33043         PR tree-optimization/43390
33044         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
33045         sure vector extracts are type correct.
33046
33047 2010-03-22  Richard Guenther  <rguenther@suse.de>
33048
33049         PR middle-end/40106
33050         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
33051         x * sqrt (x) even when optimizing for size if the target
33052         has native support for sqrt.
33053
33054 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
33055
33056         * varasm.c (make_decl_rtl_for_debug): Also clear
33057         flag_mudflap for the duration of make_decl_rtl call.
33058
33059         PR debug/43443
33060         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
33061         locs from preserved VALUEs.
33062
33063 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33064
33065         PR middle-end/42718
33066         * pa.md (movmemsi): Set align to one if zero.
33067         (movmemdi): Likewise.
33068
33069 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
33070
33071         PR target/42321
33072         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
33073         with their corresponding prologue pushes.
33074
33075 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
33076
33077         PR target/43156
33078         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
33079         at the begining or end.
33080         (spu_expand_epilogue): Likewise.
33081
33082 2010-03-20  Richard Guenther  <rguenther@suse.de>
33083
33084         PR rtl-optimization/43438
33085         * combine.c (make_extraction): Properly zero-/sign-extend an
33086         extraction of the low part of a CONST_INT.  Also handle
33087         CONST_DOUBLE.
33088
33089 2010-03-19  Mike Stump  <mikestump@comcast.net>
33090
33091         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
33092         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
33093         (override_options): Use SUBTARGET32_DEFAULT_CPU.
33094
33095 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
33096
33097         PR c/43211
33098         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
33099         an error.
33100
33101 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
33102
33103         PR rtl-optimization/42258
33104         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
33105         use that may match DEF.
33106
33107         PR target/40697
33108         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
33109         the cost of loading the constant rather than assuming
33110         COSTS_N_INSNS (1).
33111         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
33112         outer code is AND, do the same tests as the andsi3 expander and
33113         return COSTS_N_INSNS (1) if and is cheap.
33114
33115         * optabs.c (avoid_expensive_constant): Fix formatting.
33116
33117 2010-03-19  Michael Matz  <matz@suse.de>
33118
33119         PR c++/43116
33120         * attribs.c (decl_attributes): When rebuilding a function pointer
33121         type use the same qualifiers as the original pointer type.
33122
33123 2010-03-19  Martin Jambor  <mjambor@suse.cz>
33124
33125         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
33126         and is_gimple_ip_invariant_address.
33127
33128 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33129
33130         Revert
33131         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33132
33133         * config/arm/arm.c (arm_override_options): Turn off
33134         flag_dwarf2_cfi_asm for AAPCS variants.
33135
33136 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33137
33138         PR target/43399
33139         * config/arm/arm.c (emit_multi_reg_push): Update comments.
33140         Use PRE_MODIFY instead of PRE_DEC.
33141         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
33142         (vfp_emit_fstmd): Likewise.
33143
33144 2010-03-19  Michael Matz  <matz@suse.de>
33145
33146         PR target/43305
33147         * builtins.c (expand_builtin_interclass_mathfn,
33148         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
33149         if that fails.
33150
33151 2010-03-19  Richard Guenther  <rguenther@suse.de>
33152
33153         PR tree-optimization/43415
33154         * tree-ssa-pre.c (phi_translate): Split out worker to ...
33155         (phi_translate_1): ... this.
33156         (phi_translate): Move all caching here.  Cache all NARY
33157         and REFERENCE translations.
33158
33159 2010-03-19  David S. Miller  <davem@davemloft.net>
33160
33161         With help from Eric Botcazou.
33162         * config/sparc/sparc.c: Include dwarf2out.h.
33163         (emit_pic_helper): Delete.
33164         (pic_helper_symbol_name): Delete.
33165         (pic_helper_emitted_p): Delete.
33166         (pic_helper_needed): New.
33167         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
33168         (get_pc_thunk_name): New.
33169         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
33170         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
33171         Set pic_helper_needed to true.  Don't call emit_pic_helper.
33172         (sparc_expand_prologue): Update load_pic_register call.
33173         (sparc_output_mi_thunk): Likewise.
33174         (sparc_file_end): Emit a hidden comdat symbol for the PIC
33175         thunk if possible.  Output CFI information as needed.
33176
33177 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
33178             Jack Howarth  <howarth@bromo.med.uc.edu>
33179
33180         PR target/36399
33181         * config/i386/i386.h: Fix ABI on darwin x86-32.
33182
33183 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
33184
33185         * tree.h: Declare make_decl_rtl_for_debug.
33186         * varasm.c (make_decl_rtl_for_debug): New.
33187         * dwarf2out.c (rtl_for_decl_location): Call it.
33188         * cfgexpand.c (expand_debug_expr): Call it.
33189
33190 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
33191
33192         PR bootstrap/43399
33193         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
33194         mem_mode.
33195
33196         PR bootstrap/43403
33197         * var-tracking.c (vt_init_cfa_base): Do nothing if
33198         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
33199
33200 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
33201
33202         PR debug/42873
33203         * var-tracking.c (canonicalize_vars_star): New.
33204         (dataflow_post_merge_adjust): Use it.
33205
33206 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
33207
33208         PR debug/43058
33209         * var-tracking.c (non_suitable_const): New function.
33210         (add_uses): For DEBUG_INSNs with constants, don't record any
33211         value, instead just the constant value itself.
33212         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
33213         is not VAR_LOC_UNKNOWN_P, set var to the constant.
33214         (emit_notes_in_bb): Likewise.
33215         (emit_note_insn_var_location): For onepart variables if
33216         cur_loc is a VOIDmode constant, use DECL_MODE.
33217
33218 2010-03-18  Martin Jambor  <mjambor@suse.cz>
33219
33220         PR middle-end/42450
33221         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
33222         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
33223         all non-clones.  Moved call redirection...
33224         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
33225         (cgraph_materialize_all_clones): Dispose of all
33226         combined_args_to_skip bitmaps.
33227         (verify_cgraph_node): Do not check for edges pointing to wrong
33228         nodes in inline clones.
33229         * tree-inline.c (copy_bb): Call
33230         cgraph_redirect_edge_call_stmt_to_callee.
33231         * ipa.c (cgraph_remove_unreachable_nodes): Call
33232         cgraph_node_remove_callees even when there are used clones.
33233
33234 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
33235
33236         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
33237
33238 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
33239
33240         PR target/43383
33241         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
33242         for 32bit.
33243
33244 2010-03-18  Michael Matz  <matz@suse.de>
33245
33246         PR middle-end/43419
33247         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
33248         into sqrt(x) if we need to preserve signed zeros.
33249
33250 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
33251             Eric Botcazou  <ebotcazou@adacore.com>
33252
33253         PR rtl-optimization/43360
33254         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
33255         note if we don't know its invariant status.
33256
33257 2010-03-18  Michael Matz  <matz@suse.de>
33258
33259         PR tree-optimization/43402
33260         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
33261         PHI chains of ssa names registered for update.
33262
33263 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
33264
33265         PR target/42427
33266         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
33267         non-offsettable and pre_modify update addressing.
33268         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
33269         and "2" alternatives "#".
33270         (*movdd_softfloat32): Make all alternatives "#";
33271         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
33272         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
33273         (*movdf_softfloat32): Make all alternatives "#";
33274         (movdi): Use the new DIFD mode iterator to create a common splitter
33275         for movdi, movdf and movdd patterns.
33276
33277 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
33278
33279         * common.opt (dumpdir): Remove redundant tab.
33280
33281 2010-03-17  Martin Jambor  <mjambor@suse.cz>
33282
33283         PR tree-optimization/43347
33284         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
33285         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
33286
33287 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
33288
33289         PR rtl-optimization/42216
33290         * regrename.c (create_new_chain): New function, broken out from...
33291         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
33292         appending a use to an empty chain.
33293         (build_def_use): Remove previous changes that convert OP_INOUT to
33294         OP_OUT operands; instead detect the case where an OP_INOUT operand
33295         uses a previously untracked register and create an empty chain for it.
33296
33297 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33298
33299         * doc/extend.texi (Function Attributes): Rewrite unfinished
33300         sentence in ms_abi documentation.
33301
33302 2010-03-17  Alan Modra  <amodra@gmail.com>
33303
33304         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
33305         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
33306         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
33307         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
33308
33309 2010-03-16  Richard Henderson  <rth@redhat.com>
33310
33311         PR middle-end/43365
33312         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
33313         (lower_try_finally): Save and restore eh_seq around the expansion
33314         of the try-finally.
33315
33316 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
33317
33318         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
33319         statements before splitting block.
33320
33321 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33322
33323         * doc/sourcebuild.texi (Testsuites): Fix markup.
33324         Use pathnames relative to gcc/testsuite.
33325         (Test Directives): Move description of how timeout is determined.
33326         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
33327         (C Tests): Correct gcc.misc-tests directory.
33328         Framework tests now live in gcc.test-framework.
33329
33330 2010-03-16  Richard Guenther  <rguenther@suse.de>
33331
33332         PR middle-end/43379
33333         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
33334         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
33335
33336 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
33337             Alexandre Oliva  <aoliva@redhat.com>
33338
33339         PR tree-optimization/42917
33340         * lambda-code.c (remove_iv): Skip debug statements.
33341         (lambda_loopnest_to_gcc_loopnest): Likewise.
33342         (not_interesting_stmt): Debug statements are not interesting.
33343
33344 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
33345
33346         PR debug/43051
33347         PR debug/43092
33348         * cselib.c (cselib_preserve_constants,
33349         cfa_base_preserved_val): New static variables.
33350         (preserve_only_constants): New function.
33351         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
33352         clear its REG_VALUES.  If cselib_preserve_constants, don't
33353         empty the whole hash table, but preserve there VALUEs with constants,
33354         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
33355         (cselib_preserve_cfa_base_value): New function.
33356         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
33357         (cselib_init): Change argument to int bitfield.  Set
33358         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
33359         is in it.
33360         (cselib_finish): Clear cselib_preserve_constants and
33361         cfa_base_preserved_val.
33362         * cselib.h (enum cselib_record_what): New enum.
33363         (cselib_init): Change argument to int.
33364         (cselib_preserve_cfa_base_value): New prototype.
33365         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
33366         * dse.c (dse_step1): Likewise.
33367         * cfgcleanup.c (thread_jump): Likewise.
33368         * sched-deps.c (sched_analyze): Likewise.
33369         * gcse.c (local_cprop_pass): Likewise.
33370         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
33371         If FN is non-NULL, call the callback always and whenever it returns
33372         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
33373         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
33374         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
33375         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
33376         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
33377         * var-tracking.c: Include recog.h.
33378         (bb_stack_adjust_offset): Remove.
33379         (vt_stack_adjustments): Don't call it, instead just gather the
33380         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
33381         (adjust_stack_reference): Remove.
33382         (compute_cfa_pointer): New function.
33383         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
33384         (struct adjust_mem_data): New type.
33385         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
33386         functions.
33387         (get_address_mode): New function.
33388         (replace_expr_with_values): Use it.
33389         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
33390         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
33391         (adjust_sets): Remove.
33392         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
33393         Use get_address_mode.
33394         (get_adjusted_src): Remove.
33395         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
33396         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
33397         (add_with_sets): Don't call adjust_sets.
33398         (fp_setter, vt_init_cfa_base): New functions.
33399         (vt_initialize): Change return type to bool.  Move most of pool etc.
33400         initialization to the beginning of the function from end.  Pass
33401         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
33402         If !frame_pointer_needed, call vt_stack_adjustment before mos
33403         vector is filled, call vt_init_cfa_base if argp/framep has been
33404         eliminated to sp.  If frame_pointer_needed and argp/framep has
33405         been eliminated to hard frame pointer, set
33406         hard_frame_pointer_adjustment and call vt_init_cfa_base after
33407         encountering fp setter in the prologue.  For MO_ADJUST, call
33408         log_op_type before pusing the op into mos vector, not afterwards.
33409         Call adjust_insn before cselib_process_insn/add_with_sets,
33410         call cancel_changes (0) afterwards.
33411         (variable_tracking_main_1): Adjust for vt_initialize calling
33412         vt_stack_adjustments and returning whether it succeeded or not.
33413
33414 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
33415
33416         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
33417         debug statements.
33418
33419 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
33420
33421         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
33422         has been set.
33423         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
33424         drap_reg has not been set.
33425
33426 2010-03-15  Michael Matz  <matz@suse.de>
33427
33428         PR middle-end/43300
33429         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
33430         use it to expand block copies.
33431         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
33432         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
33433         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
33434
33435 2010-03-15  Richard Guenther  <rguenther@suse.de>
33436
33437         PR tree-optimization/43367
33438         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
33439         elimination check.
33440
33441 2010-03-15  Richard Guenther  <rguenther@suse.de>
33442
33443         PR tree-optimization/43317
33444         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
33445
33446 2010-03-15  Martin Jambor  <mjambor@suse.cz>
33447
33448         PR tree-optimization/43141
33449         * tree-sra.c (create_abstract_origin): New function.
33450         (modify_function): Call create_abstract_origin.
33451
33452 2010-03-15  Chris Demetriou  <cgd@google.com>
33453
33454         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
33455         wasn't copied.
33456
33457 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33458
33459         PR middle-end/43354
33460         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
33461         call insert_out_of_ssa_copy for default definitions.
33462
33463 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33464
33465         * graphite-clast-to-gimple.c (my_long_long): Defined.
33466         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
33467         * graphite-sese-to-poly.c (my_long_long): Defined.
33468         (scop_ivs_can_be_represented): Use it.
33469
33470 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33471
33472         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
33473         graphite-max-bbs-per-function, and loop-block-tile-size.
33474         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
33475         with "maximum".
33476         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
33477
33478 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33479
33480         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
33481         forward declaration.
33482         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
33483         (add_upper_bounds_from_estimated_nit): New.
33484         (build_loop_iteration_domains): Use it.
33485
33486 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33487
33488         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
33489
33490 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33491
33492         PR middle-end/43306
33493         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
33494         should be an INTEGER_CST.  Also handle CASE_CONVERT.
33495
33496 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33497
33498         * graphite.c (graphite_initialize): To bound the number of bbs per
33499         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
33500         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
33501         * doc/invoke.texi: Document it.
33502
33503 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33504
33505         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
33506         * graphite-sese-to-poly.h (build_poly_scop): Same.
33507
33508 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
33509
33510         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
33511         the number of parameters in the scop.  Use as an upper bound
33512         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
33513         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
33514         * doc/invoke.texi: Document it.
33515
33516 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
33517
33518         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
33519         * doc/c-tree.texi: Remove.
33520         * doc/generic.texi: Merge c-tree.texi here.
33521         * doc/gccint.texi (Trees): Remove menu entry.
33522         (c-tree.texi): Remove @include.
33523         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
33524         * doc/languages.texi (Reading RTL): Ditto.
33525
33526 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
33527
33528         PR target/42869
33529         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
33530
33531 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
33532
33533         PR middle-end/42431
33534         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
33535         code added to work around reload clobbering CONST insns.
33536
33537 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
33538
33539         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
33540         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
33541         (cselib_preserve_only_values): Remove retain argument, don't
33542         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
33543         * cselib.h (cselib_preserve_only_values): Remove retain argument.
33544         * var-tracking.c (micro_operation): Move insn field before union.
33545         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
33546         (struct variable_tracking_info_def): Remove n_mos field, change
33547         mos into a vector of micro_operations.
33548         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
33549         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
33550         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
33551         changing into a vector.
33552         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
33553         come before all other uops generated by add_stores.
33554         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
33555         argument removal.
33556         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
33557         a vector.  Run just one pass over the bbs instead of separate counting
33558         and computation phase.
33559         (vt_finalize): Free VTI (bb)->mos vector instead of array.
33560
33561         PR debug/43329
33562         * tree-inline.c (remap_decls): Put old_var rather than origin_var
33563         into *nonlocalized_list vector.
33564         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
33565         even if origin is non-NULL.
33566         (gen_variable_die): Likewise.
33567         (process_scope_var): Don't change origin.
33568         (gen_decl_die): Likewise.
33569         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
33570         before adding new edges instead of after it, fix moving over
33571         debug stmts.
33572
33573 2010-03-11  David S. Miller  <davem@davemloft.net>
33574
33575         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
33576         of four.
33577         * configure: Rebuild.
33578
33579 2010-03-11  Martin Jambor  <mjambor@suse.cz>
33580
33581         PR tree-optimization/43257
33582         * tree.c (assign_assembler_name_if_neeeded): New function.
33583         (free_lang_data_in_cgraph): Assembler name assignment moved to the
33584         above new function.
33585         * tree.h (assign_assembler_name_if_neeeded): Declare.
33586         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
33587         the function if needed.
33588
33589 2010-03-11  Chris Demetriou  <cgd@google.com>
33590
33591         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
33592         include/stdint-gcc.h, and include/stdint.h world-readable.
33593
33594 2010-03-11  Richard Guenther  <rguenther@suse.de>
33595
33596         PR tree-optimization/43255
33597         * tree-vrp.c (process_assert_insertions_for): Do not insert
33598         asserts for trivial conditions.
33599
33600 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33601
33602         PR tree-optimization/43280
33603         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
33604         generation.  Move calculation of size out of the if branch.
33605         (find_bswap): Modify compare number generation.
33606
33607 2010-03-11  Richard Guenther  <rguenther@suse.de>
33608
33609         PR lto/43200
33610         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
33611         (input_gimple_stmt): Fixup handled component types during
33612         operand read.  Also fix up decls in ADDR_EXPRs.
33613
33614 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
33615
33616         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
33617         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
33618
33619 2010-03-10  Jan Hubicka  <jh@suse.cz>
33620
33621         PR c/43288
33622         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
33623         * varasm.c (get_variable_section): Don't do that here...
33624         (make_decl_rtl): ... and here.
33625         (do_assemble_alias): Produce decl RTL.
33626         (assemble_alias): Likewise.
33627
33628 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
33629
33630         PR debug/43290
33631         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
33632         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
33633         of fde->vdrap_reg.
33634         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
33635         (based_loc_descr): Only express drap or vdrap regno based expressions
33636         using DW_OP_fbreg when not optimizing.
33637         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
33638         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
33639         REG_CFA_SET_VDRAP note.
33640
33641 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
33642
33643         PR tree-optimization/43236
33644         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
33645         error in calculation of base address in reverse iteration case.
33646         (generate_builtin): Take number of latch executions if the statement
33647         is in the latch.
33648
33649 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
33650
33651         PR middle-end/42859
33652         * tree-eh.c: Include pointer-set.h.
33653         (lower_eh_dispatch): Filter out duplicate case labels and
33654         remove the unneeded edge when the label is unused.  Return
33655         true when some edges are removed.
33656         (execute_lower_eh_dispatch): When any lowering resulted in
33657         removing an edge, also delete unreachable blocks.
33658
33659 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
33660
33661         PR bootstrap/43287
33662         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
33663         UNSPEC_MACHOPIC_OFFSET.
33664
33665 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
33666
33667         PR target/43294
33668         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
33669         (m68k_delegitimize_address): New function.
33670
33671 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
33672
33673         PR debug/43299
33674         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
33675
33676         PR debug/43299
33677         * var-tracking.c (adjust_sets): New function.
33678         (count_with_sets, add_with_sets): Use it.
33679         (get_adjusted_src): New inline function.
33680         (add_stores): Use it.
33681
33682         PR debug/43304
33683         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
33684         call cselib_dummy_expand_value_rtx_cb instead of
33685         cselib_expand_value_rtx_cb.
33686
33687         PR debug/43293
33688         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
33689         * config/i386/i386.c: Include debug.h and dwarf2out.h.
33690         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
33691         and .cfi_endproc around the pic thunks.
33692         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
33693         all queued unwind info register saves are saved before the call.
33694         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
33695         considered as sp-=4 for unwind info and the pop as sp+=4 which
33696         also clobbers dest, but doesn't actually restore it.
33697
33698         PR debug/43290
33699         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
33700         RTX_FRAME_RELATED_P.
33701
33702 2010-03-09  Jie Zhang  <jie@codesourcery.com>
33703
33704         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
33705         whitespaces in output template.
33706
33707 2010-03-09  Jie Zhang  <jie@codesourcery.com>
33708
33709         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
33710         out array boundary.
33711
33712 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
33713
33714         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
33715         builtins.exp in a separate job.
33716
33717 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33718
33719         * graphite-sese-to-poly.c (add_param_constraints): Use
33720         lower_bound_in_type and upper_bound_in_type.
33721
33722 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33723
33724         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
33725         instead of unsigned_type_node.
33726
33727 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33728             Reza Yazdani  <reza.yazdani@amd.com>
33729
33730         PR middle-end/43065
33731         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
33732         on pointer type parameters.
33733
33734 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
33735
33736         PR middle-end/42644
33737         PR middle-end/42130
33738         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
33739         handle conversions from pointer to integers.
33740         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
33741         induction variable, to be able to work with code generated by CLooG.
33742         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
33743         (build_poly_scop): Bail out if we cannot codegen a loop.
33744
33745 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
33746
33747         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
33748         code generation with gloog_error.
33749
33750 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33751
33752         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
33753         Call fold_convert on all the returned values.
33754         (expand_scalar_variables_expr): Pass to
33755         expand_scalar_variables_ssa_name the type of the resulting expression.
33756
33757 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33758
33759         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
33760         ppl_min_for_le_pointset.
33761         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
33762         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
33763
33764 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33765
33766         * graphite-dependences.c (map_into_dep_poly): Removed.
33767         (dependence_polyhedron_1): Use combine_context_id_scat.
33768
33769 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33770
33771         * graphite-poly.h (struct poly_scattering): Add layout documentation.
33772         (struct poly_bb): Same.
33773         (combine_context_id_scat): New.
33774
33775 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33776
33777         PR middle-end/42326
33778         * sese.c (name_defined_in_loop_p): Return false for default
33779         definitions.
33780
33781 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33782
33783         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
33784         and clean up the logic.
33785
33786 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
33787
33788         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
33789         early return.
33790
33791 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
33792
33793         * var-tracking.c (remove_cselib_value_chains): Define only for
33794         ENABLE_CHECKING.
33795         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
33796         delete_slot_part, emit_notes_for_differences_1): Don't call
33797         remove_cselib_value_chains here.
33798         (set_slot_part, emit_notes_for_differences_2): Don't call
33799         add_cselib_value_chains here.
33800         (preserved_values): New vector.
33801         (preserve_value): New function.
33802         (add_uses, add_stores, vt_add_function_parameters): Use it
33803         instead of cselib_preserve_value.
33804         (changed_values_stack): New vector.
33805         (check_changed_vars_0): New function.
33806         (check_changed_vars_1, check_changed_vars_2): Use it.
33807         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
33808         changed_values_stack VALUEs.
33809         (vt_emit_notes): For all preserved_values call
33810         add_cselib_value_chains.  If ENABLE_CHECKING call
33811         remove_cselib_value_chains before verifying value_chains is empty.
33812         Initialize and free changed_values_stack.
33813         (vt_initialize): Initialize preserved_values.
33814         (vt_finalize): Free preserved_values.
33815
33816 2010-03-08  Richard Guenther  <rguenther@suse.de>
33817
33818         PR tree-optimization/43269
33819         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
33820         region detection.
33821
33822 2010-03-08  Martin Jambor  <mjambor@suse.cz>
33823
33824         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
33825         (ipa_is_param_called): Removed.
33826         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
33827         (ipa_print_node_params): Do not print the called flag.
33828         (ipa_write_node_info): Do not stream the called flag.
33829         (ipa_read_node_info): Likewise.
33830
33831 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
33832
33833         PR debug/43176
33834         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
33835         * cselib.c (struct expand_value_data): Add dummy field.
33836         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
33837         dummy to false.
33838         (cselib_dummy_expand_value_rtx_cb): New function.
33839         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
33840         any rtl.
33841         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
33842         * var-tracking.c: Include pointer-set.h.
33843         (variable): Change n_var_parts to char from int.  Add
33844         cur_loc_changed and in_changed_variables fields.
33845         (variable_canonicalize): Remove.
33846         (shared_var_p): New inline function.
33847         (unshare_variable): Maintain cur_loc_changed and
33848         in_changed_variables fields.  If var was in changed_variables,
33849         replace it there with new_var.  Just copy cur_loc instead of
33850         resetting it to something else.
33851         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
33852         (dataflow_set_union): Don't call variable_canonicalize.
33853         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
33854         of their DEBUG_EXPR_TREE_DECLs.
33855         (canonicalize_loc_order_check): Verify that cur_loc is NULL
33856         and in_changed_variables and cur_loc_changed is false.
33857         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
33858         and cur_loc_changed.  Don't update cur_loc here.
33859         (variable_merge_over_src): Don't call variable_canonicalize.
33860         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
33861         removing loc that is equal to cur_loc, clear cur_loc,
33862         set cur_loc_changed and ensure variable_was_changed is called.
33863         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
33864         compare pointers in cur_loc check, if it is equal to loc,
33865         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
33866         (variable_different_p): Remove compare_current_location argument,
33867         don't compare cur_loc.
33868         (dataflow_set_different_1): Adjust variable_different_p caller.
33869         (variable_was_changed): If dv had some var in changed_variables
33870         already, reset in_changed_variables flag for it and propagate
33871         cur_loc_changed over to the new variable.  On empty var
33872         always set cur_loc_changed.  Set in_changed_variables on whatever
33873         var is added to changed_variables.
33874         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
33875         Use shared_var_p.  When removing loc that is equal to cur_loc,
33876         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
33877         end, don't set it to something else, just call variable_was_changed.
33878         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
33879         loc being removed, clear cur_loc and set cur_loc_changed.
33880         Set cur_loc_changed if all locations have been removed.
33881         (struct expand_loc_callback_data): New type.
33882         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
33883         allocated.  Always create SUBREGs if simplify_subreg failed.
33884         Prefer to use cur_loc, when that fails and still in
33885         changed_variables (and seen first time) recompute it.  Set
33886         cur_loc_changed of variables which had to change cur_loc and
33887         compute elcd->cur_loc_changed if any of the subexpressions used
33888         had to change cur_loc.
33889         (vt_expand_loc): Adjust to pass arguments in
33890         expand_loc_callback_data structure.
33891         (vt_expand_loc_dummy): New function.
33892         (emitted_notes): New variable.
33893         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
33894         that weren't used for any other decl in current
33895         emit_notes_for_changes call call vt_expand_loc_dummy to update
33896         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
33897         first loc_chain location if NULL before.  Always use just
33898         cur_loc instead of first loc_chain location.  When cur_loc_changed
33899         is false, when not --enable-checking=rtl just don't emit any note.
33900         When rtl checking, compute the note and assert it is the same
33901         as previous note.  Clear cur_loc_changed and in_changed_variables
33902         at the end before removing from changed_variables.
33903         (check_changed_vars_3): New function.
33904         (emit_notes_for_changes): Traverse changed_vars to call
33905         check_changed_vars_3 on each changed var.
33906         (emit_notes_for_differences_1): Clear cur_loc_changed and
33907         in_changed_variables.  Recompute cur_loc of new_var.
33908         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
33909         (vt_emit_notes): Initialize and destroy emitted_notes.
33910
33911 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
33912
33913         PR rtl-optimization/42220
33914         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
33915         Use verify_reg_tracked to determine if we should use OP_OUT rather
33916         than OP_INOUT.
33917         (build_def_use): If we see an in-out operand for a register that we
33918         know nothing about, treat is an output if possible, fail the block if
33919         not.
33920
33921 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
33922
33923         PR debug/42897
33924         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
33925         permanently.
33926
33927 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
33928
33929         PR debug/42897
33930         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
33931         uses of relevant DEFs that are dead outside the loop too.
33932
33933 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
33934
33935         * var-tracking.c (dataflow_set_merge): Swap src and src2.
33936         Reverted:
33937         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
33938         PR debug/41371
33939         * var-tracking.c (values_to_unmark): New variable.
33940         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33941         values_to_unmark vector.  Moved body to...
33942         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
33943         instead queue it into values_to_unmark vector.
33944         (vt_find_locations): Free values_to_unmark vector.
33945
33946 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
33947
33948         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
33949         (site.exp): Export them when plugins are enabled.
33950
33951 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
33952
33953         PR middle-end/42326
33954         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
33955         that contain scevs.
33956         (chrec_fold_multiply): Same.
33957
33958 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
33959
33960         PR c/43248
33961         * c-decl.c (build_compound_literal): Return early if init is
33962         an error_mark_node.
33963
33964 2010-03-04  Martin Jambor  <mjambor@suse.cz>
33965
33966         PR tree-optimization/43164
33967         PR tree-optimization/43191
33968         * tree-sra.c (type_consists_of_records_p): Reject records with
33969         zero-size bit-fields at the end.
33970
33971 2010-03-04  Mike Stump  <mikestump@comcast.net>
33972
33973         * Makefile.in (TAGS): Remove *.y.
33974
33975 2010-03-04  Richard Guenther  <rguenther@suse.de>
33976
33977         PR tree-optimization/40761
33978         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
33979         in reverse order.
33980         (my_rev_post_order_compute): New function.
33981         (init_pre): Call it.
33982
33983 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
33984
33985         PR middle-end/43209
33986         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
33987         decrease the cost of an IV candidate when the cost is infinite.
33988
33989 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33990
33991         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
33992         Use '3DNow!' for the extension of that name, ensure normal space
33993         after the string.
33994         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
33995
33996 2010-03-03  Jeff Law  <law@redhat.com>
33997
33998         * PR middle-end/32693
33999         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
34000         than gen_rtx_SUBREG.
34001         (extract_bit_field_1): Likewise.
34002
34003 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
34004
34005         * doc/sourcebuild.texi (Test directives): Document that arguments
34006         include-opts and exclude-opts are now optional for dg-skip-if,
34007         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
34008
34009 2010-03-03  Jason Merrill  <jason@redhat.com>
34010
34011         PR c++/12909
34012         * cgraph.h (varpool_node): Add extra_name field.
34013         * varpool.c (varpool_extra_name_alias): New.
34014         (varpool_assemble_decl): Emit extra name aliases.
34015         (varpool_mark_needed_node): Look past an extra name alias.
34016         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
34017         * lto-streamer-in.c (lto_input_tree): Read it.
34018         * lto-streamer-out.c (output_unreferenced_globals): Write it.
34019
34020 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34021
34022         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
34023         (sparc*-*-solaris2*): ...this.
34024
34025 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
34026
34027         PR debug/43229
34028         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
34029         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
34030         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
34031         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
34032
34033         PR debug/43237
34034         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
34035         fallthrough to default handling, just with want_address 0 instead of 2.
34036         For single element lists, add_AT_loc directly, otherwise create an
34037         artificial variable DIE and stick location list to it.
34038
34039         PR debug/43177
34040         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
34041         (VAL_EXPR_HAS_REVERSE): Define.
34042         (reverse_op): New function.
34043         (add_stores): For reversible operations add an extra MO_VAL_USE.
34044
34045 2010-03-02  Jason Merrill  <jason@redhat.com>
34046
34047         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
34048
34049 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
34050
34051         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
34052         (sparc64-*-linux*): Likewise.
34053         (sparc64-*-solaris2*): Include assembler files before linker ones.
34054         (sparc-*-solaris2*): Simplify and reorder to match previous case.
34055         * config/sparc/gas.h: Delete.
34056         * config/sparc/sol2-64.h: Add copyright notice.
34057         * config/sparc/sol2-gas-bi.h: Likewise.
34058         * config/sparc/sol2-gld.h: Likewise.
34059         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
34060         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
34061         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
34062         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
34063         (sparc_elf_asm_named_section): Rename into...
34064         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
34065
34066 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
34067
34068         * config/alpha/alpha.c (override_options): Fix -mtune error message.
34069
34070 2010-03-02  Jeff Law  <law@redhat.com>
34071
34072         PR middle-end/42431
34073         * reload1.c (rtx_p, substitute_stack): Declare.
34074         (substitute): Record addresses of changed rtxs.
34075         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
34076         Restore the original rtx when complete.
34077         (reload): Free subsitute_stack when complete.
34078
34079 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
34080
34081         * doc/gccint.texi (menu): Add Testsuites as a chapter.
34082         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
34083         new chapter.
34084         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
34085         LTO Testing, gcov Testing, profopt Testing, compat Testing,
34086         Torture Tests): Change from subsection to section.
34087
34088 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
34089             Steven Bosscher  <steven@gcc.gnu.org>
34090
34091         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
34092         instead of bb.
34093
34094 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
34095
34096         PR middle-end/42640
34097         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
34098         the assignment from the new induction variable to the assignment
34099         of the value from the original loop PHI function.
34100
34101 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
34102             Daniel Jacobowitz  <dan@codesourcery.com>
34103
34104         * doc/sourcebuild.texi (Test directives): Clarify options to
34105         dg-skip-if.
34106
34107 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34108
34109         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
34110         Disable cfi directives unless GCC and gas agree on using read-only
34111         .eh_frame sections for 64-bit.
34112         * configure: Regenerate.
34113
34114 2010-03-01  Richard Guenther  <rguenther@suse.de>
34115
34116         PR tree-optimization/43220
34117         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
34118         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
34119
34120 2010-03-01  Richard Guenther  <rguenther@suse.de>
34121             Martin Jambor  <mjambor@suse.cz>
34122
34123         PR middle-end/41250
34124         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
34125         gimplified parameters.
34126
34127 2010-03-01  Christian Bruel  <christian.bruel@st.com>
34128
34129         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
34130
34131 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
34132
34133         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
34134
34135 2010-03-01  Richard Guenther  <rguenther@suse.de>
34136
34137         PR middle-end/43213
34138         * expr.c (expand_assignment): Use the alias-oracle to tell
34139         if the rhs aliases the result decl.
34140
34141 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34142
34143         PR pch/14940
34144         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
34145         to sol_gt_pch_get_address.
34146         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
34147         64-bit, SPARC and x86.
34148         (sol_gt_pch_get_address): New function.
34149
34150 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
34151
34152         * toplev.h (inform_n, error_n): Declare.
34153         * diagnostic.c (inform_n, error_n): New function.
34154
34155 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
34156
34157         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
34158         has no rtl yet when processing local_decls, queue it and recheck
34159         if deferred stack allocation hasn't assigned it rtl.
34160
34161 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
34162
34163         * config/sh/sh.c (unspec_bbr_uid): New.
34164         (gen_block_redirect): Use it instead of INSN_UID.
34165         (gen_far_branch): Likewise.
34166
34167 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
34168
34169         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
34170         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
34171
34172 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34173
34174         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
34175         (Warning Options): -Wno-conversion-null is valid for
34176         Objective-C++ as well.
34177         * doc/tm.texi (Named Address Spaces): Likewise.
34178         * doc/plugins.texi (Plugins): Replace TABs with spaces.
34179         * doc/tree-ssa.texi (Tree SSA): Likewise.
34180
34181 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
34182
34183         PR bootstrap/43202
34184         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
34185         by default.  Don't set the default arch for
34186         i[34567]86-*-darwin*|x86_64-*-darwin*.
34187
34188 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
34189
34190         PR bootstrap/43202
34191         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
34192         default.  Set the default 32bit/64bit archs with $with_arch
34193         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
34194
34195 2010-02-27  Richard Guenther  <rguenther@suse.de>
34196
34197         PR tree-optimization/43186
34198         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
34199         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
34200         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
34201         unroller iterations.
34202
34203 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
34204
34205         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
34206         required and i[34567]86-*-* targets don't support 64bit ISA.
34207
34208 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
34209
34210         PR ada/43096
34211         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34212         the same alias set.
34213
34214 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
34215
34216         * config.gcc: Set the default arch at least to Prescott for
34217         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
34218         if SSE math is enabled.
34219
34220 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34221
34222         * diagnostic.c (diagnostic_initialize): Update.
34223         (diagnostic_report_diagnostic): Test inhibit_notes_p for
34224         informative notes.
34225         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
34226         (diagnostic_inhibit_notes): New.
34227         * toplev.c (process_options): inhibit notes with -fcompare-debug.
34228
34229 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34230
34231         PR c/20631
34232         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
34233         * doc/standards.texi: Likewise.
34234         * doc/extend.texi: Likewise.
34235         * doc/trouble.texi: Likewise.
34236         * doc/cppopts.texi: Likewise.
34237         * doc/install.texi: Likewise.
34238         * c.opt (std=c90,std=gnu90): New options.
34239         * c-opts.c (c_common_handle_option): Handle them.
34240
34241 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34242
34243         PR c/24577
34244         * c-decl.c (undeclared_variable): Use an informative note.
34245
34246 2010-02-26  Richard Guenther  <rguenther@suse.de>
34247
34248         PR tree-optimization/43186
34249         * gimple.h (gimple_fold): Remove.
34250         * gimple.c (gimple_fold): Remove.  Inline into single user ...
34251         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
34252         Try harder for conditions.
34253
34254 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
34255
34256         PR debug/43190
34257         * function.c (used_types_insert): Don't skip through named pointer
34258         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
34259         and it is different from the main variant's type.
34260
34261 2010-02-26  Nick Clifton  <nickc@redhat.com>
34262
34263         * config/rx/rx.md (sminsi3): Remove bogus alternative.
34264
34265 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
34266
34267         * config.gcc: Support --with-fpmath=sse for x86.
34268
34269         * config/i386/ssemath.h: New.
34270
34271         * doc/install.texi (--with-fpmath=sse): Documented.
34272
34273 2010-02-26  Richard Guenther  <rguenther@suse.de>
34274
34275         PR tree-optimization/43188
34276         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
34277         vector types of over-aligned element type.
34278
34279 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
34280
34281         PR target/43175
34282         * config/i386/i386.c (expand_vec_perm_blend): Use correct
34283         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
34284
34285 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
34286
34287         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
34288
34289 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
34290
34291         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
34292         * var-tracking.c: Include diagnostic.h.
34293         (debug_dv): New function.
34294         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
34295
34296         PR debug/43160
34297         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
34298         (add_value_chain, add_value_chains, remove_value_chain,
34299         remove_value_chains): Handle DEBUG_EXPRs.
34300         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
34301
34302         PR debug/43161
34303         * regcprop.c (struct queued_debug_insn_change): New type.
34304         (struct value_data_entry): Add debug_insn_changes field.
34305         (struct value_data): Add n_debug_insn_changes field.
34306         (debug_insn_changes_pool): New variable.
34307         (free_debug_insn_changes, apply_debug_insn_changes,
34308         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
34309         (kill_value_one_regno): Call free_debug_insn_changes if needed.
34310         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
34311         fields.
34312         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
34313         changes for them.
34314         (copyprop_hardreg_forward_1): Don't call apply_change_group for
34315         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
34316         changes, call cprop_find_used_regs via note_stores.
34317         (copyprop_hardreg_forward): When copying vd from predecessor
34318         which has any queued DEBUG_INSN changes, make sure the pointers are
34319         cleared.  At the end call df_analyze and then if there are any
34320         DEBUG_INSN changes queued at the end of some basic block for still
34321         live registers, apply them.
34322         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
34323
34324 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
34325
34326         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
34327         (arm*-*-*): Ditto.
34328
34329 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
34330
34331         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
34332         targets.  Set the default with_cpu/with_arch from arch/cpu.
34333         Allow x86-64 and native for with_cpu/with_arch.
34334
34335 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
34336
34337         * ebitmap.c: Change calls to verify_popcount with calls to
34338         sbitmap_verify_popcount.
34339         (ebitmap_clear_bit): Fixed map->cacheindex test and
34340         map>cache update when bit clearing results in an empty
34341         element.
34342
34343 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
34344
34345         PR target/43154
34346         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
34347         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
34348         and support both V2DF and V2DI modes.
34349         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
34350         support both V2DF and V2DI modes.
34351         (general): Delete trailing whitespace from a few patterns.
34352
34353         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34354         V2DF/V2DI interleave high/low builtins.
34355
34356         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
34357         new VSX builtins.
34358
34359         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
34360         interleave high/low functions.
34361
34362 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
34363
34364         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
34365         #pragma extern_prefix.
34366
34367 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
34368
34369         PR debug/43166
34370         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
34371         BLKmode, assert op0 is a MEM and just adjust its mode.
34372
34373         PR debug/43165
34374         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
34375         if bitpos isn't multiple of mode's bitsize.
34376
34377 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34378
34379         * c.opt (-ftemplate-depth=): New.
34380         (-ftemplate-depth-): Deprecate.
34381         * optc-gen.awk: Handle -ftemplate-depth=.
34382         * opth-gen.awk: Likewise.
34383         * c-opts.c (c_common_handle_option): Likewise.
34384         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
34385
34386 2010-02-24  Jason Merrill  <jason@redhat.com>
34387
34388         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
34389
34390 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34391
34392         * cfg.c (alloc_aux_for_block): Remove inline.
34393         (alloc_aux_for_edge): Likewise.
34394
34395 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34396
34397         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
34398
34399 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34400
34401         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
34402         * config/i386/sol2-gas.h: New file.
34403         * config.gcc (i[34567]86-*-solaris2*): Use it.
34404
34405 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34406
34407         PR c/43128
34408         * c-typeck.c (ep_convert_and_check): New.
34409         (build_conditional_expr): Use it.
34410         (build_binary_op): Likewise.
34411
34412 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
34413
34414         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
34415
34416         PR debug/43150
34417         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
34418         bounds even for -O+.
34419         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
34420         expr needs to have DECL_NAME set.
34421
34422 2010-02-24  Nick Clifton  <nickc@redhat.com>
34423
34424         * config/mep/mep.c: Include gimple.h.
34425         (mep_function_uses_sp): Delete unused function.
34426         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
34427         parameters.  Use unsigned integers to count args.  Return a
34428         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
34429
34430 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
34431
34432         PR target/43107
34433         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
34434         greater or equal to nelt instead of 2 * nelt.
34435         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
34436         with nelt - 1.
34437
34438 2010-02-23  Jason Merrill  <jason@redhat.com>
34439
34440         PR debug/42800
34441         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
34442         in cfun->local_decls even if they have register types.
34443
34444         PR c++/42837
34445         * stor-layout.c (place_field): Don't warn about unnecessary
34446         DECL_PACKED if the type is packed.
34447
34448 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
34449
34450         PR target/43139
34451         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
34452         GOTOFF relocs, even when the base reg isn't pic pointer.
34453
34454 2010-02-23  Michael Matz  <matz@suse.de>
34455
34456         PR debug/43077
34457         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
34458         (expand_gimple_basic_block): Generate and use debug temps if there
34459         are debug uses left after the last real use of TERed ssa names.
34460         Unlink debug immediate uses when they are expanded.
34461
34462 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34463
34464         PR 43123
34465         * config/i386/i386.c (override_options): Reorganise to provide
34466         better error messages.
34467
34468 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
34469
34470         PR middle-end/43083
34471         * graphite-scop-detection.c (create_single_exit_edge): Move
34472         the call to find_single_exit_edge to....
34473         (create_sese_edges): ...here.  Don't handle multiple edges
34474         exiting the function.
34475         (build_graphite_scops): Don't handle multiple edges
34476         exiting the function.
34477
34478 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
34479
34480         PR middle-end/43097
34481         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
34482         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
34483
34484 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
34485
34486         PR middle-end/43026
34487         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
34488
34489 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34490
34491         PR c++/43126
34492         * c-typeck.c (convert_arguments): Print declaration location.
34493         * c-common.c (validate_nargs): Rename as
34494         builtin_function_validate_nargs.
34495         (check_builtin_function_arguments): Update.
34496
34497 2010-02-22  Richard Guenther  <rguenther@suse.de>
34498
34499         PR lto/43045
34500         * tree-inline.c (declare_return_variable): Use the type of
34501         the call stmt lhs if available.
34502
34503 2010-02-22  Duncan Sands  <baldrick@free.fr>
34504
34505         * passes.c (register_pass): Always consider all pass lists when
34506         ref_pass_instance_number is zero.
34507
34508 2010-02-22  Richard Guenther  <rguenther@suse.de>
34509
34510         PR tree-optimization/42749
34511         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
34512         parameter.  Do arithmetic in the original type.
34513         (update_accumulator_with_ops): Likewise.
34514         (adjust_accumulator_values): Adjust.
34515
34516 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34517
34518         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
34519         (QI to BLKmode splitter): New splitter.
34520
34521 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
34522
34523         * config/i386/i386.c (initial_ix86_tune_features): Turn on
34524         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
34525
34526 2010-02-22  Richard Guenther  <rguenther@suse.de>
34527
34528         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
34529
34530 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
34531
34532         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
34533         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
34534         ($(T)crti.o, $(T)crtn.o): Remove rules.
34535
34536 2010-02-21  Tobias Burnus  <burnus@net-b.de>
34537
34538         PR fortran/35259
34539         * doc/invoke.texi (-fassociative-math): Document that this
34540         option is automatically enabled for Fortran.
34541
34542 2010-02-20  David S. Miller  <davem@davemloft.net>
34543
34544         * configure.ac: Test if linker and assembler properly support
34545         GOTDATA_OP relocations.
34546         * configure: Rebuild.
34547         * config.in: Likewise.
34548         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
34549         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
34550         (movsi_high_pic): Likewise.
34551         (movdi_lo_sum_pic): Likewise.
34552         (movdi_high_pic): Likewise.
34553         (movsi_pic_gotdata_op): New pattern.
34554         (movdi_pic_gotdata_op): Likewise.
34555         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
34556         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
34557
34558 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
34559
34560         PR target/43067
34561         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
34562         attribute to ssemul.
34563         (xop_mulv2div2di3_high): Ditto.
34564
34565 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34566
34567         PR c++/35669
34568         * c.opt (Wconversion-null): New option.
34569         * doc/invoke.texi (Wconversion-null): Document.
34570
34571 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34572
34573         * common.opt (Wlarger-than-): Add Undocumented.
34574
34575 2010-02-19  Mike Stump  <mikestump@comcast.net>
34576
34577         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
34578
34579 2010-02-19  Jason Merrill  <jason@redhat.com>
34580
34581         PR target/40332
34582         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
34583         * configure: Likewise.
34584
34585 2010-02-20  Alan Modra  <amodra@gmail.com>
34586
34587         PR middle-end/42344
34588         * cgraph.h (cgraph_make_decl_local): Declare.
34589         * cgraph.c (cgraph_make_decl_local): New function.
34590         (cgraph_make_node_local): Use it.
34591         * cgraphunit.c (cgraph_function_versioning): Likewise.
34592         * ipa.c (function_and_variable_visibility): Likewise.
34593
34594 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
34595
34596         PR bootstrap/43121
34597         * except.c (sjlj_emit_function_enter): Don't call
34598         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
34599         directly.
34600         * rtl.h (add_reg_br_prob_note): Remove prototype.
34601
34602 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34603
34604         PR 41779
34605         * c-common.c (conversion_warning): Remove widening conversions
34606         before checking the conversion of integers to reals.
34607
34608 2010-02-19  Mike Stump  <mikestump@comcast.net>
34609
34610         PR middle-end/43125
34611         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
34612
34613         PR objc/43061
34614         * cgraphunit.c (process_function_and_variable_attributes): Check
34615         DECL_PRESERVE_P instead of looking up attribute "used".
34616         * ipa-pure-const.c (check_decl): Likewise.
34617         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
34618         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
34619         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
34620         instead of attribute "used".
34621         * config/sol2-c.c (solaris_pragma_init): Likewise.
34622         (solaris_pragma_fini): Likewise.
34623
34624 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
34625
34626         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
34627         Use XCNEW instead of xcalloc.
34628         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
34629         XNEW instead of xmalloc.
34630         (get_fields): Use XNEWVEC instead of xmalloc.
34631
34632         PR debug/43084
34633         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
34634         populate vars array.
34635         (create_new_general_access): For debug stmts just reset value.
34636         (get_stmt_accesses): For accesses within debug stmts just record them
34637         using add_access_to_acc_sites instead of preventing the peeling or
34638         counting them as accesses.
34639
34640         PR middle-end/42233
34641         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
34642
34643 2010-02-19  Richard Guenther  <rguenther@suse.de>
34644
34645         PR tree-optimization/42916
34646         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
34647         instructions.
34648
34649 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
34650
34651         * configure.ac: Replace all uses of changequote in macro arguments
34652         with proper quoting.
34653
34654 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
34655
34656         PR middle-end/42233
34657         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
34658
34659 2010-02-19  Richard Guenther  <rguenther@suse.de>
34660
34661         PR tree-optimization/42944
34662         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
34663         test for aliasing with errno.
34664
34665 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
34666
34667         PR middle-end/42233
34668         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
34669         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
34670         * dojump.c: Include output.h.
34671         (inv): New inline function.
34672         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
34673         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
34674         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
34675         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
34676         argument, pass it down to other calls.
34677         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
34678         add REG_BR_PROB note to the conditional jump.
34679         * cfgexpand.c (add_reg_br_prob_note): Removed.
34680         (expand_gimple_cond): Don't call it, add the probability
34681         as last argument to jumpif_1/jumpifnot_1.
34682         * Makefile.in (dojump.o): Depend on output.h.
34683         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
34684         callers.
34685         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
34686         * stmt.c (do_jump_if_equal): Likewise.
34687         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
34688         * loop-unswitch.c (compare_and_jump_seq): Likewise.
34689         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
34690         Likewise.
34691         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
34692         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
34693         jumpifnot_1 callers.
34694         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
34695         callers.
34696         (store_expr): Adjust jumpifnot caller.
34697         (store_constructor): Adjust jumpif caller.
34698
34699         PR middle-end/42233
34700         * gimplify.c (gimple_boolify): For __builtin_expect call
34701         gimple_boolify also on its first argument.
34702
34703 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
34704
34705         * configure.ac (gnu-unique-object): Wrap regexps using [] in
34706         changequote block.
34707         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
34708         * configure: Regenerated.
34709
34710 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34711
34712         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
34713         lang_hooks.types_compatible_p instead of comptypes.
34714
34715 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34716
34717         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
34718         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
34719         if __prefer_thumb__ is defined.
34720
34721 2010-02-18  Martin Jambor  <mjambor@suse.cz>
34722
34723         PR tree-optimization/43066
34724         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
34725         array with zero-sized element type.
34726
34727 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
34728
34729         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
34730         rtx, allocate struct var_loc_node here and return it to the
34731         caller, and only if it is actually needed.
34732         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
34733         move it earlier and return immediately if it returns NULL.
34734
34735 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
34736
34737         * config/sparc/gas.h: New file.  Restore
34738         TARGET_ASM_NAMED_SECTION to its ELF default.
34739         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
34740         check !HAVE_GNU_AS.
34741         * config/sparc/sparc.c (sparc_elf_asm_named_section):
34742         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
34743         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
34744         after sparc/sysv4.h.
34745
34746 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
34747
34748         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
34749
34750 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
34751
34752         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
34753         patterns from predicated pattern.
34754
34755 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
34756
34757         PR target/43103
34758         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
34759         for insn mnemonic suffix.
34760
34761 2010-02-17  Richard Guenther  <rguenther@suse.de>
34762
34763         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
34764         to loop PHI nodes.
34765
34766 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
34767
34768         PR debug/42918
34769         * caller-save.c (save_call_clobbered_regs): If BB ends with
34770         a DEBUG_INSN, move any notes in between last real insn and the last
34771         DEBUG_INSN after the last DEBUG_INSN.
34772
34773 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
34774
34775         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
34776         Fix return type.  Fix argument type.  Explain meaning of return value.
34777
34778 2010-02-16  Richard Guenther  <rguenther@suse.de>
34779
34780         PR tree-optimization/41043
34781         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
34782         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
34783         statements ...
34784         (vrp_visit_phi_node): ... but only for loop PHI nodes.
34785
34786 2010-02-16  Ira Rosen  <irar@il.ibm.com>
34787
34788         PR tree-optimization/43074
34789         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
34790         * tree-vect-loop.c (vect_analyze_loop_operations): Add
34791         vectorizable cycles in hybrid SLP check.
34792         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
34793
34794 2010-02-16  Richard Guenther  <rguenther@suse.de>
34795
34796         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
34797         (true_dependence): If memrefs_conflict_p computes must-alias
34798         trust it.  Move TBAA check after offset-based disambiguation.
34799         (canon_true_dependence): Likewise.
34800
34801 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
34802
34803         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
34804         * doc/invoke.texi: Document it.
34805         * var-tracking.c: Include toplev.h and params.h.
34806         (vt_find_locations): Return bool indicating success.  Compute
34807         hash sizes unconditionally.  Check new parameter, report.
34808         (variable_tracking_main_1): Check vt_find_locations results and
34809         retry.  Renamed from...
34810         (variable_tracking_main): ... this.  New wrapper to preserve
34811         flag_var_tracking_assignments.
34812         * Makefile.in (var-tracking.o): Adjust dependencies.
34813
34814 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
34815             Jakub Jelinek  <jakub@redhat.com>
34816
34817         PR target/42854
34818         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
34819         if weak_import attribute is present.
34820         * config/darwin.c (machopic_select_section): Likewise.
34821
34822 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
34823
34824         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
34825         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
34826         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
34827         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
34828
34829         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
34830         types.
34831
34832         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34833         Fix argument types.
34834
34835         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
34836         Rewrite text to refer to the names.
34837
34838 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
34839
34840         * config/i386/i386-builtin-types.def
34841         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
34842         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
34843         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
34844         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
34845         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
34846         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
34847         IX86_BUILTIN_VPERMIL2PS256.
34848         (MULTI_ARG_4_DF2_DI_I): Defined.
34849         (MULTI_ARG_4_DF2_DI_I1): Defined.
34850         (MULTI_ARG_4_SF2_SI_I): Defined.
34851         (MULTI_ARG_4_SF2_SI_I1): Defined.
34852         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
34853         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
34854         __builtin_ia32_vpermil2ps256.
34855         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34856         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34857         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
34858         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34859         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34860         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
34861         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
34862         CODE_FOR_xop_vpermil2v8sf3.
34863         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
34864         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
34865         * config/i386/xopintrin.h (_mm_permute2_pd): New.
34866         (_mm256_permute2_pd): New.
34867         (_mm_permute2_ps): New.
34868         (_mm256_permute2_ps): New.
34869
34870 2010-02-15  Nick Clifton  <nickc@redhat.com>
34871
34872         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
34873         boolean parameters.  Use emit_jump_insn when emitting a pop
34874         instruction containing a return insn.
34875         (push): Use 'true' rather than '1' as second parameter to F.
34876         (h8300_expand_prologue): Likewise.
34877         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
34878         (h8300_expand_epilogue): Likewise.
34879
34880 2010-02-15  Richard Guenther  <rguenther@suse.de>
34881
34882         PR middle-end/43068
34883         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
34884         if that is zero.
34885
34886 2010-02-15  Nick Clifton  <nickc@redhat.com>
34887
34888         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
34889         delta.
34890
34891 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
34892
34893         * intl.c (fake_ngettext): New function.
34894         * intl.h (fake_ngettext): Declare.
34895         (ngettext): Define macro.
34896         * collect2.c (notice_translated): New function.
34897         (main): Use notice_translated and ngettext.
34898         * collect2.h (notice_translated): Declare.
34899
34900 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34901
34902         * reorg.c (delete_computation): Comment fixes.
34903         * caller-save.c (setup_save_areas): Idem.
34904         * sel-sched-dump.c (dump_lv_set): Idem.
34905         * rtl.def: Idem.
34906
34907 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34908
34909         * config/s390/s390.c (s390_sched_init): New function.
34910         (TARGET_SCHED_INIT): Target hook defined.
34911
34912 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
34913             Jack Howarth  <howarth@bromo.med.uc.edu>
34914             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
34915
34916         PR target/42982
34917         Partial revert of unintended change in fix for PR41605.
34918         * config/darwin.h: Fix typo.
34919         * config/darwin9.h: Same.
34920
34921 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
34922
34923         * c-pch.c (pch_init): Clear v.
34924
34925 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
34926
34927         PR middle-end/42930
34928         * graphite-scop-detection.c (graphite_can_represent_scev): Call
34929         graphite_can_represent_init for MULT_EXPR.
34930
34931 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
34932
34933         PR middle-end/42914
34934         PR middle-end/42530
34935         * graphite-sese-to-poly.c (remove_phi): New.
34936         (translate_scalar_reduction_to_array): Call remove_phi.
34937
34938 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
34939
34940         PR middle-end/42771
34941         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
34942         * graphite-clast-to-gimple.h (gloog): Update declaration.
34943         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
34944         * graphite-poly.h (struct poly_bb): Add missing comments.
34945         (struct scop): Add poly_scop_p field.
34946         (POLY_SCOP_P): New.
34947         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
34948         * graphite.c (graphite_transform_loops): Build the polyhedral
34949         representation for each scop before code generation.
34950         * sese.c (rename_variables_in_operand): Removed.
34951         (rename_variables_in_expr): Return the renamed expression.
34952         (rename_sese_parameters): New.
34953         * sese.h (rename_sese_parameters): Declared.
34954
34955 2010-02-11  Richard Guenther  <rguenther@suse.de>
34956
34957         PR tree-optimization/42998
34958         * tree-ssa-pre.c (create_expression_by_pieces): Treat
34959         POINTER_PLUS_EXPR properly.
34960
34961 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
34962             Changpeng Fang  <changpeng.fang@amd.com>
34963
34964         PR middle-end/40886
34965         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
34966         the cost of an IV candidate when the IV is used in a test against zero.
34967
34968         * gcc.dg/tree-ssa/ivopts-3.c: New.
34969
34970 2010-02-11  Richard Guenther  <rguenther@suse.de>
34971
34972         PR lto/41664
34973         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
34974         pointer-vs-decl case by swapping refs.  Handle some cases
34975         of pointer-vs-decl disambiguations more conservatively.
34976         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
34977         to false after expanding.
34978
34979 2010-02-11  Richard Guenther  <rguenther@suse.de>
34980
34981         PR driver/43021
34982         * gcc.c (process_command): Handle LTO file@offset case more
34983         appropriately.
34984
34985 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
34986
34987         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
34988         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
34989         of DEBUG_INSNs.
34990         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
34991
34992         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
34993         if MEM's mode size isn't DWARF2_ADDR_SIZE.
34994         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
34995         Optimize eq/ne comparisons when both arguments are known to be
34996         zero-extended.
34997         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
34998         Don't mask operands unnecessarily if they are known to be already
34999         zero-extended.
35000
35001 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
35002
35003         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
35004         instead of loop.
35005
35006 2010-02-10  Richard Guenther  <rguenther@suse.de>
35007
35008         PR tree-optimization/43017
35009         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
35010         for wrapping signed arithmetic.
35011
35012 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
35013
35014         PR debug/43010
35015         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
35016         if no debug info should be emitted for it.
35017
35018 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
35019
35020         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
35021         note when flag_exceptions is set.
35022
35023 2010-02-10  Duncan Sands  <baldrick@free.fr>
35024
35025         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
35026
35027 2010-02-10  Richard Guenther  <rguenther@suse.de>
35028
35029         PR c/43007
35030         * tree.c (get_unwidened): Handle constants.
35031         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
35032
35033 2010-02-10  Martin Jambor  <mjambor@suse.cz>
35034
35035         PR lto/42985
35036         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
35037         check for variable argument counts independently.
35038
35039 2010-02-10  Christian Bruel  <christian.bruel@st.com>
35040
35041         PR target/42841
35042         * config/sh/sh.c (find_barrier): Increase length for non delayed
35043         conditional branches.
35044
35045 2010-02-10  Christian Bruel  <christian.bruel@st.com>
35046
35047         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
35048
35049 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
35050
35051         * builtins.c (set_builtin_user_assembler_name): Also handle
35052         ffs if int is smaller than word.
35053
35054 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
35055
35056         PR middle-end/42973
35057         * ira-conflicts.c (get_dup): Remove.
35058         (process_reg_shuffles): Add new parameter.  Use it as an
35059         additional guard for copy generation.
35060         (add_insn_allocno_copies): Rewrite.
35061
35062 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
35063
35064         * common.opt (fsched2-use-traces): Preserved for backward
35065         compatibility.
35066         * doc/invoke.texi: Remove the documentation about option
35067         -fsched2-use-traces.
35068         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
35069         flag_sched2_use_traces.
35070         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
35071         the backward compatibility flag section.
35072
35073 2010-02-09  Richard Guenther  <rguenther@suse.de>
35074
35075         PR tree-optimization/43008
35076         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
35077         make HEAP variables initialized from global memory if they
35078         are not known builtin functions.
35079         (find_func_aliases): Adjust.
35080
35081 2010-02-09  Richard Guenther  <rguenther@suse.de>
35082
35083         PR tree-optimization/43000
35084         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
35085         arithmetic manually.
35086
35087 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
35088
35089         PR tree-optimization/42931
35090         * tree-loop-linear.c (try_interchange_loops): Don't call
35091         double_int_mul if estimated_loop_iterations failed.
35092
35093 2010-02-08  Martin Jambor  <mjambor@suse.cz>
35094
35095         PR middle-end/42898
35096         * tree-sra.c (build_accesses_from_assign): Do not mark in
35097         should_scalarize_away_bitmap if stmt has volatile ops.
35098         (sra_modify_assign): Do not process assigns piecemeal if if stmt
35099         has volatile ops.
35100
35101 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
35102
35103         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
35104
35105 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
35106
35107         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
35108         before the pattern.
35109
35110 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
35111
35112         PR middle-end/42946
35113         * df-core.c (df_finish_pass): Change type of saved_flags to int.
35114
35115 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
35116
35117         PR middle-end/42988
35118         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
35119         to unknown_dependence.
35120         (graphite_legal_transform_dr): Handle the unknown_dependence.
35121         (graphite_carried_dependence_level_k): Same.
35122
35123 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
35124
35125         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
35126
35127 2010-02-07  Richard Guenther  <rguenther@suse.de>
35128
35129         PR middle-end/42991
35130         * expr.c (get_inner_reference): Always initialize *pbitsize.
35131
35132 2010-02-07  Richard Guenther  <rguenther@suse.de>
35133
35134         PR middle-end/42956
35135         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
35136         new ARRAY_REFs on variable size element or minimal index arrays.
35137         Complete.
35138         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
35139         gimple_fold_indirect_ref.
35140
35141 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
35142
35143         PR target/42957
35144         * arm.c (arm_override_options): Just return if the user has specified
35145         an invalid fpu name.
35146
35147 2010-02-03  Jason Merrill  <jason@redhat.com>
35148
35149         PR c++/42870
35150         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
35151         i386_pe_maybe_record_exported_symbol.
35152
35153 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
35154
35155         PR target/42924
35156         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35157         (pa_delegitimize_address): New function.
35158
35159 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
35160
35161         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
35162         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
35163
35164 2010-02-05  Richard Guenther  <rguenther@suse.de>
35165
35166         PR lto/42762
35167         * lto-streamer-in.c (get_resolution): Deal with references
35168         to undefined functions.
35169
35170 2010-02-05  Richard Guenther  <rguenther@suse.de>
35171
35172         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
35173         (fold_const_aggregate_ref): Likewise.
35174         (ccp_fold_stmt): Substitute loads.
35175         (maybe_fold_reference): Verify types before substituting.
35176         Unshare properly.
35177         (fold_gimple_assign): Unshare properly.
35178         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
35179
35180 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
35181
35182         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
35183         for rs6000_gen_cell_microcode.
35184
35185 2010-02-04  Richard Guenther  <rguenther@suse.de>
35186
35187         PR rtl-optimization/42952
35188         * dse.c (const_or_frame_p): Remove MEM handling.
35189
35190 2010-02-04  Nick Clifton  <nickc@redhat.com>
35191
35192         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
35193         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35194         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
35195         (mn10300_asm_output_mi_thunk): New function.
35196         (mn10300_can_output_mu_thunk): New function.
35197         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
35198         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
35199         (FUNCTION_ARG): Delete incorrect comment.
35200
35201 2010-02-03  Jason Merrill  <jason@redhat.com>
35202
35203         PR c++/40138
35204         * fold-const.c (operand_equal_p): Handle erroneous types.
35205
35206 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
35207
35208         * config/h8300/h8300.md (can_delay): Fix attibute condition.
35209
35210 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
35211
35212         PR rtl-optimization/42941
35213         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
35214         of xmalloc.
35215
35216 2010-02-03  Jason Merrill  <jason@redhat.com>
35217
35218         PR c++/35652
35219         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
35220
35221 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
35222
35223         PR debug/42896
35224         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
35225         (cselib_reset_table): Renamed from...
35226         (cselib_reset_table_with_next_value): ... this.
35227         (cselib_get_next_uid): Renamed from...
35228         (cselib_get_next_unknown_value): ... this.
35229         * cselib.c (next_uid): Renamed from...
35230         (next_unknown_value): ... this.
35231         (cselib_clear_table): Adjust.
35232         (cselib_reset_table): Adjust.  Renamed from...
35233         (cselib_reset_table_with_next_value): ... this.
35234         (cselib_get_next_uid): Adjust.  Renamed from...
35235         (cselib_get_next_unknown_value): ... this.
35236         (get_value_hash): Use hash.
35237         (cselib_hash_rtx): Likewise.
35238         (new_cselib_val): Adjust.  Set and dump uid.
35239         (cselib_lookup_mem): Pass next_uid as hash.
35240         (cselib_subst_to_values): Likewise.
35241         (cselib_log_lookup): Dump uid.
35242         (cselib_lookup): Pass next_uid as hash.  Adjust.
35243         (cselib_process_insn): Adjust.
35244         (cselib_init): Initialize next_uid.
35245         (cselib_finish): Adjust.
35246         (dump_cselib_table): Likewise.
35247         * dse.c (canon_address): Dump value uid.
35248         * print-rtl.c (print_rtx): Print value uid.
35249         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
35250         (dvuid): New type.
35251         (dv_uid): New function, sort of renamed from...
35252         (dv_htab_hash): ... this, reimplemented in terms of it and...
35253         (dv_uid2hash): ... this.  New.
35254         (variable_htab_eq): Drop excess assertions.
35255         (tie_break_pointers): Removed.
35256         (canon_value_cmp): Compare uids.
35257         (variable_post_merge_New_vals): Print uids.
35258         (vt_add_function_parameters): Adjust.
35259         (vt_initialize): Reset table.  Adjust.
35260
35261 2010-02-03  Richard Guenther  <rguenther@suse.de>
35262
35263         PR tree-optimization/42944
35264         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
35265         (call_may_clobber_ref_p_1): Likewise.  Properly handle
35266         malloc and calloc clobbering errno.
35267
35268 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
35269
35270         * doc/invoke.texi: Fix name of sched1 dump.
35271
35272         * opts.c (decode_options): Set flag_tree_switch_conversion
35273         only conditionally on optimize >= 2.
35274
35275         * gcse.c: Assorted comment fixes in pass description.
35276
35277 2010-02-03  Anthony Green  <green@moxielogic.com>
35278
35279         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
35280         nop padding in order to maintain alignment of storage location of
35281         target function address.
35282         (moxie_trampoline_init): Store target function address at newly
35283         aligned location.
35284         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
35285         to 32.
35286         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
35287
35288 2010-02-03  Richard Guenther  <rguenther@suse.de>
35289
35290         PR middle-end/42927
35291         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
35292
35293 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35294
35295         * config.gcc: Reenable check for obsolete targets.
35296         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
35297         mips-sgi-irix6.[0-4]*.
35298
35299 2010-02-02  Nick Clifton  <nickc@redhat.com>
35300
35301         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
35302         constant size of 4 as being the same as 0.
35303         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
35304         can take values in the range 0..4.
35305
35306 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
35307
35308         PR java/41991
35309         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
35310         as _darwin10_Unwind_FindEnclosingFunction().
35311         * libgcc-libsystem.ver: New.
35312
35313 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
35314
35315         PR target/41399
35316         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
35317         implicitly set registers.
35318
35319 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
35320
35321         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
35322         (arm_override_options): Allow automatic selection of the thread
35323         pointer register if thumb2.
35324         (legitimize_pic_address): Improve code sequences for Thumb2.
35325         (arm_call_tls_get_addr): Likewise.
35326         (legitimize_tls_address): Likewise.
35327         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
35328         (pic_load_addr_32bit): ... this.  New named pattern.
35329         * thumb2.md (pic_load_addr_thumb2): Delete.
35330         (pic_load_dot_plus_four): Delete.
35331         (tls_load_dot_plus_four): New named pattern.
35332
35333 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35334
35335         PR libgomp/29986
35336         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
35337         Document fix for TLS bug.
35338
35339 2010-01-31  Richard Guenther  <rguenther@suse.de>
35340
35341         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
35342         conservatively correct.
35343
35344 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35345
35346         PR target/42850
35347         Revert:
35348         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35349
35350         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35351
35352 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
35353
35354         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
35355
35356 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
35357
35358         * config.gcc: Adjust order of makefile fragments for mingw targets.
35359
35360 2010-01-31  Richard Guenther  <rguenther@suse.de>
35361
35362         PR middle-end/42898
35363         * gimplify.c (gimplify_init_constructor): For volatile LHS
35364         initialize a temporary.
35365
35366 2010-01-31  Matthias Klose  <doko@ubuntu.com>
35367
35368         * configure.ac: Fix __stack_chk_fail check for cross builds configured
35369         --with-headers
35370         * configure: Regenerate.
35371
35372 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
35373
35374         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35375         the same alias set and their sizes different constantness.
35376         (aliasing_component_refs_p): Revert 2009-10-24 change.
35377
35378 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35379
35380         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
35381         unused.
35382
35383 2010-01-29  Richard Guenther  <rguenther@suse.de>
35384
35385         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
35386         Assert we successfully updated the call.
35387
35388 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
35389
35390         PR rtl-optimization/42889
35391         * df.h (df_set_bb_dirty_nonlr): New prototype.
35392         * df-core.c (df_set_bb_dirty_nonlr): New function.
35393         * df-scan.c (df_insn_rescan): Call it instead of
35394         df_set_bb_dirty for DEBUG_INSNs.
35395
35396 2010-01-29  Richard Guenther  <rguenther@suse.de>
35397
35398         PR middle-end/37448
35399         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
35400         quadratic behavior in most cases.
35401
35402 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
35403
35404         PR target/42891
35405         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
35406         in the call to gen_x86_movsicc_0_m1.
35407
35408 2010-01-28  Richard Guenther  <rguenther@suse.de>
35409
35410         PR tree-optimization/42871
35411         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
35412
35413 2010-01-28  Richard Guenther  <rguenther@suse.de>
35414
35415         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
35416         into call arguments.
35417
35418 2010-01-28  Richard Guenther  <rguenther@suse.de>
35419
35420         PR middle-end/42883
35421         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
35422         the forwarder if the destination is an EH landing pad.
35423
35424 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
35425
35426         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
35427         block list passed to gimple_duplicate_sese_tail.
35428         (parallelize_loops): Avoid parallelization when the function
35429         has_nonlocal_label.
35430         Avoid parallelization when the preheader is IRREDUCIBLE.
35431         Try to optimize when estimated_loop_iterations_int is unresolved.
35432         Add the loop's location to the dump file.
35433         * tree-cfg.c (add_phi_args_after_redirect): Remove.
35434         (gimple_duplicate_sese_tail): Remove the check for the latch.
35435         Redirect nexits to the exit block.
35436         Remove handling of the incoming edges to the latch.
35437         Redirect the backedge from the copied latch to the exit bb.
35438
35439 2010-01-28  Michael Matz  <matz@suse.de>
35440
35441         PR target/42881
35442         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
35443         Wrap force_reg into a sequence, emit it before user.
35444
35445 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
35446
35447         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
35448         (arm_rev): New.
35449         (arm_legacy_rev): Likewise.
35450         (thumb_legacy_rev): Likewise.
35451
35452 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
35453
35454         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
35455         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
35456         on MEM's address failed, try avoid_constant_pool_reference and
35457         recurse if it returned something different.
35458         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
35459         address, try avoid_constant_pool_reference and recurse if it
35460         returned something different.
35461         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
35462         address and avoid_constant_pool_reference returned something
35463         different, don't set have_address.
35464
35465 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
35466
35467         PR debug/42861
35468         * var-tracking.c (val_store): Add modified argument, obey it.
35469         Adjust callers.
35470         (count_uses): Move down logging of main.
35471         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
35472         don't need resolution.
35473         (emit_notes_in_bb): Likewise.
35474
35475 2010-01-27  Richard Guenther  <rguenther@suse.de>
35476
35477         PR middle-end/42878
35478         * tree-inline.c (remap_decl): Delay remapping of SSA name
35479         default definitions until we need them.
35480
35481 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
35482
35483         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35484         (rs6000_delegitimize_address): New function.
35485
35486         * config/s390/s390.c (s390_delegitimize_address): Call
35487         delegitimize_mem_from_attrs.
35488
35489         PR middle-end/42874
35490         * tree-inline.c (cannot_copy_type_1): Removed.
35491         (copy_forbidden): Don't forbid copying of functions containing
35492         records/unions with variable length fields.
35493
35494 2010-01-27  Christian Bruel  <christian.bruel@st.com>
35495
35496         Revert:
35497         PR target/42841
35498         * config/sh/sh.c (find_barrier): Increase length for non delayed
35499         conditional branches.
35500
35501 2010-01-27  Matthias Klose  <doko@ubuntu.com>
35502
35503         * configure.ac (gnu-unique-object): Fix ldd version check.
35504         * configure: Regenerate.
35505
35506 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35507
35508         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
35509         HAVE_GNU_AS value.
35510         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
35511         Test for HAVE_GNU_AS value.
35512
35513 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35514
35515         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
35516         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
35517         INT64_TYPE): Define.
35518         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
35519         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
35520         INT_LEAST64_TYPE): Define.
35521         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
35522         UINT_LEAST64_TYPE): Define.
35523         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
35524         INT_FAST64_TYPE): Define.
35525         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
35526         UINT_FAST64_TYPE): Define.
35527         (INTMAX_TYPE, UINTMAX_TYPE): Define.
35528         (INTPTR_TYPE, UINTPTR_TYPE): Define.
35529         (SIG_ATOMIC_TYPE): Define.
35530
35531 2010-01-26  Richard Guenther  <rguenther@suse.de>
35532
35533         * df-scan.c (df_scan_set_bb_info): Remove assert.
35534         (df_insn_rescan_debug_internal): Merge asserts.
35535         (df_install_ref): Likewise.
35536         (df_mark_reg): Use bitmap_set_range.
35537         (df_hard_reg_used_p): Remove assert.
35538         (df_hard_reg_used_count): Likewise.
35539
35540 2010-01-26  Richard Guenther  <rguenther@suse.de>
35541
35542         PR rtl-optimization/42685
35543         * web.c (web_main): Ignore DEBUG_INSNs.
35544
35545 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
35546
35547         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
35548
35549         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
35550         Fix types of fndecl and arglist parameters.
35551
35552 2010-01-26  Richard Guenther  <rguenther@suse.de>
35553
35554         PR middle-end/42806
35555         * tree-eh.c (unsplit_eh): Skip debug insns.
35556
35557 2010-01-26  Richard Guenther  <rguenther@suse.de>
35558
35559         PR tree-optimization/42250
35560         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
35561
35562 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
35563
35564         PR fortran/42866
35565         * omp-low.c (expand_omp_sections): Only use single_pred if
35566         l2_bb is single_pred_p.
35567
35568 2010-01-25  Christian Bruel  <christian.bruel@st.com>
35569
35570         PR target/42841
35571         * config/sh/sh.c (find_barrier): Increase length for non delayed
35572         conditional branches.
35573         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
35574
35575 2010-01-24  David S. Miller  <davem@davemloft.net>
35576
35577         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
35578         define if not using GAS.
35579         * config/sparc/sparc.c (sparc_elf_asm_named_section):
35580         Likewise.  Delete SECTION_MERGE code, which is only applicable
35581         when using GAS.
35582
35583 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
35584
35585         PR c++/42748
35586         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
35587         mangling of va_list in system headers.
35588
35589 2010-01-23  Toon Moene  <toon@moene.org>
35590
35591         * tree-predcom.c (combine_chains): Return NULL, not false.
35592
35593 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
35594
35595         * tree-loop-distribution.c (distribute_loop): Fix declaration and
35596         initialization of variable res to agree with return type.
35597
35598 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
35599
35600         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
35601         * tree-sra.c: Add include of expr.h.
35602
35603 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
35604
35605         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
35606         insert the debug stmt on the single non-EH edge from the stmt.
35607
35608 2010-01-22  Richard Henderson  <rth@redhat.com>
35609
35610         PR tree-opt/42833
35611         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
35612         the RHS until after generate_subtree_copies has insertted its
35613         code before the current statement.
35614
35615 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
35616
35617         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
35618
35619         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
35620
35621 2010-01-21  Martin Jambor  <mjambor@suse.cz>
35622
35623         PR tree-optimization/42585
35624         * tree-sra.c (struct access): New field grp_total_scalarization.
35625         (dump_access): Dump the new field.
35626         (should_scalarize_away_bitmap): New variable.
35627         (cannot_scalarize_away_bitmap): Likewise.
35628         (sra_initialize): Allocate new bitmaps.
35629         (sra_deinitialize): Free new bitmaps.
35630         (create_access_1): New function.
35631         (create_access): Parts moved to create_access_1.
35632         (type_consists_of_records_p): New function.
35633         (completely_scalarize_record): Likewise.
35634         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
35635         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
35636         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
35637         access.
35638         (analyze_all_variable_accesses): Completely scalarize small eligible
35639         records.
35640
35641 2010-01-21  Martin Jambor  <mjambor@suse.cz>
35642
35643         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
35644
35645 2010-01-21  Andrew Haley  <aph@redhat.com>
35646
35647         * gcc.c (process_command): Move lang_specific_driver before
35648         setting cc_libexec_prefix.
35649
35650 2010-01-21  Richard Guenther  <rguenther@suse.de>
35651
35652         PR middle-end/19988
35653         * fold-const.c (negate_expr_p): Pretend only negative
35654         real constants are easily negatable.
35655
35656 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
35657             Jason Merrill  <jason@redhat.com>
35658
35659         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
35660         (TYPE_TRANSPARENT_AGGR): this, for union and record.
35661         * calls.c (initialize argument_information): Handle it.
35662         * c-common.c (handle_transparent_union_attribute): Use new name.
35663         * c-decl.c (finish_struct): Ditto.
35664         * c-typeck.c (type_lists_compatible_p): Ditto.
35665         (convert_for_assignment): Use new name and also handle record.
35666         * function.c (aggregate_value_p): Handle it.
35667         (pass_by_reference): Ditto.
35668         (assign_parm_data_types): Ditto.
35669         * print-tree.c (print_node): Ditto.
35670         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
35671         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
35672         * tree.c (first_field): New fn.
35673
35674 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
35675
35676         PR target/42818
35677         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
35678         even when linking statically, for now.
35679
35680 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
35681
35682         PR debug/42715
35683         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
35684         without a cselib val.
35685         (count_uses): Accept MO_VAL_SET with no val on stores.
35686         (add_stores): Likewise.
35687
35688 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
35689
35690         * var-tracking.c (check_value_val): Add a compile time assertion.
35691         (dv_is_decl_p): Simplify.
35692         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
35693         gcc_assert if ENABLE_CHECKING.
35694
35695 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
35696
35697         PR debug/42782
35698         * var-tracking.c: Include tree-flow.h.
35699         (mem_dies_at_call): New.
35700         (dataflow_set_preserve_mem_locs): Use it.
35701         (dataflow_set_remove_mem_locs): Likewise.
35702         (dump_var): Renamed from dump_variable.  Adjust all callers.
35703         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
35704         * Makefile.in (var-tracking.o): Adjust deps.
35705
35706 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
35707
35708         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
35709
35710 2010-01-20  Richard Guenther  <rguenther@suse.de>
35711
35712         PR tree-optimization/42717
35713         * tree-ssa-dce.c (get_live_post_dom): Remove.
35714         (forward_edge_to_pdom): Take an arbitrary edge to copy
35715         degenerate PHI args from.
35716         (remove_dead_stmt): Use the first post-dominator even if it
35717         does not contain live statements as redirection destination.
35718
35719 2010-01-20  Richard Guenther  <rguenther@suse.de>
35720
35721         * tree-inline.c (estimate_num_insns): Handle EH builtins.
35722
35723 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
35724
35725         * sel-sched.c (create_speculation_check): Remove set but not used
35726         variable twin.
35727         (try_transformation_cache): Remove set but not used variable ds.
35728         (calculate_privileged_insns): Remove set but not used variables
35729         cur_insn and min_spec_insn.
35730         (find_best_expr): Remove set but not used variable avail_n.
35731         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
35732         variable e.
35733         * cgraphunit.c (assemble_thunk): Remove set but not used variable
35734         false_label.
35735         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
35736         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
35737         new_scop_exit_edge.
35738
35739 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
35740
35741         PR bootstrap/42786
35742         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
35743         cpu types.  Add support for *-sse3 cpu types.
35744         (x86_64-*-*): Ditto.
35745
35746 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
35747
35748         PR middle-end/42803
35749         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
35750         argument, call initializer_constant_valid_p_1 instead of
35751         initializer_constant_valid_p, pass CACHE to it, return NULL
35752         immediately if first call returns NULL.
35753         (initializer_constant_valid_p_1): New function.
35754         (initializer_constant_valid_p): Use it.
35755
35756 2010-01-20  Thomas Quinot  <quinot@adacore.com>
35757
35758         * tree.def (PLACEHOLDER_EXPR): Fix comment.
35759
35760 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
35761
35762         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
35763         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
35764         (loc_list_from_tree): Don't handle unsigned division.  Handle
35765         signed modulo using DW_OP_{over,over,div,mul,minus}.
35766         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
35767         modulo instead of signed.
35768
35769 2010-01-20  DJ Delorie  <dj@redhat.com>
35770
35771         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
35772         (Fpa): Pass it
35773         (h8300_emit_stack_adjustment): Propogate it.
35774         (push): Pass it.
35775         (h8300_expand_prologue): Likewise.
35776         (h8300_expand_epilogue): Likewise.
35777
35778 2010-01-19  Michael Matz  <matz@suse.de>
35779
35780         PR tree-optimization/41783
35781         * tree-data-ref.c (toplevel): Include flags.h.
35782         (dump_data_dependence_relation):  Also dump the inputs if the
35783         result will be unknown.
35784         (split_constant_offset_1): Look through some conversions.
35785         * tree-predcom.c (determine_roots_comp): Restart a new chain if
35786         the offset from last element is too large.
35787         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
35788         (reassociate_to_the_same_stmt): Handle vector registers.
35789         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
35790         (e.g. conversions).
35791         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
35792         wide_prolog_niters argument, emit widening instructions.
35793         (vect_do_peeling_for_alignment): Adjust caller, use widened
35794         variant of the iteration cound.
35795         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
35796
35797 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35798
35799         PR target/38697
35800         * config/arm/neon-testgen.m (emit_automatics): New parameter
35801         features. Adjust for Fixed_return_reg feature.
35802         (test_intrinsic): Call emit_automatics with new feature.
35803         * config/arm/neon.ml: Update copyright years.
35804         (features): New Fixed_return_reg feature.
35805         (ops): Update feature for Vget_low.
35806
35807 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
35808
35809         PR tree-optimization/42719
35810         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
35811         stmt uses.
35812
35813         PR debug/42728
35814         * fwprop.c (all_uses_available_at): Return false if def_set dest
35815         is a REG that is used in def_insn.
35816
35817 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
35818
35819         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
35820
35821         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
35822         Add argument names.
35823
35824         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
35825
35826         * target.h (struct gcc_target) <secondary_reload>: Change type
35827         of last argument to secondary_reload_info *.
35828
35829 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
35830
35831         PR target/42774
35832         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
35833         memory references with unaligned offsets.  Remove CQImode handling.
35834         (unaligned_memory_operand): Return 1 for memory references with
35835         unaligned offsets.  Remove CQImode handling.
35836
35837 2010-01-18  Richard Guenther  <rguenther@suse.de>
35838
35839         PR middle-end/39954
35840         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
35841         builtin calls.
35842
35843 2010-01-18  Richard Guenther  <rguenther@suse.de>
35844
35845         PR tree-optimization/42781
35846         * tree-ssa-structalias.c (find_what_var_points_to): Skip
35847         restrict processing only if the original variable was artificial.
35848
35849 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
35850
35851         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
35852         find number of popped argument bytes.
35853
35854         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
35855         Fix the text that describes the return value for invalid insns.
35856
35857         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
35858
35859         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
35860         Clarify what 'cost of the -dependence' is.  Fix quoting.
35861
35862         * toplev.c (default_get_pch_validity): Rename argument to "sz".
35863         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
35864
35865 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
35866
35867         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35868         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
35869
35870 2010-01-17  Richard Guenther  <rguenther@suse.de>
35871
35872         PR middle-end/42248
35873         * function.c (split_complex_args): Take a VEC to modify.
35874         (assign_parms_augmented_arg_list): Build a VEC instead of
35875         a chain of PARM_DECLs.
35876         (assign_parms_unsplit_complex): Take a VEC of arguments.
35877         Do not fixup unmodified parms.
35878         (assign_parms): Deal with the VEC.
35879         (gimplify_parameters): Likewise.
35880
35881 2010-01-17  Richard Guenther  <rguenther@suse.de>
35882
35883         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
35884         node existence check.
35885         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
35886         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
35887         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
35888         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
35889         (gimple_execute_on_growing_pred): Likewise.
35890
35891 2010-01-17  Richard Guenther  <rguenther@suse.de>
35892
35893         PR tree-optimization/42773
35894         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
35895         (compute_antic_aux): Likewise.
35896         (compute_partial_antic_aux): Likewise.
35897
35898 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
35899
35900         PR debug/42767
35901         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
35902         and US_TRUNCATE.
35903
35904 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
35905
35906         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
35907         appearance.
35908
35909         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
35910         Fix markup for strict argument.
35911
35912         (TARGET_SCHED_REORDER2): Fix argument types.
35913
35914         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
35915         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
35916
35917         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
35918         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
35919
35920         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
35921         Add argument name.
35922
35923         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
35924         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
35925         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
35926         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
35927         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
35928
35929         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
35930
35931         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
35932
35933         (TARGET_ASM_RELOC_RW_MASK): Add return type.
35934         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
35935
35936         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
35937
35938         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
35939         Use prototype.
35940
35941         (TARGET_ASM_NAMED_SECTION): Fix argument list.
35942
35943         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
35944         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
35945
35946         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
35947
35948         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
35949
35950         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
35951         referring to it.  Fix language.
35952
35953         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
35954
35955         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
35956
35957         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
35958
35959         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
35960
35961         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
35962         '@var{stream}.  Remove stray 'and'.
35963
35964         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
35965
35966         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
35967
35968         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
35969
35970         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
35971         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
35972
35973         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
35974         Fix description of return value.
35975         Rename argument "sz" to "len."
35976
35977         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
35978         Clarify meaning of 'true' return value.
35979
35980         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
35981
35982         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
35983         rep_mode versus mode_rep.
35984
35985         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
35986
35987         (TARGET_BUILTIN_DECL): Fix name.
35988
35989         (TARGET_COMMUTATIVE_P): Fix type of first argument.
35990
35991         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
35992
35993         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
35994
35995         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
35996
35997         (TARGET_RELAXED_ORDERING): Use @deftypevr.
35998
35999         (TARGET_GET_DRAP_RTX): Note that this is a hook.
36000         Clarify language.
36001
36002         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
36003         Rename argument tm_fn to md_fn.
36004
36005         (TARGET_OPTION_PRINT): Fix argument list.
36006
36007 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
36008
36009         PR target/42664
36010         * config/i386/i386.c (ix86_fixup_binary_operands):
36011         Revert FMA4 fixup of operands.
36012
36013 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36014
36015         PR other/42525
36016         * Makefile.in (write_entries_to_file, install-plugin):
36017         Use \012 instead of \n with tr.
36018
36019 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
36020
36021         * configure.ac (HAVE_AS_REF): New C macro.
36022         * configure: Regenerate.
36023         * config.in: Likewise.
36024         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
36025         if HAVE_AS_REF.
36026         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
36027         if HAVE_AS_REF.
36028
36029 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
36030
36031         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
36032
36033         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
36034
36035         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
36036
36037         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
36038
36039         (TARGET_IN_SMALL_DATA_P): Fix argument type.
36040
36041         (TARGET_BINDS_LOCAL_P): Fix argument type.
36042
36043         (TARGET_ASM_FILE_END): Use prototype.
36044
36045         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
36046
36047         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
36048
36049         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
36050
36051         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
36052
36053         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
36054         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
36055
36056         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
36057         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
36058
36059         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
36060         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
36061         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
36062         (TARGET_ADDR_SPACE_CONVERT): Likewise.
36063
36064         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
36065
36066         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
36067
36068         (TARGET_INIT_BUILTINS): Use prototype.
36069
36070         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
36071         Put 'const char *' in braces.  Fix parameter types.
36072         (TARGET_INVALID_CONVERSION): Fix parameter types.
36073         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
36074         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
36075
36076         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
36077         Fix argument type.
36078
36079         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
36080
36081         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
36082
36083 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
36084
36085         * doc/tm.texi (TARGET_HELP): Fix return type.
36086
36087         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
36088         in braces.  Fix argument types.
36089
36090         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
36091
36092         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
36093
36094         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
36095
36096         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
36097         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
36098
36099         (TARGET_MANGLE_TYPE): Fix argument types.
36100
36101         (TARGET_IRA_COVER_CLASSES): Use prototype.
36102
36103         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
36104
36105         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
36106
36107         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
36108
36109         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
36110
36111         (TARGET_CALLEE_COPIES): Fix argument types.
36112
36113         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
36114
36115         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
36116
36117         (TARGET_FUNCTION_VALUE): Fix argument types.
36118
36119         (TARGET_RETURN_IN_MSB): Fix argument type.
36120
36121         (TARGET_RETURN_IN_MEMORY): Fix argument types.
36122
36123         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
36124
36125         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
36126
36127         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
36128         agree with return type.
36129
36130         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
36131
36132 2010-01-15  Jing Yu  <jingyu@google.com>
36133
36134         PR rtl-optimization/42691
36135         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
36136         a pseudo to a constant and are merged, and adjust comments.
36137
36138 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36139
36140         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
36141
36142 2010-01-15  Richard Guenther  <rguenther@suse.de>
36143
36144         PR middle-end/42739
36145         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
36146         labels of computed or non-local gotos to the destination.
36147         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
36148         landing pad label is the first label.
36149
36150 2010-01-15  Richard Guenther  <rguenther@suse.de>
36151
36152         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
36153
36154 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
36155
36156         PR target/42747
36157         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
36158         to allow generation of the xssqrtdp instruction on power7.
36159         (sqrtdf2_fpr): Ditto.
36160
36161 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
36162
36163         PR middle-end/42674
36164         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
36165         functions with noreturn attribute.
36166
36167         PR c++/42608
36168         * varasm.c (declare_weak): Add weak attribute to decl if it
36169         doesn't have one already.
36170         (assemble_external): Only add decls to weak_decls if they also
36171         have weak attribute.
36172
36173 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
36174
36175         * var-tracking.c (var_reg_delete): Don't delete the association
36176         between REGs and values or one-part variables if the register
36177         isn't clobbered.
36178
36179 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
36180
36181         PR debug/42657
36182         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
36183         because its first operand is a non-localized variable.
36184
36185 2010-01-14  Martin Jambor  <mjambor@suse.cz>
36186
36187         PR tree-optimization/42706
36188         * tree-sra.c (encountered_recursive_call): New variable.
36189         (encountered_unchangable_recursive_call): Likewise.
36190         (sra_initialize): Initialize both new variables.
36191         (callsite_has_enough_arguments_p): New function.
36192         (scan_function): Call decl and flags check only for IPA-SRA, check
36193         whether there is a recursive call and whether it has enough arguments.
36194         (all_callers_have_enough_arguments_p): New function.
36195         (convert_callers): Look for recursive calls only when
36196         encountered_recursive_call is set.
36197         (ipa_early_sra): Bail out either if
36198         !all_callers_have_enough_arguments_p or
36199         encountered_unchangable_recursive_call.
36200
36201 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36202
36203         * sel-sched.c: Add 2010 to copyright years.
36204         * sel-sched-ir.c: Likewise.
36205         * sel-sched-ir.h: Likewise.
36206
36207 2010-01-14  Martin Jambor  <mjambor@suse.cz>
36208
36209         PR tree-optimization/42714
36210         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
36211         constructors specially.
36212
36213 2010-01-14  Andi Kleen  <ak@linux.intel.com>
36214
36215         * config/i386/drivers-i386.c (detect_caches_intel):
36216         Add l2sizekb parameter and fill in.
36217         (host_detect_local_cpu): Add l2sizekb, fill in.
36218         Add Atom small cache heuristic.
36219
36220 2010-01-14  Andi Kleen  <ak@linux.intel.com>
36221
36222         * config/i386/drivers-i386.c (detect_caches_cpuid4):
36223         Add level3 parameter and fill in.
36224         (detect_caches_intel): Handle level3 cache.
36225
36226 2010-01-14  Andi Kleen  <ak@linux.intel.com>
36227
36228         * config/i386/drivers-i386.c (host_detect_local_cpu):
36229         Fix core duo detection.
36230
36231 2010-01-14  Andi Kleen  <ak@linux.intel.com>
36232
36233         * config/i386/drivers-i386.c (host_detect_local_cpu):
36234         Fix Atom detection.
36235
36236 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36237
36238         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
36239         (rs6000_variable_issue_1): this.  Use...
36240         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
36241
36242 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36243
36244         * sel-sched-ir.c (sel_restore_other_notes): Rename to
36245         sel_restore_notes.  Update all callers.  Call reemit_notes
36246         for all insns.
36247
36248 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36249
36250         PR rtl-optimization/42246
36251         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
36252         loops.
36253
36254 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36255
36256         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
36257         all successors is the same as number of successors in current region.
36258
36259 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36260
36261         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
36262         to rename is not separable.  Otherwise check that its LHS is not NULL.
36263
36264 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36265
36266         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
36267
36268 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36269
36270         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
36271         available registers when failed to discover LHS register class.
36272         Fix indentation.  Update comment.
36273
36274 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36275             Alexander Monakov  <amonakov@ispras.ru>
36276
36277         PR rtl-optimization/42389
36278         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
36279         to can_issue_more.
36280         (advance_state_on_fence): Likewise.
36281         (sel_target_adjust_priority): Print debug output only when
36282         sched_verbose >= 4, not 2.
36283         (get_expr_cost): Do not issue all unique insns on the next cycle.
36284         (fill_insns): Initialize can_issue_more from the value saved
36285         with the fence.
36286         * sel-sched-ir.c (flist_add): New parameter issue_more.
36287         Init FENCE_ISSUE_MORE with it.
36288         (merge_fences): Likewise.
36289         (init_fences): Update call to flist_add.
36290         (add_to_fences, add_clean_fence_to_fences)
36291         (add_dirty_fence_to_fences): Likewise.
36292         (move_fence_to_fences): Update call to merge_fences.
36293         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
36294         sched groups.
36295         * sel-sched-ir.h (struct _fence): New field issue_more.
36296         (FENCE_ISSUE_MORE): New accessor macro.
36297
36298 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36299
36300         PR rtl-optimization/42388
36301         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
36302         that have no predecessors nor successors.  Do not call move_bb_info
36303         for empty blocks outside of current region.
36304
36305 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36306
36307         PR rtl-optimization/42294
36308         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
36309         * sel-sched.c (move_exprs_to_boundary): Transitively add all
36310         originators' originators.
36311
36312 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
36313
36314         PR rtl-optimization/39453
36315         PR rtl-optimization/42246
36316         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
36317         for pipelining_p.
36318         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
36319
36320 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36321             Alexander Monakov  <amonakov@ispras.ru>
36322
36323         PR middle-end/42245
36324         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
36325         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
36326         argument.  Update all callers.
36327         (tidy_control_flow): ... and here.  Recompute topological order
36328         of basic blocks in region if necessary.
36329         (sel_redirect_edge_and_branch): Change return type.  Return true
36330         if topological order might have been invalidated.
36331         (purge_empty_blocks): Export and move from...
36332         * sel-sched.c (purge_empty_blocks): ... here.
36333         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
36334         (maybe_tidy_empty_bb): Delete prototype.
36335         (purge_empty_blocks): Declare.
36336
36337 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
36338
36339         PR rtl-optimization/42249
36340         * sel-sched.c (try_replace_dest_reg): When chosen register
36341         and original register is the same, do not bail out early, but
36342         still check all original insns for validity of replacing destination
36343         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
36344         in this case.
36345
36346 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
36347
36348         PR c/42721
36349         Port from no-undefined-overflow branch:
36350         2009-03-09  Richard Guenther  <rguenther@suse.de>
36351
36352         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
36353
36354 2010-01-14  Richard Guenther  <rguenther@suse.de>
36355
36356         PR lto/42665
36357         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
36358
36359 2010-01-14  Ira Rosen  <irar@il.ibm.com>
36360
36361         PR tree-optimization/42709
36362         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
36363         as scalar type in creation of constant vector operand.
36364
36365 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36366
36367         PR testsuite/42414
36368         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
36369         (check-parallel-%): Match `testsuite' directory component only
36370         at the end.
36371
36372 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
36373
36374         PR translation/39521
36375         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
36376         strings with _().
36377
36378 2010-01-13  Richard Guenther  <rguenther@suse.de>
36379
36380         PR tree-optimization/42730
36381         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
36382         offset zero.
36383
36384 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
36385
36386         PR target/pr42542
36387         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
36388         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
36389         them signed.
36390
36391 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
36392
36393         * config/bfin/libgcc-bfin.ver: Regenerate based on current
36394         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
36395         ___umulsi3_highpart.
36396
36397         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
36398         rather than schedule_insns if the pass is enabled.
36399
36400 2010-01-13  Martin Jambor  <mjambor@suse.cz>
36401
36402         PR tree-optimization/42704
36403         * tree-sra.c (sra_modify_assign): Do not delete assignments to
36404         SSA_NAMEs.
36405
36406 2010-01-13  Martin Jambor  <mjambor@suse.cz>
36407
36408         PR tree-optimization/42703
36409         * tree-sra.c (analyze_access_subtree): Check that we can build a
36410         reference to the original data within the aggregate.
36411
36412 2010-01-13  Richard Guenther  <rguenther@suse.de>
36413
36414         PR tree-optimization/42705
36415         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
36416
36417 2010-01-13  Richard Guenther  <rguenther@suse.de>
36418
36419         PR middle-end/42716
36420         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
36421
36422 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
36423
36424         PR debug/41371
36425         * var-tracking.c (values_to_unmark): New variable.
36426         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36427         values_to_unmark vector.  Moved body to...
36428         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
36429         instead queue it into values_to_unmark vector.
36430         (vt_find_locations): Free values_to_unmark vector.
36431
36432 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
36433
36434         * config/s390/s390.c (override_options): Set
36435         default of max-pending-list-length to 256
36436
36437 2010-01-13  Richard Guenther  <rguenther@suse.de>
36438
36439         PR lto/42678
36440         * tree-pass.h (PROP_gimple_lcx): New.
36441         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
36442         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
36443         before the final cleanup_eh.
36444         (dump_properties): Dump PROP_gimple_lcx.
36445         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
36446         (tree_lower_complex_O0): Remove.
36447         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
36448         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
36449         tree_lower_complex, schedule TODO_update_ssa.
36450         * lto-streamer-out.c (output_function): Stream the functions
36451         properties.
36452         * lto-streamer-in.c (input_function): Likewise.
36453         (lto_read_body): Do not override them here.
36454
36455 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
36456
36457         PR c/42708
36458         * c-typeck.c (build_c_cast): Fold value cast to union type before
36459         wrapping it in a CONSTRUCTOR.
36460
36461 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
36462
36463         PR rtl-optimization/42699
36464         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
36465         involved.
36466
36467 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36468
36469         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36470         SUBTARGET_WARN_UNUSED_SPEC): Move ...
36471         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36472         SUBTARGET_WARN_UNUSED_SPEC): ... here
36473         * config/mips/iris5.h (LIBGCC_SPEC): Define.
36474
36475 2010-01-12  Julian Brown  <julian@codesourcery.com>
36476
36477         * config/arm/neon-schedgen.ml (Utils): Don't try to
36478         open missing module.
36479         (find_with_result): New.
36480
36481 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
36482
36483         PR debug/42662
36484         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
36485         sharing when canonicalizing ({lt,ge}u (plus a b) b).
36486
36487         PR tree-optimization/42645
36488         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
36489         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
36490         decl_map, set processing_debug_stmt to -1 and return name without
36491         any remapping.
36492
36493 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
36494
36495         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
36496         binutils version, and reword target configuration description.
36497
36498 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
36499
36500         * config/avr/avr.h (LINKER_NAME): Remove.
36501
36502 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
36503
36504         PR target/42416
36505         * config/rs6000/rs6000.c (rs6000_override_options): On targets
36506         that support VSX, warn for -mno-altivec if vsx is not disabled,
36507         and disable vsx.
36508
36509 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
36510             Shujing Zhao  <pearly.zhao@oracle.com>
36511
36512         PR translation/42469
36513         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
36514         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
36515         character between option name and help text.
36516         * c.opt (imultilib): Likewise.
36517
36518 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
36519
36520         * lto-streamer-out.c (output_unreferenced_globals): Output static
36521         variables.
36522
36523 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
36524
36525         PR rtl-optimization/42621
36526         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
36527         optimizing for size.
36528         (duplicate_computed_gotos): Remove now-redundant check.
36529
36530 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
36531
36532         PR target/37454
36533         * configure.ac: Save and restore LDFLAGS and LIBS
36534         * configure: Regenerate.
36535
36536 2010-01-10  Richard Guenther  <rguenther@suse.de>
36537
36538         PR middle-end/42667
36539         * builtins.c (fold_builtin_strlen): Add type argument and
36540         convert the resulting length to it.
36541         (fold_builtin_1): Adjust.
36542
36543 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
36544
36545         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
36546         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
36547         1 insn.
36548         (num_insns_constant_wide): Adjust for that change.
36549
36550 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36551
36552         PR debug/42631
36553         * web.c (union_defs): Add used argument, to combine uses of
36554         uninitialized regs.
36555         (entry_register): Adjust type and tests of used argument.
36556         (web_main): Widen used for new use.  Pass it to union_defs.
36557         * df.h (union_defs): Adjust prototype.
36558
36559 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36560
36561         PR debug/42630
36562         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
36563         uses in new incoming argument.  Free body.
36564         (reset_debug_uses_in_loop): New.
36565         (analyze_insn_to_expand_var): Call the latter if the former found
36566         anything.  Fix whitespace.  Reject invalid dest overlaps before
36567         going through all insns in the loop.
36568
36569 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36570
36571         PR debug/42629
36572         * haifa-sched.c (dying_use_p): Debug insns don't count.
36573
36574 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36575
36576         PR middle-end/42363
36577         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
36578         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
36579         (verify_gimple_call): Reject LHS in noreturn calls.
36580
36581 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36582
36583         PR debug/42604
36584         PR debug/42395
36585         * tree-vect-loop-manip.c (adjust_info): New type.
36586         (adjust_vec): New pointer to vector.
36587         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
36588         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
36589         (slpeel_update_phis_for_duplicate_loop): Use them.
36590         (slpeel_update_phi_nodes_for_guard1): Likewise.
36591         (slpeel_update_phi_nodes_for_guard2): Likewise.
36592         (slpeel_tree_peel_loop_to_edge): Likewise.
36593         (vect_update_ivs_after_vectorizer): Likewise.
36594
36595 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36596
36597         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
36598         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
36599
36600 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
36601
36602         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
36603         bogus uninitialized warning.
36604
36605 2010-01-09  Richard Guenther  <rguenther@suse.de>
36606
36607         PR middle-end/42512
36608         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
36609         the evolution is compatible with the initial condition.
36610
36611 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
36612
36613         * gcc.c (process_command): Update copyright notice dates.
36614         * gcov.c (print_version): Likewise.
36615         * gcov-dump.c (print_version): Likewise.
36616         * mips-tfile.c (main): Likewise.
36617         * mips-tdump.c (main): Likewise.
36618
36619 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
36620
36621         PR target/41885
36622         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
36623         (rotlhi3): Delete.
36624         (rotlhi3_8): Delete.
36625         (rotlsi3): Delete.
36626         (rotlsi3_8): Delete.
36627         (rotlsi3_16): Delete.
36628         (rotlsi3_24): Delete.
36629         (rotl<mode>3): New.
36630         (*rotw<mode>3): New.
36631         (*rotb<mode>3): New.
36632         * config/avr/avr.c (avr_rotate_bytes): New function.
36633         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
36634
36635 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
36636
36637         PR target/37454
36638         * configure.ac: Modify -rdynamic check.
36639         * configure: Regenerate.
36640
36641 2010-01-08  DJ Delorie  <dj@redhat.com>
36642
36643         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
36644         register popping order.
36645
36646 2010-01-08  Richard Guenther  <rguenther@suse.de>
36647
36648         PR lto/42528
36649         * c.opt (fsigned-char): Also let LTO handle this option.
36650         (funsigned-char): Likewise.
36651
36652 2010-01-07  Richard Guenther  <rguenther@suse.de>
36653
36654         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
36655         (gimple_op): Likewise.
36656         (gimple_op_ptr): Likewise.
36657         (gimple_assign_set_lhs): Remove gcc_assert.
36658         (gimple_assign_set_rhs1): Likewise.
36659         (gimple_assign_set_rhs2): Likewise.
36660         (gimple_call_set_lhs): Likewise.
36661         (gimple_call_set_fn): Likewise.
36662         (gimple_call_set_fndecl): Likewise.
36663         (gimple_call_fndecl): Likewise.
36664         (gimple_call_return_type): Likewise.
36665         (gimple_call_set_chain): Likewise.
36666         (gimple_call_num_args): Likewise.
36667         (gimple_call_set_arg): Likewise.
36668         (gimple_cond_set_code): Likewise.
36669         (gimple_cond_set_lhs): Likewise.
36670         (gimple_cond_set_rhs): Likewise.
36671         (gimple_cond_set_true_label): Likewise.
36672         (gimple_cond_set_false_label): Likewise.
36673         (gimple_label_set_label): Likewise.
36674         (gimple_goto_set_dest): Likewise.
36675         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
36676         (gimple_debug_bind_get_value): Likewise.
36677         (gimple_debug_bind_get_value_ptr): Likewise.
36678         (gimple_debug_bind_set_var): Likewise.
36679         (gimple_debug_bind_set_value): Likewise.
36680         (gimple_debug_bind_reset_value): Likewise.
36681         (gimple_debug_bind_has_value_p): Likewise.
36682         (gimple_return_retval_ptr): Remove gcc_assert.
36683         (gimple_return_retval): Likewise.
36684         (gimple_return_set_retval): Likewise.
36685         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
36686         (safe_referenced_var_iterator): Remove.
36687         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
36688         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
36689         (fill_referenced_var_vec): Remove.
36690         (first_readonly_imm_use): Remove redundant gcc_assert.
36691         (phi_arg_index_from_use): Combine gcc_asserts.
36692         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
36693         (first_imm_use_stmt): Remove redundant gcc_assert.
36694         * tree-cfg.c (verify_gimple_call): Verify function and chain
36695         operands.  Verify arguments.
36696         (verify_types_in_gimple_stmt): Verify condition code and labels.
36697
36698 2010-01-07  Richard Guenther  <rguenther@suse.de>
36699
36700         PR tree-optimization/42641
36701         * sese.c (rename_map_elt_info): Use the SSA name version, do
36702         not hash pointers.
36703
36704 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
36705
36706         PR tree-optimization/42625
36707         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
36708         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
36709
36710 2010-01-07  Duncan Sands  <baldrick@free.fr>
36711
36712         * Makefile.in (PLUGIN_HEADERS): Add version.h.
36713
36714 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
36715
36716         PR target/42511
36717         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
36718         note itself is not function_invariant_p.
36719
36720 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
36721
36722         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
36723         Do not add the DF_NOTE problem.
36724         * store-motion.c (execute_rtl_store_motion): Likewise.
36725
36726 2010-01-07  Martin Jambor  <mjambor@suse.cz>
36727
36728         PR tree-optimization/42157
36729         * tree-sra.c (compare_access_positions): Stabilize sort if both
36730         accesses have integer types, return zero immediately if they are the
36731         same.
36732
36733 2010-01-06  Richard Henderson  <rth@redhat.com>
36734
36735         PR middle-end/41883
36736         * haifa-sched.c (add_to_note_list): Merge into ...
36737         (concat_note_lists): ... here, and ...
36738         (unlink_other_notes, rm_other_notes): Merge into...
36739         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
36740         NOTE_INSN_EPILOGUE_BEG.
36741
36742 2010-01-06  Richard Guenther  <rguenther@suse.de>
36743
36744         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
36745         not inline regular functions into always-inline functions.
36746
36747 2010-01-06  Nick Clifton  <nickc@redhat.com>
36748
36749         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
36750         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
36751         used together.
36752         (OVERRIDE_OPTIONS): Delete.
36753         (OPTIMIZATION_OPTIONS): Define.
36754         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
36755         * config/rx/rx.c (rx_handle_option): Issue an error message if
36756         -mcpu=rx200 and -fpu are used together.
36757         (rx_set_optimization_options): New function.  Issue an error
36758         message if an optimization attribute attempts to reset the FPU/
36759         math optimization pairing.
36760         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
36761         * config/rx/rx.opt: Set the default to 32-bit doubles.
36762         * config/rx/t-rx: Add multilibs for -nofpu option.
36763         * doc/invoke.texi: Update documentation of RX options.
36764
36765 2010-01-06  Richard Guenther  <rguenther@suse.de>
36766
36767         * tree-ssa-pre.c (name_to_id): New global.
36768         (alloc_expression_id): Simplify SSA name handling.
36769         (lookup_expression_id): Likewise.
36770         (init_pre): Zero name_to_id.
36771         (fini_pre): Free it.
36772
36773 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
36774
36775         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
36776
36777 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
36778
36779         PR target/42542
36780         * config/i386/sse.md (smaxv2di3): New.
36781         (umaxv2di3): Likewise.
36782         (sminv2di3): Likewise.
36783         (uminv2di3): Likewise.
36784
36785 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
36786
36787         PR target/42564
36788         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
36789         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
36790         (legitimize_tls_address): Likewise.
36791         (sparc_tls_referenced_p): Likewise.
36792         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
36793         and adjust calls to legitimize_pic_address.
36794         (legitimate_constant_p) Use sparc_tls_referenced_p.
36795         (legitimate_pic_operand_p): Likewise.
36796         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
36797         (sparc_tls_symbol_ref_1): Delete.
36798         (sparc_tls_referenced_p): Make static, recognize specific patterns.
36799         (legitimize_tls_address): Make static, handle CONST patterns.
36800         (legitimize_pic_address): Make static, remove unused parameter and
36801         adjust recursive calls.
36802         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
36803         and adjust call to legitimize_pic_address.
36804         (sparc_output_mi_thunk): Likewise.
36805
36806 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
36807             H.J. Lu  <hongjiu.lu@intel.com>
36808
36809         PR target/42542
36810         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
36811         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
36812         operands to make them signed.
36813
36814         Revert:
36815         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
36816
36817         PR target/42542
36818         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36819         GTU to GT for V4SI and V2DI.
36820
36821         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36822         (umin<mode>3): Removed.
36823         (uminv8hi3): New.
36824         (uminv4si3): Likewise.
36825
36826 2010-01-05  Martin Jambor  <mjambor@suse.cz>
36827
36828         PR tree-optimization/42462
36829         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
36830         current_function_decl to helper functions and macros.
36831
36832 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36833
36834         PR bootstrap/41771
36835         * flags.h: Don't include real.h.
36836         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
36837         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
36838         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
36839         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
36840         * dominance.c: Update copyright.
36841         * gimple.c (walk_gimple_op): Remove inline.
36842         * tree-ssa-reassoc.c: Include real.h.
36843         * Makefile.in (FLAGS_H): Remove $(REAL_H).
36844         (tree-ssa-reassoc.o): Depend on $(REAL_H).
36845
36846 2010-01-05  Nick Clifton  <nickc@redhat.com>
36847
36848         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
36849         register to push into the stack frame when the accumulator has to
36850         be saved during interrupts.
36851
36852 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
36853
36854         * doc/invoke.texi: Remove the documentation about option
36855         -Wunreachable-code.
36856         * common.opt (Wunreachable-code):  Preserved for backward
36857         compatibility.
36858         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
36859         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
36860         the backward compatibility flag section.
36861
36862 2010-01-05  Richard Guenther  <rguenther@suse.de>
36863
36864         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
36865
36866 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
36867
36868         PR other/42611
36869         * cfgexpand.c (expand_one_var): Diagnose too large variables.
36870
36871         PR tree-optimization/42508
36872         * tree-sra.c (convert_callers): Check for recursive call
36873         by comparing cgraph nodes instead of decls.
36874         (modify_function): Call ipa_modify_formal_parameters also
36875         on all same_body aliases.
36876
36877         * cgraphunit.c (cgraph_materialize_all_clones): Compare
36878         cgraph nodes when checking for same_body aliases.
36879
36880 2010-01-05  Richard Guenther  <rguenther@suse.de>
36881
36882         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
36883         allocation and lookup.
36884         (get_or_alloc_expr_for_constant): Likewise.
36885         (phi_translate): Sink allocation.
36886
36887 2010-01-04  Richard Guenther  <rguenther@suse.de>
36888
36889         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
36890         a new entry only if needed.
36891         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
36892         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
36893         hashtable lookup.
36894         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
36895         the result array.
36896         (phi_translate): Handle CONSTANTs early.
36897
36898 2010-01-04  Martin Jambor  <mjambor@suse.cz>
36899
36900         PR tree-optimization/42398
36901         * tree-sra.c (struct access): Removed flag grp_different_types.
36902         (dump_access): Do not dump the removed flag.
36903         (sort_and_splice_var_accesses): Do not set the removed flag.
36904         (sra_modify_expr): Check for type compatibility directly.
36905
36906 2010-01-04  Martin Jambor  <mjambor@suse.cz>
36907
36908         PR tree-optimization/42366
36909         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
36910         edges with variable number of parameters.
36911         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
36912         flag instead of asserting it.
36913         (ipa_read_node_info): Read uses_analysis_done flag.
36914
36915 2010-01-04  Richard Guenther  <rguenther@suse.de>
36916
36917         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
36918         iterative_hash_* as intended.
36919         (vn_reference_compute_hash): Likewise.  Simplify hashing
36920         SSA names.
36921         (vn_reference_lookup_2): Likewise.
36922         (vn_nary_op_compute_hash): Likewise.
36923         (vn_phi_compute_hash): Likewise.
36924         (expressions_equal_p): Remove strange code.
36925         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
36926         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
36927         (bitmap_insert_into_set_1): Take value-id as parameter.
36928         (add_to_value): Pass it.
36929         (bitmap_insert_into_set): Likewise.
36930         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
36931
36932 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
36933
36934         PR driver/42442
36935         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
36936         (do_self_spec): For switches with SWITCH_IGNORE set set also
36937         SWITCH_IGNORE_PERMANENTLY.
36938         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
36939         of SWITCH_IGNORE.
36940
36941 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
36942
36943         * lto-streamer-out.c (output_unreferenced_globals): Output the full
36944         tree of an unreferenced global var.
36945
36946 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
36947
36948         PR target/42542
36949         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36950         GTU to GT for V4SI and V2DI.
36951
36952         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36953         (umin<mode>3): Removed.
36954         (uminv8hi3): New.
36955         (uminv4si3): Likewise.
36956
36957 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
36958
36959         PR lto/42581
36960         * collect2.c (main): Turn on trace in collect2 if -v is passed
36961         to gcc with LTO.
36962
36963 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
36964
36965         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
36966         description of expression operand.
36967
36968 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
36969
36970         * configure.ac: Add install-html to target_list for Make-hooks.
36971         * configure: Regenerate.
36972         * fortran/Make-lang.in (F95_HTMLFILES): New.
36973         (fortran.html): Use it.
36974         (fortran.install-html): New.
36975         * Makefile.in (install-html): Add lang.install-html.
36976         * java/Make-lang.in (JAVA_HTMLFILES): New.
36977         (java.html): Use it.
36978         (java.install-html): New.
36979         * objc/Make-lang.in (objc.install-html): New.
36980         * objcp/Make-lang.in (obj-c++.install-html): New.
36981         * cp/Make-lang.in (c++.install-html): New.
36982         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
36983         * lto/Make-lang.in (lto.install-html): New.
36984
36985 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
36986
36987         PR lto/42520
36988         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
36989
36990 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
36991
36992         PR rtl-optimization/41862
36993         * store-motion.c (store_killed_in_insn, compute_store_table,
36994         remove_reachable_equiv_notes, replace_store_insn,
36995         build_store_vectors): Ignore all DEBUG_INSNs.
36996
36997 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
36998
36999         PR lto/41564
37000         * common.opt: Add dumpdir.
37001
37002         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
37003         isn't specified.
37004         (option_map): Add --dumpdir.
37005
37006         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
37007
37008         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
37009
37010         * opts.c (decode_options): Try dump_dir_name first if
37011         dump_base_name isn't an absolute path.
37012         (common_handle_option): Handle OPT_dumpdir.
37013
37014         * toplev.c (dump_dir_name): New.
37015         (print_switch_values): Also ignore -dumpdir.
37016
37017         * toplev.h (dump_dir_name): New.
37018
37019 2010-01-03  Richard Guenther  <rguenther@suse.de>
37020
37021         PR tree-optimization/42589
37022         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
37023         double-word expansion of bswap32.
37024
37025 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
37026
37027         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
37028         with BLOCK_FOR_INSN.
37029         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
37030         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
37031         noce_process_if_block): Likewise.
37032         * gcse.c (compute_local_properties, insert_expr_in_table,
37033         insert_set_in_table, canon_list_insert, find_avail_set,
37034         pre_insert_copy_insn): Likewise.
37035
37036         * basic-block.h (BLOCK_NUM): Move from here...
37037         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
37038
37039 2010-01-03  Richard Guenther  <rguenther@suse.de>
37040
37041         PR tree-optimization/42438
37042         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
37043         contains_may_not_return_call flag.
37044         (BB_MAY_NOTRETURN): New.
37045         (valid_in_sets): Trapping nary operations are not valid
37046         in blocks that may not return.
37047         (insert_into_preds_of_block): Remove check for trapping expressions.
37048         (compute_avail): Compute also BB_MAY_NOTRETURN.
37049
37050 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
37051
37052         * doc/invoke.texi: Add 2010 to copyright years.
37053
37054 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
37055
37056         * config/sparc/sparc.c: Fix formatting nits.
37057
37058 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
37059             Alexander Monakov  <amonakov@ispras.ru>
37060
37061         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
37062
37063 2010-01-02  Richard Guenther  <rguenther@suse.de>
37064
37065         PR middle-end/42577
37066         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
37067         (simplify_switch_using_ranges): Mark to be removed edges
37068         as non-executable.
37069
37070 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37071
37072         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37073
37074         * collect2.c (scan_libraries): Add missing argument in call to
37075         scan_prog_file.
37076
37077 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
37078
37079         PR target/42448
37080         * config/alpha/predicates.md (aligned_memory_operand): Return false
37081         for CQImode.
37082         (unaligned_memory_operand): Return true for CQImode.
37083         * config/alpha/alpha.c (get_aligned_mem): Assert that location
37084         doesn not cross aligned SImode word boundary.
37085
37086 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
37087
37088         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
37089         Remove.
37090         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
37091         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
37092
37093 2010-01-02  Richard Guenther  <rguenther@suse.de>
37094
37095         PR lto/41597
37096         * toplev.c (compile_file): Emit LTO marker properly.  Change
37097         it to __gnu_lto_v1.
37098         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
37099
37100 2010-01-01  Richard Guenther  <rguenther@suse.de>
37101
37102         PR debug/42455
37103         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
37104
37105 2010-01-01  Richard Guenther  <rguenther@suse.de>
37106
37107         PR c/42570
37108         * c-decl.c (grokdeclarator): For zero-size arrays force
37109         structural equality checks as layout_type does.
37110
37111 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
37112
37113         * builtins.c: Update copyright to 2010.
37114
37115 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
37116
37117         PR lto/42531
37118         * lto-streamer-out.c (produce_asm): Revert the last change.
37119         (copy_function): Likewise.
37120
37121         * lto-streamer.c (lto_get_section_name): Skip any leading
37122         asterisk in name.
37123
37124 2010-01-01  Richard Guenther  <rguenther@suse.de>
37125
37126         PR middle-end/42559
37127         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
37128         for LABEL_DECLs.
37129
37130 \f
37131 Copyright (C) 2010 Free Software Foundation, Inc.
37132
37133 Copying and distribution of this file, with or without modification,
37134 are permitted in any medium without royalty provided the copyright
37135 notice and this notice are preserved.