gfortranspec.c (library): New global, moved from ...
[gcc.git] / gcc / ChangeLog
1 2010-11-22 Richard Guenther <rguenther@suse.de>
2
3 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
4
5 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
6
7 PR rtl-optimization/45652
8 * alias.c (get_reg_base_value): New.
9 * rtl.h (get_reg_base_value): Add prototype.
10 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
11 non-null REG_BASE_VALUE for renaming.
12
13 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
14 Basile Starynkevitch <basile@starynkevitch.net>
15
16 * gengtype.c: Include xregex.h and obstack.h
17 Added comments about role of get_output_file_with_visibility and
18 our regexpr machinery.
19 (frul_actionrout_t, struct file_rule_st): New.
20 (hader_dot_h_frul, source_dot_c_frul): New functions.
21 (NULL_REGEX, NULL_FRULACT): New.
22 (files_rules): New.
23 (matching_file_name_substitute): New function.
24 (get_output_file_with_visibility): Updated comments and rewritten
25 to use the new files_rules machinery.
26
27 * Makefile.in (XREGEX_H): Added variable.
28 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
29
30 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
31
32 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
33
34 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
35
36 * target.def (conditional_register_usage): Define.
37 * reginfo.c (init_reg_sets_1): Call
38 targetm.conditional_register_usage.
39 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
40 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
41 for making it a hook.
42 * doc/tm.texi: Regenerate.
43 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
44 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
45 New function.
46 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
47 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
48 * config/arc/arc.c (arc_conditional_register_usage): ...here.
49 New function.
50 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
51 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
52 * config/arm/arm.c (arm_conditional_register_usage): ...here.
53 New function.
54 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
55 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
56 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
57 * config/bfin/bfin.c (conditional_register_usage): Move code into...
58 (bfin_conditional_register_usage): ...here. New function.
59 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
60 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
61 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
62 * config/cris/cris.c (cris_conditional_register_usage): Make static.
63 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
64 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
65 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
66 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
67 * config/frv/frv.c (frv_conditional_register_usage): Make static.
68 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
69 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
70 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
71 New function.
72 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
73 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
74 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
75 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
76 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
77 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
78 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
79 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
80 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
81 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
82 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
83 New function.
84 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
85 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
86 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
87 Delete.
88 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
89 static.
90 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
91 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
92 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
93 * config/mep/mep.c (mep_conditional_register_usage): Make static.
94 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
95 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
96 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
97 * config/mips/mips.c (mips_conditional_register_usage): Make static.
98 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
99 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
100 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
101 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
102 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
103 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
104 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
105 ...here. New function.
106 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
107 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
108 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
109 * config/pa/pa.c (pa_conditional_register_usage): ...here.
110 New function.
111 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
112 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
113 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
114 New function.
115 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
116 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
117 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
118 Delete.
119 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
120 static.
121 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
122 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
123 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
124 * config/rx/rx.c (rx_conditional_register_usage): Make static.
125 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
126 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
127 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
128 * config/s390/s390.c (s390_conditional_register_usage): Make static.
129 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
130 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
131 * config/score/score.c (score_conditional_register_usage): ...here.
132 New function.
133 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
134 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
135 * config/sh/sh.c (sh_conditional_register_usage): ...here.
136 New function.
137 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
138 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
139 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
140 New function.
141 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
142 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
143 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
144 * config/spu/spu.c (spu_conditional_register_usage): Make static.
145 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
146 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
147 * config/v850/v850.c (v850_conditional_register_usage): ...here.
148 New function.
149 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
150
151 2010-11-21 Jan Hubicka <jh@suse.cz>
152 Dominique d'Humieres <dominiq@lps.ens.ft>
153
154 PR target/46510
155 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
156 finalize external decls.
157
158 2010-11-21 Joseph Myers <joseph@codesourcery.com>
159
160 * system.h (strerror): Poison.
161
162 2010-11-21 Richard Henderson <rth@redhat.com>
163
164 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
165 for infq/huge_valq.
166
167 2010-11-21 Richard Henderson <rth@redhat.com>
168
169 PR rtl-optimization/46571
170 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
171 (compute_hash_table_work): Use NONDEBUG_INSN_P.
172
173 2010-11-21 Paul Koning <ni1d@arrl.net>
174
175 * config/mips/pdp11.md (negsi2): Fix wrong code.
176
177 2010-11-21 Paul Koning <ni1d@arrl.net>
178
179 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
180 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
181
182 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
183
184 * config/mips/mips.c (machine_function): Rename load_label_length to
185 load_label_num_insns.
186 (mips_load_label_length): Rename to...
187 (mips_load_label_num_insns): ...this. Adjust to first renaming.
188 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
189
190 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
191
192 PR target/46533
193 * config/alpha/predicates.md (direct_call_operand): Return false
194 for !TARGET_SMALL_TEXT targets.
195
196 2010-11-20 Joseph Myers <joseph@codesourcery.com>
197
198 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
199 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
200 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to
201 HANDLE_SYSV_PRAGMA.
202 * doc/tm.texi: Regenerate.
203 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
204 HANDLE_PRAGMA_WEAK): Poison.
205 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
206 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
207 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
208 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
209 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
210 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
211 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
212 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
213 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
214 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
215 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
216 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
217 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
218 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
219 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
220 (HANDLE_PRAGMA_WEAK): Don't undefine.
221 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
222 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
223 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
224 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
225 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
226 (HANDLE_PRAGMA_WEAK): Don't undefine.
227 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
228 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
229 (HANDLE_PRAGMA_PACK): Don't undefine.
230 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
231 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
232 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
233 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
234 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
235 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
236 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
237 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
238 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
239 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
240 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
241 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
242 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
243 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
244 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
245 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
246 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
247
248 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
249
250 PR target/31100
251 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
252 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
253 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
254
255 2010-11-20 Jan Hubicka <jh@suse.cz>
256
257 * cgraph.c (ld_plugin_symbol_resolution_names): New.
258 (dump_cgraph_node): Dump resolution.
259 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
260 (cgraph_comdat_can_be_unshared_p): Dclare.
261 * lto-streamer-out.c (produce_symtab): Use
262 cgraph_comdat_can_be_unshared_p.
263 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
264 (cgraph_comdat_can_be_unshared_p): New function based on logic
265 in cgraph_externally_visible_p.
266 (cgraph_externally_visible_p): Use it.
267 (varpool_externally_visible_p): Virtual tables can be unshared.
268 * varpool.c (dump_varpool_node): Dump resolution.
269
270 2010-11-20 Jan Hubicka <jh@suse.cz>
271
272 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
273
274 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
275
276 PR other/46202
277 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
278 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
279 shell quoting.
280 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
281 (install-strip): New target.
282 (STRIPPROG): New variable, exported if STRIP is set.
283 * doc/install.texi (Final install): Minor markup and code style
284 fixes. Document install-strip target.
285
286 2010-11-20 Paul Koning <ni1d@arrl.net>
287
288 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
289 pdp11_regno_reg_class): New functions.
290 * config/pdp11/pdp11.md (define_constants): Add register numbers.
291 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
292 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
293 functions.
294 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
295 frame pointer and argument pointer pseudo-registers.
296 (ARG_POINTER_REGNUM): Define.
297 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
298 argument pointer.
299 (FIRST_PARM_OFFSET): Update for argument pointer.
300 (INITIAL_FRAME_POINTER_OFFSET): Delete.
301 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
302 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
303 frame pointer and argument pointer.
304
305 2010-11-20 Jakub Jelinek <jakub@redhat.com>
306
307 PR debug/46561
308 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
309 when looking for immediate uses.
310
311 PR tree-optimization/45830
312 * stmt.c (expand_switch_using_bit_tests_p): New function.
313 (expand_case): Use it.
314 * tree.h (expand_switch_using_bit_tests_p): New prototype.
315 * tree-switch-conversion.c (struct switch_conv_info): Add
316 bit_test_uniq, bit_test_count and bit_test_bb fields.
317 (check_range): Fix a comment.
318 (check_process_case): Compute bit_test_uniq and bit_test_count.
319 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
320 allocation.
321 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
322 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
323 (array_value_type): New function.
324 (build_one_array): Use it, if it returned different type,
325 fold_convert all constructor fields and convert back to the
326 wider type in the generated code.
327 (process_switch): Initialize bit_test_uniq, bit_test_count and
328 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
329 returned true.
330
331 2010-11-19 Michael Matz <matz@suse.de>
332
333 PR tree-optimization/46077
334 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
335
336 2010-11-19 Anatoly Sokolov <aesok@post.ru>
337
338 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
339 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
340 function.
341 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
342
343 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
344
345 * mode-switching.c (optimize_mode_switching): Use
346 FOR_BB_INSNS instead of open-coded loop.
347 * cfgrtl.c (redirect_branch_edge): Ditto.
348
349 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
350
351 PR target/46436
352 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
353 to accomodate 32 bit HOST_WIDE_INT.
354 (m68hc11_emit_logical): Remove unused variable insn.
355 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
356 this_insn_uses_iy before use.
357
358 PR target/46434
359 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
360
361 2010-11-19 Joseph Myers <joseph@codesourcery.com>
362
363 PR c/46547
364 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
365 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
366
367 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
368
369 * doc/extend.texi (Function attributes): Document PowerPC target
370 attributes that are supported.
371 (Pragmas): Document that PowerPC now supports target pragmas.
372
373 * doc/options.texi (TargetVariable): Document TargetVariable,
374 HeaderInclude, and SourceInclude.
375
376 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
377 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
378 -ffp-contract=off.
379
380 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
381 SourceInclude directives. Fix a cut+paste error with target save
382 enum variables. Sort enums in the structures after ints and
383 before shorts.
384 * opth-gen.awk: Ditto.
385
386 * configure.ac: Add support for HeaderInclude and SourceInclude option
387 directives to add the appropriate files to the dependency lists.
388 * configure: Regenerate.
389 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
390 (OPTIONS_C_EXTRA): New variable for SourceInclude.
391 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
392 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
393 (gcc-options.o): Ditto.
394 * opt-include.awk: New awk script to handle HeaderInclude and
395 TargetInclude.
396
397 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
398 gets saved in the target options.
399 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
400 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
401 (-mprototype): Ditto.
402 (-mbit-word): ditto.
403 (-mregnames): Ditto.
404 (-msecure-plt): Ditto.
405 (-mbss-plt): Ditto.
406 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
407 (-mpowerpc-gfxopt): Ditto.
408 (-mmfcrf): Ditto.
409 (-mpopcntb): Ditto.
410 (-mfprnd): Ditto.
411 (-mcmpb): Ditto.
412 (-mmmfpgpr): Ditto.
413 (-maltivec): Ditto.
414 (-mhard-dfp): Ditto.
415 (-mmulhw): Ditto.
416 (-mdlmzb): Ditto.
417 (-mmultiple): Ditto.
418 (-mstring): Ditto.
419 (-mpopcntd): Ditto.
420 (-mfriz): Ditto.
421 (-mvsx): Ditto.
422 (-mno-update): Ditto.
423 (-mavoid-indexed-addresses): Ditto.
424 (-mtls-markers): Ditto.
425 (-msched-epilog): Ditto.
426 (-msched-prolog): Ditto.
427 (-maix-struct-return): Ditto.
428 (-msvr4-struct-return): Ditto.
429 (-mxl-compat): Ditto.
430 (-mrecip-precision): Ditto.
431 (-mfp-in-toc): Ditto.
432 (-msum-in-toc): Ditto.
433 (-mvrsave): Ditto.
434 (-mblock-move-inline-limit=): Ditto.
435 (-misel): Ditto.
436 (-mpaired): Ditto.
437 (-mlongcall): Ditto.
438 (-mgen-cell-microcode): Ditto.
439 (-mwarn-cell-microcode): Ditto.
440 (-mwarn-altivec-long): Ditto.
441 (-mprioritize-restricted-insns=): Ditto.
442 (-msingle-float): Ditto.
443 (-mdouble-float): Ditto.
444 (-msimple-fpu): Ditto.
445 (-mxilinx-fpu): Ditto.
446 * config/rs6000/aix64.opt (-mpe): Ditto.
447
448 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
449 (rs6000_cpu): Move variable to be a target variable. Rename
450 cmodel to rs6000_current_cmodel because of macro conflict. Merge
451 -mdebug=<xxx> variables into a single int.
452 (rs6000_always_hint): Ditto.
453 (rs6000_sched_groups): Ditto.
454 (rs6000_align_branch_targets): Ditto.
455 (rs6000_sched_costly_dep): Ditto.
456 (rs6000_sched_insert_nops): Ditto.
457 (rs6000_long_double_type_size): Ditto.
458 (rs6000_ieeequad): Ditto.
459 (rs6000_altivec_abi): Ditto.
460 (rs6000_spe): Ditto.
461 (rs6000_spe_abi): Ditto.
462 (rs6000_float_gprs): Ditto.
463 (rs6000_darwin64_abi): Ditto.
464 (can_override_loop_align): Ditto.
465 (rs6000_sdata): Ditto.
466 (rs6000_tls_size): Ditto.
467 (rs6000_current_abi): Ditto.
468 (rs6000_traceback): Ditto.
469 (rs6000_alignment_flags): Ditto.
470 (rs6000_current_cmodel): Ditto.
471 (rs6000_recip_control): Ditto.
472 (rs6000_cpu_index): Ditto.
473 (rs6000_tune_index): Ditto.
474 (rs6000_debug): Ditto.
475 (rs6000_target_flags_explict): Ditto.
476
477 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
478 declaration.
479
480 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
481 cmodel. Change all uses.
482
483 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
484 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
485 Rename cmodel to rs6000_current_cmodel.
486 (rs6000_sched_groups): Ditto.
487 (rs6000_align_branch_targets): Ditto.
488 (rs6000_sched_costly_dep): Ditto.
489 (rs6000_sched_insert_nops): Ditto.
490 (rs6000_long_double_type_size): Ditto.
491 (rs6000_ieeequad): Ditto.
492 (rs6000_altivec_abi): Ditto.
493 (rs6000_spe): Ditto.
494 (rs6000_spe_abi): Ditto.
495 (rs6000_float_gprs): Ditto.
496 (rs6000_darwin64_abi): Ditto.
497 (can_override_loop_align): Ditto.
498 (rs6000_sdata): Ditto.
499 (rs6000_tls_size): Ditto.
500 (rs6000_current_abi): Ditto.
501 (rs6000_traceback): Ditto.
502 (rs6000_alignment_flags): Ditto.
503 (rs6000_current_cmodel): Ditto.
504 (rs6000_recip_control): Ditto.
505 (rs6000_cpu_index): Ditto.
506 (rs6000_tune_index): Ditto.
507 (rs6000_debug): Ditto.
508 (rs6000_target_flags_explict): Ditto.
509 (rs6000_sched_insert_nops_str): Make static.
510 (rs6000_sched_costly_dep_str): Ditto.
511 (rs6000_recip_name): Ditto.
512 (rs6000_abi_name): Ditto.
513 (rs6000_sdata_name): Ditto.
514 (enum rs6000_traceback_name): Move to rs6000-opts.h.
515 (rs6000_parse_tls_size_option): Delete.
516 (rs6000_valid_attribute_p): New function for target attributes and
517 pragmas.
518 (rs6000_function_specific_save): Ditto.
519 (rs6000_function_specific_restore): Ditto.
520 (rs6000_function_specific_print): Ditto.
521 (rs6000_can_inline_p): Ditto.
522 (rs6000_set_current_function): Ditto.
523 (rs6000_inner_target_options): Ditto.
524 (rs6000_debug_target_options): Ditto.
525 (rs6000_pragma_target_parse): Ditto.
526 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
527 attributes and pragmas.
528 (TARGET_OPTION_SAVE): Ditto.
529 (TARGET_OPTION_RESTORE): Ditto.
530 (TARGET_OPTION_PRINT): Ditto.
531 (TARGET_CAN_INLINE_P): Ditto.
532 (TARGET_SET_CURRENT_FUNCTION): Ditto.
533 (POWER_MASKS): Move to file level scope from the
534 rs6000_option_override_internal function.
535 (POWERPC_MASKS): Ditto.
536 (ISA_*_MASKS): Ditto.
537 (struct rs6000_ptt): Ditto.
538 (processor_target_table): Ditto.
539 (rs6000_cpu_name_lookup): Map cpu name to an index in
540 processor_target_table.
541 (rs6000_debug_reg_global): Print more information on processor
542 options for -mdebug=reg.
543 (rs6000_init_hard_regno_mode_ok): Add support for target
544 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
545 Allow -mdebug=val1,val2. Rename cmodel variable.
546 (rs6000_option_override_internal): Ditto.
547 (rs6000_option_override): Ditto.
548 (rs6000_handle_option): Ditto.
549 (rs6000_conditional_register_usage): Add debug trace message.
550 (struct rs6000_opt_mask): New for target attribute/pragma support.
551 (rs6000_opt_masks): Ditto.
552 (struct rs6000_opt_var): Ditto.
553 (rs6000_opt_vars): Ditto.
554 (rs6000_previous_function): Ditto.
555
556 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
557 wasn't already included.
558 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
559 (enum processor_type): Ditto.
560 (rs6000_cpu): Ditto.
561 (enum fpu_type_t): Ditto.
562 (fpu_type): Ditto.
563 (enum rs6000_dependence_cost): Ditto.
564 (enum rs6000_nop_insertion): Ditto.
565 (enum group_termination): Ditto.
566 (rs6000_long_double_type_size): Ditto.
567 (rs6000_ieeequad): Ditto.
568 (rs6000_altivec_abi): Ditto.
569 (rs6000_spe_abi): Ditto.
570 (rs6000_spe): Ditto.
571 (rs6000_float_gprs): Ditto.
572 (rs6000_alignment_flags): Ditto.
573 (rs6000_sched_insert_nops): Ditto.
574 (enum rs6000_vector): Ditto.
575 (enum rs6000_abi): Ditto.
576 (rs6000_current_opt): Ditto.
577 (rs6000_debug_*): Delete.
578 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
579 (TARGET_DEBUG*): Ditto.
580
581 * config/rs6000/rs6000-opts.h: New header file to define the enums
582 that are used in target variables that are now defined in rs6000.opt.
583
584 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
585 rs6000-opts.h.
586 (rs6000_sdata): Ditto.
587 (rs6000_abi_name): Delete.
588 (rs6000_sdata_name): Ditto.
589 (rs6000_tls_size_string): Ditto.
590
591 2010-11-19 Joseph Myers <joseph@codesourcery.com>
592
593 * common.opt (debug_struct_ordinary, debug_struct_generic): New
594 Variable entries.
595 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
596 should_emit_struct_debug): Move from opts.c.
597 * flag-types.h (enum debug_struct_file): Move from opts.c.
598 * flags.h (should_emit_struct_debug): Remove.
599 (base_of_path): Declare.
600 (set_struct_debug_option): Add gcc_options parameter.
601 * optc-gen.awk, opth-gen.awk: Handle array variables.
602 * opts.c (enum debug_struct_file, debug_struct_ordinary,
603 debug_struct_generic): Remove.
604 (set_struct_debug_option): Add gcc_options parameter.
605 (base_of_path): Remove static.
606 (main_input_basename, main_input_baselength, matches_main_base,
607 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
608 Remove.
609 * toplev.c (main_input_basename, main_input_baselength): Define
610 here.
611 * toplev.h (main_input_basename, main_input_baselength): Declare
612 here.
613
614 2010-11-19 Joseph Myers <joseph@codesourcery.com>
615
616 * common.opt (flag_instrument_functions_exclude_functions,
617 flag_instrument_functions_exclude_files): New Variable definitions.
618 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
619 * gimplify.c (char_p): Declare type and vectors.
620 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
621 * opts.c (flag_instrument_functions_exclude_functions,
622 flag_instrument_functions_exclude_files): Remove.
623 (add_comma_separated_to_vector): Take void **.
624 (flag_instrument_functions_exclude_p): Move to gimplify.c.
625 (common_handle_option): Use options structure for
626 -finstrument-functions-exclude- options.
627
628 2010-11-19 Joseph Myers <joseph@codesourcery.com>
629
630 * doc/options.texi (Var): Document effects of Defer.
631 (Defer): Document.
632 * opt-functions.awk (var_type, var_set): Handle deferred options.
633 * opts-common.c (set_option): Handle CLVC_DEFER.
634 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
635 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
636 fstack-limit-symbol=): Mark as deferred.
637 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
638 plugin.h.
639 (print_filtered_help): Don't report state of CLVC_DEFER options.
640 (common_handle_option): Move code for OPT_fcall_used_,
641 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
642 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
643 OPT_fstack_limit_symbol_ to opts-global.c.
644 (option_enabled, get_option_state): Handle CLVC_DEFER.
645 * opts.h: Include vec.h.
646 (enum cl_var_type): Add CLVC_DEFER.
647 (cl_deferred_option): Define type and vectors.
648 (handle_common_deferred_options): Declare.
649 * opts-global.c: New.
650 * toplev.c (toplev_main): Call handle_common_deferred_options
651 * Makefile.in (OPTS_H): Include $(VEC_H).
652 (OBJS-common): Include opts-global.o.
653 (opts.o): Update dependencies.
654 (opts-global.o): Add dependencies.
655
656 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
657
658 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
659 to objc_declare_protocols.
660
661 2010-11-19 Richard Guenther <rguenther@suse.de>
662
663 PR lto/45789
664 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
665 IDENTIFIERs do not stream TREE_TYPE.
666 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
667
668 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
669
670 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
671
672 2010-11-19 Jakub Jelinek <jakub@redhat.com>
673
674 PR target/45870
675 * dwarf2out.c (const_ok_for_output_1): Don't complain about
676 non-delegitimized TLS UNSPECs.
677
678 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
679 Ian Lance Taylor <iant@google.com>
680
681 * config/darwin-c.c (darwin_additional_format_types): Export.
682
683 2010-11-18 Paul Koning <ni1d@arrl.net>
684
685 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
686 pointer.
687
688 2010-11-18 Paul Koning <ni1d@arrl.net>
689
690 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
691 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
692 * config/pdp11/pdp11.opt (-mabshi): Delete.
693
694 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
695
696 * resource.h (struct resources): Fix typo in the comment.
697
698 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
699
700 PR target/46546
701 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
702
703 2010-11-18 Richard Henderson <rth@redhat.com>
704
705 PR middle-end/46515
706 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
707 maybe_copy_epilogue_insn; handle prologue insns as well.
708 * rtl.h, cfglayout.c: Update for rename.
709 * recog.c (peep2_attempt): Copy prologue/epilogue data for
710 RTX_FRAME_RELATED_P insns.
711
712 2010-11-18 Jakub Jelinek <jakub@redhat.com>
713
714 PR middle-end/46534
715 * builtins.c (fold_builtin_printf): Don't copy and modify string
716 before build_string_literal, instead modify what
717 build_string_literal returned.
718
719 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
720
721 PR c/33193
722 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
723 REALPART_EXPR and IMAGPART_EXPR.
724
725 2010-11-18 Richard Guenther <rguenther@suse.de>
726
727 PR tree-optimization/46172
728 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
729 function.
730 (slpeel_tree_peel_loop_to_edge): Call it.
731
732 2010-11-18 Jeff Law <law@redhat.com>
733
734 PR middle-end-optimization/46297
735 * postreload.c (reload_combine_note_store): Deal with embedded
736 side effects in MEM expressions.
737
738 2010-11-18 Richard Guenther <rguenther@suse.de>
739
740 PR lto/45089
741 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
742 when checking is not enabled.
743
744 2010-11-18 Richard Guenther <rguenther@suse.de>
745
746 PR lto/46525
747 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
748 type leaders.
749 (gimple_register_canonical_type): Also cache the canoncial type
750 for non type leaders.
751
752 2010-11-18 Richard Guenther <rguenther@suse.de>
753
754 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
755
756 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
757
758 PR middle-end/46518
759 * sel-sched-ir.c (init_expr): Use the correct type for
760 target_available.
761 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
762
763 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
764
765 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
766 as well as -mrelocatable at the same time.
767
768 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
769
770 PR target/46422
771 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
772 Call the clz builtin.
773
774 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
775 Steve Ellcey <sje@cup.hp.com>
776
777 PR middle-end/31490
778 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
779 if section attribute used.
780
781 2010-11-17 Jan Hubicka <jh@suse.cz>
782
783 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
784 expand errno setting variant when optimizing for size.
785
786 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
787
788 * postreload.c (reload_combine): Call control_flow_insn_p only once.
789 Reverse backward loop. Fix formatting issues.
790
791 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
792
793 * c-parser.c (c_token_is_qualifier,
794 c_parser_next_token_is_qualifier): New.
795 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
796 Improve error message on specs->tagdef_seen_p.
797 (c_parser_struct_or_union_specifier): Improve error recovery.
798 (c_parser_declspecs): Move exit condition on C_ID_ID early.
799 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
800 using c_parser_next_token_is_qualifier; extend it to cover
801 a ctsk_tagdef typespec and !typespec_ok in general.
802
803 2010-11-17 Richard Guenther <rguenther@suse.de>
804
805 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
806 (gimple_mod_pow2_value_transform): Likewise.
807 (gimple_mod_subtract_transform): Likewise.
808
809 2010-11-17 Richard Guenther <rguenther@suse.de>
810
811 PR lto/46504
812 * gimple.c (gimple_register_canonical_type): Make sure to only
813 make type leaders canonical types.
814
815 2010-11-17 Michael Matz <matz@suse.de>
816
817 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
818 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
819 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
820 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
821 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
822 (pass_build_ssa): ... but here.
823 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
824 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
825 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
826 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
827 * predict.c (rebuild_frequencies): Ditto.
828 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
829 * emit-rtl.c (verify_rtl_sharing): Ditto.
830 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
831 * tree-ssa-live.c (remove_unused_locals): Ditto.
832 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
833 * tree-ssa.c (pass_early_warn_uninitialized,
834 execute_update_addresses_taken, pass_update_address_taken): Ditto.
835 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
836 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
837 * passes.c (pass_postreload, execute_todo): Ditto.
838 * tree-ssanames.c (pass_release_ssa_names): Ditto.
839
840 2010-11-17 Joseph Myers <joseph@codesourcery.com>
841
842 * doc/invoke.texi (-dy): Remove.
843 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
844 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
845 * langhooks.c (lhd_do_nothing_i): Remove.
846 * langhooks.h (lang_hooks.parse_file): Take no arguments.
847 * toplev.c (set_yydebug): Remove.
848 (compile_file): Update call to lang_hooks.parse_file.
849 (decode_d_option): Don't handle -dy.
850
851 2010-11-17 Jakub Jelinek <jakub@redhat.com>
852
853 PR rtl-optimization/46440
854 * combine.c (update_cfg_for_uncondjump): When changing
855 an indirect jump into unconditional jump, remove BARRIERs
856 from bb's footer.
857
858 2010-11-17 Joseph Myers <joseph@codesourcery.com>
859
860 * opts.c (target_handle_option): Do not assert that loc ==
861 UNKNOWN_LOCATION.
862
863 2010-11-17 Jakub Jelinek <jakub@redhat.com>
864 Richard Guenther <rguenther@suse.de>
865
866 PR middle-end/45838
867 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
868 call_may_clobber_ref_p_1): Return true for __sync_* and some
869 OpenMP builtins that act as threading barriers.
870
871 2010-11-17 Richard Guenther <rguenther@suse.de>
872
873 PR tree-optimization/46498
874 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
875
876 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
877
878 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
879 (xtensa_function_arg_boundary): ...this.
880 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
881 thinko in declaration.
882 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
883 number of parameters to picochip_function_arg_boundary.
884 (picochip_arg_advance): Likewise.
885
886 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
887
888 PR target/46512
889 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
890 under check for type.
891
892 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
893
894 * ifcvt.c (dead_or_predicable): Fix typo.
895
896 2010-11-16 Richard Henderson <rth@redhat.com>
897
898 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
899 * config/s390/s390.opt (mfused-madd): Remove.
900 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
901 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
902 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
903 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
904
905 2010-11-16 Richard Henderson <rth@redhat.com>
906
907 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
908 * config/rs6000/rs6000.opt (mfused-madd): Remove.
909 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
910 (*altivec_vmaddfp_1): Remove.
911 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
912 (altivec_mulv4sf3): Expand to FMA directly.
913 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
914 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
915 * config/rs6000/paired.md (paired_madds0): Use FMA.
916 (paired_madds1): Likewise.
917 (*paired_madd): Rename from paired_madd; use FMA.
918 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
919 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
920 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
921 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
922 (rs6000_emit_madd): Use fma_optab.
923 (rs6000_emit_msub): Use fms_optab.
924 (rs6000_emit_nmsub): Expand the FMA pattern directly.
925 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
926 (*fmasf4_fpr): Rename from fmasf4_fpr.
927 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
928 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
929 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
930 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
931 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
932 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
933 (*fmadf4_fpr): Rename from fmadf4_fpr.
934 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
935 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
936 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
937 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
938 (fmasf4, fmadf4): Macroize into...
939 (fma<FMA_F>4): ... here.
940 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
941 (nfma<FMA_F>4, nfms<FMA_F>4): New.
942 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
943 TARGET_FUSED_MADD.
944 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
945 (*vsx_fmadd<mode>4_1): Remove.
946 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
947 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
948 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
949 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
950 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
951 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
952 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
953
954 2010-11-16 Richard Henderson <rth@redhat.com>
955
956 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
957 (fmasf4, fnmadf4, fnmasf4): Likewise.
958 (unnamed plus+mult insns and splitters): Delete.
959
960 2010-11-16 Richard Henderson <rth@redhat.com>
961
962 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
963 (fnma<VSF>4): Rename from fnms_<VSF>.
964 (fms<VSF>4): Rename from fms_<VSF>.
965 (fma<VDF>4): Rename from fma_<VDF>.
966 (fms<VDF>4): Rename from fms_<VDF>.
967 (nfma<VDF>4): Rename from fnma_<VDF>.
968 (nfms<VDF>4): Rename from fnms_<VDF>.
969 (fnma<VDF>4, fnms<VDF>4): New expanders.
970 (floatunsdisf2): Update for the renames.
971 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
972 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
973
974 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
975
976 PR rtl-optimization/46490
977 * combine.c (expand_compound_operation): Fix thinko.
978
979 2010-11-16 Richard Henderson <rth@redhat.com>
980
981 PR target/46470
982 * recog.c (peep2_attempt): Convert frame-related info when possible.
983 (peep2_fill_buffer): Allow frame-related insns into the buffer.
984 (peephole2_optimize): Allow peep2_attempt to fail.
985
986 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
987
988 PR rtl-optimization/46315
989 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
990 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
991 extracted from...
992 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
993 (remove_reg_equal_equiv_notes_for_defs): ...this.
994 (delete_unmarked_insns): Adjust to above renaming.
995 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
996 referring to registers set in the insns being moved, if any.
997
998 * df-core.c (df_ref_dump): New function extracted from...
999 (df_refs_chain_dump): ...here. Call it.
1000 (df_regs_chain_dump): Likewise.
1001 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
1002 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
1003
1004 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
1005
1006 PR rtl-optimization/46395
1007 * postreload.c (reload_combine): Invalidate register use
1008 information on all control flow insns.
1009
1010 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
1011 LABEL_REF in UNSPEC operand.
1012
1013 2010-11-16 Jan Hubicka <jh@suse.cz>
1014
1015 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
1016 when !flag_toplevel_reorder do not remove unless variable is
1017 COMDAT or ARTIFICIAL.
1018 * ipa.c (varpool_can_remove_if_no_refs): ... here.
1019 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
1020 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
1021 * varpool.c (decide_is_variable_needed): Do not handle visibility
1022 issues.
1023 (varpool_finalize_decl): Likewise.
1024 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
1025 update outdated comment on DECL_RTL_SET_P check.
1026
1027 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1028
1029 * config/sol2.h (NM_FLAGS): Define.
1030 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
1031 * doc/tm.texi: Update.
1032
1033 2010-11-16 Nick Clifton <nickc@redhat.com>
1034
1035 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
1036 (msubsf4): Rename to fmssf4, and use fma.
1037 (nmaddsf4): Rename to fnmasf4 and use fma.
1038 (nmsubsf4): Rename to fnmssf4 and use fma.
1039
1040 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
1041
1042 PR target/44762
1043 * config/score/score3.c (score3_return_in_memory): Constify arguments.
1044 (score3_in_small_data_p, score3_function_value): Likewise.
1045 (score3_trampoline_init): Use LCT_NORMAL.
1046 (score3_print_operand): Initialize code as UNKNOWN.
1047 * config/score/predicates.md (score_load_multiple_operation):
1048 Remove unused variable.
1049 (score_store_multiple_operation): Likewise.
1050 * config/score/score7.c (score7_return_in_memory): Constify arguments.
1051 (score7_in_small_data_p, score7_function_value): Likewise.
1052 (score7_trampoline_init): Use LCT_NORMAL.
1053 (score7_print_operand): Initialize code as UNKNOWN.
1054 * config/score/score3.h (score3_return_in_memory): Update prototype.
1055 (score3_in_small_data_p, score3_function_value): Likewise.
1056 * config/score/score-protos.h (score_function_value): Likewise.
1057 * config/score/score7.h (score7_return_in_memory): Update prototype.
1058 (score7_in_small_data_p, score7_function_value): Likewise.
1059 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
1060 (score_return_in_memory, score_pass_by_reference): Constify arguments.
1061 (score_output_mi_thunk, score_function_prologue): Don't return a value.
1062 (score_function_epilogue, score_in_small_data_p): Likewise.
1063 (score_option_override, score_asm_trampoline_template): Likewise.
1064 (score_trampoline_init, score_print_operand): Likewise.
1065 (score_print_operand_address, score_prologue): Likewise.
1066 (score_epilogue, score_call, score_call_value): Likewise.
1067 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
1068 (score_function_arg_advance): Likewise. Make static.
1069 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
1070 (score_function_arg, score_legitimate_address_p): Make static.
1071 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
1072 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
1073 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
1074 Allow (W) == HOST_BITS_PER_WIDE_INT.
1075
1076 PR java/46386
1077 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
1078 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
1079
1080 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1081
1082 * config/arc/arc.c: Delete pasto.
1083 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
1084
1085 2010-11-16 Anatoly Sokolov <aesok@post.ru>
1086
1087 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
1088 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1089 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
1090 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1091 (mn10300_preferred_reload_class,
1092 mn10300_preferred_output_reload_class): New functions.
1093
1094 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1095
1096 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
1097 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
1098 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
1099 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
1100
1101 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1102
1103 * builtins.c (std_gimplify_va_arg_expr): Use
1104 targetm.calls.function_arg_boundary.
1105 * function.c (assign_parms, locate_and_pad_parm): Likewise.
1106 * calls.c (struct arg_data): Update comment.
1107 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
1108 * target.def (function_arg_boundary): Define.
1109 * targhooks.h (default_function_arg_boundary): Declare.
1110 * targhooks.c (default_function_arg_boundary): Define.
1111 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
1112 TARGET_FUNCTION_ARG_BOUNDARY.
1113 (FUNCTION_ARG_BOUNDARY): Delete.
1114 (TARGET_FUNCTION_ARG_BOUNDARY): New.
1115 * doc/tm.texi: Regenerate.
1116 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
1117 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
1118 * config/arc/arc.c (arc_function_arg_boundary): Define.
1119 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1120 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
1121 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
1122 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
1123 (arm_function_arg_boundary): Define.
1124 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1125 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
1126 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
1127 * config/frv/frv.c (frv_function_arg_boundary): Make static.
1128 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1129 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
1130 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
1131 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
1132 (ix86_compat_function_arg_boundary): Take and return unsigned int.
1133 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1134 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
1135 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
1136 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
1137 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1138 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
1139 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
1140 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1141 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
1142 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
1143 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
1144 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1145 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
1146 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
1147 * config/mips/mips.c (mips_function_arg_boundary): Make static.
1148 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1149 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
1150 * config/pa/pa.c (pa_function_arg_boundary): Define.
1151 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1152 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
1153 * config/picochip/picochip-protos.h
1154 (picochip_get_function_arg_boundary): Delete.
1155 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
1156 Rename to...
1157 (picochip_function_arg_boundary): ...this. Make static.
1158 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
1159 (picochip_arg_advance): Adjust.
1160 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1161 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
1162 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
1163 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
1164 (rs6000_function_arg_boundary): ...this. Make static.
1165 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
1166 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1167 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
1168 * config/rx/rx.c (rx_function_arg_boundary): Define.
1169 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1170 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
1171 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
1172 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1173 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
1174 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
1175 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
1176 (xtensa_function_arg_boundary): ...this. Make static.
1177 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1178
1179 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1180
1181 * expr.c (alignment_for_piecewise_move): New function.
1182 (widest_int_mode_for_size): New function.
1183 (move_by_pieces, move_by_pieces_ninsns): Call them.
1184 (can_store_by_pieces, store_by_pieces_1): Likewise.
1185
1186 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1187
1188 * gcc.c (char_p): Define. Define a VEC of it.
1189 (n_linker_options, n_assembler_options, n_preprocessor_options):
1190 Delete.
1191 (linker_options, assembler_options, preprocessor_options): Convert
1192 to a VEC.
1193 (add_preprocessor_option): Adjust.
1194 (add_assembler_option): Adjust.
1195 (add_linker_option): Adjust.
1196 (do_specs_vec): New function.
1197 (do_spec_1): Call it. Adjust for new types.
1198
1199 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1200
1201 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
1202 (sreal.o, statistics.o, stringpool.o): Likewise.
1203
1204 2010-11-16 Richard Guenther <rguenther@suse.de>
1205
1206 PR tree-optimization/44545
1207 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
1208 statements are not reassociatable.
1209 (reassociate_bb): Likewise.
1210
1211 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1212
1213 * bitmap.c: Delete unnecessary includes.
1214 * ebitmap.c: Likewise.
1215 * et-forest.c: Likewise.
1216 * sreal.c: Likewise.
1217 * statistics.c: Likewise.
1218 * stringpool.c: Likewise.
1219 * double-int.c: Add comment for inclusion of tm.h.
1220
1221 2010-11-16 Richard Guenther <rguenther@suse.de>
1222
1223 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
1224 (visit_nary_op): ... this.
1225 (visit_binary_op): Remove.
1226 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
1227
1228 2010-11-16 Richard Guenther <rguenther@suse.de>
1229
1230 PR middle-end/45172
1231 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
1232
1233 2010-11-16 Nick Clifton <nickc@redhat.com>
1234
1235 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
1236 record is packed.
1237
1238 2010-11-15 Richard Henderson <rth@redhat.com>
1239
1240 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
1241 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
1242 DOT_PROD_EXPR.
1243
1244 2010-11-15 Richard Henderson <rth@redhat.com>
1245
1246 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
1247 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
1248 fma rtx_code.
1249
1250 2010-11-15 Richard Henderson <rth@redhat.com>
1251
1252 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
1253 and *mulsubsf4 respectively. Use fma rtx_code.
1254
1255 2010-11-15 Joseph Myers <joseph@codesourcery.com>
1256
1257 * gcc.c: Include "vec.h".
1258 (argbuf): Make into a VEC.
1259 (argbuf_length, argbuf_index): Remove.
1260 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
1261 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
1262 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
1263 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
1264 (gcc.o): Depend on $(VEC_H).
1265
1266 2010-11-15 Richard Henderson <rth@redhat.com>
1267
1268 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
1269 via FMA if unsafe math.
1270 (insert_var_expansion_initialization): Handle FMA.
1271 (combine_var_copies_in_loop_exit): Likewise.
1272
1273 2010-11-15 Richard Henderson <rth@redhat.com>
1274
1275 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
1276 * config/ia64/ia64.opt: Remove mfused-madd.
1277 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
1278 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
1279 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
1280 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
1281 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
1282 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
1283 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
1284 (fmav2sf4): Rename from fpma; use FMA code.
1285 (fmsv2sf4): Rename from fpms; use FMA code.
1286 (fnmav2sf4): Rename from *fpnma; use FMA code.
1287 * config/ia64/ia64.md (MODE_SDF): New iterator.
1288 (suffix): New mode attribute.
1289 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
1290 (fmssf4): Rename from *fmssf4.
1291 (fnmasf4): Rename from *nfmasf4.
1292 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
1293 (*nmadddf4, *nmadddf4_truncsf): Remove.
1294 (fmsdf4): Rename from *fmsdf4.
1295 (fnmadf4): Rename from *nfmadf4.
1296 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
1297 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
1298 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
1299 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
1300 (fmsxf4): Rename from *fmsxf4.
1301 (fnmaxf4): Rename from *nfmaxf4.
1302 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
1303 (*fnmaxf_trunc_<MODE_SDF>): New.
1304
1305 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR tree-optimization/46461
1308 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
1309 a gimple val.
1310
1311 2010-11-15 Ian Lance Taylor <iant@google.com>
1312
1313 * godump.c: New file.
1314 * common.opt (fdump-go-spec=): New option.
1315 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
1316 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
1317 (TYPE_SYMTAB_IS_DIE): Define.
1318 (struct tree_type): Change GTY for symtab field to use
1319 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
1320 to pick the union field.
1321 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
1322 (dump_go_spec_init): Declare.
1323 * toplev.c (process_options): Handle flag_dump_go_spec.
1324 * debug.c: Include "tree.h".
1325 (do_nothing_debug_hooks): Set tree_type_symtab_field.
1326 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1327 * dbxout.c (dbx_debug_hooks): Likewise.
1328 (xcoff_debug_hooks): Likewise.
1329 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1330 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
1331 SDB_DEBUGGING_INFO is not defined.
1332 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
1333 (Overall Options): Document -fdump-go-spec.
1334 * Makefile.in (OBJS-common): Add godump.o.
1335 (debug.o): Add dependency on $(TREE_H).
1336 (godump.o): New target.
1337 (GTFILES): Add $(srcdir)/godump.c.
1338
1339 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1340
1341 PR debug/46095
1342 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
1343 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
1344 style < 0, add REG_FRAME_RELATED_EXPR.
1345
1346 PR debug/46387
1347 * rtl.h (vt_equate_reg_base_value): New prototype.
1348 * alias.c (vt_equate_reg_base_value): New function.
1349 * var-tracking.c (vt_init_cfa_base): Use it.
1350
1351 2010-11-15 Jan Hubicka <jh@suse.cz>
1352 Diego Novillo <dnovillo@google.com>
1353
1354 PR lto/41528
1355 * doc/lto.texi: Add.
1356 * doc/gccint.texi: Add reference to lto.texi.
1357 * doc/invoke.texi: Update user documentation for LTO.
1358 Move internal flags to lto.texi
1359
1360 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1361
1362 * c-typeck.c (build_unary_op): Use
1363 objc_build_incr_expr_for_property_ref to build the pre/post
1364 increment/decrement of an Objective-C property ref, and skip the
1365 lvalue_or_else check in that case.
1366
1367 2010-11-15 Martin Jambor <mjambor@suse.cz>
1368
1369 PR tree-optimization/46349
1370 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
1371 (contains_vce_or_bfcref_p): Likewise.
1372 (sra_modify_assign): Use them.
1373
1374 2010-11-15 Richard Guenther <rguenther@suse.de>
1375
1376 PR tree-optimization/46467
1377 * tree-ssa-structalias.c (do_structure_copy): Properly treat
1378 variables without subvars.
1379
1380 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
1381
1382 * config/picochip/picochip.c (file header): Picochip name change.
1383 * config/picochip/picochip.md (file header): Likewise.
1384 * config/picochip/predicates.md (file header): Likewise.
1385 * config/picochip/dfa_space.md (file header): Likewise.
1386 * config/picochip/dfa_speed.md (file header): Likewise.
1387 * config/picochip/picochip.h(file header): Likewise.
1388 * config/picochip/constraints.md (file header): Likewise.
1389 * config/picochip/picochip-protos.h (file header): Likewise.
1390 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
1391 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
1392 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
1393 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
1394 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
1395 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
1396 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
1397 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
1398 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
1399 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
1400 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
1401 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
1402 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
1403 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
1404
1405 2010-11-15 Richard Guenther <rguenther@suse.de>
1406
1407 PR bootstrap/46474
1408 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
1409
1410 2010-11-15 Nick Clifton <nickc@redhat.com>
1411
1412 * config/stormy16/stormy16.c (direct_return): Do not generate a
1413 direct return for interrupt handlers.
1414
1415 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
1416
1417 * Makefile.in (tm.texi): Replace with rule for:
1418 ($(srcdir)/doc/tm.texi).
1419 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
1420 $(srcdir)/doc/tm.texi .
1421 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
1422 tm.texi .
1423
1424 PR target/46427
1425 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
1426
1427 PR bootstrap/45444
1428 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
1429 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
1430
1431 PR target/46432
1432 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1433
1434 2010-11-15 Richard Guenther <rguenther@suse.de>
1435
1436 PR lto/44150
1437 * lto-opts.c (lto_write_options): Write -fexceptions even if
1438 not set by the user.
1439
1440 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1441
1442 PR c/46462
1443 * c-decl.c (declspecs_add_type): Make variables with error types
1444 integers.
1445 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
1446 do not start a declaration before an Objective-C foreach.
1447 (c_parser_declaration_or_fndef): Improve recovery after unknown
1448 type name.
1449 (c_parser_for_statement): Hoist entrance of "foreach context"
1450 before ifs, add corresponding reset where it was missing. Do
1451 not set objc_could_be_foreach_context for C.
1452
1453 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
1454
1455 PR tree-optimization/45722
1456 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
1457 this is a reference to a component.
1458 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
1459 (ipa_note_param_call): Adjust comment.
1460
1461 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
1462
1463 * config/mips/mips.c (machine_function): Remove
1464 initialized_mips16_gp_pseudo_p.
1465 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
1466 detect whether a pseudo has already been created. Unconditionally
1467 create a new one if not.
1468 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
1469 expanding to rtl. Create a new pseudo otherwise, if allowed.
1470
1471 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
1472
1473 PR target/43440
1474 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
1475 * tm.texi: Regenerated.
1476 * output.h (decode_reg_name_and_count): Declare.
1477 * varasm.c (decode_reg_name_and_count): New function.
1478 (decode_reg_name): Reimplement using decode_reg_name_and_count.
1479 * reginfo.c (fix_register): Use decode_reg_name_and_count and
1480 iterate over all regs used.
1481 * stmt.c (expand_asm_operands): Likewise.
1482 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
1483 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
1484 multiple machine registers.
1485
1486 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * stor-layout.c (place_union_field): Do not put location information
1489 on offset expressions.
1490 (place_field): Likewise.
1491 (finalize_record_size): Likewise on size expressions.
1492 (finalize_type_size): Likewise.
1493 (layout_type): Likewise.
1494
1495 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
1496
1497 PR debug/42889
1498 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
1499 * df-core.c (df_set_bb_dirty_nonrl): Remove.
1500 * df.h (df_set_bb_dirty_nonlr): Likewise.
1501
1502 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
1503
1504 * config/mips/mips.md (call_internal): Pass curr_insn to
1505 mips_split_call.
1506 (call_internal_direct): Ditto.
1507 (call_value_internal): Ditto.
1508 (call_value_internal_direct): Ditto.
1509 (call_value_multiple_internal): Ditto.
1510 * config/mips/mips.c (mips_split_call): Do not copy
1511 CALL_INSN_FUNCTION_USAGE here.
1512
1513 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
1514
1515 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
1516 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
1517 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
1518 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
1519 (TUNE_LOONGSON_3A): Define.
1520 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
1521 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
1522 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
1523 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
1524 (mips_rtx_cost_data): Add Loongson-3A.
1525
1526 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1527
1528 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
1529 switches.
1530
1531 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1532
1533 * dwarf2out.c (macinfo_entry): New struct.
1534 (output_comp_unit): Emit the section start label here and flag that we
1535 will emit an info section.
1536 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
1537 emitting directly.
1538 (dwarf2out_end_source_file): Likewise.
1539 (dwarf2out_define): Likewise.
1540 (dwarf2out_undef): Likewise.
1541 (output_macinfo): New.
1542 (dwarf2out_init): Do not emit debug section switches here, allocate a
1543 vec for macinfo, when required.
1544 (dwarf2out_finish): First switch to debug_abbrev_section here.
1545 debug_line_section, debug_macinfo_section, Likewise.
1546 Check that the pubtypes table has at least one unpruned entry before
1547 trying to emit it.
1548
1549 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1550
1551 PR c/20385
1552 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
1553 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
1554 token lookahead.
1555 (c_parser_compound_statement_nostart, c_parser_label,
1556 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
1557 (c_parser_declaration_or_fndef): Detect the case now matched by
1558 c_parser_next_tokens_start_declaration, give error and correct it.
1559
1560 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1561
1562 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
1563 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
1564 with typespec_kind.
1565 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
1566 (shadow_tag_warned, check_compound_literal_type): Adjust
1567 uses of tag_defined_p.
1568 (declspecs_add_type): Set typespec_kind.
1569 * c-parser.c (c_parser_declaration_or_fndef,
1570 c_parser_declspecs, c_parser_struct_declaration,
1571 c_parser_parameter_declaration, c_parser_type_name,
1572 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
1573 of type_seen_p.
1574 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
1575 tag_defined_p, pass ctsk_firstref through.
1576
1577 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1578
1579 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
1580 (struct format_wanted_type): Replace field "name" with "kind", add
1581 "format_start" and "format_length".
1582 (check_format_info_main): Fill in new fields. Fill in
1583 FORMAT_WANTED_TYPES even for missing arguments. Move checks
1584 after the final NUL outside the while loop. Do not include
1585 width and precision modifiers in the format_start/format_length
1586 of the main format.
1587 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
1588 arguments. Compute WANTED_TYPE first so that format_type_warning
1589 can be called for missing arguments. Adjust calls to
1590 format_type_warning.
1591 (format_type_warning): Fetch as much information as possible
1592 from format_wanted_type. Adjust printing now that every
1593 warning has a "descr", as well as for missing argument warnings
1594 and to include % sign for format specifiers.
1595
1596 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
1597
1598 PR rtl-optimization/46204
1599 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
1600 Update all callers. Do not recompute topological order. Adjust
1601 fallthrough edges following a degenerate conditional jump.
1602
1603 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1604
1605 * opts-common.c (control_warning_option): New.
1606 * opts.c (set_default_handlers): New.
1607 (decode_options): Use set_default_handlers and
1608 control_warning_option.
1609 (common_handle_option): Update call to enable_warning_as_error.
1610 (enable_warning_as_error): Take gcc_options parameters. Use
1611 control_warning_option.
1612 * opts.h (set_default_handlers, control_warning_option): Declare.
1613
1614 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1615
1616 * Makefile.in (OPTS_H): Define.
1617 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
1618 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
1619 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
1620 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
1621 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
1622 * gcc.c (driver_handle_option): Take location_t parameter.
1623 (process_command, do_self_spec): Update calls to
1624 read_cmdline_option.
1625 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
1626 * langhooks.c (lhd_handle_option): Take location_t parameter.
1627 * langhooks.h (handle_option): Take location_t parameter.
1628 * lto-opts.c (lto_reissue_options): Update call to set_option.
1629 * opts-common.c (handle_option): Make static. Take location_t
1630 parameter and pass it to other functions.
1631 (handle_generated_option): Take location_t parameter and pass it
1632 to other functions.
1633 (read_cmdline_option): Take location_t parameter and pass it to
1634 other functions. Use warning_at and error_at.
1635 (set_option): Take location_t parameter and pass it to other
1636 functions.
1637 * opts.c (common_handle_option): Take location_t parameter and
1638 pass it to other functions.
1639 (enable_warning_as_error): Make static. Take location_t parameter
1640 and pass it to other functions.
1641 (lang_handle_option): Take location_t parameter and pass it to
1642 other functions.
1643 (target_handle_option): Take location_t parameter.
1644 (read_cmdline_options, maybe_default_option,
1645 maybe_default_options, default_options_optimization,
1646 decode_options): Take location_t parameter and pass it to other
1647 functions.
1648 * opts.h: Include input.h.
1649 (struct cl_option_handler_func, decode_options, set_option,
1650 handle_generated_option, read_cmdline_option): Take location_t
1651 parameters.
1652 (handle_option, enable_warning_as_error): Remove.
1653 * toplev.c (toplev_main): Update call to decode_options.
1654
1655 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
1656
1657 * graphite-cloog-util.c (oppose_constraint,
1658 cloog_matrix_to_ppl_constraint,
1659 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
1660 CLooG isl uses unsigned integers. This triggered a warning.
1661
1662 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1663
1664 PR target/46438
1665 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
1666 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
1667 (xtensa_function_arg_1): De-constify cum.
1668 (xtensa_expand_prologue): Use add_reg_note.
1669
1670 PR target/46435
1671 * config/cris/cris.c (saved_regs_mentioned): Delete.
1672 (cris_reload_address_legitimized): Cast itype to enum reload_type.
1673 Remove unused variable op0p.
1674 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
1675 (cris_emit_movem_store): Use add_reg_note.
1676
1677 PR bootstrap/46456
1678 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
1679
1680 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
1681
1682 * function.c (expand_function_end): Set the locator of the prologue on
1683 the stack checking insns.
1684
1685 2010-11-12 Richard Henderson <rth@redhat.com>
1686
1687 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
1688 * config/xtensa/xtensa.opt (mfused-madd): Remove.
1689 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
1690 MASK_FUSED_MADD.
1691 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
1692 (fnmasf4): Rename from mulsubsf3; use fma.
1693
1694 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1695 Richard Henderson <rth@redhat.com>
1696
1697 PR target/46428
1698 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
1699 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
1700 comparison.
1701
1702 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
1703
1704 * opts-common.c (decode_cmdline_option): Initialize separate_args.
1705
1706 2010-11-12 Jan Hubicka <jh@suse.cz>
1707
1708 * doc/invoke.texi (early-inlining-insns): Update default.
1709 * params.def (early-inlining-insns): Default to 10.
1710
1711 2010-11-12 Olivier Hainque <hainque@adacore.com>
1712
1713 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
1714
1715 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1716
1717 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
1718 (SUPPORTS_INIT_PRIORITY): Define.
1719
1720 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
1721
1722 PR target/46430
1723 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
1724 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
1725 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1726 (avr_device_to_devicelib): Likewise.
1727 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
1728 into block.
1729 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
1730 (zero_extendhidi2, zero_extendsidi2): Likewise.
1731 * config/avr/avr.c (avr_num_arg_regs): Constify type.
1732 (avr_return_addr_rtx): De-constify tem.
1733 (avr_rotate_bytes): Move declarations to start of block.
1734 Don't use variable length array. Put nested if/else into block.
1735
1736 PR rtl-optimization/46433
1737 * var-tracking.c: Include tm_p.h .
1738
1739 PR bootstrap/44756
1740 PR build/44767
1741 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
1742 should be unsigned.
1743 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
1744 * doc/tm.texi: Regenerate.
1745
1746 PR target/46412
1747 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
1748 * config/bfin/bfin.c: Include sel-sched.h .
1749 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
1750 (expand_interrupt_handler_prologue): Remove unused variable insn.
1751 (bfin_load_pic_reg): Likewise.
1752 (bfin_rtx_costs): Make code / outer_code variables of type
1753 enum rtx_code, copied from re-named parameters.
1754 (bfin_local_alignment): Change align argument and return type
1755 to unsigned.
1756 (bfin_adjust_cost): Remove unused variable insn_type.
1757 Declare variables at start of block.
1758 (struct loop_info): Rename to...
1759 (struct loop_info_d).
1760 (workaround_rts_anomaly): Change type of icode to int.
1761 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
1762 with int-typed variable.
1763 (note_np_check_stores): Likewise.
1764 (trapping_loads_p): Remove unused variable pat.
1765 (bfin_expand_binop_builtin): Use expand_normal.
1766 (bfin_expand_unop_builtin): Likewise.
1767 (bfin_expand_builtin): Likewise. Set tmode before use.
1768
1769 PR middle-end/44769
1770 * final.c (split_double): Don't use BITS_PER_WORD directly in
1771 shift count.
1772
1773 PR target/46431
1774 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
1775 assignment.
1776
1777 PR target/46450
1778 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1779 Use add_reg_note.
1780 (xstormy16_function_arg): Dereference cum.
1781 (xstormy16_expand_builtin): Use expand_normal.
1782 Change type of omode to enum machine_mode.
1783 (combine_bnp): Rename and to and_insn.
1784
1785 PR target/46437
1786 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
1787 localreg.
1788
1789 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
1790
1791 PR debug/46375
1792 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
1793
1794 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1795
1796 PR lto/46376
1797 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
1798
1799 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
1800
1801 PR c/44782
1802 * common.opt (fmax-errors=): New option.
1803 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
1804 * diagnostic.h (struct diagnostic_context): Add max_errors field.
1805 * diagnostic.c (diagnostic_initialize): Initialize it.
1806 (diagnostic_action_after_output): Exit if more than max_errors
1807 have been output.
1808 * doc/invoke.texi (Warning Options): Add -fmax-errors.
1809 (-fmax-errors): Document.
1810
1811 2010-11-11 Richard Henderson <rth@redhat.com>
1812
1813 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
1814
1815 2010-11-11 Richard Henderson <rth@redhat.com>
1816
1817 * config/fused-madd.opt: New file.
1818 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
1819 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
1820 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1821 * config/i386/i386.opt (mfused-madd): Remove.
1822 * config/i386/sse.md (split_fma): Remove.
1823 (split_fms, split_fnma, split_fnms): Remove.
1824
1825 2010-11-12 Jakub Jelinek <jakub@redhat.com>
1826
1827 PR target/46088
1828 * config/i386/i386.md (*ashl<mode>3_cconly,
1829 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
1830 change nonimmediate_operand predicate to register_operand.
1831
1832 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
1833
1834 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
1835
1836 2010-11-11 Jan Hubicka <jh@suse.cz>
1837
1838 * opts.c (finish_options): Do not error on -flto-partition alone.
1839
1840 * doc/invoke.texi (-fwhopr): Merge into -flto section.
1841 (-flto-partition): Document none.
1842 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
1843 * lto-wrapper.c: Update comment.
1844 (run_gcc): Update LTO option parsing.
1845 * opts.c (finish_options): add support -flto-partition=none
1846 (common_handle_option): Remove fwhopr.
1847 * common.opt: Turn fwhopr into flto.
1848 * collect2.c (main): Update option handling.
1849 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
1850 * ipa-split.c (execute_split_functions): Remove flag_whopr.
1851 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
1852 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
1853 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
1854
1855 2010-11-11 Jan Hubicka <jh@suse.cz>
1856
1857 PR tree-optimize/40436
1858 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
1859 (eliminated_by_inlining_prob): ... this one; return 50% probability
1860 for SRA.
1861 (estimate_function_body_sizes): Update use of
1862 eliminated_by_inlining_prob; estimate static function size
1863 for 2 instructions.
1864
1865 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
1866
1867 PR target/44749
1868 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
1869 declare. Change type of argument four to type int.
1870 (mep_secondary_input_reload_class): Returns enum reg_class.
1871 (mep_secondary_output_reload_class): Likewise.
1872 (mep_function_value): Change types of arguments to cont_tree.
1873 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
1874 argument four to type int.
1875 (mep_secondary_input_reload_class): Returns enum reg_class.
1876 (mep_secondary_output_reload_class): Likewise.
1877 (mep_function_value): Change types of arguments to cont_tree.
1878 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
1879 mep_regno_reg_class to enum reg_class.
1880
1881 2010-11-11 Richard Henderson <rth@redhat.com>
1882
1883 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
1884 that the target has the exact fma operation that we matched.
1885
1886 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1887
1888 * reginfo.c (fix_register): Avoid inserting English word in
1889 diagnostic sentence. Use %qs for quoting and %'.
1890
1891 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
1892
1893 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1894 Intel processor family 6, model 0x2c.
1895
1896 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1897
1898 * opts.c (warning_as_error_callback,
1899 register_warning_as_error_callback): Remove.
1900 (enable_warning_as_error): Don't use warning_as_error_callback.
1901 * opts.h (register_warning_as_error_callback): Remove.
1902
1903 2010-11-11 Richard Henderson <rth@redhat.com>
1904
1905 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
1906 in between the MULT and the PLUS/MINUS.
1907
1908 2010-11-11 Jakub Jelinek <jakub@redhat.com>
1909
1910 PR middle-end/46388
1911 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
1912 BLKmode mode for it.
1913 (expand_expr_real_1): Similarly for op0.
1914
1915 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1916
1917 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
1918 Document optional target selector.
1919
1920 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
1921
1922 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
1923 assembling high and low parts of size if not using 32-bit HWINT; else
1924 use DECL_SIZE_UNITS, not DECL_SIZE.
1925
1926 2010-11-11 Martin Jambor <mjambor@suse.cz>
1927
1928 PR tree-optimization/46383
1929 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
1930 offsets.
1931 (compute_complex_ancestor_jump_func): Likewise.
1932 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
1933
1934 2010-11-11 Jakub Jelinek <jakub@redhat.com>
1935
1936 PR debug/46150
1937 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
1938 true if expr1->hash != expr2->hash.
1939
1940 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1941
1942 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
1943 diagnostics with lowercase letters.
1944 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
1945 lowercase letters.
1946 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
1947 diagnostic.
1948 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1949 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
1950 lowercase letters.
1951 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1952 Remove trailing ' ' from diagnostic.
1953 * config/avr/avr.c (print_operand_address): Start diagnostic with
1954 a lowercase letter and remove trailing '.'.
1955 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
1956 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
1957 with lowercase letters. Use %' in diagnostics. Remove trailing
1958 '.' from diagnostics.
1959 (bfin_handle_longcall_attribute): Use %' in diagnostic.
1960 * config/cris/cris.c (cris_split_movdx,
1961 cris_expand_pic_call_address): Start diagnostics with lowercase
1962 letters.
1963 (cris_asm_output_label_ref): Use %' in diagnostic.
1964 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
1965 letter.
1966 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
1967 lowercase letter.
1968 * config/darwin-c.c (version_as_macro): Start diagnostic with a
1969 lowercase letter.
1970 * config/darwin-driver.c (darwin_default_min_version): Use %' in
1971 diagnostic.
1972 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
1973 diagnostic.
1974 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1975 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
1976 diagnostics.
1977 * config/i386/i386.c (ix86_option_override_internal): Write
1978 diagnostic as a single sentence without trailing '.'. Use %' in
1979 diagnostics.
1980 (ix86_function_sseregparm, classify_argument): Start diagnostics
1981 with lowercase letters.
1982 (ix86_expand_prologue): Use %' in diagnostic.
1983 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
1984 diagnostic.
1985 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
1986 lowercase letter.
1987 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
1988 diagnostic.
1989 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1990 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
1991 '`' in help text.
1992 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
1993 lowercase letter.
1994 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
1995 lowercase letters.
1996 * config/microblaze/microblaze.c (microblaze_handle_option):
1997 Remove trailing '.' from diagnostic.
1998 (print_operand): Start diagnostic with a lowercase letter.
1999 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
2000 lowercase letters. Avoid '`' in diagnostics.
2001 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
2002 lowercase letters. Avoid '`' in diagnostics.
2003 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
2004 lowercase letters. Avoid '`' in diagnostics.
2005 * config/picochip/picochip.c (picochip_option_override,
2006 picochip_emit_save_register, picochip_function_arg,
2007 picochip_output_label, picochip_output_internal_label,
2008 picochip_asm_output_opcode, picochip_output_cbranch,
2009 picochip_output_compare, picochip_output_branch,
2010 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
2011 diagnostics. Start diagnostics with lowercase letters. Use %' in
2012 diagnostics.
2013 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2014 "SPE" capitalization. Start diagnostic with a lowercase letter.
2015 (rs6000_handle_option): Start diagnostics with lowercase letters.
2016 (def_builtin): Remove trailing '.' from diagnostic.
2017 (rs6000_savres_routine_name): Start diagnostic with a lowercase
2018 letter.
2019 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
2020 diagnostic.
2021 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
2022 lowercase letter.
2023 * config/s390/s390.c (s390_option_override) Start diagnostics with
2024 lowercase letters. Use %' in diagnostic.
2025 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
2026 lowercase letters.
2027 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
2028 diagnostic.
2029 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
2030 diagnostic.
2031 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
2032 diagnostic.
2033 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2034 * config/spu/spu.c (spu_option_override): Start diagnostics with
2035 lowercase letters. Use %qs for quoting in diagnostics.
2036 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
2037 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
2038 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
2039 from diagnostic.
2040 * convert.c (convert_to_integer, convert_to_vector): Use %' in
2041 diagnostics.
2042 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
2043 letter and use "cannot" spelling.
2044 * expmed.c (extract_fixed_bit_field): Start diagnostic with
2045 lowercase letter and format as a single sentence without '.'.
2046 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
2047 Use %' in diagnostics.
2048 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2049 Use %' in diagnostics.
2050 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2051 Use %' in diagnostics.
2052 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
2053 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
2054 with lowercase letters and remove tailing '.' and '\n'.
2055 * lto-cgraph.c (input_profile_summary): Start diagnostic with
2056 lowercase letter and remove trailing '.'.
2057 (input_cgraph): Start diagnostics with lowercase letters and
2058 remove trailing '\n'.
2059 * opts.c (finish_options, common_handle_option): Start diagnostics
2060 with lowercase letters and remove trailing '.'. Fix typo in
2061 diagnostic.
2062 * passes.c (position_pass): Start diagnostic with lowercase letter.
2063 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
2064 register_callback, try_init_one_plugin): Start diagnostics with
2065 lowercase letters.
2066 * reload1.c (spill_failure): Use %' in diagnostic.
2067 (gen_reload): Start diagnostic with a lowercase letter.
2068 * stor-layout.c (place_field): Start diagnostic with a lowercase
2069 letter.
2070 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
2071 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
2072 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
2073 Start diagnostics with lowercase letters, remove trailing '.' and
2074 use %' in diagnostics.
2075 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
2076 (verify_ssa): Don't split diagnostic across two error calls.
2077 Spell out "number" and use %' in diagnostic.
2078 * value-prof.c (visit_hist, check_counter): Start diagnostics with
2079 lowercase letters.
2080
2081 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
2082
2083 PR middle-end/46419
2084 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
2085 (_mm_cvtpu16_ps): Ditto.
2086
2087 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2088
2089 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
2090 warn_larger_than, larger_than_size, warn_frame_larger_than,
2091 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
2092 default_visibility, flag_tls_default): New Variable declarations.
2093 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
2094 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
2095 (v): Declare as Common and document here.
2096 * flags.h (default_visibility, flag_generate_lto,
2097 warn_larger_than, larger_than_size, warn_frame_larger_than,
2098 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
2099 flag_shlib, flag_excess_precision_cmdline): Remove.
2100 (set_Wstrict_aliasing): Update prototype.
2101 * gcc.c (verbose_flag): Remove.
2102 (driver_handle_option): Add diagnostic_context parameter. Don't
2103 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
2104 incrementing it.
2105 * opts-common.c (handle_option): Pass dc to handler.
2106 * opts.c (warn_larger_than, larger_than_size,
2107 warn_frame_larger_than, frame_larger_than_size,
2108 default_visibility): Remove.
2109 (common_handle_option): Add diagnostic_context parameter.
2110 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
2111 gcc_options parameters.
2112 (lang_handle_option, target_handle_option, read_cmdline_options,
2113 decode_options): Add diagnostic_context parameters.
2114 (finish_options): Access option state through opts pointer where
2115 possible.
2116 (common_handle_option): Access option state through opts pointer
2117 where possible. Do not set local static variable verbose. Do not
2118 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
2119 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
2120 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
2121 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
2122 OPT_fwhopr_. Do not explicitly set .opt file variables for
2123 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
2124 (set_Wstrict_aliasing): Add gcc_options parameter.
2125 * opts.h (struct cl_option_handler_func): Add diagnostic_context
2126 parameter to handler.
2127 (decode_options): Add diagnostic_context parameter.
2128 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
2129 asm_file_name, flag_generate_lto, flag_gen_aux_info,
2130 aux_info_file_name, flag_shlib, flag_tls_default,
2131 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
2132 (toplev_main): Pass global_dc to decode_options.
2133 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
2134 aux_info_file_name, asm_file_name): Remove.
2135 * tree.h (flag_tls_default): Remove.
2136
2137 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
2138
2139 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
2140 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
2141
2142 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2143
2144 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
2145 (x86_64-*-*): Likewise.
2146 * config/i386/cpuid.h: Define TBM bit.
2147 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2148 and set has_tbm.
2149 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2150 isa_flag for TBM.
2151 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
2152 (OPTION_MASK_ISA_TBM_UNSET): New.
2153 (ix86_handle_option): Handle -mtbm.
2154 (isa_opts): Add -mtbm.
2155 (enum pta_flags): Add PTA_TBM.
2156 (ix86_option_override_internal): Add TBM support.
2157 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
2158 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
2159 (IX86_BUILTIN_BEXTRI64): Likewise.
2160 (bdesc_args): Add TBM intrinsics.
2161 (ix86_expand_builtin): Add TBM specific case.
2162 * config/i386/i386.h (TARGET_TBM): New for TBM.
2163 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
2164 (tbm_bextri_<mode>): Likewise.
2165 (*tbm_blcfill_<mode>): Likewise.
2166 (*tbm_blci_<mode>): Likewise.
2167 (*tbm_blcic_<mode>): Likewise.
2168 (*tbm_blcmsk_<mode>): Likewise.
2169 (*tbm_blcs_<mode>): Likewise.
2170 (*tbm_blsfill_<mode>): Likewise.
2171 (*tbm_blsic_<mode>): Likewise.
2172 (*tbm_t1mskc_<mode>): Likewise.
2173 (*tbm_tzmsk_<mode>): Likewise.
2174 * config/i386/i386.opt: Add -mtbm.
2175 * config/i386/tbmintrin.h (__bextri_u32): New.
2176 (__blcfill_u32): Likewise.
2177 (__blci_u32): Likewise.
2178 (__blcic_u32): Likewise.
2179 (__blcmsk_u32): Likewise.
2180 (__blcs_u32): Likewise.
2181 (__blsfill_u32): Likewise.
2182 (__blsic_u32): Likewise.
2183 (__t1mskc_u32): Likewise.
2184 (__tzmsk_u32): Likewise.
2185 (__bextri_u64): Likewise.
2186 (__blcfill_u64): Likewise.
2187 (__blci_u64): Likewise.
2188 (__blcic_u64): Likewise.
2189 (__blcmsk_u64): Likewise.
2190 (__blcs_u64): Likewise.
2191 (__blsfill_u64): Likewise.
2192 (__blsic_u64): Likewise.
2193 (__t1mskc_u64): Likewise.
2194 (__tzmsk_u64): Likewise.
2195 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
2196 * doc/invoke.texi: Document -mtbm.
2197 * doc/extend.texi: Document TBM built-in functions.
2198
2199 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2200
2201 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
2202 (x86_64-*-*): Likewise.
2203 * config/i386/cpuid.h: Define BMI bit.
2204 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2205 and set has_bmi.
2206 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2207 isa_flag for BMI.
2208 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
2209 (OPTION_MASK_ISA_BMI_UNSET): New.
2210 (ix86_handle_option): Handle -mbmi.
2211 (isa_opts): Add -mbmi.
2212 (enum pta_flags): Add PTA_BMI.
2213 (ix86_option_override_internal): Add BMI support.
2214 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
2215 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
2216 (IX86_BUILTIN_BEXTR64): Likewise.
2217 (IX86_BUILTIN_CTZS): Likewise.
2218 (bdesc_args): Add BMI intrinsics.
2219 (ix86_expand_args_builtin): Add BMI specific cases.
2220 * config/i386/i386.h (TARGET_BMI): New for BMI.
2221 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2222 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
2223 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
2224 (UNSPEC_TZCNT): Likewise.
2225 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
2226 (bmi_andn_<mode>): New for BMI.
2227 (bmi_bextr_<mode>): Likewise.
2228 (bmi_blsi_<mode>): Likewise.
2229 (bmi_blsmsk_<mode>): Likewise.
2230 (bmi_blsr_<mode>): Likewise.
2231 * config/i386/i386.opt: Add -mbmi.
2232 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
2233 * config/i386/bmiintrin.h (__lzcnt_u16): New.
2234 (__tzcnt_u16): Likewise.
2235 (__andn_u32): Likewise.
2236 (__bextr_u32): Likewise.
2237 (__blsi_u32): Likewise.
2238 (__blsmsk_u32): Likewise.
2239 (__blsr_u32): Likewise.
2240 (__lzcnt_u32): Likewise.
2241 (__tzcnt_u32): Likewise.
2242 (__andn_u64): Likewise.
2243 (__bextr_u64): Likewise.
2244 (__blsi_u64): Likewise.
2245 (__blsmsk_u64): Likewise.
2246 (__blsr_u64): Likewise.
2247 (__lzcnt_u64): Likewise.
2248 (__tzcnt_u64): Likewise.
2249 * doc/invoke.texi: Document -mbmi and -mno-bmi.
2250 * doc/extend.texi: Document BMI built-in functions.
2251
2252 2010-11-10 Jan Hubicka <jh@suse.cz>
2253
2254 PR tree-optimize/46228
2255 * doc/invoke.texi (comdat-sharing-probability): Document.
2256 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
2257 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
2258
2259 2010-11-10 Jan Hubicka <jh@suse.cz>
2260
2261 PR tree-optimize/46228
2262 * cgraph.c (cgraph_propagate_frequency): Fix typo.
2263
2264 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
2265
2266 PR tree-optimization/46414
2267 * tree-inline.c (estimate_move_cost): Check preferred vector
2268 mode for vector type.
2269
2270 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2271
2272 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
2273
2274 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
2275
2276 PR tree-optimization/45971
2277 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
2278 for phi nodes analyzable by scev.
2279
2280 2010-11-10 Richard Guenther <rguenther@suse.de>
2281
2282 PR tree-optimization/44964
2283 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
2284
2285 2010-11-10 Martin Jambor <mjambor@suse.cz>
2286
2287 PR tree-optimization/46351
2288 PR tree-optimization/46377
2289 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
2290 aggregate bit-fields.
2291
2292 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2293
2294 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2295 * doc/tm.texi: Regenerate.
2296 * opts-common.c (tm.h): Don't include.
2297 (target_option_translations): Remove.
2298 (decode_cmdline_options_to_array): Don't handle translating options.
2299 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
2300 * config/darwin-driver.c: Don't condition includes on
2301 CROSS_DIRECTORY_STRUCTURE.
2302 (darwin_default_min_version): Make static.
2303 (darwin_driver_init): New. Call darwin_default_min_version if not
2304 CROSS_DIRECTORY_STRUCTURE.
2305 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2306 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
2307 (ASM_SPEC): Add %{static}.
2308 (darwin_default_min_version): Don't declare.
2309 (darwin_driver_init): Declare.
2310 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
2311 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
2312 * config/darwin.opt (all_load, allowable_client,
2313 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
2314 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
2315 exported_symbols_list, filelist, findirect-virtual-calls,
2316 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
2317 framework, fterminated-vtables, gfull, gused, image_base, init,
2318 install_name, multi_module, multiply_defined,
2319 multiply_defined_unused, no_dead_strip_inits_and_terms,
2320 seg_addr_table, seg_addr_table_filename, segaddr,
2321 segs_read_only_addr, segs_read_write_addr, single_module,
2322 umbrella, unexported_symbols_list, weak_reference_mismatches,
2323 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
2324 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
2325 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
2326 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
2327 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
2328 (ASM_SPEC): Add %{static}.
2329 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2330 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2331 (DRIVER_SELF_SPECS): Handle options formerly in
2332 TARGET_OPTION_TRANSLATE_TABLE.
2333 * config/mep/mep.opt (mfar): New.
2334 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2335 (DRIVER_SELF_SPECS): Define. Handle options formerly in
2336 TARGET_OPTION_TRANSLATE_TABLE.
2337 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
2338 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2339 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
2340 ffix-and-continue, findirect-data): New.
2341 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2342 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
2343 (mnofpu): Define mask and use Report here.
2344
2345 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2346
2347 * config/s390/s390.c (s390_emit_prologue): Report the stack
2348 size if -fstack-usage is used.
2349
2350 2010-11-10 Richard Guenther <rguenther@suse.de>
2351
2352 PR tree-optimization/46398
2353 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
2354
2355 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
2356
2357 PR target/44760
2358 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
2359 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
2360 GP_REG_OR_PSEUDO_STRICT_P.
2361 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
2362 unexpected alternative.
2363 (*movsf_internal): Likewise.
2364 (indirect_jump): Replace call to non-existant function with call to
2365 internal_error.
2366 (tablejump): Likewise.
2367 * config/iq2000/iq2000.c: Include df.h .
2368 (iq2000_function_arg_advance): Use CONST_CAST2.
2369 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
2370 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
2371 a non-zero function address.
2372 (iq2000_initial_elimination_offset): Add gcc_unreachable for
2373 unexpected value of FROM.
2374 (symbolic_expression_p): Delete.
2375 (iq2000_function_value): Constify func.
2376 (expand_one_builtin): Use expand_normal.
2377 (iq2000_print_operand): Don't print VALUE if calculating it failed.
2378
2379 PR rtl-optimization/44764
2380 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
2381
2382 PR target/46407
2383 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
2384 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
2385 with ATTRIBUTE_UNUSED.
2386 (valid_psw_flag): Constify parameter which.
2387 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
2388
2389 PR target/46415
2390 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
2391 (mmix_dbx_register_number): Likewise.
2392 * config/mmix/mmix.c: Include df.h .
2393 (mmix_local_alignment): Change argument basic_align and return type
2394 to unsigned.
2395 (mmix_dbx_register_number): Change argument and return type to
2396 unsigned.
2397 (mmix_expand_prologue): Use add_reg_note.
2398
2399 PR target/46417
2400 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
2401 (spu_split_store): Use aform.
2402 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
2403
2404 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2405
2406 PR/46268
2407 * doc/gty.texi (GTY Options): Clarify that variable_size produces
2408 allocators taking size in bytes, compare with length option. Add
2409 size calculation example.
2410 (Invoking the garbage collector): Ensure that sentences are
2411 followed by two spaces. Describe that pointer fields must be
2412 initialized at ggc_collect call.
2413 (Troubleshooting): New section.
2414
2415 2010-11-09 Jan Hubicka <jh@suse.cz>
2416
2417 PR tree-optimization/40436
2418 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
2419 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
2420 normal instructions; be sure bultin is not implemented in this file;
2421 compute non-zero return cost.
2422 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
2423 * tree-inline.h (eni_weights_d): Add return cost.
2424
2425 2010-11-09 Joseph Myers <joseph@codesourcery.com>
2426
2427 * c-parser.c (c_parser_struct_declaration): Handle declaration
2428 specifiers followed by CPP_CLOSE_BRACE.
2429
2430 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2431
2432 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
2433 split occurs before reload, and we allocate memory at the time of
2434 the split, not during expansion. Add attributes.
2435 (floatsi<mode>2_lfiwax_mem): Ditto.
2436 (floatunssi<mode>2_lfiwzx): Ditto.
2437 (floatunssi<mode>2_lfiwzx_mem): Ditto.
2438 (floatsidf2): Ditto.
2439 (floatunssisf2): Ditto.
2440 (floatunssidf2): Ditto.
2441 (fix_trunc<mode>si2): Ditto.
2442 (fix_trunc<mode>si2_stfiwx): Ditto.
2443 (fix_trunc<mode>si2_internal): Ditto.
2444 (fix_trunc<mode>si2): Ditto.
2445 (fix_trunc<mode>di2): Ditto.
2446 (fixuns_trunc<mode>si2_stfiwx): Ditto.
2447 (floatsisf2): Ditto.
2448 (floatdidf2_mem): Ditto.
2449 (floatunsdidf2_mem): Ditto.
2450 (floatunsdidf2): Ditto.
2451 (floatdisf2_internal1): Ditto.
2452 (floatdisf2_mem): Ditto.
2453 (floatunsdisf2_mem): Ditto.
2454 (floatsi<mode>2_lfiwax_mem2): Delete.
2455 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2456 (fix_trunc<mode>si2_mem): Ditto.
2457 (fixuns_trunc<mode>si2_mem): Ditto.
2458 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
2459 type operations to reduce copying the values to multiple memory slots.
2460 (roundu32<mode>2_fprs): Ditto.
2461
2462 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
2463 PRE_INC, PRE_DEC, PRE_MODIFY.
2464 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
2465
2466 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
2467 Delete prototype.
2468
2469 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2470
2471 PR target/43808
2472 * cfgexpand.c (partition_stack_vars): Call
2473 update_alias_info_with_stack_vars unconditionally.
2474 (update_alias_info_with_stack_vars): Allow unused
2475 unreferenced vars when not optimizing.
2476
2477 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
2478
2479 PR tree-optimization/46036
2480 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
2481 add_to_dst_predicate_list.
2482
2483 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR debug/46171
2486 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
2487 earlier.
2488 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
2489 argument, call dead_debug_reset when adding REG_UNUSED note.
2490 (dead_debug_reset): New function.
2491 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
2492 df_create_unused_note callers.
2493
2494 2010-11-09 Anatoly Sokolov <aesok@post.ru>
2495
2496 * config/fr30/fr30.c: Include "df.h".
2497
2498 2010-11-09 Richard Guenther <rguenther@suse.de>
2499
2500 PR tree-optimization/46355
2501 * tree-loop-distribution.c (tree_loop_distribution): Do not
2502 distribute loops without a single exit.
2503
2504 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2505
2506 PR rtl-optimization/46237
2507 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
2508 saved hard regs if they might get partially clobbered.
2509
2510 2010-11-09 Paul Koning <ni1d@arrl.net>
2511
2512 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
2513
2514 2010-11-09 Richard Guenther <rguenther@suse.de>
2515
2516 PR tree-optimization/46177
2517 * tree-loop-distribution.c (prop_phis): Remove.
2518 (generate_builtin): Re-use the old loop exit edge to avoid
2519 needing to update PHI nodes.
2520
2521 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
2522
2523 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
2524 type of args_size to unsigned HOST_WIDE_INT.
2525
2526 PR target/44755
2527 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
2528 * config/t-pnt16-warn: New file.
2529 * config/picochip/picochip.c (picochip_emit_stack_allocate):
2530 Use add_reg_note.
2531 (picochip_emit_save_register): Likewise.
2532 (picochip_emit_restore_register): Remove variable insn.
2533 (picochip_legitimize_address): Don't use C++ style comments.
2534 (picochip_legitimize_reload_address): Likewise.
2535 (reorder_var_tracking_notes): Remove variable vliw_start.
2536 (picochip_reorg): Cast first arguemnt to emit_note_after to
2537 enum insn_note.
2538 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
2539 (picochip_expand_builtin_3op): Likewise.
2540 (picochip_expand_builtin_2opvoid): Likewise.
2541 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
2542 (picochip_expand_array_testport): Likewise.
2543 (picochip_init_builtins): Remove unused variables.
2544 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
2545 to unsigned long, and output it as such.
2546 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2547 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
2548 (schedType): Cast result of picochip_schedule_type to
2549 enum attr_schedType.
2550
2551 PR target/44759
2552 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
2553 conditional to type of S.
2554 (mn10300_function_arg): Remove unused variable align.
2555 (mn10300_arg_partial_bytes): Likewise.
2556 * config/mn10300/mn10300.md (attribute cpu): Cast value to
2557 enum attr_cpu.
2558
2559 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
2560
2561 PR bootstrap/46392
2562 * gengtype-parse.c (type): Call get_input_file_name to get file name.
2563
2564 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
2565
2566 * tree.h (contains_placeholder_p): Fix comment.
2567 (type_contains_placeholder_p): Adjust comment.
2568 * tree.c (contains_placeholder_p): Fix comment.
2569 (type_contains_placeholder_1): Do not recurse on pointed-to types and
2570 adjust comment.
2571 (type_contains_placeholder_p): Add comment.
2572
2573 2010-11-09 Paul Koning <ni1d@arrl.net>
2574
2575 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
2576 output of byte values.
2577
2578 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2579
2580 PR middle-end/46360
2581 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
2582 not in SSA mode.
2583
2584 2010-11-09 Richard Guenther <rguenther@suse.de>
2585
2586 PR middle-end/46221
2587 * varasm.c (compute_visible_aliases): New function.
2588 (remove_unreachable_alias_pairs): Aliases make a target available
2589 even though we reclaimed the cgraph node.
2590 (finish_aliases_1): Likewise.
2591 * Makefile.in (varasm.o): Add pointer-set.h dependency.
2592
2593 2010-11-09 Nick Clifton <nickc@redhat.com>
2594
2595 * config/mn10300/mn10300-modes.def: New file.
2596
2597 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
2598 Jeremie Salvucci <jeremie.salvucci@free.fr>
2599
2600 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
2601 (plugin_files, get_file_basename, get_file_realbasename)
2602 (get_file_langdir, error_at_line, gt_files, this_file)
2603 (system_h_file, read_input_list, create_field_all)
2604 (get_file_srcdir_relative_path, get_file_basename)
2605 (get_file_langdir, get_file_gtfilename)
2606 (get_output_file_with_visibility, get_output_file_name)
2607 (struct flist, put_mangled_filename, walk_type)
2608 (put_mangled_filename, finish_root_table, write_roots): Use
2609 input_file-s.
2610 (lang_dir_names, num_lang_dirs): Remove static.
2611 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
2612 (main): Use input_file-s.
2613
2614 * gengtype.h: (struct input_file_st, input_file): New type.
2615 (struct fileloc): Use it.
2616 (gt_files, num_gt_files, this_file, system_h_file)
2617 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
2618 (get_input_file_name): New function.
2619 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
2620 use input_file.
2621 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
2622 (get_output_file_name): Ditto.
2623
2624 * gengtype-lex.l (yybegin): Use input_file.
2625
2626 * gengtype-parse.c (parse_error): Use input_file.
2627
2628 2010-11-08 Xinliang David Li <davidxl@google.com>
2629
2630 PR tree-optimization/46316
2631 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
2632 * double-int.h (double_int_mul_with_sign): New function.
2633 * double-int.c (double_int_mul_with_sign): New function.
2634
2635 2010-11-08 Paul Koning <ni1d@arrl.net>
2636
2637 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
2638
2639 2010-11-08 Paul Koning <ni1d@arrl.net>
2640
2641 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
2642
2643 2010-11-08 Paul Koning <ni1d@arrl.net>
2644
2645 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
2646 to 8 bits.
2647
2648 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2649
2650 PR target/46378
2651 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2652 turn on ISA 2.04 rounding instructions for power5.
2653
2654 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
2655 not ISA 2.02.
2656
2657 PR target/45585
2658 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
2659 in FPR registers.
2660 (movdi_low_st): Ditto.
2661
2662 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
2663 Richard Henderson <rth@redhat.com>
2664
2665 PR target/44758
2666 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
2667 (attribute acc_group): Cast value to enum attr_acc_group.
2668 (*movdi_nodouble+6): Use gen_int_mode.
2669 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
2670 if RTX_CODE is defined or not.
2671 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
2672 struct frv_io.
2673 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
2674 (frv_frame_access, frv_expand_prologue): Remove unused variables.
2675 (frv_expand_block_clear): Likewise.
2676 (frv_trampoline_init): Use LCT_NORMAL.
2677 (struct frv_packet_group): New struct, broken out of type of
2678 frv_packet.
2679 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
2680 use cast in loop counter increment.
2681 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
2682 assigning to io->type.
2683 (bdesc_set): Use rtx_code UNKNOWN in initializer.
2684 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
2685 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
2686 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
2687 (frv_read_argument): Use expand_normal.
2688
2689 PR target/44757
2690 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
2691 lm32_legitimate_constant_p.
2692 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2693 * config/lm32/lm32.c (gen_int_relational): Make new block for
2694 LE / LT / LEU / LTU case. Declare variables at start of block.
2695 (lm32_block_move_inline): Use XALLOCAVEC.
2696
2697 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2698
2699 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
2700
2701 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
2702
2703 * gengtype (get_output_file_for_structure): Ensure type is union
2704 or struct.
2705 (write_splay_tree_allocator_def): Use
2706 get_output_file_with_visibility.
2707
2708 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2709
2710 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
2711 to defined values in case of an error.
2712 (s390_option_override): Skip further processing if the -march
2713 parameter wasn't recognized.
2714
2715 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
2716
2717 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
2718 assert that REG is a hard register number before using it as an index.
2719
2720 PR bootstrap/46358
2721 * config/i386/i386.c (ix86_expand_split_stack_prologue):
2722 Avoid warnings when HOST_WIDE_INT is 32 bit.
2723
2724 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
2725
2726 PR target/46208
2727 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
2728 (sparc_promote_prototypes): Likewise.
2729 (sparc_promote_function_mode): Promote in 32-bit mode as well.
2730 (sparc_return_in_memory): Remove superfluous parentheses.
2731 (sparc_struct_value_rtx): Fix long lines.
2732 (sparc_function_value_1): Promote in 32-bit mode as well.
2733
2734 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
2735
2736 PR rtl-optimization/45352
2737 * sel-sched.c (find_best_expr): Do not set pneed_stall when
2738 the variable_issue hook is not implemented.
2739 (fill_insns): Remove dead variable stall_iterations.
2740 (init_seqno_1): Force EBB start for resetting sched cycles on any
2741 successor blocks of the rescheduled region.
2742 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
2743 (reset_sched_cycles_in_current_ebb): Add debug printing.
2744 New variable issued_insns. Advance state when we have issued
2745 issue_rate insns.
2746
2747 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
2748
2749 * gengtype (main): Get here's position using POS_HERE macro for
2750 do*typedef calls.
2751
2752 2010-11-07 Ian Lance Taylor <iant@google.com>
2753
2754 PR target/46089
2755 * config/i386/i386.c (split_stack_fn_large): New static variable.
2756 (ix86_expand_split_stack_prologue): Handle large model.
2757
2758 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
2759
2760 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
2761 all possible addressing modes.
2762
2763 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
2764
2765 PR tree-optimization/46346
2766 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
2767
2768 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
2769
2770 * config/mips/mips.c: Revert previous patch.
2771 * config/mips/mips.md: Likewise.
2772
2773 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
2774
2775 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
2776 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
2777 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
2778 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
2779 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
2780 to use FMA.
2781 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
2782 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
2783 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
2784 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
2785
2786 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
2787
2788 PR c/43384
2789 * c-decl.c (lookup_label): Labels can only be referenced in a
2790 function's scope.
2791 (store_parm_decls_oldstyle): Skip erroneous parameters.
2792
2793 2010-11-06 Anatoly Sokolov <aesok@post.ru>
2794
2795 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2796 LIBCALL_VALUE): Remove macros.
2797 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2798 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2799 (fr30_function_value_regno_p, fr30_function_value,
2800 fr30_libcall_value): New functions.
2801
2802 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
2803
2804 PR middle-end/46314
2805 * target.def (generate_internal_label): New asm_out hook.
2806 * output.h (default_generate_internal_label): Declare.
2807 * varasm.c (default_generate_internal_label): Define.
2808
2809 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2810
2811 PR target/44981
2812 * doc/extend.tex (format): Document NSString extension.
2813 (format_arg): Likewise.
2814 (Darwin Format Checks): New section.
2815 * doc/tm.texi: Document string object hooks (generated).
2816 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
2817 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2818 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2819 * target.def (objc_construct_string_object): Rename, amend
2820 documentation.
2821 (string_object_ref_type_p): New hook.
2822 (check_string_object_format_arg): New hook.
2823 * c-parser.c (c_parser_attributes): Allow objective-c class names as
2824 attribute identifiers.
2825 * config/darwin-c.c (darwin_cfstring_ref_p): New.
2826 (darwin_check_cfstring_format_arg): New.
2827 (darwin_additional_format_types): New.
2828 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
2829 (darwin_check_cfstring_format_arg): New.
2830 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
2831 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
2832 (TARGET_N_FORMAT_TYPES): New.
2833 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
2834
2835 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
2836 Pascal Obry <obry@adacore.com>
2837
2838 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
2839 in 64-bit mode and 17 otherwise.
2840
2841 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2842
2843 PR debug/45939
2844 * var-tracking.c (emit_note_insn_var_location): Make sure that
2845 call related var location notes come before the normal ones.
2846
2847 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
2848
2849 PR target/46326
2850 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
2851 in the last change.
2852
2853 2010-11-05 Ian Lance Taylor <iant@google.com>
2854
2855 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
2856
2857 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2858
2859 PR c/44772
2860 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
2861 pointer_set_contains if DECL_NAME is NULL.
2862
2863 2010-11-05 Ian Lance Taylor <iant@google.com>
2864
2865 PR target/46084
2866 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
2867 request enough additional space for alignment, and force alignment.
2868
2869 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
2870
2871 * config/i386/i386.c (legitimate_pic_address_disp_p):
2872 Handle UNSPEC_PCREL.
2873 (ix86_legitimate_address_p): Likewise.
2874 (legitimize_pic_address): Likewise.
2875 (output_pic_addr_const): Likewise.
2876 (ix86_delegitimize_address): Likewise.
2877 (ix86_find_base_term): Likewise.
2878 (memory_address_length): Likewise.
2879 (x86_output_mi_thunk): Handle special case x64
2880 for non local binding.
2881 * config/i386/i386.md (UNSPEC_PCREL): New.
2882 * config/i386/winnt.c (i386_pe_binds_local_p):
2883 Allow weak symbol for x64 windows with non-local binding.
2884
2885 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2886
2887 PR target/45670
2888 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
2889 instead of EXPAND_NORMAL for base expansion.
2890
2891 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
2892
2893 * config.gcc: Support --with-fpmath=avx for x86.
2894 * config/i386/avxmath.h: New.
2895 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
2896
2897 2010-11-05 Ian Lance Taylor <iant@google.com>
2898
2899 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
2900 * gengtype.c (walk_type): Don't recognize descbits option.
2901
2902 2010-11-05 Joseph Myers <joseph@codesourcery.com>
2903
2904 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
2905 WORD_SWITCH_TAKES_ARG): Remove.
2906 * doc/options.texi (Args): Document.
2907 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
2908 * doc/tm.texi: Regenerate.
2909 * opt-functions.awk (switch_flags): Handle Args.
2910 * opts-common.c: Update comment on tm.h include.
2911 (decode_cmdline_option): Handle options with multiple arguments.
2912 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
2913 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
2914 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2915 CL_COMMON): Update values.
2916 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
2917 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
2918 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
2919 sectobjectsymbols, sectorder, segcreate, segprot): New.
2920
2921 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
2922 Uros Bizjak <ubizjak@gmail.com>
2923
2924 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
2925 256bit AVX register is used.
2926 (ix86_expand_vector_move_misalign): Likewise.
2927 (ix86_expand_vector_move): Replace use_avx256_p with
2928 VALID_AVX256_REG_MODE.
2929
2930 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
2931
2932 PR target/44750
2933 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
2934 change. Set $@-warn.o to -Wno-error.
2935
2936 PR bootstrap/44756
2937 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
2938 comparing it to a signed value.
2939
2940 PR middle-end/44766
2941 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
2942 PR bootstrap/44770
2943 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
2944 to i.
2945
2946 PR target/44754
2947 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
2948 (m32c_function_arg). Add comma between arguments two and three.
2949 (m32c_promote_prototypes): Remove declaration.
2950 (current_function_special_page_vector): Likewise.
2951 (m32c_regno_reg_class): Change return type to enum reg_class.
2952 (m32c_pushm_popm): Use add_reg_note.
2953 (m32c_push_rounding): Change return type to unsigned int.
2954 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
2955 enum reload_type.
2956 (m32c_insert_attributes): Constify variable name.
2957 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
2958 (m32c_prepare_shift): Remove variable lref.
2959 (m32c_expand_movcc): Remove variable cmp.
2960 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
2961 (m32c_compare_redundant): Remove variable op2.
2962 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
2963 (m32c_pragma_memregs): Assign the number to target_memregs.
2964 (m32c_pragma_address): Remove variable var_str.
2965 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
2966 enum reg_class.
2967 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
2968 * config/m32c/bitops.md (andsi3): Add default case to switch.
2969 (iorsi3, xorsi3): Likewise.
2970 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
2971 * config/m32c/jump.md (call, call_value): Likewise.
2972 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
2973 (m32c_regno_reg_class): Likewise.
2974 (current_function_special_page_vector): Declare.
2975
2976 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2977
2978 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
2979
2980 PR tree-optimization/46099
2981 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
2982 if it is NULL and uid wasn't found in the hash table. Just fold the
2983 result if it is NULL otherwise. Insert other potentially needed
2984 stmts right before current stmt instead of on the entry edge.
2985 (struct elv_data): Add gsi and reset fields.
2986 (eliminate_local_variables_1): Adjust caller. If take_address_of
2987 failed for debug stmt, set dta->reset and return.
2988 (eliminate_local_variables_stmt): Change STMT argument for GSI,
2989 pass GSI through to the callback, handle resetting of debug stmts.
2990 (eliminate_local_variables): Adjust caller. Process debug stmts
2991 in second phase.
2992
2993 PR middle-end/43690
2994 * gimplify.c (gimplify_asm_expr): If a "m" input is a
2995 {pre,post}{in,de}crement, fail.
2996
2997 PR debug/46307
2998 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
2999 * tree-pretty-print.c (dump_generic_node): Likewise.
3000 (op_code_prio): Likewise.
3001 * cfgexpand.c (expand_debug_expr): Likewise.
3002
3003 2010-11-04 Paul Koning <ni1d@arrl.net>
3004
3005 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
3006 constraints.
3007
3008 2010-11-04 Chao-ying Fu <fu@mips.com>
3009
3010 * configure.ac: Test assembler support for DSP Rev1 mult.
3011 * configure: Regenerate.
3012 * config.in: Regenerate.
3013 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
3014 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
3015 (CODE_FOR_mips_multu): New define.
3016 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
3017 dspr2_32 to dsp_32.
3018 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
3019 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
3020 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
3021 New define_expand patterns.
3022 * config/mips/constraints.md (ka): Update the constraint to test
3023 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
3024 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
3025 mips_multu): Delete.
3026 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
3027 Change target constraint to "ka".
3028 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
3029 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
3030 Emit the accumulator destination when ISA_HAS_DSP_MULT.
3031 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
3032 Emit the accumulator destination when ISA_HAS_DSP_MULT.
3033 (<u>maddsidi4): Likewise.
3034 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
3035 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
3036
3037 2010-11-04 Paul Koning <ni1d@arrl.net>
3038
3039 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
3040
3041 2010-11-04 Paul Koning <ni1d@arrl.net>
3042
3043 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
3044
3045 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3046
3047 Fixed using the Objective-C 2.0 dot-syntax with class names.
3048 * c-parser.c (c_parser_next_token_starts_declspecs): In
3049 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
3050 (c_parser_next_token_starts_declaration): Same.
3051 (c_parser_postfix_expression): Parse the Objective-C 2.0
3052 dot-syntax with a class name.
3053
3054 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
3055
3056 * final.c (compute_alignments): Compute/free loop info all the time.
3057 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
3058 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
3059 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
3060 * config/rs6000/rs6000.c (cfgloop.h): Include.
3061 (can_override_loop_align): New.
3062 (rs6000_option_override_internal): Set it.
3063 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
3064 (rs6000_loop_align): New function.
3065 (rs6000_loop_align_max_skip): Likewise.
3066
3067 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3068
3069 PR driver/45703
3070 * collect2.c (main): Print --help output to stdout. Do not
3071 exit right away, so ld --help is appended. Add empty lines
3072 to separate output suitably.
3073
3074 2010-11-04 Jakub Jelinek <jakub@redhat.com>
3075
3076 PR tree-optimization/46233
3077 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
3078 after calling analyze_function, not before.
3079
3080 PR target/46234
3081 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
3082 instead of build_va_arg_indirect_ref.
3083 * config/spu/spu.c (spu_va_start): Likewise.
3084 * config/s390/s390.c (s390_va_start): Likewise.
3085
3086 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
3087
3088 PR middle-end/46292
3089 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
3090 if the innermode is not vector mode, determine the mode of a subreg
3091 by using mode_for_size of inner_size.
3092
3093 2010-11-04 Richard Guenther <rguenther@suse.de>
3094
3095 PR rtl-optimization/46183
3096 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
3097 (execute_rtl_pre): Likewise.
3098 (execute_rtl_hoist): Likewise.
3099
3100 2010-11-04 Richard Guenther <rguenther@suse.de>
3101
3102 PR tree-optimization/46068
3103 * ipa-split.c (consider_split): Remove gcc_unreachable.
3104
3105 2010-11-04 Richard Guenther <rguenther@suse.de>
3106
3107 * tree-nested.c (build_addr): Use build_fold_addr_expr.
3108
3109 2010-11-04 Richard Guenther <rguenther@suse.de>
3110
3111 PR tree-optimization/45991
3112 * gimplify.c (force_gimple_operand_1): Use the provded test
3113 function in the initial test.
3114
3115 2010-11-04 Jeff Law <law@redhat.com>
3116
3117 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
3118 of readonly memory equivalances for const/pure calls.
3119
3120 2010-11-04 Richard Guenther <rguenther@suse.de>
3121
3122 PR tree-optimization/45733
3123 * tree-vect-stmts.c (reverse_vec_elements): Honor the
3124 permute builtins function return type.
3125
3126 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
3127
3128 PR middle-end/44765
3129 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
3130 as an index, check it is not INVALID_REGNUM.
3131
3132 PR bootstrap/44756
3133 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
3134 unsignedp.
3135 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
3136
3137 PR bootstrap/44756
3138 * function.c (thread_prologue_and_epilogue_insns): Add
3139 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
3140
3141 PR bootstrap/44756
3142 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
3143
3144 PR target/44750
3145 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
3146 (pdp11_preferred_reload_class): Rename class to rclass.
3147 (pdp11_preferred_output_reload_class): Likewise.
3148 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
3149 ALL_COMPILERFLAGS .
3150 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
3151
3152 PR bootstrap/44756
3153 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
3154 iteration variables to enum machine_mode.
3155
3156 PR target/44751
3157 * config/h8300/h8300.c: Include df.h.
3158 (push, pop): Use add_reg_note.
3159 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
3160 (compute_a_shift_cc): Likewise.
3161 (expand_a_shift): Argument code has type enum rtx_code.
3162 (struct shift_insn): Member cc_valid has type enum attr_cc.
3163 (struct shift_info) <cc_inline, cc_special>: Likewise.
3164 enum attr_cc.
3165 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
3166 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
3167
3168 2010-11-04 Ira Rosen <irar@il.ibm.com>
3169
3170 PR tree-optimization/46213
3171 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
3172 MINUS_EXPR only if the first operand is reduction operand.
3173
3174 2010-11-04 Richard Guenther <rguenther@suse.de>
3175 Richard Henderson <rth@redhat.com>
3176
3177 * tree.def (FMA_EXPR): New tree code.
3178 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
3179 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
3180 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
3181 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
3182 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3183 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
3184 (execute_optimize_widening_mul): Call it. Reorganize to allow
3185 dead stmt removal. Move TODO flags ...
3186 (pass_optimize_widening_mul): ... here.
3187 * flag-types.h (enum fp_contract_mode): New enum.
3188 * common.opt (flag_fp_contract_mode): New variable.
3189 (-ffp-contract): New option.
3190 * opts.c (common_handle_option): Handle it.
3191 * doc/invoke.texi (-ffp-contract): Document.
3192 * tree.h (fold_fma): Declare.
3193 * builtins.c (fold_fma): New function.
3194 (fold_builtin_fma): Likewise.
3195 (fold_builtin_3): Call it for fma.
3196 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
3197 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
3198 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
3199 New expanders.
3200 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
3201 named patterns.
3202 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
3203 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
3204 (fms_optab, fnma_optab, fnms_optab): New defines.
3205 * gimplify.c (gimplify_expr): Handle binary truth expressions
3206 explicitly. Handle FMA_EXPR.
3207 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
3208 operations.
3209
3210 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3211 Richard Guenther <rguenther@suse.de>
3212
3213 * passes.c (init_optimization_passes): Move veclower after SSA.
3214 * tree-vect-generic.c (uniform_vector_p): New function.
3215 (expand_vector_operations_1): Handle conversion.
3216 (pass_lower_vector): Update SSA form.
3217
3218 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
3219
3220 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
3221 plugin capabilities.
3222 * configure: Regenerate.
3223
3224 2010-11-03 Xinliang David Li <davidxl@google.com>
3225
3226 PR target/46200
3227 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
3228 Adjust cbase if the use stmt is after iv update.
3229
3230 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3231
3232 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
3233
3234 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3235
3236 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
3237 comment. Pass true to the last argument of output_stack_adjust.
3238
3239 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3240
3241 PR target/46295
3242 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
3243 if 256bit AVX register is used.
3244
3245 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3246
3247 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
3248 xsmindp/xsmaxdp on VSX for single precision min/max.
3249 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
3250 (vsx_sminsf3): Ditto.
3251
3252 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3253
3254 * combine.c (try_combine): Fix formatting issues, improve comments and
3255 fix a pasto.
3256
3257 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3258
3259 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
3260 of the result before building binary expressions.
3261
3262 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3263
3264 PR rtl-optimization/45865
3265 * Makefile.in (df-problems.o): Revert revision 164552.
3266 * basic-block.h (enum bb_flags): Likewise.
3267 * cfgcleanup.c (block_was_dirty): Likewise.
3268 (try_forward_edges): Likewise.
3269 (try_crossjump_bb): Likewise.
3270 (try_head_merge_bb): Likewise.
3271 (try_optimize_cfg): Likewise.
3272 (cleanup_cfg): Likewise.
3273 * df-core.c (df_set_bb_dirty): Likewise.
3274 * df-problems.c: Likewise.
3275 (df_simulate_find_uses): Likewise.
3276 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
3277 (find_memory, find_memory_store): Likewise.
3278 (can_move_insns_across): Likewise.
3279 * df.h (can_move_insns_across): Likewise.
3280 * ifcvt.c (find_memory): Likewise.
3281 (dead_or_predicable): Likewise.
3282
3283 2010-11-03 Richard Guenther <rguenther@suse.de>
3284
3285 PR middle-end/46288
3286 * predict.c (strip_predict_hints): Simply DCE builtin expect if
3287 the result is unused.
3288
3289 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3290
3291 PR tree-optimization/46009
3292 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
3293 cond_if_else_store_replacement if bb1 and bb2 have the same
3294 single successor.
3295 (cond_store_replacement): Use gimple_assign_single_p, don't
3296 check if rhs is SSA_NAME or invariant. Call release_defs for
3297 assign.
3298 (cond_if_else_store_replacement): New function.
3299
3300 2010-11-03 Richard Guenther <rguenther@suse.de>
3301
3302 * opts.c (finish_options): Properly check for all WHOPR
3303 flags before complaining about -flto-partition.
3304
3305 2010-11-04 Alan Modra <amodra@gmail.com>
3306
3307 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
3308 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
3309 TARGET_SECURE_PLT.
3310 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
3311 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
3312 on input, "r" on output.
3313
3314 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3315
3316 Implemented -fobjc-std=objc1 flag.
3317 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
3318 option.
3319 * doc/standards.texi (Standards): Updated the section on
3320 Objective-C; mention support for Objective-C 2.0 features and the
3321 new -fstd-objc=objc1 flag to disable them.
3322
3323 2010-11-03 Richard Guenther <rguenther@suse.de>
3324
3325 PR middle-end/46241
3326 * dwarf2out.c (scope_die_for): Properly detect global scope.
3327
3328 2010-11-03 Richard Guenther <rguenther@suse.de>
3329
3330 PR tree-optimization/46190
3331 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3332 Properly compute peel iterations.
3333
3334 2010-11-03 Richard Guenther <rguenther@suse.de>
3335
3336 PR tree-optimization/46286
3337 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
3338 re-allocated vector data.
3339
3340 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3341
3342 PR target/46285
3343 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
3344 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
3345 is completed.
3346
3347 2010-11-03 Richard Guenther <rguenther@suse.de>
3348
3349 PR tree-optimization/46217
3350 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
3351 flag matches.
3352 (execute_update_addresses_taken): Likewise.
3353
3354 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
3355
3356 PR bootstrap/44335
3357 * targhooks.c (targhook_words_big_endian): New function.
3358 (targhook_float_words_big_endian): Likewise.
3359 * targhooks.h (targhook_words_big_endian): Declare.
3360 (targhook_float_words_big_endian): Likewise.
3361 * target.def (words_big_endian, float_words_big_endian): New hooks.
3362
3363 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3364
3365 PR tree-optimization/46165
3366 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
3367 a normal call into noreturn call.
3368
3369 2010-11-03 Richard Guenther <rguenther@suse.de>
3370
3371 PR middle-end/46251
3372 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
3373 not INDIRECT_REFs.
3374
3375 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3376
3377 PR tree-optimization/46107
3378 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
3379 if cfg_hook_duplicate_loop_to_header_edge failed.
3380
3381 2010-11-03 Ian Lance Taylor <iant@google.com>
3382
3383 PR lto/46273
3384 * config.gcc: Don't set lto_binary_reader.
3385 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3386 (Configuration): Mention --disable-lto. Remove --with-libelf
3387 paragraph.
3388
3389 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3390
3391 PR debug/46252
3392 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
3393 prev_real_insn.
3394 * gcse.c (insert_insn_end_basic_block): Likewise.
3395
3396 PR rtl-optimization/46034
3397 PR rtl-optimization/46212
3398 PR rtl-optimization/46248
3399 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
3400 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
3401 before i0dest -> i0src substitution and pass 1 instead of 0 as last
3402 argument to subst on i2pat.
3403
3404 2010-11-02 Ian Lance Taylor <iant@google.com>
3405
3406 * configure.ac: Use AC_SYS_LARGEFILE.
3407 * configure: Rebuild.
3408 * config.in: Rebuild.
3409
3410 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
3411
3412 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
3413 fold_convert.
3414 * c-typeck.c (build_function_call_vec): Likewise.
3415 * cfgexpand.c (expand_debug_expr): Likewise.
3416 * cgraphunit.c (assemble_thunk): Likewise.
3417 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
3418 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
3419 (fold_binary_loc, fold_ternary_loc): Likewise.
3420 * gimple-fold.c (get_symbol_constant_value): Likewise.
3421 * gimple-low.c (lower_builtin_setjmp): Likewise.
3422 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
3423 * gimplify.c (gimplify_init_constructor): Likewise.
3424 * lambda.h (build_linear_expr): Likewise.
3425 * omp-low.c (omp_reduction_init): Likewise.
3426 * tree-inline.c (remap_ssa_name): Likewise.
3427 * tree-object-size.c (compute_object_sizes): Likewise.
3428 * tree-sra.c (init_subtree_with_zero): Likewise.
3429 (sra_ipa_modify_assign): Likewise.
3430 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
3431 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
3432 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
3433 (undistribute_ops_list): Likewise.
3434 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
3435 * tree-vect-stmts.c (vectorizable_call): Likewise.
3436 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
3437 (build_zero_cst): Handle more cases directly. Update comment.
3438
3439 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3440
3441 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
3442 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
3443
3444 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
3445 and call ix86_split_call_vzeroupper instead of
3446 ix86_split_call_pop_vzeroupper.
3447 (*call_pop_1_vzeroupper): Likewise.
3448 (*sibcall_pop_1_vzeroupper): Likewise.
3449 (*call_value_pop_0_vzeroupper): Likewise.
3450 (*call_value_pop_1_vzeroupper): Likewise.
3451 (*sibcall_value_pop_1_vzeroupper): Likewise.
3452
3453 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3454
3455 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
3456
3457 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
3458
3459 * basic-block.h (insert_insn_end_bb_new): Delete.
3460 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
3461
3462 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
3463 H.J. Lu <hongjiu.lu@intel.com>
3464
3465 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
3466 (ix86_split_call_pop_vzeroupper): Likewise.
3467
3468 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
3469 (ix86_expand_call): Conditionally decorate calls with
3470 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
3471 (ix86_split_call_vzeroupper): New.
3472 (ix86_split_call_pop_vzeroupper): Likewise.
3473
3474 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
3475 (*call_pop_0_vzeroupper): New insn_and_split pattern.
3476 (*call_pop_1_vzeroupper): Likewise.
3477 (*sibcall_pop_1_vzeroupper): Likewise.
3478 (*call_0_vzeroupper): Likewise.
3479 (*call_1_vzeroupper): Likewise.
3480 (*sibcall_1_vzeroupper): Likewise.
3481 (*call_1_rex64_vzeroupper): Likewise.
3482 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
3483 (*call_1_rex64_large_vzeroupper): Likewise.
3484 (*sibcall_1_rex64_vzeroupper): Likewise.
3485 (*call_value_pop_0_vzeroupper): Likewise.
3486 (*call_value_pop_1_vzeroupper): Likewise.
3487 (*sibcall_value_pop_1_vzeroupper): Likewise.
3488 (*call_value_0_vzeroupper): Likewise.
3489 (*call_value_0_rex64_vzeroupper): Likewise.
3490 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
3491 (*call_value_1_vzeroupper): Likewise.
3492 (*sibcall_value_1_vzeroupper): Likewise.
3493 (*call_value_1_rex64_vzeroupper): Likewise.
3494 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
3495 (*call_value_1_rex64_large_vzeroupper): Likewise.
3496 (*sibcall_value_1_rex64_vzeroupper): Likewise.
3497
3498 2010-11-02 Ian Lance Taylor <iant@google.com>
3499
3500 PR lto/46273
3501 * config.gcc: Revert last patch: set lto_binary_reader.
3502
3503 2010-11-02 Richard Guenther <rguenther@suse.de>
3504
3505 PR tree-optimization/46149
3506 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
3507 non-indirect MEM_REF variants.
3508
3509 2010-11-02 Richard Guenther <rguenther@suse.de>
3510
3511 PR tree-optimization/46216
3512 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3513 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
3514
3515 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3516
3517 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
3518 (*-*-osf*): Likewise.
3519 * configure: Regenerate.
3520
3521 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
3522
3523 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
3524 for Intel Core 2 and Core i7.
3525
3526 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
3527
3528 Model decoder of Core 2/i7 for multipass scheduling.
3529
3530 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
3531 New type to hold target-specific data for multipass scheduling.
3532 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3533 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
3534 Core 2/i7.
3535 (core2i7_secondary_decoder_max_insn_size,)
3536 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
3537 New static variables.
3538 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
3539 ([_]ix86_first_cycle_multipass_data): New static variable.
3540 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
3541 Implement targetm.sched hooks.
3542 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
3543 of ...
3544 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
3545 Implement new targetm.sched hooks.
3546 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
3547 targetm.sched hook to install multipass scheduling hooks on demand.
3548
3549 * doc/tm.texi.in: Document new targetm.sched hooks.
3550 * doc/tm.texi: Regenerate.
3551
3552 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
3553 (first_cycle_multipass_data_t): New typedef.
3554 (struct choice_entry: target_data): New field.
3555 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
3556 to allow target model restrictions not represented in DFA.
3557 (choose_ready, schedule_block): Update.
3558 (sched_extend_ready_list, sched_finish_ready_list): Call new target
3559 hooks to initialize target-specific data for multipass scheduling.
3560 * sched-int.h (max_issue): Update declaration.
3561 * sel-sched.c (choose_best_insn): Update.
3562 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
3563 (first_cycle_multipass_{init, fini}): Define and document new
3564 targetm.sched hooks.
3565
3566 2010-11-02 Richard Guenther <rguenther@suse.de>
3567
3568 PR tree-optimization/46184
3569 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
3570 input vector type from the reduction operand as well.
3571
3572 2010-11-02 Richard Guenther <rguenther@suse.de>
3573
3574 PR tree-optimization/46177
3575 * tree-loop-distribution.c (prop_phis): Use
3576 mark_virtual_phi_result_for_renaming.
3577
3578 2010-11-02 Martin Jambor <mjambor@suse.cz>
3579
3580 PR middle-end/46120
3581 * tree.c (get_binfo_at_offset): Bail out on artificial
3582 fields. Identify primary bases according to their offsets.
3583
3584 2010-11-02 Martin Jambor <mjambor@suse.cz>
3585
3586 PR tree-optimization/45875
3587 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
3588 (gimple_get_relevant_ref_binfo): Detect primary bases according to
3589 their field offset.
3590
3591 2010-11-02 Ian Lance Taylor <iant@google.com>
3592
3593 * doc/install.texi (Configuration): Note in two places that Java
3594 is not enabled by default.
3595
3596 2010-11-02 Ian Lance Taylor <iant@google.com>
3597
3598 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
3599 (Configuration): Mention --disable-lto. Remove --with-libelf
3600 paragraph.
3601
3602 2010-11-02 Ian Lance Taylor <iant@google.com>
3603
3604 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
3605 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
3606 LIBELFINC. Remove HAVE_libelf.
3607 * config.gcc: Don't set lto_binary_reader.
3608 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
3609 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
3610 (LIBS): Remove $(LIBELFLIBS).
3611 (INCLUDES): Remove $(LIBELFINC).
3612 * configure: Rebuild.
3613 * config.in: Rebuild.
3614
3615 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
3616
3617 * config/microblaze/microblaze-protos.h (function_arg): Delete.
3618 (function_arg_advance): Delete.
3619 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
3620 (FUNCTION_ARG): Delete.
3621 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
3622 (microblaze_function_arg_advance): ...this. Make static. Take a
3623 const_tree and a bool.
3624 (function-arg): Rename to...
3625 (microblaze_function_arg): ...this. Make static. Take a const_tree
3626 and a bool.
3627 (microblaze_expand_prologue): Call targetm.calls.function_arg and
3628 targetm.calls.function_arg_advance.
3629 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3630
3631 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
3632
3633 Merge from FSF "apple/trunk" branch.
3634
3635 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
3636 * config/darwin.opt: .. to here.
3637 (matt-stubs): New option.
3638 * config/i386/darwin.opt: Delete.
3639 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
3640 (MACHO_DYNAMIC_NO_PIC_P): New.
3641 (MACHOPIC_INDIRECT): New.
3642 (MACHOPIC_PURE): New.
3643 * config/i386/darwin.h (DARWIN_X86) Define to 1.
3644 (MACHOPIC_ATT_STUB): New.
3645 (CC1_SPEC): Do not remove mdynamic-no-pic.
3646 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3647 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3648 (FUNCTION_PROFILER): Correct over-length line.
3649 (SUBTARGET_OVERRIDE_OPTIONS): New.
3650 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3651 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
3652 (legitimate_constant_p): Handle mdynamic-no-pic.
3653 (ix86_legitimate_address_p): Likewise.
3654 (ix86_legitimize_address): Likewise.
3655 (ix86_expand_move): Likewise.
3656 (machopic_output_stub): Update for ATT-style stubs and
3657 mdynamic-no-pic.
3658 * config/darwin-protos.h (machopic_symbol_defined_p): New.
3659 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
3660 TARGET_DYNAMIC_NO_PIC: Remove.
3661 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
3662 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
3663 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
3664 Remove handling of mdynamic-no-pic.
3665 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
3666 Define if required.
3667 (machopic_symbol_defined_p): Do not try to use current_function_decl
3668 when generating _get_pc thunks within stubs.
3669 (machopic_indirect_data_reference): Rework for direct conditionals
3670 rather than #ifdefs, add x86 mdynamic-no-pic
3671 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
3672 defined value.
3673 (darwin_override_options): Handle mdynamic-no-pic here.
3674 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
3675 (machopic_lazy_symbol_ptr3_section): New.
3676 (machopic_picsymbol_stub2_section): New.
3677 (machopic_picsymbol_stub3_section): New.
3678 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
3679 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
3680 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3681 Moved common definition from x86 and rs6000.
3682 (MACHO_DYNAMIC_NO_PIC_P): Override value.
3683 (MACHOPIC_INDIRECT): Likewise.
3684 (MACHOPIC_PURE): Likewise.
3685 * config.gcc (x86-darwin-*): Remove darwin.opt.
3686
3687 2010-11-02 Jakub Jelinek <jakub@redhat.com>
3688
3689 PR debug/46255
3690 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
3691 instead of gsi_last_bb.
3692
3693 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3694 Maxim Kuvyrkov <maxim@codesourcery.com>
3695
3696 * config/i386/i386.c (cpu_names): Add "corei7".
3697 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
3698
3699 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3700 Maxim Kuvyrkov <maxim@codesourcery.com>
3701
3702 Tune alignment for Intel Core i7
3703
3704 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
3705 (enum processor_type): Update comment. Add entries for Core i7.
3706 * config/i386-c.c (ix86_target_macros_internal): Update.
3707 * config/i386.c (m_COREI7{_32,_64}): New macros.
3708 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
3709 (processor_target_table): Tune alignment for Core i7.
3710 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
3711
3712 * doc/invoke.texi: Document "corei7" option value.
3713
3714 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
3715 Maxim Kuvyrkov <maxim@codesourcery.com>
3716 H.J. Lu <hjl.tools@gmail.com>
3717
3718 Basic support for Intel Core i7
3719
3720 * i386.c (ix86_option_override_internal): Add entry for corei7, use
3721 generic tuning. Use generic32 when compiling for 32-bit ABI.
3722
3723 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
3724
3725 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
3726 sections and call darwin_asm_dwarf_section() to handle them.
3727 (darwin_asm_dwarf_section): New.
3728 (darwin_file_start): Remove code emitting dwarf section symbols.
3729
3730 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
3731
3732 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
3733 explicitly disable stack protection when building libgcc.
3734 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
3735
3736 2010-11-01 Jason Merrill <jason@redhat.com>
3737
3738 * fold-const.c (fold_indirect_ref_1): Handle folding
3739 POINTER_PLUS_EXPR to ARRAY_REF.
3740
3741 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
3742
3743 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
3744 (sh_delegitimize_address): New function.
3745
3746 2010-11-01 Joseph Myers <joseph@codesourcery.com>
3747
3748 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
3749 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
3750 (CC1_SPEC): Don't handle -target.
3751 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
3752 options.
3753 * config/darwin.opt (Zallowable_client, Zbundle_loader,
3754 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
3755 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
3756 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
3757 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
3758 Zweak_reference_mismatches, client_name, compatibility_version,
3759 current_version, dylinker_install_name, pagezero_size,
3760 read_only_relocs, seg1addr, segs_read_only_addr,
3761 segs_read_write_addr, sub_library, sub_umbrella): New.
3762 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
3763 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
3764 * config/freebsd.opt: New.
3765 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
3766 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
3767 * config/rpath.opt: New.
3768 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
3769 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
3770 Use rpath.opt.
3771
3772 2010-11-01 Joseph Myers <joseph@codesourcery.com>
3773
3774 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
3775 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
3776 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
3777 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
3778 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
3779 Document that options in .opt files do not need to be included.
3780 * doc/tm.texi: Regenerate.
3781 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
3782 * opts-common.c: Update comment on tm.h include.
3783 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
3784 * system.h (SWITCH_TAKES_ARG): Poison.
3785 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
3786 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
3787 in darwin.opt.
3788 (LINK_COMMAND_SPEC_A): Don't include %{x}.
3789 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3790 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
3791 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
3792 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3793 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
3794 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
3795 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
3796 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
3797 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3798 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
3799 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
3800 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
3801 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
3802 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
3803 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
3804 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
3805 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
3806 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
3807 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
3808 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
3809 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
3810 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
3811 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3812
3813 2010-11-01 Paul Koning <ni1d@arrl.net>
3814
3815 * config/pdp11/pdp11.md: Use iterators.
3816 (addqi3, subqi3, iorsi3, xorsi3): Delete.
3817
3818 2010-11-01 Steve Ellcey <sje@cup.hp.com>
3819
3820 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
3821 GCC_INSN_FLAGS_H.
3822 * libgcov.c (__gcov_indirect_call_profiler): Set
3823 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
3824 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
3825
3826 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
3827
3828 PR tree-optimization/46259
3829
3830 Revert:
3831 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3832 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3833 build_vector_from_val.
3834
3835 2010-11-01 DJ Delorie <dj@redhat.com>
3836
3837 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
3838 as well as an assertion.
3839
3840 2010-11-01 Paul Koning <ni1d@arrl.net>
3841
3842 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
3843 complex modes in memory.
3844
3845 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
3846
3847 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
3848
3849 2010-11-01 Jakub Jelinek <jakub@redhat.com>
3850
3851 PR target/45250
3852 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
3853 (cfa_base_offset): New variable.
3854 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
3855 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
3856 is NULL.
3857 (vt_init_cfa_base): Initialize cfa_base_offset.
3858
3859 2010-11-01 Alan Modra <amodra@gmail.com>
3860
3861 PR target/46030
3862 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
3863 and savres_strategy.
3864 (stack_info): New file scope var.
3865 (rs6000_init_machine_status): Init stack_info.
3866 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
3867 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3868 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
3869 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
3870 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
3871 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
3872 (rs6000_savres_strategy): Rewrite.
3873 (rs6000_stack_info): Use "stack_info" in place of local "info".
3874 Return cached stack info when reload_completed unless ENABLE_CHECKING
3875 in which case confirm newly calculated stack info matches old info.
3876 Delay calculation of lr_save_p, set it for out of line gp save/restore
3877 as well as fp. Call rs6000_savres_strategy from here..
3878 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
3879 (rs6000_output_function_prologue): Use info->savres_strategy to
3880 determine whether fp save/restore externs need to be emitted.
3881
3882 2010-10-31 Jason Merrill <jason@redhat.com>
3883
3884 * tree.h (EXPR_LOC_OR_HERE): New macro.
3885 * builtins.c (c_strlen): Use it.
3886 * c-decl.c (build_enumerator): Likewise.
3887 * gimplify.c (internal_get_tmp_var): Likewise.
3888 (shortcut_cond_expr): Likewise.
3889 (gimplify_one_sizepos): Likewise.
3890
3891 2010-10-31 Richard Henderson <rth@redhat.com>
3892
3893 * config/i386/cygming.h (TARGET_SEH): New.
3894 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
3895 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
3896 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
3897 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
3898 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
3899 (ASM_DECLARE_FUNCTION_SIZE): New.
3900 * config/i386/i386-protos.h: Update.
3901 * config/i386/i386.c (ix86_option_override_internal): Enable
3902 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
3903 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
3904 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
3905 (ix86_compute_frame_layout): For SEH, disable
3906 use_fast_prologue_epilogue, move frame pointer to the end of
3907 the frame. Initialize hfp_save_offset.
3908 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
3909 at end of prologue for SEH.
3910 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
3911 emit blockage at beginning of epilogue.
3912 (ix86_expand_binary_operator): After reload, emit LEA if needed.
3913 (ix86_output_call_insn): New.
3914 * config/i386/i386.h (TARGET_SEH): New.
3915 (struct machine_function): Add member seh.
3916 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
3917 * config/i386/winnt.c (struct seh_frame_state): New.
3918 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
3919 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
3920 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
3921 i386_pe_start_function, i386_pe_end_function): New.
3922
3923 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
3924 as CFA_STORE in rules 12 and 13.
3925
3926 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
3927
3928 PR tree-optimization/46142
3929 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
3930 accommodate third function argument.
3931
3932 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3933
3934 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
3935
3936 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3937
3938 * fold-const.c (build_zero_vector): Use build_vector_from_val.
3939 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3940 (get_initial_def_for_reduction): Likewise.
3941 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3942 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3943 * tree.c (build_one_cst): Likewise.
3944 (build_vector_from_val): Use types_compatible_p for assert.
3945
3946 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
3947
3948 * emit-rtl.c (mark_used_flags): New function.
3949 (set_used_flags, reset_used_flags): Call it.
3950
3951 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
3952
3953 PR middle-end/44569
3954 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
3955 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
3956
3957 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
3958
3959 PR target/46195
3960 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
3961 (ix86_compat_aligned_value_p): This.
3962 (ix86_old_function_arg_boundary): Renamed to ...
3963 (ix86_compat_function_arg_boundary): This. Updated.
3964 (ix86_contains_aligned_value_p): New.
3965 (ix86_function_arg_boundary): Align long double parameters on
3966 stack to 4byte in 32bit.
3967
3968 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3969
3970 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3971 * c-parser.c (c_parser_objc_at_property_declaration): Removed
3972 parsing of RID_COPIES and RID_IVAR. Updated call to
3973 objc_add_property_declaration.
3974 * c-typecheck.c (build_component_ref): Call
3975 objc_maybe_build_component_ref instead of objc_build_setter_call.
3976 Use objc_is_property_ref to improve Objective-C checks.
3977 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
3978 of objc_build_getter_call.
3979
3980 2010-10-29 Paul Koning <ni1d@arrl.net>
3981
3982 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3983 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
3984 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
3985 (REG_OK_STRICT): Move description.
3986
3987 2010-10-29 Paul Koning <ni1d@arrl.net>
3988
3989 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
3990
3991 2010-10-29 Paul Koning <ni1d@arrl.net>
3992
3993 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
3994
3995 2010-10-29 Paul Koning <ni1d@arrl.net>
3996
3997 PR/41822
3998 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
3999
4000 2010-10-29 Richard Henderson <rth@redhat.com>
4001
4002 PR rtl-opt/46226
4003 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
4004 for asm goto.
4005
4006 2010-10-29 Paul Koning <ni1d@arrl.net>
4007
4008 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
4009 register to register move.
4010
4011 2010-10-29 Paul Koning <ni1d@arrl.net>
4012
4013 * config/pdp11/pdp11.c (print_operand_address): Correct handling
4014 of integer constant addresses, delete vax-only logic.
4015
4016 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
4017
4018 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
4019 a conditional expression.
4020
4021 2010-10-29 Paul Koning <ni1d@arrl.net>
4022
4023 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
4024 instruction encoding.
4025
4026 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4027 Andrew Pinski <pinskia@gmail.com>
4028
4029 * tree.h (build_vector_from_val): Declare.
4030 * tree.c (build_vector_from_val): New function.
4031 * c-typeck.c (build_binary_op): Handle vector shifting.
4032 * doc/extend.texi: Description of the vector shifting operation.
4033
4034 2010-10-29 Paul Koning <pkoning@equallogic.com>
4035
4036 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
4037 pdp11_secondary_memory_needed): Declare.
4038 * config/pdp11/predicates.md (float_operand): New predicate.
4039 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
4040 (cbranchdf4, movdf): Change predicate.
4041 (movsf): Handle FPU register case.
4042 (truncdfsf2, extendsfdf2): Add FPU register case.
4043 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
4044 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
4045 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4046 (pdp11_register_move_cost): Update cost matrix.
4047 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
4048 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
4049 pdp11_secondary_memory_needed): New function.
4050 (pdp11_return_in_memory): Add other float types.
4051 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
4052 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
4053 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
4054 REGISTER_MOVE_COST): Delete.
4055 (BASE_RETURN_VALUE_REG): Add other float types.
4056
4057 2010-10-29 Nick Clifton <nickc@redhat.com>
4058
4059 * doc/invoke.texi: Document -mam34 and -mtune options.
4060 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
4061 (mn10300_tune_cpu): New variable.
4062 (mn10300_handle_option): Handle -mam34 and -mtune options.
4063 (mn10300_option_override): Convert tune string into tune cpu variable.
4064 (mn10300_legitimate_constant_p): Delete unused local variable.
4065 (is_load_insn): New function.
4066 (is_store_insn): New function.
4067 (mn10300_adjust_schedule_cost): New function.
4068 (TARGET_SCHED_ADJUST_COST): Define.
4069 * config/mn10300/mn10300.opt (mam34): New option.
4070 (mtune): New option.
4071 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
4072 (enum processor_type): Add AM34.
4073 (TARGET_AM34): Define.
4074 * config/mn10300/mn10300.md (attr cpu): Add am34.
4075 Add pipeline description.
4076 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
4077 Remove unneeded alternatives. Add timing attribute.
4078 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
4079 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
4080 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
4081 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
4082 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
4083 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
4084 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
4085 float_conditional_branch, jump, indirect_jump, tablejump,
4086 call_internal, call_value_internal, zero_extendqisi2_am33,
4087 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
4088 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
4089 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
4090 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
4091 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
4092 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
4093 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
4094 return_internal_regs, store_movm, return, call_next_insn):
4095 Add timing attribute.
4096 (am33_subsi3): Add missing clobber of CC_REG.
4097 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
4098 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
4099 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
4100 extendqisi2): Fix predicates.
4101 (call_internal, call_internal_value): Separate alternatives.
4102 * config/mn10300/t-mn10300: Add AM34 multilib.
4103
4104 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
4105
4106 * config/sh/sh.c (sh_promote_function_mode): Use
4107 default_promote_function_mode if !sh_promote_prototypes.
4108
4109 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
4110
4111 * recog.c (split_all_insns): Remove dead code.
4112
4113 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4114
4115 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4116
4117 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4118
4119 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4120 (FUNCTION_ARG_ADVANCE): Delete.
4121 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
4122 functions.
4123 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
4124 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4125 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4126
4127 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4128
4129 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
4130 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4131 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
4132 Take a const_tree and a bool.
4133 (mcore_function_arg_advance): New function.
4134 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4135
4136 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4137
4138 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
4139 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4140 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
4141 Take a const_tree and a bool.
4142 (mcore_function_arg_advance): New function.
4143 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4144
4145 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4146
4147 * config/h8300/h8300-protos.h (function_arg): Delete.
4148 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4149 * config/h8300/h8300.c (function_arg): Rename to...
4150 (h8300_function_arg): ...this. Make static. Take a const_tree and
4151 a bool.
4152 (h8300_function_arg_advance): New function.
4153 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4154
4155 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4156
4157 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
4158 to...
4159 * config/arc/arc.c (arc_function_arg): ...here and...
4160 (arc_function_arg_advance): ...here. New functions.
4161 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4162
4163 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4164
4165 * config/crx/crx-protos.h (crx_function_arg): Delete.
4166 (crx_function_arg_advance): Delete.
4167 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4168 * config/crx/crx.c (crx_function_arg): Make static. Take a
4169 const_tree and a bool.
4170 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
4171 (enough_regs_for_param): Take a const_tree.
4172 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4173
4174 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4175
4176 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
4177 (m68hc11_function_arg_advance): Delete.
4178 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
4179 (FUNCTION_ARG_ADVANCE): Delete.
4180 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
4181 Take a const_tree and a bool.
4182 (m68hc11_function_arg_advance): Likewise.
4183 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4184
4185 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4186
4187 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
4188 (xstormy16_function_arg_advance): Delete.
4189 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
4190 (FUNCTION_ARG_ADVANCE): Delete.
4191 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
4192 Take a const_tree and a bool.
4193 (xstormy16_function_arg_advance): Likewise. Return void, updating
4194 the CUM parameter instead.
4195 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4196
4197 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4198
4199 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
4200 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4201 (MOXIE_FUNCTION_ARG_SIZE): Move to...
4202 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
4203 (moxie_function_arg): Make static. Take a const_tree and a bool.
4204 (moxie_function_arg_advance): New function.
4205 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4206
4207 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4208
4209 * config/mn10300/mn10300-protos.h (function_arg): Delete.
4210 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
4211 (FUNCTION_ARG_ADVANCE): Delete.
4212 * config/mn10300/mn10300.c (function_arg): Rename to...
4213 (mn10300_function_arg): ...this. Make static. Take a const_tree
4214 and a bool.
4215 (mn10300_function_arg_advance): New function.
4216 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4217
4218 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4219
4220 * config/iq2000/iq2000-protos.h (function_arg): Delete.
4221 (function_arg_advance): Delete.
4222 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4223 * config/iq2000/iq2000.c (function_arg): Rename to...
4224 (iq2000_function_arg): ...this. Make static. Take a const_tree and
4225 a bool.
4226 (function_arg_advance): Rename to...
4227 (iq2000_function_arg_advance): ...this. Make static. Take a
4228 const_tree and a bool.
4229 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
4230 iq2000_function_arg.
4231 (iq2000_pass_by_reference): Call iq2000_function_arg).
4232 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4233
4234 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4235
4236 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
4237 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4238 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
4239 const_tree.
4240 (fr30_function_arg): New function.
4241 (fr30_function_arg_advance): New function.
4242 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4243
4244 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4245
4246 * config/frv/frv-protos.h (frv_function_arg): Delete.
4247 (frv_function_arg_advance): Delete.
4248 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4249 * config/frv/frv.c (frv_function_arg): Rename to...
4250 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
4251 (frv_function_arg, frv_function_incoming_arg): New functions.
4252 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
4253 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4254 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4255
4256 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
4257
4258 PR target/46153
4259 * config/i386/sse.md (sse_movhlps_exp): Use destination
4260 returned from ix86_fixup_binary_operands to expand insn.
4261 (sse_movlhps_exp): Ditto.
4262 (sse_loadhps_exp): Ditto.
4263 (sse_loadlps_exp): Ditto.
4264 (sse2_loadhpd_exp): Ditto.
4265 (sse2_loadlpd_exp): Ditto.
4266
4267 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
4268
4269 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
4270 constants in thumb2.
4271
4272 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
4273
4274 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
4275 arithmetics in masking operations.
4276 (contains_muldiv): Likewise.
4277 (try_combine): Likewise.
4278 (find_split_point): Likewise.
4279 (combine_simplify_rtx): Likewise.
4280 (simplify_if_then_else): Likewise.
4281 (simplify_set): Likewise.
4282 (expand_compound_operation): Likewise.
4283 (expand_field_assignment): Likewise.
4284 (make_extraction): Likewise.
4285 (extract_left_shift): Likewise.
4286 (make_compound_operation): Likewise.
4287 (force_to_mode): Likewise.
4288 (make_field_assignment): Likewise.
4289 (reg_nonzero_bits_for_combine): Likewise.
4290 (simplify_shift_const_1): Likewise.
4291 (simplify_comparison): Likewise.
4292
4293 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
4294
4295 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
4296 (ia64_function_arg_advance): Delete.
4297 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4298 (FUNCTION_ARG_ADVANCE): Delete.
4299 * config/ia64/ia64.c (ia64_function_arg): Rename to...
4300 (ia64_function_arg_1): ...this. Make static. Take const_tree and
4301 bool arguments.
4302 (ia64_function_arg, ia64_function_incoming_arg): New functions.
4303 (ia64_function_arg_advance): Make static. Take a const_tree and
4304 a bool.
4305 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4306 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4307
4308 2010-10-27 Steve Ellcey <sje@cup.hp.com>
4309
4310 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
4311 (TARGET_GET_RAW_ARG_MODE): New.
4312 * doc/tm.texi: Regenerate.
4313 * target.def (get_raw_result_mode): New.
4314 (get_raw_arg_mode): New.
4315 * targhooks.c (default_get_reg_raw_mode): New.
4316 * targhooks.h (default_get_reg_raw_mode): New.
4317 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
4318 (apply_result_size): Ditto.
4319 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
4320 (TARGET_GET_RAW_RESULT_MODE): Define.
4321 (TARGET_GET_RAW_ARG_MODE): Ditto.
4322
4323 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4324
4325 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
4326 for newer Solaris 10 release.
4327 (sparc_fallback_frame_state): Likewise.
4328
4329 2010-10-27 Jason Merrill <jason@redhat.com>
4330
4331 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
4332 variables sooner.
4333
4334 2010-10-27 Jie Zhang <jie@codesourcery.com>
4335 Maxim Kuvyrkov <maxim@codesourcery.com>
4336
4337 * haifa-sched.c (ISSUE_POINTS): Remove.
4338 (max_issue): Don't issue more than issue_rate instructions.
4339
4340 2010-10-27 Ian Lance Taylor <iant@google.com>
4341
4342 PR target/46197
4343 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
4344 (split_stack_return): Replace UNSPEC_STACK_CHECK with
4345 UNSPECV_SPLIT_STACK_RETURN.
4346
4347 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
4348
4349 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
4350
4351 * config/i386/i386.c (block_info): New.
4352 (BLOCK_INFO): Likewise.
4353 (call_avx256_state): Likewise.
4354 (check_avx256_stores): Likewise.
4355 (move_or_delete_vzeroupper_2): Likewise.
4356 (move_or_delete_vzeroupper_1): Likewise.
4357 (move_or_delete_vzeroupper): Likewise.
4358 (use_avx256_p): Likewise.
4359 (function_pass_avx256_p): Likewise.
4360 (flag_opts): Add -mvzeroupper.
4361 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
4362 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
4363 is disabled.
4364 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
4365 generate vzeroupper.
4366 (init_cumulative_args): Add an int to indicate caller. Set
4367 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
4368 based on return type.
4369 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
4370 caller_pass_avx256_p based on argument type.
4371 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
4372 is used, but not returned by caller.
4373 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
4374 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
4375 is used.
4376 (ix86_minimum_alignment): Likewise.
4377 (ix86_expand_special_args_builtin): Set target to
4378 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
4379 (ix86_reorg): Run the vzeroupper optimization if needed.
4380
4381 * config/i386/i386.h (ix86_args): Add caller.
4382 (INIT_CUMULATIVE_ARGS): Updated.
4383 (machine_function): Add use_vzeroupper_p, use_avx256_p,
4384 caller_pass_avx256_p, caller_return_avx256_p,
4385 callee_pass_avx256_p and callee_return_avx256_p.
4386
4387 * config/i386/i386.opt (-mvzeroupper): New.
4388
4389 * config/i386/predicates.md (vzeroupper_operation): Removed.
4390
4391 * config/i386/sse.md (avx_vzeroupper): Removed.
4392 (*avx_vzeroupper): Removed.
4393 (avx_vzeroupper): New.
4394
4395 * doc/invoke.texi: Document -mvzeroupper.
4396
4397 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4398
4399 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
4400 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
4401 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
4402
4403 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4404 Olivier Hainque <hainque@adacore.com>
4405
4406 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
4407 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
4408 fs->signal_frame instead.
4409
4410 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4411
4412 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
4413 parsing of RID_COPIES and RID_IVAR.
4414
4415 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4416
4417 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
4418 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
4419 Do not use objc_set_property_attr, but use local variables
4420 instead. Detect repeated usage of setter, getter and ivar
4421 attributes. Improved error processing when a setter name does not
4422 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
4423 that the token is a keyword. Updated call to
4424 objc_add_property_declaration.
4425
4426 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4427
4428 * c-parser.c (c_parser_objc_at_property): Renamed to
4429 c_parser_objc_at_property_declaration. Updated calls to
4430 objc_add_property_variable, now objc_add_property_declaration.
4431 Code rewritten to be much more robust in recovering from syntax
4432 errors. Added comments.
4433 (c_parser_objc_property_attrlist): Removed.
4434 (c_parser_external_declaration): Updated calls to
4435 c_parser_objc_at_property, now
4436 c_parser_objc_at_property_declaration.
4437 (c_parser_objc_methodprotolist): Same change.
4438
4439 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4440
4441 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
4442
4443 2010-10-26 Jan Hubicka <jh@suse.cz>
4444
4445 * ipa.c (process_references): Enqueue all referenced nodes;
4446 mark as reachable only non-external nodes.
4447 (cgraph_remove_unreachable_nodes): All referenced nodes should
4448 be enqueued; remove bogues node->needed check.
4449
4450 2010-10-26 Jan Hubicka <jh@suse.cz>
4451
4452 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
4453 to represent OMP.
4454
4455 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4456
4457 * config/i386/i386.md (split_stack_return): Replace
4458 unspec_volatile with unspec.
4459
4460 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
4461
4462 * doc/install.texi: Fix typo in --with-sysroot description.
4463
4464 2010-10-26 Jan Hubicka <jh@suse.cz>
4465
4466 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4467 Use info provided by linker plugin.
4468
4469 2010-10-26 Jason Merrill <jason@redhat.com>
4470
4471 * varasm.c (constructor_static_from_elts_p): Don't require a
4472 CONSTRUCTOR to have elements to be suitable for static
4473 initialization. Allow ARRAY_TYPE as well.
4474
4475 2010-10-26 Jan Hubicka <jh@suse.cz>
4476
4477 PR middle-end/45736
4478 * cgraph.c (cgraph_set_readonly_flag): Rename to...
4479 (cgraph_set_const_flags) ... this one; get also looping argument;
4480 clear constructor/destructor flags.
4481 (cgraph_set_pure_flag): Likewise.
4482 (cgraph_set_looping_const_or_pure_flag): Remove.
4483 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
4484 to optimize away static ctors/dtors; it does not work on inline clones;
4485 external functions can always be rmeoved.
4486 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
4487 inline clones; in LTO external functions always can go.
4488 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
4489 (cgraph_mark_address_taken_node): Assert that we are not taking
4490 address of inline clone.
4491 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
4492 external functions.
4493 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
4494 address taken.
4495 (ipcp_initialize_node_lattices): Only local functions can be
4496 handled without cloning.
4497 * cgraph.h (cgraph_set_readonly_flag,
4498 cgraph_set_looping_const_or_pure_flag): Remove.
4499 (cgraph_set_const_flag): Declare.
4500 (cgraph_set_pure_flag): Update.
4501 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
4502 flags setting code.
4503 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
4504 look at inline clones; fix handling of external definitions.
4505 (cgraph_postorder): Do not look at inline clones in the first pass.
4506 (function_and_variable_visibility): Drop constructors/destructor
4507 flags at pure and const functions.
4508 * tree-profile.c (tree_profiling): Update.
4509 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
4510 address taken; external functions do not account to whole program size.
4511 (cgraph_decide_inlining): Likewise; do not try to inline
4512 functions already inlined.
4513
4514 2010-10-26 Jie Zhang <jie@codesourcery.com>
4515
4516 * doc/invoke.texi: Improve documentation of
4517 -fstrict-volatile-bitfields.
4518
4519 2010-10-26 Ira Rosen <irar@il.ibm.com>
4520
4521 PR tree-optimization/46167
4522 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
4523 is basic block for the statement.
4524
4525 2010-10-26 Paul Koning <ni1d@arrl.net>
4526
4527 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
4528 current definition of struct_real_format.
4529
4530 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
4531
4532 PR target/44948
4533 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
4534 (ix86_function_arg_boundary): Always align parameters on stack
4535 in 64bit and align parameters with alignment >= 16byte on stack
4536 in 32bit. Warn alignment change.
4537
4538 2010-10-26 Ian Lance Taylor <iant@google.com>
4539
4540 PR middle-end/45687
4541 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
4542 offset.
4543
4544 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
4545
4546 Implement opaque-enum-specifiesr for C++0x
4547 * tree.h (ENUM_IS_OPAQUE): New.
4548 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
4549
4550 2010-10-26 Jie Zhang <jie@codesourcery.com>
4551
4552 * stor-layout.c (layout_decl): Use the field's type to
4553 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
4554 * config/arm/arm.c (arm_override_options): Default to
4555 -fstrict-volatile-bitfields.
4556
4557 2010-10-25 Paul Koning <ni1d@arrl.net>
4558
4559 * config/pdp11/pdp11.md: Add define_constants for register
4560 numbers, branch offset limits.
4561 * config/pdp11/pdp11.c: Use named constants instead of numbers.
4562 * config/pdp11.pdp11.h: Ditto.
4563
4564 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
4565
4566 * configure.ac: Use $cpu_type instead of $target to define the nop.
4567 * configure: Regenerate.
4568
4569 2010-10-25 Jie Zhang <jie@codesourcery.com>
4570
4571 * combine.c (try_combine): If insns need to be kept around, check that
4572 they can be copied in the merged instruction.
4573
4574 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4575
4576 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
4577 has been modified.
4578 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
4579 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
4580 it has been modified.
4581
4582 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4583
4584 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
4585
4586 2010-10-24 Paul Koning <ni1d@arrl.net>
4587
4588 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
4589 * config/pdp11/pdp11.c (output_jump): Ditto.
4590
4591 2010-10-24 Ian Lance Taylor <iant@google.com>
4592
4593 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
4594
4595 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
4596
4597 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
4598 least one insn with a locus corresponding to an edge's goto_locus,
4599 disregard non-fallthru edges to the exit block and merge the blocks
4600 created for the same goto_locus.
4601
4602 2010-10-23 Joseph Myers <joseph@codesourcery.com>
4603
4604 * gcc.c (n_switches_alloc_debug_check): New.
4605 (set_option_handlers): New.
4606 (process_command): Use set_option_handlers.
4607 (do_self_spec): Pass spec-generated options through option handlers.
4608 (main): Also save and restore n_switches_alloc when swapping
4609 switch arrays.
4610
4611 2010-10-23 Richard Henderson <rth@redhat.com>
4612
4613 PR target/46144
4614 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
4615 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
4616 Honor matching operands when splitting to XOR.
4617
4618 2010-10-23 Ian Lance Taylor <iant@google.com>
4619
4620 * tree-vrp.c (extract_range_from_binary_expr): If
4621 flag_non_call_exceptions don't eliminate division by zero.
4622 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4623
4624 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
4625
4626 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
4627 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
4628 __ORDER_PDP_ENDIAN__.
4629 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4630 (struct DWstruct): Define based on __BYTE_ORDER__.
4631 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4632 (struct INTstruct): Define based on __BYTE_ORDER__.
4633 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4634 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
4635 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
4636 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4637 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4638 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4639 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4640 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4641 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4642 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4643 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4644 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4645 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4646 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4647 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4648 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4649 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4650 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4651 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
4652 * doc/tm.texi: Regenerate.
4653 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
4654 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
4655
4656 2010-10-23 Jie Zhang <jie@codesourcery.com>
4657
4658 PR rtl-optimization/37360
4659 * config/mips/mips.c (cached_can_issue_more): New local variable.
4660 (mips_sched_reorder_1): New.
4661 (mips_sched_reorder): Use mips_sched_reorder_1.
4662 (mips_sched_reorder2): New.
4663 (mips_variable_issue): Set cached_can_issue_more.
4664 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
4665 instead of mips_sched_reorder.
4666
4667 Revert:
4668 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
4669 PR rtl-optimization/37360
4670 * haifa-sched.c (max_issue): Do not assert that we never issue more
4671 insns than issue_rate. Add comment.
4672
4673 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
4674
4675 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
4676 location info of the expression.
4677
4678 2010-10-22 DJ Delorie <dj@redhat.com>
4679
4680 * doc/extend.texi (Named Address Spaces): Document the M32C named
4681 address space.
4682
4683 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
4684 __far address space.
4685 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
4686 "__far" address space for R8C and M16C processor variants.
4687 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
4688 (far_addr_space_p): New.
4689 (encode_pattern_1): Add sign and zero extend support.
4690 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
4691 (m32c_extra_constraint_p2): Add SF constraint.
4692 (m32c_legitimate_address_p): Support __far addresses.
4693 (m32c_addr_space_pointer_mode): New.
4694 (m32c_addr_space_address_mode): New.
4695 (m32c_addr_space_legitimate_address_p): New.
4696 (m32c_addr_space_legitimize_address): New.
4697 (m32c_addr_space_subset_p): New.
4698 (m32c_addr_space_convert): New.
4699 (conversions): Add __far operand patterns.
4700 (m32c_prepare_move): Force constants into registers for __far moves.
4701 (m32c_split_move): __far moves are always split.
4702 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
4703 * config/m32c/mov.md (mov<mode>_far_op1): New.
4704 (mov<mode>_far_op2): New.
4705 (movqi_op): Add __far (SF) support.
4706 (movhi_op): Likewise.
4707 (movsi_splittable): Split A1A0 also.
4708
4709 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4710 Andrew Pinski <pinskia@gmail.com>
4711
4712 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
4713 * doc/extend.texi: New paragraph
4714
4715 2010-10-22 Paul Koning <ni1d@arrl.net>
4716
4717 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
4718
4719 2010-10-22 DJ Delorie <dj@redhat.com>
4720
4721 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
4722
4723 2010-10-22 Paul Koning <ni1d@arrl.net>
4724
4725 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
4726
4727 2010-10-22 Richard Henderson <rth@redhat.com>
4728
4729 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
4730 cases for __builtin_fma and __builtin_fmaf.
4731
4732 2010-10-22 Richard Henderson <rth@redhat.com>
4733
4734 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
4735 NEG+USE for vectors as well.
4736 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
4737 and splitter.
4738
4739 2010-10-22 Joseph Myers <joseph@codesourcery.com>
4740
4741 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
4742 SWITCH_CURTAILS_COMPILATION): Remove.
4743 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
4744 * doc/tm.texi: Regenerate.
4745 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
4746
4747 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
4748
4749 * config/i386/bdver1.md: New file.
4750 * config/i386/i386.md (include "bdver1.md"): Invoke the
4751 pipeline description for bdver1.
4752 (x86_sahf_1): Add "bdver1_decode" attribute.
4753 (*cmpfp_i_mixed): Likewise.
4754 (*cmpfp_i_sse): Likewise.
4755 (*cmpfp_i_i387): Likewise.
4756 (*cmpfp_iu_mixed): Likewise.
4757 (*cmpfp_iu_sse): Likewise.
4758 (*cmpfp_iu_387): Likewise.
4759 (*swap<mode>,*swap<mode>_1): Likewise.
4760 (fixuns_trunc<mode>hi2): Likewise.
4761 (fix_trunc<mode>si_sse): Likewise.
4762 (x86_fnstcw_1): Likewise.
4763 (x86_fldcw_1): Likewise.
4764 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
4765 (*floatsi<mode>2_vector_mixed): Likewise.
4766 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
4767 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4768 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4769 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
4770 (*floatsi<mode>2_vector_sse): Likewise.
4771 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
4772 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4773 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4774 (*mul<mode>3_1): Likewise.
4775 (*mulsi3_1_zext): Likewise.
4776 (*mulhi3_1): Likewise.
4777 (*mulqi3_1): Likewise.
4778 (*<u>mul<mode><dwi>3_1): Likewise.
4779 (*<u>mulqihi3_1): Likewise.
4780 (*<s>muldi3_highpart_1): Likewise.
4781 (*<s>mulsi3_highpart_1): Likewise.
4782 (*<s>mulsi3_highpart_zext): Likewise.
4783 (x86_64_shld): Likewise.
4784 (x86_shld): Likewise.
4785 (x86_64_shrd): Likewise.
4786 (x86_shrd): Likewise.
4787 (sqrtxf2): Likewise.
4788 (sqrt_extend<mode>xf2_i387): Likewise.
4789 (*sqrt<mode>2_sse): Likewise.
4790 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
4791 (sse_cvtsi2ssq): Likewise.
4792 (sse_cvtss2si): Likewise.
4793 (sse_cvtss2si_2): Likewise.
4794 (sse_cvtss2siq): Likewise.
4795 (sse_cvtss2siq_2): Likewise.
4796 (sse_cvttss2si): Likewise.
4797 (sse_cvttss2siq): Likewise.
4798 (sse2_cvtpi2pd): Likewise.
4799 (sse2_cvttpd2pi): Likewise.
4800 (sse2_cvtsi2sd): Likewise.
4801 (sse2_cvtsi2sdq): Likewise.
4802 (sse2_cvtsd2si): Likewise.
4803 (sse2_cvtsd2si_2): Likewise.
4804 (sse2_cvtsd2siq): Likewise.
4805 (sse2_cvtsd2siq_2): Likewise.
4806 (sse2_cvttsd2si): Likewise.
4807 (sse2_cvttsd2siq): Likewise.
4808 (*sse2_cvtpd2dq): Likewise.
4809 (*sse2_cvttpd2dq): Likewise.
4810 (sse2_cvtsd2ss): Likewise.
4811 (sse2_cvtss2sd): Likewise.
4812 (*sse2_cvtpd2ps): Likewise.
4813 (sse2_cvtps2pd): Likewise.
4814
4815 2010-10-22 Richard Guenther <rguenther@suse.de>
4816
4817 PR middle-end/46137
4818 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
4819 remove the virtual operands if they are not needed.
4820
4821 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
4822
4823 * config/i386/i386.c (processor_costs bdver1_cost): Update
4824 insn costs and architectural parameters for bdver1.
4825
4826 2010-10-22 Richard Guenther <rguenther@suse.de>
4827
4828 * gimple.h (gimple_register_canonical_type): Declare.
4829 * gimple.c (gimple_canonical_types): New global hashtable.
4830 (struct gimple_type_leader_entry_s): New type.
4831 (gimple_type_leader): New global cache.
4832 (gimple_lookup_type_leader): New function.
4833 (gtc_visit): Query the proper cache.
4834 (gimple_types_compatible_p): Likewise.
4835 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
4836 (gimple_canonical_type_eq): New function.
4837 (gimple_register_canonical_type): Likewise.
4838 (print_gimple_types_stats): Adjust for gimple_canonical_types.
4839 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
4840 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
4841 gimple_types_compatible_p for LTO.
4842
4843 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
4844
4845 PR target/46098
4846 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
4847 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
4848 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
4849 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
4850 (<sse>_movu<ssemodesuffix>): New expander.
4851 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
4852 (avx_movdqu<avxmodesuffix>): New expander.
4853 (*sse2_movdqu): Rename from sse2_movdqu.
4854 (sse2_movdqu): New expander.
4855
4856 2010-10-22 Richard Guenther <rguenther@suse.de>
4857
4858 PR tree-optimization/45720
4859 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
4860 Handle negative step.
4861 (vect_enhance_data_refs_alignment): Likewise.
4862 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
4863 (vect_create_cond_for_align_checks): Likewise.
4864 (vect_create_cond_for_alias_checks): Likewise.
4865
4866 2010-10-22 Ira Rosen <irar@il.ibm.com>
4867
4868 PR tree-optimization/46126
4869 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
4870 vectorizable_shift in case of basic block vectorization.
4871
4872 2010-10-22 Joseph Myers <joseph@codesourcery.com>
4873
4874 * target.h (enum opt_levels, struct default_options): New.
4875 * target.def (handle_ofast): Remove hook.
4876 (target_option.optimization): Change to
4877 target_option.optimization_table.
4878 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
4879 TARGET_OPTION_OPTIMIZATION_TABLE.
4880 (CAN_DEBUG_WITHOUT_FP): Remove.
4881 * doc/tm.texi: Regenerate.
4882 * opts.c (maybe_default_option, maybe_default_options,
4883 default_options_table): New.
4884 (default_options_optimization): Take extra parameters. Don't
4885 assert that global_options and global_options_set are in use. Use
4886 maybe_default_options.
4887 (decode_options): Pass extra parameters to
4888 default_options_optimization.
4889 * common.opt (falign-loops): Use value 0 with Var.
4890 (frerun-cse-after-loop, ftree-ter): Remove Init.
4891 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
4892 TARGET_OPTION_OPTIMIZATION): Remove.
4893 * targhooks.c (empty_optimization_table): New.
4894 * targhooks.h (empty_optimization_table): Declare.
4895 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
4896 * config/alpha/alpha.c (alpha_option_optimization_table,
4897 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4898 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
4899 * config/arm/arm.c (arm_option_optimization: Change to
4900 arm_option_optimization_table.
4901 (TARGET_OPTION_OPTIMIZATION): Change to
4902 TARGET_OPTION_OPTIMIZATION_TABLE.
4903 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
4904 * config/avr/avr.c (avr_option_optimization_table,
4905 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4906 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
4907 * config/cris/cris.c (cris_option_optimization): Change to
4908 cris_option_optimization_table.
4909 (TARGET_OPTION_OPTIMIZATION): Change to
4910 TARGET_OPTION_OPTIMIZATION_TABLE.
4911 * config/crx/crx.c (crx_option_optimization): Change to
4912 crx_option_optimization_table.
4913 (TARGET_OPTION_OPTIMIZATION): Change to
4914 TARGET_OPTION_OPTIMIZATION_TABLE.
4915 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4916 * config/fr30/fr30.c (fr30_option_optimization_table,
4917 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4918 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
4919 * config/frv/frv.c (frv_option_optimization_table,
4920 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4921 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
4922 * config/h8300/h8300.c (h8300_option_optimization): Change to
4923 h8300_option_optimization_table.
4924 (TARGET_OPTION_OPTIMIZATION): Change to
4925 TARGET_OPTION_OPTIMIZATION_TABLE.
4926 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4927 * config/i386/i386.c (ix86_option_optimization): Change to
4928 ix86_option_optimization_table.
4929 (TARGET_OPTION_OPTIMIZATION): Change to
4930 TARGET_OPTION_OPTIMIZATION_TABLE.
4931 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4932 as initializer.
4933 * config/ia64/ia64.c (ia64_option_optimization): Change to
4934 ia64_option_optimization_table.
4935 (TARGET_OPTION_OPTIMIZATION): Change to
4936 TARGET_OPTION_OPTIMIZATION_TABLE.
4937 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
4938 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
4939 initializer.
4940 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4941 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4942 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4943 * config/lm32/lm32.c (lm32_option_optimization_table,
4944 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4945 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
4946 * config/m32r/m32r.c (m32r_option_optimization): Change to
4947 m32r_option_optimization_table.
4948 (TARGET_OPTION_OPTIMIZATION): Change to
4949 TARGET_OPTION_OPTIMIZATION_TABLE.
4950 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
4951 CAN_DEBUG_WITHOUT_FP): Remove.
4952 * config/mcore/mcore.c (mcore_option_optimization): Change to
4953 mcore_option_optimization_table.
4954 (TARGET_OPTION_OPTIMIZATION): Change to
4955 TARGET_OPTION_OPTIMIZATION_TABLE.
4956 * config/mep/mep.c (mep_option_optimization): Change to
4957 mep_option_optimization_table.
4958 (TARGET_OPTION_OPTIMIZATION): Change to
4959 TARGET_OPTION_OPTIMIZATION_TABLE.
4960 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
4961 * config/microblaze/microblaze.c
4962 (microblaze_option_optimization_table,
4963 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4964 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
4965 * config/mips/mips.c (mips_option_optimization_table,
4966 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4967 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
4968 * config/mmix/mmix.c (mmix_option_optimization): Change to
4969 mmix_option_optimization_table.
4970 (TARGET_OPTION_OPTIMIZATION): Change to
4971 TARGET_OPTION_OPTIMIZATION_TABLE.
4972 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
4973 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4974 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4975 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4976 * config/pa/pa.c (pa_option_optimization_table,
4977 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4978 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4979 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
4980 pdp11_option_optimization_table.
4981 (TARGET_OPTION_OPTIMIZATION): Change to
4982 TARGET_OPTION_OPTIMIZATION_TABLE.
4983 * config/picochip/picochip.c (picochip_option_optimization_table,
4984 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4985 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
4986 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
4987 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4988 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4989 * config/rx/rx.c (rx_option_optimization_table,
4990 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4991 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4992 * config/s390/s390.c (s390_option_optimization): Change to
4993 s390_option_optimization_table.
4994 (s390_option_override): Update comment.
4995 (TARGET_OPTION_OPTIMIZATION): Change to
4996 TARGET_OPTION_OPTIMIZATION_TABLE.
4997 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
4998 * config/score/score.c (score_option_optimization_table,
4999 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5000 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
5001 * config/sh/sh.c (sh_option_optimization): Change to
5002 sh_option_optimization_table.
5003 (TARGET_OPTION_OPTIMIZATION): Change to
5004 TARGET_OPTION_OPTIMIZATION_TABLE.
5005 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
5006 (sh_option_override, expand_block_move, multcosts, find_barrier,
5007 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
5008 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
5009 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
5010 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
5011 instead of TARGET_SMALLCODE.
5012 * config/sh/sh.opt (mspace): Make into an alias for -Os.
5013 * config/sparc/sparc.c (sparc_option_optimization_table,
5014 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5015 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
5016 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5017 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5018 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
5019 * config/v850/v850.c (v850_option_optimization): Change to
5020 v850_option_optimization_table.
5021 (TARGET_OPTION_OPTIMIZATION): Change to
5022 TARGET_OPTION_OPTIMIZATION_TABLE.
5023 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
5024 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
5025 xtensa_option_optimization_table.
5026 (TARGET_OPTION_OPTIMIZATION): Change to
5027 TARGET_OPTION_OPTIMIZATION_TABLE.
5028 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5029
5030 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
5031
5032 Based on the CFString implementation in FSF apple/trunk branch.
5033
5034 * target.def (objc_construct_string): New Hook.
5035 * doc/tm.texi (objc_construct_string): Document.
5036 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
5037 * config/t-darwin: Amend build rules for darwin.o.
5038 * config/darwin.opt: Add cfstrings flags.
5039 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
5040 (darwin_objc_construct_string): New.
5041 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
5042 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
5043 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
5044 (darwin_fold_builtin): Likewise.
5045 (darwin_build_constant_cfstring): Likewise.
5046 (darwin_objc_construct_string): Likewise.
5047 (darwin_cfstring_p): Likewise.
5048 (darwin_enter_string_into_cfstring_table): Likewise.
5049 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
5050 * config/darwin.c (darwin_running_cxx): New var.
5051 (machopic_select_section): Return cfstring_constant_object_section.
5052 (darwin_override_options): Set darwin_running_cxx.
5053 (add_builtin_field_decl): New.
5054 (darwin_init_cfstring_builtins): New.
5055 (darwin_build_constant_cfstring): New.
5056 (darwin_fold_builtin): New.
5057 (cfstring_hash): New.
5058 (cfstring_eq): New.
5059 (darwin_enter_string_into_cfstring_table): New.
5060 * config/darwin-sections.def (cfstring_constant_object_section): New.
5061 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
5062 (TARGET_OBJC_CONSTRUCT_STRING): Define.
5063
5064 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5065
5066 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
5067 TYPE_STUB_DECL instead of TREE_CHAIN.
5068 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
5069 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
5070 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
5071 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
5072 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
5073 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
5074 Likewise.
5075 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
5076
5077 2010-10-22 Jie Zhang <jie@codesourcery.com>
5078
5079 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
5080 (copy_blkmode_from_reg): Likewise.
5081 (read_complex_part): Likewise.
5082 (expand_expr_real_1): Calculate packedp and pass it to
5083 extract_bit_field.
5084 * expr.h (extract_bit_field): Update declaration.
5085 * calls.c (store_unaligned_arguments_into_pseudos): Update call
5086 to extract_bit_field.
5087 * expmed.c (extract_fixed_bit_field): Update calls to
5088 extract_fixed_bit_field.
5089 (store_split_bit_field): Likewise.
5090 (extract_bit_field_1): Add new argument packedp.
5091 (extract_bit_field): Add new argument packedp.
5092 (extract_fixed_bit_field): Add new argument packedp and let
5093 packed attribute override volatile.
5094 * stmt.c (expand_return): Update call to extract_bit_field.
5095
5096 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5097
5098 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
5099
5100 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5101
5102 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
5103 of gcc_checking_assert.
5104 * sel-sched.c (code_motion_process_successors): Likewise.
5105
5106 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
5107
5108 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
5109 when stopping because of a different locus on edge or insn.
5110 (try_optimize_cfg): Add comment.
5111 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
5112 block is a forwarder block, propagate locus on the edge.
5113 (cfg_layout_merge_blocks): Likewise.
5114
5115 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
5116
5117 PR target/45946
5118 * config/i386/i386.md (*pushti2): New insn pattern.
5119 (pushti2 splitter): New insn splitter.
5120 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
5121 DWI mode iterator.
5122
5123 2010-10-21 Paul Koning <ni1d@arrl.net>
5124
5125 * config/pdp11/pdp11-protos.md (arith_operand,
5126 const_immediate_operand, expand_shift_operand,
5127 immediate15_operand): Delete
5128 * config/pdp11/pdp11.c: Ditto.
5129 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
5130 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5131 EXTRA_CONSTRAINT): Delete.
5132 * config/pdp11/pdp11.md (various): Use standard constraints
5133 instead of removed ones.
5134 * config/pdp11/constraints.md: New file.
5135 * config/pdp11/predicates.md: New file.
5136
5137 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
5138
5139 PR c/45834
5140 * alias.c (true_dependence_1): Remove obsolete check for QImode.
5141 (may_alias_p): Ditto.
5142
5143 2010-10-21 Martin Jambor <mjambor@suse.cz>
5144
5145 PR tree-optimization/45875
5146 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
5147
5148 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5149
5150 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
5151 variables.
5152 (create_new_def_for): Likewise.
5153
5154 2010-10-21 Nick Clifton <nickc@redhat.com>
5155
5156 * config/mn10300/mn10300.c: Fold code to 80-character width.
5157 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5158 MEM, CONST_INT and CONST_DOUBLE.
5159 (targetm): Move initialization to end of file.
5160 (print_operand): Rename to mn10300_print_operand.
5161 (print_operand_address): Rename to mn10300_print_operand_address.
5162 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
5163 (expand_prologue): Rename to mn10300_expand_prologue.
5164 (expand_epilogue): Rename to mn10300_expand_epilogue.
5165 (initial_offset): Rename to mn10300_initial_offset.
5166 (function_arg): Rename to mn10300_function_arg.
5167 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
5168 (symbolic_operand): Rename to mn10300_symbolic_operand.
5169 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
5170 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
5171 * config/mn10300/mn10300-protos.h: Update prototypes.
5172 * config/mn10300/mn10300.h: Fold code to 80-character width.
5173 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5174 MEM, CONST_INT and CONST_DOUBLE.
5175 (CPP_SPEC): Move to...
5176 (TARGET_CPU_CPP_BUILTINS): ... here.
5177 * config/mn10300/mn10300.md: Fold code to 80-character width.
5178 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5179 MEM, CONST_INT and CONST_DOUBLE.
5180
5181 2010-10-21 Ira Rosen <irar@il.ibm.com>
5182
5183 PR tree-optimization/46049
5184 PR tree-optimization/46052
5185 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
5186 (vect_get_slp_defs): Add arguments.
5187 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
5188 operands to vect_get_slp_defs.
5189 (vectorizable_reduction): Fix comment, pass scalar operands to
5190 vect_get_slp_defs.
5191 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
5192 type to determine number of units in the created vector.
5193 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
5194 (vectorizable_conversion): Fix comment.
5195 (vectorizable_shift): New function.
5196 (vectorizable_operation): Move code that handles shifts to
5197 vectorizable_shift.
5198 (vectorizable_type_demotion): Fix comment, pass scalar operands to
5199 vect_get_slp_defs.
5200 (vectorizable_type_promotion, vectorizable_store): Likewise.
5201 (vectorizable_condition): Fix comment.
5202 (vect_analyze_stmt): Call vectorizable_shift.
5203 (vect_transform_stmt): Likewise.
5204 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
5205 Use it as the operand to create vectors for, except reduction
5206 initial definition and store. Use operands type.
5207 (vect_get_slp_defs): Add new arguments. Pass them to
5208 vect_get_constant_vectors.
5209
5210 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5211
5212 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
5213 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
5214 * cfghooks.c (fixup_reorder_chain): Likewise.
5215 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
5216 * cgraph.c (cgraph_add_thunk): Likewise.
5217 (cgraph_create_edge_1): Likewise.
5218 (cgraph_create_virtual_clone): Likewise.
5219 * ddg.c (add_cross_iteration_register_deps): Likewise.
5220 * dwarf2out.c (modified_type_die): Likewise.
5221 * emit-rtl.c (set_mem_alias_set): Likewise.
5222 * ggc-zone.c (zone_allocate_marks): Likewise.
5223 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
5224 * gimple.c (iterative_hash_gimple_type): Likewise.
5225 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
5226 (create_single_exit_edge): Likewise.
5227 * haifa-sched.c (choose_ready): Likewise.
5228 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5229 * passes.c (execute_todo): Likewise.
5230 * sched-ebb.c (begin_schedule_ready): Likewise.
5231 * sel-sched.c (code_motion_process_successors): Likewise.
5232 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
5233 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
5234 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
5235 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
5236 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
5237 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
5238 (ssa_conflicts_add): Likewise.
5239 * tree-ssa-copy.c (replace_exp): Likewise.
5240 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
5241 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
5242 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5243 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
5244 (compute_antic): Likewise.
5245 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
5246 (add_dependence): Likewise.
5247 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
5248 * tree-vrp.c (supports_overflow_infinity): Likewise.
5249 (make_overflow_infinity, negative_overflow_infinity): Likewise.
5250 (avoid_overflow_infinity, register_new_assert_for): Likewise.
5251 (process_assert_insertions_for): Likewise.
5252 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
5253 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
5254 (intersect_loc_chains, variable_merge_over_cur): Likewise.
5255
5256 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5257
5258 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
5259 * reload1.c (has_nonexceptional_receiver): Likewise.
5260 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
5261 (create_new_def_for): Likewise.
5262 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
5263 (merge_phi_nodes): Likewise.
5264 (has_abnormal_incoming_edge_p): Delete.
5265
5266 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
5269
5270 2010-10-21 Richard Guenther <rguenther@suse.de>
5271 Michael Matz <matz@suse.de>
5272
5273 PR tree-optimization/45764
5274 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5275 Adjust initial misalignment for negative DR_STEP.
5276 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
5277 do not have the same alignment over the whole iteration domain.
5278
5279 2010-10-21 Richard Guenther <rguenther@suse.de>
5280
5281 PR tree-optimization/46111
5282 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
5283
5284 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5285
5286 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
5287
5288 2010-10-21 Tristan Gingold <gingold@adacore.com>
5289
5290 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
5291 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
5292
5293 2010-10-21 Tristan Gingold <gingold@adacore.com>
5294
5295 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
5296 signal_frame.
5297 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
5298
5299 2010-10-21 Tristan Gingold <gingold@adacore.com>
5300
5301 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
5302 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
5303
5304 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5305
5306 * basic-block.h (find_fallthru_edge): Define.
5307 * cfgcleanup.c (merge_blocks_move): Use it.
5308 (try_crossjump_bb): Likewise.
5309 * cfglayout.c (fixup_reorder_chains): Likewise.
5310 (fixup_fallthru_exit_predecessor): Likewise.
5311 * cfgrtl.c (rtl_split_edge): Likewise.
5312 (rtl_verify_flow_info): Likewise.
5313 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5314 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
5315 * ifcvt.c (block_fallthru): Likewise.
5316 * reload1.c (fixup_abnormal_edges): Likewise.
5317 * sched-ebb.c (being_schedule_ready): Likewise.
5318 (schedule_ebb): Likwise.
5319 * sched-rgn.c (find_single_block_region): Likewise.
5320 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
5321 * tree-complex.c (expand_complex_move): Likewise.
5322 * sched-int.h (find_fallthru_edge): Rename to...
5323 (find_fallthru_edge_from): ...this.
5324 * haifa-sched.c (find_fallthru_edge): Rename to...
5325 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
5326 (init_before_recovery): Call find_fallthru_edge_from.
5327 * sel-sched-ir.c (merge_fences): Likewise.
5328 * sel-sched.c (in_fallthru_bb_p): Likewise.
5329 (move_cond_jump): Likewise.
5330
5331 2010-10-20 Paul Koning <ni1d@arrl.net>
5332
5333 * config/pdp11/pdp11.md (various): Fix conditions on a number of
5334 insn to check for target 11/40 or higher.
5335
5336 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5337
5338 * parser.c (c_parser_objc_method_type): Mark inline. Return a
5339 bool instead of a tree.
5340 (c_parser_objc_method_decl): Added bool argument. Updated call to
5341 objc_build_method_signature.
5342 (c_parser_objc_method_definition): Do not call
5343 objc_set_method_type. Updated calls to c_parser_objc_method_type,
5344 c_parser_objc_method_decl and objc_start_method_definition.
5345 (c_parser_objc_methodproto): Do not call objc_set_method_type.
5346 Updated calls to c_parser_objc_method_type,
5347 c_parser_objc_method_decl and objc_add_method_declaration.
5348
5349 2010-10-20 Jakub Jelinek <jakub@redhat.com>
5350
5351 PR tree-optimization/45919
5352 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
5353 array members.
5354
5355 PR tree-optimization/46066
5356 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
5357 instead of gsi_last_bb.
5358
5359 2010-10-20 DJ Delorie <dj@redhat.com>
5360
5361 * config/m32c/m32c.c (m32c_option_override): Always disable
5362 function-cse in 16-bit mode. Indirect calls are always worse than
5363 direct calls as there is no 16-bit indirect call opcode.
5364 (m32c_override_options_after_change): New, likewise.
5365
5366 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5367
5368 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
5369 emitting the conditional move in the inner mode of the SUBREG.
5370
5371 2010-10-20 Anatoly Sokolov <aesok@post.ru>
5372
5373 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
5374 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
5375 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5376 (ia64_preferred_reload_class): Make static. Change rclass argument
5377 and result types from enum reg_class to reg_class_t.
5378
5379 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
5380
5381 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
5382 call for single operand expression.
5383
5384 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
5385
5386 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
5387 if there is a call statement to pure or const function in the block.
5388
5389 2010-10-20 Paul Koning <pkoning@equallogic.com>
5390
5391 Fix several build errors for pdp11 target.
5392 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
5393 (cbranchdf4): Conditional on TARGET_FPU.
5394 (movdf): Ditto; correct alternatives check.
5395 (movmemhi): Fix predicate and constraint.
5396 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
5397
5398 2010-10-20 Richard Guenther <rguenther@suse.de>
5399
5400 PR lto/45667
5401 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
5402 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
5403 (verify_gimple_assign_single): Disable ADDR_EXPR type check
5404 when in LTO.
5405
5406 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
5407
5408 PR fortran/42169
5409 * ira-emit.c (store_can_be_removed_p): Return false instead of
5410 gcc_unreachable.
5411
5412 2010-10-20 Dmitry Melnik <dm@ispras.ru>
5413
5414 * fold-const.c (fold_binary_loc): New transformation.
5415
5416 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
5417
5418 PR target/46085
5419 * config/i386/sse.md (reduc_splus_v8sf): Updated.
5420 (reduc_splus_v4df): Likewise.
5421
5422 2010-10-20 Richard Guenther <rguenther@suse.de>
5423
5424 PR tree-optimization/45860
5425 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
5426 conditional store replacement for non-register type stores.
5427
5428 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
5429
5430 * stor-layout.c (skip_simple_constant_arithmetic): New function.
5431 (self_referential_size): Use it instead of skip_simple_arithmetic.
5432
5433 2010-10-20 Olivier Hainque <hainque@adacore.com>
5434
5435 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
5436 If the current function calls eh_return, claim live all registers
5437 that we need to check for liveness otherwise.
5438
5439 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5440
5441 * c-decl.c (c_write_global_declarations): Call
5442 objc_write_global_declarations when compiling Objective-C.
5443 * c-lang.c (finish_file): Removed.
5444
5445 2010-10-19 DJ Delorie <dj@redhat.com>
5446
5447 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
5448 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
5449 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5450 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5451 * doc/tm.texi: Regenerate.
5452 * targhooks.h (default_label_align_after_barrier_max_skip,
5453 default_loop_align_max_skip, default_label_align_max_skip,
5454 default_jump_align_max_skip): Declare.
5455 * target.def (label_align_after_barrier_max_skip): New.
5456 (loop_align_max_skip): New.
5457 (label_align_max_skip): New.
5458 (jump_align_max_skip): New.
5459 * system.h (poison): Add those macros to the list.
5460 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
5461 (LOOP_ALIGN_MAX_SKIP): Remove.
5462 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
5463 (JUMP_ALIGN_MAX_SKIP): Remove.
5464 (default_label_align_after_barrier_max_skip): New.
5465 (default_loop_align_max_skip): New.
5466 (default_label_align_max_skip): New.
5467 (default_jump_align_max_skip): New.
5468 (compute_alignments): Use the new hooks.
5469 (shorten_branches): Likewise.
5470
5471 2010-10-19 Richard Henderson <rth@redhat.com>
5472
5473 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
5474 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
5475 (fma4i_fmadd_<mode>): New.
5476 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
5477 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
5478 standard fma patterns.
5479 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
5480 enable for FMA.
5481 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5482 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
5483 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
5484
5485 2010-10-19 Paul Koning <pkoning@equallogic.com>
5486
5487 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
5488 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
5489
5490 2010-10-19 Richard Henderson <rth@redhat.com>
5491
5492 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
5493 (fmadf4, *fmsdf4, *nfmadf4): New.
5494 (fmaxf4, *fmsxf4, *nfmaxf4): New.
5495
5496 2010-10-19 Michael Eager <eager@eagercon.com>
5497
5498 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
5499 Use sjlj unwind info for exceptions.
5500
5501 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
5502
5503 PR fortran/43414
5504 * dwarf2out.c (add_calling_convention_attribute): Flag main
5505 Fortran subroutine with DW_AT_main_subprogram.
5506
5507 2010-10-19 Nick Clifton <nickc@redhat.com>
5508
5509 * config/rx/rx.c (rx_function_value): Small integer types are
5510 promoted to SImode.
5511 (rx_promote_function_mode): New function.
5512 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5513
5514 2010-10-19 Nick Clifton <nickc@redhat.com>
5515
5516 * config/mep/mep.c (mep_print_operand): Use
5517 targetm.strip_name_encoding.
5518 (mep_output_aligned_common): Likewise.
5519
5520 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
5521
5522 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
5523
5524 2010-10-18 Richard Henderson <rth@redhat.com>
5525
5526 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
5527 (fma (neg a) (neg b) c) and (fma a (neg b) c).
5528
5529 2010-10-18 Richard Henderson <rth@redhat.com>
5530
5531 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
5532 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
5533 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
5534 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
5535 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
5536 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
5537 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
5538 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
5539 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
5540 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
5541 (bdesc_multi_arg): Remove the corresponding builtins.
5542 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
5543 (UNSPEC_FMA4_FMSUBADD): Remove.
5544 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
5545 * config/i386/sse.md (FMA4MODEF4): Remove.
5546 (FMAMODE): Add.
5547 (fma<mode>4): New expander.
5548 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
5549 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
5550 (*fma4i_fmsub_<mode>): Similarly.
5551 (*fma4i_fnmadd_<mode>): Similarly.
5552 (*fma4i_fnmsub_<mode>): Similarly.
5553 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
5554 with the first operand.
5555 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
5556 of explicit arithmetic. Macroize with AVXMODEF2P.
5557 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
5558 (xop_frcz<mode>2): Macroize with FMAMODE.
5559 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
5560 the first operand.
5561 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
5562 extra negations.
5563 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
5564 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
5565 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
5566 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
5567 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
5568 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
5569 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
5570 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
5571
5572 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
5573
5574 PR rtl-optimization/45966
5575 * combine.c (try_combine): If added_sets_2, deal with the case
5576 where i0 feeds i1 and i1 feeds i2.
5577
5578 2010-10-18 Jan Hubicka <jh@suse.cz>
5579
5580 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
5581 preserve flags before trying to guess on visibility.
5582 (varpool_externally_visible_p): New function.
5583 (function_and_variable_visibility): Use it.
5584
5585 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5586
5587 Implemented parsing @synthesize and @dynamic for Objective-C.
5588 * c-parser.c (c_parser_external_declaration): Recognize
5589 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5590 (c_parser_objc_at_synthesize_declaration): New.
5591 (c_parser_objc_at_dynamic_declaration): New.
5592
5593 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5594
5595 * c-parser.c (c_parser_objc_class_declaration): After finding an
5596 error, parse the whole declaration then reset parser->error.
5597
5598 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5599
5600 PR target/46041
5601 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
5602 * builtins.c (mode_has_fma): Ditto.
5603
5604 2010-10-18 Steve Ellcey <sje@cup.hp.com>
5605
5606 PR target/36898
5607 PR middle-end/43760
5608 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
5609
5610 2010-10-18 Joseph Myers <joseph@codesourcery.com>
5611
5612 * config/i386/i386.c (ix86_option_override_internal): Define and
5613 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
5614 default.
5615 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5616 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
5617
5618 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5619
5620 Merge from 'apple/trunk' branch on FSF servers.
5621 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
5622 following Objective-C change:
5623
5624 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
5625
5626 Radar 4301047
5627 * c-parse.in (objc_quals): Build objc qualifier list same way
5628 as gcc-3.3
5629
5630 2010-10-18 Jan Hubicka <jh@suse.cz>
5631
5632 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
5633 function_and_variable_visibility): Revert accidental commit.
5634
5635 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5636
5637 Merge from 'apple/trunk' branch on FSF servers.
5638 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
5639 the following Objective-C change:
5640
5641 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
5642
5643 Radar 4204796
5644 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
5645 'volatilized' type used in a typeof operator.
5646
5647 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
5648
5649 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
5650 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
5651 rewrite modelled on gimple_purge_dead_eh_edges.
5652 (gimple_purge_all_dead_abnormal_call_edges): New function.
5653 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
5654 directly instead of through gimple_purge_dead_abnormal_call_edges.
5655 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
5656 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
5657 removed AB side-effects from one of its statements.
5658 (init_pre): Initialize need_ab_cleanup.
5659 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
5660 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
5661
5662 2010-10-18 Jakub Jelinek <jakub@redhat.com>
5663
5664 PR c/46015
5665 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
5666 on computed goto argument.
5667
5668 2010-10-18 Richard Guenther <rguenther@suse.de>
5669
5670 PR tree-optimization/45967
5671 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
5672 (could_have_pointers): Likewise.
5673 (handle_rhs_call, handle_const_call, handle_pure_call,
5674 find_func_aliases, intra_create_variable_infos): Remove calls to them.
5675 (struct fieldoff): Add must_have_pointers field.
5676 (type_must_have_pointers): New function.
5677 (field_must_have_pointers): Likewise.
5678 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
5679 Adjust field merging.
5680 (create_function_info_for): May-have-pointers of varinfo is
5681 almost always true.
5682 (create_variable_info_for_1): Likewise.
5683
5684 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
5685
5686 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
5687 of operands to vec_concat.
5688
5689 2010-10-18 Richard Guenther <rguenther@suse.de>
5690
5691 PR lto/44950
5692 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
5693 also clear references to entries of it.
5694
5695 2010-10-18 Andi Kleen <ak@linux.intel.com>
5696
5697 PR other/43448
5698 * gccbug.in: Remove.
5699 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
5700 (doc, distclean, install-common): Remove reference to gccbug.
5701 * configure: Regenerate.
5702 * configure.ac (all_outputs): Remove gccbug.
5703 * doc/configfiles.texi: Remove references to gccbug.
5704 * doc/sourcebuild.texi: Dito.
5705
5706 2010-10-18 Jakub Jelinek <jakub@redhat.com>
5707
5708 PR middle-end/46019
5709 * fold-const.c (fold_binary_loc): If integer_pow2p has
5710 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
5711
5712 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
5713 Jeremie Salvucci <jeremie.salvucci@free.fr>
5714
5715 * gengtype.c (verbosity_level): Add variable.
5716 (set_gc_used): Count variables for verbosity.
5717 (close_output_files): Backing up files, counting written ones
5718 verbosily.
5719 (write_types): Count emitted functions for verbosity. Added
5720 debug messages.
5721 (write_enum_defn): Count structures for verbosity. Added debug
5722 messages.
5723 (gengtype_long_options): Add "verbose" & "backupdir".
5724 (print_usage): Ditto.
5725 (main): Verbose display of parsed files.
5726
5727 * gengtype.h (verbosity_level): Add declaration.
5728
5729 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
5730
5731 * gengtype.c (parse_program_options): Add allocation of
5732 plugin_files, and correct test on nb_plugin_files.
5733
5734 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5735
5736 Merge from 'apple/trunk' branch on FSF servers.
5737
5738 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5739
5740 Radar 4133425
5741 * c-decl.c (undeclared_variable): Issue diagnostic on
5742 private 'ivar' access.
5743
5744 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
5745
5746 PR target/46051
5747 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
5748 generated sequence to match *avx_vperm2f128<mode>_nozero.
5749 (vec_interleave_lowv4df): Ditto.
5750 (vec_interleave_highv8sf): Ditto.
5751 (vec_interleave_lowv8sf): Ditto.
5752
5753 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
5754
5755 * libgcov.c (create_file_directory): Enable it for win32 case.
5756 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
5757 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
5758 (GCOV_PREFIX_SKIP): Likewise.
5759
5760 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5761
5762 * doc/objc.texi (GNU Objective-C runtime API): New section.
5763 (Modern GNU Objective-C runtime API): New section.
5764 (Traditional GNU Objective-C runtime API): New section.
5765 (Executing code before main): Mention that this section is
5766 specific to the GNU Objective-C runtime.
5767 (Garbage Collection): Same.
5768
5769 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
5770
5771 * c-parser.c (c_parser_for_statement): Move initialization of
5772 cond and incr before if.
5773
5774 2010-10-17 Anatoly Sokolov <aesok@post.ru>
5775
5776 * target.def (preferred_output_reload_class): New hook.
5777 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
5778 * doc/tm.texi: Regenerate.
5779 * targhooks.c (default_preferred_output_reload_class): New function.
5780 * targhooks.h (default_preferred_output_reload_class): Declare.
5781 * reload.c (find_dummy_reload): Change rclass argument type from
5782 enum reg_class to reg_class_t. Change this_alternative array type
5783 from enum reg_class to reg_class_t.
5784 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5785 (push_reload): Change preferred_class variable type to reg_class_t.
5786 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
5787 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
5788 argument type from enum reg_class to reg_class_t. Use
5789 HARD_REGISTER_NUM_P predicate.
5790 * recog.h (reg_fits_class_p): Update prototype.
5791
5792 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5793 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
5794 Remove.
5795 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
5796 static. Change regclass argument and result types from enum reg_class
5797 to reg_class_t.
5798 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5799
5800 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5801
5802 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
5803 visibility enum, and handle @package.
5804
5805 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5806
5807 * doc/objc.texi (What you can and what you cannot do in +load):
5808 Document that sending messages to constant string objects in +load
5809 is not guaranteed to work.
5810
5811 2010-10-16 Jan Hubicka <jh@suse.cz>
5812
5813 PR middle-end/44206
5814 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
5815 existence of refrences before removing the function.
5816
5817 2010-10-16 Jan Hubicka <jh@suse.cz>
5818
5819 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
5820 only_called_at_startup and only_called_at_exit.
5821 (cgraph_propagate_frequency): Compute only_called_at_startup and
5822 only_called_at_exit.
5823 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
5824 only_called_at_exit.
5825 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
5826 flags.
5827 * predict.c (compute_function_frequency): Initialize the new flags.
5828
5829 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
5830
5831 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
5832 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
5833 on the bounds of its domain.
5834 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
5835
5836 2010-10-16 Anatoly Sokolov <aesok@post.ru>
5837
5838 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
5839 * config/avr/avr-protos.h (preferred_reload_class): Remove.
5840 * config/avr/avr.c (preferred_reload_class): Remove.
5841 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
5842 * config/pa/pa.c (emit_move_sequence): Update comment
5843 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
5844 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
5845 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
5846 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
5847 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
5848 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
5849 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
5850 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
5851 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
5852 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
5853 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
5854 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
5855 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
5856
5857 2010-10-16 Joseph Myers <joseph@codesourcery.com>
5858
5859 * opts.c (set_fast_math_flags,
5860 set_unsafe_math_optimizations_flags): Make static.
5861 * toplev.h (set_fast_math_flags,
5862 set_unsafe_math_optimizations_flags): Remove prototypes.
5863
5864 2010-10-16 Joseph Myers <joseph@codesourcery.com>
5865
5866 * config/arm/arm.c (arm_option_optimization): Set
5867 flag_section_anchors to 1 not 2.
5868 * config/i386/i386.c (ix86_option_override_internal): Check
5869 global_options_set.x_flag_zee and
5870 global_options_set.x_flag_omit_frame_pointer.
5871 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
5872 flag_zee to 2.
5873 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5874 global_options_set.x_flag_omit_frame_pointer.
5875 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
5876 opts->x_flag_section_anchors to 1 not 2.
5877 * config/sh/sh.c (sh_option_optimization): Don't set
5878 flag_schedule_insns to 2.
5879 (sh_option_override): Check
5880 global_options_set.x_flag_schedule_insns.
5881 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
5882
5883 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
5884
5885 * configure.ac: Make sure inhibit_libc remains false for mingw targets
5886 as cross.
5887 * configure: Regenerated.
5888
5889 2010-10-15 Xinliang David Li <davidxl@google.com>
5890
5891 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
5892 function.
5893 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
5894 into a recursive function.
5895
5896 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
5897
5898 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
5899 (*movdfcc_1): ditto.
5900
5901 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5902
5903 * target.def (target_option.init_struct): New hook.
5904 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
5905 * doc/tm.texi: Regenerate.
5906 * hooks.c (hook_void_gcc_optionsp): New.
5907 * hooks.h (hook_void_gcc_optionsp): Declare.
5908 * langhooks-def.h (lhd_init_options_struct): Remove.
5909 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
5910 * langhooks.c (lhd_init_options_struct): Remove.
5911 * opts.c (init_options_struct): Also call
5912 targetm.target_option.init_struct.
5913 * config/i386/i386.c (ix86_option_init_struct,
5914 TARGET_OPTION_INIT_STRUCT): New.
5915 (ix86_option_optimization): Move some settings to
5916 ix86_option_init_struct.
5917 * config/pdp11/pdp11.c (pdp11_option_init_struct,
5918 TARGET_OPTION_INIT_STRUCT): New.
5919 (pdp11_option_optimization): Move some settings to
5920 pdp11_option_init_struct.
5921 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
5922 rs6000_option_init_struct. Use options structure pointer.
5923 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5924 * config/s390/s390.c (s390_option_init_struct,
5925 TARGET_OPTION_INIT_STRUCT): New.
5926 (s390_option_optimization): Don't set
5927 flag_asynchronous_unwind_tables here.
5928 * config/sh/sh.c (sh_option_init_struct,
5929 TARGET_OPTION_INIT_STRUCT): New.
5930 (sh_option_optimization): Don't set flag_finite_math_only here.
5931 * config/spu/spu.c (spu_option_optimization): Replace by
5932 spu_option_optimization. Use options structure pointer.
5933 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
5934
5935 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5936
5937 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
5938
5939 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
5940 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
5941 (Standard names): Document fma.
5942
5943 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
5944 __FP_FAST_FMAF, __FP_FAST_FMAL.
5945
5946 * builitns.c (expand_builtin_mathfn_ternary): New function for
5947 expanding ternary math functions, like fma.
5948 (expand_builtin): Call it for the fma builtins.
5949
5950 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
5951 ops at present.
5952
5953 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
5954 vectorizable functions to support vectorizing fma.
5955
5956 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5957 Handle fma builtins.
5958
5959 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
5960 (UNSPEC_VSX_MSUB): Ditto.
5961 (UNSPEC_VSX_NMADD): Ditto.
5962 (UNSPEC_VSX_NMSUB): Ditto.
5963 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
5964 of UNSPEC. Renumber combiner patterns.
5965 (vsx_fmsub<mode>4*): Ditto.
5966 (vsx_fnmadd<mode>4*): Ditto.
5967 (vsx_fnmsub<mode>4*): Ditto.
5968
5969 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
5970 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
5971 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
5972 (altivec_vmaddfp_1): Ditto.
5973 (altivec_vmaddfp_2): Ditto.
5974 (atlivec_mulv4sf3): Ditto.
5975 (altivec_vnmsubfp): Ditto.
5976 (altivec_vnmsubfp_1): Ditto.
5977 (altivec_vnmsubfp_2): Ditto.
5978 (altivec_vnmsubfp_3): Delete.
5979
5980 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
5981 (fmasf4_fpr): Ditto.
5982 (fmssf4_fpr): Ditto.
5983 (fnmasf4_fpr): Ditto.
5984 (fnmssf4_fpr): Ditto.
5985 (fmadf4): Ditto.
5986 (fmadf4_fpr): Ditto.
5987 (fmsdf4_fpr): Ditto.
5988 (fnmadf4_fpr): Ditto.
5989 (fnmsdf4_fpr): Ditto.
5990
5991 * optabs.h (OTI_fma): Add fma optab.
5992 (fma_optab): Ditto.
5993
5994 * genopinit.c (optabs): Set fma optab.
5995
5996 * rtl.def (FMA): Add FMA rtl.
5997
5998 * tree.h (mode_has_fma): New function to return if MODE supports a
5999 fast multiply and add instruction.
6000 * builtins.c (mode_has_fma): Ditto.
6001
6002 2010-10-15 Jan Hubicka <jh@suse.cz>
6003
6004 * lto-streamer-out.c (write_symbol): Use pointer set of seen
6005 objects instead of bitmap.
6006 (produce_symtab): Likewise; output defined symbols first.
6007
6008 2010-10-15 Jie Zhang <jie@codesourcery.com>
6009
6010 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
6011 Option Summary and Index.
6012
6013 2010-10-15 Richard Guenther <rguenther@suse.de>
6014
6015 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
6016 for automatic variables again.
6017
6018 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6019
6020 * doc/extend.texi (Variable Length): Don't refer to VLAs not
6021 conforming to C99.
6022
6023 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6024
6025 * config/rx/rx.c (rx_option_optimization): Change to
6026 rx_override_options_after_change. Don't change
6027 flag_lto_compression_level. Don't check for changes to whether
6028 FPU instructions can be used. Check and set only
6029 flag_finite_math_only, not other fast-math flags.
6030 (rx_option_override): Call rx_override_options_after_change.
6031 (TARGET_OPTION_OPTIMIZATION): Remove.
6032 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6033
6034 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6035
6036 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
6037 disable section anchors for lang_hooks.name[4] != 'O'.
6038
6039 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6040
6041 * config/frv/frv.c (frv_option_optimization,
6042 TARGET_OPTION_OPTIMIZATION): Remove.
6043 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
6044
6045 2010-10-15 Michael Matz <matz@suse.de>
6046
6047 * cgraphunit.c (clone_of_p): Define unconditionally.
6048
6049 2010-10-15 Richard Guenther <rguenther@suse.de>
6050
6051 PR lto/45957
6052 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
6053
6054 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
6055
6056 * ifcvt.c (find_active_insn_before): New function.
6057 (find_active_insn_after): New function.
6058 (cond_exec_process_if_block): Use new functions to replace
6059 prev_active_insn() and next_active_insn().
6060
6061 2010-10-14 Yao Qi <yao@codesourcery.com>
6062
6063 PR target/45447
6064 * config/arm/arm.c (arm_build_builtin_va_list): Assign
6065 va_list_name to TYPE_STUB_DECL (va_list_type).
6066
6067 2010-10-14 Jan Hubicka <jh@suse.cz>
6068
6069 PR middle-end/45621
6070 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
6071 redirected to clone, be happy.
6072 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
6073 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
6074 former_clone_of unconditionally.
6075
6076 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6077
6078 Merge from FSF apple 'trunk' branch.
6079 2006 Fariborz Jahanian <fjahanian@apple.com>
6080
6081 Radars 4436866, 4505126, 4506903, 4517826
6082 * c-parser.c (c_parser, objc_property_attr_context) New flag.
6083 (c_lex_one_token): Handle property attributes.
6084 (c_parser_external_declaration): Handle @property.
6085 (c_parser_declaration_or_fndef): Warn on invalid attributes before
6086 @alias, @class, @end and @property objc keywords.
6087 (c_parser_objc_methodprotolist): Handle @property.
6088 (c_parser_objc_property_attrlist): New.
6089 (c_parser_objc_at_property): New.
6090 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
6091 (build_modify_expr): Likewise.
6092
6093 2010-10-14 Jakub Jelinek <jakub@redhat.com>
6094
6095 PR tree-optimization/46008
6096 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
6097
6098 2010-10-14 Richard Guenther <rguenther@suse.de>
6099
6100 PR tree-optimization/44913
6101 * tree-data-ref.c (disjoint_objects_p): Remove.
6102 (dr_may_alias_p): Simplify. Only hand the base object to
6103 the alias-oracle.
6104 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6105 some more trees, bail out instead of asserting.
6106 (ptr_derefs_may_alias_p): Likewise. Export.
6107 (refs_may_alias_p_1): Handle STRING_CSTs.
6108 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
6109
6110 2010-10-14 Joseph Myers <joseph@codesourcery.com>
6111
6112 PR c/45969
6113 * c-typeck.c (build_binary_op): Don't try to compute a semantic
6114 type with excess precision for boolean operations.
6115
6116 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
6117 Basile Starynkevitch <basile@starynkevitch.net>
6118
6119 * gengtype.c: Include getopt.h and version.h.
6120
6121 (lang_bitmap, struct outf, outf_p)
6122 (get_output_file_with_visibility, oprintf): Definitions moved to
6123 gengtype.h
6124 (output_files, header_file, srcdir, srcdir_len, this_file)
6125 (do_dump): No more static variables.
6126 (do_debug): New.
6127 (dbgprint_count_type_at): Added new function.
6128 (gengtype_long_options): New.
6129 (print_usage, print_version, parse_program_options): New.
6130 (main): Call parse_program_options, and removed old option
6131 handling code. Added some debug output.
6132
6133 * gengtype.h: Updated copyright year.
6134 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
6135 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
6136 Moved from gengtype.c to here.
6137 (do_debug, read_state_filename, write_state_filename): New variables.
6138 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
6139
6140 * Makefile.in:
6141 (REVISION): Always defined.
6142 (version.o): Removed ifdef REVISION_c.
6143 (s-gtype): Pass arguments to build/gengtype program.
6144 (build/version.o): Added building rule.
6145 (build/gengtype$(build_exeext)): Added build/version.o.
6146
6147 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6148
6149 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
6150 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
6151 __strong macros.
6152
6153 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
6154
6155 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
6156 may_trap_or_fault_p instead of may_trap_p predicate.
6157 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
6158 (substitute_placeholder_in_expr): Likewise.
6159 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
6160 flag on MEM_REF nodes.
6161 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
6162 flags on INDIRECT_REF nodes.
6163
6164 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
6165
6166 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
6167 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
6168 (arm*-*-eabi*) <tm_file>: Likewise.
6169 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
6170 (frv-*-*linux*) <tm_file>: Likewise.
6171 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
6172 and associated helper macros.
6173 * config/frv/frv-abi.h: Delete.
6174
6175 2010-10-14 Richard Guenther <rguenther@suse.de>
6176
6177 PR lto/44561
6178 * tree.def (NULLPTR_TYPE): New tree code.
6179 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
6180 * dwarf2out.c (is_base_type): Likewise.
6181 (gen_type_die_with_usage): Likewise.
6182 * sdbout.c (plain_type_1): Likewise.
6183 * tree.c (build_int_cst_wide): Likewise.
6184 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
6185
6186 2010-10-14 Joseph Myers <joseph@codesourcery.com>
6187
6188 * params.c (params_finished): New.
6189 (add_params): Assert !params_finished.
6190 (finish_params): New.
6191 (set_param_value_internal): Take params and params_set
6192 parameters. Assert params_finished.
6193 (set_param_value, maybe_set_param_value): Take params and
6194 params_set parameters. Update calls to set_param_value_internal.
6195 (set_default_param_value): Assert !params_finished. Don't use
6196 set_param_value_internal.
6197 (default_param_value, init_param_values): New.
6198 * params.h (struct param_info): Change value to default_value.
6199 Remove set.
6200 (set_param_value, maybe_set_param_value): Add params and
6201 params_set parameters.
6202 (PARAM_VALUE): Get parameters from global_options.
6203 (PARAM_SET_P): Remove.
6204 (finish_params, default_param_value, init_param_values): New.
6205 * common.opt (param_values): New Variable.
6206 * config/arm/arm.c (arm_option_override): Pass extra arguments to
6207 maybe_set_param_value.
6208 * config/i386/i386.c (ix86_option_override_internal): Pass extra
6209 arguments to maybe_set_param_value.
6210 * config/picochip/picochip.c (picochip_option_override): Pass
6211 extra arguments to maybe_set_param_value.
6212 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
6213 extra arguments to maybe_set_param_value.
6214 * config/s390/s390.c (s390_option_override): Use
6215 maybe_set_param_value instead of set_param_value. Pass extra
6216 arguments to maybe_set_param_value.
6217 * config/sparc/sparc.c (sparc_option_override): Pass extra
6218 arguments to maybe_set_param_value.
6219 * config/spu/spu.c (spu_option_override): Pass extra arguments to
6220 maybe_set_param_value.
6221 * opts.c (handle_param): Take opts and opts_set parameters.
6222 Update call to set_param_value.
6223 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
6224 initial_loop_invariant_max_bbs_in_loop): Remove.
6225 (init_options_once): Don't set them.
6226 (init_options_struct): Initialize parameters structures.
6227 (default_options_optimization): Use default_param_value when
6228 restoring defaults. Update calls to maybe_set_param_value.
6229 (finish_options): Update calls to maybe_set_param_value.
6230 (common_handle_option): Update calls to handle_param and
6231 set_param_value.
6232 * toplev.c (DEFPARAM): Update definition for changes to param_info.
6233 (general_init): Call finish_params.
6234
6235 2010-10-14 Nick Clifton <nickc@redhat.com>
6236
6237 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
6238 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
6239 (FIRST_PSEUDO_REGISTER): Increase by one.
6240 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
6241 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
6242 (MODES_TIEABLE): Call mn10300_modes_tieable.
6243 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
6244 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
6245 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
6246 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
6247 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
6248 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6249 (mn10300_cc_status_mdep): Delete.
6250 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
6251 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
6252 the combine-stack-adjust pass.
6253 (print_operand): Use the mode of the comparison operation to
6254 select the comparison suffix.
6255 (notice_update_cc): Delete.
6256 (mn10300_secondary_reload_class): Remove test for stack pointer
6257 based arithmetic.
6258 (output_tst): Rename to mn10300_output_cmp.
6259 (impossible_plus_operand): Move into predicates.md.
6260 (mn10300_legitimize_address): Make static.
6261 (mn10300_legitimate_address_p): Make static. Only allow SI sized
6262 constant pic operands.
6263 (mn10300_legitimate_constant_p): New function.
6264 (mn10300_case_values_threshold): Make static.
6265 (mn10300_hard_regno_mode_ok): New function.
6266 (mn10300_modes_tieable): New function.
6267 (mn10300_select_cc_mode): New function.
6268 * config/mn10300/predicates.md (impossible_plus_operand): Define.
6269 * config/mn10300/mn10300-protos.h: Tidy.
6270 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
6271 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
6272 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
6273 with clobbers or sets of CC_REG.
6274 (CC_REG): Define.
6275 (mov*): Remove use of CLR instruction.
6276 (cbranch_si4_<code>): New pattern/split.
6277 (integer_conditional_branch): New pattern.
6278 (cbranch_sf4_<code>): New pattern/split.
6279 (float_conditional_branch): New pattern.
6280 (casesi): Use addsi3 pattern instead of movsi pattern to add and
6281 move a value at the same time.
6282 (cc0 peepholes): Remove.
6283
6284 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6285
6286 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
6287 on RTX_FRAME_RELATED_P insns and the insn to which
6288 NOTE_INSN_EPILOGUE_BEG is attached.
6289 * sched-vis.c (print_value): Allow NULL value.
6290
6291 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6292
6293 PR rtl-optimization/45570
6294 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
6295 assert that we are pipelining outer loops. Allow returning
6296 zero predecessors.
6297
6298 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6299
6300 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
6301 (tidy_control_flow): Tidy vertical space.
6302 (sel_remove_bb): New variable idx. Use it to remember the basic
6303 block index before deleting the block.
6304 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
6305 (sel_merge_blocks): ... here.
6306 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
6307
6308 2010-10-14 Jakub Jelinek <jakub@redhat.com>
6309
6310 * cse.c (is_dead_reg): Change into inline function that is not
6311 called through for_each_rtx.
6312 (set_live_p): Adjust caller.
6313 (insn_live_p): Don't reset DEBUG_INSNs here.
6314 (struct dead_debug_insn_data): New data.
6315 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
6316 (delete_trivially_dead_insns): If there is just one setter for the
6317 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
6318 and add DEBUG_INSN for it right before the removed setter and
6319 use the DEBUG_EXPR instead of the dead pseudo.
6320
6321 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
6322
6323 * et-forest.c (et_nca): Return NULL immediately when
6324 the dominance forest has disjoint components.
6325
6326 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
6327
6328 * ira.c (setup_class_hard_regs): Fix typo in indexing
6329 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
6330
6331 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
6332
6333 * graph.c (inbb): New variable.
6334 (start_bb): Set inbb to 1 if output is inside of a building block.
6335 (end_bb): Check if output is inside of a building block.
6336
6337 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
6338
6339 PR rtl-optimization/45912
6340 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
6341 regno of registers instead of their index to compute the alignment.
6342
6343 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
6344
6345 * config/i386/i386.c (ix86_build_const_vector): Check vector
6346 mode instead of scalar mode.
6347 (ix86_build_signbit_mask): Likewise.
6348 (ix86_expand_fp_absneg_operator): Updated.
6349 (ix86_expand_copysign): Likewise.
6350 (ix86_expand_int_vcond): Likewise.
6351 (ix86_emit_swdivsf): Likewise.
6352 (ix86_sse_copysign_to_positive): Likewise.
6353 (ix86_expand_sse_fabs): Likewise.
6354 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
6355 * config/i386/sse.md (copysign<mode>3): Likewise.
6356 (sse2_cvtudq2ps): Likewise.
6357 (vec_unpacku_float_hi_v4si): Likewise.
6358 (vec_unpacku_float_lo_v4si): Likewise.
6359
6360 * config/i386/i386.c (ix86_builtins): Add
6361 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
6362 (bdesc_args): Likewise.
6363 (ix86_builtin_vectorized_function): Support
6364 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
6365 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
6366 and IX86_BUILTIN_CVTPS2DQ256.
6367 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
6368
6369 * config/i386/sse.md (STORENT_MODE): New.
6370 (VEC_FLOAT_MODE): Likewise.
6371 (VEC_EXTRACT_MODE): Likewise.
6372 (*avx_cvtdq2pd256_2): Likewise.
6373 (vec_pack_trunc_v4df): Likewise.
6374 (vec_interleave_highv8sf): Likewise.
6375 (vec_interleave_lowv8sf): Likewise.
6376 (storent<mode>): Macroized.
6377 (<code><mode>2: absneg): Likewise.
6378 (copysign<mode>3): Likewise.
6379 (vec_extract<mode>): Likewise.
6380
6381 PR target/44180
6382 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
6383 for V8SFmode.
6384
6385 2010-10-13 Richard Guenther <rguenther@suse.de>
6386 H.J. Lu <hongjiu.lu@intel.com>
6387
6388 * config/i386/sse.md (reduc_splus_v8sf): Add.
6389 (reduc_splus_v4df): Likewise.
6390 (vec_unpacks_hi_v8sf): Likewise.
6391 (vec_unpacks_lo_v8sf): Likewise.
6392 (*avx_cvtps2pd256_2): Likewise.
6393 (vec_unpacks_float_hi_v8si): Likewise.
6394 (vec_unpacks_float_lo_v8si): Likewise.
6395 (vec_interleave_highv4df): Likewise.
6396 (vec_interleave_lowv4df): Likewise.
6397
6398 2010-10-13 Richard Guenther <rguenther@suse.de>
6399
6400 PR objc/45878
6401 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
6402 alone if there are no virtual methods.
6403
6404 2010-10-13 Richard Henderson <rth@redhat.com>
6405
6406 * expr.c (build_personality_function): Take parameter LANG instead
6407 of parameter NAME. Build the name based on the lang prefix and the
6408 unwind method in use.
6409 * tree.c (lhd_gcc_personality): Update call to
6410 build_personality_function.
6411
6412 2010-10-13 Richard Guenther <rguenther@suse.de>
6413
6414 PR objc/45878
6415 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
6416
6417 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
6418
6419 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
6420 Canonicalize input operands of ASM_OPERANDS insns.
6421
6422 2010-10-13 Richard Guenther <rguenther@suse.de>
6423
6424 PR tree-optimization/45788
6425 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
6426 EH update until fixup-cfg.
6427
6428 2010-10-13 Julian Brown <julian@codesourcery.com>
6429
6430 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
6431 from CORE_REGS and GENERAL_REGS classes.
6432 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
6433 final constraint for register preferencing.
6434
6435 2010-10-13 Richard Guenther <rguenther@suse.de>
6436
6437 PR tree-optimization/45970
6438 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
6439 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
6440 (stmt_kills_ref_p): Likewise.
6441 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
6442
6443 2010-10-13 Richard Guenther <rguenther@suse.de>
6444
6445 PR tree-optimization/45982
6446 * tree-ssa-structalias.c (make_constraints_to): New function.
6447 (make_constraint_to): Implement in terms of make_constraints_to.
6448 (find_func_aliases): Properly make return values of pure/const
6449 functions escape if they assign to sth that is not a pointer.
6450
6451 2010-10-13 Richard Guenther <rguenther@suse.de>
6452
6453 PR middle-end/45874
6454 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6455 Fixup the CFG when EH was fixed up.
6456
6457 2010-10-13 Ira Rosen <irar@il.ibm.com>
6458
6459 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
6460 Use operand's type for POINTER_PLUS_EXPR.
6461
6462 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
6463
6464 * c-parser.c (c_parser_for_statement): Initialize incr.
6465
6466 2010-10-12 Xinliang David Li <davidxl@google.com>
6467
6468 PR tree-optimization/45972
6469 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
6470 with too many arguments.
6471
6472 2010-10-12 Jakub Jelinek <jakub@redhat.com>
6473
6474 PR fortran/45636
6475 * tree-ssa-forwprop.c: Include expr.h.
6476 (constant_pointer_difference, simplify_builtin_call): New functions.
6477 (tree_ssa_forward_propagate_single_use_vars): Call
6478 simplify_builtin_call on builtin calls.
6479
6480 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
6481
6482 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
6483 (*adddi3_extend_sp32): Likewise.
6484 (*subdi3_insn_sp32): Likewise.
6485 (*subdi3_extend_sp32): Likewise.
6486 (*negdi2_sp32): Use negative test for consistency.
6487
6488 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
6489
6490 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
6491 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6492 * config/fixed-bit.h: Likewise.
6493 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6494 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
6495 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
6496 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
6497 (DF_SIZE): Likewise.
6498 * doc/tm.texi: Regenerate.
6499
6500 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
6501
6502 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
6503 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
6504 (*isel_reversed_unsigned_<mode>): New.
6505 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
6506 as valid comparisons and adjust operands and output appropriately.
6507 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
6508
6509 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
6510
6511 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
6512 DATA_ALIGNMENT and add COND parameter. Update comments above.
6513 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
6514 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
6515
6516 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
6517
6518 PR bootstrap/45958
6519 * exec-tool.in: Support '-plugin' as the second option to the linker.
6520
6521 2010-10-12 Richard Henderson <rth@redhat.com>
6522
6523 PR middle-end/45962
6524 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
6525 (expand_stack_vars): Assert large base allocated when used.
6526
6527 2010-10-12 Richard Guenther <rguenther@suse.de>
6528
6529 * tree-ssa-structalias.c (get_constraint_for_1): Constants
6530 only point to nonlocal, not anything.
6531
6532 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6533
6534 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
6535 unwind info for exceptions.
6536
6537 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6538
6539 PR testsuite/45851
6540 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
6541 Document optional target selector.
6542
6543 2010-10-12 Joseph Myers <joseph@codesourcery.com>
6544
6545 * flag-types.h: New.
6546 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
6547 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
6548 options.h.
6549 (OPTIONS_H): Define.
6550 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
6551 of options.h.
6552 * configure.ac (tm_include_list): Include options.h not flags.h.
6553 * configure: Regenerate.
6554 * flags.h: Include flag-types.h. Include options.h at top of file
6555 again.
6556 (enum debug_info_type, enum debug_info_level, enum
6557 debug_info_usage, enum symbol_visibility, struct visibility_flags,
6558 enum ira_algorithm, enum ira_region, enum excess_precision, enum
6559 graph_dump_types, enum stack_check_type,
6560 enum warn_strict_overflow_code): Move to flag-types.h
6561 * opth-gen.awk: Include flag-types.h in options.h.
6562
6563 2010-10-12 Jakub Jelinek <jakub@redhat.com>
6564
6565 * expr.c (store_expr): Share code for STRING_CST and
6566 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
6567 check if target is a MEM.
6568
6569 * rtl.h: Include hashtab.h.
6570 (iterative_hash_rtx): New prototype.
6571 * rtl.c (iterative_hash_rtx): New function.
6572 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
6573 (output_loc_list): Return immediately if emitted is set, set it.
6574 (hash_loc_operands, hash_locs, hash_loc_list,
6575 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
6576 optimize_location_lists_1, optimize_location_lists): New function.
6577 (dwarf2out_finish): Call optimize_location_lists.
6578 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
6579
6580 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6581
6582 PR testsuite/45974
6583 Revert:
6584 * Makefile.in ($(lang_checks_parallel))
6585 ($(lang_checks_parallelized)): Use single quotes for
6586 $(RUNTESTFLAGS), to allow passing quoted content.
6587
6588 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6589
6590 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
6591 actual_oldval. Use __builtin_expect.
6592 (SUBWORD_VAL_CAS): Likewise.
6593
6594 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
6595
6596 * recog.c (nonmemory_operand): Call immediate_operand for
6597 CONSTANT_P operands.
6598
6599 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
6600
6601 * config/i386/i386.md (movmem<mode>): Macroize expander from
6602 movmem{si,di} using SWI48 mode iterator.
6603 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
6604 *strmovsi_rex_1 using P mode iterator.
6605 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
6606 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
6607 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
6608 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
6609 (setmem<mode>): Macroize expander from setmem{si,di} using
6610 SWI48 mode iterator.
6611 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
6612 *strsetsi_rex_1 using P mode iterator.
6613 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
6614 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
6615 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
6616 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
6617 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
6618 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
6619 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
6620 mode iterator.
6621 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
6622 *strlenqi_rex_1 using P mode iterator.
6623
6624 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
6625
6626 PR bootstrap/45445
6627 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
6628 static functions.
6629 (mark_ref_live, mark_ref_dead): Use them.
6630 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
6631 Save the original reg, and use the new functions.
6632 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
6633 changed.
6634 (check_and_make_def_conflict): Save the original reg.
6635
6636 2010-10-11 Martin Jambor <mjambor@suse.cz>
6637
6638 PR middle-end/45699
6639 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
6640 thunks.
6641
6642 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6643
6644 * Makefile.in ($(lang_checks_parallel))
6645 ($(lang_checks_parallelized)): Use single quotes for
6646 $(RUNTESTFLAGS), to allow passing quoted content.
6647
6648 PR bootstrap/35855
6649 * opt-functions.awk (BEGIN): New section.
6650 (lower, upper, digit, alnum): New variables.
6651 (static_var, opt_sanitized_name): Use alnum instead of character
6652 classes, for non-C locale.
6653 * optc-gen.awk: Likewise.
6654 * opth-gen.awk: Likewise.
6655
6656 2010-10-11 Anatoly Sokolov <aesok@post.ru>
6657
6658 * target.def (preferred_reload_class): New hook.
6659 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
6660 * doc/tm.texi: Regenerate.
6661 * targhooks.c (default_preferred_reload_class): New function.
6662 * targhooks.h (default_preferred_reload_class): Declare.
6663 * reload.c (find_dummy_reload): Change preferred_class variable type
6664 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
6665 target hook.
6666 (find_reloads): Change goal_alternative array type from int to
6667 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
6668 (push_reload, find_reloads_address_part): Use
6669 TARGET_PREFERRED_RELOAD_CLASS target hook.
6670 * reload1.c (emit_input_reload_insns): Ditto.
6671 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
6672 hook. Change rclass argument and secondary_class variable types from
6673 'enum reg_class' to reg_class_t.
6674
6675 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
6676 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
6677 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
6678 Change regclass argument and result types from enum reg_class to
6679 reg_class_t.
6680 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6681
6682 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
6683
6684 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
6685 in masking operations.
6686 (simplify_const_unary_operation): Likewise.
6687 (simplify_binary_operation_1): Likewise.
6688 (simplify_const_binary_operation): Likewise.
6689 (simplify_const_relational_operation): Likewise.
6690 (simplify_ternary_operation): Likewise.
6691 (simplify_immed_subreg): Likewise.
6692
6693 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6694
6695 PR middle-end/45862
6696 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
6697 (TARGET_SUPPORTS_WEAK): New.
6698 * doc/tm.texi: Regenerate.
6699 * defaults.h (SUPPORTS_WEAK): Update comment.
6700 (TARGET_SUPPORTS_WEAK): New.
6701 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
6702 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
6703 SUPPORTS_WEAK.
6704 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
6705 make_decl_one_only): Likewise.
6706 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
6707 TARGET_SUPPORTS_WEAK.
6708 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
6709 instead of SUPPORTS_WEAK.
6710
6711 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712
6713 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
6714
6715 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
6716
6717 * vec.h (VEC_qsort): Define.
6718 * dbxout.c (output_used_types): Use it.
6719 * df-scan.c (df_sort_and_compress_refs): Likewise.
6720 (df_sort_and_compress_mws): Likewise.
6721 * genautomata.c (uniq_sort_alt_states): Likewise.
6722 (evaluate_equiv_classes): Likewise.
6723 (output_trans_table): Likewise.
6724 (output_state): Likewise.
6725 * gimplify.c (compare_case_labels): Likewise.
6726 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
6727 * ipa.c (build_cdtor_fns): Likewise.
6728 * lto.c (lto_wpa_write_files): Likewise.
6729 * sel-sched.c (fill_vec_av_set): Likewise.
6730 * tree-predcom.c (determine_roots_comp): Likewise.
6731 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
6732 (splice_param_accesses): Likewise.
6733 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
6734 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6735 (reassociate_bb): Likewise.
6736 * tree-ssa-sccvn.c (sort_scc): Likewise.
6737 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
6738
6739 2010-10-11 Ian Lance Taylor <iant@google.com>
6740
6741 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
6742 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
6743 TREE_THIS_NOTRAP when appropriate.
6744 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
6745 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
6746 newly created MEM_REF.
6747
6748 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6749
6750 Nathan Froyds patch to hooks FUNCTION_ARG etc.
6751 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
6752 (picochip_incoming_function_arg): Delete.
6753 (picochip_arg_advance): Delete.
6754 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
6755 (FUNCTION_INCOMING_ARG): Delete.
6756 (FUNCTION_ARG_ADVANCE): Delete.
6757 * config/picochip/picochip.c (picochip_function_arg): Take a
6758 const_tree and a bool.
6759 (picochip_incoming_function_arg): Likewise.
6760 (picochip_arg_advance): Likewise.
6761 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6762 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6763
6764 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6765
6766 PR middle-end/45955
6767 * ipa.c (build_cdtor): Delete endless loop.
6768
6769 2010-10-07 Andi Kleen <ak@linux.intel.com>
6770
6771 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
6772 checksum-options.
6773 (checksum-options): Add.
6774 (cc1-dummy): Remove.
6775 (cc1-checksum): Change to run checksum over object files
6776 and options only.
6777 * dummy-checksum.c: Remove.
6778 * genchecksum.c: Update copyright.
6779 (usage): Allow multiple arguments.
6780 (BLOCKSIZE): Add.
6781 (dosum): Change for incremental checksum. Remove C output.
6782 (main): Iterate over all argument files. Add C output.
6783
6784 2010-10-11 Joseph Myers <joseph@codesourcery.com>
6785
6786 * params.c (set_param_value_internal): New.
6787 (set_param_value): Use set_param_value_internal.
6788 (maybe_set_param_value, set_default_param_value): New.
6789 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
6790 (maybe_set_param_value, set_default_param_value): Declare.
6791 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
6792 * config/i386/i386.c (ix86_option_override_internal): Use
6793 maybe_set_param_value.
6794 * config/ia64/ia64.c (ia64_option_default_params,
6795 TARGET_OPTION_DEFAULT_PARAMS): New.
6796 (ia64_option_optimization): Move some code to
6797 ia64_option_default_params.
6798 * config/picochip/picochip.c (picochip_option_override): Use
6799 maybe_set_param_value.
6800 * config/rs6000/rs6000.c (rs6000_option_default_params,
6801 TARGET_OPTION_DEFAULT_PARAMS): New.
6802 (rs6000_option_override_internal): Use maybe_set_param_value.
6803 (rs6000_option_optimization): Move some code to
6804 rs6000_option_default_params.
6805 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
6806 * config/sh/sh.c (sh_option_default_params,
6807 TARGET_OPTION_DEFAULT_PARAMS): New.
6808 (sh_option_optimization): Move some code to sh_option_default_params.
6809 * config/sparc/sparc.c (sparc_option_override): Use
6810 maybe_set_param_value.
6811 * config/spu/spu.c (spu_option_default_params,
6812 TARGET_OPTION_DEFAULT_PARAMS): New.
6813 (spu_option_optimization): Move some code to spu_option_default_params.
6814 (spu_option_override): Use maybe_set_param_value.
6815 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
6816 * doc/tm.texi: Regenerate.
6817 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
6818 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
6819 compiler_params.
6820 (default_options_optimization): Use maybe_set_param_value.
6821 (finish_options): Use maybe_set_param_value.
6822 * target.def (target_option.default_params): New hook.
6823 * toplev.c (general_init): Call targetm.target_option.default_params.
6824
6825 2010-10-11 Ira Rosen <irar@il.ibm.com>
6826
6827 PR tree-optimization/45902
6828 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
6829 vector type for constants, unless it's a pointer.
6830
6831 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6832
6833 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
6834
6835 2010-10-11 Jakub Jelinek <jakub@redhat.com>
6836
6837 PR target/45870
6838 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
6839 (ix86_delegitimize_address): Use it.
6840
6841 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
6842
6843 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
6844
6845 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
6846
6847 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
6848 to cum struct in the call to function_arg_advance.
6849 (alpha_function_arg_advance): Mark named as unused.
6850
6851 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
6852
6853 * config/mips/mips.c (mips_handle_option): Make "value" with
6854 ATTRIBUTE_UNUSED.
6855
6856 2010-10-09 Richard Henderson <rth@redhat.com>
6857
6858 PR rtl-opt/33721
6859 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
6860 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
6861 required_align, tidy the code a bit. Emit split_stack code in the
6862 right place. Mark the return value with the alignment properly.
6863 * expr.h (allocate_dynamic_stack_space): Update decl.
6864 * builtins.c (expand_builtin_apply): Update call to
6865 allocate_dynamic_stack_space.
6866 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
6867 * calls.c (initialize_argument_information): Update call to
6868 allocate_dynamic_stack_space.
6869 (expand_call): Likewise.
6870
6871 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
6872 Don't update_stack_alignment here.
6873 (alloc_stack_frame_space): Make ALIGN unsigned.
6874 (stack_var_cmp): Sort by alignment too.
6875 (partition_stack_vars): Don't merge large and small alignment vars.
6876 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
6877 Take care when BASE is not virtual_stack_vars_rtx.
6878 (expand_stack_vars): Allocate dynamic stack space for large
6879 alignment variables.
6880 (expand_one_stack_var): Update all to expand_one_stack_var_at.
6881 (defer_stack_allocation): True for large alignment vars.
6882 (update_stack_alignment): Merge into ...
6883 (expand_one_var): ... here.
6884 (gimple_expand_cfg): Place code from expand_stack_vars.
6885
6886 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6887
6888 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6889 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
6890 (pdp11_function_arg_advance): New function.
6891 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6892
6893 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6894
6895 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
6896 * libgcc2.c: Likewise.
6897
6898 2010-10-09 Richard Guenther <rguenther@suse.de>
6899
6900 PR lto/45956
6901 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
6902 Properly check if a decl is an automatic var.
6903
6904 2010-10-09 Richard Guenther <rguenther@suse.de>
6905
6906 PR lto/45947
6907 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
6908
6909 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6910
6911 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
6912 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6913 * config/mmix/mmix.c (mmix_function_arg): Rename to...
6914 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
6915 bool arguments.
6916 (mmix_function_arg): New function.
6917 (mmix_function_incoming_arg): New function.
6918 (mmix_function_arg_advance): New function.
6919 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6920 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6921
6922 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6923
6924 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6925 * config/vax/vax.c (vax_function_arg): New function.
6926 (vax_function_arg_advance): New function.
6927 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6928
6929 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6930
6931 * config/pa/pa-protos.h (function_arg): Delete.
6932 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6933 * config/pa/pa.c (function_arg): Rename to...
6934 (pa_function_arg): ...this. Make static. Take a const_tree and
6935 a bool.
6936 (pa_function_arg_advance): New function.
6937 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6938
6939 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6940
6941 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6942 * config/m68k/m68k.c (m68k_function_arg): New function.
6943 (m68k_function_arg_advance): New function.
6944 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6945
6946 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6947
6948 * config/avr/avr-protos.h (function_arg): Delete.
6949 (function_arg_advance): Delete.
6950 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6951 * config/avr/avr.c (function_arg): Rename to...
6952 (avr_function_arg): ...this. Make static. Take a const_tree and
6953 a bool.
6954 (function_arg_advance): Rename to...
6955 (avr_function_arg_advance): ...this. Make static. Take a
6956 const_tree and a bool.
6957 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6958
6959 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6960
6961 * config/alpha/alpha-protos.h (function_arg): Delete.
6962 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6963 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
6964 * config/alpha/alpha.c (function_arg): Rename to...
6965 (alpha_function_arg): ...this. Make static. Take a const_tree and
6966 a bool. Delete TARGET_ABI_UNICOSMK code.
6967 (alpha_function_arg_advance): New function.
6968 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6969
6970 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6971
6972 * config/mep/mep-protos.h (mep_function_arg): Delete.
6973 (mep_function_arg_advance): Delete.
6974 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6975 * config/mep/mep.c (mep_function_arg): Make static. Take a
6976 const_tree and a bool.
6977 (mep_function_arg_advance): Likewise.
6978 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6979
6980 2010-10-09 Richard Guenther <rguenther@suse.de>
6981
6982 PR tree-optimization/45945
6983 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
6984
6985 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
6986
6987 PR tree-optimization/45612
6988 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
6989 Test LABEL_DECLs as well. Fix formatting issues.
6990 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
6991 whose label is present in NON_SSA_VARS.
6992 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
6993 as well. Fix formatting issues.
6994 (visit_bb): Fix typos and formatting issue.
6995
6996 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6997
6998 PR tree-optimization/45950
6999 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
7000 before initializing vno->op.
7001
7002 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
7003
7004 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
7005 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
7006
7007 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
7008
7009 PR target/45913
7010 * config/i386/i386.c (ix86_binary_operator_ok): Support
7011 "andhi/andsi/anddi" as a zero-extending move.
7012
7013 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7014
7015 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
7016 into a temporary array.
7017
7018 2010-10-08 Jakub Jelinek <jakub@redhat.com>
7019
7020 PR tree-optimization/45903
7021 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
7022 of {A,L}SHIFTRT of MEM.
7023
7024 2010-10-08 Richard Guenther <rguenther@suse.de>
7025
7026 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7027 Re-construct BLOCK_VARS.
7028 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
7029 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7030 * tree.c (free_lang_data_in_block): Remove.
7031 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
7032 Do not touch the BLOCK tree.
7033 * expr.c (expand_expr_real_1): Allow externals.
7034
7035 2010-10-08 Richard Guenther <rguenther@suse.de>
7036
7037 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
7038 Do not output BLOCK_SUBBLOCKS.
7039 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
7040 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
7041 Re-construct BLOCK_SUBBLOCKS of parent block.
7042 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
7043 for BINFO_BASE_ACCESSES.
7044
7045 2010-10-08 Joseph Myers <joseph@codesourcery.com>
7046
7047 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
7048 (TREE_H): Include $(FLAGS_H) instead of options.h.
7049 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
7050 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7051 * common.opt (flag_complex_method, flag_evaluation_order,
7052 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
7053 Variable declarations.
7054 * configure.ac (tm_include_list): Include flags.h instead of options.h.
7055 * configure: Regenerate.
7056 * flags.h: Condition out contents for target libraries. Include
7057 options.h at end of file.
7058 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
7059 flag_evaluation_order, flag_warn_unused_result): Remove.
7060 * gcc.c (main): Intialize global_options with global_options_init.
7061 * langhooks-def.h (lhd_init_options_struct): Declare.
7062 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7063 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
7064 * langhooks.c (lhd_init_options_struct): New.
7065 * langhooks.h (struct lang_hooks): Add init_options_struct.
7066 Update comment on init_options.
7067 * optc-gen.awk: Generate initializer for global_options_init, not
7068 global_options.
7069 * opth-gen.awk: Condition out structure declarations for target
7070 libraries. Declare global_options_init.
7071 * opts-common.c: Include flags.h instead of options.h.
7072 * opts.c (flag_warn_unused_result): Remove.
7073 (read_cmdline_options): Take gcc_options parameters. Pass them to
7074 read_cmdline_option.
7075 (initial_lang_mask, initial_min_crossjump_insns,
7076 initial_max_fields_for_field_sensitive,
7077 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
7078 (init_options_once): New. Split out of decode_options.
7079 (init_options_struct): New. Split out of decode_options.
7080 (decode_cmdline_options_to_array_default_mask): New.
7081 (default_options_optimization): New. Split out of decode_options.
7082 (decode_options): Move most code to other functions. Update call
7083 to read_cmdline_options.
7084 (finish_options): New. Split out of decode_options.
7085 * opts.h (decode_options): Add gcc_options parameters.
7086 (init_options_once, init_options_struct,
7087 decode_cmdline_options_to_array_default_mask): New.
7088 * toplev.c (flag_complex_method, flag_ira_algorithm,
7089 flag_ira_region, flag_evaluation_order): Remove.
7090 (general_init): Use global_options_init for initial flag values
7091 for global_dc.
7092 (toplev_main): Call init_options_once, init_options_struct,
7093 lang_hooks.init_options_struct,
7094 decode_cmdline_options_to_array_default_mask and
7095 lang_hooks.init_option before decode_options. Update arguments to
7096 decode_options.
7097 * tree.h: Include flags.h instead of options.h.
7098
7099 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7100
7101 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7102
7103 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7104
7105 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
7106 Delete.
7107 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7108 (FUNCTION_INCOMING_ARG): Delete.
7109 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
7110 (function_arg_slotno): Likewise. Take bool arguments.
7111 (sparc_arg_partial_bytes): Update call to it.
7112 (function_arg): Rename to...
7113 (sparc_function_arg_1): ...this. Take bool arguments.
7114 (sparc_function_arg, sparc_function_incoming_arg): New functions.
7115 (function_arg_advance): Rename to...
7116 (sparc_function_arg_advance): ...this. Take bool argument.
7117 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
7118 (TARGET_FUNCTION_INCOMING_ARG): Define.
7119
7120 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7121
7122 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
7123 Delete.
7124 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7125 * config/bfin/bfin.c (function_arg_advance): Rename to...
7126 (bfin_function_arg_advance): ...this. Make static. Take const_tree
7127 and bool arguments.
7128 (function_arg): Rename to...
7129 (bfin_function_arg): ...this. Make static. Take const_tree and bool
7130 arguments.
7131 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7132
7133 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7134
7135 * config/score/score-protos.h (score_function_arg): Delete.
7136 (score_function_arg_advance): Delete.
7137 * config/score/score3.h (score3_function_arg_advance): Take a
7138 const_tree and a bool.
7139 (score3_function_arg): Likewise.
7140 * config/score/score7.h (score7_function_arg_advance): Likewise.
7141 (score7_function_arg): Likewise.
7142 * config/score/score3.c (score3_classify_arg): Likewise.
7143 (score3_function_arg_advance, score3_function_arg): Likewise.
7144 * config/score/score7.c (score7_classify_arg): Likewise.
7145 (score7_function_arg_advance, score7_function_arg): Likewise.
7146 * config/score/score.c (score_function_arg_advance): Likewise.
7147 (score_function_arg): Likewise. De-const-ify `cum' argument.
7148 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7149
7150 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7151
7152 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
7153 (s390_function_arg): Delete.
7154 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7155 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
7156 (s390_function_arg_integer): Likewise.
7157 (s390_function_arg_advance): Make static. Take a const_tree and
7158 a bool.
7159 (s390_function_arg): Likewise.
7160 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7161
7162 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7163
7164 * config/spu/spu-protos.h (spu_function_arg): Delete.
7165 * config/spu/spu.h (FUNCTION_ARG): Delete.
7166 (FUNCTION_ARG_ADVANCE): Move code to ...
7167 * config/spu/spu.c (spu_function_arg_advance): New function.
7168 (spu_function_arg): Make static. Take a const_tree and a bool.
7169 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
7170 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7171
7172 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7173
7174 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7175
7176 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7177
7178 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
7179 (init_vn_nary_op_from_op): New function.
7180 (init_vn_nary_op_from_stmt): New function.
7181 (vn_nary_op_lookup_1): New function.
7182 (sizeof_vn_nary_op): New function.
7183 (alloc_vn_nary_op_noinit): New function.
7184 (alloc_vn_nary_op): New function.
7185 (vn_nary_op_insert_into): New function.
7186 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
7187 (vn_nary_op_lookup): Likewise.
7188 (vn_nary_op_lookup_stmt): Likewise.
7189 (vn_nary_op_insert_pieces): Likewise.
7190 (vn_nary_op_insert): Likewise.
7191 (vn_nary_op_insert_stmt): Likewise.
7192 (copy_nary): Likewise.
7193 (set_value_id_for_result): New function.
7194 (set_hashtable_value_ids): Call it.
7195
7196 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7197
7198 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7199 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
7200
7201 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7202
7203 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
7204 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7205
7206 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7207
7208 PR debug/45656
7209 * cse.c (cse_extended_basic_block): Preserve cc0 info across
7210 debug isnsn. Skip them when searching for cc0 setter.
7211 (set_live_p): Skip debug insns when searching for cc0 user.
7212
7213 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7214
7215 PR debug/45673
7216 PR debug/45604
7217 PR debug/45419
7218 PR debug/45408
7219 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
7220 type of MEM_REFs to INTEGER_CSTs.
7221
7222 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7223
7224 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
7225 m68hc11_print_operand_address.
7226
7227 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7228
7229 * builtins.c (rewrite_call_expr): Move code to...
7230 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
7231 (rewrite_call_expr_array): New function.
7232 (fold_builtin_sprintf_chk_1): New function.
7233 (fold_builtin_sprintf_chk): Call it.
7234 (gimple_fold_builtin_sprintf_chk): Likewise.
7235 (fold_builtin_snprintf_chk_1): New function.
7236 (fold_builtin_snprintf_chk): Call it.
7237 (gimple_fold_builtin_snprintf_chk): Likewise.
7238 (gimple_rewrite_call_expr): Delete.
7239
7240 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7241
7242 * config.host: Update copyright year.
7243
7244 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7245
7246 * config.host (host_lto_plugin_soname): New shell variable.
7247 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
7248 * config.in: Regenerate.
7249 * configure: Regenerate.
7250 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
7251 LTO plugin shared library.
7252
7253 2010-10-07 Richard Henderson <rth@redhat.com>
7254
7255 * target.h (enum unwind_info_type): Move ...
7256 * coretypes.h: ... here.
7257
7258 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
7259
7260 * doc/objc.texi (Fast enumeration protocol): Mention that
7261 'unsigned int' can also be used instead of 'unsigned long' in
7262 countByEnumeratingWithState:objects:count:.
7263
7264 2010-10-07 Martin Jambor <mjambor@suse.cz>
7265
7266 * tree-sra.c (struct access): New field grp_assignment_write.
7267 (dump_access): Dump grp_assignment_write.
7268 (build_accesses_from_assign): Set grp_assignment_write.
7269 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
7270 (mark_read_status): Renamed to mark_rw_status, individual values
7271 renamed too.
7272 (analyze_access_subtree): Changed type of mark_write to
7273 mark_read_status. Fixed propagating of mark_read and
7274 mark_write. Changed benefit estimate. Updated comment.
7275
7276 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7277
7278 PR Tree-Vect/45847
7279 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
7280 check for vectype_out returned by get_vectype_for_scalar_type().
7281
7282 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7283
7284 PR target/45805
7285 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
7286 constraint, add register specifier in instruction template.
7287 (neon_vec_pack_trunc_<mode>): Likewise.
7288 (neon_vec_<US>mult_<mode>): Add register specifier to
7289 instruction template.
7290
7291 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7292
7293 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
7294 cygwin2.o.
7295 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
7296 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
7297 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
7298 (cygwin2.o): Likewise.
7299 * config/i386/cygwin1.c: Delete file.
7300 * config/i386/cygwin2.c: Likewise.
7301 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
7302 make all {%!mno-cygwin} ones unconditional.
7303 (STARTFILE_SPEC): Likewise.
7304 (REAL_LIBGCC_SPEC): Likewise.
7305 (LIB_SPEC): Likewise.
7306 (CXX_WRAP_SPEC): Likewise.
7307 (LINK_SPEC): Likewise.
7308 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
7309 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
7310 (cygwin_gplusplus_include_dir): Delete now-unused array.
7311 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
7312 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
7313 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
7314 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
7315 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
7316 (cygwin_local_include_dir): Delete now-unused array.
7317 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
7318 (cygwin_cross_include_dir): Delete now-unused array.
7319 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
7320 (cygwin_tool_include_dir): Delete now-unused array.
7321 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
7322 (cygwin_standard_include_dir): Delete now-unused array.
7323 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
7324 (GEN_CVT_ARRAY): Delete now-unused macro definition.
7325 (cvt_to_mingw): Delete now-unused array.
7326 (mingw_scan): Remove prototype of deleted function.
7327 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
7328 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
7329 * doc/invoke.texi (-mcygwin): Don't document removed option.
7330 (-mno-cygwin): Likewise.
7331
7332 2010-10-07 Richard Guenther <rguenther@suse.de>
7333
7334 * machmode.h (mode_for_vector): Declare.
7335 * stor-layout.c (mode_for_vector): New function, split out from ...
7336 (layout_type): ... here.
7337 * tree-vectorizer.h (current_vector_size): Declare.
7338 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
7339 mask vector type is available.
7340 (get_vectype_for_scalar_type): Rename to ...
7341 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
7342 size argument.
7343 (get_vectype_for_scalar_type): New wrapper around
7344 get_vectype_for_scalar_type_and_size using current_vector_size.
7345 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
7346 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
7347 of vect_analyze_loop here.
7348 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
7349 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
7350 to autodetect.
7351 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
7352 V8SF to V8SI conversion builtin.
7353
7354 2010-10-07 Richard Guenther <rguenther@suse.de>
7355
7356 * target.def (autovectorize_vector_sizes): New target hook.
7357 * targhooks.c (default_autovectorize_vector_sizes): New function.
7358 * targhooks.h (default_autovectorize_vector_sizes): Declare.
7359 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
7360 Document.
7361 * doc/tm.texi: Update.
7362 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
7363 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7364
7365 2010-10-07 Richard Guenther <rguenther@suse.de>
7366
7367 * target.def (units_per_simd_word): Rename to ...
7368 (preferred_simd_mode): ... this. Return mode instead of size.
7369 * targhooks.c (default_units_per_simd_word): Rename to ...
7370 (default_preferred_simd_mode): ... this. Return word_mode.
7371 * targhooks.h (default_preferred_simd_mode): Declare.
7372 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
7373 (arm_preferred_simd_mode): ... this. Re-implement.
7374 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
7375 (ix86_preferred_simd_mode): ... this. Re-implement.
7376 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
7377 (sparc_preferred_simd_mode): ... this. Re-implement.
7378 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
7379 (mips_preferred_simd_mode): ... this. Re-implement.
7380 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
7381 (rs6000_preferred_simd_mode): ... this. Re-implement.
7382 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
7383 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
7384 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
7385 * doc/tm.texi: Update.
7386
7387 2010-10-07 Richard Guenther <rguenther@suse.de>
7388
7389 PR middle-end/45869
7390 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
7391 of pointers.
7392
7393 2010-10-07 Alan Modra <amodra@gmail.com>
7394
7395 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
7396 rather than sign extension by hand.
7397
7398 2010-10-07 Jan Hubicka <jh@suse.cz>
7399
7400 PR middle-end/45926
7401 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
7402
7403 2010-10-07 Richard Guenther <rguenther@suse.de>
7404
7405 PR bootstrap/45914
7406 * configure.ac: Fix typo.
7407 * configure: Regenerated.
7408
7409 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7410
7411 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
7412 define_builtin_std where it's unnecessary.
7413 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
7414
7415 2010-10-06 Anatoly Sokolov <aesok@post.ru>
7416
7417 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
7418 * doc/tm.texi.in: Regenerate.
7419 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
7420 * targhooks.c (default_class_likely_spilled_p): Don't use the
7421 CLASS_LIKELY_SPILLED_P macro.
7422
7423 * config/arm/arm.md: Update comment.
7424
7425 2010-10-06 Jan Hubicka <jh@suse.cz>
7426
7427 * ipa.c (cgraph_remove_unreachable_nodes): External references can
7428 always be removed.
7429 (cgraph_externally_visible_p): We can not bring local comdats that
7430 are known to linker; fix handling of internal visibility.
7431 (function_and_variable_visibility): Likewise.
7432
7433 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
7434
7435 PR rtl-optimization/45394
7436 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
7437 (struct rtx_subst_pair): Remove AFTER field.
7438 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
7439 (propagate_for_debug): Remove MOVE parameter and adjust.
7440 (try_combine): In the special case where I2 is a PARALLEL, combine only
7441 destinations of SETs and set I2SRC to the I2 source.
7442 Adjust calls to propagate_for_debug throughout.
7443 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
7444 insns.
7445
7446 2010-10-06 Olivier Hainque <hainque@adacore.com>
7447
7448 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
7449 switch on insn codes as sequence of ifs.
7450
7451 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
7452
7453 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
7454 be UI_NONE for picochip.
7455 (picochip_option_override): Do not disable exception flags.
7456 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
7457 Declare.
7458
7459 2010-10-06 Richard Guenther <rguenther@suse.de>
7460
7461 * Makefile.in (regmove.o): Depend on $(TARGET_H).
7462
7463 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
7464
7465 Implemented fast enumeration for Objective-C.
7466 * c-parser.c (objc_could_be_foreach_context): New.
7467 (c_lex_one_token): Recognize RID_IN keyword in a potential
7468 Objective-C foreach context.
7469 (c_parser_declaration_or_fndef): Added parameter. Accept
7470 Objective-C RID_IN keyword as terminating a declaration; in that
7471 case, return the declaration in the new parameter.
7472 (c_parser_extenral_declaration): Updated calls to
7473 c_parser_declaration_or_fndef.
7474 (c_parser_declaration_or_fndef): Same change.
7475 (c_parser_compound_statement_nostart): Same change.
7476 (c_parser_label): Same change.
7477 (c_parser_objc_methodprotolist): Same change.
7478 (c_parser_omp_for_loop): Same change.
7479 (c_parser_for_statement): Detect and parse Objective-C foreach
7480 statements.
7481 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
7482 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
7483 fast enumeration parsing code to turn off the c99 error but still
7484 perform checks on the loop declarations.
7485 * c-tree.h (check_for_loop_decls): Updated declaration.
7486 * doc/objc.texi: Document fast enumeration.
7487
7488 2010-10-06 Nick Clifton <nickc@redhat.com>
7489
7490 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
7491 (MDR_REGNUM): Define.
7492 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
7493 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
7494 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
7495 (REGISTER_NAMES): Add MDR.
7496 (DWARF2_DEBUGGING_INFO): Define to 1.
7497 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7498 (F): New function. Sets RTX_FRAME_RELATED_P.
7499 (mn10300_gen_multiple_store): Use F.
7500 (expand_prologue): Use F. Use gen_movsf() to push floating
7501 point registers.
7502 (expand_epilogue): Use gen_movsf() to pop floating point registers.
7503 (mn10300_option_override): Disable combine stack adjust pass.
7504
7505 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
7506
7507 PR target/45901
7508 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
7509 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
7510
7511 2010-10-06 Jakub Jelinek <jakub@redhat.com>
7512
7513 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
7514 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
7515 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
7516 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
7517 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
7518 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
7519 BUILT_IN_TOUPPER): Mark as leaf.
7520
7521 PR middle-end/45838
7522 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7523 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7524 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7525 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7526 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
7527 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
7528 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
7529
7530 2010-10-05 Anatoly Sokolov <aesok@post.ru>
7531
7532 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
7533 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7534 (m68hc11_class_likely_spilled_p): New function.
7535
7536 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
7537
7538 * c-parser.c (c_parser_objc_method_definition): Updated comment.
7539
7540 2010-10-05 Jan Hubicka <jh@suse.cz>
7541
7542 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
7543 Document.
7544 * opts.c (decode_options): Handle lto partitions.
7545 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
7546 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
7547
7548 2010-10-05 Jan Hubicka <jh@suse.cz>
7549
7550 * cgraphunit.c (assemble_function): Output thunks and aliases before
7551 the function itself.
7552
7553 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
7554
7555 * config/picochip/picochip.c (picochip_option_override): Disable
7556 exception flags for picochip.
7557
7558 2010-10-05 Joseph Myers <joseph@codesourcery.com>
7559
7560 * opts-common.c (handle_option, handle_generated_option,
7561 read_cmdline_option, set_option): Add diagnostic_context
7562 parameter. Update calls among these functions.
7563 (set_option): Don't use global_dc.
7564 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
7565 (decode_options): Pass global_dc to enable_warning_as_error.
7566 (common_handle_option): Pass global_dc to enable_warning_as_error.
7567 (enable_warning_as_error): Add diagnostic_context parameter.
7568 Document parameters. Don't use global_dc. Pass
7569 diagnostic_context parameter to handle_generated_option.
7570 * opts.h (set_option, handle_option, handle_generated_option,
7571 read_cmdline_option, enable_warning_as_error): Add
7572 diagnostic_context parameter.
7573 * Makefile.in (lto-opts.o): Update dependencies.
7574 * coretypes.h (struct diagnostic_context, diagnostic_context):
7575 Declare here.
7576 * diagnostic.h (diagnostic_context): Don't declare typedef here.
7577 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
7578 * langhooks-def.h (struct diagnostic_context): Don't declare here.
7579 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
7580 using diagnostic_context typedef.
7581 * langhooks.c (lhd_initialize_diagnostics): Declare using
7582 diagnostic_context typedef.
7583 * langhooks.h (struct diagnostic_context): Don't declare here.
7584 (initialize_diagnostics, print_error_function): Declare using
7585 diagnostic_context typedef.
7586 * lto-opts.c: Include diagnostic.h.
7587 (lto_reissue_options): Pass global_dc to set_option. Pass
7588 DK_UNSPECIFIED not 0.
7589 * plugin.c (plugins_internal_error_function): Declare using
7590 diagnostic_context typedef.
7591 * plugin.h (struct diagnostic_context): Don't declare here.
7592 (plugins_internal_error_function): Declare using
7593 diagnostic_context typedef.
7594
7595 2010-10-05 Olivier Hainque <hainque@adacore.com>
7596 Nicolas Roche <roche@adacore.com>
7597
7598 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
7599 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
7600
7601 2010-10-05 Ira Rosen <irar@il.ibm.com>
7602
7603 PR tree-optimization/45752
7604 * tree-vect-slp.c (vect_get_mask_element): Remove static
7605 variables, make them function arguments.
7606 (vect_transform_slp_perm_load): Pass new arguments to
7607 vect_get_mask_element.
7608
7609 2010-10-05 Richard Guenther <rguenther@suse.de>
7610
7611 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
7612 (gimple_mod_pow2): Likewise.
7613 (gimple_mod_subtract): Likewise.
7614 (gimple_ic): Likewise.
7615 (gimple_stringop_fixed_value): Likewise.
7616 * tree-profile.c (tree_init_edge_profiler): Mark profile
7617 functions nothrow and leaf.
7618 (add_abnormal_goto_call_edges): Remove.
7619 (tree_gen_edge_profiler): Work on SSA form.
7620 (tree_gen_ic_profiler): Likewise. Simplify.
7621 (do_tree_profiling): Update SSA form.
7622 (pass_tree_profile): Remove.
7623 (do_tree_profiling): Likewise.
7624 (gate_tree_profile_ipa): New function.
7625 (pass_ipa_tree_profile): New.
7626 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
7627 state of instrumented functions.
7628 * passes.c (init_optimization_passes): Remove early non-SSA
7629 inlining. Move profiling after early optimizations.
7630 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
7631 (pass_ipa_early_inline): Likewise.
7632 * tree-pass.h (pass_ipa_early_inline): Remove.
7633 (pass_tree_profile): Likewise.
7634 (pass_ipa_tree_profile): Declare.
7635
7636 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7637 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
7638
7639 * config/s390/s390.c (z196_cost): New.
7640 (s390_handle_arch_option): Add -march=z196.
7641 (s390_option_override): Use the new cost function and use the z10
7642 defaults also for z196.
7643 (legitimate_reload_constant_p): Adjust comment.
7644 (legitimate_reload_fp_constant_p): New function.
7645 (s390_preferred_reload_class): Distingiush between FP and Int constants.
7646 (preferred_la_operand_p): Avoid la with index on z196.
7647 (s390_adjust_priority): Trigger also for z196.
7648 (s390_issue_rate): Issue rate for z196 is 3.
7649 (s390_z10_fix_long_loop_prediction): Rename to ...
7650 (s390_fix_long_loop_prediction): ... this.
7651 (s390_reorg): Apply the z10 adjustments also for z196.
7652 (s390_loop_unroll_adjust): Do this also for z196.
7653 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
7654 (enum processor_flags): Add PF_Z196.
7655 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
7656 (TARGET_CPU_Z196, TARGET_Z196): New macros.
7657 * config.gcc: Enable z196 for --with-arch.
7658 * config/s390/2817.md: New file.
7659 * config/s390/2084.md: New type for multiply and add.
7660 * config/s390/2097.md: Likewise.
7661 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
7662 (UNSPECV_ATOMIC_OP): New constants.
7663 (fmadddf, fmaddsf): New values for type attribute.
7664 (z196prop): New insn attribute.
7665 (cpu, cpu_facility): Add z196.
7666 (ATOMIC_Z196): New code iterator.
7667 (noxa): New code attribute.
7668 (gk): New mode attribute.
7669 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
7670 Support load zero for fp constants.
7671 (fixuns_truncdddi2, fixuns_trunctddi2)
7672 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
7673 for z196.
7674 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
7675 (popcounthi2, popcountqi2): New expander.
7676 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
7677 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
7678 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
7679 insn definition.
7680 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
7681 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
7682 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
7683 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
7684 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
7685 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
7686 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
7687 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
7688 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
7689 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
7690 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
7691 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
7692 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
7693 Support new z196 instructions.
7694
7695 2010-10-05 Richard Guenther <rguenther@suse.de>
7696
7697 PR middle-end/45877
7698 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
7699 case where gimplification optimizes away the stmt.
7700
7701 2010-10-04 Jakub Jelinek <jakub@redhat.com>
7702
7703 PR debug/45849
7704 * var-tracking.c (strip_pointer_flags): New function.
7705 (emit_note_insn_var_location): If rtx_equal_p check failed,
7706 retry on locations simplified with simplify_replace_fn_rtx
7707 and strip_pointer_flags as its callback.
7708
7709 2010-10-04 Jan Hubicka <jh@suse.cz>
7710
7711 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
7712 (can_refer_decl_in_current_unit_p): ... this one; reverse return
7713 value; handle comdats too.
7714 (canonicalize_constructor_val): Use it; handle function_decls
7715 correctly.
7716 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7717 * gimple.c (get_base_address): Accept all kinds of decls.
7718
7719 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7720
7721 * flags.h (g_switch_value, g_switch_set): Remove.
7722 * opts.c (g_switch_value, g_switch_set): Remove.
7723 * config/g.opt (G): Add Var(g_switch_value).
7724 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
7725 (alpha_option_override): Check global_options_set.x_g_switch_value
7726 instead of g_switch_set.
7727 (alpha_in_small_data_p): Remove cast in comparison with
7728 g_switch_value.
7729 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7730 g_switch_value to unsigned HOST_WIDE_INT.
7731 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
7732 with g_switch_value.
7733 (frv_handle_option): Don't handle -G here.
7734 (frv_option_override): Check global_options_set.x_g_switch_value
7735 instead of g_switch_set. Don't modify g_switch_set.
7736 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
7737 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
7738 g_switch_value to unsigned HOST_WIDE_INT.
7739 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
7740 (ia64_option_override): Check global_options_set.x_g_switch_value
7741 instead of g_switch_set.
7742 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
7743 Remove.
7744 (lm32_in_small_data_p): Remove cast in comparison with
7745 g_switch_value.
7746 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
7747 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
7748 HOST_WIDE_INT.
7749 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
7750 (m32r_init): Check global_options_set.x_g_switch_value instead of
7751 g_switch_set.
7752 (m32r_in_small_data_p): Remove cast in comparison with
7753 g_switch_value.
7754 (m32r_file_start): Format g_switch_value with %d.
7755 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
7756 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
7757 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
7758 handle -G here.
7759 (microblaze_option_override): Check
7760 global_options_set.x_g_switch_value instead of g_switch_set.
7761 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
7762 (mips_option_override): Check global_options_set.x_g_switch_value
7763 instead of g_switch_set.
7764 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
7765 (rs6000_file_start): Format g_switch_value with %d.
7766 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
7767 comparisons with g_switch_value.
7768 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7769 global_options_set.x_g_switch_value instead of g_switch_set.
7770 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7771 global_options_set.x_g_switch_value instead of g_switch_set.
7772 * config/score/score.c (score_handle_option): Don't handle -G here.
7773 * config/score/score3.c (score3_option_override): Check
7774 global_options_set.x_g_switch_value instead of g_switch_set.
7775 * config/score/score7.c (score7_option_override): Check
7776 global_options_set.x_g_switch_value instead of g_switch_set.
7777
7778 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7779
7780 * common.opt (fira-coalesce): Remove.
7781
7782 * doc/invoke.texi (flag_ira_coalesce): Remove.
7783
7784 * ira-color.c (allocno_coalesced_p): Move before
7785 copy_freq_compare_func.
7786 processed_coalesced_allocno_bitmap): Ditto.
7787 (update_conflict_hard_regno_costs): Don't use
7788 ALLOCNO_FIRST_COALESCED_ALLOCNO.
7789 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
7790 (assign_hard_reg): Assume no coalesced allocnos.
7791 (get_coalesced_allocnos_attributes): Remove.
7792 (bucket_allocno_compare_func): Assume no coalesced allocnos.
7793 (push_allocno_to_stack): Ditto.
7794 (remove_allocno_from_bucket_and_push): Use
7795 ira_print_expanded_allocno instead of print_coalesced_allocno.
7796 (push_allocnos_to_stack): Assume uncoalesced allocnos.
7797 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
7798 all_conflicting_hard_regs.
7799 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
7800 (setup_allocno_left_conflicts_size): Ditto.
7801 (put_allocno_into_bucket): Ditto.
7802 (copy_freq_compare_func): Remove.
7803 (copy_freq_compare_func, merge_allocnos): Move before
7804 coalesced_pseudo_reg_freq_compare.
7805 coalesced_allocno_conflict_p): Ditto.
7806 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
7807 parameter. Assume it true.
7808 (color_allocnos): Assume uncoalesced allocnos. Use
7809 ira_print_expanded_allocno instead of print_coalesced_allocno.
7810 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
7811 parameter.
7812
7813 * ira.c: Remove comment about coalescing.
7814
7815 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7816
7817 * config/mips/mips.h (target_flags_explicit): Declare for
7818 GENERATOR_FILE.
7819
7820 2010-10-04 Andi Kleen <ak@linux.intel.com>
7821
7822 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
7823 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
7824
7825 2010-10-04 Matthias Klose <doko@ubuntu.com>
7826
7827 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
7828 multilib osdirname if it exists.
7829 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
7830
7831 2010-10-04 Jakub Jelinek <jakub@redhat.com>
7832
7833 PR middle-end/45876
7834 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
7835 arg0's type or its unsigned counterpart as utype. Convert
7836 arg1 to utype unconditionally.
7837
7838 2010-10-04 Julian Brown <julian@codesourcery.com>
7839
7840 * expr.c (expand_assignment): Add assertion to prevent emitting
7841 null rtx for movmisalign pattern.
7842 (expand_expr_real_1): Likewise.
7843 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
7844 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
7845 (arm_vector_alignment_reachable): New.
7846 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
7847 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
7848 (arm_print_operand): Include alignment qualifier in %A.
7849 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
7850 (movmisalign<mode>): New expander.
7851 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
7852 insn patterns.
7853
7854 2010-10-04 Joseph Myers <joseph@codesourcery.com>
7855
7856 * optc-gen.awk: Define global_options_set. Don't define
7857 target_flags_explicit.
7858 * opth-gen.awk: Declare global_options_set. Define
7859 target_flags_explicit as macro.
7860 * opts-common.c (handle_option): Take opts_set and generated_p
7861 parameters.
7862 (handle_generated_option, read_cmdline_option, set_option): Take
7863 opts_set parameter.
7864 (set_option): Use opts_set instead of hardcoding target_flags and
7865 target_flags_explicit.
7866 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
7867 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
7868 flag_value_profile_transformations_set, flag_peel_loops_set,
7869 flag_branch_probabilities_set, flag_inline_functions_set,
7870 flag_ipa_cp_set, flag_ipa_cp_clone_set,
7871 flag_predictive_commoning_set, flag_unswitch_loops_set,
7872 flag_gcse_after_reload_set): Remove.
7873 (common_handle_option, lang_handle_option, target_handle_option):
7874 Take opts_set parameter. Assert that it is &global_options_set.
7875 (common_handle_option): Don't set _set variables. Check opts_set
7876 instead of such variables.
7877 (enable_warning_as_error): Pass &global_options_set to
7878 handle_generated_option.
7879 * opts.h (cl_option_handler_func.handler, set_option,
7880 handle_option, handle_generated_option, read_cmdline_option): Add
7881 opts_set parameters.
7882 (handle_option): Add generated_p parameter.
7883 * config/i386/i386.c (ix86_function_specific_save,
7884 ix86_function_specific_restore): Updat for renaming of
7885 target_flags_explicit field.
7886 * config/i386/i386.opt (target_flags_explicit): Rename to
7887 ix86_target_flags_explicit.
7888 * config/ia64/ia64.c (ia64_override_options_after_change): Check
7889 global_options_set.x_flag_selective_scheduling and
7890 global_options_set.x_flag_selective_scheduling2, not
7891 sel_sched_switch_set.
7892 * flags.h (sel_sched_switch_set,
7893 flag_speculative_prefetching_set): Remove.
7894 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
7895 that it is &global_options_set.
7896 (process_command): Pass &global_options_set to read_cmdline_option.
7897 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
7898 set_option.
7899 * toplev.c (target_flags_explicit): Remove.
7900
7901 2010-10-04 Jan Hubicka <jh@suse.cz>
7902
7903 PR middle-end/45871
7904 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
7905 use get_ref_base_and_offset to handle references.
7906 (fold_const_aggregate_ref): Update.
7907
7908 2010-10-04 Martin Jambor <mjambor@suse.cz>
7909
7910 PR tree-optimization/45572
7911 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
7912 ipa_check_create_node_params.
7913 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
7914
7915 2010-10-04 Yao Qi <yao@codesourcery.com>
7916
7917 * doc/passes.texi: Clean up.
7918
7919 2010-10-03 Ian Lance Taylor <iant@google.com>
7920
7921 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
7922 referring to a field using a typedef name.
7923 (find_anonymous_field_with_type): New static function.
7924 (convert_to_anonymous_field): New static function.
7925 (convert_for_assignment): If -fplan9-extensions, permit converting
7926 pointer to struct to pointer to anonymous field.
7927 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
7928 (is_duplicate_field): New static function.
7929 (detect_field_duplicates_hash): If -fplan9-extensions, check for
7930 typedef names duplicating field names.
7931 (detect_field_duplicates): Likewise.
7932 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
7933 (C Dialect Options): Document -fplan9-extensions.
7934 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
7935
7936 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
7937
7938 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
7939 revision 164914.
7940 (vect_create_data_ref_ptr): Likewise.
7941 * tree-vect-stmts.c (vectorizable_store): Likewise.
7942 (perm_mask_for_reverse): Likewise.
7943 (reverse_vec_elements): Likewise.
7944 (vectorizable_load): Likewise.
7945
7946 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7947
7948 * cppbuiltin.c: New file.
7949 * cppbuiltin.h: New file.
7950 * Makefile.in: Take into account cppbuiltin.{h,c}.
7951
7952 2010-10-03 Andi Kleen <ak@linux.intel.com>
7953
7954 * lto-cgraph.c (input_cgraph): Check for missing sections.
7955
7956 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
7957
7958 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
7959 to nonimmediate_operand. Force operand 2 to register when allowed.
7960 (*<shiftrt_insn><mode>3_mask): Ditto.
7961 (*<rotate_insn><mode>3_mask): Ditto.
7962
7963 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
7964
7965 PR tree-optimization/45720
7966 PR tree-optimization/45764
7967 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7968 Don't accept backwards consecutive accesses.
7969 (vect_create_data_ref_ptr): Disallow negative steps.
7970
7971 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
7972 (perm_mask_for_reverse): Removed.
7973 (reverse_vec_elements): Likewise.
7974 (vectorizable_load): Don't handle negative steps.
7975
7976 2010-10-02 Jan Hubicka <jh@suse.cz>
7977
7978 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
7979 call destination is known.
7980
7981 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7982
7983 PR target/45820
7984 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
7985 earlier.
7986
7987 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7988
7989 * doc/install.texi (Configuration): Document build_configargs,
7990 host_configargs, target_configargs.
7991
7992 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
7993
7994 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
7995 (*<shiftrt_insn><mode>3_mask): Ditto.
7996 (*<rotate_insn><mode>3_mask): Ditto.
7997
7998 2010-10-01 Steve Ellcey <sje@cup.hp.com>
7999
8000 PR tree-optimization/44716
8001 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
8002 (HOT_TEXT_SECTION_NAME): Define.
8003
8004 2010-10-01 Nick Clifton <nickc@redhat.com>
8005
8006 * common.opt: Add -fcombine-stack-adjustments.
8007 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
8008 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
8009 flag_combine_stack_adjustments.
8010 * doc/invoke.texi: Document the new option.
8011
8012 2010-10-01 Richard Guenther <rguenther@suse.de>
8013
8014 PR tree-optimization/45854
8015 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
8016
8017 2010-10-01 Anthony Green <green@moxielogic.com>
8018
8019 * config.gcc: Fix moxie-*-rtems* configuration.
8020
8021 2010-10-01 Richard Guenther <rguenther@suse.de>
8022
8023 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
8024 (gen_decl_die): Likewise.
8025
8026 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8027
8028 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
8029 to the function code for SPU MD builtins.
8030 (spu_expand_builtin): Update.
8031 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
8032
8033 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8034
8035 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
8036 sjlj_except_unwind_info.
8037
8038 2010-10-01 Tristan Gingold <gingold@adacore.com>
8039
8040 * configure.ac: Define the nop insn for avr*-*-*
8041 * configure: Regenerate.
8042
8043 2010-10-01 Alan Modra <amodra@gmail.com>
8044
8045 PR target/45807
8046 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
8047 extend toc_restore_insn.
8048
8049 2010-09-30 Richard Guenther <rguenther@suse.de>
8050
8051 PR tree-optimization/43959
8052 * function.c (gimplify_parameters): Use create_tmp_reg instead of
8053 create_tmp_var.
8054
8055 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
8056
8057 * config/sh/sh.c (sh_expand_prologue): Set
8058 current_function_static_stack_size.
8059
8060 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8061
8062 * configure.ac: Check for Solaris 8 ld with .hidden support.
8063 * configure: Regenerate.
8064
8065 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8066
8067 PR middle-end/45758
8068 * graphite.c (graphite_initialize): Call scev_reset.
8069
8070 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8071
8072 * sese.h (scev_analyzable_p): Return false for real or floating
8073 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
8074
8075 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8076
8077 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
8078 and ps.
8079 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
8080 domain.
8081 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
8082 Do not allocate ub_expr, it is passed in initialized.
8083
8084 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8085
8086 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
8087 (build_cloog_prog): Dump CLooG input file when
8088 flag_graphite_dump_cloog is set. This is disabled on trunk.
8089 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
8090
8091 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8092
8093 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
8094 verify_dominators for CDI_POST_DOMINATORS.
8095 * sese.h: Remove comment about CDI_POST_DOMINATORS.
8096 (recompute_all_dominators): Remove call to free_dominance_info
8097 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
8098 for CDI_POST_DOMINATORS.
8099
8100 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8101
8102 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
8103 over pbb_dim_iter_domain.
8104
8105 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8106
8107 * graphite-flattening.c: Fix comments.
8108
8109 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8110
8111 * Makefile.in (OBJS-common): Add graphite-flattening.o.
8112 (graphite-flattening.o): New rule.
8113 * common.opt (floop-flatten): New flag.
8114 * doc/invoke.texi (-floop-flatten): Documented.
8115 * graphite-flattening.c: New.
8116 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
8117 * graphite-poly.h (flatten_all_loops): Declared.
8118 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
8119 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
8120 is set, also set flag_graphite.
8121
8122 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8123
8124 * graphite-poly.c (cloog_checksum): New.
8125 * graphite-poly.h (cloog_checksum): Declared.
8126
8127 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8128
8129 * graphite-poly.c (pbb_number_of_iterations): Removed.
8130 (pbb_number_of_iterations_at_time): Correctly compute the number
8131 of iterations in the transformed loop.
8132 * graphite-poly.h (pbb_number_of_iterations): Removed.
8133
8134 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8135
8136 * graphite-poly.h (lst_update_scattering_seq): Removed.
8137 (lst_update_scattering): Correctly handle outermost loop dewey
8138 renumbering.
8139
8140 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8141
8142 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
8143 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
8144 * graphite-poly.h (lst_niter_for_loop): New.
8145
8146 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8147
8148 * graphite-poly.c (apply_poly_transforms): Do not abort when the
8149 transform read from disk is not legal. Call fatal_error instead.
8150
8151 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8152
8153 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
8154 (print_scop_header): Removed. Inlined in the only call place...
8155 (print_scop): ... here.
8156
8157 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8158
8159 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
8160
8161 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8162
8163 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
8164
8165 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8166
8167 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
8168 (dot_deps_stmt): Same.
8169 * graphite-poly.c (dot_lst): Same.
8170
8171 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8172
8173 * graphite-blocking.c (scop_do_strip_mine): Do not call
8174 graphite_legal_transform.
8175 (scop_do_block): Same.
8176
8177 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8178
8179 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
8180 description.
8181
8182 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8183
8184 * tree-scalar-evolution.c (instantiate_array_ref): New.
8185 (instantiate_scev_r): Also handle ARRAY_REFs.
8186
8187 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8188
8189 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8190 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
8191 RESULT_DECL, and FIELD_DECL. Return false for an
8192 SSA_NAME_IS_DEFAULT_DEF.
8193 (compute_scalar_evolution_in_loop): Do not further analyze the
8194 scalar evolution when no_evolution_in_loop_p returns true.
8195
8196 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8197
8198 * tree-chrec.h (evolution_function_is_affine_p): Do not check
8199 whether CHREC_LEFT is invariant. A function is affine when
8200 CHREC_RIGHT is invariant.
8201
8202 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8203
8204 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
8205 is_gimple_reg.
8206 (rewrite_degenerate_phi): Same.
8207 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
8208
8209 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8210
8211 * graphite-scop-detection.c (graphite_can_represent_scev,
8212 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
8213 graphite_can_represent_loop): Remove outermost_loop.
8214
8215 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8216
8217 PR middle-end/45229
8218 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
8219 handle GIMPLE_CALLs with no LHS.
8220
8221 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8222
8223 * graphite-poly.c (init_graphite_out_file): New.
8224 (init_graphite_in_file): New.
8225 (apply_poly_transforms): Updated to enable reading and writing of
8226 multiple scop files.
8227
8228 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
8229
8230 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
8231 redundant checks.
8232
8233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8234
8235 * graphite-clast-to-gimple.c (precision_for_value): Adjust
8236 computation of precision by 1.
8237
8238 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8239
8240 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
8241 (openscop_read_polyhedron_matrix): New.
8242 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
8243 (openscop_read_N_int): Same.
8244 * graphite-poly.c (openscop_read_N_int): New.
8245 (openscop_read_one_int): New.
8246 (openscop_read_N_string): New.
8247 (openscop_read_one_string): New.
8248 (openscop_read_powerset_matrix): New.
8249 (graphite_read_transforms): Remove.
8250 (graphite_read_scatt): New.
8251 (graphite_read_scop_file): New.
8252 (apply_poly_transforms): Updated to call graphite_read_scop_file.
8253
8254 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8255
8256 * graphite-poly.c: Change include order.
8257
8258 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8259
8260 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
8261 (cloog_matrix_nrows): New.
8262
8263 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8264
8265 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
8266 from matrix lines.
8267 * graphite-poly.c (openscop_print_scattering_function_1): Same.
8268 (print_scattering_function_1): Same.
8269 (openscop_print_pbb_domain): Same.
8270 (openscop_print_scop_context): Same.
8271 (print_scop_context): Same.
8272
8273 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
8274
8275 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
8276 (openscop_print_pdr_polyhedron): Print pph.
8277
8278 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8279
8280 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
8281 priority signed types.
8282
8283 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8284
8285 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
8286 the call to lang_hooks.types.type_for_size. Call
8287 build_nonstandard_integer_type.
8288
8289 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8290
8291 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
8292 (openscop_print_polyhedron_matrix): New.
8293 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
8294 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
8295 (openscop_print_pdr_powerset): New.
8296 (openscop_print_powerset_matrix): New.
8297 (openscop_print_scattering_function_1): New.
8298 (print_scattering_function): Add support for scattering names and
8299 OpenScop format.
8300 (graphite_write_transforms): Remove.
8301 (print_pdr_access_layout): Updated to support OpenScop format.
8302 (print_pdr): Same.
8303 (openscop_print_pbb_domain): New.
8304 (print_pbb_body): Added a parameter to allow indicating that pbb_body
8305 is not provided.
8306 (print_pbb): Updated to call the new print_pbb_body.
8307 (openscop_print_scop_context): New.
8308 (print_scop_header): New.
8309 (print_scop): Updated to call print_scop_header.
8310 * graphite-poly.h: Document OpenScop format.
8311
8312 2010-09-30 Anatoly Sokolov <aesok@post.ru>
8313
8314 * config/cris/m32c.c (cris_memory_move_cost): New.
8315 (cris_register_move_cost): Make static. Change arguments type from
8316 enum reg_class to reg_class_t.
8317 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8318 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8319 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
8320
8321 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8322
8323 PR target/45843
8324 * config/i386/i386.c (ix86_gimplify_va_arg): Use
8325 INTVAL (XEXP (slot, 1)) as prev_size.
8326
8327 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8328
8329 PR target/45837
8330 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
8331 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
8332 defined.
8333 * config/rs6000/option-defaults.h (toplevel): Change #if
8334 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
8335 global option changes.
8336
8337 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8338
8339 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
8340
8341 PR tree-optimization/31261
8342 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
8343 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
8344
8345 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8346
8347 PR bootstrap/45796
8348 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
8349 special-casing for generators and turn into ...
8350 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
8351 rule, for better error messages in case of toplevel dependency errors.
8352 (genprog): Add hooks, rename to ...
8353 (genprogerr): ... this, and let genprog also contain check,
8354 checksum, condmd.
8355 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
8356 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
8357 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
8358
8359 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
8360 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8361
8362 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
8363 for GMP, MPFR and MPC.
8364
8365 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8366
8367 * config/sparc/sparc.opt (mimpure-text): Move ...
8368 * config/sol2.opt: ... here. Correct description.
8369 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
8370 * doc/invoke.texi (Option Summary, SPARC Options): Move
8371 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
8372 (Option Summary, Solaris 2 Options): ... here.
8373 (Submodel Options, Solaris 2 Options): New menu entry.
8374 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
8375 (Solaris 2 Options): ... here.
8376
8377 2010-09-30 Michael Eager <eager@eagercon.com>
8378
8379 * extend.texi (interrupt_handler): Add MicroBlaze to list.
8380 (save_volatiles): Describe option for MicroBlaze.
8381 * invoke.texi: Add MicroBlaze Options.
8382 * contrib.texi: Add acknowledgment.
8383 * md.texi: Add MicroBlaze d and z constraints.
8384 * install.texi: Add microblaze-*-elf.
8385 * configure.ac: Add microblaze-*-* to target list.
8386 * configure: Regenerate.
8387 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
8388 * config/microblaze/microblaze-protos.h: New.
8389 * config/microblaze/crti.s: New.
8390 * config/microblaze/predicates.md: New.
8391 * config/microblaze/linux.h: New.
8392 * config/microblaze/microblaze.md: New.
8393 * config/microblaze/constraints.md: New.
8394 * config/microblaze/crtn.s: New.
8395 * config/microblaze/microblaze.opt: New.
8396 * config/microblaze/microblaze-c.c: New.
8397 * config/microblaze/t-microblaze: New.
8398 * config/microblaze/microblaze.c: New.
8399 * config/microblaze/microblaze.h: New.
8400
8401 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8402
8403 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
8404 parse @optional/@required and set the flags as appropriate.
8405
8406 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
8407
8408 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
8409
8410 2010-09-30 Joseph Myers <joseph@codesourcery.com>
8411
8412 * opt-functions.awk (static_var): Update comment.
8413 (var_ref): Return offsetof expression or -1, not variable address.
8414 * optc-gen.awk: Generate structure field initializers instead of
8415 static variables. Expect -1 for missing variables instead of null
8416 pointer. Add gcc_options parameters to generated functions.
8417 * opth-gen.awk: Generate structure fields for static variables.
8418 Add gcc_options parameters to generated functions.
8419 * common.opt (optimize, optimize_size): Add variables.
8420 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
8421 &global_options to cl_target_option_restore.
8422 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
8423 &global_options to cl_optimization_restore, cl_target_option_save
8424 and cl_target_option_restore.
8425 (ix86_set_current_function): Pass &global_options to
8426 cl_target_option_restore.
8427 * config/pdp11/pdp11.h (optimize): Remove.
8428 * config/rs6000/rs6000.h (optimize): Remove.
8429 * config/sh/sh.h (optimize): Remove.
8430 * config/xtensa/xtensa.h (optimize): Remove.
8431 * coretypes.h (struct gcc_options): Declare.
8432 * diagnostic.c (diagnostic_initialize): Initialize
8433 context->option_state.
8434 (diagnostic_report_diagnostic): Pass option_state to
8435 option_enabled hook.
8436 * diagnostic.h (diagnostic_context.option_enabled): Add void *
8437 parameter.
8438 (diagnostic_context.option_state): New field.
8439 * final.c (final_start_function, final, final_scan_insn): Rename
8440 optimize parameter to optimize_p.
8441 * flags.h (optimize, optimize_size): Remove.
8442 * function.c (invoke_set_current_function_hook): Pass
8443 &global_options to cl_optimization_restore.
8444 * gcc.c (driver_handle_option): Take gcc_options parameter.
8445 Assert that it is &global_options.
8446 (process_command): Pass &global_options to read_cmdline_option.
8447 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
8448 option_enabled.
8449 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
8450 &global_options to set_option.
8451 * opts-common.c (handle_option, handle_generated_option,
8452 read_cmdline_option, set_option): Take explicit gcc_options
8453 parameters. Use option_flag_var.
8454 (option_flag_var): New.
8455 * opts.c (common_handle_option, lang_handle_option,
8456 target_handle_option): Take gcc_options parameter. Assert that it
8457 is &global_options.
8458 (read_cmdline_options): Pass &global_options to read_cmdline_option.
8459 (print_filtered_help): Use option_flag_var. Pass &global_options
8460 to option_enabled.
8461 (common_handle_option): Use option_flag_var.
8462 (option_enabled): Take opts parameter. Use option_flag_var.
8463 (get_option_state): Take gcc_options parameter. Use
8464 option_flag_var. Pass gcc_options parameter to option_enabled.
8465 (enable_warning_as_error): Pass &global_options to
8466 handle_generated_option.
8467 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
8468 (cl_option_handler_func.handler): Take gcc_options parameter.
8469 (option_enabled, get_option_state, set_option, handle_option,
8470 handle_generated_option, read_cmdline_option): Take gcc_options
8471 parameters.
8472 * toplev.c (optimize, optimize_size): Remove.
8473 (print_switch_values): Pass &global_options to option_enabled.
8474 (option_affects_pch_p): Use option_flag_var. Pass &global_options
8475 to get_option_state.
8476 (general_init): Initialize global_dc->option_state.
8477 * tree.c (build_optimization_node): Pass &global_options to
8478 cl_optimization_save.
8479 (build_target_option_node): Pass &global_options to
8480 cl_target_option_save.
8481
8482 2010-09-30 Martin Jambor <mjambor@suse.cz>
8483
8484 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
8485 zero sized bit-fields.
8486
8487 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8488
8489 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
8490 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
8491 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
8492 (c_parser_objc_class_declaration): Same change.
8493 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
8494 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8495 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
8496 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
8497 and RID_AT_PUBLIC instead of RID_PUBLIC.
8498 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
8499 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
8500
8501 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
8502
8503 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
8504 Add links to current providers of packages for Solaris and IRIX.
8505
8506 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8507
8508 Merge from 'apple/trunk' branch on FSF servers.
8509 * c-parser.c: Applied change originally in c-parse.in.
8510
8511 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
8512
8513 Radar 4281748
8514 * c-decl.c (start_decl): Check for redeclaration of class name.
8515 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
8516
8517 2010-09-29 Steve Ellcey <sje@cup.hp.com>
8518
8519 * config/ia64/ia64.c (ia64_builtin_decl): New.
8520 (TARGET_BUILTIN_DECL): Define.
8521 (ia64_builtins): New.
8522 (ia64_init_builtins): Save decls in ia64_builtins.
8523
8524 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
8525
8526 PR target/40457
8527 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
8528 (move2add_use_add3_insn): Likewise.
8529 (reload_cse_move2add): Likewise.
8530 * rtlanal.c (get_full_rtx_cost): New function.
8531 * rtl.h (struct full_rtx_costs): New.
8532 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
8533 costs_add_n_insns): New inline functions.
8534 (get_full_rtx_cost): Declare.
8535
8536 PR c/45054
8537 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
8538 invariants. Check for reg_equiv_invariant.
8539 (reload): Assert that spilled_pseudos is empty when returning.
8540
8541 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
8542
8543 * config/i386/mingw32.h (TARGET_64BIT): replaced by
8544 TARGET_64BIT_DEFAULT in #if check.
8545
8546 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
8547
8548 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
8549
8550 2010-09-29 Mike Stump <mikestump@comcast.net>
8551
8552 * config/darwin.h (flag_mkernel): Remove.
8553 (flag_apple_kext): Likewise.
8554
8555 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8556 Jack Howarth <howarth@bromo.med.uc.edu>
8557
8558 * config/darwin.opt (undefined): Add.
8559
8560 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
8561
8562 PR testsuite/45664
8563 * configure.ac: Add --enable-indirect-function option.
8564 * config.gcc: Add default_gnu_indirect_function.
8565 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
8566 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
8567 * varasm.c (do_assemble_alias): Adjust for macro name change.
8568 * configure: Rebuilt.
8569 * doc/install.texi: Document --enable-indirect-function.
8570
8571 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8572
8573 * doc/options.texi (Variable, Var, Init): Update documentation
8574 without reference to VarExists.
8575 (VarExists): Remove.
8576 * common.opt, config/i386/i386.opt, config/linux.opt,
8577 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
8578 Don't use VarExists.
8579
8580 2010-09-29 Joseph Myers <joseph@codesourcery.com>
8581
8582 * optc-gen.awk: Generate global_options initializer instead of
8583 individual variables. Add x_ prefix to names of structure members.
8584 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
8585 names of structure members.
8586 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8587 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
8588 * doc/tm.texi: Regenerate.
8589 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8590 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8591 * c-parser.c (disable_extension_diagnostics,
8592 restore_extension_diagnostics): Update names of cpp_options members.
8593 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8594 * common.opt (fcompare-debug-second): Don't use Var.
8595 * config/alpha/alpha.h (target_flags): Remove.
8596 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8597 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8598 * config/bfin/bfin.h (target_flags): Remove.
8599 * config/cris/cris.h (target_flags): Remove.
8600 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
8601 cl_target_option members.
8602 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
8603 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
8604 ix86_can_inline_p): Update names of cl_target_option members.
8605 * config/i386/i386.h (ix86_isa_flags): Remove.
8606 * config/lm32/lm32.h (target_flags): Remove.
8607 * config/mcore/mcore.h (mcore_stack_increment): Remove.
8608 * config/mcore/mcore.md (addsi3): Remove extern declaration of
8609 flag_omit_frame_pointer.
8610 * config/mep/mep.h (target_flags): Remove.
8611 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8612 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
8613 * config/mmix/mmix.h (target_flags): Remove.
8614 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
8615 flag_expensive_optimizations): Remove.
8616 * config/s390/s390.h (flag_pic): Remove.
8617 * config/score/score-conv.h (target_flags): Remove.
8618 * config/sh/sh.h (sh_fixed_range_str): Remove.
8619 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
8620 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8621 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8622 * diagnostic.c (diagnostic_initialize): Update names of
8623 diagnostic_context members.
8624 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
8625 warn_system_headers.
8626 (diagnostic_report_warnings_p): Update for new names.
8627 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
8628 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
8629 HARD_FRAME_POINTER_IS_ARG_POINTER.
8630 * flags.h (flag_compare_debug): Declare.
8631 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8632 * opts.c (flag_compare_debug): Define.
8633 (common_handle_option): Update names of diagnostic_context
8634 members. Handle -fcompare-debug-second.
8635 (fast_math_flags_struct_set_p): Update names of cl_optimization
8636 members.
8637 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8638 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8639 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8640 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8641 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
8642 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
8643 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
8644 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
8645 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
8646
8647 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
8648
8649 * config/picochip/picochip.c (picochip_output_internal_label):
8650 This function can now be called for debug CFI labels, which can come
8651 in the middle of a vliw instruction. Postpone until end of vliw.
8652
8653 2010-09-29 Richard Guenther <rguenther@suse.de>
8654
8655 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
8656 (DECL_FILE_SCOPE_P): Use it.
8657 (TYPE_FILE_SCOPE_P): New macro.
8658
8659 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8660
8661 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
8662 a CPP_NAME which is a reserved word, clearly separate cases for
8663 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
8664
8665 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8666
8667 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
8668 token->value with the canonical spelling. Do exactly like C and
8669 C++ and leave it as it is.
8670
8671 2010-09-28 Richard Henderson <rth@redhat.com>
8672
8673 * config/alpha/alpha.c (alpha_builtins): New.
8674 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
8675 (alpha_builtin_function): New.
8676 (alpha_add_builtins, alpha_init_builtins): Use it.
8677
8678 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
8679
8680 * doc/standards.texi (Standards): Expanded the section on
8681 Objective-C and Objective-C++.
8682
8683 2010-09-28 DJ Delorie <dj@redhat.com>
8684
8685 PR target/45800
8686 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
8687 volatile MEMs.
8688
8689 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8690
8691 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
8692 attributes on methods.
8693 (c_parser_objc_method_definition): Handle attributes.
8694 (c_parser_objc_methodproto): Likewise.
8695 (c_parser_objc_maybe_method_attributes): New.
8696 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
8697 missing definition, similar to that in ObjC++.
8698
8699 2010-09-28 Richard Henderson <rth@redhat.com>
8700
8701 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
8702 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8703 (CONFIG_SJLJ_EXCEPTIONS): Remove.
8704 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
8705 (STACK_CHECK_PROTECT): Likewise.
8706 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
8707 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
8708 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
8709 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
8710 (dwarf2out_assembly_start): Likewise.
8711 * except.c (init_eh): Use targetm.except_unwind_info.
8712 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
8713 (output_one_function_exception_table): Likewise.
8714 * final.c: Unconditionally include dwarf2out.h.
8715 (final_start_function): Unconditionally call dwarf2out routines.
8716 (final_end_function, final_scan_insn): Likewise.
8717 * function.c (expand_function_end): Use targetm.except_unwind_info.
8718 * opts.c (decode_options): Use targetm.except_unwind_info.
8719 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
8720 * target.def (debug_unwind_info, except_unwind_info): New.
8721 * target.h (enum unwind_info_type): New.
8722 * targhooks.c (default_debug_unwind_info): New.
8723 (default_except_unwind_info): New.
8724 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
8725 * targhooks.h: Declare them.
8726 * tree-tailcall.c: Include "target.h"
8727 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
8728 * Makefile.in (tree-tailcall.o): Update.
8729 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
8730 (lhd_gcc_personality): Likewise.
8731
8732 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
8733 (TARGET_EXCEPT_UNWIND_INFO): New.
8734 (DWARF2_UNWIND_INFO): Update.
8735 (TARGET_DEBUG_UNWIND_INFO): New.
8736 * doc/tm.texi: Rebuild.
8737
8738 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
8739 targetm.except_unwind_info.
8740
8741 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
8742 (arm_except_unwind_info): New.
8743 (arm_compute_func_type): Use it.
8744 (arm_expand_prologue, thumb_pushpop): Likewise.
8745 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
8746 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
8747 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
8748 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
8749 (DWARF2_UNWIND_INFO): Remove.
8750 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
8751 (ARM_EABI_UNWIND_TABLES): Remove.
8752
8753 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
8754 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
8755 (ia64_except_unwind_info): New.
8756 (ia64_output_function_prologue): Use it.
8757 (ia64_add_bundle_selector_before): Likewise.
8758 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
8759 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
8760 (TARGET_UNWIND_INFO): Remove.
8761
8762 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
8763
8764 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8765
8766 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
8767 (c_parser_objc_protocol_definition): Likewise.
8768 (c_parser_external_declaration): Provide dummy attribute arguments.
8769 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
8770 (c_parser_objc_class_definition): Handle attributes.
8771 (c_parser_objc_protocol_definition): Likewise.
8772
8773 2010-09-28 Tobias Burnus <burnus@net-b.de>
8774
8775 PR fortran/40569
8776 PR fortran/40568
8777 * toplev.h (save_decoded_options, save_decoded_options_count):
8778 New global variables.
8779 * toplev.c (save_decoded_options, save_decoded_options_count):
8780 Export variables.
8781
8782 2010-09-28 Ian Lance Taylor <iant@google.com>
8783
8784 * config/i386/i386.c (ix86_supports_split_stack): Test
8785 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
8786
8787 2010-09-28 Ian Lance Taylor <iant@google.com>
8788
8789 PR target/45815
8790 * opts.c (decode_options): Don't test whether the target supports
8791 split stack if flag_split_stack == 0.
8792
8793 2010-09-28 Jan Hubicka <jh@suse.cz>
8794
8795 * builtin-attrs.def (ATTR_LEAF): New attribute.
8796 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
8797 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
8798 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
8799 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
8800 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
8801 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
8802 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
8803 * sync-builtins.def: Annotate all builtins by leaf.
8804 * omp-builtins.def: Annotate all builtins by leaf.
8805 * builtins.def: Annotate relevant builtins with leaf attribute.
8806 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8807 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
8808 leaf.
8809
8810 2010-09-28 Jan Hubicka <jh@suse.cz>
8811
8812 * tree-ssa-ccp.c (fold_ctor_reference): New function.
8813 (fold_const_aggregate_ref): Use it.
8814 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
8815 into external static.
8816
8817 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8818
8819 PR target/44452
8820 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
8821 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
8822 (ix86_solaris_return_in_memory): Remove.
8823 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
8824 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8825 (TARGET_SUBTARGET_DEFAULT): Redefine.
8826 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
8827 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
8828 (TARGET_SUBTARGET_DEFAULT): Redefine.
8829 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
8830 -mvect8-ret-in-mem.
8831 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
8832
8833 2010-09-29 Alan Modra <amodra@gmail.com>
8834
8835 PR target/45807
8836 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
8837 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
8838 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
8839 Delete.
8840 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
8841 (rs6000_emit_prologue): Don't just create frame save info for r2,
8842 actually save r2.
8843
8844 2010-09-28 Richard Henderson <rth@redhat.com>
8845
8846 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
8847 when 8 bytes are requested.
8848
8849 2010-09-28 Tristan Gingold <gingold@adacore.com>
8850
8851 * config/avr/avr.c (expand_prologue): Set
8852 current_function_static_stack_size.
8853
8854 2010-09-28 Tristan Gingold <gingold@adacore.com>
8855
8856 * config/alpha/alpha.md: Change the initial condition of the
8857 probing loop.
8858
8859 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
8860
8861 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
8862 Split from *avx_<maxmin:code><mode>3.
8863 (*avx_<smaxmin:code><mode>3): Ditto.
8864 * config/i386/i386.md (maxmin): Remove code iterator.
8865
8866 2010-09-27 Ian Lance Taylor <iant@google.com>
8867
8868 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
8869 requires assembler support for CFI directives.
8870
8871 2010-09-27 Richard Henderson <rth@redhat.com>
8872
8873 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
8874
8875 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
8876
8877 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
8878 that AFTER is not in the range FROM..TO, inclusive.
8879
8880 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
8881 Bernd Schmidt <bernds@codesourcery.com>
8882
8883 PR rtl-optimization/45792
8884 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
8885 If not all insns are to be merged, for each edge, stash the
8886 next candidate after the to-be-merged insns before doing the
8887 merge, and use them for the retry at the new insertion point.
8888 Handle CC0 targets when retrying.
8889
8890 2010-09-27 Ian Lance Taylor <iant@google.com>
8891
8892 * common.opt (fsplit-stack): New option.
8893 * opts.c (decode_options): Set flag_split_stack to final value.
8894 * target.def (supports_split_stack): New hook.
8895 * gcc.c (STACK_SPLIT_SPEC): Define.
8896 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
8897 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
8898 (Code Gen Options): Document -fsplit-stack.
8899 * doc/extend.texi (Function Attributes): Mention no_split_stack.
8900 (Function Attributes): Document no_split_stack.
8901 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
8902 TARGET_SUPPORTS_SPLIT_STACK.
8903 * doc/tm.texi: Rebuild.
8904 * function.c (thread_prologue_and_epilogue_insns): If
8905 flag_split_stack, add split stack prologue.
8906 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
8907 * varasm.c (saw_no_split_stack): New static variable.
8908 (assemble_start_function): Set saw_no_split_stack if the function
8909 has the no_split_stack attribute.
8910 (file_end_indicate_split_stack): New function.
8911 * output.h (file_end_indicate_split_stack): Declare.
8912 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
8913 and function.
8914 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
8915 routines.
8916 * config/i386/i386.c (ix86_option_override_internal): Don't set
8917 expand_builtin_va_start to NULL if -fsplit-stack.
8918 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
8919 -fsplit-stack.
8920 (ix86_va_start): If -fsplit-stack, get overflow pointer from
8921 scratch register set by prologue.
8922 (ix86_code_end): If -fsplit-stack, call
8923 file_end_indicate_split_stack.
8924 (ix86_supports_split_stack): New static function.
8925 (SPLIT_STACK_AVAILABLE): Define.
8926 (split_stack_prologue_scratch_regno): New static function.
8927 (split_stack_fn): New static variable.
8928 (ix86_expand_split_stack_prologue): New function.
8929 (ix86_live_on_entry): New static function.
8930 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
8931 (output_pic_addr_const): Likewise.
8932 (i386_asm_output_addr_const_extra): Likewise.
8933 (ix86_expand_call): Change return type to rtx. Return the new
8934 call instruction.
8935 (TARGET_SUPPORTS_SPLIT_STACK): Define.
8936 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
8937 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
8938 (split_stack_prologue, split_stack_return): New insns.
8939 (split_stack_space_check): New insn.
8940 * config/i386/i386.h (struct machine_function): Add
8941 split_stack_varargs_pointer field.
8942 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
8943 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8944 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8945 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8946 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
8947 Declare.
8948 (ix86_expand_call): Update declaration.
8949
8950 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8951
8952 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
8953 code. Added byref, which was missing in the list of codes.
8954 Explain that enumeration values are encoded as the integer type
8955 that the compiler uses to store them. Explain and make examples
8956 of how 'const' interacts with pointers, and the complication of
8957 the encoding of 'const char *'.
8958 (Legacy type encoding): New subsection, explaining that GCC emits
8959 incorrect type encodings for the NeXT runtime for compatibility
8960 reasons.
8961 (@@encode): New subsection, explaining @encode and particularly
8962 that protocol qualifiers are not recognized inside an @encode()
8963 expression.
8964 (Method signatures): New subsection, explaining how method
8965 signatures are encoded.
8966
8967 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8968
8969 Merge from 'apple/trunk' branch on FSF servers. Removed small
8970 change in build_conditional_expr that had been added when fixing
8971 PR objc/27377 and which did the same check in a less complete way.
8972
8973 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8974
8975 Radar 4229905
8976 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
8977 looking for objective-c common pointer types.
8978
8979 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8980
8981 Radar 4154928
8982 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
8983 use their ObjC common type.
8984
8985 2010-09-27 Richard Guenther <rguenther@suse.de>
8986
8987 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
8988
8989 2010-09-27 Jie Zhang <jie@codesourcery.com>
8990
8991 * print-tree.c (print_node): Print in-constant-pool.
8992
8993 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
8994
8995 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
8996 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
8997 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
8998 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
8999
9000 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
9001
9002 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
9003 from pro_epilogue_adjust_stack_<mode>_{1,2}.
9004 (pro_epilogue_adjust_stack_<mode>_add): Rename from
9005 pro_epilogue_adjust_stack_<mode>_3.
9006 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
9007 renamed pro_epilogue_adjust_stack_{si,di}_add.
9008 (ix86_expand_prologue): Use indirect functions. Update for renamed
9009 pro_epilogue_adjust_stack_{si,di}_sub.
9010
9011 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
9012
9013 * config/i386/i386.md (movmsk_df): New insn.
9014 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
9015 sequence for TARGET_SSE_MATH.
9016
9017 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
9018
9019 * config/mips/mips.c (mips_builtin_decls): Declare.
9020 (mips_init_builtins): Store function declarations in
9021 mips_builtin_decls.
9022 (mips_builtin_decl): New function.
9023 (TARGET_BUILTIN_DECL): Define.
9024
9025 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
9026 Richard Henderson <rth@redhat.com>
9027
9028 * config/i386/cygwin.asm: Include auto-host.h.
9029 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
9030 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
9031 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
9032 alignment code from the 64-bit path. Use gas local labels.
9033 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
9034 from _di_2. Remove the useless constant integer argument.
9035 (pro_epilogue_adjust_stack_<mode>_3): New.
9036 (allocate_stack_worker_probe_<mode>): Macroize from
9037 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
9038 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
9039 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
9040 (__chkstk_ms): New function.
9041 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
9042 * config/i386/t-interix: Likewise.
9043 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
9044 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9045 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
9046 * configure, config.in: Rebuild.
9047
9048 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
9051 statements because of the return slot optimization.
9052
9053 2010-09-25 Anatoly Sokolov <aesok@post.ru>
9054
9055 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
9056 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
9057 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9058 (class_likely_spilled_p): Rename to...
9059 (avr_class_likely_spilled_p): ...this. Make static. Change argument
9060 type to reg_class_t.
9061
9062 2010-09-24 Jan Hubicka <jh@suse.cz>
9063
9064 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
9065 (lto_symtab_resolve_symbols): Set it.
9066 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
9067 store resolution field in cgraph/varpool.
9068 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
9069 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
9070 (cgraph_dump_node): Drop used_from_object_file.
9071 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
9072 (cgraph_function_body_availability): Use decl_replaceable_p.
9073 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
9074 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
9075 cgraph_used_from_object_file_p.
9076 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
9077 cgraph_used_from_object_file_p.
9078 (resolution_used_from_other_file_p): New functoin.
9079 (cgraph_used_from_object_file_p): New predicate.
9080 * cgraph.h: Include plugin-api.h
9081 (struct cgraph_local_info): Remove used_from_object_file.
9082 (struct cgraph_node): Add resolution field.
9083 (struct varpool_node): Likewise; remove used_from_object_file;
9084 reove const_value_known.
9085 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
9086 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
9087 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9088 varpool_used_from_object_file_p): Declare.
9089 (varpool_get_node, varpool_extra_name_alias): Update prototype.
9090 * tree.h (DECL_REPLACEABLE_P): Remove.
9091 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
9092 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
9093 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9094 input_overwrite_node, input_node, input_varpool_node): Stream
9095 resolution.
9096 * expr.c (expand_expr_real_1): Use const_value_known_p
9097 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
9098 const_value_known.
9099 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
9100 (function_and_variable_visibility): Set resolution for local vars
9101 and functions; use varpool_used_from_object_file_p.
9102 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
9103 static functions.
9104 (default_binds_local_p_1): Use resolutoin info.
9105 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
9106 * varpool.c (varpool_get_node): Constify.
9107 (const_value_known_p): Do not use vnode->const_value_known;
9108 use decl_replaceable_p.
9109 (varpool_finalize_decl): Do not set const_value_known.
9110 (cgraph_variable_initializer_availability): Use decl_replaceable_p
9111 (varpool_extra_name_alias): Return new node.
9112 (varpool_used_from_object_file_p): New function.
9113
9114 2010-09-24 Richard Henderson <rth@redhat.com>
9115
9116 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
9117 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
9118 (do_spill): Use REG_CFA_OFFSET.
9119 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
9120 as appropriate.
9121 (ia64_expand_epilogue): Likewise.
9122 (process_set): Split into ...
9123 (process_cfa_adjust_cfa): this,
9124 (process_cfa_register): this,
9125 (process_cfa_offset): and this new function.
9126 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
9127 instead of REG_FRAME_RELATED_EXPR.
9128
9129 2010-09-24 Olivier Hainque <hainque@adacore.com>
9130
9131 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
9132
9133 2010-09-24 Jan Hubicka <jh@suse.cz>
9134
9135 * doc/extend.texi: (attribute leaf): Document.
9136 * tree.c (local_define_builtin): Handle ECF_LEAF.
9137 (build_common_builtin_nodes): Set ECF_LEAF where needed.
9138 * tree.h (ECF_LEAF): New.
9139 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
9140 overwrittable and unavailable functions.
9141 (ipa_init): Put all_module_statics into optimization_summary_obstack.
9142 (copy_global_bitmap): Do not copy all_module_statics.
9143 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
9144 (propagate): Handle overwritable and unavailable leaf functions;
9145 initialize global info for overwritable and unavailable leaf functions;
9146 do not free all module statics.
9147 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
9148 local statics.
9149 * calls.c (flags_from_decl_or_type): Handle leaf.
9150 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
9151 abnormal gotos.
9152
9153 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
9154
9155 * gengtype.c: Reindented.
9156 * gengtype.h: Reindented.
9157 * gengtype-parse.c: Reindented.
9158
9159 2010-09-24 Jan Hubicka <jh@suse.cz>
9160
9161 PR tree-optimization/45738
9162 PR tree-optimization/45741
9163 * expr.c (string_constant): Allow CONST_DECL too;
9164 check that DECL_INITIAL is set.
9165 * varpool.c (const_value_known_p): Only look into VAR_DECL
9166 and CONST_DECL.
9167
9168 2010-09-24 Joseph Myers <joseph@codesourcery.com>
9169
9170 * common.opt (undef): New.
9171
9172 2010-09-24 Jakub Jelinek <jakub@redhat.com>
9173
9174 PR middle-end/45234
9175 * rtl.h (enum global_rtl_index): Add
9176 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
9177 (LAST_VIRTUAL_POINTER_REGISTER): Define.
9178 (virtual_preferred_stack_boundary_rtx,
9179 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
9180 (LAST_VIRTUAL_REGISTER): Increase by one.
9181 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
9182 instead of LAST_VIRTUAL_REGISTER.
9183 * function.c (instantiate_new_reg): Handle
9184 virtual_preferred_stack_boundary_rtx.
9185 * emit-rtl.c (init_virtual_regs): Handle
9186 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9187 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
9188 * explow.c (round_push): If crtl->preferred_stack_boundary
9189 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
9190 virtual_preferred_stack_boundary_rtx alignment instead of
9191 crtl->preferred_stack_boundary alignment.
9192 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
9193 macros. Never decrease crtl->preferred_stack_boundary,
9194 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
9195 instead of PREFERRED_STACK_BOUNDARY. Don't modify
9196 stack_pointer_delta in dynamic allocation, even when size
9197 is constant.
9198 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
9199 macro.
9200 * print-rtl.c (print_rtx): Handle
9201 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9202 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
9203 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
9204 * config/frv/frv.c (frv_emit_movsi): Likewise.
9205 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
9206 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
9207 Likewise.
9208
9209 Revert:
9210 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9211
9212 PR middle-end/45234
9213 * calls.c (expand_call): Make sure that all variable sized
9214 adjustments are multiple of preferred stack boundary after
9215 stack alignment.
9216
9217 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
9218 Dominique Dhumieres <dominiq@lps.ens.fr>
9219
9220 PR bootstrap/45751
9221 * config/darwin-driver.c (darwin_default_min_version):
9222 Adjust size passed to memcpy in two places.
9223
9224 2010-09-24 Richard Guenther <rguenther@suse.de>
9225
9226 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
9227 Make sure to not call set_type_context with error_mark_node.
9228 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
9229
9230 2010-09-24 Richard Guenther <rguenther@suse.de>
9231
9232 * Makefile.in (OBJS-onestep): Remove.
9233 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
9234 (libbackend.a): Remove onestep support.
9235 (libbackend.o): Remove.
9236 * configure.ac (--enable-intermodule): Remove.
9237 * configure: Regenerate.
9238
9239 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
9240
9241 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
9242 reaching the end of a block if it occurs at a DEBUG_INSN.
9243
9244 2010-09-09 Tristan Gingold <gingold@adacore.com>
9245
9246 PR target/44242
9247 * config/vms/vms-crt0-64.c: Removed.
9248 * config/vms/vms-crt0.c: Removed.
9249 * config/vms/vms-psxcrt0-64.c: Removed.
9250 * config/vms/vms-psxcrt0.c: Removed.
9251 * config/vms/vms-ucrt0.c: New file.
9252 * config/vms/t-vms64: Removed.
9253 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
9254 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
9255 * config.gcc (alpha-dec-vms): Use t-vms.
9256
9257 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9258
9259 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
9260 underfull hbox in DVI output.
9261 (-fobjc-class-cxx-cdtors): Same change.
9262 (-fobjc-exceptions): Tidied up documentation. Explain what the
9263 option does, but moved the (lenghty) description of the exception
9264 syntax into objc.texi.
9265 (-fobjc-gc): Explain that the option is not useful with the GNU
9266 runtime.
9267 (-fzero-link): Explain that the GNU runtime always works in
9268 "zero-link" mode.
9269 * doc/objc.texi: All sections: simplified @node declarations
9270 removing specification of next, previous, up node.
9271 (Objective-C): Updated introduction.
9272 (Garbage Collection): Updated. The bohem-gc library is now
9273 included in gcc itself. Mention that this section only applies to
9274 the GNU Objective-C runtime.
9275 (compatibility_alias): Small tidy up.
9276 (Exceptions): New section mostly containing text previously in the
9277 description of the -fobjc-exception command-line option.
9278 (Synchronization): Same.
9279
9280 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
9281
9282 * config/i386/i386.md (ix86_code_end): Move the initialization of
9283 xops array near the consumer. Use AX_REG and SP_REG instead of
9284 numerical constants.
9285
9286 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9287
9288 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
9289 method [methodname]' for an Objective-C method instead of the less
9290 satisfactory 'too many arguments to function' (with no method name).
9291
9292 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
9293
9294 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
9295 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
9296 (execute_update_addresses_taken): Remove parameter. Execute the
9297 optimization unconditionally.
9298 * passes.c (execute_function_todo): Call execute_update_addresses_taken
9299 unconditionally if TODO_rebuild_alias is set, else only when optimizing
9300 if TODO_update_address_taken is set.
9301
9302 2010-09-23 Anatoly Sokolov <aesok@post.ru>
9303
9304 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9305 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
9306 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9307 (arm_output_addr_const_extra): Make static.
9308
9309 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
9310
9311 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
9312 define as unspec_volatile.
9313 ("nops"): Define as unspec_volatile. Use fputs to write to
9314 asm_out_file directly. Output NOPs on separate lines using while loop.
9315 * config/i386/i386.c (ix86_code_end): Use fputs to write to
9316 asm_out_file directly. Output NOPs on separate lines using while loop.
9317
9318 2010-09-23 Richard Guenther <rguenther@suse.de>
9319
9320 PR tree-optimization/45565
9321 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9322 Make sure to adjust the fndecl before replacing the stmt.
9323
9324 2010-09-23 Richard Guenther <rguenther@suse.de>
9325
9326 PR middle-end/45750
9327 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
9328 gimplifying MEM_REF.
9329
9330 2010-09-23 Alan Modra <amodra@gmail.com>
9331
9332 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
9333 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
9334
9335 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
9336
9337 PR rtl-optimization/44374
9338 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
9339 * df-core.c (df_set_bb_dirty): Set it.
9340 * ifcvt.c (find_memory): Remove function.
9341 (dead_or_predicable): Use can_move_insns_across.
9342 * df.h (can_move_insns_across): Declare function.
9343 * cfgcleanup.c (block_was_dirty): New static variable.
9344 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
9345 than df_get_bb_dirty.
9346 (try_head_merge_bb): New static function.
9347 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
9348 is set.
9349 * df-problems.c: Include "target.h"
9350 (df_simulate_find_uses): New static function.
9351 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
9352 (find_memory, find_memory_store): New static functions.
9353 (can_move_insns_across): New function.
9354 * Makefile.in (df-problems.o): Update dependencies.
9355
9356 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
9357
9358 PR java/44095
9359 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
9360 is specified and the suffix of the file isn't ".c".
9361 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9362
9363 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9364
9365 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
9366 * doc/cppopts.texi: Fix markup of index entry.
9367 * doc/extend.texi (Constructing Calls): Fix markup of
9368 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
9369 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
9370 (Vague Linkage, C++ Attributes): Fix markup of index entries and
9371 keywords.
9372 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
9373 avoid long lines.
9374 (C Dialect Options, C++ Dialect Options, Warning Options)
9375 (Debugging Options, Spec Files, Darwin Options)
9376 (i386 and x86-64 Options, MIPS Options)
9377 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
9378 index entries, avoid abbreviations, allow URLs to wrap, avoid
9379 long lines, avoid overlong pages from long @itemx lists.
9380 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
9381 * doc/standards.texi (Standards): Likewise.
9382 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
9383
9384 2010-09-22 Joseph Myers <joseph@codesourcery.com>
9385
9386 * opts-common.c (prune_options): Make static. Work with decoded
9387 options.
9388 (decode_cmdline_options_to_array): Call prune_options. Don't
9389 resize option array here.
9390 * opts.h (prune_options): Remove prototype.
9391 * gcc.c (process_command): Take decoded options; don't call
9392 decode_cmdline_options_to_array here. Use decoded options for argv[0].
9393 (main): Call decode_cmdline_options_to_array here instead of
9394 prune_options. Update call to process_command.
9395 * config/darwin-driver.c: Include opts.h.
9396 (darwin_default_min_version): Work with decoded options. Don't
9397 handle -b or -V here.
9398 * config/darwin.h (darwin_default_min_version): Update prototype.
9399 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
9400 darwin_default_min_version.
9401 * config/i386/cygwin.h (mingw_scan): Update prototype.
9402 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
9403 * config/i386/cygwin1.c: Include opts.h.
9404 (mingw_scan): Work with decoded options.
9405 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
9406 * config/t-darwin (darwin-driver.o): Update dependencies.
9407
9408 2010-09-22 Joseph Myers <joseph@codesourcery.com>
9409
9410 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
9411 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
9412 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
9413 -force-link, -force-link=, -language, -language=,
9414 -library-directory, -library-directory=, -no-canonical-prefixes,
9415 -no-standard-libraries, -no-warnings, -optimize, -output,
9416 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
9417 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
9418 -print-file-name=, -print-libgcc-file-name,
9419 -print-multi-directory, -print-multi-lib,
9420 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
9421 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
9422 -profile, -save-temps, -shared, -specs, -specs=, -static,
9423 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
9424 symbolic): New.
9425 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
9426 * gcc.c (A Short Introduction to Adding a Command-Line Option):
9427 Remove comment.
9428 (cc1_options): Correct specs for passing down --help,
9429 --target-help and --help=*. Add spec for passing down --version.
9430 (struct option_map, option_map, target_option_translations,
9431 translate_options): Remove.
9432 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
9433 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
9434 OPT_fhelp_ and OPT_ftarget_help.
9435 (process_command): Don't call translate_options. Call
9436 decode_cmdline_options_to_array before checking for
9437 -no-canonical-prefixes using decoded options.
9438 * opts-common.c (tm.h): Update comment on #include.
9439 (find_opt): Allow abbreviations of long options.
9440 (struct option_map, option_map): New.
9441 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
9442 and -mno handling.
9443 (target_option_translations): New.
9444 (decode_cmdline_options_to_array): Handle
9445 TARGET_OPTION_TRANSLATE_TABLE in driver.
9446 * opts.c (common_handle_option): Don't handle OPT_fhelp,
9447 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
9448
9449 2010-09-22 Richard Guenther <rguenther@suse.de>
9450
9451 * tree-inline.c (optimize_inline_calls): Schedule cleanups
9452 only if we inlined something. Block compaction and conditional
9453 folding are done by cfg cleanup. Schedule update-address-taken.
9454 (tree_function_versioning): Remove redundant call to number_blocks.
9455 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
9456 folding is done by cfg cleanup.
9457 * passes.c (init_optimization_passes): Remove update-address-taken
9458 pass after IPA inlining.
9459
9460 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9461
9462 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
9463 to update conditions. Fix reg_mode[] check.
9464
9465 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
9466
9467 * config/picochip/picochip.md (movhicc): Use expand to check whether
9468 movhicc is available and split it after reload.
9469
9470 2010-09-22 Richard Guenther <rguenther@suse.de>
9471
9472 * tree-ssanames.c (release_dead_ssa_names): Do not remove
9473 callee edges here.
9474 * passes.c (init_optimization_passes): Remove early CFG cleanup.
9475 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
9476 (pass_cleanup_cfg): Likewise.
9477 (execute_fixup_cfg): Cleanup.
9478 * tree-pass.h (pass_cleanup_cfg): Remove.
9479
9480 2010-09-22 Martin Jambor <mjambor@suse.cz>
9481
9482 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
9483 builtins if it is true.
9484 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
9485 parameter.
9486
9487 2010-09-22 Martin Jambor <mjambor@suse.cz>
9488
9489 * tree-sra.c (struct access): New field grp_no_warning.
9490 (create_access_replacement): Set TREE_NO_WARNING according to
9491 grp_no_warning.
9492 (create_artificial_child_access): Use build_ref_for_model and set
9493 grp_no_warning if build_user_friendly_ref_for_offset fails.
9494 (propagate_subaccesses_across_link): Likewise.
9495
9496 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
9497
9498 PR target/35664
9499 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
9500 ('f'): Likewise.
9501
9502 2010-09-22 Tristan Gingold <gingold@adacore.com>
9503
9504 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
9505
9506 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
9507
9508 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
9509 * config/i386/i386.c (decide_alg): Update for rename.
9510
9511 2010-09-22 Jakub Jelinek <jakub@redhat.com>
9512
9513 PR rtl-optimization/45739
9514 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
9515 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
9516
9517 2010-09-21 Anatoly Sokolov <aesok@post.ru>
9518
9519 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
9520 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
9521 Remove.
9522 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
9523 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9524
9525 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9526
9527 PR objc/23710
9528 * c-parser.c (c_parser_objc_method_definition): Check the return
9529 value of objc_start_method_definition and if false is returned,
9530 parse the method definition but emit no code.
9531
9532 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9533
9534 PR objc/25965
9535 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
9536 call objc_get_interface_ivars ().
9537
9538 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
9539
9540 PR target/45694
9541 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
9542 static chain-register is used for 64-bit.
9543
9544 2010-09-21 Richard Guenther <rguenther@suse.de>
9545
9546 * dwarf2out.c (is_cu_die): New function.
9547 (add_pubtype): Use it.
9548 (gen_subprogram_die): Likewise.
9549 (gen_struct_or_union_type_die): Likewise.
9550 (dwarf2out_finish): Likewise.
9551 (comp_unit_die): Rename to ...
9552 (single_comp_unit_die): ... this.
9553 (comp_unit_die): New function lazily constructing and
9554 returning single_comp_unit_die.
9555 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
9556 base_type_die, subrange_type_die, modified_type_die,
9557 lower_bound_default, add_bound_info, add_prototyped_attribute,
9558 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
9559 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
9560 force_decl_die, gen_namespace_die, dwarf2out_decl,
9561 dwarf2out_start_source_file, dwarf2out_end_source_file,
9562 prune_unused_types, dwarf2out_finish): Use it.
9563 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
9564 the global list of translation-unit decls.
9565 (dwarf2out_init): Do not create single_comp_unit_die here.
9566 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
9567
9568 2010-09-21 Richard Guenther <rguenther@suse.de>
9569
9570 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
9571 for bool for C++.
9572
9573 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
9574
9575 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
9576 (qhs_extenddi_cstr): Likewise.
9577 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
9578 them for the source operand.
9579
9580 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
9581
9582 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
9583 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
9584 (ix86_split_ashr): Ditto.
9585 (ix86_split_lshr): Ditto.
9586
9587 2010-09-21 Richard Guenther <rguenther@suse.de>
9588
9589 PR tree-optimization/45580
9590 * tree-ssa-propagate.c (substitute_and_fold): Always replace
9591 regular uses.
9592 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
9593 virtuals fold the call into a regular indirect one.
9594
9595 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
9596
9597 PR rtl-optimization/42775
9598 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
9599 scheduling is enabled.
9600
9601 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9602
9603 PR rtl-optimization/45728
9604 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
9605 gen_lowpart_common first and if that fails, force_reg first
9606 before calling gen_lowpart.
9607
9608 PR middle-end/45678
9609 * cfgexpand.c (expand_one_stack_var_at): Use
9610 crtl->max_used_stack_slot_alignment as max_align, instead
9611 of maximum of that and PREFERRED_STACK_BOUNDARY.
9612 Don't call update_stack_alignment.
9613
9614 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
9615
9616 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
9617 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
9618 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
9619 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
9620 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
9621 (build_nonstandard_integer_type): Likewise.
9622 (build_range_type_1): New function, built from...
9623 (build_range_type): ...this. Call build_range_type_1.
9624 (build_nonshared_range_type): New function.
9625 (build_array_type_1): New function, built from...
9626 (build_array_type: ...this. Call build_array_type_1.
9627 (build_nonshared_array_type): New function.
9628 * tree.h (build_nonshared_range_type): Declare.
9629 (build_nonshared_array_type): Likewise.
9630
9631 2010-09-20 Anatoly Sokolov <aesok@post.ru>
9632
9633 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
9634 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9635 (arm_class_likely_spilled_p): New function.
9636
9637 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
9638
9639 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
9640 indirect functions.
9641 (ix86_split_ashl): Ditto.
9642 (ix86_split_ashr): Ditto.
9643 (ix86_split_lshr): Ditto.
9644 (ix86_adjust_counter): Ditto.
9645
9646 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
9647
9648 * c-family/c-common.h (constant_string_class): Documented with
9649 comment identical to the one already in c-common.c.
9650
9651 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9652
9653 * dwarf2out.c (any_cfis_emitted): New static variable.
9654 (add_fde_cfi): Set it.
9655 (dwarf2out_frame_debug): Clear it before processing,
9656 if it is set afterwards, flush any queued reg saves.
9657
9658 PR debug/45124
9659 * dwarf2out.c (add_accessibility_attribute): Assume
9660 DW_ACCESS_private as the default for dwarf_version > 2
9661 and DW_TAG_class_type parent.
9662 (gen_inheritance_die): Assume DW_ACCESS_public as the default
9663 for dwarf_version > 2 and parent other than DW_TAG_class_type.
9664
9665 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
9666
9667 PR target/45726
9668 * arm.md (arm_movt): Only enable on machines with MOVT.
9669
9670 2010-09-20 Jie Zhang <jie@codesourcery.com>
9671
9672 * config/arm/arm.c (arm_address_offset_is_imm): New.
9673 (arm_early_store_addr_dep): New.
9674 (arm_early_load_addr_dep): New.
9675 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
9676 (arm_early_load_addr_dep): Declare.
9677 (arm_address_offset_is_imm): Declare.
9678 * config/arm/cortex-m4.md: New file.
9679 * config/arm/cortex-m4-fpu.md: New file.
9680 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
9681 (attr generic_sched): Exclude cortexm4.
9682 (attr generic_vfp): Exclude cortexm4.
9683
9684 2010-09-20 Richard Guenther <rguenther@suse.de>
9685
9686 PR middle-end/45704
9687 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
9688
9689 2010-09-20 Jan Hubicka <jh@suse.cz>
9690
9691 PR tree-optimize/45605
9692 * cgraph.h (const_value_known_p): Declare.
9693 (varpool_decide_const_value_known): Remove.
9694 * tree-ssa-ccp.c (get_base_constructor): Use it.
9695 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
9696 * expr.c (string_constant): Likewise.
9697 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
9698 * ipa.c (ipa_discover_readonly_nonaddressable_var,
9699 function_and_variable_visibility): Likewise.
9700 * gimplify.c (gimplify_call_expr): Likewise.
9701 * gimple-fold.c (get_symbol_constant_value): Likewise.
9702 * varpool.c (varpool_decide_const_value_known): Replace by...
9703 (const_value_known_p): ... this one; handle other kinds of DECLs
9704 too and work for automatic vars.
9705 (varpool_finalize_decl): Use const_value_known_p.
9706
9707 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
9708
9709 PR target/45726
9710 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
9711
9712 2010-09-20 Richard Guenther <rguenther@suse.de>
9713
9714 PR tree-optimization/45705
9715 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
9716
9717 2010-09-20 Jakub Jelinek <jakub@redhat.com>
9718
9719 PR rtl-optimization/45695
9720 * combine.c (try_combine): When splitting a two set pattern,
9721 make sure the pattern which will be put into i2 doesn't use REGs
9722 or MEMs set by insns in between i2 and i3.
9723
9724 2010-09-19 Jan Hubicka <jh@suse.cz>
9725
9726 PR lto/44246
9727 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
9728 processing same node twice.
9729
9730 2010-09-19 Anatoly Sokolov <aesok@post.ru>
9731
9732 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
9733 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9734 (bfin_class_likely_spilled_p): New function
9735
9736 2010-09-19 Ira Rosen <irar@il.ibm.com>
9737
9738 PR tree-optimization/45714
9739 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
9740 created in vectorizable_call instead of the original statement in
9741 def stmt updates.
9742
9743 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
9744
9745 * config/i386/i386-protos.h (split_double_mode): New prototype.
9746 (split_di, split_ti): Remove prototypes.
9747 * config/i386/i386.c (split_double_mode): New function.
9748 (split_di, split_ti): Remove.
9749 (ix86_expand_branch): Use split_double_mode.
9750 (ix86_split_to_parts): Ditto.
9751 (ix86_split_ashl): Ditto.
9752 (ix86_split_ashr): Ditto.
9753 (ix86_split_lshr): Ditto.
9754 (ix86_force_to_memory): Ditto.
9755 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
9756
9757 2010-09-18 Jan Hubicka <jh@suse.cz>
9758
9759 PR tree-optimization/45453
9760 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
9761 virtual functions are reachable.
9762 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
9763 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9764 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
9765 when modifying function.
9766
9767 2010-09-18 Jan Hubicka <jh@suse.cz>
9768
9769 PR tree-optimization/45605
9770 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
9771 * gimple-fold.c (static_object_in_other_unit_p): New function.
9772 (canonicalize_constructor_val): Use it.
9773 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
9774 returning NULL.
9775 (gimple_fold_obj_type_ref_known_binfo): Use
9776 static_object_in_other_unit_p.
9777
9778 2010-09-18 Richard Guenther <rguenther@suse.de>
9779
9780 PR tree-optimization/45709
9781 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
9782 insertions until after all PHI nodes of the block are processed.
9783
9784 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
9785
9786 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
9787
9788 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
9789
9790 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
9791
9792 2010-09-18 Richard Guenther <rguenther@suse.de>
9793
9794 PR tree-optimization/45709
9795 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
9796
9797 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
9798
9799 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
9800 (dot_deps_stmt): Same.
9801 * graphite-poly.c (dot_lst): Same.
9802 * graphite-scop-detection.c (dot_all_scops): Same.
9803 (dot_scop): Same.
9804
9805 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
9806
9807 Revert:
9808 2009-12-16 Ben Elliston <bje@au.ibm.com>
9809
9810 * tree-data-ref.c (dot_rdg_1): Added back.
9811 (dot_rdg): Same. Added "#if 0" around system call.
9812
9813 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9814 Richard Henderson <rth@redhat.com>
9815
9816 * config/i386/i386.c (initial_ix86_tune_features): Add
9817 X86_TUNE_PAD_SHORT_FUNCTION.
9818 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
9819 (ix86_count_insn): New.
9820 (ix86_pad_short_function): Likewise.
9821 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
9822
9823 * config/i386/i386.h (ix86_tune_indices): Add
9824 X86_TUNE_PAD_SHORT_FUNCTION.
9825 (TARGET_PAD_SHORT_FUNCTION): New.
9826
9827 * config/i386/i386.md (UNSPEC_NOPS): New.
9828 (nops): Likewise.
9829
9830 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9831
9832 PR middle-end/45234
9833 * calls.c (expand_call): Make sure that all variable sized
9834 adjustments are multiple of preferred stack boundary after
9835 stack alignment.
9836
9837 2010-09-17 DJ Delorie <dj@redhat.com>
9838
9839 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
9840 passed an invalid value, print an error instead of ICEing.
9841 (valid_psw_flag): New.
9842 (rx_expand_builtin): Call it for setpsw/clrpsw.
9843 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
9844
9845 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
9846 (bitclr_in_memory): Likewise.
9847 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
9848
9849 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9850
9851 PR middle-end/45678
9852 * cfgexpand.c (update_stack_alignment): New.
9853 (get_decl_align_unit): Use it.
9854 (expand_one_stack_var_at): Call update_stack_alignment.
9855
9856 2010-09-17 Richard Guenther <rguenther@suse.de>
9857
9858 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
9859 Properly copy the read string.
9860
9861 2010-09-17 Joseph Myers <joseph@codesourcery.com>
9862
9863 * doc/options.texi (Variable): Document.
9864 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
9865 generate target_flags declarations explicitly. Don't define
9866 VarExists variables for the driver.
9867 * common.opt (target_flags): New Variable record.
9868 (flag_dump_unnumbered, flag_dump_unnumbered_links,
9869 flag_var_tracking, flag_var_tracking_assignments,
9870 flag_var_tracking_assignments_toggle): Don't mark variables with
9871 VarExists.
9872 * config/i386/i386.c (ix86_isa_flags): Don't define here.
9873 * config/i386/i386.opt (ix86_isa_flags): Define here.
9874 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
9875 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
9876 VarExists.
9877 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
9878 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
9879 Only define for generator programs.
9880 * rtlanal.c (target_flags): Remove.
9881 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
9882 flag_var_tracking_assignments_toggle): Remove.
9883
9884 2010-09-17 Michael Matz <matz@suse.de>
9885
9886 PR tree-optimization/43432
9887 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9888 Accept backwards consecutive accesses.
9889 (vect_create_data_ref_ptr): If step is negative generate
9890 decreasing IVs.
9891 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
9892 (perm_mask_for_reverse, reverse_vec_elements): New functions.
9893 (vectorizable_load): Handle loads with negative steps when easily
9894 possible.
9895
9896 2010-09-03 Jan Hubicka <jh@suse.cz>
9897
9898 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
9899
9900 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
9901
9902 * config/v850/v850.c (v850_function_value_regno_p): Make static.
9903 Adjust comments. Declare.
9904 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9905 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
9906
9907 2010-09-17 Richard Guenther <rguenther@suse.de>
9908
9909 * common.opt (combine): Remove.
9910 * gcc.c (default_compilers): Remove specs testing combine.
9911 The C compilers no longer can combine.
9912 (option_map): Remove -combine.
9913 (display_help): Remove -combine.
9914 (driver_handle_option): Remove OPT_combine handling.
9915 (compile_input_file_p): Remove.
9916 (do_spec): Remove code concerning combine.
9917 (main): Likewise.
9918 * doc/invoke.texi: Remove traces of -combine.
9919 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
9920
9921 2010-09-17 Richard Guenther <rguenther@suse.de>
9922
9923 PR middle-end/45678
9924 * builtins.c (fold_builtin_memory_op): Always properly adjust
9925 alignment of memory accesses.
9926
9927 2010-09-16 Jan Hubicka <jh@suse.cz>
9928
9929 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
9930 processing clone.
9931
9932 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
9935
9936 * config/i386/i386.c (predict_jump): Add prototype.
9937 (flag_opts): Add -m8bit-idiv.
9938 (ix86_split_idivmod): New.
9939
9940 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
9941 Add 2 splitters for SI/DI mode divide.
9942 (divmod<mode>4_1): New pattern.
9943 (udivmod<mode>4_1): Likewise.
9944 (testdi_ccno_1): Likewise.
9945
9946 * config/i386/i386.opt (m8bit-idiv): New.
9947
9948 * doc/invoke.texi: Document -m8bit-idiv.
9949
9950 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
9951
9952 PR bootstrap/45680
9953 * config/i386/i386.c (min_insn_size): Moved out of the
9954 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
9955
9956 2010-09-16 Jan Hubicka <jh@suse.cz>
9957
9958 * lto-cgraph.c (lto_output_node): Fix handling of clones.
9959 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
9960 unreachable clones with reachable clones.
9961 * tree-inline.c (copy_bb): Fix sanity checking when producing
9962 unreachable clone.
9963
9964 2010-09-16 Anatoly Sokolov <aesok@post.ru>
9965
9966 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
9967 (TARGET_MEMORY_MOVE_COST): Define.
9968 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
9969
9970 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
9971
9972 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
9973 maybe_tidy_empty_bb.
9974
9975 Revert:
9976 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
9977 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9978
9979 2010-09-16 Joseph Myers <joseph@codesourcery.com>
9980
9981 * target.def (target_option.optimization): New hook.
9982 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
9983 TARGET_OPTION_OPTIMIZATION hook.
9984 * doc/tm.texi: Regenerate.
9985 * hooks.c (hook_void_int_int): New.
9986 * hooks.h (hook_void_int_int): Declare.
9987 * opts.c: Don't include tm_p.h.
9988 (decode_options): Use targetm.target_option.optimization instead
9989 of OPTIMIZATION_OPTIONS.
9990 * system.h (OPTIMIZATION_OPTIONS): Poison.
9991 * config/arm/arm-protos.h (arm_optimization_options): Remove.
9992 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
9993 (arm_optimization_options): Rename to arm_option_optimization.
9994 Make static.
9995 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
9996 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
9997 (cris_option_optimization): New.
9998 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
9999 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
10000 (crx_option_optimization): New.
10001 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
10002 * config/frv/frv-protos.h (frv_optimization_options): Remove.
10003 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
10004 (frv_optimization_options): Rename to frv_option_optimization.
10005 Make static.
10006 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
10007 * config/h8300/h8300.c (h8300_option_optimization): New.
10008 (TARGET_OPTION_OPTIMIZATION): Define.
10009 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
10010 * config/i386/i386-protos.h (optimization_options): Remove.
10011 * config/i386/i386.c (optimization_options): Rename to
10012 ix86_option_optimization. Make static.
10013 (TARGET_OPTION_OPTIMIZATION): Define.
10014 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
10015 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
10016 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
10017 (ia64_optimization_options): Rename to ia64_option_optimization.
10018 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
10019 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
10020 commented-out definition.
10021 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
10022 instead of OPTIMIZATION_OPTIONS.
10023 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
10024 (m32r_option_optimization): New.
10025 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
10026 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
10027 Remove.
10028 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
10029 (mcore_option_optimization): New.
10030 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
10031 * config/mep/mep-protos.h (mep_optimization_options): Remove.
10032 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
10033 (mep_optimization_options): Rename to mep_option_optimization.
10034 Make static. Take unused level and size parameters.
10035 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
10036 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
10037 (mmix_option_optimization): New.
10038 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
10039 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
10040 (pdp11_option_optimization): New.
10041 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
10042 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
10043 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
10044 (optimization_options): Rename to rs6000_option_optimization.
10045 Make static.
10046 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
10047 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
10048 * config/rx/rx.c (rx_set_optimization_options): Rename to
10049 rx_option_optimization. Make static. Take unused level and size
10050 parameters.
10051 (TARGET_OPTION_OPTIMIZATION): Define.
10052 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
10053 * config/s390/s390-protos.h (optimization_options): Remove.
10054 * config/s390/s390.c (optimization_options): Rename to
10055 s390_option_optimization. Make static. Don't mark size parameter
10056 unused.
10057 (TARGET_OPTION_OPTIMIZATION): Define.
10058 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
10059 * config/sh/sh-protos.h (sh_optimization_options): Remove.
10060 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
10061 (sh_optimization_options): Rename to sh_option_optimization. Make
10062 static. Don't mark parameters unused.
10063 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
10064 * config/spu/spu-protos.h (spu_optimization_options): Remove.
10065 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
10066 (spu_optimization_options): Rename to spu_option_optimization.
10067 Make static.
10068 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
10069 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
10070 (v850_option_optimization): New.
10071 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
10072 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
10073 (xtensa_option_optimization): New.
10074 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
10075
10076 2010-09-16 Joseph Myers <joseph@codesourcery.com>
10077
10078 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
10079 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
10080 * doc/tm.texi: Regenerate.
10081 * system.h (OVERRIDE_OPTIONS): Poison.
10082 * target.def (override): Default to hook_void_void.
10083 * targhooks.c (default_target_option_override): Remove.
10084 * genmodes.c, machmode.def: Update comments mentioning
10085 OVERRIDE_OPTIONS.
10086 * config/alpha/alpha-modes.def: Update comment mentioning
10087 alpha_override_options.
10088 * config/alpha/alpha-protos.h (override_options): Remove.
10089 * config/alpha/alpha.c (override_options): Rename to
10090 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
10091 (TARGET_OPTION_OVERRIDE): Define.
10092 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
10093 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
10094 of OVERRIDE_OPTIONS.
10095 * config/arc/arc-protos.h (arc_init): Remove.
10096 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
10097 (arc_init): Rename to arc_option_override. Make static.
10098 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
10099 (OVERRIDE_OPTIONS): Remove.
10100 * config/arm/arm-protos.h (arm_override_options): Remove.
10101 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
10102 (arm_override_options): Rename to arm_option_override. Make
10103 static. Call SUBTARGET_OVERRIDE_OPTIONS.
10104 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
10105 * config/arm/arm.md: Update comment referring to arm_override_options.
10106 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10107 instead of OVERRIDE_OPTIONS.
10108 * config/avr/avr-protos.h (avr_override_options): Remove.
10109 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
10110 (avr_override_options): Rename to avr_option_override. Make static.
10111 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
10112 * config/bfin/bfin-protos.h (override_options): Remove (twice).
10113 * config/bfin/bfin.c (override_options): Rename to
10114 bfin_option_override. Make static.
10115 (TARGET_OPTION_OVERRIDE): Define.
10116 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
10117 * config/cris/cris-protos.h (cris_override_options): Remove.
10118 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
10119 (cris_override_options): Rename to cris_option_override. Make static.
10120 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
10121 * config/frv/frv-protos.h (frv_override_options): Remove.
10122 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
10123 (frv_override_options): Rename to frv_option_override. Make static.
10124 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
10125 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
10126 * config/h8300/h8300.c (h8300_init_once): Rename to
10127 h8300_option_override. Make static.
10128 (TARGET_OPTION_OVERRIDE): Define.
10129 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
10130 * config/i386/i386-protos.h (override_options): Remove.
10131 * config/i386/i386.c (override_options): Rename to
10132 ix86_option_override_internal. Make static. Comments referring
10133 to this function and callers changed.
10134 (ix86_option_override): New.
10135 (TARGET_OPTION_OVERRIDE): Define.
10136 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
10137 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
10138 * config/ia64/ia64.c (ia64_file_start): Update comment referring
10139 to ia64_override_options.
10140 * config/iq2000/iq2000-protos.h (override_options): Remove.
10141 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
10142 (override_options): Rename to iq2000_option_override. Make static.
10143 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
10144 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
10145 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
10146 (lm32_override_options): Rename to lm32_option_override. Make static.
10147 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
10148 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
10149 (m32r_option_override): New.
10150 (m32r_init): Update comment.
10151 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
10152 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
10153 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
10154 (m68hc11_override_options): Rename to m68hc11_option_override.
10155 Make static. Return void.
10156 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
10157 * config/m68k/m68k-protos.h (override_options): Remove.
10158 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
10159 (override_options): Rename to m68k_option_override. Make static.
10160 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
10161 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
10162 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
10163 (mcore_override_options): Rename to mcore_option_override. Make
10164 static.
10165 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
10166 * config/mep/mep-protos.h (mep_override_options): Remove.
10167 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
10168 (mep_override_options): Rename to mep_option_override. Make static.
10169 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
10170 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
10171 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
10172 (mmix_override_options): Rename to mmix_option_override. Make static.
10173 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
10174 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
10175 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
10176 (mn10300_override_options): Rename to mn10300_option_override.
10177 Make static.
10178 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
10179 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
10180 * config/moxie/moxie.c (moxie_override_options): Rename to
10181 moxie_option_override. Make static.
10182 (TARGET_OPTION_OVERRIDE): Define.
10183 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
10184 * config/picochip/picochip-protos.h (picochip_override_options):
10185 Remove. Update comment referring to picochip_override_options.
10186 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
10187 (picochip_override_options): Rename to picochip_option_override.
10188 Make static. Update comment and definition of
10189 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
10190 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
10191 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10192 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10193 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10194 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10195 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10196 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
10197 instead of OVERRIDE_OPTIONS.
10198 * config/rs6000/rs6000-modes.def: Update comment referring to
10199 rs6000_override_options.
10200 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
10201 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
10202 (rs6000_override_options): Rename to
10203 rs6000_option_override_internal. Make static. Commented
10204 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
10205 (rs6000_option_override): New.
10206 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
10207 instead of OVERRIDE_OPTIONS.
10208 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10209 * config/s390/s390-protos.h (override_options): Remove.
10210 * config/s390/s390.c (override_options): Rename to
10211 s390_option_override. Make static.
10212 (TARGET_OPTION_OVERRIDE): Define.
10213 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
10214 * config/score/score-protos.h (score_override_options): Remove.
10215 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
10216 (score_override_options): Rename to score_option_override. Make
10217 static.
10218 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
10219 Update comment referring to override_options.
10220 * config/score/score3.c (score3_override_options): Rename to
10221 score3_option_override.
10222 * config/score/score3.h (score3_override_options): Rename to
10223 score3_option_override.
10224 * config/score/score7.c (score7_override_options): Rename to
10225 score7_option_override.
10226 * config/score/score7.h (score7_override_options): Rename to
10227 score7_option_override.
10228 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
10229 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
10230 (sparc_override_options): Rename to sparc_option_override. Make
10231 static. Call SUBTARGET_OVERRIDE_OPTIONS.
10232 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
10233 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10234 instead of OVERRIDE_OPTIONS.
10235 * config/spu/spu-protos.h (spu_override_options): Remove.
10236 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
10237 (spu_override_options): Rename to spu_option_override. Make
10238 static.
10239 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
10240 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
10241 OVERRIDE_OPTIONS.
10242 * config/vax/vax-protos.h (override_options): Remove.
10243 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
10244 (override_options): Rename to vax_option_override. Make static.
10245 Call SUBTARGET_OVERRIDE_OPTIONS.
10246 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
10247 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
10248 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
10249 * config/xtensa/xtensa-protos.h (override_options): Remove.
10250 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
10251 (override_options): Rename to xtensa_option_override. Make static.
10252 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
10253
10254 2010-09-16 Richard Guenther <rguenther@suse.de>
10255
10256 PR tree-optimization/45623
10257 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
10258 (get_constraint_for_component_ref): If computing a constraint
10259 for the rhs handle type punning through unions.
10260 (get_constraint_for_address_of): Adjust.
10261 (get_constraint_for_1): Likewise.
10262 (get_constraint_for): Likewise.
10263 (get_constraint_for_rhs): New function.
10264 (do_structure_copy): Adjust.
10265 (make_constraint_to): Likewise.
10266 (handle_const_call): Likewise.
10267 (find_func_aliases): Likewise.
10268 (process_ipa_clobber): Likewise.
10269 (create_variable_info_for): Likewise.
10270
10271 2010-09-16 Ira Rosen <irar@il.ibm.com>
10272
10273 * tree-vectorizer.c: Fix documentation.
10274 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
10275 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
10276 is_pattern_stmt_p, is_loop_header_bb_p,
10277 stmt_vinfo_set_inside_of_loop_cost,
10278 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
10279 known_alignment_for_access_p): Likewise.
10280 * tree-vect-loop.c: Fix documentation.
10281 (vect_get_cost): Start function name from new line.
10282 * tree-vect-data-refs.c: Fix documentation.
10283 * tree-vect_stmts.c: Likewise.
10284 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
10285 (vectorizable_store): Free vec_oprnds if allocated.
10286 (vectorizable_condition): Initialize several variables to avoid
10287 warnings.
10288 * tree-vect-slp.c: Fix documentation.
10289
10290 2010-09-16 Richard Guenther <rguenther@suse.de>
10291
10292 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
10293 is TS_TRANSLATION_UNIT_DECL.
10294 (initialize_tree_contains_struct): Adjust.
10295 (all_translation_units): New global vector.
10296 (build_translation_unit_decl): New function.
10297 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
10298 (struct tree_translation_unit_decl): New.
10299 (all_translation_units): Declare.
10300 (union tree_node): Add translation_unit_decl member.
10301 (build_translation_unit_decl): Declare.
10302 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
10303 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
10304 New function.
10305 (pack_value_fields): Call it.
10306 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
10307 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
10308 (lto_output_tree_pointers): Call it.
10309 * lto-streamer-in.c (lto_input_tree_ref): Handle references
10310 to TRANSLATION_UNIT_DECL.
10311 (unpack_ts_translation_unit_decl_value_fields): New function.
10312 (unpack_value_fields): Call it.
10313 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
10314 (lto_input_tree_pointers): Call it.
10315 * lto-streamer.c (check_handled_ts_structures): Adjust.
10316 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
10317 * c-decl.c (all_translation_units): Remove.
10318 (pop_scope): Use build_translation_unit_decl.
10319 (collect_all_refs): Adjust.
10320 (for_each_global_decl): Likewise.
10321 (c_write_global_declarations): Likewise.
10322
10323 2010-09-16 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR bootstrap/45686
10326 * fold-const.c (fold_checksum_tree): Change slot from const void **
10327 to void **, use CONST_CAST_TREE to store into *slot.
10328
10329 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10330
10331 * config/i386/i386.md: Remove unneeded empty conditions and
10332 preparation statements from expanders.
10333 * config/i386/mmx.md: Ditto.
10334 * config/i386/sse.md: Ditto.
10335
10336 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10337
10338 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
10339
10340 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
10341
10342 PR rtl-optimization/45593
10343 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
10344 insns that were in delay slots as stand-alone insns.
10345
10346 2010-09-15 Ian Lance Taylor <iant@google.com>
10347
10348 * incpath.c (remove_duplicates): If name is not a directory, issue
10349 a warning rather than an error.
10350
10351 2010-09-15 Martin Jambor <mjambor@suse.cz>
10352
10353 PR middle-end/45644
10354 * tree-sra.c (create_access): Check for bit-fields directly.
10355
10356 2010-09-15 Jakub Jelinek <jakub@redhat.com>
10357
10358 PR tree-optimization/45633
10359 * tree-cfg.c (verify_gimple_assign_binary): Allow
10360 MINUS_EXPR with lhs and rhs1 pointer vector and
10361 rhs2 sizetype vector.
10362 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
10363 or vector pointer use TER to optimize pointer subtraction.
10364
10365 2010-09-15 Jie Zhang <jie@codesourcery.com>
10366
10367 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
10368 fcmpd to fcmps.
10369
10370 2010-09-15 Ian Lance Taylor <iant@google.com>
10371
10372 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
10373
10374 2010-09-15 Ian Lance Taylor <iant@google.com>
10375
10376 * function.c (get_arg_pointer_save_area): Set
10377 arg_pointer_save_area_init to true.
10378
10379 2010-09-15 Martin Jambor <mjambor@suse.cz>
10380
10381 * tree-sra.c (generate_subtree_copies): Updated comment.
10382 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
10383 obtained from the statement iterator instead.
10384 (load_assign_lhs_subreplacements): Removed parameters lhs and
10385 right_offset, which is obtained from top_racc instead. Parameter lacc
10386 is now expected to be the root of the processed tree rather than root's
10387 first child. Updated all callers.
10388
10389 2010-09-15 Joseph Myers <joseph@codesourcery.com>
10390
10391 * config/pdp11/pdp11.c (register_move_cost): Rename to
10392 pdp11_register_move_cost.
10393 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
10394 pdp11_register_move_cost.
10395 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
10396 pdp11_register_move_cost instead of register_move_cost.
10397
10398 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
10399
10400 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
10401 pattern for vmovn. Expansion in case of non
10402 -mvectorize-with-neon-quad.
10403 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
10404 non- -mvectorize-with-neon-quad case.
10405 (move_lo_quad_<mode>): New expansion to vmov into low part.
10406 (move_hi_quad_<mode>): New expansion to vmov into high part.
10407 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
10408 (move_lo_quad_v4sf): Likewise.
10409 (move_lo_quad_v8hi): Likewise.
10410 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
10411 low part.
10412 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
10413 high part.
10414 * config/arm/iterators.md (ANY128): New mode iterator.
10415 (V_narrow_pack): New mode attribute.
10416 (V_HALF): Add attribute.
10417 (V_DOUBLE): Add attribute.
10418 (V_mode_nunits): Add attribute.
10419
10420 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
10421
10422 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
10423 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
10424
10425 2010-09-15 Olivier Hainque <hainque@adacore.com>
10426 Jose Ruiz <ruiz@adacore.com>
10427
10428 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
10429 * config/alpha/osf5-unwind.h: New file.
10430
10431 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10432
10433 PR bootstrap/45672
10434 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
10435 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10436 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10437
10438 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10439
10440 * c-lang.h (struct lang_type): Add variable_size GTY option.
10441
10442 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10443
10444 PR bootstrap/45672
10445 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10446
10447 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10448
10449 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
10450 result isn't used in memory address.
10451
10452 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10453
10454 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
10455 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
10456 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
10457 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
10458 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
10459 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
10460
10461 * target.def: Add units_per_simd_word to vectorize.
10462
10463 * targhooks.c (default_units_per_simd_word): New.
10464 * targhooks.h (default_units_per_simd_word): Likewise.
10465 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
10466 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10467 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
10468 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10469 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
10470 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10471 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
10472 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
10473
10474 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
10475 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
10476
10477 * tree-vect-stmts.c: Don't include "tm_p.h".
10478 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
10479 with targetm.vectorize.units_per_simd_word.
10480
10481 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
10482
10483 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
10484
10485 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
10486 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
10487
10488 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
10489 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
10490
10491 * doc/tm.texi: Regenerated.
10492
10493 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
10494
10495 * tree-vect-stmts.c: Include "tm_p.h".
10496
10497 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
10498 out of RTX_CODE.
10499
10500 2010-09-14 Martin Jambor <mjambor@suse.cz>
10501
10502 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
10503 location of generated statement. Changed all callers.
10504 (build_ref_for_model): New parameter loc which used to set location of
10505 all generated expressions. Changed all callers.
10506 (generate_subtree_copies): Likewise.
10507 (init_subtree_with_zero): Likewise.
10508 (sra_modify_expr): Set locations of all generated statements and
10509 expressions to the location the original statement.
10510 (handle_unscalarized_data_in_subtree): Likewise.
10511 (load_assign_lhs_subreplacements): Likewise.
10512 (sra_modify_constructor_assign): Likewise.
10513 (sra_modify_assign): Likewise.
10514
10515 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
10516
10517 PR target/45277
10518 PR target/45363
10519 PR target/45407
10520 * doc/install.texi (sparc*-*-*): New section.
10521 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
10522
10523 2010-09-14 Jakub Jelinek <jakub@redhat.com>
10524
10525 PR middle-end/45567
10526 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
10527 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
10528 (expand_builtin): Adjust caller.
10529 (expand_builtin_unop): Only use subtarget if it has the right mode.
10530
10531 2010-09-14 Tristan Gingold <gingold@adacore.com>
10532
10533 * configure.ac (plugins): Fix typos.
10534 * configure: Regenerate.
10535
10536 2010-09-14 Jakub Jelinek <jakub@redhat.com>
10537
10538 PR debug/45660
10539 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
10540 gen_type_die for function/method return type.
10541
10542 2010-09-14 Ira Rosen <irar@il.ibm.com>
10543
10544 PR tree-optimization/45470
10545 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10546 can throw an exception.
10547 * tree-vect-stmts.c (vectorizable_call): Likewise.
10548
10549 2010-09-14 DJ Delorie <dj@redhat.com>
10550
10551 PR target/44749
10552 * config/mep/mep-protos.h (mep_save_register_info,
10553 mep_reinit_regs, mep_init_regs): Declare.
10554
10555 * config/mep/mep.c: Move all target definitions to the end of the
10556 file to avoid the need for duplicate declarations.
10557 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
10558 (mep_reorg_erepeat): Remove unused variables.
10559 (mep_expand_builtin): Likewise.
10560
10561 * config/mep/mep-pragma.c: Don't include rtl.h.
10562 (INVALID_REGNUM): New.
10563 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
10564 functions.
10565 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
10566 Avoid enum/integer math.
10567
10568 2010-09-13 Joseph Myers <joseph@codesourcery.com>
10569
10570 PR target/44749
10571 * config/mep/t-mep (GTM_H): Add insn-constants.h.
10572 * config/mep/mep.c (mep_conditional_register_usage): Take no
10573 parameters.
10574 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
10575 prototype.
10576 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
10577 call to mep_conditional_register_usage.
10578
10579 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
10580
10581 PR debug/43937
10582 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
10583 the DECL as well.
10584
10585 2010-09-13 Jakub Jelinek <jakub@redhat.com>
10586
10587 PR rtl-optimization/45617
10588 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
10589 even if low N bits of X aren't known to be zero.
10590
10591 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
10592
10593 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
10594
10595 * config/i386/i386.c (initial_ix86_tune_features): Add
10596 X86_TUNE_VECTORIZE_DOUBLE.
10597 (ix86_units_per_simd_word): New.
10598
10599 * config/i386/i386.h (ix86_tune_indices): Add
10600 X86_TUNE_VECTORIZE_DOUBLE.
10601 (TARGET_VECTORIZE_DOUBLE): New.
10602 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
10603
10604 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
10605
10606 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
10607 (new_temp_expr_table): Allocate call_cnt vector.
10608 (free_temp_expr_table): Free it.
10609 (process_replaceable): Add call_cnt parm and set in vector.
10610 (find_replaceable_in_bb): Skip replacement if def/use span a call.
10611 (debug_ter): Dump call_cnt value, remove stderr uses.
10612
10613 2010-09-13 Jan Hubicka <jh@suse.cz>
10614
10615 * tree.c (build_zero_cst): New.
10616 * tree.h (build_zero_cst): Declare.
10617 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
10618 (get_base_constructor): Break out from ...
10619 (fold_const_aggregate_ref): Here; handle empty constructors.
10620
10621 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10622
10623 * config/arm/arm.md: (define_attr "conds"): Update comment.
10624 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
10625 conds attribute to clob.
10626 (arm_sync_compare_and_swapsi): Likewise.
10627 (arm_sync_compare_and_swap<mode>): Likewise.
10628 (arm_sync_lock_test_and_setsi): Likewise.
10629 (arm_sync_lock_test_and_set<mode>): Likewise.
10630 (arm_sync_new_<sync_optab>si): Likewise.
10631 (arm_sync_new_nandsi): Likewise.
10632 (arm_sync_new_<sync_optab><mode>): Likewise.
10633 (arm_sync_new_nand<mode>): Likewise.
10634 (arm_sync_old_<sync_optab>si): Likewise.
10635 (arm_sync_old_nandsi): Likewise.
10636 (arm_sync_old_<sync_optab><mode>): Likewise.
10637 (arm_sync_old_nand<mode>): Likewise.
10638
10639 2010-09-13 Olivier Hainque <hainque@adacore.com>
10640
10641 * fwprop.c (forward_propagate_and_simplify): Only attach a
10642 REG_EQUAL note to an insn if the destination is a register.
10643 * gcse.c (try_replace_reg): Likewise.
10644
10645 2010-09-13 Richard Guenther <rguenther@suse.de>
10646
10647 PR tree-optimization/45611
10648 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
10649 (copy_ref_info): Likewise.
10650
10651 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
10652
10653 PR debug/45604
10654 PR debug/45419
10655 PR debug/45408
10656 * tree-pretty-print.c (dump_generic_node): Disregard top-level
10657 types of MEM_REF pointer types to the same type.
10658
10659 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
10660
10661 PR rtl-optimization/41087
10662 * ifcvt.c (noce_get_condition): Don't allow conditions with
10663 side-effects.
10664
10665 2010-09-12 Anatoly Sokolov <aesok@post.ru>
10666
10667 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10668 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
10669 * config/frv/frv.c (frv_register_move_cost): Make static. Change
10670 arguments type to reg_class_t. Add mode argument.
10671 (frv_memory_move_cost): New.
10672 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
10673
10674 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
10675
10676 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
10677 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
10678
10679 2010-09-10 Jan Hubicka <jh@suse.cz>
10680
10681 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
10682
10683 2010-09-10 Richard Guenther <rguenther@suse.de>
10684
10685 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
10686 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
10687 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
10688 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
10689 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
10690
10691 2010-09-10 Richard Guenther <rguenther@suse.de>
10692
10693 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
10694 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
10695 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
10696 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
10697
10698 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
10699
10700 PR middle-end/45634
10701 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
10702 of string folding is of integral type.
10703
10704 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
10705
10706 * doc/invoke.texi (-x): Fix typo.
10707
10708 2010-09-10 Richard Guenther <rguenther@suse.de>
10709
10710 PR debug/44115
10711 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
10712 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10713 Output DECL_DEBUG_EXPR.
10714 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10715 Input DECL_DEBUG_EXPR.
10716
10717 2010-09-10 Richard Guenther <rguenther@suse.de>
10718
10719 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
10720 (build_index_type): Implement in terms of build_range_type.
10721 (build_range_type): Do not allow NULL_TREE type, improve
10722 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
10723 if we didn't hash.
10724 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
10725 create a distinct copy of the type.
10726
10727 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
10728
10729 * configure: Regenerated.
10730 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
10731
10732 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10733
10734 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
10735 * config/arm/cortex-a9-neon.md: New and partially generated.
10736 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
10737
10738 2010-09-10 Richard Guenther <rguenther@suse.de>
10739
10740 * tree.h (build_index_2_type): Remove.
10741 * tree.c (build_index_2_type): Remove.
10742
10743 2010-09-10 Jakub Jelinek <jakub@redhat.com>
10744
10745 PR bootstrap/45630
10746 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
10747 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
10748 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
10749
10750 2010-09-10 Martin Jambor <mjambor@suse.cz>
10751
10752 PR tree-optimization/44972
10753 * tree-sra.c: Include toplev.h.
10754 (build_ref_for_offset): Entirely reimplemented.
10755 (build_ref_for_model): New function.
10756 (build_user_friendly_ref_for_offset): New function.
10757 (analyze_access_subtree): Removed build_ref_for_offset check.
10758 (propagate_subaccesses_across_link): Likewise.
10759 (create_artificial_child_access): Use
10760 build_user_friendly_ref_for_offset.
10761 (propagate_subaccesses_across_link): Likewise.
10762 (ref_expr_for_all_replacements_p): Removed.
10763 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
10764 (sra_modify_expr): Use build_ref_for_model.
10765 (load_assign_lhs_subreplacements): Likewise.
10766 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
10767 checks for return values of build_ref_for_offset.
10768 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
10769 build_ref_for_offset.
10770 * ipa-prop.h: Include gimple.h
10771 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
10772 (ipa_analyze_indirect_call_uses): Update comment.
10773 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
10774 (IPA_PROP_H): Likewise.
10775
10776 2010-09-10 Martin Jambor <mjambor@suse.cz>
10777
10778 PR tree-optimization/44972
10779 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
10780 calling build_ref_for_offset.
10781
10782 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10783
10784 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
10785 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
10786 * config/arm/arm-tune.md: Regenerate.
10787 * doc/invoke.texi (ARM Options): Document it.
10788
10789 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
10790
10791 * config/i386/i386.c: Include sched-int.h.
10792 (TARGET_SCHED_DISPATCH): Defined.
10793 (TARGET_SCHED_DISPATCH_DO): Defined.
10794 (DISPATCH_WINDOW_SIZE): Defined.
10795 (MAX_DISPATCH_WINDOWS): Defined.
10796 (MAX_INSN): Defined.
10797 (MAX_IMM): Defined.
10798 (MAX_IMM_SIZE): Defined.
10799 (MAX_IMM_32): Defined.
10800 (MAX_IMM_64): Defined.
10801 (MAX_LOAD): Defined.
10802 (MAX_STORE): Defined.
10803 (BIG): Defined.
10804 (dispatch_group): New.
10805 (num_allowable_groups): New.
10806 (group_name): New.
10807 (sched_insn_info_s): New.
10808 (dispatch_windows_s): New.
10809 (imm_info_s): New.
10810 (dispatch_window_list): New.
10811 (dispatch_window_list1): New.
10812 (get_mem_group): New.
10813 (is_cmp): New.
10814 (dispatch_violation): New.
10815 (is_branch): New.
10816 (is_prefetch): New.
10817 (init_window): New.
10818 (allocate_window): New.
10819 (init_dispatch_sched): New.
10820 (is_end_basic_block): New.
10821 (process_end_window): New.
10822 (allocate_next_window): New.
10823 (find_constant_1): New.
10824 (find_constant): New.
10825 (get_num_immediates): New.
10826 (has_immediate): New.
10827 (get_insn_path): New.
10828 (get_insn_group): New.
10829 (count_num_restricted): New.
10830 (fits_dispatch_window): New.
10831 (add_insn_window): New.
10832 (add_to_dispatch_window): New.
10833 (debug_dispatch_window_file): New.
10834 (debug_dispatch_window): New.
10835 (debug_insn_dispatch_info_file): New.
10836 (debug_ready_dispatch): New.
10837 (do_dispatch): New.
10838 (has_dispatch): New.
10839 * config/i386/i386.h (debug_ready_dispatch): Declared.
10840 (debug_dispatch_window): Declared.
10841 * config/i386/i386.opt (mdispatch-scheduler): New flag.
10842 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
10843 (TARGET_SCHED_DISPATCH_DO): New.
10844 * doc/tm.texi: Regererated.
10845 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
10846 ready_remove_first_dispatch
10847 (schedule_block): Call targetm.sched.dispatch and
10848 targetm.sched.dispatch_do.
10849 (sched_init): Call targetm.sched.dispatch and
10850 targetm.sched.dispatch_do.
10851 (ready_remove_first_dispatch): New.
10852 (number_in_ready): New.
10853 (get_ready_element): New.
10854 * hooks.c (hook_bool_rtx_int_false): New.
10855 (hook_void_rtx_int): New.
10856 * hooks.h (hook_bool_rtx_int_false): Declared.
10857 (hook_void_rtx_int): Declared.
10858 * sched-int.h (IS_DISPATCH_ON): Defined.
10859 (IS_CMP): Defined.
10860 (DISPATCH_VIOLATION): Defined.
10861 (FITS_DISPATCH_WINDOW): Defined.
10862 (DISPATCH_INIT): Defined.
10863 (ADD_TO_DISPATCH_WINDOW): Defined.
10864 (get_ready_element): Declared.
10865 (number_in_ready): Declared.
10866 * target.def (dispatch): Defined.
10867 (dispatch_do): Defined.
10868
10869 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10870
10871 PR middle-end/45312
10872 * reload1.c (merge_assigned_reloads): Remove.
10873 (reload_as_needed): Don't call it.
10874
10875 2010-09-09 Anatoly Sokolov <aesok@post.ru>
10876
10877 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
10878 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10879 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10880
10881 2010-09-09 Matthias Klose <doko@ubuntu.com>
10882
10883 PR bootstrap/43847
10884 * configure.ac (--enable-plugin): Enhance for cross builds.
10885 * configure: Regenerate.
10886
10887 2010-09-09 Jan Hubicka <jh@suse.cz>
10888
10889 PR tree-optimization/45598
10890 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
10891 string folding is of integral type.
10892
10893 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
10894
10895 * configure.ac (gnu_indirect_function): New test.
10896 * configure: Rebuilt.
10897 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
10898 * defaults.h (IFUNC_ASM_TYPE): Provide default.
10899
10900 * doc/extend.texi (Function Attributes): Document ifunc.
10901 * varasm.c (do_assemble_alias): Deal with ifuncs too.
10902
10903 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10904
10905 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
10906 epilogue instruction move.
10907
10908 2010-09-09 Jan Hubicka <jh@suse.cz>
10909
10910 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
10911 command line to allow more partitions than input files.
10912
10913 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10914
10915 PR middle-end/44554
10916 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
10917
10918 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
10919
10920 PR middle-end/40386
10921 * ira.c (pseudo_for_reload_consideration_p): Don't use
10922 flag_ira_share_spill_slots.
10923
10924 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10925
10926 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
10927 point zero operands that fit into a single GPR.
10928 (s390_preferred_reload_class): Ensure we only return general-purpose
10929 register classes.
10930 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
10931 floating-point zero operands into GPRs.
10932 ("*mov<mode>_64"): Likewise.
10933 ("mov<mode>"): Likewise using lhi.
10934
10935 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10936
10937 * config/s390/s390.c (s390_symref_operand_p): Return false for
10938 literal pool references.
10939 (s390_check_qrst_address): Update caller.
10940
10941 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
10942
10943 * config/i386/predicates.md (ext_register_operand): Check that
10944 SUBREG_REG is really a register before looking for REGNO.
10945 (reg_not_xmm0_operand): Handle SUBREGs correctly.
10946 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
10947
10948 2010-09-09 Jakub Jelinek <jakub@redhat.com>
10949
10950 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
10951 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
10952 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
10953 * print-rtl.c (print_rtx): Likewise.
10954 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10955 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
10956 for ADDR_EXPR with non-addressable object.
10957 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
10958 (struct dw_val_struct): Add v.val_decl_ref.
10959 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
10960 Handle DW_OP_GNU_implicit_pointer.
10961 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
10962 (get_ref_die_offset_label): New function.
10963 (implicit_ptr_descriptor): New function.
10964 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
10965 (loc_descriptor): Likewise.
10966 (gen_variable_die): Put even definitions into decl_die_table.
10967 (resolve_addr_in_expr): Resolve still unresolved
10968 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
10969 return false.
10970 (dwarf2out_finish): Call output_location_lists after outputting
10971 .debug_info and .debug_abbrev instead of before.
10972
10973 2010-09-09 Roland McGrath <roland@redhat.com>
10974
10975 * dwarf2out.c (DWARF_REF_SIZE): Define.
10976 (size_of_loc_descr): Use it for DW_OP_call_ref.
10977
10978 2010-09-09 Alan Modra <amodra@gmail.com>
10979
10980 * doc/invoke.text: Reinstate mcmodel=medium.
10981 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10982 CMODEL_MEDIUM as default.
10983 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
10984 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
10985 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
10986 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
10987
10988 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10989
10990 PR target/45250
10991 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
10992 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
10993 (builtin_longjmp): Likewise.
10994 (allocate_stack): Use hard_frame_pointer_rtx instead of
10995 frame_pointer_rtx.
10996 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
10997 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
10998 (pa_can_eliminate): Likewise.
10999 (TARGET_INTERNAL_ARG_POINTER): Define.
11000 (TARGET_CAN_ELIMINATE): Define.
11001 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
11002 pointer.
11003 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
11004 (pa_internal_arg_pointer, pa_can_eliminate,
11005 pa_initial_elimination_offset): New.
11006 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
11007 (HARD_FRAME_POINTER_REGNUM): Set to register three.
11008 (INITIAL_FRAME_POINTER_OFFSET): Delete.
11009 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
11010 Define.
11011 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
11012 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
11013 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
11014 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
11015 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
11016 new soft frame pointer.
11017 * config/pa/pa64-regs.h: Likewise.
11018
11019 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
11020
11021 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
11022 numerical constant.
11023 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
11024
11025 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
11026
11027 PR debug/45531
11028 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
11029
11030 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
11031
11032 PR debug/45419
11033 PR debug/45408
11034 * tree-pretty-print.c (dump_generic_node): Disregard top-level
11035 qualifiers in otherwise equal MEM_REF pointer types.
11036 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
11037 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
11038
11039 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11040
11041 PR target/44392
11042 * config/arm/arm.md (bswapsi2): Handle condition correctly
11043 for armv6 and optimize_size.
11044
11045 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11046
11047 PR other/18555
11048 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
11049
11050 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
11051
11052 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
11053 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
11054 ix86_expand_strlen, legitimate_pic_address_disp_p,
11055 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
11056 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
11057 ix86_check_movabs, ix86_secondary_memory_needed): Change function
11058 prototype to bool.
11059 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
11060 return_in_memory_ms_64, ix86_check_movabs,
11061 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
11062 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
11063 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
11064 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
11065 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
11066 ix86_secondary_memory_needed): Change to bool. Return
11067 "true" and "false" values.
11068 * config/i386/i386.md: Return "true" and "false" values.
11069
11070 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11071
11072 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11073 run_expensive_tests.
11074
11075 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11076
11077 * toplev.c (output_stack_usage): Use lbasename instead of basename.
11078
11079 2010-09-08 Martin Jambor <mjambor@suse.cz>
11080
11081 PR other/45443
11082 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
11083 at -O3.
11084
11085 2010-09-08 Richard Guenther <rguenther@suse.de>
11086
11087 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
11088 (visit): Adjust.
11089 (iterative_hash_gimple_type): Likewise.
11090 (gimple_type_hash): Likewise.
11091 (gimple_register_type): Likewise.
11092 (print_gimple_types_stats): Likewise.
11093 (free_gimple_type_tables): Likewise.
11094
11095 2010-09-08 Michael Matz <matz@suse.de>
11096
11097 PR tree-optimization/43430
11098 * tree-vect-stmts.c (vectorizable_condition): Support multiple
11099 copies for conditional statements if it's not part of a reduction.
11100
11101 2010-09-08 Michael Matz <matz@suse.de>
11102
11103 PR tree-optimization/33244
11104 * tree-ssa-sink.c (statement_sink_location): Don't sink into
11105 empty loop latches.
11106
11107 2010-09-08 Richard Guenther <rguenther@suse.de>
11108
11109 PR tree-optimization/45578
11110 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
11111 Be more careful when transfering alignment information to
11112 the new induction variable.
11113 (copy_ref_info): Likewise.
11114
11115 2010-09-08 Richard Guenther <rguenther@suse.de>
11116
11117 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
11118 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
11119
11120 2010-09-08 Arnaud Charlet <charlet@adacore.com>
11121
11122 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
11123 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
11124
11125 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
11126
11127 PR doc/45587
11128 * doc/md.texi: Fixed modes on several standard pattern names.
11129
11130 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
11131
11132 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
11133 (ashl<mode>3): ...this.
11134 (loongson_psra<V_suffix>): Rename to...
11135 (ashr<mode>3): ...this.
11136 (loongson_psrl<V_suffix>): Rename to...
11137 (lshr<mode>3): ...this.
11138 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
11139 (CODE_FOR_loongson_psllw): Define.
11140 (CODE_FOR_loongson_psrlh): Define.
11141 (CODE_FOR_loongson_psrlw): Define.
11142 (CODE_FOR_loongson_psrah): Define.
11143 (CODE_FOR_loongson_psraw): Define.
11144
11145 2010-09-07 Richard Henderson <rth@redhat.com>
11146
11147 * tree-vect-data-refs.c: Include tm_p.h.
11148 * Makefile.in (tree-vect-data-refs.o): Update deps.
11149 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
11150 Move delarations outside #ifdef RTX_CODE.
11151
11152 2010-09-07 Richard Henderson <rth@redhat.com>
11153
11154 * final.c (rest_of_handle_final): Unconditionally do
11155 output_function_exception_table before assemble_end_function.
11156
11157 2010-09-07 Jan Hubicka <jh@suse.cz>
11158
11159 * tree-inline.c (tree_inlinable_function_p): Do not test
11160 DECL_REPLACEABLE_P.
11161 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
11162 update_callee_keys, cgraph_decide_inlining): Test function availability.
11163 * cif-code.def (OVERWRITABLE): New code.
11164
11165 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
11166 Jack Howarth <howarth@bromo.med.uc.edu>
11167
11168 PR target/36502
11169 PR target/42313
11170 PR target/44651
11171 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
11172 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
11173 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
11174 MAX macro.
11175
11176 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
11179 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
11180
11181 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11182
11183 * config.gcc: Don't append t-android for Android targets.
11184
11185 * config/t-android: Removed.
11186
11187 2010-09-07 Richard Henderson <rth@redhat.com>
11188
11189 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
11190 * doc/tm.texi.in: Add doc marker.
11191 * doc/tm.texi: Rebuild.
11192 * except.c (switch_to_exception_section): Always build.
11193 (output_one_function_exception_table): Move section switch,
11194 personality output, and label output ...
11195 (output_function_exception_table): ... here. Use the new
11196 personality hook.
11197
11198 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
11199 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
11200 TARGET_ASM_INIT_SECTIONS): New.
11201 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
11202 make static.
11203 (TARGET_ASM_UNWIND_EMIT): Update to match.
11204 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
11205
11206 * config/arm/arm.c (arm_asm_emit_except_personality): New.
11207 (arm_asm_init_sections): New.
11208 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
11209
11210 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11211
11212 * config/arm/arm.md: Remove unused variable.
11213
11214 2010-09-07 Anatoly Sokolov <aesok@post.ru>
11215
11216 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11217 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
11218 (m32r_memory_move_cost): New function.
11219
11220 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11221
11222 * config.gcc: Append t-android for Android targets.
11223
11224 * config/t-android: New.
11225
11226 2010-09-07 Richard Henderson <rth@redhat.com>
11227
11228 * target.def (unwind_emit_before_insn): New hook.
11229 * doc/tm.texi.in: Add @hook marker for it.
11230 * doc/tm.texi: Rebuild.
11231 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
11232
11233 2010-09-07 Martin Jambor <mjambor@suse.cz>
11234
11235 PR fortran/43665
11236 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
11237 are any type attributes.
11238
11239 2010-09-07 Jan Hubicka <jh@suse.cz>
11240
11241 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
11242 array_ref_low_bound in string access folding.
11243
11244 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
11245
11246 PR target/45206
11247 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
11248 eh_return fixup sequence.
11249
11250 2010-09-07 Jan Hubicka <jh@suse.cz>
11251
11252 * gimple-fold.c (maybe_fold_reference): Verify that operand is
11253 gimple_min_invariant.
11254
11255 2010-09-07 Richard Guenther <rguenther@suse.de>
11256
11257 PR middle-end/45569
11258 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
11259 nor CONSTRUCTOR can trap.
11260 * tree-complex.c (update_complex_assignment): Update EH info.
11261
11262 2010-09-07 Richard Guenther <rguenther@suse.de>
11263
11264 PR middle-end/45569
11265 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
11266 * passes.c (execute_function_todo): Do not verify anything if
11267 we saw errors.
11268
11269 2010-09-07 Richard Guenther <rguenther@suse.de>
11270
11271 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
11272
11273 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
11274
11275 PR target/43137
11276 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
11277 New define_mode_attrs.
11278 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
11279 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
11280 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
11281 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
11282 Remove pool_range attribute.
11283 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
11284 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
11285 pool_range and neg_pool_range attributes.
11286 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
11287 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
11288 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
11289
11290 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11291
11292 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
11293 check glibc.
11294
11295 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
11296
11297 PR target/22152
11298 * config/i386/mmx.md (*mov<mode>_internal_rex64,
11299 *mov<mode>_internal_avx, *mov<mode>_internal,
11300 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
11301 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
11302
11303 2010-09-06 Mark Mitchell <mark@codesourcery.com>
11304
11305 * c-typeck.c (do_warn_double_promotion): Remove.
11306 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
11307 Objective-C++ too.
11308
11309 2010-09-06 Anatoly Sokolov <aesok@post.ru>
11310
11311 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
11312 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
11313 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
11314 argument type to reg_class_t. Change result type to bool.
11315 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11316
11317 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
11318
11319 PR libobjc/19850
11320 * gthr-posix.h (__gthread_objc_thread_detach): Use
11321 _objc_thread_attribs when detaching a thread.
11322 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
11323
11324 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11325
11326 PR target/45524
11327 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
11328 * configure: Regenerated.
11329
11330 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11331
11332 * combine.c (try_combine): Set subst_low_luid to i0.
11333
11334 2010-09-06 Richard Guenther <rguenther@suse.de>
11335
11336 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
11337 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
11338 (build_aligned_type): Declare.
11339 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
11340 (check_aligned_type): New function.
11341 (build_aligned_type): Likewise.
11342 * expr.c (expand_assignment): Handle misaligned stores via
11343 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
11344 (expand_expr_real_1): Likewise.
11345 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
11346 * tree-vect-stmts.c (vectorizable_store): Do not build
11347 MISALIGNED_INDIRECT_REF but initialize alignment information.
11348 (vectorizable_load): Likewise.
11349 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
11350 handling.
11351 * cfgexpand.c (expand_debug_expr): Likewise.
11352 * dwarf2out.c (loc_list_from_tree): Likewise.
11353 * fold-const.c (maybe_lvalue_p): Likewise.
11354 (operand_equal_p): Likewise.
11355 (build_fold_addr_expr_with_type_loc): Likewise.
11356 * gimplify.c (gimplify_addr_expr): Likewise.
11357 (gimplify_expr): Likewise.
11358 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11359 (verify_gimple_assign_single): Likewise.
11360 * tree-dump.c (dequeue_and_dump): Likewise.
11361 (tree_could_trap_p): Likewise.
11362 * tree-predcom.c (ref_at_iteration): Likewise.
11363 * tree-pretty-print.c (dump_generic_node): Likewise.
11364 (op_code_prio): Likewise.
11365 (op_symbol_code): Likewise.
11366 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11367 * tree-ssa-loop-im.c (for_each_index): Likewise.
11368 (gen_lsm_tmp_name): Likewise.
11369 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11370 (find_interesting_uses_address): Likewise.
11371 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11372 * tree-ssa-operands.c (get_expr_operands): Likewise.
11373 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11374 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11375 (ao_ref_init_from_vn_reference): Likewise.
11376 * tree.c (staticp): Likewise.
11377 (build1_stat): Likewise.
11378 (reference_alias_ptr_type): Likewise.
11379 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11380 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
11381 MISALIGNED_INDIRECT_REF handling.
11382
11383 2010-09-06 Richard Guenther <rguenther@suse.de>
11384
11385 PR tree-optimization/45534
11386 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
11387 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
11388 on the target.
11389 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
11390 valid on the target.
11391
11392 2010-09-06 Andreas Schwab <schwab@redhat.com>
11393
11394 * configure.ac: Quote argument of AC_MSG_WARN.
11395 * configure: Regenerate.
11396
11397 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
11398
11399 * sel-sched.c (move_cond_jump): Correct arguments to
11400 maybe_tidy_empty_bb.
11401 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11402
11403 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
11404
11405 PR rtl-optimization/44919
11406 * sel-sched.c (move_cond_jump): Remove assert, check that
11407 the several blocks case can only happen with mutually exclusive
11408 insns instead. Rewrite the movement code to support moving through
11409 several basic blocks.
11410
11411 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
11412
11413 * config/i386/i386.md (iptrsize): New mode attribute.
11414 (tp_seg): Ditto.
11415 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
11416 mode iterator.
11417 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
11418 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
11419 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
11420 (stack_tls_protect_set_<mode>): Ditto from
11421 stack_tls_protect_set_{si,di}. Use %@ to output segment register
11422 of thread base pointer load.
11423 (stack_tls_protect_test_<mode>): Ditto from
11424 stack_tls_protect_test_{si,di}. Use %@ to output segment register
11425 of thread base pointer load.
11426 (stack_protect_set): Rewrite using indirect functions.
11427 (stack_protect_test): Ditto.
11428 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
11429 (ix86_print_operand): Handle '@'.
11430
11431 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
11432
11433 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
11434 MINUS_EXPR.
11435
11436 2010-09-05 Mark Mitchell <mark@codesourcery.com>
11437
11438 * doc/invoke.texi: Document -Wdouble-promotion.
11439 * c-typeck.c (convert_arguments): Check for implicit conversions
11440 from float to double.
11441 (do_warn_double_promotion): New function.
11442 (build_conditional_expr): Use it.
11443 (build_binary_op): Likewise.
11444
11445 2010-09-05 Richard Guenther <rguenther@suse.de>
11446
11447 PR tree-optimization/45535
11448 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
11449 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
11450 dereferencing it.
11451 (indirect_refs_may_alias_p): Likewise.
11452
11453 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
11454
11455 * config/sh/sh.c (sh_option_override): Make static.
11456 Adjust comments. Declare.
11457 (sh_function_value_regno_p): Likewise.
11458 (sh_register_move_cost): Modify the arguments, make static.
11459 Adjust comments. Declare.
11460 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
11461 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11462 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
11463 REGISTER_MOVE_COST): Delete.
11464 * config/sh/sh-protos.h (sh_override_options): Delete.
11465 (sh_register_move_cost): Delete.
11466 (sh_function_value_regno_p): Delete.
11467
11468 2010-09-04 Anatoly Sokolov <aesok@post.ru>
11469
11470 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
11471 m32r_function_value_regno_p): New functions.
11472 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11473 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
11474 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
11475 FUNCTION_VALUE_REGNO_P): Remove.
11476
11477 2010-09-04 Jan Hubicka <jh@suse.cz>
11478
11479 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
11480 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
11481 fold_read_from_constant_string.
11482
11483 * gimple.h (canonicalize_constructor_val): Declare.
11484 * gimple-fold.c (canonicalize_constructor_val): New function.
11485 (get_symbol_constant_value):Use it.
11486 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
11487
11488 2010-09-04 Jan Hubicka <jh@suse.cz>
11489
11490 * tree-switch-conversion.c (build_one_array): Set constructor to be
11491 static.
11492 * varpool.c (varpool_finalize_decl): Compute const_value_known.
11493
11494 2010-09-04 Richard Guenther <rguenther@suse.de>
11495
11496 PR bootstrap/45519
11497 * tree-flow.h (force_gimple_operand_1): Declare.
11498 (force_gimple_operand_gsi_1): Likewise.
11499 * gimplify.c (force_gimple_operand_1): New worker taking a
11500 gimple predicate for ...
11501 (force_gimple_operand): ... which now wraps it.
11502 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
11503 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
11504 last change.
11505 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
11506 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
11507 (create_mem_ref): Likewise.
11508
11509 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
11510
11511 * config/i386/predicates.md (sse_reg_operand): New predicate.
11512 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
11513 predicate for operand 1.
11514 (XFmode push splitter): Use fp_register_operand predicate
11515 for operand 1.
11516 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
11517 (SF-DF float_extend push splitter): Add reload_completed insn
11518 predicate.
11519 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
11520 MODEF mode macro. Add reload_completed insn predicate.
11521
11522 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
11523
11524 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
11525 (struct df_extract_ref): Remove.
11526 (union df_ref_d): Remove extract_ref member.
11527 (df_ref_create): Remove last three arguments.
11528 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
11529 * df-scan.c (df_ref_record): Remove last three arguments, do not
11530 pass them to df_ref_create_structure.
11531 (df_uses_record): Remove first and last three arguments. Replace
11532 first argument with DF_REF_REGULAR, adjust calls to remove the
11533 width, offset and mode. Always call recursively on the second
11534 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
11535 (df_ref_create_structure): Remove first argument.
11536 (struct df_scan_problem_data): Remove ref_extract_pool.
11537 (df_scan_free_internal): Do not free it.
11538 (df_scan_alloc): Do not allocate it.
11539 (df_ref_create): Remove last three arguments, do not pass them to
11540 df_ref_create_structure.
11541 (df_free_ref): Remove DF_REF_EXTRACT case.
11542 (df_notes_rescan): Adjust call to df_uses_record.
11543 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
11544 Remove DF_REF_EXTRACT case.
11545 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
11546 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
11547 and SUBREG definitions.
11548 (df_get_conditional_uses): Remove references to width/offset/mode,
11549 adjust call to df_ref_create_structure.
11550 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11551 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
11552 calls to df_uses_record and df_ref_record.
11553 * fwprop.c (update_df): Remove references to width/offset/mode,
11554 adjust call to df_ref_create.
11555
11556 2010-09-03 Jan Hubicka <jh@suse.cz>
11557
11558 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
11559 (build_cdtor_fns): Update use of build_cdtor.
11560
11561 2010-09-03 Joseph Myers <joseph@codesourcery.com>
11562
11563 * doc/options.texi (SeparateAlias): Document.
11564 * opt-functions.awk (switch_flags): Handle SeparateAlias.
11565 * opth-gen.awk: Generate enumeration names for options marked
11566 SeparateAlias, but not for those marked Ignore.
11567 * opts-common.c (generate_canonical_option): Don't output separate
11568 argument for options marked CL_SEPARATE_ALIAS.
11569 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
11570 * opts.h (CL_SEPARATE_ALIAS): New.
11571 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11572 CL_COMMON): Adjust definitions.
11573 * config/i386/darwin.opt, config/mips/sde.opt: New.
11574 * common.opt (fdump-final-insns): New.
11575 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11576 i386/darwin.opt.
11577 (mips*-sde-elf*): Add mips/sde.opt.
11578 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
11579 -mno-data-in-code and -mcode-xonly here.
11580 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
11581 * gcc.c (option_map): Add "j" to --dump entry.
11582 (translate_options): Don't translate -d to -foutput-class-dir= here.
11583
11584 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
11585
11586 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
11587 DR_IS_WRITE.
11588 (compute_all_dependences): Same.
11589 (create_rdg_edge_for_ddr): Same.
11590 * tree-data-ref.h (DR_IS_WRITE): New.
11591 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
11592 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
11593 (write_memrefs_written_at_least_once): Same.
11594 * tree-predcom.c (suitable_component_p): Same.
11595 (determine_roots_comp): Same.
11596 (execute_load_motion): Same.
11597 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
11598 (vect_enhance_data_refs_alignment): Same.
11599 (vect_analyze_group_access): Same.
11600
11601 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
11602
11603 PR testsuite/42843
11604 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
11605 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
11606
11607 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
11608
11609 * dwarf2out.c (file scope): Remove #if0'd code.
11610 (gen_subprogram_die): Same.
11611
11612 2010-09-03 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR middle-end/45484
11615 * dwarf2out.c (flush_queued_reg_saves): Rename to...
11616 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
11617 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
11618 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
11619 * config/i386/i386.c (output_set_got): Call it.
11620
11621 2010-09-03 Michael Matz <matz@suse.de>
11622
11623 PR middle-end/45415
11624 * tree-sra.c (sra_modify_assign): If we modify the statement,
11625 say so.
11626
11627 * tree-ssa.c (verify_ssa): Check number of operands and links
11628 per statement to agree.
11629
11630 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
11631 Iain Sandoe <iains@gcc.gnu.org>
11632
11633 PR target/45476
11634 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
11635 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
11636 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11637
11638 2010-09-03 Richard Guenther <rguenther@suse.de>
11639
11640 * lto-streamer-out.c (output_function): Output function
11641 start and end loci.
11642 * lto-streamer-in.c (input_function): Input function start
11643 and end loci.
11644
11645 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11646
11647 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
11648 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
11649 * configure: Regenerate.
11650 * aclocal.m4: Regenerate.
11651
11652 2010-09-03 Jan Hubicka <jh@suse.cz>
11653
11654 PR lto/44812
11655 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
11656 on functions/variables in other partition.
11657
11658 2010-09-03 Jan Hubicka <jh@suse.cz>
11659
11660 * cgraph.h (struct varpool_node): Add const_value_known.
11661 (varpool_decide_const_value_known): Declare.
11662 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
11663 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
11664 (input_varpool_node): Restore const_value_known.
11665 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
11666 initializer folding.
11667 * ipa.c (ipa_discover_readonly_nonaddressable_var,
11668 function_and_variable_visibility): Compute const_value_known.
11669 * gimple-fold.c (get_symbol_constant_value): Use varpool for
11670 initializer folding.
11671 * varpool.c (varpool_decide_const_value_known): New function.
11672
11673 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
11674
11675 * config/i386/i386.md: Remove empty preparation statements
11676 from splitters.
11677
11678 2010-09-03 Jan Hubicka <jh@suse.cz>
11679
11680 * passes.c (rest_of_decl_compilation): Do not add local vars into
11681 varpool.
11682 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
11683 static or extern vars are in varpool.
11684 (varpool_finalize_decl): Sanity check that only static vars are
11685 finalized.
11686
11687 2010-09-03 Jakub Jelinek <jakub@redhat.com>
11688
11689 PR debug/45500
11690 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
11691 not just generic vectors with BLKmode.
11692
11693 2010-09-03 Richard Guenther <rguenther@suse.de>
11694
11695 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
11696 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
11697 * tree.h (TMR_SYMBOL): Remove.
11698 (TMR_BASE, TMR_OFFSET): Adjust.
11699 (TMR_INDEX2): New.
11700 * alias.c (ao_ref_from_mem): Use TMR_BASE.
11701 * builtins.c (get_object_alignment): Merge TMR_BASE and
11702 TMR_SYMBOL handling.
11703 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
11704 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
11705 handling. Also allow TARGET_MEM_REF as base address.
11706 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
11707 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
11708 base. Gimplify TMR_INDEX2.
11709 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
11710 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11711 (get_addr_base_and_unit_offset): Likewise.
11712 * tree-eh.c (tree_could_trap_p): Likewise.
11713 * tree-pretty-print.c (dump_generic_node): Likewise.
11714 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
11715 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
11716 base to index2.
11717 (get_address_description): Reconstruct addres description
11718 from merged TMR_BASE and TMR_INDEX2.
11719 (maybe_fold_tmr): Fold propagated addresses.
11720 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
11721 MEM_REF and TARGET_MEM_REF paths.
11722 (indirect_refs_may_alias_p): Likewise.
11723 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
11724 instead of TMR_SYMBOL.
11725 * tree-ssa-operands.c (get_tmr_operands): Simplify.
11726 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
11727 according to changes ...
11728 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
11729 Split TARGET_MEM_REF into two fields plus the base.
11730 * tree.c (mem_ref_offset): Simplify.
11731 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
11732 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
11733 Strip NOPs when folding MEM_REF addresses.
11734 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
11735 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
11736 (fold_gimple_assign): ... not here.
11737
11738 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
11739
11740 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
11741 * config/mips/mips.c (mips_shift_truncation_mask): New function.
11742 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11743
11744 2010-09-02 Richard Henderson <rth@redhat.com>
11745
11746 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
11747 instead of readelf in the test.
11748 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
11749 in the .debug_frame section for coff targets.
11750 * configure: Rebuild.
11751
11752 2010-09-02 Anatoly Sokolov <aesok@post.ru>
11753
11754 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
11755 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
11756 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11757 (m32c_class_likely_spilled_p): Make static. Change argument type to
11758 reg_class_t. Change result type to bool.
11759
11760 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11761
11762 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
11763 to convert (double)(long) into a single FRIZ instruction or not
11764 when -ffast-math is used.
11765
11766 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
11767 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
11768 or FRIZ instruction if -ffast-math.
11769 * config/rs6000/rs6000.md (friz): Ditto.
11770
11771 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
11772
11773 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11774
11775 * opth-gen.awk (quote, comma): Remove unused variables.
11776
11777 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
11778
11779 * arm.c (arm_override_options): Correct fall-back code to use
11780 SUBTARGET_CPU_DEFAULT.
11781
11782 2010-09-02 Julian Brown <julian@codesourcery.com>
11783
11784 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
11785 unspecs.
11786 (vcond<mode>, vcondu<mode>): New expanders.
11787 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
11788 comparisons with zero.
11789 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
11790 * config/arm/constraints.md (Dz): New constraint.
11791
11792 2010-09-02 Anatoly Sokolov <aesok@post.ru>
11793
11794 * target.def (class_likely_spilled_p): New hook.
11795 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
11796 * doc/tm.texi: Regenerate.
11797 * targhooks.c (default_class_likely_spilled_p): New function.
11798 * targhooks.h (default_class_likely_spilled_p): Declare.
11799 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
11800 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
11801 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
11802 Use fixed_reg_set instead of fixed_regs.
11803 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11804 * calls.c (avoid_likely_spilled_reg): Ditto.
11805 * ira-conflicts.c (ira_build_conflicts): Ditto.
11806 * ira.c (update_equiv_regs): Ditto.
11807 * mode-switching.c (create_pre_exit): Ditto.
11808 * regmove.c (find_matches): Ditto.
11809 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
11810 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
11811 (small_register_class_p): New inline function.
11812 (push_secondary_reload, find_reusable_reload, find_reloads): Use
11813 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
11814
11815 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
11816 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
11817 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11818
11819 2010-09-02 Richard Guenther <rguenther@suse.de>
11820
11821 PR tree-optimization/44937
11822 PR tree-optimization/45412
11823 * ipa-split.c (split_function): Properly remove PHI nodes.
11824
11825 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11826
11827 * opts.h (struct cl_option): Add warn_message field.
11828 (struct cl_decoded_option): Add warn_message field.
11829 * doc/options.texi (Ignore, Warn): Document.
11830 * opt-functions.awk (needs_state_p): Don't consider aliases or
11831 ignored options to need state saved.
11832 * optc-gen.awk: Handle Warn and Ignore.
11833 * opth-gen.awk: Output OPT_SPECIAL_ignore.
11834 * opts-common.c (decode_cmdline_option): Set warn_message field.
11835 Handle ignored options.
11836 (decode_cmdline_options_to_array, generate_option,
11837 generate_option_input_file): Set warn_message field.
11838 (read_cmdline_option): Generate warnings from warn_message field.
11839 Handle ignored options.
11840 * common.opt (Wunreachable-code, fargument-alias,
11841 fargument-noalias, fargument-noalias-global,
11842 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
11843 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
11844 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
11845 ftree-salias): Mark Ignore.
11846 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
11847 -mintel-syntax and -mno-intel-syntax here.
11848 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
11849 using Warn.
11850 * opts.c (common_handle_option): Don't handle options marked as
11851 ignored.
11852 (enable_warning_as_error): Handle ignored options.
11853
11854 2010-09-02 Joseph Myers <joseph@codesourcery.com>
11855
11856 PR driver/44076
11857 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
11858 alias_target fields.
11859 * opt-functions.awk (opt_sanitized_name): Don't handle
11860 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
11861 * optc-gen.awk: Generate alias fields.
11862 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
11863 Don't generate such constants for aliases.
11864 * opts-common.c (generate_canonical_option): New.
11865 (decode_cmdline_option): Handle aliases. Use
11866 generate_canonical_option for known options instead of copying the
11867 input option text.
11868 * doc/options.texi (Alias): Document.
11869 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
11870 fstack-check, specs): Mark as aliases.
11871 * gcc.c (driver_handle_option): Canonicalize -L options to joined
11872 arguments.
11873 (driver_handle_option): Don't handle OPT_specs.
11874 * opts.c (common_handle_option): Don't handle options marked as
11875 aliases.
11876 (enable_warning_as_error): Handle aliases.
11877 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
11878 OPT_Wlarger_than_eq.
11879 * tree-optimize.c (tree_rest_of_compilation): Use
11880 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
11881
11882 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
11883
11884 * config/i386/i386.md (nonmemory_operand): New mode attribute.
11885 (push memory peephole2): Macroize peepholes using SWI mode iterator.
11886 (move immediate to memory peephole2): Macroize peepholes using
11887 SWI124 mode iterator.
11888 (non-pairable NOT peephole2): Macroize peepholes using SWI124
11889 mode iterator.
11890 (simple lea add peephole2): Macroize peepholes using SWI48
11891 mode iterator.
11892 (simple lea mult peephole2): Ditto.
11893 (imul by 3,5,9 to lea peephole2): Ditto.
11894 (mov $-1, reg peephole2): Macroize peepholes using SWI248
11895 mode iterator.
11896 (imul $32bit_imm,mem,reg peephole2): Ditto.
11897 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
11898
11899 2010-09-02 Ian Bolton <ian.bolton@arm.com>
11900
11901 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
11902
11903 2010-09-02 Olivier Hainque <hainque@adacore.com>
11904
11905 PR middle-end/44763
11906 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
11907 (allocno_priority_compare_func): Use it instead of a straight
11908 difference computation over priorities.
11909
11910 2010-09-02 Andi Kleen <ak@linux.intel.com>
11911
11912 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
11913
11914 2010-09-02 Ira Rosen <irar@il.ibm.com>
11915
11916 * tree-vectorizer.h (get_later_stmt): New function.
11917 (vect_analyze_data_ref_dependences): Add argument.
11918 * tree-vect-loop.c (vect_analyze_loop): Update call to
11919 vect_analyze_data_ref_dependences.
11920 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
11921 New function.
11922 (vect_analyze_data_ref_dependence): Add argument for basic block
11923 dependencies. Check dependencies in basic block vectorization.
11924 (vect_analyze_data_ref_dependences): Add argument and update call to
11925 vect_analyze_data_ref_dependences.
11926 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
11927 (vect_bb_vectorizable_with_dependencies): New.
11928 (vect_slp_analyze_bb): Check dependencies in basic block.
11929 (vect_schedule_slp_instance): Insert stores before the last store in
11930 SLP instance.
11931
11932 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
11933
11934 PR target/45476
11935 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
11936 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
11937
11938 2010-09-01 Jakub Jelinek <jakub@redhat.com>
11939
11940 PR middle-end/45458
11941 * bb-reorder.c (add_labels_and_missing_jumps): Treat
11942 bbs ending with throwing insns like blocks ending with a call.
11943 (fix_up_fall_thru_edges): Likewise.
11944
11945 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
11946
11947 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
11948 (m32c_function_arg_advance): Delete.
11949 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11950 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
11951 comments. Take a const_tree and a bool. Declare.
11952 (m32c_function_arg_advance): Likewise.
11953 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11954
11955 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11956
11957 PR target/45476
11958 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
11959 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
11960 * config/i386/mingw32.h: ... here.
11961
11962 2010-09-01 Andi Kleen <ak@linux.intel.com>
11963
11964 PR lto/45475
11965 * lto-streamer-in.c (lto_input_ts_target_option): Add.
11966 (lto_input_tree_pointers): Call lto_input_ts_target_option.
11967 * lto-streamer-out (lto_output_ts_target_option): Add.
11968 (lto_output_tree_pointers): Call lto_output_ts_target_option.
11969
11970 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
11971
11972 PR/target 45452
11973 * config/i386/cygwin.h: Change order of specified import libraries.
11974 * config/i386/mingw32.h: Likewise.
11975 * config/i386/t-cygwin: Likewise.
11976 * config/i386/t-mingw32: Likewise.
11977 * config/i386/t-mingw-w32: Likewise.
11978 * config/i386/t-mingw-w64: Likewise.
11979
11980 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11981
11982 * config/arm/neon-schedgen.ml (core): New type.
11983 (allCores): List of supported cores.
11984 (availability_table): Add supported cores.
11985 (collate_bypasses): Accept core as a parameter.
11986 (worst_case_latencies_and_bypasses): Accept core as a parameter.
11987 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
11988 and coreStr to get tune attribute and prefix for functional units.
11989 (emit_bypasses): Accept core name and use it.
11990 (calculate_per_core_availability_table): New.
11991 (filter_core): New.
11992 (calculate_core_availability_table): New.
11993 (main): Use calculate_core_availablity_table.
11994 * config/arm/cortex-a8-neon.md: Update copyright year.
11995 Regenerated from ml file and merged in.
11996 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
11997 cortex_a8_neon_mrc.
11998
11999 2010-09-01 Ian Bolton <ian.bolton@arm.com>
12000
12001 * Makefile.in (tree-switch-conversion.o): Update dependencies.
12002
12003 2010-09-01 Richard Guenther <rguenther@suse.de>
12004
12005 * alias.c (ao_ref_from_mem): Adjust.
12006 * builtins.c (get_object_alignment): Likewise.
12007 * cfgexpand.c (expand_debug_expr): Likewise.
12008 * gimple.c (get_base_address): Likewise.
12009 * tree-dfa.c (get_ref_base_and_extent): Likewise.
12010 (get_addr_base_and_unit_offset): Likewise. Fix for
12011 both TMR_SYMBOL and TMR_BASE being set.
12012 * tree-eh.c (tree_could_trap_p): Likewise.
12013 * gimplify.c (gimplify_expr): Do not attempt to gimplify
12014 TMR_SYMBOL. Always gimplify TMR_BASE.
12015 * tree-cfg.c (verify_types_in_gimple_reference): Verify
12016 TMR_BASE if there is a TMR_SYMBOL.
12017 * tree-pretty-print.c (dump_generic_node): Adjust.
12018 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12019 (tree_mem_ref_addr): Likewise.
12020 (create_mem_ref_raw): Likewise.
12021 (move_fixed_address_to_symbol): Likewise.
12022 (create_mem_ref): Likewise.
12023 (dump_mem_address): Likewise.
12024 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
12025 Fix for both TMR_SYMBOL and TMR_BASE being set.
12026 (indirect_refs_may_alias_p): Likewise.
12027 * tree-ssa-operands.c (get_tmr_operands): Adjust.
12028 * tree.def (TARGET_MEM_REF): Adjust documentation.
12029
12030 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
12031
12032 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
12033 Rename from X86_TUNE_ADD_ESP_4.
12034 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
12035 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
12036 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
12037 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
12038 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
12039 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
12040 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
12041 * config/i386/i386.c (initial_ix86_tune_features)
12042 <X86_TUNE_SINGLE_POP>: Invert members.
12043 <X86_TUNE_DOUBLE_POP>: Ditto.
12044 <X86_TUNE_SINGLE_PUSH>: Ditto.
12045 <X86_TUNE_DOUBLE_PUSH>: Ditto.
12046 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
12047 No longer exported.
12048 (push peephole2 patterns): Macroize peepholes using P mode iterator.
12049 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
12050 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
12051 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
12052
12053 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
12054
12055 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
12056 a volatile LHS if the constructor has only one element.
12057
12058 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
12059
12060 PR bootstrap/45321
12061 * tree.c (stdarg_p): Make fntype parameter const.
12062 * tree.h (stdarg_p): Likewise.
12063 (function_args_iterator): Remove unused fntype field.
12064 (function_args_iter_init): Do not initialize fntype
12065 field. Make fntype parameter const.
12066
12067 2010-09-01 Richard Guenther <rguenther@suse.de>
12068
12069 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
12070 estimate.
12071 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
12072 (execute_vrp): Compute number of iteration estimates.
12073 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
12074 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
12075 * tree-data-ref.c (estimated_loop_iterations): Adjust.
12076 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
12077 Infer loop bounds from undefined behavior based on a new parameter.
12078 (estimate_numbers_of_iterations): Likewise.
12079 (scev_probably_wraps_p): Adjust.
12080 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
12081
12082 2010-09-01 Nick Clifton <nickc@redhat.com>
12083
12084 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
12085 where appropriate.
12086 (xstormy16_legitimate_address_p): Use true and false instead of 1
12087 and 0.
12088 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
12089 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
12090 magic constant 2.
12091 (xstormy16_expand_call): Fix comment at start of function.
12092
12093 2010-09-01 Nick Clifton <nickc@redhat.com>
12094
12095 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
12096 when pushing accumulator register.
12097 (rx_get_stack_layout): Always save call clobbered registers inside
12098 interrupt handlers.
12099 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
12100
12101 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
12102
12103 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
12104 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12105
12106 * libgcc-std.ver (GCC_4.6.0): Define version.
12107
12108 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
12109
12110 * tree-nested.c (convert_all_function_calls): Iterate until after the
12111 sum of static chains in the nest doesn't change.
12112
12113 2010-08-31 Anatoly Sokolov <aesok@post.ru>
12114
12115 * config/m32c/m32c.c (classes_intersect): Remove.
12116 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
12117 reg_classes_intersect_p instead of classes_intersect.
12118 (class_can_hold_mode): Change arguments type from enum reg_class to
12119 reg_class_t. Use reg_class_contents instead of class_contents.
12120 (m32c_register_move_cost): Make static. Change arguments type from
12121 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
12122 classes_intersect. Use reg_class_contents instead of class_contents.
12123 (m32c_memory_move_cost): Make static. Change arguments type from
12124 enum reg_class to reg_class_t.
12125 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12126 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12127 * config/m32c/m32c-protos.h (m32c_register_move_cost,
12128 m32c_memory_move_cost): Remove.
12129
12130 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12131
12132 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
12133 (arm_function_arg): Delete.
12134 (arm_needs_doubleword_align): Take a const_tree.
12135 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12136 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
12137 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
12138 (arm_function_arg): Make static. Take a const_tree and a bool.
12139 (arm_function_arg_advance): Likewise.
12140 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12141
12142 2010-08-31 Andi Kleen <ak@linux.intel.com>
12143
12144 * common.opt (fwhopr=): Update for -fwhopr=jobserver
12145 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
12146 * lto-wrapper.c (run_gcc): Add jobserver mode.
12147 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
12148 argument.
12149
12150 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
12151
12152 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
12153 (popsi1): Ditto.
12154 (*popdi1_epilogue): Ditto.
12155 (*popsi1_epilogue): Ditto.
12156 (popsi, popdi peephole2 patterns): Update peepholes for changed
12157 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
12158
12159 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
12160 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
12161
12162 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
12163 (override_options): Do not initialize removed ix86_gen_pop1.
12164 (gen_pop): New static function.
12165 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
12166 (release_scratch_register_on_entry): Ditto.
12167 (ix86_restore_reg_using_pop): Ditto.
12168 (ix86_expand_epilogue): Ditto.
12169
12170 2010-08-31 Jakub Jelinek <jakub@redhat.com>
12171
12172 PR middle-end/45461
12173 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
12174
12175 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12176
12177 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
12178 semicolons.
12179
12180 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12181
12182 * doc/extend.texi: Fix documentation of the return value of
12183 __builtin_choose_expr.
12184
12185 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12186
12187 * config/v850/v850-protos.h (function_arg): Delete.
12188 * config/v850/v850.h (FUNCTION_ARG): Delete.
12189 (FUNCTION_ARG_ADVANCE): Move code to...
12190 * config/v850/v850.c (v850_function_arg_advance): ...here.
12191 (v850_function_arg): Make static. Take a const_tree and a bool.
12192 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12193
12194 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12195
12196 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
12197 these...
12198 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12199 ...and these...
12200 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
12201 ..to here..
12202 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12203 ...and here.
12204 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12205
12206 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12207
12208 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
12209 Delete.
12210 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12211 * config/rx/rx.c (rx_function_arg_size): Make static.
12212 (rx_function_arg): Likewise.
12213 (rx_function_arg_advance): New function.
12214 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12215
12216 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
12217
12218 * config/arm/arm.c (arm_override_options): Remove superfluous test.
12219 Fix indentation.
12220
12221 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
12222
12223 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
12224 (dwarf2out_decl) <CONST_DECL>: Likewise.
12225
12226 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
12227
12228 Stack usage support
12229 * common.opt (-fstack-usage): New option.
12230 * doc/invoke.texi (Debugging options): Document it.
12231 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
12232 allocate_dynamic_stack_space.
12233 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
12234 and propagate it to allocate_dynamic_stack_space.
12235 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
12236 * calls.c (initialize_argument_information): Pass TRUE as 4th
12237 argument to allocate_dynamic_stack_space.
12238 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
12239 to 1 when pushing a variable-sized argument onto the stack. Pass
12240 TRUE as 4th argument to allocate_dynamic_stack_space.
12241 Update current_function_pushed_stack_size.
12242 (emit_library_call_value_1): Likewise.
12243 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
12244 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
12245 attempt to find an upper bound. Remove redundant code for the
12246 SETJMP_VIA_SAVE_AREA case.
12247 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
12248 * function.h (struct stack_usage): New structure.
12249 (current_function_static_stack_size): New macro.
12250 (current_function_dynamic_stack_size): Likewise.
12251 (current_function_pushed_stack_size): Likewise.
12252 (current_function_dynamic_alloc_count): Likewise.
12253 (current_function_has_unbounded_dynamic_stack_size): Likewise.
12254 (current_function_allocates_dynamic_stack_space): Likewise.
12255 (struct function): Add new field 'su'.
12256 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
12257 add the value of the dynamic offset to the dynamic stack usage.
12258 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
12259 for variable-sized objects.
12260 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
12261 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
12262 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
12263 BUILT_IN_ALLOCA for variable-sized objects.
12264 * output.h (output_stack_usage): Declare.
12265 * toplev.c (stack_usage_file): New file pointer.
12266 (output_stack_usage): New function.
12267 (open_auxiliary_file): Likewise.
12268 (lang_dependent_init): Open file if flag_stack_usage is set.
12269 (finalize): Close file if stack_usage_file is not null.
12270 * tree.h (ALLOCA_FOR_VAR_P): New macro.
12271 * config/alpha/alpha.c (compute_frame_size): New function.
12272 (alpha_expand_prologue): Use it.
12273 (alpha_start_function): Likewise.
12274 (alpha_expand_epilogue): Likewise. Set stack usage info.
12275 * config/i386/i386.c (ix86_expand_prologue): Likewise.
12276 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12277 * config/mips/mips.c (mips_expand_prologue): Likewise.
12278 * config/pa/pa.c (hppa_expand_prologue): Likewise.
12279 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12280 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12281
12282 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
12283
12284 PR tree-optimization/45427
12285 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
12286 Handle the case that the exit is never taken correctly.
12287 (number_of_iterations_ne): Pass exit_must_be_taken to
12288 number_of_iterations_ne_max.
12289
12290 2010-08-30 Catherine Moore <clm@codesourcery.com>
12291
12292 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
12293 Infer -mdspr2 for the the 74K.
12294
12295 2010-08-30 Jakub Jelinek <jakub@redhat.com>
12296
12297 PR debug/45419
12298 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
12299
12300 PR middle-end/45423
12301 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
12302 and TRUTH_{AND,OR,XOR}_EXPR.
12303 * c-parser.c (c_parser_omp_atomic): Handle boolean
12304 {PRE,POST}_{INC,DEC}REMENT.
12305
12306 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
12307
12308 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
12309 (function_arg): Delete.
12310 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12311 (FUNCTION_INCOMING_ARG): Delete.
12312 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
12313 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
12314 and a bool.
12315 (function_arg): Rename to...
12316 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
12317 a bool.
12318 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
12319 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12320 (TARGET_FUNCTION_INCOMING_ARG): Define.
12321
12322 2010-08-30 Richard Guenther <rguenther@suse.de>
12323
12324 PR tree-optimization/21602
12325 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
12326 using points-to information.
12327
12328 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
12329
12330 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
12331
12332 2010-08-30 Richard Guenther <rguenther@suse.de>
12333
12334 PR tree-optimization/45449
12335 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
12336 variables.
12337
12338 2010-08-30 Joseph Myers <joseph@codesourcery.com>
12339
12340 * opts.h (CL_ERR_NEGATIVE): Define.
12341 * opts.c (unknown_option_callback): Don't postpone warnings for
12342 options marked with CL_ERR_NEGATIVE.
12343 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
12344 for negative versions of CL_REJECT_NEGATIVE options.
12345
12346 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
12347
12348 * config/i386/i386.md (zero_extendsidi2_1): Rename from
12349 zero_extendsidi2_32.
12350 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
12351 using SWI12 mode iterator.
12352 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
12353 to define_insn_and_split pattern.
12354 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
12355 using SWI24 mode iterator.
12356 (*zero_extendqi<mode>2_and): Macroize insn from
12357 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
12358 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
12359 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
12360 SWI24 mode iterator.
12361 (*zero_extendqi<mode>2_movzbl): Ditto from
12362 *zero_extendqi{hi,si}2_movzbl.
12363 (extendsidi2_1): Rename from extendsidi2_32.
12364 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
12365 SWI12 mode iterator.
12366
12367 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
12368
12369 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
12370 general purpose registers.
12371 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
12372 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
12373 with general purpose registers and memory operands. Add associated
12374 CCImode post-reload splitter.
12375 * config/ia64/div.md: Change BImode to CCImode throughout.
12376
12377 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
12378
12379 * config/ia64/ia64.md (cstorebi4): Fix thinko.
12380
12381 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
12382
12383 * config/picochip/picochip.c (reorder_var_tracking_notes): This
12384 function was dropping debug insns which caused PR45299.
12385
12386 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
12387
12388 * config/i386/sse.md (extsuffix): New code attribute.
12389 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
12390 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
12391 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
12392 and sse4_1_zero_extendv4qiv4si2.
12393 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
12394 and sse4_1_zero_extendv2qiv2di2.
12395 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
12396 and sse4_1_zero_extendv4hiv4si2.
12397 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
12398 and sse4_1_zero_extendv2hiv2di2.
12399 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
12400 and sse4_1_zero_extendv2siv2di2
12401
12402 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
12403 using any_extend code iterator.
12404 (*avx_<s>mulv8hi3_highpart): Macroize insn from
12405 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
12406 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
12407
12408 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
12409 gen_sse4_1_sign_extend* functions.
12410 (struct builtin_description bdesc_args): Ditto.
12411
12412 2010-08-27 Xinliang David Li <davidxl@google.com>
12413
12414 PR/45422
12415 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
12416 (iv_ca_set_no_cp): Update used inv expr count.
12417 (iv_ca_set_cp): Ditto.
12418 (iv_ca_new): Initialize new member.
12419 (iv_ca_free): Free memory.
12420
12421 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12422
12423 * config/sh/sh-protos.h (sh_function_arg): Delete.
12424 (sh_function_arg_advance): Delete.
12425 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12426 (PASS_IN_REG_P): Eliminate cast.
12427 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
12428 const_tree and a bool.
12429 (sh_function_arg): Likewise.
12430 (sh_output_mi_thunk): Call sh_function_arg_advance) and
12431 sh_function_arg.
12432 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12433
12434 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
12435 Kaz Kojima <kkojima@gcc.gnu.org>
12436
12437 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
12438 when possible.
12439 (sh_expand_epilogue): Likewise.
12440 * config/sh/sh.md (movml_push_banked): New insn.
12441 (movml_pop_banked): Likewise.
12442
12443 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
12444
12445 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
12446 gen_regexp_oneof, gen_regexp_sequence): Use the string found
12447 in vector element 0 rather than the original string when there's
12448 only one element.
12449 (gen_regexp): Remove extra semicolon.
12450
12451 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
12452 thumb2_movsf_vfp): Set attribute "insn".
12453 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
12454 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
12455 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
12456 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
12457 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
12458 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
12459 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
12460 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
12461 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
12462 if_not_arith, if_arith_not, cond_move_not): Likewise.
12463
12464 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12465
12466 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
12467 New declaration.
12468 (rs6000_allocate_stack_temp): Ditto.
12469 (rs6000_expand_convert_si_to_sfdf): Ditto.
12470
12471 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
12472 line. Update the options set if power6 or power7 server/embedded
12473 type options are used. If we give a warning for no vsx under
12474 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
12475 (rs6000_allocate_stack_temp): New function to allocate a stack
12476 tempoary and adjust the address so it meets either REG+OFFSET or
12477 REG+REG addressing requirements.
12478 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
12479 that they can be used with the LFIWAX/LFIWZX instrucitons.
12480 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
12481 converting signed/unsigned SImode to either SFmode/DFmode.
12482
12483 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
12484 whether certain instructions can be generated.
12485 (TARGET_FCTIDZ): Ditto.
12486 (TARGET_STFIWX): Ditto.
12487 (TARGET_LFIWAX): Ditto.
12488 (TARGET_LFIWZX): Ditto.
12489 (TARGET_FCFIDS): Ditto.
12490 (TARGET_FCFIDU): Ditto.
12491 (TARGET_FCFIDUS): Ditto.
12492 (TARGET_FCTIDUZ): Ditto.
12493 (TARGET_FCTIWUZ): Ditto.
12494
12495 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
12496 (UNSPEC_FCTID): Ditto.
12497 (UNSPEC_LFIWAX): Ditto.
12498 (UNSPEC_LFIWZX): Ditto.
12499 (UNSPEC_FCTIWUZ): Ditto.
12500 (rreg): Use correct constraints.
12501 (SI_CONVERT_FP): New mode attribute for floating point conversion
12502 tests.
12503 (E500_CONVERT): Ditto.
12504 (lfiwax): New insns for converting from integer to floating point
12505 utilizing newer instructions. Attempt to optimize conversions
12506 that come from memory so that we don't load the value into a GPR,
12507 spill it to the stack and reload it into a FPR.
12508 (floatsi<mode>2_lfiwax): Ditto.
12509 (floatsi<mode>2_lfiwax_mem): Ditto.
12510 (floatsi<mode>2_lfiwax_mem2): Ditto.
12511 (lfiwzx): Ditto.
12512 (floatunssi<mode>2_lfiwzx): Ditto.
12513 (floatunssi<mode>2_lfiwzx_mem): Ditto.
12514 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
12515 (floatdidf2_mem): Ditto.
12516 (floatunsdidf2_fcfidu): Ditto.
12517 (floatunsdidf2_mem): Ditto.
12518 (floatunsdisf2): Ditto.
12519 (floatunsdisf2_fcfidus): Ditto.
12520 (floatunsdisf2_mem): Ditto.
12521 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
12522 Use FCFID on 32-bit hosts that support it.
12523 (floatsidf2_internal): Ditto.
12524 (floatunssisf2): Ditto.
12525 (floatunssidf2): Ditto.
12526 (floatunssidf2_internal): Ditto.
12527 (floatsisf2): Ditto.
12528 (floatdidf2): Ditto.
12529 (floatdidf2_fpr): Ditto.
12530 (floatunsdidf2): Ditto.
12531 (floatdisf2): Ditto.
12532 (floatdisf2_fcfids): Ditto.
12533 (floatdisf2_internal1): Ditto.
12534 (fixuns_truncsfsi2): Delete, merge into common pattern for both
12535 SF/DF. Add power7 support.
12536 (fix_truncsfsi2): Ditto.
12537 (fixuns_truncdfsi2): Ditto.
12538 (fixuns_truncdfdi2): Ditto.
12539 (fix_truncdfsi2): Ditto.
12540 (fix_truncdfsi2_internal): Ditto.
12541 (fix_truncdfsi2_internal_gfxopt): Ditto.
12542 (fix_truncdfsi2_mfpgpr): Ditto.
12543 (fctiwz): Ditto.
12544 (btruncdf2): Ditto.
12545 (btruncdf2_fpr): Ditto.
12546 (btructsf2): Ditto.
12547 (ceildf2): Ditto.
12548 (ceildf2_fpr): Ditto.
12549 (ceilsf2): Ditto.
12550 (floordf2): Ditto.
12551 (floordf2_fpr): Ditto.
12552 (floorsf2): Ditto.
12553 (rounddf2): Ditto.
12554 (rounddf2_fpr): Ditto.
12555 (roundsf2): Ditto.
12556 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
12557 (fix_trunc<mode>di2): Ditto.
12558 (fixuns_trunc<mode>si2): Ditto.
12559 (fixuns_trunc<mode>di2): Ditto.
12560 (fctiwz_<mode>): Ditto.
12561 (btrunc<mode>2): Ditto.
12562 (btrunc<mode>2_fpr): Ditto.
12563 (ceil<mode>2): Ditto.
12564 (ceil<mode>2_fpr): Ditto.
12565 (floor<mode>2): Ditto.
12566 (float<mode>2_fpr): Ditto.
12567 (round<mode>2): Ditto.
12568 (round<mode>2_fpr): Ditto.
12569 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
12570 (fixuns_trunc<mode>si2_stfiwx): Ditto.
12571 (fix_truncdfsi2_internal): Ditto.
12572 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
12573 converted value on stack, loaded into GPR, and then stored into
12574 the final destination.
12575 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
12576 FCTIDZ.
12577 (lrint<mode>di2): New insn, provide the lrint builtin functions.
12578 (ftruncdf2): Delete, unused.
12579 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
12580
12581 * config/rs6000/vsx.md (toplevel): Update copyright year.
12582 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
12583 (VSr3): Ditto.
12584
12585 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
12586 Jeremie Salvucci <jeremie.salvucci@free.fr>
12587
12588 * gengtype.c (output_type_enum): Test the right union member.
12589
12590 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
12591
12592 PR target/41484
12593 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
12594 operands for operand 1.
12595 (sse4_1_extendv4qiv4si2): Ditto.
12596 (sse4_1_extendv2qiv2di2): Ditto.
12597 (sse4_1_extendv4hiv4si2): Ditto.
12598 (sse4_1_extendv2hiv2di2): Ditto.
12599 (sse4_1_extendv2siv2di2): Ditto.
12600 (sse4_1_zero_extendv8qiv8hi2): Ditto.
12601 (sse4_1_zero_extendv4qiv4si2): Ditto.
12602 (sse4_1_zero_extendv2qiv2di2): Ditto.
12603 (sse4_1_zero_extendv4hiv4si2): Ditto.
12604 (sse4_1_zero_extendv2hiv2di2): Ditto.
12605 (sse4_1_zero_extendv2siv2di2): Ditto.
12606 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
12607 (*sse4_1_extendv4qiv4si2): Ditto.
12608 (*sse4_1_extendv2qiv2di2): Ditto.
12609 (*sse4_1_extendv4hiv4si2): Ditto.
12610 (*sse4_1_extendv2hiv2di2): Ditto.
12611 (*sse4_1_extendv2siv2di2): Ditto.
12612 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
12613 (*sse4_1_zero_extendv4qiv4si2): Ditto.
12614 (*sse4_1_zero_extendv2qiv2di2): Ditto.
12615 (*sse4_1_zero_extendv4hiv4si2): Ditto.
12616 (*sse4_1_zero_extendv2hiv2di2): Ditto.
12617 (*sse4_1_zero_extendv2siv2di2): Ditto.
12618
12619 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12620
12621 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
12622 (mips_function_arg): Delete.
12623 (mips_function_arg_boundary): Take a const_tree.
12624 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
12625 (mips_arg_info): Likewise.
12626 (mips_setup_incoming_varargs): Call mips_function_arg_advance
12627 instead of FUNCTION_ARG_ADVANCE.
12628 (mips_function_arg_advance): Adjust prototype. Make static.
12629 (mips_function_arg): Likewise.
12630 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12631 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
12632
12633 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
12634
12635 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12636 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
12637 (function_arg): Delete.
12638 (function_arg_boundary): Take a const_tree.
12639 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
12640 (rs6000_spe_function_arg): Likewise.
12641 (rs6000_parm_start): Likewise.
12642 (rs6000_arg_size): Likewise.
12643 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
12644 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
12645 (rs6000_mixed_function_arg): Likewise.
12646 (function_arg): Rename to...
12647 (rs6000_function_arg): ...this.
12648 (function_arg_advance): Rename to...
12649 (rs6000_function_arg_advance_1): ...this
12650 (rs6000_function_arg_advance): New function. Call it.
12651 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
12652 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
12653 (rs6000_function_value): Likewise.
12654 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12655
12656 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12657
12658 * config/arm/arm.md (enabled): Test the value of arch_enabled
12659 rather than just using it.
12660
12661 2010-08-27 Olivier Hainque <hainque@adacore.com>
12662 Eric Botcazou <ebotcazou@adacore.com>
12663
12664 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
12665 cover all the possible offsets from this base.
12666 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
12667
12668 2010-08-26 Jakub Jelinek <jakub@redhat.com>
12669
12670 PR tree-optimization/44485
12671 * calls.c (flags_from_decl_or_type): For const or pure
12672 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
12673 together with ECF_CONST resp. ECF_PURE.
12674 * builtins.c (expand_builtin): Use flags_from_decl_or_type
12675 instead of querying flags directly.
12676 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
12677 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
12678
12679 2010-08-26 Richard Guenther <rguenther@suse.de>
12680
12681 PR tree-optimization/45255
12682 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
12683 and externals are also invariant.
12684
12685 2010-08-25 Jakub Jelinek <jakub@redhat.com>
12686
12687 PR rtl-optimization/44858
12688 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
12689 newi2pat, make sure they don't affect newpat.
12690
12691 PR rtl-optimization/45400
12692 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
12693 SUBREG_REG if both modes are of MODE_INT class.
12694
12695 2010-08-25 Julian Brown <julian@codesourcery.com>
12696
12697 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
12698 * config/arm/arm.md (generic_sched): No for Cortex-A5.
12699 (generic_vfp): Likewise.
12700 (cortex-a5.md): Include.
12701 * config/arm/cortex-a5.md: New.
12702
12703 2010-08-25 Richard Guenther <rguenther@suse.de>
12704
12705 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
12706 * gimple.c (gimple_get_alias_set): Remove special handling
12707 for pointers.
12708
12709 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
12710
12711 PR middle-end/45355
12712 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
12713 dead_or_set_p when computing i0_feeds_i2_n.
12714
12715 * combine.c (find_split_point): Undo canonicalization of multiply-add
12716 to (minus x (mult)) when it seems likely that this will increase the
12717 chances of a split.
12718
12719 2010-08-25 Richard Guenther <rguenther@suse.de>
12720
12721 PR lto/44562
12722 * lto-streamer.c (lto_record_common_node): Do not mess with
12723 TYPE_CANONICAL when not in lto.
12724 * gimple.c (gimple_register_type): Likewise.
12725
12726 2010-08-25 Richard Guenther <rguenther@suse.de>
12727
12728 PR tree-optimization/45316
12729 * tree-ssa-pre.c (eliminate): Properly clean EH info.
12730
12731 2010-08-25 Richard Guenther <rguenther@suse.de>
12732
12733 PR tree-optimization/45393
12734 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
12735 and clean EH info. Avoid SSA update.
12736 (execute_cse_sincos): Cleanup the CFG if it has changed.
12737
12738 2010-08-25 Richard Guenther <rguenther@suse.de>
12739
12740 PR middle-end/45379
12741 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
12742 TARGET_MEM_REF in alignment computation.
12743
12744 2010-08-25 Jakub Jelinek <jakub@redhat.com>
12745
12746 PR tree-optimization/45059
12747 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
12748 type conversions from newop{1,2}. Assert t is a comparison and
12749 newop{1,2} after the stripping are gimple vals.
12750
12751 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
12752
12753 * config/arm/iterators.md (VU, SE, V_widen_l): New.
12754 (V_unpack, US): New.
12755 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
12756 (vec_unpack<US>_lo_<mode>): Likewise.
12757 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
12758 (neon_vec_unpack<US>_lo_<mode>): Likewise.
12759 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
12760 (vec_widen_<US>mult_hi_<mode>): Likewise.
12761 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
12762 (neon_vec_<US>mult_hi_<mode>"): Likewise.
12763 (neon_unpack<US>_<mode>): Widening move intermediate step for
12764 vectorizing without -mvectorize-with-neon-quad.
12765 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
12766 for vectorizing without -mvectorize-with-neon-quad.
12767 * config/arm/predicates.md (vect_par_constant_high): Check for
12768 high-half lanes of a vector.
12769 (vect_par_constant_low): Check for low-half lanes of a vector.
12770
12771 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12772
12773 * tree-if-conv.c (struct ifc_dr): New.
12774 (IFC_DR): New.
12775 (DR_WRITTEN_AT_LEAST_ONCE): New.
12776 (DR_RW_UNCONDITIONALLY): New.
12777 (memref_read_or_written_unconditionally): Use the cached values
12778 when possible.
12779 (write_memref_written_at_least_once): Same.
12780 (if_convertible_loop_p): Initialize and free DR->aux fields.
12781
12782 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12783
12784 * gimple.c (gimple_could_trap_p_1): Not static anymore.
12785 Pass an extra bool parameter include_mem.
12786 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
12787 (gimple_assign_rhs_could_trap_p): Same.
12788 * gimple.h (gimple_could_trap_p_1): Declared.
12789 * tree-data-ref.h (same_data_refs_base_objects): New.
12790 (same_data_refs): New.
12791 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
12792 (write_memrefs_written_at_least_once): New.
12793 (ifcvt_memrefs_wont_trap): New.
12794 (operations_could_trap): New.
12795 (ifcvt_could_trap_p): New.
12796 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
12797 Gets a vector of data refs.
12798 (if_convertible_stmt_p): Same.
12799 (if_convertible_loop_p_1): New.
12800 (if_convertible_loop_p): Call if_convertible_loop_p_1.
12801
12802 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
12803
12804 * common.opt (ftree-loop-if-convert-stores): New flag.
12805 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
12806 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
12807 the created statement before GSI.
12808 (if_convertible_phi_p): Allow virtual phi nodes when
12809 flag_loop_if_convert_stores is set.
12810 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
12811 Do not handle types that do not match is_gimple_reg_type.
12812 Remove loop and bb parameters. Call gimple_could_trap_p instead of
12813 when flag_loop_if_convert_stores is set, as LHS can contain
12814 memory refs.
12815 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
12816 to if_convertible_gimple_assign_stmt_p.
12817 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
12818 (replace_phi_with_cond_gimple_assign_stmt): Renamed
12819 predicate_scalar_phi. Do not handle virtual phi nodes.
12820 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
12821 Call predicate_scalar_phi.
12822 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
12823 just after the labels for flag_loop_if_convert_stores, otherwise
12824 insert the predicate in the end of the BB.
12825 (predicate_mem_writes): New.
12826 (combine_blocks): Call predicate_all_scalar_phis. When
12827 flag_loop_if_convert_stores is set, call predicate_mem_writes.
12828 (tree_if_conversion): Call mark_sym_for_renaming when
12829 flag_loop_if_convert_stores is set.
12830 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
12831 flag_loop_if_convert_stores is set.
12832
12833 2010-08-24 Anatoly Sokolov <aesok@post.ru>
12834
12835 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
12836 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
12837 (pa_function_value): Make static.
12838 (override_options): Rename to...
12839 (pa_option_override): ...this. Make static.
12840 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
12841 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
12842 TARGET_OPTION_OVERRIDE): Define.
12843 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
12844 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
12845 Remove.
12846 * config/pa/pa-protos.h (override_options): Remove.
12847
12848 2010-08-24 Richard Guenther <rguenther@suse.de>
12849
12850 PR middle-end/45379
12851 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
12852 if addr->index is NULL or zero.
12853 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
12854 TARGET_MEM_REF more properly.
12855 (indirect_ref_may_alias_decl_p): Likewise.
12856 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
12857 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
12858
12859 2010-08-23 Anatoly Sokolov <aesok@post.ru>
12860
12861 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
12862 (m32c_override_options): Rename to...
12863 (m32c_option_override): ...this. Make static.
12864 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
12865 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
12866 Remove.
12867 * config/m32c/m32c-protos.h (m32c_override_options,
12868 m32c_function_value_regno_p): Remove.
12869
12870 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
12871
12872 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
12873 Fix a typo in a previous commit.
12874
12875 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
12876
12877 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
12878 Pre-initialize innerloop_iters to one.
12879
12880 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
12881
12882 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
12883 existing static function global.
12884
12885 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
12886 is changed to global.
12887
12888 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
12889 may_be_nonaddressable_p on base, and don't collect this reference
12890 if the address of the base could not be taken.
12891
12892 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12893
12894 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
12895 enable the compiler to autovectorize mathmetical functions for
12896 power7 using the Mathematical Acceleration Subsystem library.
12897
12898 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
12899 handle which vector math library we have.
12900 (rs6000_override_options): Add -mveclibabi=mass support.
12901 (rs6000_builtin_vectorized_libmass): New function to handle auto
12902 vectorizing math functions that are in the MASS library.
12903 (rs6000_builtin_vectorized_function): Call it.
12904
12905 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12906 -mveclibabi=mass.
12907
12908 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12909
12910 PR boehm-gc/34544
12911 * gthr-posix.h (__gthread_active_init): Delete.
12912 (__gthread_active_p): Do activity check here.
12913 Don't include errno.h on hppa-hpux. Update comment.
12914 * gthr-posix95.h (__gthread_active_init): Delete.
12915 (__gthread_active_p): Do activity check here.
12916 Don't include errno.h on hppa-hpux. Update comment.
12917 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
12918 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
12919 add -lpthread when -mt or -pthread is specified.
12920 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
12921 (LINK_GCC_C_SEQUENCE_SPEC): Define.
12922 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
12923 (stublib.c, pthread_default_stacksize_np-stub.o,
12924 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
12925 $(T)libgcc_stub.a): Add methods.
12926 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
12927 (stublib.c, pthread_default_stacksize_np-stub.o,
12928 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
12929 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12930 pthread_mutex_unlock): New stubs.
12931
12932 2010-08-22 Joseph Myers <joseph@codesourcery.com>
12933
12934 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
12935 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
12936 options.
12937 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
12938 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
12939 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
12940 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
12941 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
12942 "-l".
12943 * cppspec.c: Include opts.h.
12944 (lang_specific_driver): Use cl_decoded_option structures.
12945 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
12946 * doc/tm.texi: Regenerate.
12947 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
12948 (driver_handle_option): Allow driver options needing no special
12949 processing.
12950 (process_command): Decode options before call to
12951 lang_specific_driver. Pass decoded options to
12952 lang_specific_driver.
12953 * gcc.h (lang_specific_driver): Update prototype.
12954 * gccspec.c: Include opts.h.
12955 (lang_specific_driver): Use cl_decoded_option structures.
12956 * opts-common.c (option_ok_for_language, generate_option,
12957 generate_option_input_file): New.
12958 (decode_cmdline_option): Use option_ok_for_language.
12959 (decode_cmdline_options_to_array): Use generate_option_input_file.
12960 (handle_generated_option): Use generate_option.
12961 * opts.h (generate_option, generate_option_input_file): Declare.
12962
12963 2010-08-22 Anatoly Sokolov <aesok@post.ru>
12964
12965 * config/mips/mips.c (mips_override_options): Rename to...
12966 (mips_option_override): ...this. Make static.
12967 (TARGET_OPTION_OVERRIDE): Define.
12968 (mips_in_small_data_p): Update comment.
12969 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
12970 (FIXED_REGISTERS): Update comment.
12971 * config/mips/mips-protos.h (mips_override_options): Remove.
12972
12973 2010-08-21 Olivier Hainque <hainque@adacore.com>
12974
12975 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
12976
12977 2010-08-21 Olivier Hainque <hainque@adacore.com>
12978
12979 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
12980 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
12981
12982 2010-08-20 Jan Hubicka <jh@suse.cz>
12983
12984 * tree-pass.h (pass_ipa_cdtor_merge): New function.
12985 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
12986 heap allocated.
12987 (record_cdtor_fn): Move to ipa.c; do not test for
12988 have_ctors_dtors.
12989 (build_cdtor): Move to ipa.c; add code avoiding construction
12990 when target have ctors/dtors and there is only one ctor/dtor at given
12991 priority.
12992 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
12993 sort; reverse order of constructors.
12994 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
12995 (cgraph_finalize_function): Do not call record_cdtor_fn.
12996 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
12997 (cgraph_build_static_cdtor): Move to ipa.c.
12998 * ipa.c: Include target.h and tree-iterator.h.
12999 (cgraph_build_static_cdtor, static_ctors, static_dtors,
13000 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
13001 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
13002 pass_ipa_cdtor_merge): New.
13003 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
13004 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
13005 bounds access.
13006
13007 2010-08-20 Jan Hubicka <jh@suse.cz>
13008
13009 PR c++/45307
13010 PR c++/17736
13011 * cgraph.h (cgraph_only_called_directly_p,
13012 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
13013 static cdtors.
13014 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
13015 are not needed.
13016 (cgraph_finalize_function): Static cdtors are reachable.
13017 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
13018
13019 2010-08-20 Jan Hubicka <jh@suse.cz>
13020
13021 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
13022 flag_wpa.
13023 * lto-streamer-out.c (lto_output): Likewise.
13024 * passes.c (ipa_write_optimization_summaries): Initialize statement
13025 uids.
13026
13027 2010-08-20 Olivier Hainque <hainque@adacore.com>
13028
13029 * tree.h (alias_diag_flags): New enum.
13030 (alias_pair): Add an 'emitted_diags' field.
13031 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
13032 (assemble_alias): Initialize emitted_diags of new pairs.
13033
13034 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
13035
13036 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13037 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13038 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13039 (STACK_CHECK_PROTECT): Define.
13040 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
13041 (output_probe_stack_range): Likewise.
13042 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
13043 builtin stack checking is enabled.
13044 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
13045 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13046 (probe_stack_range): New insn.
13047
13048 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
13049
13050 PR target/45336
13051 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
13052 short first.
13053
13054 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
13055 char first.
13056
13057 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13058
13059 PR target/45336
13060 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
13061 to cover zero extension into 64-bit register.
13062 (*sse2_pextrw): Likewise.
13063 (*sse4_1_pextrd_zext): New insn.
13064
13065 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
13066
13067 revert r163410, partially revert r163267.
13068 * config/rs6000/darwin.h (LIB_SPEC): Remove.
13069 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
13070 Darwin versions.
13071
13072 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13073
13074 PR middle-end/44974
13075 * builtins.c (expand_builtin): Don't optimize away
13076 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
13077
13078 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
13079
13080 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
13081 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
13082 alternative 1 of operand 2.
13083
13084 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13085 Paolo Bonzini <bonzini@gnu.org>
13086
13087 * simplify-rtx.c (simplify_unary_operation_1): Optimize
13088 (sign_extend (zero_extend (...)) and
13089 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
13090
13091 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13092
13093 PR rtl-optimization/45353
13094 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
13095 after bb_note is a BARRIER.
13096
13097 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
13098
13099 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
13100 linking libgcc.a.
13101
13102 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13103 Michael Matz <matz@suse.de>
13104
13105 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
13106
13107 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
13108
13109 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
13110 (ggc_mark_roots): ...here.
13111
13112 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
13113
13114 * vec.h (FOR_EACH_VEC_ELT): Define.
13115 * c-decl.c: Use it.
13116 * cfgloop.c: Likewise.
13117 * cfgloopmanip.c: Likewise.
13118 * cgraph.c: Likewise.
13119 * cgraphunit.c: Likewise.
13120 * combine.c: Likewise.
13121 * config/bfin/bfin.c: Likewise.
13122 * config/mips/mips.c: Likewise.
13123 * config/rs6000/rs6000.c: Likewise.
13124 * dbxout.c: Likewise.
13125 * df-scan.c: Likewise.
13126 * dominance.c: Likewise.
13127 * dse.c: Likewise.
13128 * dwarf2out.c: Likewise.
13129 * except.c: Likewise.
13130 * expr.c: Likewise.
13131 * function.c: Likewise.
13132 * gcse.c: Likewise.
13133 * genattr.c: Likewise.
13134 * ggc-common.c: Likewise.
13135 * gimplify.c: Likewise.
13136 * graphite-blocking.c: Likewise.
13137 * graphite-clast-to-gimple.c: Likewise.
13138 * graphite-dependences.c: Likewise.
13139 * graphite-interchange.c: Likewise.
13140 * graphite-poly.c: Likewise.
13141 * graphite-scop-detection.c: Likewise.
13142 * graphite-sese-to-poly.c: Likewise.
13143 * graphite.c: Likewise.
13144 * haifa-sched.c: Likewise.
13145 * ifcvt.c: Likewise.
13146 * implicit-zee.c: Likewise.
13147 * ipa-prop.c: Likewise.
13148 * ipa-struct-reorg.c: Likewise.
13149 * ipa.c: Likewise.
13150 * ira-build.c: Likewise.
13151 * ira-color.c: Likewise.
13152 * ira-emit.c: Likewise.
13153 * lambda-code.c: Likewise.
13154 * loop-invariant.c: Likewise.
13155 * loop-unroll.c: Likewise.
13156 * lower-subreg.c: Likewise.
13157 * lto-cgraph.c: Likewise.
13158 * lto-opts.c: Likewise.
13159 * lto-streamer-in.c: Likewise.
13160 * lto-streamer-out.c: Likewise.
13161 * lto-streamer.c: Likewise.
13162 * lto-symtab.c: Likewise.
13163 * matrix-reorg.c: Likewise.
13164 * opts.c: Likewise.
13165 * predict.c: Likewise.
13166 * print-tree.c: Likewise.
13167 * sdbout.c: Likewise.
13168 * sel-sched-dump.c: Likewise.
13169 * sel-sched-ir.c: Likewise.
13170 * sel-sched.c: Likewise.
13171 * sese.c: Likewise.
13172 * stor-layout.c: Likewise.
13173 * tree-cfg.c: Likewise.
13174 * tree-cfgcleanup.c: Likewise.
13175 * tree-chrec.c: Likewise.
13176 * tree-data-ref.c: Likewise.
13177 * tree-emutls.c: Likewise.
13178 * tree-inline.c: Likewise.
13179 * tree-into-ssa.c: Likewise.
13180 * tree-loop-distribution.c: Likewise.
13181 * tree-loop-linear.c: Likewise.
13182 * tree-mudflap.c: Likewise.
13183 * tree-outof-ssa.c: Likewise.
13184 * tree-parloops.c: Likewise.
13185 * tree-predcom.c: Likewise.
13186 * tree-pretty-print.c: Likewise.
13187 * tree-scalar-evolution.c: Likewise.
13188 * tree-ssa-live.c: Likewise.
13189 * tree-ssa-loop-im.c: Likewise.
13190 * tree-ssa-loop-ivcanon.c: Likewise.
13191 * tree-ssa-loop-ivopts.c: Likewise.
13192 * tree-ssa-loop-manip.c: Likewise.
13193 * tree-ssa-loop-niter.c: Likewise.
13194 * tree-ssa-loop-prefetch.c: Likewise.
13195 * tree-ssa-phiprop.c: Likewise.
13196 * tree-ssa-pre.c: Likewise.
13197 * tree-ssa-reassoc.c: Likewise.
13198 * tree-ssa-sccvn.c: Likewise.
13199 * tree-ssa-structalias.c: Likewise.
13200 * tree-ssa.c: Likewise.
13201 * tree-vect-data-refs.c: Likewise.
13202 * tree-vect-loop-manip.c: Likewise.
13203 * tree-vect-loop.c: Likewise.
13204 * tree-vect-patterns.c: Likewise.
13205 * tree-vect-slp.c: Likewise.
13206 * tree-vect-stmts.c: Likewise.
13207 * tree-vrp.c: Likewise.
13208 * tree.c: Likewise.
13209 * value-prof.c: Likewise.
13210 * var-tracking.c: Likewise.
13211 * varasm.c: Likewise.
13212 * vmsdbgout.c: Likewise.
13213
13214 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
13215 Richard Guenther <richard.guenther@gmail.com>
13216
13217 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
13218 copy the src value and return a copy.
13219 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
13220 (C++ Volatiles): Adjust to describe C++ semantics only.
13221
13222 2010-08-20 Joseph Myers <joseph@codesourcery.com>
13223
13224 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
13225 be zero or nonzero.
13226 * doc/tm.texi: Regenerate.
13227 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
13228 * df-scan.c (df_get_exit_block_use_set), reginfo.c
13229 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
13230 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
13231 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
13232 to 1.
13233
13234 2010-08-20 Olivier Hainque <hainque@adacore.com>
13235
13236 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
13237 an extra nop past a sibling call at the very end.
13238
13239 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13240
13241 PR bootstrap/45350
13242 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
13243 a comment.
13244
13245 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13246
13247 * target.def (function_arg, function_incoming_arg): Remove const
13248 qualifier on CUMULATIVE_ARGS parameter.
13249 * targhooks.h (default_function_arg, default_function_incoming_arg):
13250 Likewise.
13251 * targhooks.c (default_function_arg, default_function_incoming_arg):
13252 Likewise.
13253 * config/i386/i386.c (ix86_function_arg): Likewise.
13254
13255 2010-08-19 Jakub Jelinek <jakub@redhat.com>
13256
13257 PR target/45336
13258 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
13259 SIGN_EXTENDs or ZERO_EXTENDs.
13260
13261 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13262
13263 PR target/42172
13264 * combine.c (combine_validate_cost): New arg I0. All callers changed.
13265 Take its cost into account if nonnull.
13266 (insn_a_feeds_b): New static function.
13267 (combine_instructions): Look for four-insn combinations.
13268 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
13269 them into account when computing all_adjacent and looking for other
13270 uses.
13271 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
13272 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
13273 (try_combine): New arg I0. Handle four-insn combinations.
13274 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
13275 like ELIM_I1.
13276
13277 2010-08-19 Jason Merrill <jason@redhat.com>
13278
13279 PR c++/45307
13280 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
13281 if ctor is empty.
13282 (gimplify_modify_expr_rhs): Adjust.
13283
13284 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13285
13286 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
13287 bitmap_bit_p.
13288 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
13289 * dominance.c (iterate_fix_dominators): Likewise.
13290 * dse.c (set_usage_bits): Likewise.
13291 (set_position_unneeded, record_store): Likewise.
13292 * gimple-fold.c (get_maxval_strlen): Likewise.
13293 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
13294 * ipa-inline.c (update_caller_keys): Likewise.
13295 * ipa-split.c (verify_non_ssa_vars): Likewise.
13296 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
13297 (close_type_exposed_parameter, close_type_full_escape): Likewise.
13298 (close_addressof_down): Likewise.
13299 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
13300 (setup_allocno_left_conflicts_size): Likewise.
13301 (ira_reassign_conflict_allocnos): Likewise.
13302 (ira_reassign_pseudos): Likewise.
13303 * ira-emit.c (change_loop): Likewise.
13304 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
13305 * lto-streamer-out.c (write_symbol): Likewise.
13306 * predict.c (expr_expected_value_1): Likewise.
13307 * regstat.c (regstat_bb_compute_ri): Likewise.
13308 * sel-sched.c (create_block_for_bookkeeping): Likewise.
13309 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
13310 * stmt.c (expand_case): Likewise.
13311 * tree-eh.c (emit_eh_dispatch): Likewise.
13312 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
13313 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
13314 Likewise.
13315 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
13316 (rdg_build_components): Likewise.
13317 * tree-object-size.c (collect_object_sizes_for): Likewise.
13318 * tree-sra.c (convert_callers): Likewise.
13319 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
13320 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
13321 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
13322
13323 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13324
13325 * config/i386/i386.md (*lea_1): Use P mode iterator.
13326 (lea add splitter): Also handle DImode operands.
13327 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
13328 predicate. Do not use ix86_lea_for_add_ok.
13329 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
13330 (lea ashift splitter): Also handle DImode operands.
13331 (DImode lea ashift splitter): Remove splitter.
13332
13333 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13334
13335 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
13336 ix86_binary_operator_ok.
13337
13338 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
13339
13340 PR rtl-optimization/44691
13341 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
13342 is not a register.
13343
13344 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13345
13346 PR target/45070
13347 * config/arm/arm.c (arm_output_epilogue): Ensure that return
13348 value of size 1-3 is handled correctly.
13349
13350 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13351
13352 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
13353 type for the conditional has wide enough range.
13354
13355 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13356
13357 PR target/45327
13358 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
13359 ix86_binary_operator_ok.
13360
13361 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13362
13363 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
13364 <default>: Swap operands 1 and 2 for alternative 2 to use existing
13365 code to output insn mnemonic. Fix comment.
13366 (*addsi_1_zext): Add r-r-0 alternative 1.
13367 <TYPE_LEA>: Split insn to lea.
13368 <default>: Handle alternative 1.
13369 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
13370 multi-level if_then_else RTX to set "type" attribute.
13371 <default>: Handle alternative 2.
13372 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
13373 Use cond RTX instead of multi-level if_then_else RTX to set
13374 "type" attribute.
13375 <default>: Handle alternatives 2 and 4.
13376 (lea splitters): Update calls to ix86_lea_for_add_ok.
13377
13378 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
13379 argument.
13380 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
13381
13382 2010-08-18 Richard Guenther <rguenther@suse.de>
13383
13384 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
13385 use operand helpers.
13386
13387 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
13388
13389 PR middle-end/45292
13390 * optabs.c (expand_bool_compare_and_swap): Expand pending
13391 pops before trying the optab.
13392
13393 2010-08-18 Yao Qi <yao@codesourcery.com>
13394
13395 PR target/45094
13396 * config/arm/arm.c (output_move_double): Fix typo generating
13397 instructions ('ldr'->'str').
13398
13399 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13400
13401 PR rtl-optimization/42575
13402 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
13403 live ranges.
13404
13405 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
13406
13407 * config/arm/arm-protos.h (arm_expand_sync): New.
13408 (arm_output_memory_barrier, arm_output_sync_insn): New.
13409 (arm_sync_loop_insns): New.
13410 * config/arm/arm.c (FL_ARCH7): New.
13411 (FL_FOR_ARCH7): Include FL_ARCH7.
13412 (arm_arch7): New.
13413 (arm_print_operand): Support %C markup.
13414 (arm_legitimize_sync_memory): New.
13415 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
13416 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
13417 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
13418 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
13419 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
13420 (arm_process_output_sync_insn, arm_output_sync_insn): New.
13421 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
13422 * config/arm/arm.h (struct arm_sync_generator): New.
13423 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
13424 (TARGET_HAVE_MEMORY_BARRIER): New.
13425 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
13426 * config/arm/arm.md: Include sync.md.
13427 (UNSPEC_MEMORY_BARRIER): New.
13428 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
13429 (VUNSPEC_SYNC_OP):New.
13430 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
13431 (sync_result, sync_memory, sync_required_value): New attributes.
13432 (sync_new_value, sync_t1, sync_t2): Likewise.
13433 (sync_release_barrier, sync_op): Likewise.
13434 (length): Add logic to length attribute defintion to call
13435 arm_sync_loop_insns when appropriate.
13436 * config/arm/sync.md: New file.
13437
13438 2010-08-17 Jakub Jelinek <jakub@redhat.com>
13439
13440 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
13441 ENABLE_TREE_CHECKING.
13442 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
13443 and GCC >= 4.3.
13444
13445 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
13446
13447 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
13448 or optimizing for size, always avoid lea if possible.
13449
13450 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
13451
13452 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
13453
13454 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
13455 Dunmmy function with NULL return unless the target is
13456 OSX >= 10.6 (Darwin10).
13457
13458 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
13459
13460 * gcc.c (spec_function): Add remove-outfile.
13461 (remove_outfile_spec_function): New function.
13462 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
13463 * invoke.texi (replace-outfile): Document.
13464
13465 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
13466
13467 PR target/45296
13468 * reginfo.c (globalize_reg): Reject stack registers.
13469
13470 2010-08-17 Richard Guenther <rguenther@suse.de>
13471
13472 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
13473 list of conditional equivalences.
13474 (free_all_edge_infos): Adjust.
13475 (record_equivalences_from_incoming_edge): Likewise.
13476 (record_cond): Likewise.
13477 (build_and_record_new_cond): Likewise.
13478 (record_conditions): Likewise.
13479 (dom_opt_leave_block): Likewise.
13480
13481 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
13482
13483 * doc/invoke.texi (ms-extension): Add documentation.
13484
13485 2010-08-17 Richard Guenther <rguenther@suse.de>
13486
13487 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
13488
13489 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
13490
13491 PR c/40563
13492 * c-decl.c (diagnose_uninitialized_cst_member): New function.
13493 (finish_decl): Use it to issue a -Wc++-compat warning about
13494 uninitialized const field in struct or union.
13495
13496 (finish_struct): Use strip_array_types.
13497
13498 2010-08-17 Jakub Jelinek <jakub@redhat.com>
13499
13500 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
13501 functions.
13502 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
13503 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
13504 call block_nreverse here.
13505 (blocks_nreverse): Rename decl temporary to block.
13506
13507 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
13508
13509 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
13510 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
13511 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
13512 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
13513 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
13514 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
13515 thumb2_iorsi3): Delete.
13516 (orsi_notsi_si): No longer a named pattern.
13517 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
13518 * config/arm/predicates.md (shift_amount_operand): New.
13519 (mult_operator): New.
13520 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
13521 attr enabled): New.
13522 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
13523 arch matches t2.
13524 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
13525 (not_shiftsi_compare0): Likewise, renamed from
13526 arm_notsi_shiftsi_compare0.
13527 (not_shiftsi_compare0_scratch): Likweise, renamed from
13528 arm_notsi_shiftsi_compare0_scratch.
13529 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
13530 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
13531 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
13532 so that the register alternative is disabled when the shift_operator
13533 is MULT. Use "M" as the constraint for constants.
13534 (arith_shiftsi splitter): Enable for TARGET_32BIT.
13535 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
13536 constraint for constants.
13537 (arith_shiftsi_compare0_scratch): Likewise.
13538 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
13539 Handle Thumb2 alternative.
13540
13541 2010-08-16 Joseph Myers <joseph@codesourcery.com>
13542
13543 * doc/options.texi (NoDriverArg): Document.
13544 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
13545 -MDX and -MMDX.
13546 * opt-functions.awk (switch_flags): Handle NoDriverArg.
13547 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
13548 marking for CL_NO_DRIVER_ARG options when in the driver.
13549 * opts.h (CL_NO_DRIVER_ARG): Define.
13550 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13551 CL_COMMON): Update values.
13552
13553 2010-08-16 Joseph Myers <joseph@codesourcery.com>
13554
13555 * common.opt: Add driver options.
13556 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
13557 * doc/options.texi (Driver, RejectDriver): Document.
13558 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
13559 print_prog_name, print_multi_directory, print_sysroot,
13560 print_multi_os_directory, print_multi_lib,
13561 print_sysroot_headers_suffix, report_times, combine_flag,
13562 use_pipes, wrapper_string): Remove.
13563 (save_switch, driver_unknown_option_callback,
13564 driver_wrong_lang_callback, driver_post_handling_callback,
13565 driver_handle_option): New.
13566 (spec_lang, last_language_n_infiles): Make file-scope static
13567 instead of local to process_command.
13568 (process_command): Use decode_cmdline_options_to_array and
13569 read_cmdline_option for option processing. Compute have_c in
13570 prescan of decoded options.
13571 * opt-functions.awk (switch_flags): Handle Driver and
13572 RejectDriver.
13573 (var_type, var_type_struct): Handle Separate options as generating
13574 const char * variables.
13575 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
13576 CL_TARGET to be passed by caller if required.
13577 (decode_cmdline_options_to_array): Update comment.
13578 * opts.c (complain_wrong_lang): Handle options only valid for the
13579 driver.
13580 (decode_options): Update call to decode_cmdline_options_to_array.
13581 (print_filtered_help): Ignore driver-only options.
13582 (print_specific_help): Ignore CL_DRIVER.
13583 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
13584 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
13585 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
13586 Update values.
13587
13588 2010-08-16 Richard Guenther <rguenther@suse.de>
13589
13590 * tree-cfg.c (verify_types_in_gimple_reference): Verify
13591 TARGET_MEM_REF a bit.
13592 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
13593 (create_mem_ref_raw): Always create TMR_OFFSET, store the
13594 alias pointer type via it.
13595 (copy_mem_ref_info): Adjust.
13596 (maybe_fold_tmr): Likewise.
13597 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
13598 (reference_alias_ptr_type): Likewise.
13599 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
13600 adjust documentation of TMR_OFFSET operand.
13601 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
13602 use the alias pointer type.
13603 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
13604 initialize mem attrs but the TMR itself.
13605 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
13606 similar to MEM_REF.
13607 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
13608 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
13609 (unshare_and_remove_ssa_names): Likewise.
13610 (copy_ref_info): Adjust.
13611 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
13612 TARGET_MEM_REF case.
13613 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
13614 at TMR_ORIGINAL.
13615 * tree.h (TMR_ORIGINAL): Remove.
13616 * gimple.c (get_base_address): For TARGET_MEM_REF with a
13617 symbol return that.
13618 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
13619 with a symbol.
13620 (get_addr_base_and_unit_offset): Likewise.
13621 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
13622 TARGET_MEM_REFs.
13623 (indirect_ref_may_alias_decl_p): Likewise.
13624 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
13625
13626 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
13627
13628 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
13629 with GCC version 4.6, the default setting (when not optimizing
13630 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
13631 been changed to -fomit-frame-pointer.
13632
13633 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
13634
13635 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
13636 Darwin10. Do not link libgcc.a for Darwin >= 9.
13637
13638 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
13639
13640 * doc/invoke.texi (Warning Options): Fix terminology and markup
13641 in the description of how unknown warning options are handled.
13642
13643 2010-08-15 Ira Rosen <irar@il.ibm.com>
13644
13645 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
13646 in basic blocks.
13647 (vect_supportable_dr_alignment): Check alignment for basic blocks.
13648 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
13649 data references.
13650 (vect_bb_vectorization_profitable_p): New function.
13651 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
13652 check if it's worthwhile to vectorize the basic block.
13653
13654 2010-08-14 Anatoly Sokolov <aesok@post.ru>
13655
13656 * reload.h (register_move_cost, memory_move_secondary_cost,
13657 secondary_reload_class): Adjust prototype.
13658 * rtl.h (reg_class_subset_p): Adjust prototype.
13659 * reload.c (secondary_reload_class): Change arguments type from
13660 enum reg_class to reg_class_t. Change result type to reg_class_t.
13661 * reginfo.c (register_move_cost, reg_class_subset_p): Change
13662 arguments type from enum reg_class to reg_class_t.
13663 (memory_move_secondary_cost): Change arguments type from
13664 enum reg_class to reg_class_t. Change type of saved_flags to
13665 reg_class_t.
13666
13667 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13668 Remove macros.
13669 (mips_cost): Remove.
13670 (struct mips_rtx_cost_data): Moved to mips.c.
13671 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
13672 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
13673 (mips_cost): Make static.
13674 (mips_canonicalize_move_class): Change argument type to reg_class_t.
13675 Change result type to reg_class_t.
13676 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
13677 type from enum reg_class to reg_class_t.
13678 (mips_register_move_cost): Make static. Change arguments
13679 type from enum reg_class to reg_class_t.
13680 (mips_memory_move_cost): New function.
13681 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13682
13683 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
13684
13685 PR rtl-optimization/43358
13686 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
13687 of a single hard register, using simplify_subreg_regno to decide
13688 what that register should be.
13689
13690 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
13691
13692 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
13693 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
13694 (loongson_pmull<V_suffix>): Rename to...
13695 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
13696
13697 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
13698
13699 * configure.ac: Enable -fomit-frame-pointer on darwin
13700 which support dwarf2.
13701 * config/i386/i386.c (override_options): Same.
13702
13703 2010-08-13 Jie Zhang <jie@codesourcery.com>
13704
13705 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
13706
13707 2010-08-12 Joseph Myers <joseph@codesourcery.com>
13708
13709 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
13710 -MMD.
13711
13712 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
13713
13714 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
13715 up dot_prod pattern searching if a stmt is outside the loop.
13716
13717 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
13718 Uros Bizjak <ubizjak@gmail.com>
13719
13720 * config.gcc: Handle --enable-frame-pointer.
13721
13722 * configure.ac: Add --enable-frame-pointer.
13723 * configure: Regenerated.
13724
13725 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
13726 (override_options): If not configured with --enable-frame-pointer,
13727 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
13728 optimizing for size), -fasynchronous-unwind-tables and
13729 -maccumulate-outgoing-args by default.
13730
13731 2010-08-12 Jakub Jelinek <jakub@redhat.com>
13732
13733 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
13734
13735 PR middle-end/45262
13736 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
13737 -a overflows. Normalize the range.
13738
13739 2010-08-12 Richard Guenther <rguenther@suse.de>
13740
13741 PR tree-optimization/45232
13742 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
13743 for types with undefined overflow.
13744 (reassociate_bb): Allow re-associating of bit and min/max
13745 operations for types with undefined overflow.
13746 * tree-ssa-forwprop.c (associate_plusminus): New function.
13747 (tree_ssa_forward_propagate_single_use_vars): Call it.
13748
13749 2010-08-12 Richard Guenther <rguenther@suse.de>
13750
13751 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
13752 * tree-ssa-alias.c (get_ptr_info): Move ...
13753 * tree-ssanames.c (get_ptr_info): ... here. Initialize
13754 align and misalign fields conservatively.
13755 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
13756 derive alignment information.
13757 (evaluate_stmt): Derive alignment information from memory
13758 allocation functions.
13759 * tree.h (get_pointer_alignment): Make unsigned.
13760 * builtins.c (get_object_alignment): Use alignment information we
13761 have computed for pointers.
13762 (get_pointer_alignment): Likewise. Make conservative, return
13763 and unsigned value.
13764 (expand_builtin_strlen): Adjust.
13765 (expand_builtin_memcmp): Likewise.
13766 (expand_builtin_strcmp): Likewise.
13767 (expand_builtin_strncmp): Likewise.
13768 (get_builtin_sync_mem): Use at least mode alignment.
13769 (fold_builtin_memset): Adjust.
13770 (fold_builtin_memory_op): Likewise.
13771 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
13772 information also dump pointer alignment knowledge.
13773 (dump_gimple_stmt): Likewise.
13774
13775 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
13776
13777 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
13778 (EMPTY_FIELD_BOUNDARY): Remove.
13779 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
13780
13781 2010-08-12 Jakub Jelinek <jakub@redhat.com>
13782
13783 PR debug/45259
13784 * caller-save.c (save_call_clobbered_regs): Only swap notes with
13785 DEBUG_INSNs if n_regs_saved.
13786
13787 2010-08-12 Wei Guozhi <carrot@google.com>
13788
13789 PR target/44999
13790 * config/arm/arm.md (andsi3): Change to zero extension if possible.
13791 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
13792
13793 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
13794
13795 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
13796
13797 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
13798
13799 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13800
13801 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
13802 the case removed in the previous patch, when the only phi argument
13803 is defined in the same loop as the phi node itself. Handle it
13804 separately from the invariant case by both propagating it outside
13805 the region and replacing the phi node with an assign.
13806
13807 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13808
13809 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
13810 constant phi nodes with one argument are is_gimple_min_invariant
13811 and SSA_NAME_IS_DEFAULT_DEF.
13812
13813 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13814
13815 * graphite-cloog-util.c (oppose_constraint):
13816 Extend loop counter's value range (CLOOG_ORG).
13817 (cloog_matrix_to_ppl_constraint): Same.
13818 (new_Constraint_System_from_Cloog_matrix): Same.
13819 * graphite-cloog-compat.h (matrix_num_type): New.
13820
13821 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13822
13823 * graphite.c (graphite_initialize): Do not initialize
13824 CLooG and initialize the Parma Polyhedra Library
13825 manually when using CLOOG_ORG.
13826 (graphite_finalize): Do not finalize CLooG and finalize
13827 the Parma Polyhedra Library manually when using CLOOG_ORG.
13828 * graphite-cloog-compat.h (cloog_initialize): Hide function
13829 when using CLOOG_ORG.
13830 (cloog_finalize): Same.
13831
13832 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13833
13834 * graphite-clast-to-gimple.c (free_scattering): Change
13835 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
13836 (CLOOG_ORG).
13837 (build_cloog_prog): Same.
13838 * graphite-cloog-compat.h (cloog_domain): Removed.
13839 (cloog_scattering): New.
13840 (cloog_set_domain): Removed.
13841 (cloog_set_scattering): New.
13842 (cloog_next_domain): Removed.
13843 (cloog_next_scattering): New.
13844 (cloog_set_next_domain): Removed.
13845 (cloog_set_next_scattering): New.
13846 (CloogScatteringList): New.
13847 (CloogScattering): New.
13848 (cloog_scattering_free): New.
13849 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
13850 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
13851 New.
13852
13853 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13854
13855 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
13856 CloogState.
13857 (set_cloog_options): Same.
13858 (print_clast_stmt): Same.
13859 (scop_to_clast): Same.
13860 (print_generated_program): Same.
13861 (gloog): Same.
13862 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
13863 (scop_to_clast): Extend with CloogState.
13864 * graphite-cloog-util.c: Include graphite-cloog-compat.h
13865 (new_Cloog_Domain_from_ppl_Polyhedron):
13866 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
13867 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
13868 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13869 * graphite-cloog-util.h (build_cloog_prog): Same.
13870 * graphite-cloog-copat.h (build_cloog_prog): New.
13871 (CloogState): New.
13872 (cloog_state_malloc): New.
13873 (cloog_state_free): New.
13874 (cloog_loop_malloc): New.
13875 (cloog_options_malloc): New.
13876 (cloog_statement_alloc): New.
13877 (cloog_domain_from_cloog_matrix): New.
13878 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
13879 (new_Cloog_Domain_from_ppl_Polyhedron): New.
13880
13881 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13882
13883 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
13884 type of NAME now depends on used CLooG version.
13885 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
13886 (gcc_type_for_clast_expr): Same.
13887 (print_clast_stmt): Replace pprint with clast_pprint.
13888 * graphite-cloog-compat.h: Provide compatibility macros for
13889 CLooG Legacy.
13890 (clast_name_p): New.
13891 (clast_expr_term): New.
13892 (clast_expr_red): New.
13893 (clast_expr_bin): New.
13894 (clast_pprint): New.
13895
13896 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13897
13898 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
13899 compatible to newer CLooG releases (CLOOG_ORG).
13900 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
13901 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
13902 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
13903 (build_cloog_prog) : New.
13904 (cloog_program_extract_scalars): New.
13905 (cloog_program_scatter): New.
13906
13907 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13908
13909 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
13910 conditionally (CLOOG_ORG).
13911 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
13912 (cloog_statement_usr): New.
13913 (cloog_domain): Same.
13914 (cloog_set_domain): Same.
13915 (cloog_next_domain): Same.
13916 (cloog_set_next_domain): Same.
13917 (cloog_program_nb_scattdims): Same.
13918 (cloog_program_set_nb_scattdims): Same.
13919 (cloog_program_names): Same.
13920 (cloog_program_set_names): Same.
13921 (cloog_program_set_context): Same.
13922 (cloog_program_set_loop): Same.
13923 (cloog_program_blocklist): Same.
13924 (cloog_program_set_blocklist): Same.
13925 (cloog_program_scaldims): Same.
13926 (cloog_program_set_scaldims): Same.
13927 (cloog_names_nb_parameters): Same.
13928 (cloog_names_set_nb_parameters): Same.
13929 (cloog_names_parameters): Same.
13930 (cloog_names_set_parameters): Same.
13931 (cloog_names_set_nb_iterators): Same.
13932 (cloog_names_set_iterators): Same.
13933 (cloog_names_set_nb_scattering): Same.
13934 (cloog_names_set_scattering): Same.
13935 (cloog_statement_set_usr): Same.
13936 (cloog_loop_set_next): Same.
13937 (cloog_loop_set_domain): Same.
13938 (cloog_loop_set_block): Same.
13939 (cloog_block_list_next): Same.
13940 (cloog_block_list_set_next):
13941 (cloog_block_list_set_block): Same.
13942
13943 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13944
13945 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
13946 a bool.
13947 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
13948 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
13949 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
13950 when something has been changed.
13951 (rewrite_commutative_reductions_out_of_ssa): Same.
13952
13953 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13954
13955 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
13956 handle the case when def is in the sese region.
13957 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
13958 for invariant expressions.
13959 (rewrite_cross_bb_phi_deps): Removed.
13960 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
13961 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
13962 rewrite_cross_bb_phi_deps.
13963
13964 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13965
13966 * graphite-sese-to-poly.c
13967 (rewrite_commutative_reductions_out_of_ssa_loop): Call
13968 scev_analyzable_p only on is_gimple_reg
13969
13970 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13971
13972 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
13973 (rewrite_close_phi_out_of_ssa): Propagate constant values or
13974 parametric expressions outside the scop region.
13975 (rewrite_cross_bb_scalar_deps): Same.
13976 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
13977
13978 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13979
13980 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
13981 SSA_NAME_DEF_STMT only on SSA_NAMEs.
13982
13983 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13984
13985 * tree-scalar-evolution.c (instantiate_scev_name): Do not
13986 instantiate default definitions.
13987
13988 2010-08-11 Vladimir Kargov <kargov@gmail.com>
13989 Sebastian Pop <sebastian.pop@amd.com>
13990
13991 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
13992 (loop_exits_from_bb_p): New.
13993 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
13994 (loop_exits_from_bb_p): Declared.
13995 * graphite-scop-detection.c (scopdet_basic_block_info): Call
13996 loop_exits_to_bb_p.
13997
13998 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13999
14000 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
14001 extra parameter for the region. Call scev_analyzable_p.
14002 (rewrite_reductions_out_of_ssa): Update call to
14003 rewrite_close_phi_out_of_ssa.
14004 (rewrite_cross_bb_phi_deps): Same.
14005 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
14006 parameter for the region. Call scev_analyzable_p.
14007 (rewrite_commutative_reductions_out_of_ssa): Update call to
14008 rewrite_commutative_reductions_out_of_ssa_loop.
14009
14010 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14011
14012 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
14013
14014 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14015
14016 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
14017 SSA scalar phi nodes that can be scev_analyzable_p.
14018
14019 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14020
14021 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
14022 handle SSA_NAME_IS_DEFAULT_DEF.
14023
14024 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14025
14026 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
14027
14028 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14029
14030 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
14031 case non close-phi nodes with one argument.
14032
14033 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14034
14035 * sese.h (scev_analyzable_p): Scevs could be expressions without
14036 chrecs and still be scev_analyzable_p.
14037
14038 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14039
14040 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14041
14042 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14043
14044 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
14045 * cfgloop.h (struct loop): Remove single_iv field.
14046 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
14047 (scop_canonicalize_loops): Removed.
14048 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
14049 over all the loop phi nodes in loop->header.
14050 (build_poly_scop): Remove use of scop_canonicalize_loops.
14051
14052 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14053
14054 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
14055 handle GIMPLE_CALL.
14056
14057 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14058
14059 * tree-chrec.c (chrec_apply): Should only apply to the specified
14060 variable. Also handle multivariate chains of recurrences that
14061 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
14062
14063 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14064
14065 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
14066 (debug_clast_name_indexes_1): Removed.
14067 (debug_clast_name_indexes): Removed.
14068 (pbb_to_depth_to_oldiv): Removed.
14069 (build_iv_mapping): Replace the use of rename_map with iv_map.
14070 (translate_clast_user): Remove uses of rename_map. Allocate and
14071 free iv_map.
14072 (translate_clast_for_loop): Remove uses of rename_map.
14073 (translate_clast_for): Same.
14074 (translate_clast_guard): Same.
14075 (translate_clast): Same.
14076 (gloog): Same.
14077 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
14078 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
14079 * sese.c (set_rename): Now static.
14080 (rename_variables_in_stmt): Removed.
14081 (rename_uses): New.
14082 (is_parameter): Removed.
14083 (is_iv): Removed.
14084 (expand_scalar_variables_call): Removed.
14085 (expand_scalar_variables_ssa_name): Removed.
14086 (expand_scalar_variables_expr): Removed.
14087 (expand_scalar_variables_stmt): Removed.
14088 (expand_scalar_variables): Removed.
14089 (rename_variables): Removed.
14090 (remove_condition): Removed.
14091 (get_true_edge_from_guard_bb): Removed.
14092 (get_false_edge_from_guard_bb): Removed.
14093 (struct igp): Removed.
14094 (default_before_guard): Removed.
14095 (convert_for_phi_arg): Removed.
14096 (add_guard_exit_phis): Removed.
14097 (insert_guard_phis): Removed.
14098 (graphite_copy_stmts_from_block): Now also uses iv_map and a
14099 region. Do not copy conditions. Do not copy induction variables.
14100 Call rename_uses.
14101 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
14102 the translated statement. Use the iv_map for the induction
14103 variable renaming.
14104 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
14105 (set_rename): Removed declaration.
14106 (scev_analyzable_p): ...here.
14107 * tree-chrec.c (chrec_apply_map): New.
14108 * tree-chrec.h (chrec_apply_map): Declared.
14109
14110 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14111
14112 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
14113 insert_loop_close_phis.
14114 * sese.c (name_defined_in_loop_p): Removed.
14115 (expr_defined_in_loop_p): Removed.
14116 (alive_after_loop): Removed.
14117 (close_phi_not_yet_inserted_p): Removed.
14118 (struct alep): Removed.
14119 (add_loop_exit_phis): Removed.
14120 (insert_loop_close_phis): Removed.
14121
14122 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14123
14124 * graphite-cloog-util.c
14125 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
14126 * graphite-poly.c
14127 (psct_scattering_dim_for_loop_depth): Same.
14128
14129 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14130
14131 * graphite-cloog-util.h: Added cloog.h.
14132 * graphite-blocking.c: Removed cloog.h.
14133 * graphite-dependences.c: Same.
14134 * graphite-interchange.c: Same.
14135 * graphite-poly.c: Same.
14136 * graphite-ppl.c: Same.
14137 * graphite-scop-detection.c: Same.
14138 * graphite-sese-to-poly.c:
14139 Removed cloog.h.
14140 Removed graphite-clast-to-gimple.h.
14141 (check_poly_representation): Removed (unused).
14142 * graphite-sese-to-poly.h
14143 (check_poly_representation): Removed (unused).
14144
14145 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14146
14147 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
14148 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
14149 (graphite-cloog-util.o): New.
14150 (graphite-ppl.o): Added graphite-cloog-util.h.
14151 * graphite-clast-to-gimple.c:
14152 Added graphite-cloog-util.h to include statements.
14153 * graphite-cloog-util.c: New.
14154 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
14155 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14156 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14157 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14158 (insert_constraint_into_matrix): Same.
14159 (ppl_Constrain_System_number_of_constraints): Same.
14160 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14161 (oppose_constraint): Same.
14162 (cloog_matrix_to_ppl_constraint): Same.
14163 (new_Constraint_System_from_Cloog_Matrix): Same.
14164 * graphite-cloog-util.h: New.
14165 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
14166 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14167 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14168 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14169 (insert_constraint_into_matrix): Same.
14170 * graphite-ppl.c:
14171 Added graphite-cloog-util.h to include statements.
14172 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
14173 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14174 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14175 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14176 (insert_constraint_into_matrix): Same.
14177 (ppl_Constrain_System_number_of_constraints): Same.
14178 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14179 (oppose_constraint): Same.
14180 (cloog_matrix_to_ppl_constraint): Same.
14181 (new_Constraint_System_from_Cloog_Matrix): Same.
14182 * graphite-ppl.h:
14183 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
14184 graphite-cloog-util.h.
14185 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14186 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14187 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14188 (insert_constraint_into_matrix): Same.
14189
14190 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14191
14192 * graphite-clast-to-gimple.c
14193 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
14194 (precision_for_interval): Same.
14195 (gcc_type_for_interval): Same.
14196 (compute_type_for_level): Same.
14197 * graphite-interchange.c
14198 (lst_interchange_profitable_p): Same.
14199 * graphite-poly.c
14200 (psct_scattering_dim_for_loop_depth): Same.
14201 * graphite-ppl.c
14202 (ppl_max_for_le_pointset): Same.
14203 (ppl_min_for_le_pointset): Same.
14204
14205 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14206
14207 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
14208 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
14209
14210 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14211
14212 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
14213 rewrite_close_phi_out_of_ssa.
14214
14215 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14216
14217 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
14218
14219 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14220
14221 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
14222 rename_map.
14223 * sese.c (debug_rename_map): Same.
14224 (get_rename): Same.
14225 (set_rename): Same.
14226 (rename_variables_in_stmt): Same.
14227 (expand_scalar_variables_call): Same.
14228 (expand_scalar_variables_ssa_name): Same.
14229 (expand_scalar_variables_expr): Same.
14230 (expand_scalar_variables_stmt): Same.
14231 (expand_scalar_variables): Same.
14232 (rename_variables): Same.
14233 (graphite_copy_stmts_from_block): Same.
14234 (copy_bb_and_scalar_dependences): Same.
14235
14236 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14237
14238 * graphite-clast-to-gimple.c (copy_renames): Removed.
14239 (translate_clast_for): Do not call copy_renames.
14240 (translate_clast_guard): Same.
14241
14242 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14243
14244 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
14245 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
14246 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
14247 before rewrite_cross_bb_scalar_deps.
14248
14249 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14250
14251 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
14252 Early return in when flag_associative_math is not set.
14253
14254 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14255
14256 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
14257 of SSA copies on edges except for loop->latch.
14258
14259 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14260
14261 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
14262 Split out of rewrite_reductions_out_of_ssa.
14263 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
14264 Declared.
14265 * graphite.c (graphite_transform_loops): Call it.
14266
14267 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14268
14269 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
14270
14271 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
14272
14273 * dbgcnt.def (graphite_scop): New counter.
14274 * graphite.c: Include dbgcnt.h.
14275 (graphite_transform_loops): Use new counter to limit transformations.
14276 * Makefile.in (graphite.o): Depend on DBGCNT_H.
14277
14278 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14279
14280 * passes.c (init_optimization_passes): Add pass_graphite.
14281 Schedule a pass_copy_prop before pass_graphite_transforms.
14282 * timevar.def (TV_GRAPHITE): Declared.
14283 * tree-pass.h (pass_graphite): Declared.
14284 * tree-ssa-loop.c (pass_graphite): New.
14285
14286 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14287
14288 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
14289 Remove calls to rename_nb_iterations and rename_sese_parameters.
14290 * graphite-clast-to-gimple.h (gloog): Update declaration.
14291 * graphite.c (graphite_transform_loops): Update call to gloog.
14292 * sese.c (rename_variables_in_expr): Removed.
14293 (rename_nb_iterations): Removed.
14294 (rename_sese_parameters): Removed.
14295 * sese.h (rename_nb_iterations): Removed.
14296 (rename_sese_parameters): Removed.
14297
14298 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14299
14300 * graphite-clast-to-gimple.c (gloog): Remove call to
14301 sese_adjust_liveout_phis.
14302 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
14303 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
14304 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
14305 rewrite_phi_out_of_ssa.
14306 * sese.c (get_vdef_before_sese): Removed.
14307 (sese_adjust_vphi): Removed.
14308 (sese_adjust_liveout_phis): Removed.
14309 * sese.h (sese_adjust_liveout_phis): Removed.
14310
14311 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14312
14313 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
14314 argument for the place after which to insert the out of SSA copy.
14315 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
14316 (rewrite_phi_out_of_ssa): Same.
14317 (rewrite_cross_bb_scalar_deps): Same.
14318 (insert_copyout): Removed.
14319 (insert_copyin): Removed.
14320 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
14321 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
14322 insert_copyin.
14323
14324 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14325
14326 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
14327 (rewrite_reductions_out_of_ssa): Same.
14328 (rewrite_commutative_reductions_out_of_ssa): Same.
14329 (build_poly_scop): Do not call these functions.
14330 * graphite-sese-to-poly.h (build_poly_scop): Declared.
14331 (rewrite_reductions_out_of_ssa): Declared.
14332 (rewrite_commutative_reductions_out_of_ssa): Declared.
14333 * graphite.c (graphite_transform_loops): Call on every scop
14334 rewrite_commutative_reductions_out_of_ssa before calling
14335 rewrite_reductions_out_of_ssa and build_scop_bbs.
14336
14337 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14338
14339 * graphite-dependences.c (dot_deps): Make system call to dotty run
14340 in background.
14341 (dot_deps_stmt): Same.
14342 * graphite-poly.c (dot_lst): Same.
14343
14344 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14345
14346 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
14347 phi_arg_in_outermost_loop.
14348 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
14349 (remove_invariant_phi): Same.
14350
14351 2010-08-11 Anatoly Sokolov <aesok@post.ru>
14352
14353 * target.def (output_addr_const_extra): New hook.
14354 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
14355 * doc/tm.texi: Regenerate.
14356 * targhooks.c (default_asm_output_addr_const_extra): New function.
14357 * targhooks.h (default_asm_output_addr_const_extra): Declare.
14358 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
14359 target hook.
14360
14361 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14362 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
14363 * config/i386/i386.h (output_addr_const_extra): Rename to...
14364 (i386_asm_output_addr_const_extra): ...this. Make static.
14365 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14366
14367 2010-08-11 Richard Henderson <rth@redhat.com>
14368
14369 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
14370
14371 2010-08-11 Nick Clifton <nickc@redhat.com>
14372
14373 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
14374 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
14375 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14376 stormy16-lib2-cmpsi.c.
14377
14378 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
14379 -O2.
14380
14381 2010-08-11 Joseph Myers <joseph@codesourcery.com>
14382
14383 * opts.h (struct cl_option_handler_func): Make handler take
14384 cl_decoded_option structure as parameter, not individual elements.
14385 (struct cl_option_handlers): Make callbacks take cl_decoded_option
14386 structure as parameter, not individual elements.
14387 (handle_option): Take cl_decoded_option structure as parameter,
14388 not individual elements.
14389 (handle_generated_option): Declare.
14390 * opts-common.c (handle_option): Take cl_decoded_option structure
14391 as parameter, not individual elements. Update calls to callback
14392 and handler functions.
14393 (handle_generated_option): New.
14394 (read_cmdline_option): Update calls to callback functions and
14395 handle_option.
14396 * opts.c (common_handle_option, complain_wrong_lang,
14397 unknown_option_callback, post_handling_callback,
14398 lang_handle_option, target_handle_option): Take cl_decoded_option
14399 structure as parameter, not individual elements.
14400 (lang_handle_option, target_handle_option, common_handle_option):
14401 Assert option has at most one argument.
14402 (enable_warning_as_error): Call handle_generated_option instead of
14403 handle_option. Do not pass -Werror argument as argument of
14404 generated option.
14405
14406 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14407
14408 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14409 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14410 (SUBWORD_BOOL_CAS): Likewise.
14411 (SUBWORD_SYNC_OP): Likewise.
14412 (SUBWORD_TEST_AND_SET): Likewise.
14413 (FETCH_AND_OP_WORD): Parenthesise INF_OP
14414 (SUBWORD_SYNC_OP): Likewise.
14415 (OP_AND_FETCH_WORD): Likewise.
14416
14417 2010-08-10 Xinliang David Li <davidxl@google.com>
14418
14419 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
14420 compute max/min offset in address.
14421
14422 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
14423
14424 * ira-live.c: Include sbitmap.h.
14425 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
14426 Compress live ranges even more.
14427
14428 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14429
14430 * coverage.c (ctr_labels): Delete.
14431
14432 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
14433
14434 PR bootstrap/45177
14435 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
14436 test here from arm_gen_load_multiple_1.
14437 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
14438 multiple_operation_profitable_p.
14439
14440 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14441
14442 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
14443 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
14444
14445 2010-08-10 Richard Henderson <rth@redhat.com>
14446
14447 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
14448 after saving registers. Assert that SSE registers are only saved
14449 with a sufficiently aligned frame.
14450 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
14451 remove stack_realign_fp handling.
14452 (ix86_expand_prologue): Save int registers before stack_realign_fp,
14453 and do not mark the stack alignment as frame related.
14454 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
14455
14456 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
14457 saves when re-aligning the stack.
14458
14459 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14460
14461 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
14462 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
14463 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
14464
14465 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
14466
14467 * dwarf2out.c (struct die_struct): Move die_tag to the end.
14468
14469 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
14470
14471 * config/arm/iterators.md: New file.
14472 * config/arm/arm.md: Include iterators.md.
14473 (QHSI): Move to new file.
14474 (LTUGEU, cnb, optab, ior_xor): Likewise.
14475 * config/arm/iwmmxt.md (VMMX): Move to new file.
14476 (VSHFT, MMX_char): Likewise.
14477 * config/arm/neon.md (VD): Move to new file.
14478 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
14479 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
14480 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
14481 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
14482 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
14483 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
14484 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
14485 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
14486 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
14487 (Is_d_reg, V_mode_nunits): Likewise.
14488 * config/arm/vec-common.md (VALL): Move to new file.
14489 (VALLW, VINT, VINTW): Likewise.
14490
14491 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
14492
14493 PR middle-end/45182
14494 * combine.c (make_compound_operation): Don't try to convert
14495 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
14496
14497 2010-08-10 Richard Guenther <rguenther@suse.de>
14498
14499 * tree.h (get_object_alignment): Adjust prototype.
14500 * builtins.c (get_object_alignment): Return unsigned int,
14501 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
14502 and TARGET_MEM_REF properly.
14503 (get_pointer_alignment): Adjust.
14504 * emit-rtl.c (get_mem_align_offset): Adjust comment.
14505 (set_mem_attributes_minus_bitpos): Adjust.
14506 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
14507
14508 2010-08-10 Richard Guenther <rguenther@suse.de>
14509
14510 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
14511 (copy_prop_visit_assignment): Simplify.
14512 (copy_prop_visit_stmt): Also visit assignments from
14513 constants.
14514 (copy_prop_visit_phi_node): Use operand_equal_p.
14515
14516 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14517
14518 * ipa-split.c (find_split_points): Free stack.
14519
14520 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14521
14522 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
14523 * tree.c (tree_node_kind): Delete corresponding entries.
14524
14525 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
14526
14527 * alias.c (may_alias_p): Remove unused ret.
14528
14529 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
14530
14531 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
14532 alias_sets_conflict_p.
14533 (walk_mems_1): Moved from alias.c.
14534 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
14535 in alias.c.
14536 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
14537 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
14538 * alias.c (walk_mems_2): Moved to ddg.c.
14539 (walk_mems_1): Ditto.
14540 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
14541 to ddg.c.
14542 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
14543 disambiguation.
14544 *(may_alias_p): New function to check whether two memory expression
14545 may alias or not. Currently used in buidling inter-iteration memory
14546 dependence.
14547 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
14548 (insn_alias_sets_conflict_p): Removed
14549 *rtl.h (may_alias_p): New function prototype.
14550
14551 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14552
14553 * tree.c (nreverse): Assert that we don't have a BLOCK.
14554
14555 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
14556
14557 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
14558 * config/arm/arm.c (arm_get_pcs_model): Likewise.
14559 * config/avr/avr.c (init_cumulative_args): Likewise.
14560 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14561 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14562 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
14563 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14564 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14565 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14566 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
14567 * dwarf2out.c (gen_subprogram_die): Likewise.
14568 * function.c (allocate_struct_function): Likewise.
14569 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
14570 (deserves_ellipsis): Delete.
14571
14572 2010-08-09 Richard Guenther <rguenther@suse.de>
14573
14574 * tree-ssa-copy.c (cached_last_copy_of): Remove.
14575 (valueize_val): New function.
14576 (get_last_copy_of): Remove.
14577 (set_copy_of_val): Simplify.
14578 (dump_copy_of): Likewise.
14579 (copy_prop_visit_cond_stmt): Use valueize_val.
14580 (copy_prop_visit_phi_node): Properly handle unvisited names.
14581 Drop code managing copy-of chains.
14582 (init_copy_prop): Adjust.
14583 (fini_copy_prop): Likewise.
14584 (execute_copy_prop): Remove obsolete comment.
14585
14586 2010-08-09 Richard Guenther <rguenther@suse.de>
14587
14588 PR middle-end/44632
14589 * function.c (gimplify_parameters): Do not clear addressable
14590 bit of the original parameter.
14591
14592 2010-08-09 Richard Guenther <rguenther@suse.de>
14593
14594 PR middle-end/45212
14595 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
14596 alignment from MEM_REF offset only if we took it from the
14597 base object.
14598
14599 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
14600
14601 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
14602
14603 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14604
14605 * c-tree.h (build_arg_info): Declare.
14606 * c-decl.c (build_arg_info): Define.
14607 (get_parm_info): Call it. Delete initialization code.
14608 * c-parser.c (c_parser_parms_declarator): Likewise.
14609 (c_parser_parms_list_declaractor): Likewise.
14610
14611 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14612
14613 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
14614 (struct c_arg_info): Change type of tags field.
14615 * c-decl.c (grokdeclarator): Update for changed type of tags field.
14616 (get_parm_info): Likewise.
14617 (store_parm_decls_newstyle): Likewise.
14618
14619 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
14620
14621 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
14622 (branch_island_list): Delete.
14623 (branch_islands): Declare.
14624 (add_compiler_branch_island): Adjust for branch_islands instead of
14625 branch_island_list.
14626 (macho_branch_islands): Likewise.
14627 (no_previous_def): Likewise.
14628 (get_prev_label): Likewise.
14629
14630 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14631
14632 PR boehm-gc/34544
14633 * gthr-posix.h (__gthread_start): Delete.
14634 (__gthread_active_init): Use pthread_default_stacksize_np instead of
14635 pthread_create to determine if hpux pthreads are active.
14636 * gthr-posix95.h (__gthread_start): Delete.
14637 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
14638
14639 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
14640
14641 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
14642 _WIN64 not expanded.
14643
14644 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
14645 H.J. Lu <hongjiu.lu@intel.com>
14646
14647 PR target/45213
14648 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
14649 to output 32bit SFmode immediate as 8 byte sign extended value.
14650
14651 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14652
14653 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
14654 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
14655 (SUBWORD_BOOL_CAS): Likewise.
14656 (SUBWORD_SYNC_OP): Likewise.
14657 (SUBWORD_TEST_AND_SET): Likewise.
14658 (FETCH_AND_OP_WORD): Parenthesise INF_OP
14659 (SUBWORD_SYNC_OP): Likewise.
14660 (OP_AND_FETCH_WORD): Likewise.
14661
14662 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14663
14664 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
14665 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
14666 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
14667 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
14668 generic part.
14669 (cortex_a9_sched_adjust_cost): New function.
14670 (xscale_sched_adjust_cost): New function.
14671 * config/arm/arm-protos.h (struct tune_params): New field
14672 sched_adjust_cost.
14673 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
14674
14675 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
14676
14677 PR target/44942
14678 * config/sparc/sparc.c (function_arg_advance): Always take into account
14679 the padding, if any.
14680
14681 2010-08-06 Richard Guenther <rguenther@suse.de>
14682
14683 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
14684 (dump_lattice_value): Dump it.
14685 (get_default_value): Adjust.
14686 (get_constant_value): Likewise.
14687 (set_value_varying): Likewise.
14688 (set_lattice_value): Make sure to not go up the lattice
14689 with bitwise constant values.
14690 (get_value_for_expr): Handle ADDR_EXPRs.
14691 (value_to_double_int): New function.
14692 (get_value_from_alignment): Likewise.
14693 (do_dbg_cnt): Adjust.
14694 (ccp_lattice_meet): Handle partially constant values.
14695 (bit_value_unop_1): New function.
14696 (bit_value_binop_1): Likewise.
14697 (bit_value_unop): Likewise.
14698 (bit_value_binop): Likewise.
14699 (evaluate_stmt): Track partially constant values if
14700 flag_tree_bit_ccp is set.
14701 (ccp_fold_stmt): Dump if we folded a predicate.
14702 (ccp_visit_stmt): Adjust.
14703 * common.opt (ftree-bit-ccp): New flag.
14704 * doc/invoke.texi (ftree-bit-ccp): Document.
14705 * opts.c (decode_options): Enable bit-CCP at -O1.
14706
14707 2010-08-06 Alan Modra <amodra@gmail.com>
14708
14709 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
14710 and -mrelocatable-lib description.
14711
14712 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
14713
14714 From Martin Thuresson <martint@google.com>
14715 * postreload.c (reload_cse_simplify_operands): Use
14716 SET_REGNO_RAW instead of SET_REGNO.
14717 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
14718 SET_REGNO.
14719 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
14720 instead of SET_REGNO.
14721 * rtl.h (SET_REGNO_RAW): New macro.
14722
14723 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
14724
14725 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
14726 computations. Fix formatting issues.
14727 (num_sign_bit_copies1): Likewise.
14728 (canonicalize_condition): Likewise.
14729
14730 2010-08-05 Richard Henderson <rth@redhat.com>
14731
14732 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
14733 (floor_log2): Use clz_hwi.
14734 (exact_log2): Use ctz_hwi.
14735 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
14736 * builtins.c (fold_builtin_bitop): Use them.
14737 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14738 * combine.c (get_pos_from_mask): Use ctz_hwi.
14739 * double-int.c (double_int_ctz): Likewise.
14740 * explow.c (force_reg): Likewise.
14741 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
14742
14743 2010-08-05 Richard Henderson <rth@redhat.com>
14744
14745 PR target/45189
14746 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
14747 the alignment constant is properly sign-extended.
14748
14749 2010-08-05 Richard Guenther <rguenther@suse.de>
14750
14751 * expr.c (store_expr): Use emit_block_move only if both
14752 source and target are MEMs. Use store_bit_field if only
14753 the target is a MEM.
14754
14755 2010-08-05 Richard Henderson <rth@redhat.com>
14756
14757 PR debug/45188
14758 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
14759 (INCOMING_RETURN_ADDR_RTX): Likewise.
14760 (dwarf2out_do_frame): Remove conditional compilation.
14761 (dwarf2out_frame_init): Likewise.
14762
14763 2010-08-05 Nicolas Setton <setton@adacore.com>
14764
14765 * gcov.c (flag_display_progress): New static variable.
14766 (main): Display progress info on standard output if requested.
14767 (options): Add -d/--display-progress.
14768 (print_usage): Print them.
14769 (process_args): Handle them.
14770 * doc/gcov.texi: Document them.
14771
14772 2010-08-05 Martin Jambor <mjambor@suse.cz>
14773
14774 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
14775 (ipcp_insert_stage): Redirect only edges not flagged with
14776 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
14777 discovered constants.
14778
14779 2010-08-05 Martin Jambor <mjambor@suse.cz>
14780
14781 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
14782 (struct ipa_param_descriptor): New fields types and
14783 cannot_devirtualize.
14784 (ipa_param_cannot_devirtualize_p): New function.
14785 (ipa_param_types_vec_empty): Likewise.
14786 (ipa_make_edge_direct_to_target): Declare.
14787 * ipa-cp.c: Fixed first stage driver name in initial comment,
14788 described devirtualization there too.
14789 (ipcp_analyze_node): Call ipa_analyze_params_uses.
14790 (ipcp_print_all_lattices): Print devirtualization info.
14791 (ipa_set_param_cannot_devirtualize): New function.
14792 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
14793 lattice to BOTTOM.
14794 (ipcp_init_stage): Merged into...
14795 (ipcp_generate_summary): ...its caller.
14796 (ipcp_change_tops_to_bottom): Also process type lists.
14797 (ipcp_add_param_type): New function.
14798 (ipcp_copy_types): Likewise.
14799 (ipcp_propagate_types): Likewise.
14800 (ipcp_propagate_stage): Also propagate types.
14801 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
14802 Also return true if propagated types require it.
14803 (ipcp_update_callgraph): Dump redirection info.
14804 (ipcp_process_devirtualization_opportunities): New function.
14805 (ipcp_const_param_count): Include known type information.
14806 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
14807 on new node. Fixed formatting.
14808 * ipa-prop.c (make_edge_direct_to_target): Renamed to
14809 ipa_make_edge_direct_to_target and changed all callers. Made
14810 externally visible.
14811 (ipa_node_duplication_hook): Duplicate types vector.
14812 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
14813 redirect outgoing calls for which we can't get a decl from the
14814 statement. Check that we can get a decl from the call statement.
14815 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14816 ipa_analyze_params_uses only when ipa-cp is disabled.
14817 * tree-inline.c (get_indirect_callee_fndecl): Removed.
14818 (expand_call_inline): Do not call get_indirect_callee_fndecl.
14819 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
14820 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
14821
14822 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
14823
14824 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
14825 temporary. Emit move from temporary to accum, so REG_EQUAL note will
14826 be attached to this insn in correct mode.
14827
14828 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
14829
14830 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
14831 using REGNO of base_reg directly.
14832
14833 2010-08-05 Jie Zhang <jie@codesourcery.com>
14834
14835 PR tree-optimization/45144
14836 * tree-sra.c (type_consists_of_records_p): Return false
14837 if the record contains bit-field.
14838
14839 2010-08-04 Richard Henderson <rth@redhat.com>
14840
14841 * config/i386/i386.c (struct ix86_frame): Remove padding and
14842 to_allocate members.
14843 (ix86_compute_frame_layout): Don't store them.
14844 (ix86_can_use_return_insn_p): Use a more direct and more obviously
14845 correct condition for the position of the stack pointer.
14846 (ix86_expand_prologue): Compute remaining stack allocation based
14847 on the ultimate stack pointer offset.
14848 (ix86_expand_epilogue): Use more obvious expressions testing for
14849 the stack pointer already pointing to the saved registers.
14850
14851 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
14852 duplication deconstructing the frame pointer. Simplify
14853 deallocation of the local stack frame.
14854
14855 * reg-notes.def (CFA_EXPRESSION): New.
14856 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14857 (dwarf2out_frame_debug_cfa_expression): New.
14858 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
14859
14860 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
14861 * config/i386/i386.c (ix86_expand_prologue): Set it.
14862 (ix86_expand_epilogue): Clear it.
14863 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
14864 context, add REG_CFA_EXPRESSION notes.
14865
14866 * config/i386/i386.h (struct machine_frame_state): Rename from
14867 machine_cfa_state. Add members tracking SP and FP regardless
14868 of the current CFA register.
14869 (ix86_cfa_state): Remove.
14870 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
14871 and sse_reg_save_offset members.
14872 (ix86_compute_frame_layout): Set them.
14873 (gen_push): Increment sp_offset too.
14874 (choose_baseaddr_len, choose_baseaddr): New.
14875 (ix86_emit_save_reg_using_mov): New.
14876 (ix86_emit_save_regs_using_mov): Use it.
14877 (ix86_emit_save_sse_regs_using_mov): Likewise.
14878 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
14879 compare vs the saved red_zone_offset.
14880 (pro_epilogue_adjust_stack): Adjust sp_offset.
14881 (ix86_adjust_stack_and_probe): Likewise.
14882 (ix86_expand_prologue): Set up, use, and validate the new
14883 frame_state_info members. Use gen_frame_mem.
14884 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
14885 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
14886 new frame_state_info members.
14887 (ix86_emit_leave): Likewise.
14888 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
14889 out-of-range stack pointer offsets here.
14890 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14891 (ix86_expand_epilogue): Use and validate the new frame_state_info
14892 members. Break up and simplify the logic selecting the
14893 restore_regs_via_mov code path. Ensure that there will be no
14894 out-of-range stack pointer offsets.
14895
14896 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
14897
14898 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
14899 argument name to reflect the expected tree; fix indentation.
14900 (ix86_asm_output_function_label): Output the entire 32-bit
14901 ms_hook here as bytes ...
14902 (ix86_expand_prologue): ... not here as insns. Attach the
14903 unwind info for the ms_hook to a blockage insn.
14904 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
14905 (ix86_ms_bitfield_layout_p): Fix indentation.
14906 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
14907
14908 * config/i386/i386.c (ix86_using_red_zone): New.
14909 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
14910 ix86_expand_prologue, ix86_force_to_memory): Use it.
14911
14912 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
14913 saving the int registers.
14914
14915 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
14916 and DWARF2_UNWIND_INFO conditional compilation.
14917
14918 2010-08-04 Richard Henderson <rth@redhat.com>
14919
14920 PR debug/45171
14921 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
14922 an is_naming_typedef_decl.
14923
14924 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
14925
14926 PR rtl-optimization/45162
14927 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
14928 * dce.c (word_dce_process_block): Likewise.
14929
14930 2010-08-04 Steve Ellcey <sje@cup.hp.com>
14931
14932 PR target/44583
14933 * config/ia64/constraints.md (Z): New.
14934 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
14935 (xfreg_or_signed_fp01_operand): New.
14936 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
14937 with fr_reg_or_signed_fp01_operand and constraint G with Z.
14938 (subsf3): Ditto.
14939 (*maddsf4): Ditto.
14940 (*msubsf4): Ditto.
14941 (adddf3): Ditto.
14942 (adddf3_trunc): Ditto.
14943 (subdf3): Ditto.
14944 (*subdf3_trunc): Ditto.
14945 (*madddf4): Ditto.
14946 (*madddf4_trunc): Ditto.
14947 (*msubdf4): Ditto.
14948 (*msubdf4_trunc): Ditto.
14949 (addxf3): Replace xfreg_or_fp01_operand with
14950 xfreg_or_signed_fp01_operand and constraint G with Z.
14951 (*addxf3_truncsf): Ditto.
14952 (*addxf3_truncdf): Ditto.
14953 (subxf3): Ditto.
14954 (*subxf3_truncsf): Ditto.
14955 (*subxf3_truncdf): Ditto.
14956 (*maddxf4): Ditto.
14957 (*maddxf4_truncsf): Ditto.
14958 (*maddxf4_truncdf): Ditto.
14959 (*msubxf4): Ditto.
14960 (*msubxf4_truncsf): Ditto.
14961 (*msubxf4_truncdf): Ditto.
14962
14963 2010-08-04 Richard Guenther <rguenther@suse.de>
14964
14965 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
14966 if either alias-set is zero.
14967
14968 2010-08-04 Richard Guenther <rguenther@suse.de>
14969
14970 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
14971 * tree-ssa-ccp.c: ... here.
14972 * tree-ssa-copy.c: ... and here.
14973 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
14974 value_range_t): Move ...
14975 * tree-vrp.c: ... here.
14976 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
14977 (substitute_and_fold): Adjust prototype.
14978 * tree-ssa-propagate.c (replace_uses_in): Adjust.
14979 (replace_phi_args_in): Likewise.
14980 (substitute_and_fold): Take callback to query lattice instead
14981 of pointer to lattice. Replace SSA name defs with lattice
14982 values first.
14983 * tree-ssa-ccp.c (ccp_finalize): Adjust.
14984 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
14985 (get_value): New function.
14986 (fini_copy_prop): Adjust.
14987 * tree-vrp.c (vrp_finalize): Adjust.
14988
14989 2010-08-04 Richard Guenther <rguenther@suse.de>
14990
14991 PR middle-end/45176
14992 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
14993 points-to set for original MEM_REF.
14994
14995 2010-08-04 Richard Guenther <rguenther@suse.de>
14996
14997 * tree-ssa-ccp.c (get_constant_value): New function.
14998 (get_rhs_assign_op_for_ccp): Remove.
14999 (valueize_op): New function.
15000 (ccp_fold): Use get_constant_value and valueize_op.
15001 (fold_const_aggregate_ref): Likewise.
15002 (ccp_fold_stmt): Likewise.
15003 (visit_assignment): Simplify.
15004
15005 2010-08-04 Richard Guenther <rguenther@suse.de>
15006
15007 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
15008 * double-int.h (double_int_ctz): Declare.
15009 * double-int.c (double_int_ctz): New function.
15010
15011 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
15012
15013 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
15014 Define.
15015 picochip_expand_movmemhi : Expand movmem pattern.
15016 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
15017 Declare.
15018 * config/picochip/picochip.md (movmemhi) : New pattern.
15019
15020 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
15021
15022 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
15023
15024 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
15025
15026 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
15027 NEG as operand of a MULT by merging it with the other operand.
15028 * combine.c (make_compound_operation): Use trunc_int_for_mode when
15029 generating a MULT with constant. Canonicalize PLUS and MINUS involving
15030 MULT.
15031 * config/arm/constraints.md (M): Examine only 32 bits of a
15032 HOST_WIDE_INT.
15033 * config/arm/predicates.md (power_of_two_operand): Likewise.
15034
15035 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15036
15037 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
15038 non-NOTE insns.
15039
15040 2010-08-03 Jan Hubicka <jh@suse.cz>
15041
15042 * ipa-split.c (struct split_point): Add split_part_set_retval.
15043 (find_retval): Forward declare.
15044 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
15045 (consider_split): Compute current->split_part_set_retval.
15046 (visit_bb): Do not look into return value.
15047 (split_function): Handle !split_part_set_retval
15048
15049 2010-08-03 Martin Jambor <mjambor@suse.cz>
15050
15051 * tree-sra.c (completely_scalarize_record): New parameter REF, create
15052 its own access->expr intead of using build_ref_for_offset.
15053
15054 2010-08-03 Joseph Myers <joseph@codesourcery.com>
15055
15056 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
15057 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
15058 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
15059 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
15060 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
15061 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
15062 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
15063 DEFAULT_SWITCH_TAKES_ARG.
15064 * config/rx/rx.opt (-patch=): Remove option.
15065 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
15066 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
15067 * doc/invoke.texi (RX Options): Remove -patch=.
15068 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
15069 (option_map): Remove --profile-blocks, --quiet and --silent.
15070
15071 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
15072
15073 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
15074 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
15075 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
15076 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15077 Update calls to ix86_expand_compare and ix86_expand_branch.
15078 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
15079 ix86_expand_compare.
15080 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
15081 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15082 Make static.
15083 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
15084 and ix86_compare_op1. Update calls to ix86_expand_compare.
15085 (ix86_expand_int_movcc): Ditto.
15086 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
15087 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
15088 (ix86_expand_setcc): Ditto.
15089 (ix86_expand_compare): Remove prototype.
15090 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
15091 ix86_compare_op0 and ix86_compare_op1. Update calls
15092 to ix86_expand_branch to directly pass operands[1] and operands[2].
15093 (cbranchxf4): Ditto.
15094 (cbranch<MODEF:mode>4): Ditto.
15095 (cbranchcc4): Ditto.
15096 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
15097 Update calls to ix86_expand_setcc to directly pass operands[2] and
15098 operands[3].
15099 (cstorexf4): Ditto.
15100 (cstore<MODEF:mode>4): Ditto.
15101 (cstorecc4): Ditto.
15102
15103 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
15104
15105 PR target/45063
15106 * caller-save.c (save_call_clobbered_regs): Remove regs from
15107 hard_regs_saved when they are set.
15108
15109 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
15110
15111 PR target/41089
15112 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15113 as volatile.
15114
15115 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
15116
15117 * common.opt (ftree-loop-distribute-patterns): New.
15118 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
15119 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
15120 at -O3.
15121 * tree-data-ref.c (stores_zero_from_loop): New.
15122 * tree-data-ref.h (stores_zero_from_loop): Declared.
15123 * tree-loop-distribution.c (tree_loop_distribution): Call
15124 stores_zero_from_loop.
15125 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
15126
15127 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
15128
15129 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
15130 into account.
15131
15132 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
15133 * config/arm/arm.c (thumb1_code): New variable.
15134 (arm_override_options): Set it.
15135 (thumb1_final_prescan_insn): Keep track of condition code status.
15136 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
15137 jumps that depend on them.
15138 * config/arm/arm.h (thumb1_code): Declare variable.
15139 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
15140 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
15141 thumb1_cc_mode.
15142 (CC_STATUS_INIT): New macro.
15143 * config/arm/constraints.md (Pd): New constraint.
15144 * config/arm/predicates.md (noov_comparison_operator): New predicate.
15145 * config/arm/arm.md (is_thumb1): New define_attr.
15146 (conds): Set default to "clob" when generating Thumb1 code.
15147 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
15148 code are set. Use two-operand assembly syntax.
15149 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
15150 pattern.
15151 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
15152 codes are set. Use two-operand assembly syntax.
15153 (zero_extendhisi splitter): Remove constraints.
15154 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
15155 thumb1_movsf_insn): Set conds attribute as appropriate.
15156 (cbranchsi4_insn): Use condition code status from struct
15157 machine_function to determine whether the comparison can be eliminated.
15158 Discourage the alternative using high registers.
15159 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
15160 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
15161 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
15162 subsi3_cbranch): Delete.
15163 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
15164 one subtract and one cbranch insn.
15165
15166 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
15167 thumb2_movdf_soft_insn): Delete patterns.
15168 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
15169 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
15170 (pool_range, neg_pool_range): Use them to define defaults.
15171 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
15172 and allow for TARGET_32BIT.
15173
15174 PR target/40457
15175 * config/arm/arm.h (arm_regs_in_sequence): Declare.
15176 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
15177 load_multiple_sequence, store_multiple_sequence): Delete
15178 declarations.
15179 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
15180 declarations.
15181 * config/arm/ldmstm.md: New file.
15182 * config/arm/arm.c (arm_regs_in_sequence): New array.
15183 (load_multiple_sequence): Now static. New args SAVED_ORDER,
15184 CHECK_REGS. All callers changed.
15185 If SAVED_ORDER is nonnull, copy the computed order into it.
15186 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
15187 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
15188 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
15189 If SAVED_ORDER is nonnull, copy the computed order into it.
15190 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
15191 like REGS. Handle Thumb mode.
15192 (arm_gen_load_multiple_1): New function, broken out of
15193 arm_gen_load_multiple.
15194 (arm_gen_store_multiple_1): New function, broken out of
15195 arm_gen_store_multiple.
15196 (arm_gen_multiple_op): New function, with code from
15197 arm_gen_load_multiple and arm_gen_store_multiple moved here.
15198 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
15199 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
15200 changed.
15201 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
15202 * config/arm/predicates.md (commutative_binary_operator): New.
15203 (load_multiple_operation, store_multiple_operation): Handle more
15204 variants of these patterns with different starting offsets. Handle
15205 Thumb-1.
15206 * config/arm/arm.md: Include "ldmstm.md".
15207 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
15208 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
15209 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
15210 peepholes): Delete.
15211 * config/arm/ldmstm.md: New file.
15212 * config/arm/arm-ldmstm.ml: New file.
15213
15214 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
15215 if statement which adds extra costs to frame-related expressions.
15216
15217 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15218
15219 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
15220
15221 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
15222
15223 PR target/45142
15224 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
15225 alternative 2.
15226 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
15227 split V4SI operands.
15228
15229 2010-08-01 Anatoly Sokolov <aesok@post.ru>
15230
15231 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15232 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
15233 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
15234 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15235
15236 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
15237
15238 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
15239 LOCAL_INCLUDE_DIR.
15240
15241 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
15242
15243 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
15244 used in the call to optab_for_tree_code. Fix the second
15245 is_widening_mult_p call. Check that both unwidened operands
15246 have the same sign.
15247
15248 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
15249
15250 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
15251
15252 2010-07-31 Anatoly Sokolov <aesok@post.ru>
15253
15254 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15255
15256 2010-07-30 DJ Delorie <dj@redhat.com>
15257
15258 * config/rx/predicates.md (rx_constshift_operand): New.
15259 * config/rx/rx.md (zs_cond): New.
15260 (cbranchsi4): Remove mode.
15261 (*cbranchsi4_<code>): Likewise.
15262 (*tstbranchsi4_<code>): New.
15263 (*tstbranchsi4r_<code>): New.
15264 (*tstbranchsi4m_eq): New.
15265 (*tstbranchsi4m_ne): New.
15266 (cbranchsf4): Remove mode.
15267 (*cbranchsf4_<code>): Likewise.
15268
15269 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
15270
15271 * rtlanal.c (simplify_subreg_regno): Don't treat
15272 HARD_FRAME_POINTER_REGNUM specially.
15273
15274 2010-07-30 Joseph Myers <joseph@codesourcery.com>
15275
15276 * common.opt (-G): Don't define option here.
15277 * config/g.opt: New.
15278 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
15279 rs6000/powerpc and score targets.
15280 * opts.c (common_handle_option): Don't handle -G here.
15281 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
15282 * config/frv/frv.c (frv_handle_option): Handle -G.
15283 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
15284 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
15285 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
15286 * config/mips/mips.c (mips_handle_option): Handle -G.
15287 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
15288 * config/score/score.c (score_handle_option): Handle -G.
15289
15290 2010-07-30 Anatoly Sokolov <aesok@post.ru>
15291
15292 * config/mmix/mmix.c: Include basic-block.h.
15293
15294 2010-07-30 Jakub Jelinek <jakub@redhat.com>
15295
15296 PR debug/45055
15297 PR rtl-optimization/45137
15298 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
15299 prototypes.
15300 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
15301 New functions.
15302 * combine.c (next_nonnote_nondebug_insn): Removed.
15303 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
15304 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
15305 * sched-deps.c (sched_analyze_insn): Likewise.
15306 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
15307 * rtlanal.c (canonicalize_condition): Likewise.
15308 * postreload.c (reload_combine_recognize_pattern): Likewise.
15309 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
15310
15311 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
15312
15313 * config/i386/i386.md (int_cond): Remove code iterator.
15314 (fp_cond): Ditto.
15315 (cbranch<mode>4): Use ordered_comparison_operator predicate
15316 for operator0.
15317 (cstore<mode>4): Ditto for operator1.
15318 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
15319 (add<mode>cc): ditto.
15320
15321 2010-07-30 Richard Guenther <rguenther@suse.de>
15322
15323 PR middle-end/45141
15324 * expr.c (expand_expr_real_1): Check for not handled base address.
15325
15326 2010-07-30 Richard Guenther <rguenther@suse.de>
15327
15328 * ipa-prop.c (ipa_modify_formal_parameters): Use
15329 build_distinct_type_copy.
15330
15331 2010-07-30 Anthony Green <green@moxielogic.com>
15332
15333 * config/moxie/rtems.h: New file.
15334 * config.gcc: Add moxie-rtems support.
15335
15336 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
15337
15338 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
15339 df flags as in run_fast_df_dce.
15340
15341 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15342
15343 Revert:
15344 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15345
15346 * rtl.def (NOTE): Swap operands 4 and 5.
15347 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
15348 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
15349 Adjust accordingly.
15350 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
15351
15352 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15353
15354 PR debug/45110
15355 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
15356 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
15357 (gen_subprogram_die): Likewise. Remove it when removing declaration's
15358 formal parameters.
15359 (gen_decl_die): Change return type to dw_die_ref, return what
15360 gen_formal_parameter_die returned.
15361
15362 2010-07-29 Martin Jambor <mjambor@suse.cz>
15363
15364 * dbgcnt.def (eipa_sra): New counter.
15365 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
15366
15367 2010-07-29 Xinliang David Li <davidxl@google.com>
15368
15369 PR bootstrap/45119
15370 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
15371 in revision 162652.
15372
15373 2010-07-29 Richard Guenther <rguenther@suse.de>
15374
15375 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
15376 (TV_TREE_STORE_CCP): Likewise.
15377 (TV_TREE_REDPHI): Likewise.
15378
15379 2010-07-29 Richard Guenther <rguenther@suse.de>
15380
15381 * double-int.h (double_int_and_not): New function.
15382 * combine.c (try_combine): Use it.
15383 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
15384
15385 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
15386
15387 PR rtl-optimization/42575
15388 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
15389 Argument AU removed. All callers changed. Ignore artificial refs.
15390 Use return value of df_word_lr_simulate_defs to decide whether an insn
15391 is necessary.
15392 (fast_dce): Rename arg to WORD_LEVEL.
15393 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
15394 static.
15395 (pass_fast_rtl_byte_dce): Delete.
15396 * dce.h (run_word_dce): Declare.
15397 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
15398 All callers changed. Simplify code to only deal with two-word regs.
15399 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
15400 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
15401 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
15402 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
15403 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
15404 (df_word_lr_mark_ref): Declare.
15405 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
15406 df_word_lr_simulate_uses): Declare or rename from byte variants.
15407 (df_byte_lr_simulate_artificial_refs_at_top,
15408 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15409 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
15410 declarations.
15411 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
15412 (enum df_mm): Delete.
15413 * df-byte-scan.c: Delete file.
15414 * df-problems.c (df_word_lr_problem_data): Renamed from
15415 df_byte_lr_problem_data, all members deleted except for
15416 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
15417 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
15418 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
15419 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
15420 df_byte_lr_confluence_0): Delete functions.
15421 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
15422 callers changed.
15423 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
15424 Don't initialize members that were deleted, don't try to discover data
15425 about registers. Ignore hard regs.
15426 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
15427 (df_word_lr_mark_ref): New function.
15428 (df_word_lr_bb_local_compute): Renamed from
15429 df_byte_bb_lr_local_compute; all callers changed. Use
15430 df_word_lr_mark_ref. Assert that artificial refs don't include
15431 pseudos. Ignore hard registers.
15432 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
15433 Assert that exit block uses don't contain pseudos.
15434 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
15435 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
15436 callers changed. Ignore hard regs.
15437 (df_word_lr_transfer_function): Renamed from
15438 df_byte_lr_transfer_function; all callers changed.
15439 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
15440 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
15441 changed.
15442 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
15443 callers changed.
15444 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
15445 confluence operator 0 set to NULL.
15446 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
15447 callers changed.
15448 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
15449 Return bool, true if bitmap changed or insn otherwise necessary.
15450 All callers changed. Simplify using df_word_lr_mark_ref.
15451 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
15452 all callers changed. Simplify using df_word_lr_mark_ref.
15453 * lower-subreg.c: Include "dce.h"
15454 (decompose_multiword_subregs): Call run_word_dce if df available.
15455 * Makefile.in (lower-subreg.o): Adjust dependencies.
15456 (df-byte-scan.o): Delete.
15457 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
15458
15459 2010-07-29 Richard Guenther <rguenther@suse.de>
15460
15461 * tree.c (build_vector): Assert that the vector constant
15462 has enough elements.
15463 (build_vector_from_ctor): Pad with trailing zeros.
15464
15465 2010-07-29 Richard Guenther <rguenther@suse.de>
15466
15467 PR tree-optimization/45120
15468 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15469 Handle offset in DEREFs properly.
15470 (get_constraint_for_1): Handle MEM_REF offset properly.
15471
15472 2010-07-29 Richard Guenther <rguenther@suse.de>
15473
15474 PR middle-end/45034
15475 * convert.c (convert_to_integer): Always use an unsigned
15476 type for narrowed negate and bitwise not.
15477
15478 2010-07-29 Ira Rosen <irar@il.ibm.com>
15479
15480 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
15481 to outer loop when creating reduction epilogue for double reduction,
15482 and switch back to the inner loop when updating the phi nodes.
15483 Update uses of outer loop exit phi nodes in double reduction (instead
15484 of uses of reduction).
15485
15486 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15487
15488 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
15489 popcount on power7 and parity on power6 systems.
15490 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
15491 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
15492 instructions.
15493
15494 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
15495 (UNSPEC_PARITY): Ditto.
15496 (SFDF): New iterator for SF/DF.
15497 (rreg2): New mode attribute for floating register constraint.
15498 (TARGET_FLOAT): New mode attribute for whether single/double float
15499 is supported.
15500 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
15501 pattern.
15502 (parity<mode>2_cmpb): New insn for parity on power6 and newer
15503 machines.
15504 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
15505 pattern. Add support for fcpsgn instruction added in power6.
15506 (copysignsf3): Delete.
15507 (copysigndf3): Delete.
15508 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
15509 instead of if_then_else in RTL to avoid problems with -0.
15510
15511 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
15512 of if_then_else to mirror scalar code.
15513 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
15514 rs6000.md.
15515
15516 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
15517 instead of if_then_else.
15518
15519 2010-07-28 Xinliang David Li <davidxl@google.com>
15520
15521 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
15522 (dump_cand): Dump var_before/after.
15523 (htab_inv_expr_eq): New function.
15524 (htab_inv_expr_hash): New function.
15525 (tree_ssa_iv_optimize_init): Support pseudo invariants.
15526 (add_candidate_1): consider base type precision.
15527 (set_use_iv_cost): New parameter.
15528 (adjust_setup_cost): Use profile information.
15529 (get_address_cost): Do not hard code width in computing address
15530 offset limits.
15531 (compare_aff_trees): New function.
15532 (get_loop_invariant_expr_id): New function.
15533 (get_computation_cost_at): New parameter and use profile information.
15534 (get_computation_cost): New parameter.
15535 (determine_use_iv_cost_generic): Pass new parameter.
15536 (determine_use_iv_cost_address): Ditto.
15537 (determine_use_iv_cost_condition): Ditto.
15538 (autoinc_possible_for_pair): Ditto.
15539 (determine_use_iv_costs): More dumps.
15540 (iv_ca_get_num_inv_exprs): New function.
15541 (iv_ca_recount_cost): Consider loop invariants in register pressure
15542 cost.
15543 (iv_ca_add_use): New parameter.
15544 (iv_ca_dump): Better dumping.
15545 (iv_ca_extend): New parameter.
15546 (try_add_cand_for): Attempt to get better partial solution.
15547 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
15548 (create_new-ivs): More dumps.
15549 (rewrite_use_compare): Ditto.
15550 (free_loop_data): More cleanup.
15551 (treee_ssa_iv_optimize_finalize): Ditto.
15552
15553 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
15554
15555 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
15556 * config/i386/i386.c (ix86_profile_before_prologue): New.
15557 (override_options): Add special handling for -mfentry.
15558 (ix86_function_regparm): Likewise.
15559 (ix86_function_sseregparm): Likewise.
15560 (ix86_frame_pointer_required): Likewise.
15561 (ix86_expand_prologue): Check for ms_hook_prologue.
15562 (x86_function_profiler): Adjust mcount output.
15563 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
15564 * config/i386/i386.opt (mfentry): New.
15565 * doc/invoke.texi (mfentry): Add documentation.
15566 * doc/tm.texi: Regenerated..
15567 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
15568 * final.c (final_start_function): Replace macro
15569 PROFILE_BEFORE_PROLOGUE by target hook.
15570 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15571 * target.def (profile_before_prologue): New hook.
15572 * targhooks.c (default_profile_before_prologue): New.
15573 * targhooks.h (default_profile_before_prologue): New.
15574
15575 2010-07-28 Jakub Jelinek <jakub@redhat.com>
15576
15577 PR debug/45105
15578 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
15579
15580 PR debug/45103
15581 * dwarf2out.c (dwarf2out_var_location): Always consider
15582 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
15583
15584 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
15585
15586 PR rtl-optimization/45107
15587 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
15588
15589 2010-07-28 Richard Guenther <rguenther@suse.de>
15590
15591 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
15592 (set_lattice_value): Do not query an old default value.
15593 (get_value_for_expr): New function. Properly canonicalize
15594 float values.
15595 (ccp_visit_phi_node): Use it.
15596
15597 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
15598
15599 * config/arm/arm.c (arm_pcs_default): Remove static.
15600 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
15601 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
15602 (arm_pcs_default): Declare.
15603
15604 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
15605
15606 * config/rs6000/rs6000.c (rs6000_override_options):
15607 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
15608 ... to darwin_rs6000_override_options.
15609 (rs6000_return_in_memory): Update preceding comment for darwin
15610 64 bit ABI. Use TARGET_MACHO inline.
15611 (rs6000_darwin64_struct_check_p): New.
15612 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
15613 (function_arg): Likewise.
15614 (rs6000_arg_partial_bytes): Likewise.
15615 (rs6000_function_value): Likewise.
15616
15617 2010-07-28 Andi Kleen <ak@linux.intel.com>
15618
15619 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
15620
15621 2010-07-28 Richard Guenther <rguenther@suse.de>
15622
15623 PR middle-end/44903
15624 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
15625 targets try harder to not generate unaligned accesses.
15626
15627 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
15628
15629 PR rtl-optimization/45101
15630 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
15631 for gcse-las.
15632
15633 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
15634
15635 PR tree-optimization/44885
15636 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
15637 with non-aliased component.
15638
15639 2010-07-28 Joseph Myers <joseph@codesourcery.com>
15640
15641 * config/darwin-driver.c (SWITCH_TAKES_ARG,
15642 WORD_SWITCH_TAKES_ARG): Remove.
15643 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
15644 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
15645 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
15646 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
15647 definitions from gcc.c.
15648 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
15649 defaults.h.
15650 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
15651 Move to defaults.h.
15652 * opts-common.c: Include tm.h.
15653 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
15654 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
15655 Handle more than one argument. Set canonical_option_num_elements.
15656 (decode_cmdline_options_to_array): Set
15657 canonical_option_num_elements and trailing elements of
15658 canonical_option.
15659 * opts.h (struct cl_decoded_option): Allow four elements in
15660 canonical_option. Add field canonical_option_num_elements.
15661 * Makefile.in (opts-common.o): Update dependencies.
15662
15663 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
15664
15665 PR middle-end/44790
15666 PR middle-end/44993
15667 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
15668 sure the base has address_mode before adding the offset.
15669
15670 2010-07-27 Xinliang David Li <davidxl@google.com>
15671
15672 * tree-flow.h (create_mem_ref): Add one new parameter.
15673 * tree-ssa-address.c (create_mem_ref): New parameter.
15674 (addr_to_parts): Ditto.
15675 (move_variant_to_index): New function.
15676 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
15677
15678 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15679
15680 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
15681 4 and 5.
15682 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
15683 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
15684 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
15685 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
15686 CODE_LABELs and NOTEs.
15687 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
15688 * combine.c (try_combine): Likewise.
15689 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15690 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
15691
15692 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15693
15694 * coretypes.h (struct cl_option_handlers): Declare.
15695 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
15696 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
15697 * langhooks-def.h (lhd_handle_option): Declare.
15698 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
15699 * langhooks.c (lhd_handle_option): New.
15700 * langhooks.h (struct lang_hooks): Update prototype and return
15701 value type of handle_option hook.
15702 * optc-gen.awk: Generate target_flags_explicit definition for the
15703 driver.
15704 * opts-common.c: Include diagnostic.h.
15705 (handle_option): Move from opts.c. Update prototype and return
15706 value type. Use handlers structure.
15707 (read_cmdline_option): Move from opts.c. Update prototype. Use
15708 handlers structure.
15709 (set_option): Move from opts.c.
15710 * opts.c (common_handle_option): Update prototype and return value
15711 type. Update calls to handle_option and enable_warning_as_error.
15712 (unknown_option_callback, post_handling_callback,
15713 lang_handle_option, target_handle_option): New.
15714 (handle_option, read_cmdline_option): Move to opts-common.c.
15715 (read_cmdline_options): Update prototype. Update call to
15716 read_cmdline_option.
15717 (decode_options): Initialize and use handlers structure.
15718 (set_option): Move to opts-common.c.
15719 (enable_warning_as_error): Update prototype. Update call to
15720 handle_option.
15721 * opts.h (struct cl_option_handler_func, struct
15722 cl_option_handlers): New.
15723 (handle_option, enable_warning_as_error): Update prototypes.
15724 (read_cmdline_option): Declare.
15725 * Makefile.in (opts-common.o): Update dependencies.
15726
15727 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15728
15729 * config/arm/arm.c (params.h): Include.
15730 (arm_override_options): Tune gcse-unrestricted-cost.
15731 * config/arm/t-arm (arm.o): Define dependencies.
15732
15733 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15734
15735 PR target/42495
15736 PR middle-end/42574
15737 * basic-block.h (get_dominated_to_depth): Declare.
15738 * dominance.c (get_dominated_to_depth): New function, use
15739 get_all_dominated_blocks as a base.
15740 (get_all_dominated_blocks): Use get_dominated_to_depth.
15741
15742 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
15743 (hoist_exprs): Remove.
15744 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
15745 (compute_code_hoist_vbeinout): Add debug print outs.
15746 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
15747
15748 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
15749 quadratic behavior.
15750 * params.h (MAX_HOIST_DEPTH): New macro.
15751 * doc/invoke.texi (max-hoist-depth): Document.
15752
15753 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15754
15755 PR rtl-optimization/40956
15756 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
15757 constants.
15758
15759 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15760
15761 PR target/42495
15762 PR middle-end/42574
15763 * config/arm/arm.c (legitimize_pic_address): Use
15764 gen_calculate_pic_address pattern to emit calculation of PIC address.
15765 (will_be_in_index_register): New function.
15766 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
15767 (thumb1_legitimate_address_p): Use it provided !strict_p.
15768 * config/arm/arm.md (calculate_pic_address): New expand and split.
15769
15770 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15771
15772 PR target/42495
15773 PR middle-end/42574
15774 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
15775 * config/arm/arm.md (define_split "J", define_split "K"): Make
15776 IRA/reload friendly.
15777
15778 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15779
15780 * gcse.c (insert_insn_end_basic_block): Update signature, remove
15781 unused checks.
15782 (pre_edge_insert, hoist_code): Update.
15783
15784 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15785
15786 PR target/42495
15787 PR middle-end/42574
15788 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
15789
15790 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15791
15792 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
15793
15794 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15795
15796 PR rtl-optimization/40956
15797 PR target/42495
15798 PR middle-end/42574
15799 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
15800 for hoisting.
15801 (hoist_code): Count occurences in current block too.
15802
15803 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15804
15805 * gcse.c (struct expr:max_distance): New field.
15806 (doing_code_hoisting_p): New static variable.
15807 (want_to_gcse_p): Change signature. Allow constrained hoisting of
15808 simple expressions, don't change behavior for PRE. Set max_distance.
15809 (insert_expr_in_table): Set new max_distance field.
15810 (hash_scan_set): Update.
15811 (hoist_expr_reaches_here_p): Stop search after max_distance
15812 instructions.
15813 (find_occr_in_bb): New static function. Use it in ...
15814 (hoist_code): Calculate sizes of basic block before any changes are
15815 done. Pass max_distance to hoist_expr_reaches_here_p.
15816 (one_code_hoisting_pass): Set doing_code_hoisting_p.
15817
15818 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
15819 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
15820 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
15821 macros.
15822 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
15823 Document.
15824
15825 2010-07-27 Jeff Law <law@redhat.com>
15826 Maxim Kuvyrkov <maxim@codesourcery.com>
15827
15828 * gcse.c (compute_transpout, transpout): Remove, move logic
15829 to prune_expressions.
15830 (compute_pre_data): Move pruning of trapping expressions ...
15831 (prune_expressions): ... here. New static function.
15832 (compute_code_hoist_data): Use it.
15833 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
15834
15835 2010-07-27 Xinliang David Li <davidxl@google.com>
15836
15837 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
15838 (rewrite_use_address): Adjust iv update position when needed.
15839
15840 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
15841
15842 * dbgcnt.def (hoist_insn): New debug counter.
15843 * gcse.c (hoist_code): Use it.
15844
15845 2010-07-27 Xinliang David Li <davidxl@google.com>
15846
15847 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
15848 (niter_for_single_dom_exit): Passes additional parameter.
15849 (iv_period): Fix comments.
15850 (may_eliminate_iv): Handles multiple exit loops properly.
15851 (free_tree_niter_desc): New function.
15852 (free_loop_data): Frees up loop iteration descriptors.
15853
15854 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15855
15856 PR target/44542
15857 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
15858 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
15859 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
15860 (expand_one_var): Don't consider DECL_ALIGN for variables for
15861 which expand_one_stack_var_at has been already called.
15862
15863 PR testsuite/44701
15864 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
15865 constraints on IA-64.
15866
15867 2010-07-27 Jie Zhang <jie@codesourcery.com>
15868
15869 PR target/44290
15870 Revert:
15871 2010-07-23 Jie Zhang <jie@codesourcery.com>
15872
15873 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15874 false if ! tree_versionable_function_p.
15875
15876 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15877
15878 * dwarf2out.c (add_data_member_location_attribute): Use
15879 add_AT_unsigned instead of add_AT_int if offset is non-negative.
15880
15881 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15882
15883 * postreload.c (try_replace_in_use): New static function.
15884 (reload_combine_recognize_const_pattern): Use it here. Allow
15885 substituting into a final add insn, and substituting into a memory
15886 reference in an insn that sets the reg.
15887
15888 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15889
15890 * common.opt (o): Add MissingArgError.
15891 * doc/options.texi (MissingArgError): Document.
15892 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
15893 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
15894 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
15895 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
15896 * langhooks.h (struct lang_hooks): Remove missing_argument.
15897 * optc-gen.awk: Handle MissingArgError and output new structure
15898 field initializers.
15899 * opts.c (read_cmdline_option): Use missing_argument_error field
15900 instead of missing_argument langhook.
15901 * opts.h (struct cl_option): Add missing_argument_error field.
15902 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
15903
15904 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
15905
15906 PR target/29090
15907 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
15908 Darwin64 ABI, for zero-sized objects.
15909
15910 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
15911
15912 PR target/35491
15913 PR target/29090
15914
15915 Merge from Apple local 4.2.1.
15916 2005-05-11 Stan Shebs <shebs@apple.com>
15917 Fix 64-bit varargs for Darwin (Radar 4028089).
15918 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
15919 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
15920 Add argument, add case for 8-byte register half-filled with a float.
15921 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
15922 single-precision floats specially.
15923
15924 2010-07-27 Ira Rosen <irar@il.ibm.com>
15925
15926 PR tree-optimization/44152
15927 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
15928 complex numbers for further check.
15929 (vect_supported_load_permutation_p): Check nodes with
15930 complex numbers.
15931
15932 2010-07-27 Joseph Myers <joseph@codesourcery.com>
15933
15934 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
15935 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
15936 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
15937 (LANG_HOOKS_INITIALIZER): Add new hooks.
15938 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
15939 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
15940 and complain_wrong_lang_p. Update init_options prototype.
15941 * c-objc-common.c (c_initialize_diagnostics): First call
15942 c_common_initialize_diagnostics.
15943 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
15944 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
15945 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
15946 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
15947 (hook_uint_void_0): New.
15948 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
15949 (hook_uint_void_0): New.
15950 * opts-common.c (decode_cmdline_option,
15951 decode_cmdline_options_to_array): Also fill in canonical_option field.
15952 * opts.c (complain_wrong_lang): Use langhook to determine whether
15953 to complain instead of special-casing LTO.
15954 (decode_options): Separate lang_mask determination with
15955 option_lang_mask hook from call of init_options hook.
15956 * opts.h (struct cl_decoded_option): Add canonical_option.
15957
15958 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15959
15960 PR tree-optimization/45083
15961 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
15962
15963 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15964
15965 * postreload.c (reload_combine_recognize_const_pattern): Move test
15966 for limiting the insn movement to the right scope.
15967
15968 PR rtl-optimization/45051
15969 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
15970 than reg_mentioned_p.
15971
15972 2010-07-26 Richard Henderson <rth@redhat.com>
15973
15974 PR target/44132
15975 * tree-emutls.c: New file.
15976 * Makefile.in (OBJS-common): Add it.
15977 * tree-pass.h (pass_ipa_lower_emutls): Declare.
15978 * passes.c (init_optimization_passes): Add it.
15979
15980 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
15981 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
15982 * expr.c (emutls_var_address): Delete.
15983 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
15984 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
15985 (emutls_finish): Delete.
15986 * toplev.c (compile_file): Don't call it.
15987 * tree.h (emutls_decl): Delete.
15988 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
15989 (emutls_finish, emutls_finalize_control_var): Delete.
15990 (emutls_object_type): Move to tree-emutls.c.
15991 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
15992 default_emutls_var_fields, get_emutls_object_type,
15993 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
15994 default_emutls_var_init): Likewise.
15995 (get_variable_section): Don't special case emutls.
15996 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
15997 default_elf_select_section, default_unique_section,
15998 default_encode_section_info): Likewise.
15999 * varpool.c (decide_is_variable_needed): Likewise.
16000 * gimple-iterator.c (update_call_edge_frequencies): New
16001 (gsi_insert_on_edge_immediate): Use it.
16002 (gsi_insert_seq_on_edge_immediate): Likewise.
16003 (gsi_commit_one_edge_insert): Likewise.
16004
16005 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
16006 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
16007 (x86_64_elf_unique_section): Likewise.
16008
16009 2010-07-26 Jan Hubicka <jh@suse.cz>
16010
16011 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
16012 GTY((skip)).
16013
16014 2010-07-26 Anatoly Sokolov <aesok@post.ru>
16015
16016 * target.def (output_source_filename): New hook.
16017 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
16018 * doc/tm.texi: Regenerate.
16019 * toplev.c (output_file_directive) Remove function.
16020 * toplev.h (output_file_directive) Remove.
16021 * output.h (default_asm_output_source_filename,
16022 output_file_directive): Declare.
16023 * varasm.h (default_asm_output_source_filename,
16024 output_file_directive): New functions.
16025
16026 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16027 * config/mips/mips-protos.h (mips_output_filename): Remove.
16028 * config/mips/mips.c (mips_output_filename): Make Static.
16029 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16030
16031 2010-07-26 Richard Guenther <rguenther@suse.de>
16032
16033 PR tree-optimization/43784
16034 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
16035 if the destination is used by the call.
16036
16037 2010-07-26 Richard Guenther <rguenther@suse.de>
16038
16039 PR middle-end/45073
16040 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
16041 SSA updating on being in SSA form.
16042
16043 2010-07-26 Richard Guenther <rguenther@suse.de>
16044
16045 PR middle-end/45056
16046 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
16047
16048 2010-07-26 Richard Guenther <rguenther@suse.de>
16049
16050 PR tree-optimization/45071
16051 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
16052 adjust op->opcode.
16053
16054 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
16055
16056 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
16057 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
16058 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
16059 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
16060 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
16061 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
16062 save_r31, return_r31, save_interrupt, return_interrupt,
16063 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
16064 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
16065 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
16066 new ABI requirements.
16067 (save_r6_r9, L_callt_save_r6_r9): Remove.
16068 * config/v850/predicates.md (even_reg_operand, disp23_operand,
16069 const_float_1_operand const_float_0_operand): New Predicates.
16070 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
16071 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
16072 * config/v850/t-v850: Update multilibs for new target variants.
16073 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
16074 * config/v850/t-v850e: Likewise.
16075 * config/v850/v850.c (v850_issue_rate): New.
16076 (v850_strict_argument_naming): New.
16077 (function_arg): Modify to generate a different ABI.
16078 (print_operand): Update case 'z' to support float modes.
16079 (output_move_single): Modify to generate appropriate and better
16080 assembly.
16081 (v850_float_z_comparison_operator, v850_select_cc_mode,
16082 v850_float_nz_comparison_operator, v850_gen_float_compare,
16083 v850_gen_compare): New functions to support comparison of float values.
16084 (ep_memory_offset): Add support for V850E2 targets.
16085 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
16086 (INTERRUPT_REGPARM_NUM): Remove.
16087 (compute_register_save_size): Add extra case to save/restore long call.
16088 (use_prolog_function): New function to support prologue.
16089 (expand_prologue): Add support for V850E2 targets and modified
16090 as per the current ABI requirements.
16091 (expand_epilogue): Likewise.
16092 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
16093 (construct_save_jarl): Likewise.
16094 (construct_dispose_instruction): Update as per the current ABI
16095 requirements.
16096 (construct_prepare_instruction): Likewise.
16097 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
16098 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
16099 (CPP_SPEC): Updated to support v850e2 targets.
16100 (STRICT_ALIGNMENT): Modified.
16101 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
16102 (FIXED_REGISTERS): Likewise.
16103 (CALL_USED_REGISTERS): Likewise.
16104 (CONDITIONAL_REGISTER_USAGE): Updated.
16105 (HARD_REGNO_MODE_OK): Updated.
16106 (reg_class): Updated to add even registers.
16107 (REG_CLASS_NAMES): Likewise.
16108 (REG_CLASS_CONTENTS): Likewise.
16109 (REGNO_REG_CLASS): Updated for CC registers.
16110 (REG_CLASS_FROM_LETTER): Added support for even registers.
16111 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
16112 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
16113 ARG_POINTER_REGNUM): Updated.
16114 (FUNCTION_ARG_ADVANCE): Define.
16115 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
16116 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
16117 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
16118 (GO_IF_LEGITIMATE_ADDRESS): Updated.
16119 (SELECT_CC_MODE): Define.
16120 (REGISTER_NAMES): Updated to add psw and fcc registers.
16121 (ADDITIONAL_REGISTER_NAMES): Updated.
16122 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
16123 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
16124 * config/v850/v850.md (define_constants): Define new constants.
16125 (type): Update store,bit1,macc,div,fpu and single attributes.
16126 (cpu): New attribute.
16127 (cc): Add set_z attribute.
16128 (unsign23byte_load, sign23byte_load, unsign23hword_load,
16129 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
16130 23word_store): New instructions for 23-bit displacement load and store.
16131 (movqi_internal, movhi_internal): Update the attributes.
16132 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
16133 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
16134 the attributes.
16135 (v850_tst1): Modified using CC_REGNUM.
16136 (tstsi): Remove.
16137 (cmpsi): Modified as define_expand from define_insn.
16138 (cmpsi_insn, cmpsf, cmpdf): New instructions.
16139 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
16140 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
16141 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
16142 one_cmplsi2): Clobber the CC_REGNUM register.
16143 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
16144 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
16145 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
16146 (setf_insn, set_z_insn, set_nz_insn): New instructions for
16147 v850e2v3 target.
16148 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
16149 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
16150 targets.
16151 (sasf_1, sasf_2): Remove.
16152 (sasf): New instruction.
16153 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
16154 targets. CC_REGNUM register is clobbered and attributes are
16155 updated.
16156 (branch_z_normal, branch_z_invert, branch_nz_normal,
16157 branch_nz_invert): New branch related instructions.
16158 (jump): Updated the attributes.
16159 (switch): Update to support new targets. CC_REGNUM register is
16160 clobbered and attributes are updated.
16161 (call_internal_short, call_internal_long, call_value_internal_short,
16162 call_value_internal_long): Updated the attributes.
16163 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
16164 clobbered and attributes are updated.
16165 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
16166 Update to support new targets. CC_REGNUM register is clobbered.
16167 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
16168 instructions.
16169 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
16170 are updated.
16171 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
16172 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
16173 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
16174 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
16175 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
16176 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
16177 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
16178 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
16179 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
16180 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
16181 point instructions defined for V850e2v3 target.
16182 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
16183 Add support for V850E2 targets and CC_REGNUM register is clobbered.
16184 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
16185 support for new targets.
16186 * config/v850/v850-modes.def: New file.
16187 * config/v850/v850.opt(mstrict-align): Remove.
16188 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
16189 mv850e2v3): New command line options for V850.
16190 * config.gcc: Update the newly added files.
16191 * doc/invoke.texi: Update the newly added command line options for
16192 V850 target.
16193
16194 2010-07-26 Richard Guenther <rguenther@suse.de>
16195
16196 PR tree-optimization/45052
16197 * ipa-pure-const.c (check_stmt): Check volatileness.
16198
16199 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16200
16201 PR target/44707
16202 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
16203 * config/sparc/sparc.c: Include reload.h.
16204 (legitimize_tls_address): Rename into...
16205 (sparc_legitimize_tls_address): ...this.
16206 (legitimize_pic_address): Rename into...
16207 (sparc_legitimize_pic_address): ...this.
16208 (sparc_expand_move): Adjust to above renaming.
16209 (sparc_tls_referenced_p): Likewise.
16210 (sparc_legitimize_tls_address): Likewise.
16211 (sparc_legitimize_pic_address): Likewise.
16212 (sparc_legitimize_address): Likewise.
16213 (sparc_output_mi_thunk): Likewise.
16214 (sparc_legitimize_reload_address): New global function. Recognize
16215 (lo_sum (high ...) ...) patterns generated by earlier passes.
16216 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
16217
16218 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16219
16220 PR target/44484
16221 * config/sparc/predicates.md (memory_reg_operand): Delete.
16222 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
16223 (*sync_compare_and_swap): Encode the address form in the pattern.
16224 (*sync_compare_and_swapdi_v8plus): Likewise.
16225
16226 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
16227
16228 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
16229 Streamline paragraph on compatibility with the system compiler.
16230
16231 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
16232
16233 PR middle-end/45035
16234 * alias.c (true_dependence_1): Fix thinko in merge of old
16235 true_dependence and canon_true_dependence.
16236
16237 2010-07-23 Jan Hubicka <jh@suse.cz>
16238
16239 * lto-streamer-out.c (write_symbol): Fix visibilities of external
16240 references.
16241
16242 2010-07-23 Le-Chun Wu <lcwu@google.com>
16243
16244 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
16245 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
16246 and an unnecessary assignment.
16247 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
16248 self-assign warning.
16249 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
16250 unnecessary self-init.
16251
16252 2010-07-23 Richard Guenther <rguenther@suse.de>
16253
16254 PR lto/43071
16255 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
16256 for -flto and -fwhopr.
16257
16258 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
16259
16260 PR target/41943
16261 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
16262 (stmp-int-hdrs): Prefix/postfix headers by include_next.
16263 * config.gcc (user_headers_inc_next_pre): New.
16264 (user_headers_inc_next_post): Likewise.
16265 (*-w64-mingw*): Use for float.h post-fixing, and for
16266 stddef.h/stdarg.h pre-fixing by include_next.
16267 * configure.ac (user_headers_inc_next_post): New.
16268 (user_headers_inc_next_pre): New.
16269 * configure: Regenerated.
16270
16271 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16272
16273 * configure.ac: Don't disable TLS on Solaris 8/9 by default
16274 Set tga_func for Solaris 2/x86 resp. SPARC.
16275 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
16276 (LIB_THREAD_LDFLAGS_SPEC): Define.
16277 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
16278 * configure: Regenerate.
16279 * config.in: Regenerate.
16280 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
16281 -pthread, -threads, LIB_TLS_SPEC with -pthread.
16282 * doc/install.texi (Specific, *-*-solaris2*): Document use of
16283 alternate thread libraries on Solaris 8.
16284 Document TLS patch requirements.
16285 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
16286 Document tls.
16287
16288 PR target/18788
16289 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
16290 -shared.
16291
16292 2010-07-23 Jakub Jelinek <jakub@redhat.com>
16293
16294 * tree.h (struct tree_base): Add nameless_flag bitfield.
16295 (TYPE_NAMELESS, DECL_NAMELESS): Define.
16296 * omp-low.c (create_omp_child_function, scan_omp_parallel,
16297 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
16298 DECL_ARTIFICIAL where needed.
16299 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
16300 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
16301 has DECL_NAMELESS set.
16302
16303 2010-07-23 Martin Jambor <mjambor@suse.cz>
16304
16305 PR tree-optimization/44915
16306 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
16307 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
16308 (analyze_function): Likewise.
16309
16310 2010-07-23 Martin Jambor <mjambor@suse.cz>
16311
16312 PR tree-optimization/44914
16313 * tree-sra.c (sra_modify_function_body): Return true if CFG was
16314 changed, add purging dead eh edges.
16315 (ipa_sra_modify_function_body): Return true if CFG was changed,
16316 simplify purging dead eh edges.
16317 (modify_function): Return true if CFG was changed.
16318 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
16319 was changed.
16320 (ipa_early_sra): Likewise.
16321
16322 2010-07-23 Jie Zhang <jie@codesourcery.com>
16323
16324 PR target/44290
16325 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
16326 if "naked".
16327 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16328 false if ! tree_versionable_function_p.
16329
16330 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
16331
16332 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
16333 * ipa-pure-const.c (special_builtlin_state): Remove
16334 BUILT_IN_ARGS_INFO case.
16335 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16336 * builtins.c (expand_builtin): Likewise.
16337 (expand_builtin_args_info): Remove.
16338 * doc/tm.texi (__builtin_args_info): Remove.
16339 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
16340 * doc/tm.text.in: Likewise.
16341
16342 2010-07-23 Richard Guenther <rguenther@suse.de>
16343
16344 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
16345 (lto_symtab_merge_decls_2): Likewise.
16346 * tree-ssa.c (useless_type_conversion_p): Likewise.
16347 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16348 * gimple.c (gtc_visited2, gtc_ob2): Remove.
16349 (struct type_pair_d): Make same_p an array indexed by mode.
16350 Update comment.
16351 (lookup_type_pair): Update initialization.
16352 (struct sccs): Adjust same_p type.
16353 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
16354 Adjust.
16355 (print_gimple_types_stats): Likewise.
16356 * gimple.h (enum gtc_mode): New.
16357 (gimple_types_compatible_p): Adjust prototype.
16358
16359 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
16360
16361 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
16362 again after processing insn.
16363
16364 2010-07-23 Jie Zhang <jie@codesourcery.com>
16365
16366 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
16367 proper words when !tree_versionable_function_p.
16368
16369 2010-07-23 Richard Guenther <rguenther@suse.de>
16370
16371 PR tree-optimization/45037
16372 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
16373
16374 2010-07-23 Jie Zhang <jie@codesourcery.com>
16375
16376 * doc/extend.texi: Remove IP2K from the description of naked attribute.
16377 Add MCORE instead.
16378
16379 2010-07-10 Andi Kleen <ak@linux.intel.com>
16380
16381 PR lto/44992
16382 * lto-opts.c (lto_write_options): Add NULL file_data argument to
16383 lto_get_section_name.
16384 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16385 * lto-streamer-out.c (produce_asm): Likewise.
16386 (copy_function): Likewise.
16387 (produce_symtab): Likewise.
16388 (produce_asm_for_decls): Likewise.
16389 * lto-streamer.c (lto_get_section_name): Add file_data argument.
16390 Rewrite to add random postfix to LTO sections.
16391 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
16392 (lto_get_section_name): Add file_data argument to prototype.
16393
16394 2010-07-10 Andi Kleen <ak@linux.intel.com>
16395
16396 * lto-section-in.c (lto_section_name): Synchronize names
16397 with lto_get_section_name.
16398
16399 2010-07-10 Andi Kleen <ak@linux.intel.com>
16400
16401 * lto-opts.c (lto_read_file_options): Check for missing section.
16402
16403 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16404
16405 * ira.c (check_allocation): Correctly handle the case where an allocno
16406 with two objects was allocated to a single reg.
16407
16408 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
16409
16410 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
16411 (is_widening_mult_p): Likewise.
16412 (convert_to_widen): Use them.
16413 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
16414 well as integer ones.
16415
16416 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
16417
16418 * alias.c (true_dependence_1): New function, merged version of
16419 true_dependence and canon_true_dependence.
16420 (true_dependence): Simplify.
16421 (canon_true_dependence): Simplify.
16422
16423 2010-07-22 Richard Henderson <rth@redhat.com>
16424
16425 PR target/45027
16426 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
16427 of V4SFmode for the SSE saves; increase stack alignment if needed.
16428 (ix86_gimplify_va_arg): Don't increase stack alignment here.
16429
16430 2010-07-22 Jakub Jelinek <jakub@redhat.com>
16431
16432 PR bootstrap/45028
16433 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
16434 call cprop_find_used_regs again via note_uses.
16435
16436 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
16437
16438 * alias.c (get_alias_set): Fix formatting issues.
16439
16440 2010-07-22 Steve Ellcey <sje@cup.hp.com>
16441
16442 PR middle-end/44878
16443 * stmt.c (expand_value_return): Call promote_function_mode with
16444 a for_return argument of 2 when returning by reference.
16445
16446 2010-07-22 Dodji Seketeli <dodji@redhat.com>
16447
16448 PR debug/45024
16449 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
16450 unit DIE if we can find the scope DIE.
16451
16452 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16453
16454 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
16455 changed. Initialize OBJECT_SUBWORD.
16456 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
16457 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
16458 all callers changed.
16459 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
16460 (finish_allocno): Likewise.
16461 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
16462 (remove_low_level_allocnos): Likewise.
16463 (update_bad_spill_attribute): Likewise.
16464 (setup_min_max_allocno_live_range_point): Likewise.
16465 (sort_conflict_id_map): Likewise.
16466 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
16467 (ior_hard_reg_conflicts): New function.
16468 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
16469 (compress_conflict_vecs): Iterate over objects, not allocnos.
16470 (ira_add_live_range_to_object): New function.
16471 (object_range_compare_func): Renamed from allocno_range_compare_func.
16472 All callers changed.
16473 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
16474 subobjects, widen the min/max range of the lowest-order object to
16475 potentially include all other such low-order objects.
16476 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
16477 (check_allocation): Likewise. Use more fine-grained tests for register
16478 conflicts.
16479 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
16480 allocno subobjects.
16481 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
16482 choices about which bits to set in each set. Don't use
16483 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
16484 using the multiple sets we computed.
16485 (push_allocno_to_stack): Iterate over allocno subobjects.
16486 (all_conflicting_hard_regs_coalesced): New static function.
16487 (setup_allocno_available_regs_num): Use it.
16488 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
16489 subobjects.
16490 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
16491 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16492 by ALLOCNO_NUM_OBJECTS.
16493 (calculate_spill_cost): Likewise.
16494 (color_pass): Express if statement in a more normal way.
16495 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
16496 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
16497 (setup_slot_coalesced_allocno_live_ranges): Likewise.
16498 (allocno_reload_assign): Likewise.
16499 (ira_reassign_pseudos): Likewise.
16500 (fast_allocation): Likewise.
16501 * ira-conflicts.c (build_conflict_bit_table): Likewise.
16502 (print_allocno_conflicts): Likewise.
16503 (ira_build_conflicts): Likewise.
16504 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
16505 callers changed. Test subword 0 of each allocno for conflicts.
16506 (build_object_conflicts): Renamed from build_allocno_conflicts. All
16507 callers changed. Iterate over allocno subobjects.
16508 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
16509 * ira-int.h (struct ira_allocno): New member: num_objects.
16510 Rename object to objects and change it into an array.
16511 (ALLOCNO_OBJECT): Add new argument N.
16512 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
16513 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
16514 (ior_hard_reg_conflicts): Declare.
16515 (ira_add_live_range_to_object): Declare.
16516 (ira_allocno_object_iterator): New.
16517 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
16518 (FOR_EACH_ALLOCNO_OBJECT): New macro.
16519 * ira-lives.c (objects_live): Renamed from allocnos_live; all
16520 uses changed.
16521 (allocnos_processed): New sparseset.
16522 (make_object_born): Renamed from make_allocno_born; take an
16523 ira_object_t argument. All callers changed.
16524 (make_object_dead): Renamed from make_allocno_dead; take an
16525 ira_object_t argument. All callers changed.
16526 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
16527 All callers changed.
16528 (mark_pseudo_regno_live): Iterate over allocno subobjects.
16529 (mark_pseudo_regno_dead): Likewise.
16530 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
16531 functions.
16532 (mark_ref_live): Detect subword accesses and call
16533 mark_pseudo_regno_subword_live as appropriate.
16534 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
16535 (process_bb_nodes_live): Deal with object-related updates first; set
16536 and test bits in allocnos_processed to avoid computing allocno
16537 statistics more than once.
16538 (create_start_finish_chains): Iterate over objects, not allocnos.
16539 (print_object_live_ranges): New function.
16540 (print_allocno_live_ranges): Use it.
16541 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
16542 and objects_live.
16543
16544 2010-07-22 Richard Guenther <rguenther@suse.de>
16545
16546 PR lto/42451
16547 * gimple.c (gtc_next_dfs_num): New global.
16548 (struct sccs): Make value a union, add integer same_p member.
16549 (gtc_visit): New function.
16550 (gimple_types_compatible_p_1): New function, split out from ...
16551 (gimple_types_compatible_p): ... here. Start a DFS walk here.
16552 (iterative_hash_gimple_type): Adjust for sccs change.
16553
16554 2010-07-22 Martin Jambor <mjambor@suse.cz>
16555
16556 PR tree-optimization/44891
16557 * tree-sra.c: Include gimple-pretty-print.h.
16558 (replace_uses_with_default_def_ssa_name): Renamed to
16559 get_repl_default_def_ssa_name, return the new SSA name instead of
16560 replacing the old one.
16561 (sra_modify_assign): Dump a message when removing a load, if the LHS
16562 is an SSA_NAME, do not do any propagation, just set the RHS to a
16563 default definition SSA NAME, type convert if necessary.
16564 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
16565
16566 2010-07-22 Richard Guenther <rguenther@suse.de>
16567
16568 PR tree-optimization/45017
16569 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
16570 TYPE_PRECISION of integral types in addition to size.
16571
16572 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
16573
16574 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
16575 when no C library is specified.
16576
16577 2010-07-22 Martin Jambor <mjambor@suse.cz>
16578
16579 * ipa-prop.h (struct ipa_node_params): Updated comment.
16580 (struct ipa_edge_args): Likewise.
16581 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
16582
16583 2010-07-22 Martin Jambor <mjambor@suse.cz>
16584
16585 * cgraphunit.c (verify_edge_count_and_frequency): New function.
16586 (verify_cgraph_node): Verify frequencies of indirect edges.
16587 * tree-inline.c (tree_function_versioning): Update frequencies of
16588 indirect edges.
16589
16590 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16591
16592 PR target/43698
16593 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
16594 Set *arm_rev to be predicable.
16595
16596 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
16597
16598 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
16599 (LINK_COMMAND_SPEC_A): New.
16600 (DSYMUTIL): New.
16601 (DSYMUTIL_SPEC): New.
16602 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
16603 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
16604
16605 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
16606
16607 * calls.c (load_register_parameters): Move check for zero
16608 sized items so that only the call to
16609 mem_overlaps_already_clobbered_arg_p () is protected.
16610
16611 2010-07-22 Jan Hubicka <jh@suse.cz>
16612
16613 * ipa-pure-const.c (varying_state): Break out from ...
16614 (get_function_state): ... here; always return varying_state
16615 when state would be NULL otherwise.
16616 (remove_node_data): Do not free varying state.
16617
16618 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
16619
16620 PR bootstrap/44970
16621 PR middle-end/45009
16622 * postreload.c: Include "target.h".
16623 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
16624 into account.
16625 (fixup_debug_insns): Don't copy the rtx.
16626 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
16627 Don't copy when replacing. Call fixup_debug_insns in the case where
16628 we merged one add with another.
16629 (reload_combine_recognize_pattern): Fail if there aren't any uses.
16630 Try harder to determine whether we're picking a valid index register.
16631 Don't set store_ruid for an insn we're going to scan in the
16632 next iteration.
16633 (reload_combine): Remove unused code.
16634 (reload_combine_note_use): When updating use information for
16635 an old insn, ignore a use that occurs after store_ruid.
16636 * Makefile.in (postreload.o): Update dependencies.
16637
16638 * function.c (record_hard_reg_sets): Restrict the previous change
16639 to cases where the incoming nominal mode is the same as the
16640 incoming promoted mode and everything happens in MODE_INT.
16641
16642 2010-07-21 Jakub Jelinek <jakub@redhat.com>
16643
16644 PR debug/45015
16645 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
16646 ASM_OPERANDS_OUTPUT_IDX.
16647 (adjust_insn): For inline asm with multiple sets ensure first
16648 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
16649 the insn.
16650
16651 2010-07-21 Richard Henderson <rth@redhat.com>
16652
16653 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
16654 comparison for avoiding xmm register saves. Emit the xmm register
16655 saves explicitly.
16656 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
16657 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
16658 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
16659 Remove patterns and the associated splitters.
16660
16661 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
16662
16663 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
16664 and imagine parts of a complex, so that they can have the same
16665 base and fall into the same group.
16666
16667 2010-07-21 Richard Guenther <rguenther@suse.de>
16668
16669 PR lto/45018
16670 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
16671 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
16672 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
16673
16674 2010-07-21 Martin Jambor <mjambor@suse.cz>
16675
16676 PR tree-optimization/44900
16677 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
16678 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
16679
16680 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
16681
16682 PR middle-end/44738
16683 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
16684
16685 2010-07-21 Richard Guenther <rguenther@suse.de>
16686
16687 PR middle-end/45013
16688 * tree-ssa.c (useless_type_conversion_p): Dispatch to
16689 gimple_types_compatible_p only when in lto.
16690 * gimple.c (gimple_types_compatible_p): Use canonical types
16691 to speed up comparison.
16692
16693 2010-07-21 Richard Guenther <rguenther@suse.de>
16694
16695 * tree-flow.h (referenced_var): Move define ...
16696 * tree-flow-inline.h (referenced_var): ... here as an inline
16697 function. Assert here ...
16698 * tree-dfa.c (referenced_var_lookup): ... instead of here.
16699 * tree-ssa.c (maybe_optimize_var): Check if the variable
16700 is in referenced vars.
16701 (execute_update_addresses_taken): Remove old broken check.
16702 * gimple-pretty-print.c (pp_points_to_solution): Use
16703 referenced_var_lookup.
16704 * tree-into-ssa.c (dump_decl_set): Likewise.
16705
16706 2010-07-21 Jakub Jelinek <jakub@redhat.com>
16707
16708 PR debug/45003
16709 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
16710 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
16711 ZERO_EXTEND here.
16712
16713 2010-07-20 Richard Henderson <rth@redhat.com>
16714
16715 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
16716
16717 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
16718
16719 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
16720 computing the sum of the stack pointer and a large constant.
16721 * config/arm/constraints.md (M): Remove superfluous parentheses.
16722 (Pc): New constraint.
16723
16724 2010-07-20 Jakub Jelinek <jakub@redhat.com>
16725
16726 PR debug/45006
16727 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
16728 operand's type if exp is tcc_unary class tree.
16729
16730 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
16731
16732 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
16733 Reverse sense of if_then_else condition.
16734
16735 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
16736
16737 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
16738 * config/rs6000/rs6000.c (rs6000_override_options): Set
16739 rs6000_block_move_inline_limit appropriately.
16740 (expand_block_move): Use rs6000_block_move_inline_limit.
16741 * doc/invoke.texi (mblock-move-inline-limit): Document.
16742
16743 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
16744
16745 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
16746 FROM and TO. All callers changed. Don't look for tracked uses,
16747 just scan the RTL for DEBUG_INSNs and substitute.
16748 (reload_combine_recognize_pattern): Call fixup_debug_insns.
16749 (reload_combine): Ignore DEBUG_INSNs.
16750
16751 2010-07-20 Jakub Jelinek <jakub@redhat.com>
16752
16753 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
16754 depth to 8 from 5.
16755
16756 PR debug/45003
16757 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
16758 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
16759 instead of the result's type.
16760
16761 2010-07-20 Richard Guenther <rguenther@suse.de>
16762
16763 PR tree-optimization/44977
16764 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
16765 SSA form.
16766
16767 2010-07-20 Richard Guenther <rguenther@suse.de>
16768
16769 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
16770 (lto_symtab_merge_decls_2): Likewise.
16771 * gimple.h (gimple_types_compatible_p): Declare.
16772 * gimple.c (gimple_queue_type_fixup): Remove.
16773 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
16774 (gimple_compatible_complete_and_incomplete_type_p): New function.
16775 (gimple_types_compatible_p): Adjust.
16776 (gimple_register_type): Remove type fixup code.
16777 (print_gimple_types_stats): Adjust.
16778 (free_gimple_type_tables): Likewise.
16779 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
16780 * tree-ssa.c (useless_type_conversion_p): Likewise.
16781
16782 2010-07-20 Richard Guenther <rguenther@suse.de>
16783
16784 PR middle-end/44971
16785 PR middle-end/44988
16786 * tree-ssa.c (maybe_optimize_var): New function split out from ...
16787 (execute_update_addresses_taken): ... here.
16788 (non_rewritable_mem_ref_base): Likewise.
16789 (execute_update_addresses_taken): Do not iterate over all referenced
16790 vars but just all local decls and parms.
16791 Properly check call and asm arguments and rewrite call arguments.
16792
16793 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
16794
16795 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
16796 to top level.
16797 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
16798 definitions ...
16799 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
16800 New macro.
16801 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
16802
16803 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
16804
16805 * gengtype.c (start_root_entry): New function, split out from
16806 write_root. Check whether V is null and raise an error if so.
16807 (write_field_root): Check for V being null. Don't raise an error here;
16808 set V to null instead.
16809 (write_root): Update comment above function. Use start_root_entry.
16810
16811 2010-07-19 Xinliang David Li <davidxl@google.com>
16812
16813 PR testsuite/44932
16814 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
16815 def edges.
16816 (find_uninit_use): Add dump.
16817 (is_use_properly_guarded): Ditto.
16818 (warn_uninitialized_phi): Ditto.
16819 (execute_late_warn_uninitialized): Ditto.
16820
16821 2010-07-19 Richard Guenther <rguenther@suse.de>
16822
16823 PR middle-end/44941
16824 * expr.c (emit_block_move_hints): Move zero size check first.
16825 Move asserts to more useful places.
16826 * calls.c (load_register_parameters): Check for zero size.
16827
16828 2010-07-19 Richard Henderson <rth@redhat.com>
16829
16830 * tree-optimize.c (execute_all_early_local_passes): New. Change
16831 cgraph_state here ...
16832 (execute_early_local_optimizations): ... not here. Remove.
16833 (pass_early_local_passes, pass_all_early_optimizations): Update.
16834
16835 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
16836
16837 * postreload.c (reload_combine_closest_single_use): Ignore the
16838 number of uses for DEBUG_INSNs.
16839 (fixup_debug_insns): New static function.
16840 (reload_combine_recognize_const_pattern): Use it. Don't let the
16841 main loop be affected by DEBUG_INSNs.
16842 Really disallow moving adds past a jump insn.
16843 (reload_combine_recognize_pattern): Don't update use_ruid here.
16844 (reload_combine_note_use): Do it here.
16845 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
16846
16847 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
16848
16849 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
16850 of a loop.
16851 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
16852
16853 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
16854
16855 * config/i386/darwin.h: Define darwin_emit_branch_islands.
16856 (TARGET_MACHO_BRANCH_ISLANDS): New.
16857 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
16858 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
16859 default value.
16860 * config/i386/i386.c (output_pic_addr_const): Do not emit
16861 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
16862 (x86_output_mi_thunk): Adjust symbol creation.
16863 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
16864 Remove out of date comment.
16865 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
16866 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16867 (DARWIN_GENERATE_ISLANDS): Ditto.
16868 (output_call): Do not emit branch islands unless
16869 darwin_emit_branch_islands is set.
16870 * config/darwin.c: Declare darwin_emit_branch_islands.
16871 (machopic_indirect_data_reference): Do not emit unless
16872 darwin_emit_branch_islands is set.
16873 (darwin_override_options): Set darwin_emit_branch_islands
16874 where it is needed.
16875 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
16876
16877 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16878
16879 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16880 sse_runtime, sse2_runtime.
16881
16882 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
16883
16884 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
16885 low half of a single-register SCmode return value before ORing
16886 it with the high half.
16887 * config/mips/mips16.S (MERGE_GPRf): Likewise.
16888
16889 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16890
16891 PR target/44805
16892 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
16893 on all targets.
16894
16895 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
16896
16897 PR target/42235
16898 * postreload.c (reload_cse_move2add): Return bool, true if anything.
16899 changed. All callers changed.
16900 (move2add_use_add2_insn): Likewise.
16901 (move2add_use_add3_insn): Likewise.
16902 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
16903 reload_combine.
16904 (RELOAD_COMBINE_MAX_USES): Bump to 16.
16905 (last_jump_ruid): New static variable.
16906 (struct reg_use): New members CONTAINING_MEM and RUID.
16907 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
16908 (reload_combine_split_one_ruid, reload_combine_split_ruids,
16909 reload_combine_purge_insn_uses, reload_combine_closest_single_use
16910 reload_combine_purge_reg_uses_after_ruid,
16911 reload_combine_recognize_const_pattern): New static functions.
16912 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
16913 is true for our reg and that we have available index regs.
16914 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
16915 callers changed. Use them to initialize fields in struct reg_use.
16916 (reload_combine): Initialize last_jump_ruid. Be careful when to
16917 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
16918 Call reload_combine_recognize_const_pattern.
16919 (reload_combine_note_store): Update REAL_STORE_RUID field.
16920
16921 2010-07-16 Jason Merrill <jason@redhat.com>
16922
16923 * Makefile.in (opts-common.o): Depend on options.h.
16924
16925 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
16926
16927 * tree.c (build_common_builtin_nodes): Use build_function_type_list
16928 instead of build_function_type.
16929 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
16930 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16931
16932 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
16933
16934 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
16935 do all the work.
16936 (rs6000_emit_int_cmove): Use function pointers for insn generation.
16937 Don't force values into registers unnecessarily.
16938 (output_isel): Assert that we're not given conditions we can't handle.
16939 Delete corresponding code.
16940 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
16941 scc_comparison_operator constraint. Permit 0 for the consequent
16942 operand. Permit any GPR for the alternative operand.
16943 (isel_unsigned_<mode>): Likewise.
16944
16945 2010-07-16 Jakub Jelinek <jakub@redhat.com>
16946
16947 PR target/44942
16948 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
16949 argument to const_tree.
16950 * config/i386/i386.c (function_arg_advance): If padding needs to be
16951 inserted before argument, increment cum->words by number of padding
16952 words as well.
16953 (contains_aligned_value_p): Change argument to const_tree.
16954 (ix86_function_arg_boundary): Change second argument to const_tree.
16955
16956 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
16957
16958 PR target/42235
16959 * function.c (record_hard_reg_sets): New static function.
16960 (assign_parm_setup_reg): If an optab for extending exists and the
16961 generated code clobbbers no hard regs, emit the insn directly and
16962 create a REG_EQUIV note.
16963
16964 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16965
16966 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
16967 TREE_CHAIN.
16968 * c-typeck.c (push_init_level): Likewise.
16969 (process_init_element): Likewise.
16970
16971 2010-07-15 Anatoly Sokolov <aesok@post.ru>
16972
16973 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
16974 (integer_three_node): Add.
16975 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
16976 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
16977 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
16978 of call build_int_cst.
16979 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
16980 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
16981 (find_interesting_uses_address): Ditto.
16982 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
16983 * tree-eh.c (lower_eh_constructs_2): Ditto.
16984 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
16985 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
16986 * expmed.c (expand_divmod): Ditto.
16987 * tree-mudflap.c (mx_register_decls): Ditto.
16988 * varasm.c (array_size_for_constructor): Ditto.
16989 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
16990 * c-parser.c (c_parser_postfix_expression): Ditto.
16991
16992 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
16993
16994 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
16995 New static variables.
16996 (reload_combine_recognize_pattern): New static function, broken out
16997 of reload_combine.
16998 (reload_combine): Use it. Only initialize first_index_reg and
16999 last_index_reg once.
17000
17001 2010-07-15 Richard Henderson <rth@redhat.com>
17002
17003 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
17004 when done.
17005
17006 2010-07-15 Jan Hubicka <jh@suse.cz>
17007
17008 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
17009 comdats for broken gold.
17010 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
17011
17012 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
17013
17014 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
17015
17016 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
17017
17018 * tree.h (DECL_CHAIN): Define.
17019 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
17020 * c-decl.c: Likewise.
17021 * c-parser.c: Likewise.
17022 * c-typeck.c: Likewise.
17023 * cfgexpand.c: Likewise.
17024 * cgraph.c: Likewise.
17025 * cgraphunit.c: Likewise.
17026 * combine.c: Likewise.
17027 * config/alpha/alpha.c: Likewise.
17028 * config/arm/arm.c: Likewise.
17029 * config/frv/frv.c: Likewise.
17030 * config/i386/i386.c: Likewise.
17031 * config/i386/winnt-cxx.c: Likewise.
17032 * config/ia64/ia64.c: Likewise.
17033 * config/iq2000/iq2000.c: Likewise.
17034 * config/mep/mep.c: Likewise.
17035 * config/mips/mips.c: Likewise.
17036 * config/pa/som.h: Likewise.
17037 * config/rs6000/rs6000.c: Likewise.
17038 * config/s390/s390.c: Likewise.
17039 * config/sh/sh.c: Likewise.
17040 * config/sh/symbian-cxx.c: Likewise.
17041 * config/sparc/sparc.c: Likewise.
17042 * config/spu/spu.c: Likewise.
17043 * config/stormy16/stormy16.c: Likewise.
17044 * config/vxworks.c: Likewise.
17045 * config/xtensa/xtensa.c: Likewise.
17046 * coverage.c: Likewise.
17047 * dbxout.c: Likewise.
17048 * dwarf2out.c: Likewise.
17049 * emit-rtl.c: Likewise.
17050 * expr.c: Likewise.
17051 * function.c: Likewise.
17052 * gimple-low.c: Likewise.
17053 * gimple-pretty-print.c: Likewise.
17054 * gimplify.c: Likewise.
17055 * integrate.c: Likewise.
17056 * ipa-inline.c: Likewise.
17057 * ipa-prop.c: Likewise.
17058 * ipa-split.c: Likewise.
17059 * ipa-struct-reorg.c: Likewise.
17060 * ipa-type-escape.c: Likewise.
17061 * langhooks.c: Likewise.
17062 * lto-cgraph.c: Likewise.
17063 * omp-low.c: Likewise.
17064 * stor-layout.c: Likewise.
17065 * tree-cfg.c: Likewise.
17066 * tree-complex.c: Likewise.
17067 * tree-dfa.c: Likewise.
17068 * tree-dump.c: Likewise.
17069 * tree-inline.c: Likewise.
17070 * tree-mudflap.c: Likewise.
17071 * tree-nested.c: Likewise.
17072 * tree-object-size.c: Likewise.
17073 * tree-pretty-print.c: Likewise.
17074 * tree-sra.c: Likewise.
17075 * tree-ssa-live.c: Likewise.
17076 * tree-ssa-loop-niter.c: Likewise.
17077 * tree-ssa-math-opts.c: Likewise.
17078 * tree-ssa-reassoc.c: Likewise.
17079 * tree-ssa-sccvn.c: Likewise.
17080 * tree-ssa-structalias.c: Likewise.
17081 * tree-tailcall.c: Likewise.
17082 * tree-vrp.c: Likewise.
17083 * tree.c: Likewise.
17084 * var-tracking.c: Likewise.
17085 * varasm.c: Likewise.
17086
17087 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17088
17089 PR target/44877
17090 * config/spu/spu.c (spu_expand_builtin_1): Allow references
17091 (as well as pointers) as argument to mask_for_load builtins.
17092
17093 2010-07-15 Richard Guenther <rguenther@suse.de>
17094
17095 PR tree-optimization/44946
17096 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
17097 with accessing only padding properly.
17098
17099 2010-07-15 Jan Hubicka <jh@suse.cz>
17100
17101 * ipa.c (function_and_variable_visibility): Variables marked as used
17102 should not be localized.
17103
17104 2010-07-15 Jan Hubicka <jh@suse.cz>
17105
17106 * cgraph.c: Include lto-streamer.h
17107 (change_decl_assembler_name): Work when assembler name hash is at place.
17108 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
17109 be sure to rename it to avoid name clash.
17110 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
17111 Localize hidden symbols only when locally defined.
17112
17113 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
17114
17115 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
17116
17117 2010-07-15 Magnus Granberg <zorry@gentoo.org>
17118 Kevin F. Quinn <kevquinn@gentoo.org>
17119
17120 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
17121 * common.opt: Add -Wtrampolines.
17122 * doc/invoke.texi: Add -Wtrampolines.
17123
17124 2010-07-15 Jie Zhang <jie@codesourcery.com>
17125
17126 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
17127 cortex_a8_issue_ls.
17128
17129 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
17130
17131 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
17132 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
17133
17134 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17135
17136 * config/spu/spu.c (reg_names): Remove prototype.
17137 (call_used_regs): Likewise.
17138
17139 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
17140
17141 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
17142 "unused" with attribute "used".
17143 (__JCR_END__): Likewise.
17144 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
17145 "used" attribute.
17146 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
17147
17148 2010-07-14 Richard Guenther <rguenther@suse.de>
17149
17150 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
17151 (maybe_fixup_decls): Likewise.
17152 (input_gimple_stmt): Do not fixup anything.
17153 * lto-streamer-out.c (output_gimple_stmt): Make sure all
17154 non-automatic variable uses are wrapped inside a MEM_REF.
17155
17156 2010-07-14 Richard Henderson <rth@redhat.com>
17157
17158 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
17159 for functions.
17160 * varasm.c (assemble_variable): Remove early exit for functions;
17161 assert that we're given a variable.
17162
17163 2010-07-14 Jie Zhang <jie@codesourcery.com>
17164
17165 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
17166 cortex_a8_default when neon_type is not none.
17167
17168 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17169
17170 * lower-subreg.c (subreg_context): New static bitmap.
17171 (decompose_multiword_subregs): Allocate and free it.
17172 (find_decomposable_subregs): Set a bit in it for a register that
17173 occurs in a subreg that changes mode but not size.
17174 (can_decompose_p): Test it instead of non_decomposable_context.
17175
17176 2010-07-14 Richard Guenther <rguenther@suse.de>
17177
17178 PR tree-optimization/44824
17179 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
17180 is_gimple_mem_ref_addr.
17181 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
17182 non-decl_address_invariant_p addresses.
17183
17184 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17185
17186 * reload.c (find_reloads): Revert code to penalize small register
17187 classes that was brought in with the IRA merge.
17188
17189 2010-07-14 Richard Guenther <rguenther@suse.de>
17190
17191 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
17192 as base of ARRAY_REFs.
17193
17194 2010-07-14 Richard Guenther <rguenther@suse.de>
17195
17196 PR middle-end/44930
17197 * tree-pretty-print.c (do_niy): Do not print a newline.
17198
17199 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17200
17201 * ira-int.h (struct ira_object): New.
17202 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
17203 (struct ira_allocno): Remove members min, max,
17204 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
17205 conflict_allocnos_num and conflict_vec_p. Add new member object.
17206 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
17207 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
17208 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
17209 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
17210 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
17211 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
17212 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
17213 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
17214 an ira_object_t rather than ira_allocno_t. All uses changed.
17215 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17216 contains a vector of ira_object_t; all uses changed.
17217 (ira_objects_num): Declare variable.
17218 (ira_create_allocno_object): Declare function.
17219 (ira_conflict_vector_profitable_p): Adjust prototype.
17220 (ira_allocate_conflict_vec): Renamed from
17221 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
17222 (ira_allocate_object_conflicts): Renamed from
17223 ira_allocate_allocno_conflicts; first arg now ira_object_t.
17224 (struct ira_object_iterator): New.
17225 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
17226 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
17227 to conflict_vec_p. All uses changed.
17228 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
17229 Changed to take into account that conflicts are now tracked for
17230 objects.
17231 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
17232 Args changed to accept ira_object_t. All uses changed.
17233 (allocnos_conflict_p): New static function.
17234 (collected_conflict_objects): Renamed from collected_allocno_objects;
17235 now a vector of ira_object_t. All uses changed.
17236 (build_conflict_bit_table): Changed to take into account that
17237 conflicts are now tracked for objects.
17238 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
17239 (print_allocno_conflicts, ira_build_conflicts): Likewise.
17240 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
17241 setup_allocno_left_conflicts_size, allocno_reload_assign,
17242 fast_allocation): Likewise.
17243 * ira-lives.c (make_hard_regno_born, make_allocno_born)
17244 process_single_reg_class_operands, process_bb_node_lives): Likewise.
17245 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
17246 Likewise.
17247 * ira-build.c (ira_objects_num): New variable.
17248 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17249 contains a vector of ira_object_t; all uses changed.
17250 (ira_object_id_map_vec): Corresponding change.
17251 (object_pool): New static variable.
17252 (initiate_allocnos): Initialize it.
17253 (finish_allocnos): Free it.
17254 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
17255 New functions.
17256 (ira_create_allocno): Don't set members that were removed.
17257 (ira_set_allocno_cover_class): Don't change conflict hard regs.
17258 (merge_hard_reg_conflicts): Changed to take into account that
17259 conflicts are now tracked for objects.
17260 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
17261 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
17262 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
17263 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
17264 setup_min_max_conflict_allocno_ids, ): Likewise.
17265 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
17266 to ira_object_t; all callers changed.
17267 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
17268 to ira_object_t, all callers changed.
17269 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
17270 to ira_object_t, all callers changed.
17271 (conflict_check, curr_conflict_check_tick): Renamed from
17272 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
17273 changed.
17274 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
17275 arg changed to ira_object_t, all callers changed.
17276 (create_cap_allocno): Call ira_create_allocno_object.
17277 (finish_allocno): Free the corresponding object.
17278 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
17279 callers changed. Adjusted for dealing with objects.
17280 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
17281 dealing with objects.
17282 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
17283
17284 * ira-int.h (struct live_range): Rename allocno member to object
17285 and change type to ira_object_t.
17286 (struct ira_object): New member live_ranges.
17287 (struct ira_allocno): Remove member live_ranges.
17288 (ALLOCNO_LIVE_RANGES): Remove.
17289 (OBJECT_LIVE_RANGES): New macro.
17290 (ira_create_live_range, ira_copy_live_range_list,
17291 ira_merge_live_range_list, ira_live_ranges_intersect_p,
17292 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
17293 * ira-build.c (ira_create_object): Initialize live ranges here.
17294 (ira_create_allocno): Not here.
17295 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
17296 changed to ira_object_t, all callers changed.
17297 (copy_live_range): Rename from copy_allocno_live_range, all callers
17298 changed.
17299 (ira_copy_live_range_list): Rename from
17300 ira_copy_allocno_live_range_list, all callers changed.
17301 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
17302 all callers changed.
17303 (ira_live_ranges_intersect_p): Rename from
17304 ira_allocno_live_ranges_intersect_p, all callers changed.
17305 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
17306 callers changed.
17307 (ira_finish_live_range_list): Rename from
17308 ira_finish_allocno_live_range_list, all callers changed.
17309 (change_object_in_range_list): Rename from change_allocno_in_range_list,
17310 last arg changed to ira_object_t, all callers changed.
17311 (finish_allocno): Changed to expect live ranges in the allocno's object.
17312 (move_allocno_live_ranges, copy_allocno_live_ranges,
17313 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
17314 ira_flattening, ira_build): Likewise.
17315 * ira-color.c (allocnos_have_intersected_live_ranges_p,
17316 slot_coalesced_allocno_live_ranges_intersect,
17317 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
17318 * ira-conflicts.c (build_conflict_bit_table): Likewise.
17319 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
17320 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
17321 make_allocno_dead, create_start_finish_chains,
17322 remove_some_program_points_and_update_live_ranges,
17323 ira_debug_live_range_list): Likewise.
17324
17325 * ira-int.h (ira_object_conflict_iterator): Rename from
17326 ira_allocno_conflict_iterator.
17327 (ira_object_conflict_iter_init): Rename from
17328 ira_allocno_conflict_iter_init, second arg changed to
17329 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
17330 FOR_EACH_ALLOCNO_CONFLICT.
17331 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
17332 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
17333 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
17334 * ira-conflicts.c (print_allocno_conflicts): Likewise.
17335
17336 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
17337
17338 PR other/44874
17339 * tree-dump.c (dump_options): Add enumerate_locals entry.
17340 Add TDF_NOID exclusion to all entry.
17341 * tree-dump.h (dump_enumerated_decls): Declare.
17342 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
17343 Don't display type uid.
17344 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
17345 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
17346 * tree-ssa-live.c: Include gimple.h.
17347 (numbered_tree_d): New struct.
17348 (numbered_tree): New typedef.
17349 (DEF_VEC_O (numbered_tree): New.
17350 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
17351 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
17352 (dump_enumerated_decls): Likewise.
17353 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
17354 debug info and flag_dump_final_insns, call dump_enumerated_decls.
17355 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
17356 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
17357
17358 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
17359
17360 * expmed.h (MAX_BITS_PER_WORD): Move to...
17361 * defaults.h (MAX_BITS_PER_WORD): ...here.
17362
17363 2010-07-13 DJ Delorie <dj@redhat.com>
17364
17365 * config/h8300/h8300.c (h8300_init_once): Default to
17366 -fstrict_volatile_bitfields.
17367
17368 * config/sh/sh.c (sh_override_options): Default to
17369 -fstrict_volatile_bitfields.
17370
17371 * config/rx/rx.c (rx_option_override): New.
17372
17373 * config/m32c/m32c.c (m32c_override_options): Default to
17374 -fstrict_volatile_bitfields.
17375
17376 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
17377
17378 * tree.h (build_function_call_expr): Delete.
17379 (build_call_expr_loc_array): New function.
17380 (build_call_expr_loc_vec): New function.
17381 * tree-flow.h (struct omp_region): Change type of ws_args field
17382 to a VEC.
17383 * builtins.c (build_function_call_expr): Delete.
17384 (build_call_expr_loc_array): New function.
17385 (build_call_expr_loc): Call it. Use XALLOCAVEC.
17386 (build_call_expr): Likewise.
17387 (build_call_expr_loc_vec): New function.
17388 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
17389 build_function_call_expr.
17390 * expr.c (emutls_var_address): Likewise.
17391 * varasm.c (emutls_common_1): Likewise.
17392 * omp-low.c (expand_omp_atomic_mutex): Likewise.
17393 (expand_omp_taskreg): Adjust for new type of region->ws_args.
17394 (get_ws_args_for): Return a VEC instead of a tree.
17395 (expand_parallel_call): Call build_call_expr_loc_vec instead of
17396 build_function_call_expr.
17397 * stor-layout.c (self_referential_size): Likewise.
17398
17399 2010-07-13 Jakub Jelinek <jakub@redhat.com>
17400
17401 PR testsuite/44701
17402 * recog.c (constrain_operands): Allow side-effects in memory
17403 operands if either < or > constraint is used, rather than if
17404 both < and > is used.
17405
17406 2010-07-13 Richard Guenther <rguenther@suse.de>
17407
17408 PR middle-end/44911
17409 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
17410 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
17411 without name.
17412
17413 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
17414
17415 PR target/44761
17416 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
17417 to variable emited.
17418 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
17419 * config/sh/sh.md (symGOT_load): Likewise.
17420 (symDTPOFF2reg): Likewise.
17421 (symTPOFF2reg): Likewise.
17422
17423 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17424
17425 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
17426 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
17427
17428 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17429
17430 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
17431 explanation.
17432 Find ucontext_t * on Solaris 11.
17433 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
17434 Handle new Solaris 11 __sighndlr patterns.
17435
17436 2010-07-13 Jakub Jelinek <jakub@redhat.com>
17437
17438 PR debug/44901
17439 * vec.h (VEC_block_remove): Fix comment.
17440 * tree-ssa-live.c (remove_unused_locals): Don't use
17441 VEC_unordered_remove on local_decls, instead replace a single
17442 vector element in each iteration if at least one element had
17443 to be removed and VEC_truncate at the end.
17444 * omp-low.c (expand_omp_taskreg): Likewise.
17445
17446 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
17447
17448 * c-decl.c (finish_function): Fix typo in comment.
17449
17450 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
17451
17452 PR bootstrap/44921
17453 * postreload.c (move2add_use_add3_insn): Silence gcc warning
17454 on min_regno.
17455
17456 2010-07-12 Jakub Jelinek <jakub@redhat.com>
17457
17458 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
17459 (simplify_stmt_using_ranges): Use it.
17460
17461 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17462
17463 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
17464 member. Do not mark as GTY(()).
17465 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
17466 (spu_builtin_decls): New static variable.
17467 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
17468 (spu_init_builtins): Likewise.
17469 (spu_builtin_mul_widen_even): Likewise.
17470 (spu_builtin_mul_widen_odd): Likewise.
17471 (spu_builtin_mask_for_load): Likewise.
17472 (spu_builtin_vec_perm): Likewise.
17473 * config/spu/spu-c.c: Include "target.h".
17474 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
17475 of using spu_builtins[].fndecl.
17476
17477 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17478
17479 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
17480 imply -minterlink-mips16.
17481
17482 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17483
17484 * config/mips/mips.h (mips16_globals): Declare.
17485 (SWITCHABLE_TARGET): Define.
17486 * config/mips/mips.c: Include target-globals.h.
17487 (mips16_globals): New variable.
17488 (mips_set_mips16_mode): Use save_target_globals and
17489 restore_target_globals instead of target_reinit.
17490
17491 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17492
17493 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
17494 to say that the function can be called more than once.
17495 * target-globals.c (save_target_globals): Call init_reg_sets.
17496
17497 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17498
17499 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
17500 * bb-reorder.h: New file.
17501 * bb-reorder.c (default_target_bb_reorder): New variable.
17502 (this_target_bb_reorder): New conditional variable.
17503 (uncond_jump_length): Redefine as a macro.
17504 * target-globals.h (this_target_bb_reorder): Declare.
17505 (target_globals): Add a bb_reorder field.
17506 (restore_target_globals): Copy the bb_reorder field to
17507 this_target_bb-reorder.
17508 * target-globals.c: Include bb-reorder.h.
17509 (default_target_globals): Initialize the bb_reorder field.
17510 (save_target_globals): Likewise.
17511
17512 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17513
17514 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
17515 * gcse.h: New file.
17516 * gcse.c: Include gcse.h.
17517 (default_target_gcse): New variable.
17518 (this_target_gcse): New conditional variable.
17519 (can_copy): Redefine as a macro.
17520 (can_copy_init_p): New macro.
17521 (can_copy_p): Remove can_copy_init_p.
17522 * target-globals.h (this_target_gcse): Declare.
17523 (target_globals): Add a gcse field.
17524 (restore_target_globals): Copy the gcse field to this_target_gcse.
17525 * target-globals.c: Include gcse.h.
17526 (default_target_globals): Initialize the gcse field.
17527 (save_target_globals): Likewise.
17528
17529 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17530
17531 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
17532 and x_ira_prohibited_mode_move_regs_initialized_p.
17533 (ira_prohibited_mode_move_regs): Redefine as a macro.
17534 * ira.c (ira_prohibited_mode_move_regs): Delete.
17535 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
17536
17537 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17538
17539 * reload.h (target_reload): Add x_cached_reg_save_code and
17540 x_cached_reg_restore_code.
17541 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
17542 Redefine as macros.
17543
17544 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17545
17546 * Makefile.in (target-globals.o): Depend on builtins.h.
17547 * builtins.h: New file.
17548 * builtins.c: Include builtins.h.
17549 (default_target_builtins): New variable.
17550 (this_target_builtins): New conditional variable.
17551 (apply_args_mode, apply_result_mode): Redefine as macros.
17552 * target-globals.h (this_target_builtins): Declare.
17553 (target_globals): Add a builtins field.
17554 (restore_target_globals): Copy the builtins field to
17555 this_target_builtins.
17556 * target-globals.c: Include builtins.h.
17557 (default_target_globals): Initialize the builtins field.
17558 (save_target_globals): Likewise.
17559
17560 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17561
17562 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
17563 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
17564 from expmed.c.
17565 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
17566 (alg_hash, alg_hash_used_p): New macros.
17567 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
17568 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
17569 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
17570
17571 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17572
17573 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
17574 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
17575 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
17576 (this_op_costs, costs_classes): Redefine as macros.
17577 (record_reg_classes): Don't take op_costs as a parameter.
17578 (record_operand_costs): Likewise. Update calls to record_reg_classes.
17579 (scan_one_insn): Update call to record_operand_costs.
17580
17581 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17582
17583 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
17584 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
17585 (target_ira_int): New structure.
17586 (default_target_ira_int): Declare.
17587 (this_target_ira_int): Declare as a variable or define as a macro.
17588 (ira_reg_mode_hard_regset, ira_register_move_cost)
17589 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
17590 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
17591 (prohibited_class_mode_regs, ira_important_classes_num)
17592 (ira_important_classes, ira_reg_class_intersect)
17593 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
17594 (ira_reg_class_union): Redefine as macros.
17595 * ira.h (target_ira): New structure.
17596 (default_target_ira): Declare.
17597 (this_target_ira): Declare as a variable or define as a macro.
17598 (ira_available_class_regs, ira_hard_regno_cover_class)
17599 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
17600 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
17601 (ira_class_hard_regs_num): Redefine as macros.
17602 * ira.c (default_target_ira, default_target_ira_int): New variables.
17603 (this_target_ira, this_target_ira_int): New conditional variables.
17604 (ira_reg_mode_hard_regset, ira_memory_move_cost)
17605 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
17606 (ira_class_subset_p): Delete.
17607 (no_unit_alloc_regs): Redefine as a macro.
17608 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
17609 (ira_class_hard_regs_num, ira_class_hard_reg_index)
17610 (ira_available_class_regs): Delete.
17611 (alloc_reg_class_subclasses): Redefine as a macro.
17612 (ira_reg_class_cover_size, ira_reg_class_cover)
17613 (ira_important_classes_num, ira_important_classes)
17614 (ira_important_class_nums, ira_class_translate): Delete.
17615 (cover_class_order): Document the variable's lifetime.
17616 (reorder_important_classes): Don't set ira_important_class_nums.
17617 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
17618 (ira_reg_class_super_classes, ira_reg_class_union)
17619 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
17620 Delete.
17621 (setup_reg_class_nregs): Don't set ira_max_regs.
17622 (prohibited_class_mode_regs): Delete.
17623 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
17624 (target_globals): Add ira and ira_int fields.
17625 (restore_target_globals): Copy the ira field to this_target_ira
17626 and the ira_int field to this_target_ira_int.
17627 * target-globals.c: Include ira-int.h.
17628 (default_target_globals): Initialize the ira and ira_int fields.
17629 (save_target_globals): Likewise.
17630
17631 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17632
17633 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
17634 * cfgloop.h (target_cfgloop): New structure.
17635 (default_target_cfgloop): Declare.
17636 (this_target_cfgloop): Declare as a variable or define as a macro.
17637 (target_avail_regs, target_clobbered_regs, target_res_regs)
17638 (target_reg_cost, target_spill_cost): Redefine as macros.
17639 * cfgloopanal.c (default_target_cfgloop): New variable.
17640 (this_target_cfgloop): New conditional variable.
17641 (target_avail_regs, target_clobbered_regs, target_res_regs)
17642 (target_reg_cost, target_spill_cost): Delete.
17643 * target-globals.h (this_target_cfgloop): Declare.
17644 (target_globals): Add a cfgloop field.
17645 (restore_target_globals): Copy the cfgloop field to
17646 this_target_cfgloop.
17647 * target-globals.c: Include cfgloop.h.
17648 (default_target_globals): Initialize the cfgloop field.
17649 (save_target_globals): Likewise.
17650
17651 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17652
17653 * regs.h (target_regs): Add x_direct_load, x_direct_store and
17654 x_float_extend_from_mem.
17655 (direct_load, direct_store, float_extend_from_mem): New macros.
17656 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
17657
17658 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17659
17660 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
17661 (target-globals.o): Depend on $(LIBFUNCS_H).
17662 * libfuncs.h: Include hashtab.h.
17663 (libfunc_entry): Moved from optabs.c.
17664 (target_libfuncs): New structure.
17665 (default_target_libfuncs): Declare.
17666 (this_target_libfuncs): Declare as a variable or define as a macro.
17667 (libfunc_table): Redefine as a macro.
17668 * optabs.c (default_target_libfuncs): New variable.
17669 (this_target_libfuncs): New conditional variable.
17670 (libfunc_table): Delete.
17671 (libfunc_entry): Moved to optabs.h.
17672 (libfunc_hash): Redefine as a macro.
17673 (hash_libfunc, eq_libfunc): Fix comments.
17674 (init_optabs): Use libfunc_hash to detect cases where the function
17675 has already been called. Clear the hash table instead of
17676 recreating it.
17677 * target-globals.h (this_target_libfuncs): Declare.
17678 (target_globals): Add a libfuncs field.
17679 (restore_target_globals): Copy the libfuncs field to
17680 this_target_libfuncs.
17681 * target-globals.c: Include libfuncs.h.
17682 (default_target_globals): Initialize the libfuncs field.
17683 (save_target_globals): Likewise.
17684
17685 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17686
17687 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
17688 in all dependency lists.
17689
17690 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17691
17692 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
17693 * optabs.h (target_optabs): New structure.
17694 (default_target_optabs): Declare.
17695 (this_target_optabs): Declare as a variable or define as a macro.
17696 (optab_table, convert_optab_table, direct_optab_table): Redefine
17697 as macros.
17698 * optabs.c (default_target_optabs): New variable.
17699 (this_target_optabs): New conditional variable.
17700 (optab_table, convert_optab_table, direct_optab_table): Delete.
17701 * target-globals.h (this_target_optabs): Declare.
17702 (target_globals): Add a optabs field.
17703 (restore_target_globals): Copy the optabs field to
17704 this_target_optabs.
17705 * target-globals.c: Include expr.h and optabs.h.
17706 (default_target_globals): Initialize the optabs field.
17707 (save_target_globals): Likewise.
17708
17709 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17710
17711 * flags.h (target_flagstate): Add x_flag_excess_precision.
17712 (flag_excess_precision): Redefine as a macro.
17713 * toplev.c (flag_excess_precision): Delete.
17714
17715 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17716
17717 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
17718 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
17719 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
17720 (no_caller_save_reg_set): Redefine as a macro.
17721 * reload.h (target_reload): Add x_caller_save_initialized_p and
17722 x_regno_save_mode.
17723 (caller_save_initialized_p): Redefine as a macro.
17724 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
17725 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
17726 (regno_save_mode): Redefine as a macro.
17727
17728 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17729
17730 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
17731 * expmed.h: New file.
17732 * expmed.c (default_target_costs): New variable.
17733 (this_target_costs): New conditional variable.
17734 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
17735 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
17736 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
17737 * target-globals.h (this_target_expmed): Declare.
17738 (target_globals): Add a expmed field.
17739 (restore_target_globals): Copy the expmed field to
17740 this_target_expmed.
17741 * target-globals.c: Include expmed.h.
17742 (default_target_globals): Initialize the expmed field.
17743 (save_target_globals): Likewise.
17744
17745 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17746
17747 * Makefile.in (target-globals.o): Depend on reload.h.
17748 * reload.h (target_reload): New structure.
17749 (default_target_reload): Declare.
17750 (this_target_reload): Declare as a variable or define as a macro.
17751 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
17752 * reload1.c (default_target_reload): New variable
17753 (this_target_reload): New conditional variable.
17754 (indirect_symref_ok, double_reg_address_ok): Delete.
17755 (spill_indirect_levels): Redefine as a macro.
17756 * target-globals.h (this_target_reload): Declare.
17757 (target_globals): Add a reload field.
17758 (restore_target_globals): Copy the reload field to
17759 this_target_reload.
17760 * target-globals.c: Include hard-reg-set.h.
17761 (default_target_globals): Initialize the reload field.
17762 (save_target_globals): Likewise.
17763
17764 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17765
17766 * rtl.h (target_rtl): Add x_static_reg_base_value.
17767 * alias.c (static_reg_base_value): Redefine as a macro.
17768
17769 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17770
17771 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
17772 (GTFILES): Remove reginfo.c.
17773 * rtl.h (target_rtl): Add x_top_of_stack.
17774 (top_of_stack): New macro.
17775 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
17776 (top_of_stack): Delete.
17777
17778 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17779
17780 * regs.h (target_regs): Add x_hard_regs_of_mode,
17781 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
17782 x_may_move_out_cost and x_last_mode_for_init_move_cost.
17783 (have_regs_of_mode, contains_reg_of_mode, move_cost)
17784 (may_move_in_cost, may_move_out_cost): Redefine as macros.
17785 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
17786 (may_move_in_cost, may_move_out_cost): Delete.
17787 (last_mode_for_init_move_cost): Redefine as a macro.
17788
17789 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17790
17791 * hard-reg-set.h (target_hard_regs): New structure.
17792 (default_target_hard_regs): Declare.
17793 (this_target_hard_regs): Declare as a variable or define as a macro.
17794 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
17795 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
17796 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
17797 (reg_class_size, reg_class_subclasses, reg_class_subunion)
17798 (reg_class_superunion, reg_names): Redefine as macros.
17799 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
17800 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
17801 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
17802 (reg_class_contents, reg_class_size, reg_class_subclasses)
17803 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
17804 (default_target_hard_regs): New variable
17805 (this_target_hard_regs, initial_call_really_used_regs)
17806 (initial_reg_alloc_order): New conditional variables.
17807 (initial_reg_names): New variable.
17808 (init_reg_sets): Assert that initial_call_really_used_regs,
17809 initial_reg_alloc_order and initial_reg_names
17810 are all the same size as their variable counterparts. Use them to
17811 initialize those counterparts.
17812 * target-globals.h (this_target_hard_regs): Declare.
17813 (target_globals): Add a hard_regs field.
17814 (restore_target_globals): Copy the hard_regs field to
17815 this_target_hard_regs.
17816 * target-globals.c: Include hard-reg-set.h.
17817 (default_target_globals): Initialize the hard_regs field.
17818 (save_target_globals): Likewise.
17819
17820 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17821
17822 * Makefile.in (target-globals.o): Depend on $(RTL_H).
17823 * rtl.h (target_rtl): New structure.
17824 (default_target_rtl): Declare.
17825 (this_target_rtl): Declare as a variable or define as a macro.
17826 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
17827 Redefine as macros.
17828 * emit-rtl.c (default_target_rtl): New variable.
17829 (this_target_rtl): New conditional variable.
17830 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
17831 (return_address_pointer_rtx): Delete.
17832 (initial_regno_reg_rtx): New macro.
17833 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
17834 (init_emit_regs): Likewise.
17835 * target-globals.h (this_target_rtl): Declare.
17836 (target_globals): Add a rtl field.
17837 (restore_target_globals): Copy the rtl field to this_target_rtl.
17838 * target-globals.c: Include rtl.h.
17839 (default_target_globals): Initialize the rtl field.
17840 (save_target_globals): Likewise.
17841
17842 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17843
17844 * Makefile.in (target-globals.o): Depend on $(REGS_H).
17845 * regs.h (target_reg_modes): New structure.
17846 (default_target_reg_modes): Declare.
17847 (this_target_reg_modes): Declare as a variable or define as a macro.
17848 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
17849 * reginfo.c (default_target_reg_modes): New variable.
17850 (this_target_reg_modes): New conditional variable.
17851 (hard_regno_nregs, reg_raw_mode): Delete.
17852 * target-globals.h (this_target_regs): Declare.
17853 (target_globals): Add a regs field.
17854 (restore_target_globals): Copy the regs field to this_target_regs.
17855 * target-globals.c: Include regs.h.
17856 (default_target_globals): Initialize the regs field.
17857 (save_target_globals): Likewise.
17858
17859 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
17860
17861 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
17862 * doc/tm.texi: Regenerate.
17863 * Makefile.in (OBJS-common): Add target-globals.o.
17864 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
17865 and target-globals.h.
17866 (target-globals.o): New rule.
17867 (GTFILES): Include $(srcdir)/target-globals.h.
17868 * defaults.h (SWITCHABLE_TARGET): Define.
17869 * gengtype.c (open_base_files): Add target-globals.h to the
17870 list of includes.
17871 * target-globals.h: New file.
17872 * target-globals.c: Likewise.
17873
17874 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
17875 * flags.h (target_flag_state): New structure.
17876 (default_target_flag_state): Declare.
17877 (this_target_flag_state): Declare as a variable or define as a macro.
17878 (align_loops_log): Redefine as a macro.
17879 (align_loops_max_skip, align_jumps_log): Likewise.
17880 (align_jumps_max_skip, align_labels_log): Likewise.
17881 (align_labels_max_skip, align_functions_log): Likewise.
17882 * toplev.c (default_target_flag_state): New variable.
17883 (this_target_flag_state): New conditional variable.
17884 (align_loops_log): Delete.
17885 (align_loops_max_skip, align_jumps_log): Likewise.
17886 (align_jumps_max_skip, align_labels_log): Likewise.
17887 (align_labels_max_skip, align_functions_log): Likewise.
17888 * target-globals.h (this_target_flag_state): Declare.
17889 (target_globals): Add a flag_state field.
17890 (restore_target_globals): Copy the flag_state field to
17891 this_target_flag_state.
17892 * target-globals.c: Include flags.h.
17893 (default_target_globals): Initialize the flag_state field.
17894 (save_target_globals): Likewise.
17895
17896 2010-07-12 Jie Zhang <jie@codesourcery.com>
17897
17898 * postreload.c (reg_symbol_ref[]): New.
17899 (move2add_use_add2_insn): New.
17900 (move2add_use_add3_insn): New.
17901 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
17902 (move2add_note_store): Likewise.
17903
17904 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
17905
17906 PR rtl-optimization/44752
17907 * genautomata.c (main): Don't emit an empty file even if there
17908 is no automaton.
17909
17910 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17911
17912 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
17913 ix86_solaris_return_in_memory.
17914 * config/i386-protos.h: Reflect this.
17915 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17916 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
17917 Move ...
17918 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
17919
17920 2010-07-12 Jie Zhang <jie@codesourcery.com>
17921
17922 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
17923 align the stack when it's going to be saved.
17924
17925 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17926
17927 PR pch/14940
17928 * config/host-solaris.c (mmap_fixed): New function.
17929 (sol_gt_pch_get_address): Use it.
17930 (sol_gt_pch_use_address): Likewise.
17931
17932 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17933
17934 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
17935 pentiumpro on Solaris 8 and 9/x86.
17936 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
17937 Document SSE/SSE2 support.
17938 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
17939
17940 2010-07-12 Andi Kleen <ak@linux.intel.com>
17941
17942 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
17943 instead of gcc_assert to print better error message for multiple
17944 prevailing defs.
17945
17946 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
17947
17948 * config/i386/i386.c (ix86_asm_output_function_label): Change format
17949 string placeholder from 0x%x to %#x.
17950 (ix86_code_end): Use putc to output '\n'.
17951 (ix86_print_operand) <case ';'>: Use putc to output ';'.
17952
17953 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
17954
17955 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
17956 in directive -export.
17957
17958 2010-07-10 Anatoly Sokolov <aesok@post.ru>
17959
17960 * reginfo.h (reg_classes_intersect_p): Change arguments type to
17961 reg_class_t.
17962 * rtl.h (reg_classes_intersect_p): Adjust prototype.
17963
17964 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17965 Remove macros.
17966 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
17967 rs6000_memory_move_cost): Remove
17968 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
17969 TARGET_MEMORY_MOVE_COST): Define.
17970 (rs6000_register_move_cost): Make static. Change arguments type from
17971 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
17972 (rs6000_memory_move_cost): Make static. Change arguments type from
17973 'enum reg_class' to reg_class_t.
17974
17975 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
17976
17977 PR middle-end/42505
17978 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
17979 lookup code into....
17980 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
17981 new functions.
17982 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
17983 * cfgloopanal.c (target_clobbered_regs): Define.
17984 (init_set_costs): Initialize target_clobbered_regs.
17985 (estimate_reg_pressure_cost): Add call_p argument. When true,
17986 adjust the number of available registers to exclude the
17987 call-clobbered registers.
17988 * cfgloop.h (target_clobbered_regs): Declare.
17989 (estimate_reg_pressure_cost): Adjust declaration.
17990 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
17991 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
17992 (determine_set_costs): Dump target_clobbered_regs.
17993 (loop_body_includes_call): New function.
17994 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
17995 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
17996 call_p flag through.
17997 (best_gain_for_invariant): Likewise.
17998 (find_invariants_to_move): Likewise.
17999 (move_single_loop_invariants): Likewise, using already-computed
18000 has_call field.
18001
18002 2010-07-10 Richard Guenther <rguenther@suse.de>
18003 Joern Rennecke <joern.rennecke@embecosm.com>
18004
18005 PR debug/44832
18006 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
18007 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
18008 unless they have DECL_IGNORED_P set.
18009
18010 2010-07-10 Richard Guenther <rguenther@suse.de>
18011
18012 PR lto/44889
18013 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
18014 helper function.
18015 (gimple_types_compatible_p): Similar to pointed-to
18016 types allow and merge a mix of complete and incomplete aggregate.
18017 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
18018 (iterative_hash_gimple_type): Adjust for that.
18019
18020 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
18021
18022 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
18023
18024 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
18025
18026 PR objc/44140
18027 * config/darwin.c (output_objc_section_asm_op): Save and restore
18028 section when outputting ObjC section list.
18029
18030 2010-07-09 Jan Hubicka <jh@suse.cz>
18031
18032 * lto-streamer-out.c (produce_symtab): Do not write alias
18033 cgraph/varpool nodes.
18034
18035 2010-07-09 Jan Hubicka <jh@suse.cz>
18036
18037 * tree-inline.c (declare_return_variable): Fix ICE while
18038 inlining DECL_BY_VALUE function not in SSA form
18039
18040 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
18041
18042 PR tree-optimization/44576
18043 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
18044 New. Pull out from is_loop_prefetching_profitable to implement
18045 the trip count to ahead ratio heuristic.
18046 (mem_ref_count_reasonable_p): New. Pull out from
18047 is_loop_prefetching_profitable to implement the instruction to
18048 memory reference ratio heuristic. Also consider not reasonable if
18049 the memory reference count is above a threshold (to avoid
18050 explosive compilation time.
18051 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
18052 is_loop_prefetching_profitable to implement the instruction to
18053 prefetch ratio heuristic.
18054 (is_loop_prefetching_profitable): Removed.
18055 (loop_prefetch_arrays): Distribute the cost analysis across the
18056 function to allow early exit of the prefetch analysis.
18057 is_loop_prefetching_profitable is splitted into three functions,
18058 with each one called as early as possible.
18059 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
18060 number of memory references in a loop is considered too many.
18061
18062 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
18063
18064 * reload.c (find_reloads): Don't clear badop if we have a winreg
18065 alternative, but not win, and the class only has fixed regs.
18066 * hard-reg-set.h (class_only_fixed_regs): Declare.
18067 * reginfo.c (class_only_fixed_regs): New array.
18068 (init_reg_sets_1): Initialize it.
18069 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
18070 discourage alternatives using the stack pointer.
18071
18072 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
18073
18074 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
18075
18076 * config/arm/arm.md (cbranchqi4): Fix array size.
18077 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
18078 calculating length.
18079
18080 2010-07-09 Richard Guenther <rguenther@suse.de>
18081
18082 * gimple.c (struct type_fixup_s): New struct and VEC type.
18083 (gimple_register_type_fixups): New static global.
18084 (gimple_queue_type_fixup): New function.
18085 (gimple_types_compatible_p): Queue type fixups instead of
18086 applying them here.
18087 (gimple_register_type): Apply queued fixups for the
18088 canonical type. Empty the type fixup queue.
18089
18090 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18091
18092 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
18093 * configure: Regenerate.
18094 * config.in: Ditto.
18095
18096 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18097 Denys Vlasenko <dvlasenk@redhat.com>
18098 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18099
18100 PR tree-optimization/28632
18101 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
18102 (extract_range_from_binary_expr): Further optimize
18103 BIT_AND_EXPR and BIT_IOR_EXPR.
18104
18105 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
18106
18107 * tree-if-conv.c (fold_or_predicates): New.
18108 (add_to_predicate_list): Call it.
18109
18110 2010-07-09 Richard Guenther <rguenther@suse.de>
18111
18112 PR middle-end/44890
18113 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
18114 if base is a pointer.
18115 * tree-cfg.c (verify_expr): Update MEM_REF checking.
18116
18117 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18118
18119 PR target/44877
18120 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
18121 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
18122 builtin mask for load/store builtins.
18123
18124 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18125
18126 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
18127 for "lock addl".
18128 * configure: Regenerate.
18129 * config/i386/i386.c (ix86_print_operand) <case ';'>:
18130 Remove TARGET_MACHO.
18131
18132 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
18133
18134 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
18135 default ISA flags.
18136 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
18137
18138 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
18139
18140 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
18141
18142 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
18143
18144 * config/picochip/picochip.md (commsTestPort): Emit more
18145 efficient sequence for tstport instruction.
18146
18147 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18148
18149 * config/i386/i386.c (ix86_veclib_handler): Make static.
18150
18151 2010-07-09 Richard Guenther <rguenther@suse.de>
18152
18153 PR tree-optimization/44852
18154 * tree-ssa-alias.c: Include toplev.h for exact_log2.
18155 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
18156 in MEM_REF.
18157 (indirect_refs_may_alias_p): Likewise.
18158 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
18159
18160 2010-07-09 Richard Guenther <rguenther@suse.de>
18161
18162 PR tree-optimization/44882
18163 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
18164 sets do conflict.
18165 (vectorizable_load): Likewise.
18166
18167 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
18168
18169 PR target/40657
18170 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
18171 All callers changed.
18172 Handle the case when we're called for the epilogue.
18173 (thumb_unexpanded_epilogue): Use it.
18174 (thumb1_expand_epilogue): Likewise.
18175
18176 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18177
18178 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
18179 both ranges are range_int_cst_p with non-negative minimum,
18180 try harder to derive smaller range.
18181
18182 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18183
18184 * genrecog.c: Include diagnostic-core.h before toplev.h.
18185 * genoutput.c: Likewise.
18186 * genextract.c: Likewise.
18187 * genautomata.c: Likewise.
18188 * genemit.c: Likewise.
18189 * genpeep.c: Likewise.
18190 * genattrtab.c: Likewise.
18191 * genconditions.c: Likewise.
18192 * genpreds.c: Likewise.
18193
18194 2010-07-08 Andi Kleen <ak@linux.intel.com>
18195
18196 * lto-section-in.c (lto_section_name): Add missing comma.
18197
18198 2010-07-08 Anatoly Sokolov <aesok@post.ru>
18199
18200 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
18201 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
18202 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
18203 (ia64_override_options): Rename to...
18204 (ia64_option_override): ... this one. Make static.
18205
18206 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18207
18208 PR middle-end/44843
18209 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
18210 pointed-to type of the offset in a MEM_REF to compute the alignment.
18211
18212 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
18213
18214 * final.c (final_scan_insn): Replace
18215 TARGET_UNWIND_INFO macro check by unwind_emit
18216 hook NULL check.
18217 * targhooks.c (default_unwind_emit): Removed.
18218 * targhooks.h (default_unwind_emit): Likewise.
18219 * target.def (unwind_emit): Set default value to NULL.
18220
18221 * config/i386/i386-protos.h (ix86_asm_output_function_label):
18222 New prototype.
18223 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
18224 for NULL fntype argument and allow 64-bit targets.
18225 (ix86_asm_output_function_label): New function.
18226 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
18227 (ix86_handle_fndecl_attribute): Likewise.
18228 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
18229 * doc/doc/tm.texi: Regenerated.
18230 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
18231 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
18232 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
18233 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
18234 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18235 * config/elfos.h: Likewise.
18236 * config/i386/cygming.h: Likewise.
18237 * config/netbsd-aout.h: Likewise.
18238 * config/openbsd.h: Likewise.
18239 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
18240 by ix86_asm_output_function_label function call.
18241 * varasm.c (assemble_start_function): Use
18242 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18243
18244 2010-07-08 Jan Hubicka <jh@suse.cz>
18245
18246 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
18247 New function.
18248 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
18249 Declare.
18250 * ipa-cp.c (ipcp_estimate_growth): Use it.
18251 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
18252 Likewise.
18253
18254 2010-07-08 Jan Hubicka <jh@suse.cz>
18255
18256 * tree-inline.c (declare_return_variable): Allocate annotation for new
18257 temporary.
18258
18259 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18260
18261 PR tree-optimization/44710
18262 * tree-if-conv.c (parse_predicate): New.
18263 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
18264 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
18265
18266 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18267
18268 * common.opt (ftree-loop-if-convert): New flag.
18269 * doc/invoke.texi (ftree-loop-if-convert): Documented.
18270 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
18271 when flag_tree_loop_if_convert is set.
18272
18273 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
18274
18275 * config/i386/i386.c: Use short syntax for function calls
18276 through function pointers.
18277 * config/i386/i386.md: Ditto.
18278
18279 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18280
18281 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
18282
18283 2010-07-08 Richard Guenther <rguenther@suse.de>
18284
18285 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
18286 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
18287
18288 2010-07-08 Jakub Jelinek <jakub@redhat.com>
18289
18290 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
18291 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
18292 (loc_list_from_tree): Likewise.
18293 (output_loc_operands): Handle outputting DW_OP_const[48]u
18294 with loc->dtprel set.
18295 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
18296
18297 2010-07-08 Jan Hubicka <jh@suse.cz>
18298
18299 * ipa.c: Include pointer-set.h
18300 (cgraph_externally_visible_p): New attribute ALIASED;
18301 when in LTO, hidden symbols are local unless they are aliased.
18302 (function_and_variable_visibility): Compute aliased nodes;
18303 handle LTO and hidden symbol on functions and vars.
18304 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
18305 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
18306
18307 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18308
18309 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18310 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18311 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18312 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18313 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18314 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
18315 (ix86_gen_probe_stack_range): Likewise.
18316 (override_options): Set them.
18317 (ix86_target_stack_probe): New function.
18318 (ix86_compute_frame_layout): Force use of push instructions to
18319 save registers if stack checking with probes is enabled.
18320 (get_scratch_register_on_entry): New function.
18321 (release_scratch_register_on_entry): Likewise.
18322 (ix86_adjust_stack_and_probe): Likewise.
18323 (output_adjust_stack_and_probe): Likewise.
18324 (ix86_emit_probe_stack_range): Likewise.
18325 (output_probe_stack_range): Likewise.
18326 (ix86_expand_prologue): Emit stack checking code if static built-in
18327 stack checking is enabled.
18328 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
18329 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
18330 (output_adjust_stack_and_probe): Likewise.
18331 (output_probe_stack_range): Likewise.
18332 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18333 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
18334 TARGET_STACK_PROBE.
18335 (allocate_stack_worker_64): Likewise.
18336 (allocate_stack): Likewise.
18337 (adjust_stack_and_probe): New insn.
18338 (probe_stack_range): Likewise.
18339
18340 2010-07-08 Richard Guenther <rguenther@suse.de>
18341
18342 PR tree-optimization/44831
18343 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
18344 a MEM_REF preserving TBAA info of the original dereference.
18345 Dereference the original pointer if the address is not invariant.
18346 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
18347 at least one invariant address that we are going to dereference.
18348
18349 2010-07-08 Richard Guenther <rguenther@suse.de>
18350
18351 PR tree-optimization/44861
18352 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
18353 information when building MEM_REFs.
18354 (vectorizable_load): Likewise.
18355 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18356
18357 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18358
18359 * config/sol2-c.c: Do not include diagnostic-core.h.
18360
18361 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18362
18363 PR bootstrap/44768
18364 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
18365 with respect to current_function_decl. Pass decl of the function.
18366 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
18367 * ipa-inline.c (compute_inline_parameters): Pass decl to
18368 estimated_stack_frame_size.
18369
18370 2010-07-08 Richard Guenther <rguenther@suse.de>
18371
18372 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18373 New function.
18374 (valueize_refs): Call it.
18375
18376 2010-07-08 Richard Guenther <rguenther@suse.de>
18377
18378 PR rtl-optimization/44838
18379 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
18380 SSA form do not use pointer equivalence.
18381
18382 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18383
18384 * dwarf2out.c (AT_linkage_name): Delete.
18385 (add_linkage_attr): New function.
18386 (add_linkage_name): Call it to emit the linkage attribute.
18387 (dwarf2out_finish): Likewise.
18388 (move_linkage_attr): Explicitly accept both attribute variants.
18389
18390 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18391
18392 * toplev.h: Do not include diagnostic-core.h.
18393 Include diagnostic-core.h in every file that includes toplev.h.
18394 * c-tree.h: Do not include toplev.h.
18395 * pretty-print.h: Update comment.
18396 * Makefile.in: Update dependencies.
18397 * alias.c: Include diagnostic-core.h in every file that includes
18398 toplev.h.
18399 * attribs.c: Likewise.
18400 * auto-inc-dec.c: Likewise.
18401 * bb-reorder.c: Likewise.
18402 * bt-load.c: Likewise.
18403 * caller-save.c: Likewise.
18404 * calls.c: Likewise.
18405 * cfg.c: Likewise.
18406 * cfganal.c: Likewise.
18407 * cfgbuild.c: Likewise.
18408 * cfgcleanup.c: Likewise.
18409 * cfghooks.c: Likewise.
18410 * cfgloop.c: Likewise.
18411 * combine.c: Likewise.
18412 * config/alpha/alpha.c: Likewise.
18413 * config/arc/arc.c: Likewise.
18414 * config/arm/arm.c: Likewise.
18415 * config/arm/pe.c: Likewise.
18416 * config/avr/avr.c: Likewise.
18417 * config/bfin/bfin.c: Likewise.
18418 * config/cris/cris.c: Likewise.
18419 * config/crx/crx.c: Likewise.
18420 * config/darwin-c.c: Likewise.
18421 * config/darwin.c: Likewise.
18422 * config/fr30/fr30.c: Likewise.
18423 * config/frv/frv.c: Likewise.
18424 * config/h8300/h8300.c: Likewise.
18425 * config/host-darwin.c: Likewise.
18426 * config/i386/i386.c: Likewise.
18427 * config/i386/netware.c: Likewise.
18428 * config/i386/nwld.c: Likewise.
18429 * config/i386/winnt-cxx.c: Likewise.
18430 * config/i386/winnt-stubs.c: Likewise.
18431 * config/i386/winnt.c: Likewise.
18432 * config/ia64/ia64-c.c: Likewise.
18433 * config/ia64/ia64.c: Likewise.
18434 * config/iq2000/iq2000.c: Likewise.
18435 * config/lm32/lm32.c: Likewise.
18436 * config/m32c/m32c-pragma.c: Likewise.
18437 * config/m32c/m32c.c: Likewise.
18438 * config/m32r/m32r.c: Likewise.
18439 * config/m68hc11/m68hc11.c: Likewise.
18440 * config/m68k/m68k.c: Likewise.
18441 * config/mcore/mcore.c: Likewise.
18442 * config/mep/mep-pragma.c: Likewise.
18443 * config/mep/mep.c: Likewise.
18444 * config/mmix/mmix.c: Likewise.
18445 * config/mn10300/mn10300.c: Likewise.
18446 * config/moxie/moxie.c: Likewise.
18447 * config/pa/pa.c: Likewise.
18448 * config/pdp11/pdp11.c: Likewise.
18449 * config/picochip/picochip.c: Likewise.
18450 * config/rs6000/rs6000-c.c: Likewise.
18451 * config/rs6000/rs6000.c: Likewise.
18452 * config/rx/rx.c: Likewise.
18453 * config/s390/s390.c: Likewise.
18454 * config/score/score.c: Likewise.
18455 * config/score/score3.c: Likewise.
18456 * config/score/score7.c: Likewise.
18457 * config/sh/sh.c: Likewise.
18458 * config/sh/symbian-base.c: Likewise.
18459 * config/sh/symbian-c.c: Likewise.
18460 * config/sh/symbian-cxx.c: Likewise.
18461 * config/sol2-c.c: Likewise.
18462 * config/sol2.c: Likewise.
18463 * config/sparc/sparc.c: Likewise.
18464 * config/spu/spu.c: Likewise.
18465 * config/stormy16/stormy16.c: Likewise.
18466 * config/v850/v850-c.c: Likewise.
18467 * config/v850/v850.c: Likewise.
18468 * config/vax/vax.c: Likewise.
18469 * config/vxworks.c: Likewise.
18470 * config/xtensa/xtensa.c: Likewise.
18471 * convert.c: Likewise.
18472 * cse.c: Likewise.
18473 * cselib.c: Likewise.
18474 * dbgcnt.c: Likewise.
18475 * dbxout.c: Likewise.
18476 * ddg.c: Likewise.
18477 * dominance.c: Likewise.
18478 * emit-rtl.c: Likewise.
18479 * explow.c: Likewise.
18480 * expmed.c: Likewise.
18481 * fixed-value.c: Likewise.
18482 * fold-const.c: Likewise.
18483 * fwprop.c: Likewise.
18484 * gcse.c: Likewise.
18485 * ggc-common.c: Likewise.
18486 * ggc-page.c: Likewise.
18487 * ggc-zone.c: Likewise.
18488 * gimple-low.c: Likewise.
18489 * gimplify.c: Likewise.
18490 * graph.c: Likewise.
18491 * haifa-sched.c: Likewise.
18492 * ifcvt.c: Likewise.
18493 * implicit-zee.c: Likewise.
18494 * integrate.c: Likewise.
18495 * ira-build.c: Likewise.
18496 * ira-color.c: Likewise.
18497 * ira-conflicts.c: Likewise.
18498 * ira-costs.c: Likewise.
18499 * ira-lives.c: Likewise.
18500 * ira.c: Likewise.
18501 * lists.c: Likewise.
18502 * loop-doloop.c: Likewise.
18503 * loop-iv.c: Likewise.
18504 * lto-opts.c: Likewise.
18505 * lto-symtab.c: Likewise.
18506 * main.c: Likewise.
18507 * modulo-sched.c: Likewise.
18508 * optabs.c: Likewise.
18509 * params.c: Likewise.
18510 * plugin.c: Likewise.
18511 * postreload-gcse.c: Likewise.
18512 * postreload.c: Likewise.
18513 * predict.c: Likewise.
18514 * profile.c: Likewise.
18515 * real.c: Likewise.
18516 * regcprop.c: Likewise.
18517 * reginfo.c: Likewise.
18518 * regmove.c: Likewise.
18519 * reorg.c: Likewise.
18520 * resource.c: Likewise.
18521 * rtl.c: Likewise.
18522 * rtlanal.c: Likewise.
18523 * sched-deps.c: Likewise.
18524 * sched-ebb.c: Likewise.
18525 * sched-rgn.c: Likewise.
18526 * sdbout.c: Likewise.
18527 * sel-sched-dump.c: Likewise.
18528 * sel-sched-ir.c: Likewise.
18529 * simplify-rtx.c: Likewise.
18530 * stmt.c: Likewise.
18531 * stor-layout.c: Likewise.
18532 * store-motion.c: Likewise.
18533 * targhooks.c: Likewise.
18534 * tree-cfg.c: Likewise.
18535 * tree-cfgcleanup.c: Likewise.
18536 * tree-dump.c: Likewise.
18537 * tree-eh.c: Likewise.
18538 * tree-inline.c: Likewise.
18539 * tree-nomudflap.c: Likewise.
18540 * tree-object-size.c: Likewise.
18541 * tree-optimize.c: Likewise.
18542 * tree-outof-ssa.c: Likewise.
18543 * tree-phinodes.c: Likewise.
18544 * tree-profile.c: Likewise.
18545 * tree-ssa-ccp.c: Likewise.
18546 * tree-ssa-coalesce.c: Likewise.
18547 * tree-ssa-live.c: Likewise.
18548 * tree-ssa-loop-niter.c: Likewise.
18549 * tree-ssa-loop-prefetch.c: Likewise.
18550 * tree-ssa-loop.c: Likewise.
18551 * tree-ssa-structalias.c: Likewise.
18552 * tree-ssa-uninit.c: Likewise.
18553 * tree-ssa.c: Likewise.
18554 * tree-vect-data-refs.c: Likewise.
18555 * tree-vect-loop-manip.c: Likewise.
18556 * tree-vect-loop.c: Likewise.
18557 * tree-vect-patterns.c: Likewise.
18558 * tree-vect-stmts.c: Likewise.
18559 * tree-vrp.c: Likewise.
18560 * varasm.c: Likewise.
18561 * vec.c: Likewise.
18562 * web.c: Likewise.
18563 * xcoffout.c: Likewise.
18564
18565 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
18566
18567 * gengtype.c (write_field_root): New function.
18568 (write_root): Use it.
18569
18570 2010-07-07 Wei Guozhi <carrot@google.com>
18571
18572 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18573 of lowest bits to lshift/compare): Add a missing line.
18574
18575 2010-07-07 Wei Guozhi <carrot@google.com>
18576
18577 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
18578 of lowest bits to lshift/compare): New.
18579
18580 2010-07-07 Tom Tromey <tromey@redhat.com>
18581
18582 * doc/tm.texi: Update.
18583 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
18584 Add @hook.
18585 * target.def (want_debug_pub_sections): New hook.
18586 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
18587 * dwarf2out.c (add_pubname_string): Check
18588 targetm.want_debug_pub_sections.
18589 (add_pubname): Likewise.
18590 (add_pubtype): Likewise.
18591
18592 2010-07-07 Jie Zhang <jie@codesourcery.com>
18593
18594 * genautomata.c (output_automata_list_min_issue_delay_code):
18595 Correctly decompress min_issue_delay.
18596
18597 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
18598
18599 PR rtl-optimization/44404
18600 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
18601 possible, use reg_overlap_mentioned_p instead.
18602
18603 2010-07-07 Duncan Sands <baldrick@free.fr>
18604
18605 PR middle-end/41355
18606 * tree.c (build_function_type_skip_args): Copy the original type using
18607 build_distinct_type_copy rather than copy_node.
18608
18609 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
18610
18611 PR target/44850
18612 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
18613 revision 161876.
18614 (ix86_expand_prologue): Likewise.
18615 (ix86_handle_fndecl_attribute): Likewise.
18616 (ix86_asm_declare_function_name): Likewise.
18617 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18618 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18619 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
18620 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
18621 * doc/extend.texi: Likewise.
18622
18623 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
18624
18625 PR target/44844
18626 * config/i386/i386.md (rdrand<mode>): Changed to expand to
18627 retry if the carry flag isn't valid.
18628 (rdrand<mode>_1): New.
18629
18630 2010-07-07 Richard Guenther <rguenther@suse.de>
18631
18632 PR middle-end/44790
18633 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
18634 for expanding the constant offset for MEM_REFs.
18635
18636 2010-07-07 Richard Guenther <rguenther@suse.de>
18637
18638 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
18639 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
18640 * gimple.h (is_gimple_operand): Remove.
18641 * gimple.c (is_gimple_operand): Likewise.
18642 (walk_gimple_op): Fix wi->val_only setting for calls.
18643 * tree-cfg.c (verify_gimple_call): Fix argument validation.
18644 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
18645 invalid gimple calls.
18646
18647 2010-07-06 Jan Hubicka <jh@suse.cz>
18648
18649 * lto-cgraph.c (output_cgraph): Add missing declaration.
18650
18651 2010-07-06 Jan Hubicka <jh@suse.cz>
18652
18653 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
18654 partition.
18655
18656 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
18657
18658 * doc/gimple.texi (GIMPLE_DEBUG): Document.
18659 * doc/rtl.texi (Debug Information): New node.
18660 (NOTE_INSN_VAR_LOCATION): Document.
18661 (debug_insn): Likewise.
18662 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
18663
18664 2010-07-07 Jan Hubicka <jh@suse.cz>
18665
18666 With parts by Richard Guenther.
18667
18668 PR middle-end/44813
18669 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
18670 for functions passed by reference.
18671 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
18672 in memory when passed by reference.
18673 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
18674 beggining.
18675 * ipa-split.c (split_function): Cleanup way return value is passed;
18676 handle SSA DECL_BY_REFERENCE retvals.
18677 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
18678 DECL_BY_REFERENCE is set.
18679 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
18680 find_what_p_points_to): Handle RESULT_DECL.
18681 * tree-inline.c (declare_return_variable): Get new entry_block argument;
18682 when passing by reference ensure that RESULT_DECL is gimple_val.
18683 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
18684 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
18685
18686 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
18687
18688 PR rtl-optimization/44787
18689 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
18690 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
18691
18692 2010-07-06 Jan Hubicka <jh@suse.cz>
18693
18694 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
18695 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
18696 with body can prevail.
18697 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
18698 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
18699 * cgraph.c (cgraph_get_node_or_alias): New function.
18700 * cgraph.h (cgraph_get_node_or_alias): Declare.
18701
18702 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
18703
18704 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
18705 support.
18706 (ix86_expand_prologue): Likewise.
18707 (ix86_handle_fndecl_attribute): Likewise.
18708 (ix86_asm_declare_function_name): New function for
18709 ASM_DECLARE_FUNCTION_NAME.
18710 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
18711 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
18712 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
18713 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
18714 * doc/extend.texi: Adjust documentation about ms_hook_prologue
18715 attribute.
18716
18717 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18718
18719 * config/i386/i386.md (immediate_operand): New mode attribute.
18720
18721 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
18722 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
18723 using P mode iterator.
18724 (pro_epilogue_adjust_stack_di_2): Rename from
18725 pro_epilogue_adjust_stack_rex64_2.
18726
18727 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
18728
18729 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18730
18731 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
18732 through gen_mov_insv_1 function pointer.
18733 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
18734 gen_truncxf<mode>2 through gen_truncxf function pointer.
18735 (remainder<mode>3): Ditto.
18736 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
18737 (allocate_stack): Call gen_allocate_stack_worker_64 or
18738 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
18739 function pointer.
18740 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
18741 function pointer.
18742
18743 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
18744
18745 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
18746 operand constraint instead of <r><i>m.
18747
18748 2010-07-06 Richard Guenther <rguenther@suse.de>
18749
18750 PR middle-end/44828
18751 * convert.c (convert_to_integer): Watch out for overflowing
18752 MULT_EXPR as well.
18753
18754 2010-07-05 Jan Hubicka <jh@suse.cz>
18755
18756 * lto-streamer.c (write_symbol_vec): Rename to ...
18757 (write_symbol) ... this one; write only symbol given and when
18758 present in cache. Sanity check that what is defined is present
18759 in cgraph/varpool with body/finalized decl.
18760 (write_symbols_of_kind): Remove.
18761 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
18762 pairs to produce symtab.
18763 (produce_asm_for_decls): Update call of produce_symtab; don't do so
18764 when doing WPA streaming.
18765
18766 2010-07-05 Jan Hubicka <jh@suse.cz>
18767
18768 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
18769 function is still available to fold into.
18770
18771 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18772
18773 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
18774 * function.h (struct_function): Change type of local_decls field
18775 to a VEC.
18776 (add_local_decl): New function.
18777 (FOR_EACH_LOCAL_DECL): New macro.
18778 * cfgexpand.c (init_vars_expansion): Adjust for new type of
18779 cfun->local_decls.
18780 (estimated_stack_frame_size): Likewise.
18781 (expand_used_vars): Likewise.
18782 * cgraphbuild.c (build_cgraph_edges): Likewise.
18783 * function.c (instantiate_decls_1): Likewise.
18784 * ipa-struct-reorg.c (build_data_structure): Likewise.
18785 * ipa-type-escape.c (analyze_function): Likewise.
18786 * lto-streamer-in.c (input_function): Likewise.
18787 * lto-streamer-out.c (output_function): Likewise.
18788 * tree-ssa-live.c (remove_unused_locals): Likewise.
18789 * tree.c (free_lang_data_in_decl): Likewise.
18790 (find_decls_types_in_node): Likewise.
18791 * omp-low.c (remove_exit_barrier): Likewise.
18792 (expand_omp_taskreg): Likewise.
18793 (list2chain): Rename to...
18794 (vec2chain): ...this. Adjust.
18795 * cgraphunit.c (assemble_thunk): Call add_local_decl.
18796 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
18797 * gimple-low.c (record_vars_into): Likewise.
18798 * tree-inline.c (remap_decls): Likewise.
18799 (declare_return_variable): Likewise.
18800 (declare_inline_vars): Likewise.
18801 (copy_forbidden): Adjust for new type of cfun->local_decls.
18802 (add_local_variables): New function.
18803 (expand_call_inline): Call it.
18804 (tree_function_versioning): Likewise.
18805
18806 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
18807
18808 AVX Programming Reference (June, 2010)
18809 * config/i386/cpuid.h (bit_F16C): New.
18810 (bit_RDRND): Likewise.
18811 (bit_FSGSBASE): Likewise.
18812
18813 * config/i386/i386-builtin-types.def: Add
18814 "DEF_FUNCTION_TYPE (UINT16)", function types for
18815 float16 <-> float conversions and
18816 "DEF_FUNCTION_TYPE (VOID, UINT64)".
18817
18818 * config/i386/i386-c.c (ix86_target_macros_internal): Support
18819 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
18820 OPTION_MASK_ISA_F16C.
18821
18822 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
18823 (OPTION_MASK_ISA_RDRND_SET): Likewise.
18824 (OPTION_MASK_ISA_F16C_SET): Likewise.
18825 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
18826 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
18827 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
18828 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
18829 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
18830 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
18831 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
18832 (override_options): Handle them.
18833 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
18834 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
18835 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
18836 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
18837 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
18838 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
18839 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
18840 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
18841 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
18842 (bdesc_args): Likewise.
18843 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
18844 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
18845 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
18846 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
18847 Handle non-memory store.
18848
18849 * config/i386/i386.h (TARGET_FSGSBASE): New.
18850 (TARGET_RDRND): Likewise.
18851 (TARGET_F12C): Likewise.
18852
18853 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
18854 (UNSPEC_VCVTPS2PH): Likewise.
18855 (UNSPECV_RDFSBASE): Likewise.
18856 (UNSPECV_RDGSBASE): Likewise.
18857 (UNSPECV_WRFSBASE): Likewise.
18858 (UNSPECV_WRGSBASE): Likewise.
18859 (UNSPECV_RDRAND): Likewise.
18860 (rdfsbase<mode>): Likewise.
18861 (rdgsbase<mode>): Likewise.
18862 (wrfsbase<mode>): Likewise.
18863 (wrgsbase<mode>): Likewise.
18864 (rdrand<mode>): Likewise.
18865
18866 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
18867
18868 * config/i386/immintrin.h (_rdrand_u16): New.
18869 (_rdrand_u32): Likewise.
18870 (_readfsbase_u32): Likewise.
18871 (_readfsbase_u64): Likewise.
18872 (_readgsbase_u32): Likewise.
18873 (_readgsbase_u64): Likewise.
18874 (_writefsbase_u32): Likewise.
18875 (_writefsbase_u64): Likewise.
18876 (_writegsbase_u32): Likewise.
18877 (_writegsbase_u64): Likewise.
18878 (_rdrand_u64): Likewise.
18879 (_cvtsh_ss): Likewise.
18880 (_mm_cvtph_ps): Likewise.
18881 (_mm256_cvtph_ps): Likewise.
18882 (_cvtss_sh): Likewise.
18883 (_mm_cvtps_ph): Likewise.
18884 (_mm256_cvtps_ph): Likewise.
18885
18886 * config/i386/sse.md (vcvtph2ps): New.
18887 (*vcvtph2ps_load): Likewise.
18888 (vcvtph2ps256): Likewise.
18889 (vcvtps2ph): Likewise.
18890 (*vcvtps2ph): Likewise.
18891 (*vcvtps2ph_store): Likewise.
18892 (vcvtps2ph256): Likewise.
18893
18894 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
18895
18896 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
18897
18898 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
18899
18900 PR bootstrap/44512
18901 * genenums.c (main): Output include of insn-constants.h
18902 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
18903
18904 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
18905
18906 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
18907 (override_options): Initialize it.
18908 (ix86_expand_prologue): Use it.
18909
18910 2010-07-05 Jakub Jelinek <jakub@redhat.com>
18911
18912 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
18913
18914 2010-07-05 Anatoly Sokolov <aesok@post.ru>
18915
18916 * double-int.h (fit_double_type): Remove declaration.
18917 * double-int.c (fit_double_type): Remove function.
18918 * tree.h (int_fits_type_p): Adjust prototype.
18919 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
18920 instead of fit_double_type.
18921 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
18922 instead of fit_double_type and build_int_cst_wide.
18923 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
18924 instead of fit_double_type and build_int_cst_wide.
18925 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
18926 of fit_double_type.
18927
18928 2010-07-05 Jan Hubicka <jh@suse.cz>
18929
18930 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
18931 in_other_partition.
18932 * lto-cgraph.c (referenced_from_other_partition_p,
18933 reachable_from_other_partition_p): Use in_other_partition flags.
18934 (output_node, output_varpool_node): COMDAT nodes always have private
18935 copies and thus are never used from other partition.
18936
18937 2010-07-05 Anatoly Sokolov <aesok@post.ru>
18938
18939 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18940 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
18941 * config/ia64/ia64.c Include reload.h.
18942 (ia64_memory_move_cost): New function.
18943 (TARGET_MEMORY_MOVE_COST): Define.
18944 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
18945 memory_move_cost.
18946
18947 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
18948
18949 PR middle-end/42505
18950 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
18951 comments about cost model.
18952 (try_add_cand_for): Add second strategy for choosing initial set
18953 based on original IVs, controlled by ORIGINALP argument.
18954 (get_initial_solution): Add ORIGINALP argument.
18955 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
18956 (find_optimal_iv_set): Try two different strategies for choosing
18957 the IV set, and return the one with lower cost.
18958
18959 2010-07-05 Richard Guenther <rguenther@suse.de>
18960
18961 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
18962
18963 2010-07-05 Richard Guenther <rguenther@suse.de>
18964
18965 * tree.c (reference_alias_ptr_type): New function.
18966 * tree.h (reference_alias_ptr_type): Declare.
18967 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
18968 allow non-TARGET_MEM_REF new refs.
18969 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
18970 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
18971 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
18972 (create_mem_ref): Get alias pointer type. Adjust calls to
18973 create_mem_ref_raw.
18974 (maybe_fold_tmr): Likewise.
18975 * tree-flow.h (create_mem_ref): Adjust prototype.
18976
18977 2010-07-05 Jakub Jelinek <jakub@redhat.com>
18978
18979 PR c++/44808
18980 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
18981 *from_p is VAR_DECL.
18982
18983 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18984
18985 * tree.h (build_call_list): Remove.
18986 * tree.c (build_call_list): Remove.
18987
18988 2010-07-05 Richard Guenther <rguenther@suse.de>
18989
18990 * double-int.h (double_int_sub): Declare.
18991 * double-int.c (double_int_sub): New function.
18992 * dwarf2out.c (field_byte_offset): Use it.
18993 * fixed-value.c (do_fixed_add): Likewise.
18994 (do_fixed_multiply): Likewise.
18995 (do_fixed_divide): Likewise.
18996 * tree-predcom.c (add_ref_to_chain): Likewise.
18997 (determine_roots_comp): Likewise.
18998 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18999
19000 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
19001
19002 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
19003 implementations.
19004
19005 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
19006
19007 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
19008 * arm-modes.def (CC_NOTB): Don't define.
19009 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
19010 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
19011 (LTUGEU): New code_iterator.
19012 (cnb, optab): New corresponding code_attrs.
19013 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
19014 to canonical form. Operands 1 and 2 are commutative. Parametrize
19015 using LTUGEU.
19016 (addsi3_carryin_shift_<optab>): Likewise.
19017 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
19018 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
19019 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
19020 (subsi3_compare): Renamed from subsi3_compare0_c.
19021 Change CC_NOTB to CC.
19022 (arm_subsi3_insn): Allow constants for operand 0.
19023 (compare_scc peephole for eq case): New.
19024 (compare_scc splitters): Change CC_NOTB to CC.
19025
19026 2010-07-05 Richard Guenther <rguenther@suse.de>
19027
19028 * tree-ssa-loop-im.c (for_each_index): Do not handle
19029 ALIGN_INDIRECT_REF.
19030 (gen_lsm_tmp_name): Likewise.
19031 * tree-dump.c (dequeue_and_dump): Likewise.
19032 * tree-pretty-print.c (dump_generic_node): Likewise.
19033 (op_code_prio): Likewise.
19034 (op_symbol_code): Likewise.
19035 * tree.c (staticp): Likewise.
19036 (build1_stat): Likewise.
19037 * tree.h (INDIRECT_REF_P): Likewise.
19038 * fold-const.c (maybe_lvalue_p): Likewise.
19039 (operand_equal_p): Likewise.
19040 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19041 (ao_ref_init_from_vn_reference): Likewise.
19042 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
19043 (find_interesting_uses_address): Likewise.
19044 * dwarf2out.c (loc_list_from_tree): Likewise.
19045 * gimplify.c (gimplify_expr): Likewise.
19046 * tree-eh.c (tree_could_trap_p): Likewise.
19047 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19048 * cfgexpand.c (expand_debug_expr): Likewise.
19049 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19050 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
19051 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
19052 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
19053 * tree-ssa-operands.c (get_expr_operands): Likewise.
19054 * expr.c (safe_from_p): Likewise.
19055 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
19056 * tree-vect-data-refs.c (vect_setup_realignment): Build
19057 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
19058 * tree-vect-stmts.c (vectorizable_load): Likewise.
19059 * tree.def (ALIGN_INDIRECT_REF): Remove.
19060
19061 2010-07-05 Richard Guenther <rguenther@suse.de>
19062
19063 PR tree-optimization/44784
19064 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
19065 for inserted stmts.
19066 (find_or_generate_expression): Fix SCCVN insertion check.
19067
19068 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
19069
19070 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
19071 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
19072 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
19073 directives.
19074
19075 2010-07-05 Ira Rosen <irar@il.ibm.com>
19076
19077 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
19078 statements that are not vectorized.
19079 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
19080 in INSIDE_COST.
19081
19082 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
19083
19084 PR bootstrap/44820
19085 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
19086
19087 2010-07-05 Richard Guenther <rguenther@suse.de>
19088
19089 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
19090 RESULT_DECLs properly.
19091
19092 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
19093
19094 PR rtl-optimization/44695
19095 * config/i386/i386.md (extract_code): Removed.
19096 (<u>divmodqi4): Likewise.
19097 (divmodqi4): New.
19098 (udivmodqi4): Likewise.
19099 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
19100 (udivmodhiqi3): Likewise.
19101
19102 2010-07-04 Jan Hubicka <jh@suse.cz>
19103
19104 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
19105
19106 2010-07-04 Jan Hubicka <jh@suse.cz>
19107
19108 * cgraphunit.c (init_cgraph): Only initialize dump file if it
19109 is not already initialized.
19110
19111 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19112
19113 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
19114 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
19115 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
19116 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
19117 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
19118 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
19119 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
19120 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
19121 (sync_new_nand_optab): Redefine as macros.
19122 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
19123 Delete.
19124 (direct_optab_index): New enum.
19125 (direct_optab_d): New structure.
19126 (direct_optab): New typedef.
19127 (direct_optab_table): Declare.
19128 (direct_optab_handler, set_direct_optab_handler): New functions.
19129 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
19130 (sync_lock_release_optab): New macros.
19131 * optabs.c (direct_optab_table): New variable.
19132 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
19133 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
19134 cmpstr_optab and cmpstrn_optab.
19135 (emit_conditional_move): Likewise for movcc_optab.
19136 (can_conditionally_move_p): Likewise for movcc_gen_code.
19137 (init_insn_codes): Clear direct_optab_table.
19138 (init_optabs): Don't initialize the new "direct optabs" here.
19139 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
19140 vcond_gen_code.
19141 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
19142 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
19143 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
19144 (expand_sync_operation): Likewise other sync_*_optabs.
19145 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
19146 to sync_compare_and_swap_optab.
19147 (expand_sync_lock_test_and_set): Use direct_optab_handler for
19148 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
19149 to the names of both.
19150 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
19151 cmpstr_optab and cmpstrn_optab.
19152 (expand_builtin_lock_release): Likewise sync_lock_release.
19153 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
19154 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
19155 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
19156 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
19157 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
19158 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
19159 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
19160 (sync_lock_test_and_set, sync_lock_release): Delete.
19161 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
19162 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
19163 * genopinit.c (optabs): Use set_direct_optab_handler for the new
19164 macro optabs.
19165 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
19166 the "optab" local variable. Use direct_optab_handler for optab and
19167 sync_compare_and_swap_optab.
19168 * reload1.c (reload_in_optab, reload_out_optab): Delete.
19169 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
19170 reload_in_optab and reload_out_optab.
19171 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19172 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
19173 * config/pa/pa.c (pa_secondary_reload): Likewise.
19174 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
19175 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
19176 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
19177 (VMSupportsCS8_builtin): Likewise.
19178
19179 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19180
19181 * optabs.h (optab_handlers): Change type of insn_code to int.
19182 (optab_handler, set_optab_handler, convert_optab_handler)
19183 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
19184 CODE_FOR_nothing".
19185 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
19186 (init_insn_codes): Zero both the above arrays.
19187 (init_optabs): Never call init_insn_codes first time around.
19188
19189 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19190
19191 * optabs.h (optab_handler, convert_optab_handler): Turn into
19192 inline functions that return an insn code.
19193 (set_optab_handler, set_convert_optab_handler): New functions.
19194 * builtins.c: Replace optab_handler(X)->insn_code with
19195 optab_handler or set_optab_handler thoughout. Likewise
19196 convert_optab_handler(X)->insn_code with convert_optab_handler
19197 and set_convert_optab_handler.
19198 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
19199 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
19200 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
19201 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
19202 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
19203 config/spu/spu.c: Likewise.
19204
19205 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
19206
19207 PR target/44531
19208 * config.gcc (sh*-*-*): Use regular expressions instead of
19209 the 'i' modifier for sed substitutions.
19210
19211 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
19212
19213 * gimple.c (gimple_body): Comments added.
19214
19215 2010-07-04 Richard Guenther <rguenther@suse.de>
19216
19217 PR middle-end/44809
19218 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
19219 of an INDIRECT_REF.
19220
19221 2010-07-04 Richard Guenther <rguenther@suse.de>
19222
19223 PR tree-optimization/44479
19224 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
19225 extra SSA name copy statements which preserves points-to
19226 information.
19227 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19228 Copy points-to information for all pointers. Properly handle
19229 MEM_REFs.
19230 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
19231 copy statements.
19232 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
19233 dependency.
19234
19235 2010-07-04 Richard Guenther <rguenther@suse.de>
19236
19237 PR middle-end/44785
19238 * tree-inline.c (initialize_inlined_parameters): Do not
19239 re-use pointer-map slot over remap_type call.
19240
19241 2010-07-04 Richard Guenther <rguenther@suse.de>
19242
19243 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
19244
19245 2010-07-04 Richard Guenther <rguenther@suse.de>
19246
19247 PR tree-optimization/44656
19248 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
19249 again after value-replacing in the defintions lhs.
19250
19251 2010-07-04 Ira Rosen <irar@il.ibm.com>
19252 Revital Eres <eres@il.ibm.com>
19253
19254 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
19255 Document new arguments.
19256 * doc/tm.texi: Regenerate.
19257 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
19258 Handle unaligned store.
19259 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
19260 * target.def (builtin_vectorization_cost): Add new arguments.
19261 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
19262 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
19263 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
19264 (vect_vfa_segment_size): Fix indentation.
19265 * tree-vectorizer.h (struct _vect_peel_info): New.
19266 (struct _vect_peel_extended_info): New.
19267 (struct _loop_vec_info): Add new field for peeling hash table and a
19268 macro for its access.
19269 (VECT_MAX_COST): Define.
19270 (vect_get_load_cost): Declare.
19271 (vect_get_store_cost, vect_get_known_peeling_cost,
19272 vect_get_single_scalar_iteraion_cost): Likewise.
19273 (vect_supportable_dr_alignment): Add new argument.
19274 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
19275 field.
19276 (destroy_loop_vec_info): Free peeling hash table.
19277 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
19278 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
19279 vect_analyze_slp. Fix indentation.
19280 (vect_get_single_scalar_iteraion_cost): New function.
19281 (vect_get_known_peeling_cost): Likewise.
19282 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
19283 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
19284 statement. Move outside cost calculation inside unknown peeling case.
19285 Call vect_get_known_peeling_cost for known amount of peeling.
19286 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
19287 reference to the print message of forced alignment.
19288 (vect_verify_datarefs_alignment): Update call to
19289 vect_supportable_dr_alignment.
19290 (vect_get_data_access_cost): New function.
19291 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
19292 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
19293 vect_peeling_hash_choose_best_peeling): Likewise.
19294 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
19295 to store all the accesses in the loop and find best possible access to
19296 align using peeling for known alignment case. For unknown alignment
19297 check if stores are preferred or if peeling is worthy.
19298 (vect_find_same_alignment_drs): Analyze pairs of loads too.
19299 (vect_supportable_dr_alignment): Add new argument and check aligned
19300 accesses according to it.
19301 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
19302 (cost_for_stmt): Call vect_get_stmt_cost.
19303 (vect_model_simple_cost): Likewise.
19304 (vect_model_store_cost): Call vect_get_stmt_cost. Call
19305 vect_get_store_cost to calculate the cost of the statement.
19306 (vect_get_store_cost): New function.
19307 (vect_model_load_cost): Call vect_get_stmt_cost. Call
19308 vect_get_load_cost to calculate the cost of the statement.
19309 (vect_get_load_cost): New function.
19310 (vectorizable_store): Update call to vect_supportable_dr_alignment.
19311 (vectorizable_load): Likewise.
19312 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
19313 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
19314 arguments. Handle unaligned store.
19315 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
19316 (rs6000_builtin_support_vector_misalignment): Return true for word and
19317 double word alignments for VSX.
19318 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
19319 vect_supportable_dr_alignment and builtin_vectorization_cost.
19320
19321 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19322
19323 PR target/44597
19324 * config/pa/predicates.md (prefetch_cc_operand): Remove.
19325 (prefetch_nocc_operand): Likewise.
19326 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
19327 (prefetch_20): New insn.
19328 (prefetch_cc): Remove.
19329 (prefetch_nocc): Likewise.
19330
19331 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19332
19333 * expr.c (vector_mode_valid_p): Move to c-common.c.
19334 * expr.h (vector_mode_valid_p): Do not declare here.
19335 * system.h: Poison GCC_EXPR_H in front-ends.
19336 * Makefile.in: Update dependencies.
19337
19338 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19339
19340 PR target/44705
19341 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
19342
19343 2010-07-03 Jan Hubicka <jh@suse.cz>
19344
19345 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
19346 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
19347 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
19348 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
19349 Likewise.
19350
19351 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
19352 Update timevars.V
19353 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
19354 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
19355 TV_IPA_LTO_DECL_OUT): New.
19356 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
19357
19358 2010-07-03 Jan Hubicka <jh@suse.cz>
19359
19360 * ipa-inline.c (update_edge_key): Break out from ...
19361 update_callers_keys): ... here;
19362 (update_callee_keys): Update only the edges from caller to callee.
19363 (update_all_calle_keys): Do what update_calle_keys did.
19364 (decide_inlining_of_small_functions): Avoid recomputing of all
19365 callees when badness increase.
19366
19367 2010-07-03 Jie Zhang <jie@codesourcery.com>
19368
19369 * config/arm/arm.c (arm_attr_length_move_neon): New.
19370 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
19371 * config/arm/neon.md (define_mode_attr V_slen): Remove.
19372 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
19373 to compute length attribute.
19374
19375 2010-07-03 Jie Zhang <jie@codesourcery.com>
19376
19377 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
19378 as predicate for operand 1 and remove its constraint.
19379 * config/arm/predicates.md (vfp_register_operand): New.
19380 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
19381 (*push_fp_multi): Likewise.
19382
19383 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
19384
19385 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
19386
19387 2010-07-03 Jan Hubicka <jh@suse.cz>
19388
19389 * config/i386/i386.c (override_options): Revert accidental commit.
19390
19391 2010-07-02 Le-Chun Wu <lcwu@google.com>
19392
19393 PR c++/44128
19394 * doc/invoke.texi: Update documentation of -Wshadow.
19395
19396 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19397 Julian Brown <julian@codesourcery.com>
19398 Sandra Loosemore <sandra@codesourcery.com>
19399
19400 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
19401 comparisons. Adjust to take both operands.
19402 (arm_select_cc_mode): Handle DImode comparisons.
19403 (arm_gen_compare_reg): Generate a scratch register for DImode
19404 comparisons which require one. Use xor for Thumb equality checks.
19405 (arm_const_double_by_immediates): New.
19406 (arm_print_operand): Allow 'Q' and 'R' for constants.
19407 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
19408 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
19409 arm_canonicalize_comparison.
19410 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
19411 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
19412 prototype.
19413 (arm_const_double_by_immediates): Declare.
19414 * config/arm/constraints.md (Di): New constraint.
19415 * config/arm/predicates.md (arm_immediate_di_operand)
19416 (arm_di_operand, cmpdi_operand): New.
19417 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
19418 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
19419 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
19420 (cstoredi4): Handle non-Cirrus also.
19421
19422 2010-07-02 Julian Brown <julian@codesourcery.com>
19423 Sandra Loosemore <sandra@codesourcery.com>
19424
19425 PR target/43703
19426 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
19427 (smax<mode>3): Disable for NEON float modes when
19428 flag_unsafe_math_optimizations is false.
19429 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
19430 (*mul<mode>3_neon)
19431 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
19432 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
19433 for NEON float modes when flag_unsafe_math_optimizations is false.
19434 (quad_halves_<code>v4sf): Only enable if
19435 flag_unsafe_math_optimizations is true.
19436 * doc/invoke.texi (ARM Options): Add note about floating point
19437 vectorization requiring -funsafe-math-optimizations.
19438
19439 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19440 Julian Brown <julian@codesourcery.com>
19441
19442 * config/arm/neon.md (UNSPEC_VABA): Delete.
19443 (UNSPEC_VABAL): Delete.
19444 (UNSPEC_VABS): Delete.
19445 (UNSPEC_VMUL_N): Delete.
19446 (adddi3_neon): New.
19447 (subdi3_neon): New.
19448 (mul<mode>3add<mode>_neon): Make the pattern named.
19449 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19450 (neon_vadd<mode>): Replace with define_expand, and move the remaining
19451 unspec parts...
19452 (neon_vadd<mode>_unspec): ...to this.
19453 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
19454 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
19455 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
19456 (neon_vaba<mode>): Rewrite in terms of vabd.
19457 (neon_vabal<mode>): Rewrite in terms of vabdl.
19458 (neon_vabs<mode>): Rewrite without unspec.
19459 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
19460 (*arm_subdi3): Likewise.
19461 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
19462 No_op attribute to disable assembly output checks.
19463 * config/arm/arm_neon.h: Regenerated.
19464 * doc/arm-neon-intrinsics.texi: Regenerated.
19465
19466 2010-07-02 Jan Hubicka <jh@suse.cz>
19467
19468 * ipa-split.c (split_function): For aggregate values, set the return
19469 slot optimization bit. When passing DECL_BY_REFERENCE, produce
19470 *<retval> = fncall.part ().
19471 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
19472
19473 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19474
19475 * config/arm/neon.md (UNSPEC_VAND): Delete.
19476 (UNSPEC_VBIC): Delete.
19477 (UNSPEC_VCLZ): Delete.
19478 (UNSPEC_VCNT): Delete.
19479 (UNSPEC_VEOR): Delete.
19480 (UNSPEC_VORN): Delete.
19481 (UNSPEC_VORR): Delete.
19482 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
19483 core registers too.
19484 (anddi3_neon): Likewise.
19485 (orndi3_neon): Likewise.
19486 (bicdi3_neon): Likewise.
19487 (xordi3_neon): Likewise.
19488 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
19489 rid of unspec and handle unused operand.
19490 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
19491 * config/arm/predicates.md (imm_for_neon_logic_operand):
19492 Require TARGET_NEON.
19493 (imm_for_neon_inv_logic_operand): Likewise.
19494 * config/arm/arm.md (define_split for logical_binary_operator):
19495 Disable for NEON registers.
19496 (anddi3): Add new define_expand, and rename the insn. Disable
19497 this insn for NEON, where anddi3_neon now applies.
19498 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
19499 (iordi3): As for anddi3.
19500 (xordi3): Likewise.
19501 * config/arm/neon.ml (Vand): Split DImode variants and mark them
19502 as No_op to disable testing for exact instruction match.
19503 (Vorr): Likewise.
19504 (Veor): Likewise.
19505 (Vbic): Likewise.
19506 (Vorn): Likewise.
19507 * config/arm/arm_neon.h: Regenerated.
19508 * doc/arm-neon-intrinsics.texi: Regenerated.
19509
19510 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
19511
19512 * expr.h (emit_stack_probe): Declare.
19513 * explow.c (emit_stack_probe): Make global.
19514 (anti_adjust_stack_and_probe): Fix comments.
19515 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19516 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19517 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19518 * config/sparc/sparc.c: Include except.h.
19519 (sparc_emit_probe_stack_range): New function.
19520 (output_probe_stack_range): Likewise.
19521 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
19522 built-in stack checking is enabled.
19523 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
19524 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19525 (probe_stack_range): New insn.
19526
19527 2010-07-02 Richard Guenther <rguenther@suse.de>
19528
19529 PR target/43958
19530 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
19531 for argument alignment.
19532
19533 2010-07-02 Jan Hubicka <jh@suse.cz>
19534
19535 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
19536 walk backwards from entry_bb to check only those basic block of header
19537 that might lead to execution of split part.
19538 (consider_split) ... here.
19539 (find_return_bb): Allow assignment in return BB.
19540 (find_retval): New.
19541 (split_function): Fix name of cloned function; take care of updating
19542 return value in return_bb containing move.
19543
19544 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
19545
19546 PR target/44771
19547 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
19548 used variable insn.
19549
19550 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
19551
19552 * implicit-zee.c (combine_reaching_defs): Fix long lines.
19553 (is_set_with_extension_DI): Delete.
19554 (struct zero_extend_info): New structure.
19555 (add_removable_zero_extend): New function.
19556 (find_removable_zero_extends): Use note_stores to find SETs.
19557 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
19558
19559 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
19560
19561 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
19562 is_miss_rate_acceptable. Pull total_positions computation
19563 out of the loops. Early return if miss_positions exceeds
19564 the acceptable threshold.
19565 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
19566 is_miss_rate_acceptable after renaming of compute_miss_rate.
19567
19568 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
19569
19570 PR middle-end/44576
19571 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
19572 of 1000) for miss rate if the address diference is greater than or
19573 equal to the cache line size (the two reference will never hit the
19574 same cache line).
19575
19576 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
19577
19578 PR target/42835
19579 * config/arm/arm-modes.def (CC_NOTB): New mode.
19580 * config/arm/arm.c (get_arm_condition_code): Handle it.
19581 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
19582 * config/arm/arm.md (subsi3_compare0_c): New pattern.
19583 (compare_scc): Now a define_and_split. Add a number of extra
19584 splitters before it.
19585
19586 PR target/42172
19587 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
19588 and ZERO_EXTEND.
19589 (arm_rtx_costs_1): Likewise.
19590 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
19591 * config/arm/arm.md (is_arch6): New attribute.
19592 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
19593 extendqisi2): Tighten the code somewhat, avoiding invalid
19594 RTL to occur in the expander patterns.
19595 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
19596 (thumb1_zero_extendhisi2_v6): Delete.
19597 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
19598 (thumb1_extendhisi2_v6): Delete.
19599 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
19600 (thumb1_extendqisi2_v6): Delete.
19601 (zero_extendhisi2 for register input splitter): New.
19602 (zero_extendqisi2 for register input splitter): New.
19603 (thumb1_extendhisi2 for register input splitter): New.
19604 (extendhisi2 for register input splitter): New.
19605 (extendqisi2 for register input splitter): New.
19606 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
19607 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
19608 and add support for a register alternative requiring a split.
19609 (thumb1_zero_extendqisi2): Likewise.
19610 (arm_zero_extendqisi2): Likewise.
19611 (arm_extendhisi2): Likewise.
19612 (arm_extendqisi2): Likewise.
19613
19614 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19615
19616 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
19617 instead of an unspec.
19618 (neon_expand_vector_init): Likewise.
19619 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
19620 (UNSPEC_VDUP_LANE): Delete.
19621 (UNSPEC VDUP_N): Delete.
19622 (UNSPEC_VGET_HIGH): Delete.
19623 (UNSPEC_VGET_LANE): Delete.
19624 (UNSPEC_VGET_LOW): Delete.
19625 (UNSPEC_VMVN): Delete.
19626 (UNSPEC_VSET_LANE): Delete.
19627 (V_double_vector_mode): New.
19628 (vec_set<mode>_internal): Make code emitted match that for the
19629 corresponding intrinsics.
19630 (vec_setv2di_internal): Likewise.
19631 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
19632 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
19633 (neon_vset_lane<mode>): Combine double and quad patterns and
19634 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
19635 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
19636 (neon_vdup_n<mode>): Rewrite RTL without unspec.
19637 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
19638 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
19639 with neon_vdup_lanev2di, adjusting the pattern from the latter
19640 to be predicable for consistency.
19641 (neon_vdup_lane<mode>_internal): New.
19642 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
19643 to avoid using an unspec.
19644 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
19645 (neon_vdup_lanev2di): Turn into a define_expand.
19646 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
19647 (neon_vget_high<mode>): Replace with....
19648 (neon_vget_highv16qi): New pattern using canonical RTL.
19649 (neon_vget_highv8hi): Likewise.
19650 (neon_vget_highv4si): Likewise.
19651 (neon_vget_highv4sf): Likewise.
19652 (neon_vget_highv2di): Likewise.
19653 (neon_vget_low<mode>): Replace with....
19654 (neon_vget_lowv16qi): New pattern using canonical RTL.
19655 (neon_vget_lowv8hi): Likewise.
19656 (neon_vget_lowv4si): Likewise.
19657 (neon_vget_lowv4sf): Likewise.
19658 (neon_vget_lowv2di): Likewise.
19659
19660 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
19661 test for this emitting vmov.
19662 (Vset_lane): Likewise.
19663 (Vdup_n): Likewise.
19664 (Vmov_n): Likewise.
19665
19666 * doc/arm-neon-intrinsics.texi: Regenerated.
19667
19668 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
19669
19670 * config/arm/neon.md (vec_extractv2di): Correct error in register
19671 numbering to reconcile with neon_vget_lanev2di.
19672
19673 2010-07-02 Richard Guenther <rguenther@suse.de>
19674
19675 * tree-ssa-structalias.c (pt_solution_set_var): New function.
19676 * tree-ssa-alias.h (pt_solution_set_var): Declare.
19677 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
19678 points-to information.
19679
19680 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
19681
19682 * config/s390/s390.c (override_options): Adopt prefetching
19683 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
19684
19685 2010-07-02 Jan Hubicka <jh@suse.cz>
19686
19687 * df-problems.c (df_kill_notes): Do not collect dead notes.
19688 (df_set_note): Just call add_reg_note.
19689 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
19690 df_create_unused_note): Do not deal with lists of old notes.
19691 (df_note_bb_compute): Likewise.
19692
19693 2010-07-02 Richard Guenther <rguenther@suse.de>
19694
19695 * tree-ssa-structalias.c (find_func_aliases): Handle
19696 pointer alignment via BIT_AND_EXPR.
19697 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
19698
19699 2010-07-02 Richard Guenther <rguenther@suse.de>
19700
19701 * tree-data-ref.c (initialize_data_dependence_relation): Handle
19702 mismatching number of dimensions properly.
19703
19704 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19705
19706 PR target/44707
19707 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
19708 (lo_sum (high ...) ...) patterns generated by earlier passes.
19709
19710 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19711
19712 * doc/install.texi (Prerequisites): Document Perl requirement on
19713 Solaris 2.
19714 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
19715
19716 2010-07-02 Richard Guenther <rguenther@suse.de>
19717
19718 PR middle-end/44777
19719 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
19720
19721 2010-07-02 Jan Hubicka <jh@suse.cz>
19722
19723 PR middle-end/44706
19724 * predict.c (predict_paths_for_bb): Handle case when control dependence
19725 BB has only abnormal edges.
19726
19727 2010-07-02 Richard Guenther <rguenther@suse.de>
19728
19729 PR tree-optimization/44748
19730 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
19731 the embedded conversion in MEM_REFs.
19732
19733 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
19734
19735 * reload.c: Include toplev.h.
19736 * recog.c: Likewise.
19737 * Makefile.in: Adjust dependencies.
19738
19739 2010-07-01 Jakub Jelinek <jakub@redhat.com>
19740
19741 PR debug/44694
19742 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
19743 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
19744
19745 2010-07-01 Richard Guenther <rguenther@suse.de>
19746
19747 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
19748 types for offsets.
19749
19750 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
19751
19752 PR target/44732
19753 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
19754 Fix argument types.
19755
19756 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
19757
19758 PR target/44727
19759 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19760 Make sure operand 0 dies.
19761
19762 2010-07-01 Richard Guenther <rguenther@suse.de>
19763
19764 PR middle-end/42834
19765 PR middle-end/44468
19766 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
19767 * doc/generic.texi (References to storage): Document MEM_REF.
19768 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
19769 (print_call_name): Likewise.
19770 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
19771 (build_simple_mem_ref_loc): New function.
19772 (mem_ref_offset): Likewise.
19773 * tree.h (build_simple_mem_ref_loc): Declare.
19774 (build_simple_mem_ref): Define.
19775 (mem_ref_offset): Declare.
19776 * fold-const.c: Include tree-flow.h.
19777 (operand_equal_p): Handle MEM_REF.
19778 (build_fold_addr_expr_with_type_loc): Likewise.
19779 (fold_comparison): Likewise.
19780 (fold_unary_loc): Fold
19781 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
19782 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
19783 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
19784 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
19785 (ptr_deref_may_alias_ref_p_1): Likewise.
19786 (ao_ref_base_alias_set): Properly differentiate base object for
19787 offset and TBAA.
19788 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
19789 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
19790 (indirect_refs_may_alias_p): Likewise.
19791 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
19792 chasing code.
19793 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
19794 (call_may_clobber_ref_p_1): Likewise.
19795 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
19796 * expr.c (expand_assignment): Handle MEM_REF.
19797 (store_expr): Handle MEM_REFs from STRING_CSTs.
19798 (store_field): If expanding a MEM_REF of a non-addressable
19799 decl use bitfield operations.
19800 (get_inner_reference): Handle MEM_REF.
19801 (expand_expr_addr_expr_1): Likewise.
19802 (expand_expr_real_1): Likewise.
19803 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
19804 * alias.c (ao_ref_from_mem): Handle MEM_REF.
19805 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
19806 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
19807 (dr_analyze_indices): Likewise.
19808 (dr_analyze_alias): Likewise.
19809 (object_address_invariant_in_loop_p): Likewise.
19810 * gimplify.c (mark_addressable): Handle MEM_REF.
19811 (gimplify_cond_expr): Build MEM_REFs.
19812 (gimplify_modify_expr_to_memcpy): Likewise.
19813 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
19814 (gimple_fold_indirect_ref): Adjust.
19815 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
19816 * tree.def (MEM_REF): New tree code.
19817 * tree-dfa.c: Include toplev.h.
19818 (get_ref_base_and_extent): Handle MEM_REF.
19819 (get_addr_base_and_unit_offset): New function.
19820 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
19821 * gimple-fold.c (may_propagate_address_into_dereference): Handle
19822 MEM_REF.
19823 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
19824 accesses if the array has just one dimension. Remove always true
19825 parameter. Do not require type compatibility here.
19826 (maybe_fold_offset_to_component_ref): Remove.
19827 (maybe_fold_stmt_indirect): Remove.
19828 (maybe_fold_reference): Remove INDIRECT_REF handling.
19829 Fold back to non-MEM_REF.
19830 (maybe_fold_offset_to_address): Simplify. Deal with type
19831 mismatches here.
19832 (maybe_fold_reference): Likewise.
19833 (maybe_fold_stmt_addition): Likewise. Also handle
19834 &ARRAY + I in addition to &ARRAY[0] + I.
19835 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
19836 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
19837 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
19838 * tree-ssa.c (useless_type_conversion_p): Make most pointer
19839 conversions useless.
19840 (warn_uninitialized_var): Handle MEM_REF.
19841 (maybe_rewrite_mem_ref_base): New function.
19842 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
19843 to SSA form.
19844 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
19845 INDIRECT_REF handling.
19846 (copy_tree_body_r): Handle MEM_REF.
19847 * gimple.c (is_gimple_addressable): Adjust.
19848 (is_gimple_address): Likewise.
19849 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
19850 invariant base are invariant.
19851 (is_gimple_min_lval): Adjust.
19852 (is_gimple_mem_ref_addr): New function.
19853 (get_base_address): Handle MEM_REF.
19854 (count_ptr_derefs): Likewise.
19855 (get_base_loadstore): Likewise.
19856 * gimple.h (is_gimple_mem_ref_addr): Declare.
19857 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
19858 * tree-cfg.c (verify_address): New function, split out from ...
19859 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
19860 the address operand of MEM_REFs. Verify MEM_REFs. Reject
19861 INDIRECT_REFs.
19862 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
19863 INDIRECT_REF. Allow conversions.
19864 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
19865 a register does not change its size.
19866 (verify_types_in_gimple_reference): Verify MEM_REF.
19867 (verify_gimple_assign_single): Disallow INDIRECT_REF.
19868 Handle MEM_REF.
19869 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
19870 New.
19871 (mark_address_taken): Handle MEM_REF.
19872 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
19873 (get_asm_expr_operands): Pass opf_not_non_addressable.
19874 (get_expr_operands): Handle opf_[not_]non_addressable.
19875 Handle MEM_REF. Remove INDIRECT_REF handling.
19876 * tree-vrp.c (check_array_ref): Handle MEM_REF.
19877 (search_for_addr_array): Likewise.
19878 (check_array_bounds): Likewise.
19879 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
19880 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
19881 (ref_always_accessed_p): Likewise.
19882 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
19883 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
19884 Handle MEM_REF.
19885 * cgraphbuild.c (mark_load): Properly check for NULL result
19886 from get_base_address.
19887 (mark_store): Likewise.
19888 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
19889 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
19890 handling for MEM_REF.
19891 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
19892 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
19893 * builtins.c (stabilize_va_list_loc): Use the function ABI
19894 valist type if we couldn't canonicalize the argument type.
19895 Always dereference with the canonical va-list type.
19896 (maybe_emit_free_warning): Handle MEM_REF.
19897 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
19898 memmove to memcpy.
19899 * builtins.c (fold_builtin_memory_op): Use ref-all types
19900 for all memcpy foldings.
19901 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
19902 (build_outer_var_ref): Likewise.
19903 (scan_omp_1_op): Likewise.
19904 (lower_rec_input_clauses): Likewise.
19905 (lower_lastprivate_clauses): Likewise.
19906 (lower_reduction_clauses): Likewise.
19907 (lower_copyprivate_clauses): Likewise.
19908 (expand_omp_atomic_pipeline): Likewise.
19909 (expand_omp_atomic_mutex): Likewise.
19910 (create_task_copyfn): Likewise.
19911 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
19912 Remove old union trick. Initialize constant offsets.
19913 (ao_ref_init_from_vn_reference): Likewise. Do not handle
19914 INDIRECT_REF. Init base_alias_set properly.
19915 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
19916 (vn_reference_fold_indirect): Adjust for MEM_REFs.
19917 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
19918 for ARRAY_REFs.
19919 (may_insert): Remove.
19920 (visit_reference_op_load): Do not test may_insert.
19921 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
19922 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
19923 a field to store the constant offset this op applies.
19924 (run_scc_vn): Adjust prototype.
19925 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
19926 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
19927 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
19928 bother about volatile qualifiers on pointers.
19929 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
19930 * tree-ssa-loop-ivopts.c
19931 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
19932 (strip_offset_1): Likewise.
19933 (find_interesting_uses_address): Replace INDIRECT_REF handling with
19934 MEM_REF handling.
19935 (get_computation_cost_at): Likewise.
19936 * ipa-pure-const.c (check_op): Handle MEM_REF.
19937 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
19938 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
19939 and constants.
19940 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
19941 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
19942 (eliminate_local_variables_1): Likewise.
19943 (create_call_for_reduction_1): Likewise.
19944 (create_loads_for_reductions): Likewise.
19945 (create_loads_and_stores_for_name): Likewise.
19946 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
19947 (ssa_accessed_in_tree): Handle MEM_REF.
19948 (ssa_accessed_in_assign_rhs): Likewise.
19949 (update_type_size): Likewise.
19950 (analyze_accesses_for_call_stmt): Likewise.
19951 (analyze_accesses_for_assign_stmt): Likewise.
19952 (transform_access_sites): Likewise.
19953 (transform_allocation_sites): Likewise.
19954 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
19955 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
19956 not handle INDIRECT_REF.
19957 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
19958 (cond_store_replacement): Likewise.
19959 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
19960 MEM_REF, no not handle INDIRECT_REFs.
19961 (insert_into_preds_of_block): Properly initialize avail.
19962 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
19963 for ARRAY_REFs. Properly handle reference lookups that
19964 require a bit re-interpretation.
19965 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
19966 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
19967 (build_ref_for_offset_1): Remove.
19968 (build_ref_for_offset): Build MEM_REFs.
19969 (gate_intra_sra): Disable for now.
19970 (sra_ipa_modify_expr): Handle MEM_REF.
19971 (ipa_early_sra_gate): Disable for now.
19972 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
19973 MEM_REF handling.
19974 (disqualify_base_of_expr): Likewise.
19975 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
19976 MEM_REF handling.
19977 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
19978 Use mem_ref_offset. Remove bogus folding.
19979 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
19980 (make_fancy_name_1): Add support for MEM_REF.
19981 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
19982 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
19983 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
19984 (compute_complex_ancestor_jump_func): Likewise.
19985 (ipa_analyze_virtual_call_uses): Likewise.
19986 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
19987 INDIRECT_REF folding with more generalized MEM_REF folding.
19988 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
19989 (forward_propagate_addr_into_variable_array_index): Also handle
19990 &ARRAY + I in addition to &ARRAY[0] + I.
19991 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
19992 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
19993 creates assignments with overlap.
19994 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
19995 (get_frame_field): Likewise.
19996 (get_nonlocal_debug_decl): Likewise.
19997 (convert_nonlocal_reference_op): Likewise.
19998 (struct nesting_info): Add mem_refs pointer-set.
19999 (create_nesting_tree): Allocate it.
20000 (convert_local_reference_op): Insert to be folded mem-refs.
20001 (fold_mem_refs): New function.
20002 (finalize_nesting_tree_1): Perform defered folding of mem-refs
20003 (free_nesting_tree): Free the pointer-set.
20004 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
20005 (vectorizable_load): Likewise.
20006 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
20007 (propagate_with_phi): Likewise.
20008 * tree-object-size.c (addr_object_size): Handle MEM_REFs
20009 instead of INDIRECT_REFs.
20010 (compute_object_offset): Handle MEM_REF.
20011 (plus_stmt_object_size): Handle MEM_REF.
20012 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
20013 for &MEM_REF.
20014 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
20015 (symbol_marked_for_renaming): Likewise.
20016 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
20017 (fold-const.o): Add $(TREE_FLOW_H).
20018 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
20019 (find_func_clobbers): Likewise.
20020 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
20021 (decompose_access): Likewise.
20022 (replace_field_acc): Likewise.
20023 (replace_field_access_stmt): Likewise.
20024 (insert_new_var_in_stmt): Likewise.
20025 (get_stmt_accesses): Likewise.
20026 (reorg_structs_drive): Disable.
20027 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
20028 (ix86_canonical_va_list_type): Likewise.
20029
20030 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
20031
20032 PR other/44566
20033 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
20034 * target.def (struct gcc_target): Replace enum reg_class with
20035 reg_class_t in hook argument / return types.
20036 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
20037 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
20038 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
20039 * targhooks.h (default_branch_target_register_class): Likewise.
20040 (default_ira_cover_classes, default_secondary_reload): Likewise.
20041 (default_memory_move_cost, default_register_move_cost): Likewise.
20042 * targhooks.c (default_branch_target_register_class): Likewise.
20043 (default_ira_cover_classes, default_secondary_reload): Likewise.
20044 (default_memory_move_cost, default_register_move_cost): Likewise.
20045 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
20046 * bt-load.c (branch_target_load_optimize): Likewise.
20047 * ira.c (setup_cover_and_important_classes): Likewise.
20048 * ira-costs.c (copy_cost): Likewise.
20049 * reload1.c (emit_input_reload_insns): Likewise.
20050 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20051 * config/frv/frv.c (frv_secondary_reload): Likewise.
20052 * config/s390/s390.c (s390_secondary_reload): Likewise.
20053 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
20054 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
20055 (ix86_register_move_cost): Likewise.
20056 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
20057 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
20058 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
20059 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
20060 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
20061 (rs6000_ira_cover_classes): Likewise.
20062 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
20063 * config/picochip/picochip-protos.h (picochip_secondary_reload):
20064 Likewise.
20065 * config/pa/pa.c (pa_secondary_reload): Likewise.
20066 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
20067 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
20068 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
20069 * doc/tm.texi: Regenerate.
20070
20071 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
20072
20073 PR bootstrrap/44726
20074 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
20075 use.
20076 (build_alias_set_optimal_p): Likewise.
20077 (build_base_obj_set_for_drs): Likewise.
20078
20079 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
20080
20081 * target.def: Remove comment about licensing problems of function
20082 declarations.
20083
20084 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
20085 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
20086 * doc/tm.texi: Regenerate.
20087
20088 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
20089 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
20090
20091 * target.def (enum_va_list_p): Use DEFHOOK.
20092 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
20093 Rename ptype to ptree.
20094 * doc/tm.texi: Regenerate.
20095
20096 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
20097 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
20098 * doc/tm.texi: Regenerate.
20099
20100 * target.def (memory_move_cost): Use DEFHOOK.
20101 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
20102 Rename regclass AKA class to rclass.
20103 * doc/tm.texi: Regenerate.
20104
20105 * target.def (pragma_parse): Use DEFHOOK.
20106 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
20107 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
20108 * doc/tm.texi: Regenerate.
20109
20110 * target.def (pass_by_reference): Use DEFHOOK.
20111 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
20112 * doc/tm.texi: Regenerate.
20113
20114 * target.def (resolve_overloaded_builtin): Rename params to arglist.
20115 Use DEFHOOK.
20116 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
20117 * doc/tm.texi: Regenerate.
20118
20119 * target.def (return_pops_args): Use DEFHOOK.
20120 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
20121 Rename stack-size to size.
20122 * doc/tm.texi: Regenerate.
20123
20124 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
20125 last-sched_cycle to last_clock, cur_cycle to clock.
20126 * doc/tm.texi.in: Use @hook.
20127 * doc/tm.texi: Regenerate.
20128
20129 * target.def (print_operand, print_operand_address): Update comment.
20130 (print_operand_punct_valid_p): Likewise.
20131
20132 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
20133
20134 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
20135 to rtl.h.
20136 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
20137 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
20138 * rtl-error.h: New.
20139 * regrename.c: Do not include toplev.h. Include rtl-error.h.
20140 * rtl-error.c: Likewise.
20141 * reload.c: Likewise.
20142 * recog.c: Likewise.
20143 * sel-sched.c: Likewise.
20144 * function.c: Likewise.
20145 * reg-stack.c: Likewise.
20146 * cfgrtl.c: Likewise.
20147 * reload1.c: Likewise.
20148 * final.c: Include rtl-error.
20149 * Makefile.in: Adjust dependencies.
20150
20151 2010-06-30 Jan Hubicka <jh@suse.cz>
20152
20153 PR middle-end/PR44706
20154 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
20155 to return the value.
20156
20157 2010-06-30 Michael Matz <matz@suse.de>
20158
20159 PR bootstrap/44699
20160 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
20161 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
20162 a gimple reg, attach the original VDEF to the last store in the
20163 sequence.
20164
20165 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
20166
20167 PR other/44034
20168 * config/darwin.c (darwin_override_options): Use renamed
20169 targetm.asm_out.emit_unwind_label.
20170
20171 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20172
20173 PR tree-optimization/39799
20174 * tree-inline.c (remap_ssa_name): Initialize variable only if
20175 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20176
20177 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
20178
20179 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
20180
20181 2010-06-30 Richard Guenther <rguenther@suse.de>
20182
20183 PR target/44722
20184 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
20185 against oscillation with reverse peephole2.
20186
20187 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
20188
20189 PR target/44721
20190 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20191 Fix last commit.
20192
20193 2010-06-30 Nick Clifton <nickc@redhat.com>
20194
20195 * config/rx/rx-modes.def: New file.
20196 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
20197 (CC_REGNUM): Define.
20198 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
20199 register.
20200 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
20201 (SELECT_CC_MODE): Define.
20202 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
20203 (reg:CC CC_REG) instead of (cc0).
20204 (attr "cc"): Delete.
20205 (cbranchsi4): Do not split compare and branch here. Instead move
20206 it to...
20207 (cbranchsi4_<code>): ... here. New patterns.
20208 (cmpsi): Call rx-compare_redundant to find out if it is necessary
20209 to emit the compare instruction.
20210 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
20211 cc_status flags.
20212 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
20213 FIRST_PSEUDO_REGNUM.
20214 (rx_expand_prologue, rx_expand_epilogue): Likewise.
20215 (rx_notice_update_cc): Delete.
20216 (rx_cc_modes_compatible): New function.
20217 (flags_needed_for_conditional): New function.
20218 (flags_from_mode): New function.
20219 (rx_compare_redundant): New function - scans backwards through
20220 insn list to find out if condition flags are already set correctly.
20221 (TARGET_CC_MODES_COMPATIBLE): Define.
20222 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
20223
20224 * config/rx/rx.h (BRANCH_COST): Define.
20225 (REGISTER_MOVE_COST): Define.
20226 * config/rx/predicates (rx_source_operand): Allow all constant types.
20227 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
20228 (tstsi4): New pattern.
20229 * config/rx/rx.c (rx_memory_move_cost): Define.
20230 (TARGET_MEMORY_MOVE_COST): Define.
20231
20232 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
20233
20234 * tree.h (block_may_fallthru): Declare here.
20235 * tree-flow.h (block_may_fallthru): Do not declare here.
20236 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
20237 bitmap.h
20238 * Makefile.in (c-typeck.o): Update dependencies.
20239
20240 2010-06-30 Jakub Jelinek <jakub@redhat.com>
20241
20242 PR debug/44694
20243 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
20244 * cselib.c (cfa_base_preserved_regno): New static variable.
20245 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
20246 of REGNO (cfa_base_preserved_val->locs->loc).
20247 (cselib_preserve_cfa_base_value): Add regno argument, set
20248 cfa_base_preserved_regno to it.
20249 (cselib_invalidate_regno): Allow removal of registers other than
20250 cfa_base_preserved_regno from cfa_base_preserved_val.
20251 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
20252 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
20253 of MEM addresses, if not on LHS.
20254 (reverse_op): Don't add reverse ops for cfa_base_rtx.
20255 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
20256
20257 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20258
20259 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
20260 static variables.
20261 (peep2_buf_position): New static function.
20262 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
20263 peephole2_optimize): Use it.
20264 (peep2_attempt, peep2_update_life): New static functions, broken out
20265 of peephole2_optimize.
20266 (peep2_fill_buffer): New static function.
20267 (peephole2_optimize): Change the main loop to try to fill the buffer
20268 with the maximum number of insns before matching them against
20269 peepholes. Use a forward scan. Remove special case for targets with
20270 conditional execution.
20271 * genrecog.c (change_state): Delete dead code.
20272 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20273 Rewrite so as not to expect the second insn to have had a peephole
20274 applied yet.
20275
20276 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20277
20278 * genhooks.c (emit_findices): Cast field precision to int.
20279 (emit_documentation): Likewise.
20280
20281 2010-06-29 Jakub Jelinek <jakub@redhat.com>
20282
20283 PR tree-optimization/43801
20284 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
20285 if old_decl was DECL_ONE_ONLY.
20286
20287 PR debug/44668
20288 * dwarf2out.c (add_accessibility_attribute): New function.
20289 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
20290 instead of adding DW_AT_accessibility manually.
20291 (gen_enumeration_type_die, gen_struct_or_union_type_die,
20292 gen_typedef_die): Use it.
20293
20294 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20295
20296 * vmsdbgout.c (full_name): Just output the file name if not native.
20297
20298 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20299
20300 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
20301 (funcnam_table): New static table.
20302 (funcnum_table): New static table.
20303 (write_rtnbeg): Write value saved in funcnum_table.
20304 (write_rtnend): Write value saved in funcnum_table.
20305 (vmsdbgout_begin_function): Save current function info in
20306 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
20307 (vmsdbgout_finish): Iterate over funcnum_table.
20308
20309 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20310
20311 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
20312 (vmsdbgout_type_decl): Declare
20313 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
20314 (FUNC_EPILOGUE_LABEL): New macro
20315 (vmsdbgout_begin_epilogue): New function.
20316 (vmsdbgout_type_decl): New function.
20317
20318 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20319
20320 * vmsdbg.h: Update copyright.
20321
20322 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20323
20324 * vmsdbg.h (DST_K_TBG): New DST constant.
20325 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
20326 (write_modbeg): Cast module_language to avoid warning.
20327 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
20328
20329 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
20330
20331 PR other/44034
20332 * target.def, doc/tm.texi.in, genhooks.c: New files.
20333 * target.h: Instead of defining individual hook members,
20334 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
20335 include target.def.
20336 * target-def.h: Instead of defining individual hook initializers,
20337 include target-hooks-def.h.
20338 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
20339 targetm.live_on_entry -> targetm.extra_live_on_entry
20340 targetm.sched.md_finish ->targetm.sched.finish
20341 targetm.sched.md_init -> targetm.sched.init
20342 targetm.sched.md_init_global -> targetm.sched.init_global
20343 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
20344 targetm.asm_out.except_table_label ->
20345 targetm.asm_out.emit_except_table_label
20346 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
20347 targetm.target_help -> targetm.help
20348 targetm.vectorize.builtin_support_vector_misalignment ->
20349 targetm.vectorize.support_vector_misalignment
20350 targetm.file_start_app_off -> targetm.asm_file_start_app_off
20351 targetm.file_start_file_directive ->
20352 targetm.asm_file_start_file_directive
20353 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
20354 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
20355 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
20356 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
20357 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
20358 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
20359 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
20360 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
20361 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
20362 * Makefile.in (TARGET_H): Depend on target.def.
20363 (TARGET_DEF_H): Depend on target-hooks-def.h.
20364 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
20365 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
20366 * doc/tm.texi: Regenerate.
20367
20368 * Makefile.in (s-tm-texi): Remove stray tab / rule.
20369
20370 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
20371 (targetm.sched.init): Likewise.
20372
20373 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20374
20375 PR bootstrap/44713
20376 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
20377 (function_arg_advance_32): Const-ify TYPE parameter.
20378 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
20379 (ix86_function_arg_advance): Change type of NAMED to bool.
20380 (function_arg_32): Const-ify CUM and TYPE parameters.
20381 (function_arg_64): Likewise. Change type of NAMED to bool.
20382 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
20383 to bool.
20384 (ix86_function_arg): Change type of NAMED to bool.
20385 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
20386 last argument as a bool.
20387
20388 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
20389
20390 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
20391 (OVERRIDE_OPTIONS): Add note of obsolescence.
20392 Replace references with references to TARGET_OPTION_OVERRIDE.
20393 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
20394 the macro).
20395 * targhooks.c (default_target_option_override): New function.
20396 * targhooks.h (default_target_option_override): Declare.
20397 * target.h (struct gcc_target): Add override member to
20398 target_option member.
20399 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
20400 targetm.target_option.override call.
20401 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
20402 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
20403
20404 2010-06-29 Jan Hubicka <jh@suse.cz>
20405
20406 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
20407
20408 2010-06-29 Jan Hubicka <jh@suse.cz>
20409
20410 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
20411 unreachable.
20412 (rebuild_frequencies): New function.
20413 * predict.h (rebuild_frequencies): Declare.
20414 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
20415 entry block and edge reaching new_entry.
20416 (tree_function_versioning): When doing partial cloning, rebuild
20417 frequencies when done.
20418 * passes.c (execute_function_todo): Use rebild_frequencies.
20419
20420 2010-06-29 Richard Guenther <rguenther@suse.de>
20421
20422 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
20423 * tree-flow.h (enum noalias_state): Remove.
20424 (struct var_ann_d): Remove noalias_state member.
20425
20426 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
20427
20428 PR target/43902
20429 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
20430 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
20431 (maddhidi4): Likewise.
20432
20433 Revert parts of the change for PR25130.
20434 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
20435 MEM_ALIAS_SET.
20436
20437 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20438
20439 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
20440 targetm.calls.function_incoming_arg, and
20441 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
20442 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
20443 * target.h (struct gcc_target): Add function_arg_advance,
20444 function_arg, and function_incoming_arg fields.
20445 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
20446 (TARGET_FUNCTION_INCOMING_ARG): Define.
20447 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
20448 and TARGET_FUNCTION_INCOMING_ARG.
20449 * targhooks.h (default_function_arg_advance): Declare.
20450 (default_function_arg, default_function_incoming_arg): Declare.
20451 * targhooks.c (default_function_arg_advance): New function.
20452 (default_function_arg, default_function_incoming_arg): New function.
20453 * config/i386/i386.c (function_arg_advance): Rename to...
20454 (ix86_function_arg_advance): ...this. Make static.
20455 (function_arg): Rename to...
20456 (ix86_function_arg): ...this. Make static.
20457 (TARGET_FUNCTION_ARG_ADVANCE): Define.
20458 (TARGET_FUNCTION_ARG): Define.
20459 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
20460 (FUNCTION_ARG): Delete.
20461 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
20462 (function_arg): Delete prototype.
20463
20464 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20465
20466 * reginfo.c (init_reg_sets_1): Adjust comments.
20467 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
20468 * calls.c (prepare_call_address): Likewise.
20469 (emit_call_1): Use targetm.calls.return_pops_args.
20470 (expand_call): Likewise.
20471 * function.c (assign_parms): Likewise.
20472 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
20473 * target.h (struct gcc_target) [struct calls]: Add
20474 return_pops_args field.
20475 * targhooks.h (default_return_pops_args): Declare.
20476 * targhooks.c (default_return_pops_args): Define.
20477 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
20478 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
20479 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
20480 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
20481 documentation.
20482 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
20483 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
20484 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
20485 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
20486 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
20487 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
20488 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
20489 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
20490 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
20491 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
20492 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
20493 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
20494 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
20495 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
20496 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
20497 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
20498 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
20499 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
20500 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
20501 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
20502 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
20503 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
20504 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
20505 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
20506 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
20507 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
20508 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
20509 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
20510 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
20511 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
20512 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
20513 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
20514 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
20515 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
20516 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
20517 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
20518 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
20519 * config/i386/i386.c (ix86_return_pops_args): Make static.
20520 Constify arguments.
20521 (TARGET_RETURN_POPS_ARGS): Define.
20522 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
20523 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
20524 (TARGET_RETURN_POPS_ARGS): Define.
20525 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
20526 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
20527 (TARGET_RETURN_POPS_ARGS): Define.
20528
20529 2010-06-29 Richard Guenther <rguenther@suse.de>
20530
20531 PR middle-end/44667
20532 * tree-inline.c (initialize_inlined_parameters): Make sure
20533 to remap the inlined parameter variable substitutions types.
20534
20535 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
20536
20537 PR rtl-optimization/44659
20538 * combine.c (make_compound_operation) <SUBREG>: Do not return the
20539 result of force_to_mode if it partially re-expanded the compound.
20540
20541 2010-06-28 Jan Hubicka <jh@suse.cz>
20542
20543 PR middle-end/44671
20544 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
20545 RESULT_DECL.
20546
20547 2010-06-28 Anatoly Sokolov <aesok@post.ru>
20548
20549 * double-int.h (force_fit_type_double): Remove declaration.
20550 * double-int.c (force_fit_type_double): Move to tree.c.
20551 * tree.h (force_fit_type_double): Declare.
20552 * tree.h (force_fit_type_double): Moved from double-int.c. Use
20553 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
20554 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
20555 * convert.c (convert_to_pointer): Adjust call to
20556 force_fit_type_double.
20557 * tree-vrp.c (extract_range_from_assert,
20558 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
20559 * fold-const.c: Update comment.
20560 (int_const_binop, fold_convert_const_int_from_int,
20561 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
20562 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
20563 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
20564 round_up_loc): Adjust call to force_fit_type_double.
20565
20566 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20567
20568 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
20569
20570 2010-06-28 Martin Jambor <mjambor@suse.cz>
20571
20572 * tree-sra.c (convert_callers): New parameter, change fndecls of
20573 recursive calls.
20574 (modify_function): Pass the old decl to convert_callers.
20575
20576 2010-06-28 Martin Jambor <mjambor@suse.cz>
20577
20578 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
20579 ipa_check_create_node_params and ipa_initialize_node_params with
20580 checking asserts they are not necessary.
20581
20582 2010-06-28 Jan Hubicka <jh@suse.cz>
20583
20584 PR tree-optimization/44687
20585 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
20586
20587 2010-06-28 Martin Jambor <mjambor@suse.cz>
20588
20589 PR c++/44535
20590 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
20591 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
20592 instead of BINFO_BASE_BINFO.
20593
20594 2010-06-28 Michael Matz <matz@suse.de>
20595
20596 PR middle-end/44592
20597 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
20598 proper VDEF chain for intermediate stores in the sequence.
20599
20600 2010-06-28 Jan Hubicka <jh@suse.cz>
20601
20602 PR tree-optimization/44357
20603 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
20604 uninlinable functions.
20605
20606 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20607
20608 * config.gcc (powerpc*-*-*): Handle titan.
20609 * config/rs6000/rs6000.c (titan_cost): New costs.
20610 (rs6000_override_options): Add "titan" to processor_target_table.
20611 Add Titan to branch alignment logic.
20612 Correctly set rs6000_cost for titan.
20613 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
20614 * config/rs6000/titan.md: New file.
20615 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
20616
20617 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
20618
20619 * tree-browser.c (TB_history_stack): Convert to a VEC.
20620 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
20621 (TB_history_prev): Likewise.
20622
20623 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
20624
20625 * vec.h (vec_heap_free): Add parentheses around free.
20626
20627 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
20628
20629 * system.h: Poison GCC_EXCEPT_H for front-end files.
20630
20631 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
20632 langhook.
20633 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
20634 Define to NULL by default.
20635 * except.h: Define GCC_EXCEPT_H.
20636 (doing_eh): Remove prototype.
20637 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
20638 (lang_protect_cleanup_actions): Remove.
20639 * except.c (lang_protect_cleanup_actions): Remove.
20640 (doing_eh): Remove.
20641 (gen_eh_region): Don't check doing_eh here.
20642 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
20643 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
20644 instead of lang_protect_cleanup_actions.
20645 * omp-low.c (maybe_catch_exception): Likewise.
20646 * Makefile.in: Update dependencies.
20647
20648 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
20649
20650 * cgraph.h (struct varpool_node): new used_from_object_file flag.
20651 (struct cgraph_local_info): new used_from_object_file flag.
20652 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
20653 (cgraph_clone_node): initialize used_from_object_file.
20654 (cgraph_create_virtual_clone): initialize used_from_object_file.
20655 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
20656 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
20657 when compiling with -fwhole-program.
20658 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
20659 internal resolver.
20660 * ipa.c (function_and_variable_visibility): Set externally_visible
20661 flag of varpool_node if used_from_object_file flag is set.
20662 (cgraph_externally_visible_p): check used_from_object_file flag.
20663 * doc/invoke.texi (-fwhole-program option): Change description of
20664 externally_visible attribute accordingly.
20665 * doc/extend.texi (externally_visible): Ditto.
20666
20667 2010-06-27 Jan Hubicka <jh@suse.cz>
20668
20669 * params.def (max-inline-insns-auto): Default to 40.
20670 * doc/invoke.texi (max-inline-insns-auto): Document the change.
20671
20672 2010-06-27 Jan Hubicka <jh@suse.cz>
20673
20674 PR middle-end/44671
20675 PR middle-end/44686
20676 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
20677 signature change.
20678 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
20679 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
20680
20681 2010-06-27 Anatoly Sokolov <aesok@post.ru>
20682
20683 * target.h (struct gcc_target): Add register_move_cost field.
20684 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
20685 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
20686 * targhooks.c (default_register_move_cost): New function.
20687 * targhooks.h (default_register_move_cost): Declare function.
20688 * defaults.h (REGISTER_MOVE_COST): Delete.
20689 * ira-int.h (ira_register_move_cost): Update comment.
20690 * ira.c (ira_register_move_cost): Update comment.
20691 * reload.h (register_move_cost): Declare.
20692 * reginfo.c (register_move_cost): New function.
20693 (move_cost): Update comment.
20694 (init_move_cost, memory_move_secondary_cost): Replace
20695 REGISTER_MOVE_COST with register_move_cost.
20696 * postreload.c (reload_cse_simplify_set): (Ditto.).
20697 * reload.c (find_valid_class, find_reloads): (Ditto.).
20698 * reload1.c (choose_reload_regs): (Ditto.).
20699 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
20700 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
20701 * doc/md.texi (can_create_pseudo_p): Update documentation.
20702
20703 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20704 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20705 * config/i386/i386.h (ix86_memory_move_cost): Make static.
20706 (TARGET_MEMORY_MOVE_COST): Define.
20707
20708 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20709 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
20710 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
20711 (TARGET_MEMORY_MOVE_COST): Define.
20712
20713 2010-06-27 Richard Guenther <rguenther@suse.de>
20714
20715 PR tree-optimization/44683
20716 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
20717 false edge from the inverted condition.
20718
20719 2010-06-27 Richard Guenther <rguenther@suse.de>
20720
20721 PR middle-end/44684
20722 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
20723 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
20724 for register LHS. Or non-store assignments.
20725
20726 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
20727
20728 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
20729 (sparc_emit_set_const64): Likewise. Remove disabled code.
20730 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
20731 (sparc_emit_set_const64): Likewise.
20732
20733 2010-06-26 Catherine Moore <clm@codesourcery.com>
20734
20735 * config/mips/mips.md (alu_type): New attribute.
20736 (type): Infer type from alu_type.
20737 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
20738 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
20739 *subsi3_extended, negsi2, negdi2, *low<mode>,
20740 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
20741 xor<mode>3, *nor<mode>3,
20742 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
20743 *zero_extendhi_truncqi): Set alu_type instead of type.
20744
20745 2010-06-26 Douglas B Rupp <rupp@gnat.com>
20746
20747 * config/alpha/alpha.c (alpha_need_linkage): Adjust
20748 splay_tree_new_ggc call.
20749 (alpha_use_linkage): Likewise.
20750
20751 2010-06-26 Joseph Myers <joseph@codesourcery.com>
20752
20753 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
20754 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
20755 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
20756 (static_specs): Remove switches_need_spaces.
20757 (process_command, do_self_spec): Hardcode handling "-o" instead of
20758 checking switches_need_spaces.
20759 * system.h (SWITCHES_NEED_SPACES): Poison.
20760
20761 2010-06-26 Richard Guenther <rguenther@suse.de>
20762
20763 PR tree-optimization/44393
20764 * tree-loop-distribution.c (generate_loops_for_partition): Fix
20765 stmt removal and VOP renaming.
20766 (generate_memset_zero): Remove redundant stmt updating.
20767 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
20768 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
20769
20770 2010-06-26 Jan Hubicka <jh@suse.cz>
20771
20772 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
20773 edges comming from header are equivalent.
20774 (visit_bb): Handle PHIs correctly.
20775 * tree-inline.c (copy_phis_for_bb): Be able to copy
20776 PHI from entry edge.
20777 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
20778
20779 2010-06-26 Richard Guenther <rguenther@suse.de>
20780
20781 PR middle-end/44674
20782 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
20783 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
20784
20785 2010-06-26 Joseph Myers <joseph@codesourcery.com>
20786
20787 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
20788 add_infile, alloc_switch): New.
20789 (process_command): Remove variable lang_n_infiles. Process
20790 options in a single pass. Use new functions for allocating
20791 infiles and switches arrays. Properly skip operands of
20792 -Xpreprocessor and -Xassembler.
20793
20794 2010-06-26 Jan Hubicka <jh@suse.cz>
20795
20796 PR middle-end/44671
20797 * cgraphunit.c (cgraph_function_versioning): Remove wrong
20798 cgraph_make_decl_local call; fix typo copying RTL data.
20799
20800 2010-06-25 DJ Delorie <dj@redhat.com>
20801
20802 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
20803 (m32c_output_aligned_common): Likewise.
20804 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20805 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20806 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
20807 (m32c_register_pragmas): Register it.
20808 * config/m32c/m32c.c (m32c_get_pragma_address): New.
20809 (m32c_insert_attributes): Set #pragma address decls volatile.
20810 (pragma_entry_eq): New.
20811 (pragma_entry_hash): New.
20812 (m32c_note_pragma_address): New.
20813 (m32c_get_pragma_address): New.
20814 (m32c_output_aligned_common): New.
20815 * doc/extend.texi: Document the new pragma.
20816
20817 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
20818 also.
20819 * config/m32c/predicates.md (m32c_any_operand): Check the code
20820 instead of memory_operand so as to allow matching volatile MEMs.
20821 (m32c_nonimmediate_operand): Likewise.
20822 (mra_operand): Allow volatiles.
20823
20824 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
20825
20826 PR debug/44610
20827 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
20828 address if the offset is unknown.
20829
20830 2010-06-25 Douglas B Rupp <rupp@gnat.com>
20831
20832 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
20833 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
20834 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
20835 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
20836 to ia64_start_function. Invoke it.
20837 * config/ia64/ia64.c (ia64_start_function): Call new function
20838 dwarf2out_vms_debug_main_pointer.
20839
20840 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20841
20842 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
20843 statements computing the true predicate.
20844
20845 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20846
20847 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
20848 to boolean_true_node.
20849 (reset_bb_predicate): New.
20850 (predicate_bbs): Call reset_bb_predicate.
20851
20852 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20853
20854 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
20855 (tree_if_conversion): Returns true when something has been changed.
20856 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
20857 changed something.
20858
20859 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
20860
20861 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
20862 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
20863 * tree-if-conv.c: Include dbgcnt.h.
20864 (tree_if_conversion): Use if_conversion_tree to count the number of
20865 if-convertible loops.
20866
20867 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
20868
20869 * common.opt (fprefetch-loop-arrays): Re-define
20870 -fprefetch-loop-arrays as a tri-state option with the initial
20871 value of -1.
20872 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
20873 pass only when flag_prefetch_loop_arrays > 0.
20874 * toplev.c (process_options): Note that, with tri-states,
20875 flag_prefetch_loop_arrays>0 means prefetching is enabled.
20876 * config/i386/i386.c (override_options): Enable prefetching at -O3
20877 for a set of CPUs that sw prefetching is helpful.
20878 (software_prefetching_beneficial_p): New. Return TRUE if software
20879 prefetching is beneficial for the given CPU.
20880
20881 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
20882
20883 PR rtl-optimization/44326
20884 * implicit-zee.c (find_removable_zero_extends): Replace
20885 INSN_P with NONDEBUG_INSN_P.
20886
20887 2010-06-25 Martin Jambor <mjambor@suse.cz>
20888
20889 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
20890 (struct ipa_node_params): Removed the modification_analysis_done flag.
20891 (ipa_is_param_modified): Removed.
20892 (ipa_analyze_node): Declare.
20893 (ipa_compute_jump_functions): Remove declaration.
20894 (ipa_count_arguments): Likewise.
20895 (ipa_detect_param_modifications): Likewise.
20896 (ipa_analyze_params_uses): Likewise.
20897 * ipa-prop.c (struct param_analysis_info): New type.
20898 (visit_store_addr_for_mod_analysis): Removed.
20899 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
20900 moved down in the file.
20901 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
20902 (ipa_count_arguments): Made static.
20903 (mark_modified): New function.
20904 (is_parm_modified_before_call): New function.
20905 (compute_pass_through_member_ptrs): New parameter parms_info, call
20906 is_parm_modified_before_call instead of ipa_is_param_modified.
20907 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
20908 it to compute_pass_through_member_ptrs.
20909 (ipa_compute_jump_functions): New parameter parms_info, pass it to
20910 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
20911 on the callee if it is analyzed. Made static.
20912 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
20913 is_parm_modified_before_call instead of ipa_is_param_modified.
20914 (ipa_analyze_call_uses): New parameter parms_info, pass it to
20915 ipa_analyze_indirect_call_uses.
20916 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
20917 ipa_analyze_call_uses.
20918 (ipa_analyze_params_uses): New parameter parms_info, pass it to
20919 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
20920 (ipa_analyze_node): New function.
20921 (ipa_print_node_params): Do not dump the modified flag.
20922 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
20923 it. Do not stream the modified parameter flag.
20924 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
20925 it. Do not stream the modified parameter flag.
20926 * ipa-cp.c (ipcp_analyze_node): Removed.
20927 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
20928 with only a call to ipa_analyze_node.
20929 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
20930 node with only a call to ipa_analyze_node.
20931
20932 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
20933
20934 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
20935
20936 2010-06-25 Jan Hubicka <jh@suse.cz>
20937
20938 * tree-pass.h (pass_split_functions): Declare.
20939 * opts.c (decode_options): Enable function splitting at -O2
20940 * timevar.def (TV_IPA_FNSPLIT): New macro.
20941 * ipa-split.c: New file.
20942 * common.opt (-fpartial-inlining): New flag.
20943 * Makefile.in (ipa-split.o): New object file.
20944 * passes.c (init_optimization_passes): Add ipa-split.
20945 * params.def (partial-inlining-entry-probability): New parameters.
20946 * doc/invoke.texi (-fpartial-inlining): New.
20947
20948 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
20949
20950 PR 44665
20951 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
20952 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
20953 (gimplify_expr): Likewise.
20954
20955 2010-06-25 Martin Jambor <mjambor@suse.cz>
20956
20957 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
20958 statements instead of bailing out on them.
20959 (ipa_analyze_indirect_call_uses): Do not require that loads from the
20960 parameter are in the same BB as the condition. Update comments.
20961
20962 2010-06-25 Jakub Jelinek <jakub@redhat.com>
20963
20964 PR middle-end/43866
20965 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
20966 true or always false, return NULL_TREE.
20967 (tree_unswitch_single_loop): Optimize conditions even when reaching
20968 max-unswitch-level parameter. If num > 0, optimize first all conditions
20969 using entry checks, then do still reachable block discovery and consider
20970 only conditions in still reachable basic blocks in the loop.
20971
20972 PR tree-optimization/44539
20973 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
20974 the call doesn't have LHS, but has VDEF.
20975
20976 2010-06-25 Joseph Myers <joseph@codesourcery.com>
20977
20978 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
20979 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
20980 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
20981 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
20982 * system.h (MODIFY_TARGET_NAME): Poison.
20983
20984 2010-06-25 Alan Modra <amodra@gmail.com>
20985
20986 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
20987 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
20988 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
20989 CMODEL_LARGE as default.
20990 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
20991 (offsettable_ok_by_alignment): Delete.
20992 (rs6000_emit_move): Remove mcmodel=medium optimization.
20993
20994 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
20995
20996 With large parts from Jim Wilson:
20997 PR target/43902
20998 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
20999 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21000 * optabs.c (optab_for_tree_code): Likewise.
21001 (expand_widen_pattern_expr): Likewise.
21002 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
21003 out of execute_optimize_widening_mul.
21004 (convert_plusminus_to_widen): New function.
21005 (execute_optimize_widening_mul): Use the two new functions.
21006 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
21007 Remove code to generate widening multiply-accumulate. Add support
21008 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21009 * gimple-pretty-print.c (dump_ternary_rhs): New function.
21010 (dump_gimple_assign): Call it when appropriate.
21011 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
21012 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
21013 (expand_gimple_stmt_1): Likewise.
21014 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
21015 WIDEN_MULT_MINUS_EXPR.
21016 * tree-ssa-operands.c (get_expr_operands): Likewise.
21017 * tree-inline.c (estimate_operator_cost): Likewise.
21018 * gimple.c (extract_ops_from_tree_1): Renamed from
21019 extract_ops_from_tree. Add new arg for a third operand; fill it.
21020 (gimple_build_assign_stat): Support operations with three operands.
21021 (gimple_build_assign_with_ops_stat): Likewise.
21022 (gimple_assign_set_rhs_from_tree): Likewise.
21023 (gimple_assign_set_rhs_with_ops_1): Renamed from
21024 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
21025 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
21026 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
21027 WIDEN_MULT_MINUS_EXPR.
21028 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
21029 (extract_ops_from_tree_1): Adjust declaration.
21030 (gimple_assign_set_rhs_with_ops_1): Likewise.
21031 (gimple_build_assign_with_ops): Pass NULL for last operand.
21032 (gimple_build_assign_with_ops3): New macro.
21033 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
21034 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
21035 functions.
21036 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
21037 (verify_gimple_assign): Call it.
21038 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
21039 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
21040 functions for dealing with three-operand statements.
21041 * tree.c (commutative_ternary_tree_code): New function.
21042 * tree.h (commutative_ternary_tree_code): Declare it.
21043 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
21044 ternary statements.
21045 (gimple_assign_nonzero_warnv_p): Likewise.
21046 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
21047 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
21048 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
21049 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
21050 (struct hashtable_expr): New member ternary in the union.
21051 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
21052 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
21053 (iterative_hash_hashable_expr): Likewise.
21054 (print_expr_hash_elt): Handle EXPR_TERNARY.
21055 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
21056 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
21057 statements. Handle GIMPLE_TERNARY_RHS.
21058
21059 2010-06-25 Jan Hubicka <jh@suse.cz>
21060
21061 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
21062
21063 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
21064
21065 PR c/44517
21066 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
21067 parameters are not good.
21068 (c_parser_parameter_declaration): Error unknown type name if the type
21069 name can't start declaration specifiers.
21070
21071 2010-06-25 Joseph Myers <joseph@codesourcery.com>
21072
21073 * gcc.c (translate_options): Don't mention +e in comment.
21074 (process_command): Don't handle +e specially.
21075
21076 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
21077
21078 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
21079
21080 * ira-build.c (merge_hard_reg_conflicts): New function.
21081 (create_cap_allocno, copy_info_to_removed_store_destinations,
21082 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
21083 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
21084 (remove_unnecessary_allocnos, remove_low_level_allocnos)
21085 copy_nifo_to_removed_store_destination): Use them.
21086 * ira-lives.c (make_hard_regno_born): New function, split out of
21087 make_regno_born.
21088 (make_allocno_born): Likewise.
21089 (make_hard_regno_dead): New function, split out of make_regno_dead.
21090 (make_allocno_dead): Likewise.
21091 (inc_register_pressure): New function, split out of set_allocno_live.
21092 (dec_register_pressure): New function, split out of clear_allocno_live.
21093 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
21094 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
21095 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
21096 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
21097 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
21098 mark_pseudo_regno_live.
21099 (process_bb_node_lives): Use mark_pseudo_regno_live,
21100 make_hard_regno_born and make_allocno_dead.
21101 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
21102 set_allocno_live, clear_allocno_live): Delete functions.
21103
21104 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
21105 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
21106 functions.
21107 (ira_flattening): Use ira_parent_allocno.
21108 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
21109 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
21110
21111 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
21112 statement.
21113
21114 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
21115 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
21116 minmax_set_iter_cond, minmax_set_iter_next,
21117 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
21118 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
21119 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
21120 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
21121 uses changed.
21122
21123 * ira-int.h (struct live_range, live_range_t): Renamed from struct
21124 ira_allocno_live_range and allocno_live_range_t; all uses changed.
21125 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
21126 All uses changed.
21127
21128 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
21129
21130 * thumb2.md (thumb2_tlobits_cbranch): Delete.
21131 (peephole2 to convert zero_extract/compare of single bit to
21132 lshift/compare): New.
21133
21134 2010-06-24 Anatoly Sokolov <aesok@post.ru>
21135
21136 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
21137 recursive call and call to 'int_const_binop'.
21138 (build_range_check, fold_cond_expr_with_comparison, unextend,
21139 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
21140 multiple_of_p): Adjust call to const_binop.
21141
21142 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
21143
21144 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
21145 determine size of XFmode operand.
21146 (XFmode extended DFmode push splitter): Ditto.
21147 (XFmode extended SFmode push splitter): Ditto.
21148
21149 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
21150
21151 PR target/44588
21152 * config/i386/i386.md (extract_code): New.
21153 (<u>divmodqi4): Likewise.
21154 (divmodhiqi3): Likewise.
21155 (udivmodhiqi3): Likewise.
21156 (<u>divqi3): Remvoved.
21157
21158 2010-06-24 Jakub Jelinek <jakub@redhat.com>
21159
21160 PR middle-end/44492
21161 * recog.h (struct recog_data): Add is_asm field.
21162 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
21163 present in constraints of inline-asm operand and memory operand
21164 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
21165 (extract_insn): Initialize recog_data.is_asm.
21166 * doc/md.texi (Constraints): Document operand side-effect rules.
21167
21168 2010-06-24 Andi Kleen <ak@linux.intel.com>
21169
21170 * c-parser.c (c_parser_conditional_expression): Call
21171 warn_for_omitted_condop.
21172 * doc/invoke.texi: Document omitted condop warning.
21173
21174 2010-06-24 Nick Clifton<nickc@redhat.com>
21175
21176 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
21177 insn in the sequence is a jump insn before setting its label.
21178
21179 2010-06-24 Alan Modra <amodra@gmail.com>
21180
21181 * collect2.c (main): Match exactly --version and --help.
21182
21183 2010-06-24 DJ Delorie <dj@redhat.com>
21184
21185 * config/m32c/m32c-pragma.c: Don't include rtl.h.
21186
21187 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
21188
21189 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
21190 using X87MODEF mode iterator.
21191 (pushsf splitter): Macroize splitter using P mode iterator.
21192 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
21193 mode iterator.
21194
21195 (*movxf_internal): Rename from *movxf_integer.
21196 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
21197 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
21198 (*movdf_internal): Rename from *movdf_integer.
21199 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
21200 (*movsf_internal): Rename from *movdf_1.
21201
21202 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
21203
21204 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
21205 (const_gimple_seq_node): Removed typedefs.
21206
21207 * gimple.h (gimple_seq_node_d, gimple_seq_node)
21208 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
21209
21210 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
21211
21212 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
21213 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
21214 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
21215 and CODE_FOR_vec_extract_lo_v4df.
21216
21217 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
21218 Changed to define_insn_and_split.
21219 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
21220 (vec_extract_lo_v16hi): Likewise.
21221 (vec_extract_lo_v32qi): Likewise.
21222 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
21223 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
21224
21225 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
21226
21227 PR target/44640
21228 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
21229 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
21230 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
21231 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
21232 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
21233
21234 PR target/44640
21235 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
21236
21237 PR other/44644
21238 * df-core.c (struct df): Rename to df_d.
21239 * df.h (struct df): Likewise.
21240 * dse.h (struct df): Remove forward declaration.
21241 * recog.h (struct insn_data): Rename to:
21242 (struct_insn_data_d). Adjusted all users.
21243
21244 2010-06-23 Arnaud Charlet <charlet@adacore.com
21245
21246 PR ada/22220
21247 * doc/install.texi: Update requirements to build GNAT.
21248
21249 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
21250
21251 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
21252 enum type.
21253 (m68k_sched_attr_opx_type): Remove unreachable return.
21254 (m68k_sched_attr_opy_type): Likewise.
21255 (m68k_sched_attr_size): Likewise.
21256 (sched_get_opxy_mem_type): Likewise.
21257 (m68k_sched_attr_op_mem): Likewise.
21258
21259 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
21260
21261 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
21262 new statement and adjust VDEF only if necessary. Remove superfluous
21263 call to maybe_clean_or_replace_eh_stmt.
21264 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
21265 copy the flags.
21266 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
21267 * tree-inline.c (copy_bb): ...and not there.
21268
21269 2010-06-22 Cary Coutant <ccoutant@google.com>
21270
21271 * dwarf2out.c (is_nested_in_subprogram): New function.
21272 (should_move_die_to_comdat): Use it.
21273 (copy_ancestor_tree): Don't mark DIEs here.
21274 (copy_decls_walk): Start walk from root of newly-added tree;
21275 mark DIEs here instead.
21276
21277 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
21278
21279 * config/i386/i386.md (unit): Also check sseishft1.
21280
21281 2010-06-22 Jan Hubicka <jh@suse.cz>
21282
21283 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
21284 enabled.
21285
21286 2010-06-22 Jan Hubicka <jh@suse.cz>
21287
21288 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
21289 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
21290 Return true if something changed.
21291 * df.h (df_confluence_function_n): Return bool.
21292 * df-core.c (df_worklist_propagate_forward,
21293 df_worklist_propagate_backward): Track changes and ages.
21294 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
21295 track ages.
21296 * dse.c (dse_confluence_n): Return always true.
21297
21298 2010-06-22 Jan Hubicka <jh@suse.cz>
21299
21300 * bitmap.c (bitmap_clear_bit): Micro optimize.
21301
21302 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
21303
21304 * config/i386/i386.md (SWI1248x): New mode iterator.
21305 (SWI48x): Ditto.
21306 (SWI12): Ditto.
21307 (SWI24): Ditto.
21308
21309 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
21310 SWI1248x mode iterator.
21311 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
21312 using SWI124 mode iterator.
21313 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
21314 mode iterator.
21315 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
21316 *pushdi2_prologue_rex64 using P mode iterator.
21317 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
21318 using SWI48 mode iterator.
21319 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
21320 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
21321 using SWI1248x mode iterator.
21322 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
21323 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
21324 SWI48 mode iterator.
21325 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
21326 iterator.
21327 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
21328 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
21329 SWI12 mode iterator.
21330 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
21331 SWI12 mode iterator.
21332 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
21333 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
21334 SWI24 mode iterator.
21335 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
21336 SWI48 mode iterator.
21337 (mov<mode>_insn_1): New expander.
21338 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
21339 using SWI48x mode iterator.
21340
21341 (*movoi_internal_avx): Rename from *movoi_internal.
21342 (*movti_internal_rex64): Rename from *movti_rex64.
21343 (*movti_internal_sse): Rename from *movti_sse.
21344 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
21345 (*movdi_internal): Rename from *movdi_2.
21346 (*movsi_internal): Rename from *movsi_1.
21347 (*movhi_internal): Rename from *movhi_1.
21348 (*movqi_internal): Rename from *movqi_1.
21349
21350 (insv): Update the call to gen_movsi_insv_1 for rename.
21351 * config/i386/i386.c (promote_duplicated_reg): Ditto.
21352
21353 2010-06-22 Jan Hubicka <jh@suse.cz>
21354
21355 * passes.c (execute_function_todo): Move call of statistics_fini_pass
21356 to ...
21357 (execute_todo) ... this one.
21358
21359 2010-06-22 Alan Modra <amodra@gmail.com>
21360
21361 PR target/44364
21362 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21363 * caller-save.c (insert_restore, insert_save): Use non-validate
21364 form of adjust_address.
21365
21366 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21367
21368 PR target/39690
21369 * config/pa/pa.c (override_options): Disable
21370 -freorder-blocks-and-partition.
21371
21372 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
21373
21374 PR target/44615
21375 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
21376
21377 * config/i386/i386.md (type): Add sseishft1
21378
21379 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
21380 (ppro_insn_load): Likewise.
21381 (ppro_insn_store): Likewise.
21382 (ppro_insn_both): Likewise.
21383
21384 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
21385 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
21386 for type.
21387 (*vec_extractv2di_1_avx): Likewise.
21388 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
21389 type. Remove atom_unit.
21390 (*vec_extractv2di_1_sse2): Likewise.
21391
21392 2010-06-21 DJ Delorie <dj@redhat.com>
21393
21394 * diagnostic.h (diagnostic_classification_change_t): New.
21395 (diagnostic_context): Add history and push/pop list.
21396 (diagnostic_push_diagnostics): Declare.
21397 (diagnostic_pop_diagnostics): Declare.
21398 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
21399 from pragmas in a history chain instead of the global table.
21400 (diagnostic_push_diagnostics): New.
21401 (diagnostic_pop_diagnostics): New.
21402 (diagnostic_report_diagnostic): Scan history chain to find state
21403 of diagnostics as of the diagnostic location.
21404 * opts.c (set_option): Pass UNKNOWN_LOCATION to
21405 diagnostic_classify_diagnostic.
21406 (enable_warning_as_error): Likewise.
21407 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
21408 use in the history chain.
21409 * doc/extend.texi: Document pragma GCC diagnostic changes.
21410
21411 2010-06-21 Jakub Jelinek <jakub@redhat.com>
21412
21413 * dwarf2out.c (add_linkage_name): New function. Don't add
21414 anything to DW_TAG_member DIEs.
21415 (add_name_and_src_coords_attributes): Use it.
21416 (gen_variable_die): Call it for C++ static data members if
21417 specification is DW_TAG_member.
21418
21419 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
21420 C++ char16_t and char32_t.
21421
21422 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
21423 * genattrtab.c: Include vecprim.h.
21424 (cached_attrs, cached_attr_count, attrs_seen_once,
21425 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
21426 attrs_cached_after): New variables.
21427 (find_attrs_to_cache): New function.
21428 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
21429 (write_test_expr): Add attrs_cached argument, return it too,
21430 attempt to cache non-const attributes used more than once in
21431 a single case handling.
21432 (write_attr_get): Use find_attrs_to_cache, for caching candidates
21433 emit cached_* variables. Adjust write_attr_set callers.
21434 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
21435 to find attributes that should be cached in this block. Adjust
21436 write_test_expr callers.
21437 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
21438 callers.
21439 (make_automaton_attrs): Adjust write_test_expr caller.
21440
21441 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
21442 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
21443 (make_automaton_attrs): If find_tune_attr returns non-NULL,
21444 write separate internal_dfa_insn_code_* and insn_default_latency_*
21445 functions for each attribute's value and emit init_sched_attrs
21446 function and function pointers.
21447 * genattr.c (const_attrs, reservations): New variables.
21448 (gen_attr): Add const attributes to const_attrs vector.
21449 (check_tune_attr, find_tune_attr): New functions.
21450 (main): Add reservations to reservations vector. If find_tune_attr
21451 returns true, add prototype for init_sched_attrs and make
21452 internal_dfa_insn_code and insn_default_latency function pointers,
21453 otherwise define init_sched_attrs as dummy macro.
21454 * cfgexpand.c: Include insn-attr.h.
21455 (gimple_expand_cfg): Call init_sched_attrs.
21456
21457 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
21458
21459 PR target/44575
21460 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
21461 va_arg from a set of register save slots into a temporary,
21462 if the container is bigger than type size, do the copying
21463 using smaller mode or using memcpy.
21464
21465 PR bootstrap/44426
21466 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
21467 prototype.
21468 (sel_print_to_dot): Remove macro.
21469 (sel_print): Likewise. New prototype.
21470 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
21471 (sel_print): New function.
21472
21473 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21474
21475 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
21476 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
21477
21478 2010-06-21 Nick Clifton <nickc@redhat.com>
21479
21480 * config/rx/rx.h (PTRDIFF_TYPE): Define.
21481 (SMALL_REGISTER_CLASS): Define (to zero).
21482 (PRINT_OPERAND): Delete.
21483 (PRINT_OPERAND_ADDRESS): Delete.
21484 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
21485 (rx_print_operand_address): Delete prototype.
21486 * config/rx/rx.c (rx_print_operand): Make static.
21487 Allow %H and %L to handle CONST_DOUBLEs.
21488 (rx_print_operand_address): Make static.
21489 (rx_gen_move_template): Rename local variable 'template' to
21490 out_template.
21491 (rx_function_arg): Do not pass unknown sized objects in registers.
21492 (TARGET_PRINT_OPERAND): Define.
21493 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21494
21495 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
21496
21497 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
21498
21499 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
21500
21501 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
21502 stack-alignment for simple leaf-functions.
21503
21504 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
21505
21506 * doc/install.texi: Document bootstrap-lto.
21507
21508 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
21509
21510 PR debug/44248
21511 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
21512 (input_function): Drop them here, if VTA is disabled.
21513
21514 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
21515
21516 PR target/44546
21517 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
21518 New predicate.
21519 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
21520 ix86_swapped_fp_comparsion_operator instead of
21521 ix86_fp_comparison_operator.
21522
21523 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
21524 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
21525 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
21526 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
21527 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
21528 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
21529
21530 2010-06-20 Joseph Myers <joseph@codesourcery.com>
21531
21532 PR other/32998
21533 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
21534 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
21535 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
21536 (decode_cmdline_option): Update for this return value. Set
21537 orig_option_with_args_text field. Set arg field for unknown
21538 options. Make static.
21539 (decode_cmdline_options_to_array): New.
21540 (prune_options): Update handling of find_opt return value.
21541 * opts.c (read_cmdline_option): Take decoded option. Return void.
21542 (read_cmdline_options): Take decoded options.
21543 (decode_options): Add parameters for decoded options. Use
21544 decode_cmdline_options_to_array. Use decoded options for -O
21545 scan. Use integral_argument for -O parameters. Update call to
21546 read_cmdline_options.
21547 (enable_warning_as_error): Update handling of find_opt return value.
21548 * opts.h: Update comment on unknown options.
21549 (struct cl_decoded_option): Update comments on opt_index and arg.
21550 Add orig_option_with_args_text.
21551 (decode_cmdline_option): Remove.
21552 (decode_cmdline_options_to_array): Declare.
21553 (decode_options): Update prototype.
21554 * toplev.c (save_argv): Remove.
21555 (save_decoded_options, save_decoded_options_count): New.
21556 (read_integral_parameter): Remove.
21557 (print_switch_values): Use decoded options.
21558 (toplev_main): Don't set save_argv. Update call to decode_options.
21559 * toplev.h (read_integral_parameter): Remove.
21560 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
21561
21562 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
21563
21564 PR target/44072
21565 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
21566 immediate.
21567 * constraints.md (Pw, Px): New constraints.
21568 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
21569
21570 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
21571
21572 * config/i386/sse.md (fma4modesuffixf4): Removed.
21573 (ssemodesuffixf2s): Likewise.
21574 (ssemodesuffixf4): Likewise.
21575 (ssemodesuffixf2c): Likewise.
21576 (ssescalarmodesuffix2s): Likewise.
21577 (avxmodesuffixf2c): Likewise.
21578 (ssemodesuffix): New.
21579 (ssescalarmodesuffix): Likewise.
21580 Update patterns with ssemodesuffix and ssescalarmodesuffix.
21581
21582 2010-06-19 Philip Herron <herron.philip@googlemail.com>
21583
21584 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
21585
21586 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
21587
21588 * stor-layout.c (debug_rli): Remove unused local variables.
21589
21590 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
21591
21592 PR rtl-optimization/40900
21593 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
21594 original expression for later reuse.
21595 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
21596 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
21597
21598 2010-06-18 Anatoly Sokolov <aesok@post.ru>
21599
21600 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
21601 double_int_fits_in_uhwi_p): Implement as static inline.
21602 (double_int_xor): New inline function.
21603 (double_int_lrotate, double_int_rrotate, double_int_max,
21604 double_int_umax, double_int_smax, double_int_min, double_int_umin,
21605 double_int_smin): Declare.
21606 (lrotate_double, rrotate_double): Remove declaration.
21607 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
21608 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
21609 (double_int_lrotate, double_int_rrotate, double_int_max,
21610 double_int_umax, double_int_smax, double_int_min, double_int_umin,
21611 double_int_smin): New function.
21612 * fold-const.c (int_const_binop): Clean up, use double_int_*
21613 functions.
21614 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
21615 double_int_* and immed_double_int_const functions.
21616
21617 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
21618
21619 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
21620 * function.c (types_used_by_cur_var_decl): Likewise.
21621 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
21622
21623 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
21624
21625 * tree.h (record_layout_info): Change type of pending_statics field
21626 to a VEC.
21627 * stor-layout.c (start_record_layout): Store NULL into
21628 pending_statics.
21629 (debug_rli): Call debug_vec_tree instead of debug_tree.
21630 (place_field): Likewise.
21631 (finish_record_layout): Likewise.
21632
21633 2010-06-18 Alan Modra <amodra@gmail.com>
21634
21635 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
21636
21637 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21638
21639 PR target/43740
21640 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
21641 for SET source operand from SET destination operand.
21642
21643 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
21644
21645 PR rtl-optimization/39871
21646 * reload1.c (init_eliminable_invariants): For flag_pic, disable
21647 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
21648 (function_invariant_p): Rule out a plus of frame or arg pointer with
21649 a SYMBOL_REF.
21650 * ira.c (find_reg_equiv_invariant_const): Likewise.
21651
21652 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
21653
21654 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
21655 print_operand_address and puts to output the operand for CONST.
21656
21657 2010-06-17 Jakub Jelinek <jakub@redhat.com>
21658
21659 PR debug/44572
21660 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
21661 hook.
21662
21663 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21664
21665 * v850-protos.h (print_operand): Delete.
21666 (print_operand_address): Delete.
21667 * v850.h (PRINT_OPERAND): Delete.
21668 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21669 (PRINT_OPERAND_ADDRESS): Delete.
21670 * v850.c (print_operand_address): Rename to...
21671 (v850_print_operand_address): ...this. Make static. Call
21672 v850_print_operand.
21673 (print_operand): Rename to...
21674 (v850_print_operand): ...this. Make static. Call
21675 v850_print_operand_address.
21676 (v850_print_operand_punct_valid_p): New function.
21677 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21678 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21679
21680 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21681
21682 * config/sh/sh-protos.h (print_operand): Delete.
21683 (print_operand_address): Delete.
21684 * config/sh/sh.h (PRINT_OPERAND): Delete.
21685 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21686 (PRINT_OPERAND_ADDRESS): Delete.
21687 * config/sh/sh.c (sh_print_operand_address): Make static.
21688 (sh_print_operand): Make static. Call sh_print_operand_address
21689 and sh_print_operand.
21690 (sh_print_operand_punct_valid_p): New function.
21691 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21692 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21693
21694 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21695
21696 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
21697 (mcore_print_operand_address): Delete.
21698 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
21699 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21700 (PRINT_OPERAND_ADDRESS): Delete.
21701 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
21702 (mcore_print_operand): Make static.
21703 (mcore_print_operand_punct_valid_p): New function.
21704 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
21705 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21706
21707 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21708
21709 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
21710 (print_operand_address): Delete.
21711 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
21712 (PRINT_OPERAND_ADDRESS): Delete.
21713 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
21714 static.
21715 (m68hc11_print_operand): Make static.
21716 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21717
21718 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21719
21720 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
21721 (m32r_print_operand_address): Delete.
21722 * config/m32r/m32r.h (m32r_punct_chars): Delete.
21723 (PRINT_OPERAND): Delete.
21724 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21725 (PRINT_OPERAND_ADDRESS): Delete.
21726 * config/m32r/m32r.c (m32r_punct_chars): Make static.
21727 (m32r_print_operand_address): Make static.
21728 (m32r_print_operand): Make static.
21729 (m32r_print_operand_punct_valid_p): New function.
21730 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21731 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21732
21733 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21734
21735 * config/iq2000/iq2000-protos.h (print_operand): Delete.
21736 (print_operand_address): Delete.
21737 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
21738 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21739 (PRINT_OPERAND_ADDRESS): Delete.
21740 (iq2000_print_operand_punct): Delete.
21741 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
21742 (iq2000_print_operand_address): Make static.
21743 (iq2000_print_operand): Make static.
21744 (iq2000_print_operand_punct_valid_p): New function.
21745 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21746 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21747
21748 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21749
21750 * config/frv/frv-protos.h (frv_print_operand): Delete.
21751 (frv_print_operand_address): Delete.
21752 * config/frv/frv.h (PRINT_OPERAND): Delete.
21753 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21754 (PRINT_OPERAND_ADDRESS): Delete.
21755 * config/frv/frv.c (frv_print_operand_address): Make static.
21756 (frv_print_operand): Make static.
21757 (frv_print_operand_punct_valid_p): New function.
21758 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21759 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21760
21761 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
21762
21763 * tree.h (vec_member): Declare.
21764 * tree.c (vec_member): Define.
21765
21766 2010-06-17 Richard Guenther <rguenther@suse.de>
21767
21768 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
21769 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
21770
21771 2010-06-17 Richard Guenther <rguenther@suse.de>
21772
21773 * tree-inline.c (declare_return_variable): Remove bogus code.
21774
21775 2010-06-17 Richard Guenther <rguenther@suse.de>
21776
21777 * gimplify.c (gimplify_bind_expr): Always promote complex
21778 and vector variables to registers if possible.
21779
21780 2010-06-17 Richard Guenther <rguenther@suse.de>
21781
21782 * expr.c (get_inner_reference): Use double_int for bit_offset
21783 calculation.
21784
21785 2010-06-16 DJ Delorie <dj@redhat.com>
21786
21787 * common.opt (-fstrict-volatile-bitfields): new.
21788 * doc/invoke.texi: Document it.
21789 * fold-const.c (optimize_bit_field_compare): For volatile
21790 bitfields, use the field's type to determine the mode, not the
21791 field's size.
21792 * expr.c (expand_assignment): Likewise.
21793 (get_inner_reference): Likewise.
21794 (expand_expr_real_1): Likewise.
21795 * expmed.c (store_fixed_bit_field): Likewise.
21796 (extract_bit_field_1): Likewise.
21797 (extract_fixed_bit_field): Likewise.
21798
21799 2010-06-16 Richard Guenther <rguenther@suse.de>
21800
21801 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
21802
21803 2010-06-16 Douglas B Rupp <rupp@gnat.com>
21804
21805 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
21806 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
21807 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
21808 * debug.c: Likewise.
21809 * sdbout.c: Likewise.
21810 * vmsdbgout.c: Likewise.
21811 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
21812 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
21813 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
21814 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
21815 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
21816 * dwarf2out.c (dw_fde_struct): New fields
21817 dw_fde_vms_{end,begin}_prologue.
21818 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
21819 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
21820 (dwarf2out_vms_end_prologue): New function.
21821 (dwarf2out_vms_begin_epilogue): New function.
21822 (dw_val_struct): New value dw_val_class_vms_delta.
21823 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
21824 begin_epilogue for VMS.
21825 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
21826 new static functions.
21827 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
21828 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
21829 static functions.
21830 (print_die): New case dw_val_class_vms_delta.
21831 (attr_checksum): Likewise.
21832 (same_dw_val_p: Likewise.
21833 (size_of_die): Likewise.
21834 (value_format): Likewise.
21835 (output_die): Likewise.
21836 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
21837 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
21838 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
21839 dwarf2out_cfi_begin_epilogue
21840 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
21841
21842 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
21843
21844 * config/cris/cris-protos.h (cris_print_operand): Delete.
21845 (cris_print_operand_address): Delete.
21846 * config/cris/cris.h (PRINT_OPERAND): Delete.
21847 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21848 (PRINT_OPERAND_ADDRESS): Delete.
21849 * config/cris/cris.c (cris_print_operand_address): Make static.
21850 (cris_print_operand): Make static.
21851 (cris_print_operand_punct_valid_p): New function.
21852 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21853 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21854
21855 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
21856
21857 * config/arm/arm-protos.h (arm_print_operand): Delete.
21858 (arm_print_operand_address): Delete.
21859 * config/arm/arm.h (PRINT_OPERAND): Delete.
21860 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21861 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
21862 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
21863 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
21864 (arm_print_operand): Make static.
21865 (arm_print_operand_punct_valid_p): New function.
21866 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
21867 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21868
21869 2010-06-16 Nick Clifton <nickc@redhat.com>
21870
21871 * config/rx/constraints.md (NEGint4): New constraint.
21872 * config/rx/rx.md (attr cc): Add set_zsc.
21873 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
21874 initialised.
21875 (cmpsf): Likewise.
21876 (call_internal): Clobber the cc0 register.
21877 (call_value_internal): Likewise.
21878 (cstoresi4): Likewise.
21879 (movsieq): Likewise.
21880 (movsine): Likewise.
21881 (addsi3): Add alternative to handle small negative constants.
21882 (sunsi3): Likewise.
21883 (addsi3): Do not set the O bit in the cc0 register.
21884 (adddi3): Likewise.
21885 (subsi3): Likewise.
21886 (subdi3): Likewise.
21887 (andsi3): Reorder alternatives to prefer shorter forms.
21888 (mulsi3): Likewise.
21889 (iorsi3): Likewise.
21890 (negsi2): Note that the cc0 flags are set.
21891 (rotlsi3): Note that only the Z and S bits are set in cc0.
21892 (lshrsi3): Likewise.
21893 (ashlsi3): Likewise.
21894 (subsf3): Use %Q for the MEM operand.
21895 (fix_truncsfsi2): Likewise.
21896 (floatsisf2): Likewise.
21897 (bitset): Remove early clobber from destination.
21898 (bitset_in_memory): Likewise.
21899 (lrintsf2): Clobber the cc0 register.
21900 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
21901 (rx_print_operand): Handle %N.
21902
21903 2010-06-16 Jan Hubicka <jh@suse.cz>
21904
21905 * df-core.c (df_compact_blocks): Free problem_temps vector.
21906
21907 2010-06-16 Martin Jambor <mjambor@suse.cz>
21908
21909 PR tree-optimization/43905
21910 * tree-sra.c: Include tree-inline.h.
21911 (create_abstract_origin): Removed.
21912 (modify_function): Version the call graph node instead of creating
21913 abstract origins and dealing with same_body aliases.
21914 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
21915 function is versionable.
21916 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
21917
21918 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
21919
21920 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
21921 (CHOOSE_DYNAMIC_LINKER): Update.
21922
21923 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
21924
21925 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
21926 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
21927 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
21928 *prefetch_3dnow_rex.
21929
21930 2010-06-15 Anatoly Sokolov <aesok@post.ru>
21931
21932 * target.h (struct asm_out):Add declare_constant_name field.
21933 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21934 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
21935 * output.h (default_asm_declare_constant_name): Declare.
21936 (assemble_label): Update prototype.
21937 * varasm.c (assemble_constant_contents): Use
21938 targetm.asm_out.declare_constant_name target hook.
21939 (assemble_label): Add 'file' argument.
21940 (default_asm_declare_constant_name): New function.
21941 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
21942 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
21943 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
21944
21945 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
21946 * config/darwin.c (darwin_asm_declare_constant_name): New function.
21947 (machopic_output_indirection): Update assemble_label argument list.
21948 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
21949 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
21950
21951 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
21952
21953 PR middle-end/44391
21954 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21955 size_one_node for pointer types. Do not call gmp_cst_to_tree.
21956
21957 2010-06-15 Richard Guenther <rguenther@suse.de>
21958
21959 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
21960
21961 2010-06-15 Paul Brook <paul@codesourcery.com>
21962
21963 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
21964 hard-float ABI.
21965
21966 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
21967
21968 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
21969 don't get a vector type for output.
21970
21971 2010-06-15 Jakub Jelinek <jakub@redhat.com>
21972
21973 PR fortran/44536
21974 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
21975 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
21976 (LANG_HOOKS_DECLS): Add it.
21977 * gimplify.c (omp_notice_variable): Call
21978 lang_hooks.decls.omp_report_decl.
21979
21980 2010-06-15 Martin Jambor <mjambor@suse.cz>
21981
21982 PR lto/44464
21983 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
21984 on the newly dead SSA name.
21985
21986 2010-06-15 Alan Modra <amodra@gmail.com>
21987
21988 * doc/invoke.texi: Add mcmodel to powerpc options.
21989 * configure.ac: Add HAVE_LD_LARGE_TOC test.
21990 * configure: Regenerate.
21991 * config.in: Regenerate.
21992 * config/rs6000/linux64.opt (mcmodel): New.
21993 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
21994 (TARGET_CMODEL, SET_CMODEL): Define.
21995 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
21996 select CMODEL_MEDIUM default.
21997 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
21998 (TARGET_CMODEL): Define default.
21999 * config/rs6000/rs6000.c (cmodel): New variable.
22000 (rs6000_explicit_options): Add cmodel field.
22001 (rs6000_handle_option): Handle -mcmodel.
22002 (create_TOC_reference): Add largetoc_reg param. Generate high,
22003 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
22004 (rs6000_delegitimize_address): Recognise new toc reference rtl
22005 and minimal-toc rtl.
22006 (rs6000_legitimize_reload_address): Handle new toc references.
22007 (print_operand_address): Handle legitimate_constant_pool_address_p
22008 match before lo_sum.
22009 (rs6000_eliminate_indexed_memrefs): Tidy.
22010 (rs6000_emit_move): Tweak threshold for inlining constants.
22011 Keep rs6000_emit_allocate_stack large stack frame offsets
22012 loaded into r0 inline.
22013 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
22014 (tocrel_base, tocrel_offset): New variables.
22015 (toc_relative_expr_p): Set them here.
22016 (print_operand_address): Skip over any offset on constant pool address.
22017 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
22018 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
22019 (offsettable_ok_by_alignment): New function.
22020 (rs6000_emit_move): Address suitably aligned local symbol_refs
22021 relative to the toc pointer for -mcmodel=medium.
22022 (legitimate_constant_pool_address_p): Make param const_rtx. Add
22023 strict param. Allow lo_sum version of addressing. Verify reg
22024 used for -mminimal-toc and -mcmodel != small. Update all callers.
22025 * config/rs6000/constraints.md: Update for above change.
22026 * config/rs6000/predicates.md: Likewise.
22027 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
22028 code.
22029 (tls_gd): Split for -mcmodel=medium/large.
22030 (tls_gd_high, tls_gd_low): New.
22031 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
22032 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
22033 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
22034 (largetoc_high, largetoc_low): New.
22035 (cmptf_internal2): Add clobber.
22036 * config/rs6000/rs6000-protos.h: Update.
22037
22038 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
22039
22040 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
22041 true if no prefetch is going to be generated for a given group.
22042 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
22043 estimate the prefetch_count.
22044 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
22045 prefetch count by considering the unroll_factor and prefetch_mod
22046 for is_loop_prefetching_profitable.
22047
22048 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
22049
22050 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
22051 anything if the argument is not a MEM.
22052
22053 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
22054
22055 PR debug/43650
22056 PR debug/44181
22057 PR debug/44247
22058 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
22059 debug stmts.
22060 (canonicalize_loop_ivs): Likewise.
22061
22062 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
22063
22064 PR debug/43656
22065 * haifa-sched.c (setup_insn_reg_pressure_info,
22066 update_register_pressure): Reject debug insns.
22067 (ready_sort): Don't setup reg pressure for debug insns.
22068 (schedule_insn): Don't update reg pressure for debug insns.
22069
22070 2010-06-14 Richard Guenther <rguenther@suse.de>
22071
22072 * lto-streamer.c (cached_bp): Remove.
22073 (bitpack_delete): Likewise.
22074 (bitpack_create): Likewise.
22075 (bp_get_next_word): Likewise.
22076 (bp_pack_value, bp_unpack_value): Move ...
22077 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
22078 Re-implement.
22079 (struct bitpack_d): Likewise.
22080 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
22081 New inline functions.
22082 * lto-streamer-out.c (lto_output_bitpack): Remove.
22083 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
22084 (pack_value_fields): Adjust.
22085 (lto_write_tree): Likewise.
22086 (output_gimple_stmt): Likewise.
22087 (output_function): Likewise.
22088 * lto-streamer-in.c (input_gimple_stmt): Adjust.
22089 (input_function): Likewise.
22090 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
22091 (lto_input_bitpack): Remove.
22092 (lto_materialize_tree): Adjust.
22093 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
22094 * lto-cgraph.c (lto_output_edge): Adjust.
22095 (lto_output_node): Likewise.
22096 (lto_output_varpool_node): Likewise.
22097 (lto_output_ref): Likewise.
22098 (input_node): Likewise.
22099 (input_varpool_node): Likewise.
22100 (input_ref): Likewise.
22101 (input_edge): Likewise.
22102 (output_node_opt_summary): Likewise.
22103 (input_node_opt_summary): Likewise.
22104 * ipa-pure-const.c (pure_const_write_summary): Likewise.
22105 (pure_const_read_summary): Likewise.
22106 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
22107 (ipa_read_indirect_edge_info): Likewise.
22108 (ipa_write_node_info): Likewise.
22109 (ipa_read_node_info): Likewise.
22110
22111 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
22112
22113 PR target/44534
22114 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
22115 (vec_extract_lo_v16hi): Likewise.
22116 (vec_extract_lo_v32qi): Likewise.
22117
22118 2010-06-14 Jakub Jelinek <jakub@redhat.com>
22119
22120 PR bootstrap/44426
22121 * tree.h (build_call_expr): Don't define as vararg macro, instead
22122 add a prototype.
22123 * builtins.c (build_call_nofold): Remove.
22124 (expand_builtin_int_roundingfn, expand_builtin_pow,
22125 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
22126 expand_builtin_memset_args, expand_builtin_strcmp,
22127 expand_builtin_strncmp, expand_builtin_memory_chk): Use
22128 build_call_nofold_loc instead of build_call_nofold.
22129 (build_call_expr): New function.
22130
22131 PR tree-optimization/44508
22132 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
22133 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
22134 don't eliminate trivially dead stmts.
22135 * tree-vrp.c (vrp_finalize): Pass false as last argument
22136 to substitute_and_fold.
22137 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
22138 to substitute_and_fold.
22139 * tree-ssa-ccp.c (ccp_finalize): Likewise.
22140
22141 PR bootstrap/44509
22142 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
22143
22144 2010-06-14 Ira Rosen <irar@il.ibm.com>
22145
22146 PR tree-optimization/44507
22147 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
22148 to build initial vector for BIT_AND_EXPR.
22149 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
22150
22151 2010-06-14 Jakub Jelinek <jakub@redhat.com>
22152
22153 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
22154 adjust z10prop set_attr.
22155
22156 2010-06-13 Jan Hubicka <jh@suse.cz>
22157
22158 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
22159 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
22160 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
22161 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
22162 datastructure checks into checking asserts.
22163 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
22164 * tree-ssa-sccvn.c (VN_INFO): Likewise.
22165 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
22166 df_ref_create_structure): Likewise.
22167 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
22168 pool_free): Use gcc_checking_assert.
22169 * alias.c (get_alias_set): Likewise.
22170 * var-tracking.c (variable_htab_free, shared_hash_copy,
22171 canonicalize_values_mark, variable_merge_over_cur): Likewise.
22172 * lto-streamer.c (bp_unpack_value): Likewise.
22173
22174 2010-06-13 Richard Guenther <rguenther@suse.de>
22175
22176 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
22177 Do not stream but initialize TYPE_CANONICAL to NULL.
22178 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
22179 * gimple.c (gimple_types_compatible_p): Disregard
22180 TYPE_STRUCTURAL_EQUALITY_P.
22181 (gimple_register_type): Use TYPE_CANONICAL as cache.
22182 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
22183 before registering common types.
22184 * config/i386/i386.c (ix86_function_arg_boundary): Do not
22185 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
22186 * tree.h (TYPE_CANONICAL): Clarify documentation.
22187
22188 2010-06-13 Anatoly Sokolov <aesok@post.ru>
22189
22190 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22191 LIBCALL_VALUE): Remove macros.
22192 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
22193 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22194 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22195 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
22196 (ia64_function_value): Make static. Handle receiving the function
22197 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
22198
22199 2010-06-12 Jan Hubicka <jh@suse.cz>
22200
22201 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
22202 at correct place.
22203
22204 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
22205
22206 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
22207
22208 2010-06-12 Jan Hubicka <jh@suse.cz>
22209
22210 * df-core.c (df_clear_bb_info): New function.
22211 (df_set_blocks): bb_info is always allocated.
22212 (df_get_bb_info): Use block_info_elt_size.
22213 (df_set_bb_info): Likewise.
22214 (df_compact_blocks): Update for new block_info.
22215 (grow_bb_info): New function.
22216 * df-problems.c (df_grow_bb_info): Move to df-core.c
22217 (df_rd_set_bb_info): Remove.
22218 (df_rd_free_bb_info): Do not free block pool.
22219 (df_rd_alloc): Do not create pool, use check for
22220 obstack presence instead of NULL pointer for new blocks.
22221 (df_rd_free): DO not free alloc pool; clear block_info.
22222 (problem_RD): Add size of block info structure.
22223 (df_lr_set_bb_info): Remove.
22224 (df_lr_free_bb_info): Do not free block pool.
22225 (df_lr_alloc): Do not create pool, use check for
22226 obstack presence instead of NULL pointer for new blocks.
22227 (df_lr_free): DO not free alloc pool; clear block_info.
22228 (problem_LR): Add size of block info structure.
22229 (df_live_set_bb_info): Remove.
22230 (df_live_free_bb_info): Do not free block pool.
22231 (df_live_alloc): Do not create pool, use check for
22232 obstack presence instead of NULL pointer for new blocks.
22233 (df_live_free): DO not free alloc pool; clear block_info.
22234 (problem_LIVE): Add size of block info structure.
22235 (problem_CHAIN): Add size of block info structure.
22236 (df_byte_lr_set_bb_info): Remove.
22237 (df_byte_lr_free_bb_info): Do not free block pool.
22238 (df_byte_lr_alloc): Do not create pool, use check for
22239 obstack presence instead of NULL pointer for new blocks.
22240 (df_byte_lr_free): DO not free alloc pool; clear block_info.
22241 (problem_BYTE_LR): Add size of block info structure.
22242 (problem_NOTE): Add size of block info structure.
22243 (df_byte_MD_set_bb_info): Remove.
22244 (df_byte_MD_free_bb_info): Do not free block pool.
22245 (df_byte_MD_alloc): Do not create pool, use check for
22246 obstack presence instead of NULL pointer for new blocks.
22247 (df_byte_MD_free): DO not free alloc pool; clear block_info.
22248 (problem_BD): Add size of block info structure.
22249 * df-scan.c (df_scan_free_internal): Free block pool.
22250 (df_scan_set_bb_info): Remove.
22251 (df_scan_free_bb_info): Check for artificial_defs instead
22252 of bb_info being non-NULL.
22253 (df_scan_alloc): DO not create df_scan_block pool.
22254 (problem_SCAN): Set size of block info.
22255 (df_bb_refs_record): Do not allocate bb_info.
22256 * df.h (df_problem): Add block_info_elt_size.
22257 (struct dataflow): Change block_info to void *.
22258 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
22259 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
22260 in-line structures.
22261
22262 2010-06-12 Jan Hubicka <jh@suse.cz>
22263
22264 PR tree-optimize/44485
22265 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
22266 containing use of return value of noreturn function.
22267
22268 2010-06-12 Anatoly Sokolov <aesok@post.ru>
22269
22270 * targhooks.c (default_function_value): Don't use
22271 FUNCTION_OUTGOING_VALUE.
22272 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
22273 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
22274
22275 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
22276
22277 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
22278 Add crtfastmath.o to extra_parts.
22279 * config/mips/crtfastmath.c: New.
22280 * config/mips/linux.h (ENDFILE_SPEC): New.
22281
22282 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
22283
22284 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
22285 old_type in parameter.
22286 (gcc_type_for_value): Update call to gcc_type_for_interval.
22287 (compute_type_for_level_1): Renamed compute_type_for_level.
22288 Update call to gcc_type_for_interval.
22289
22290 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22291
22292 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
22293 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
22294
22295 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22296
22297 * opts-common.c: Include options.h.
22298 (integral_argument): Move from opts.c.
22299 (decode_cmdline_option): New. Based on read_cmdline_option.
22300 * opts.c (integral_argument): Move to opts-common.c.
22301 (read_cmdline_option): Move most contents to
22302 decode_cmdline_option. Use %qs in diagnostics.
22303 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
22304 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
22305 decode_cmdline_option): New.
22306
22307 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22308
22309 PR target/44481
22310 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
22311 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
22312 (partiysi2_cmp): Ditto.
22313 (*partiyhi2_cmp): Ditto.
22314 (*parityqi2_cmp): Remove.
22315
22316 2010-06-11 Jan Hubicka <jh@suse.cz>
22317
22318 * bitmap.h (bmp_iter_next_bit): New.
22319 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
22320
22321 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
22322 Eric Botcazou <ebotcazou@adacore.com>
22323
22324 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
22325 computed cost.
22326
22327 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22328
22329 * config/i386/i386.md (unspec): New define_c_enum.
22330 (unspecv): Ditto.
22331
22332 2010-06-10 Jakub Jelinek <jakub@redhat.com>
22333
22334 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
22335
22336 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
22337
22338 PR middle-end/44483
22339 * tree-if-conv.c (bb_predicate_s): New struct.
22340 (bb_predicate_p): New.
22341 (bb_has_predicate): New.
22342 (bb_predicate): New.
22343 (set_bb_predicate): New.
22344 (bb_predicate_gimplified_stmts): New.
22345 (set_bb_predicate_gimplified_stmts): New.
22346 (add_bb_predicate_gimplified_stmts): New.
22347 (init_bb_predicate): New.
22348 (free_bb_predicate): New.
22349 (is_predicated): Use bb_predicate.
22350 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
22351 (predicate_bbs): Same. Gimplify the condition of the basic blocks
22352 before processing their successors.
22353 (clean_predicate_lists): Removed.
22354 (find_phi_replacement_condition): Use bb_predicate.
22355 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
22356 computations.
22357 (insert_gimplified_predicates): New.
22358 (combine_blocks): Call insert_gimplified_predicates.
22359 (tree_if_conversion): Call free_bb_predicate instead of
22360 clean_predicate_lists.
22361
22362 2010-10-11 Paul Brook <paul@codesourcery.com>
22363
22364 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
22365 * config/arm/arm.c (all_architectures): Change v7e-m default to
22366 cortexm4.
22367 * config/arm/arm-cores.def: Add cortex-m4.
22368 * config/arm/arm-tune.md: Regenerate.
22369
22370 2010-06-11 Jan Hubicka <jh@suse.cz>
22371
22372 * ipa-pure-const.c (special_builtlin_state): New function.
22373 (check_call): Use it instead of special casign BUILT_IN_RETURN.
22374 (propagate_pure_const): Use it.
22375
22376 2010-06-11 Jan Hubicka <jh@suse.cz>
22377
22378 * df-problems.c (df_live_scratch): Convert to bitmap_head.
22379 (df_live_alloc): Initialize df_live_scratch when initializing
22380 problem_data.
22381 (df_live_transfer_function): Update uses of df_live_scratch.
22382 (df_live_free): Free problem_data; clear df_live_scratch before
22383 releasing the obstack.
22384 (df_md_free): Free problem data.
22385
22386 2010-06-11 Jan Hubicka <jh@suse.cz>
22387
22388 * doc/invoke.texi (Wsuggest-attribute): Document.
22389 (Wmissing-noreturn): Remove.
22390 * ipa-pure-const.c (warn_function_noreturn): New function.
22391 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
22392 warn_missing_noreturn.
22393 * common.opt (Wsuggest-attribute=noreturn): New.
22394 * tree-flow.h (warn_function_noreturn): Declare.
22395 * tree-cfg.c (execute_warn_function_noreturn): Use
22396 warn_function_noreturn.
22397 (gate_warn_function_noreturn): New.
22398 (pass_warn_function_noreturn): Update.
22399
22400 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
22401
22402 * c-typeck.c (handle_warn_cast_qual): Add loc
22403 parameter. Improve warning message.
22404 (build_c_cast): Pass location to handle_warn_cast_qual.
22405
22406 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22407
22408 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
22409 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
22410 insn mnemonic.
22411 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
22412
22413 2010-06-10 Dodji Seketeli <dodji@redhat.com>
22414
22415 Fix bootstap on mips
22416 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
22417 be naming typedefs.
22418
22419 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
22420
22421 * system.h (helper_const_non_const_cast): New inline for
22422 gcc version <= 4.0.
22423 (CONST_CAST2): For gcc version <= 4.0 use
22424 new helper to do const/non-const casting.
22425
22426 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22427
22428 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
22429 * Makefile.in (OBJS-common): Include insn-enums.o.
22430 (insn-enums.o): New rule.
22431 (simple_generated_c): Add insn-enums.c.
22432 (build/genenums.o): New rule.
22433 (genprogmd): Add "enums".
22434 * genconstants.c (print_enum_type): Declare a C string array
22435 for each enum.
22436 * genenums.c: New file.
22437 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
22438 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
22439 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
22440
22441 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22442
22443 * doc/md.texi (define_enum_attr): Document.
22444 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
22445 * read-md.h (lookup_enum_type): Declare.
22446 * read-md.c (lookup_enum_type): New function.
22447 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
22448 * genattrtab.c (attr_desc): Add an enum_name field.
22449 (evaluate_eq_attr): Take the associated attribute as argument.
22450 Get the enum prefix from the enum_name field, if defined.
22451 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
22452 (simplify_test_exp): Pass attr to evaluate_eq_attr.
22453 (add_attr_value): New function, split out from...
22454 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
22455 (write_test_expr): Pass attr to evaluate_eq_attr.
22456 (write_attr_get): Use the enum_name as the enum tag, if defined.
22457 (write_attr_valueq): Use the enum_name as a prefix, if defined.
22458 (find_attr): Initialize enum_name.
22459 (main): Handle DEFINE_ENUM_ATTR.
22460 * gensupport.c (process_rtx): Likewise.
22461 * config/mips/mips.h (mips_tune_attr): Delete.
22462 * config/mips/mips.md (cpu): Use define_attr_enum.
22463
22464 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22465
22466 * doc/md.texi (define_c_enum, define_enum): Document.
22467 * read-md.h (md_constant): Add a parent_enum field.
22468 (enum_value, enum_type): New structures.
22469 (upcase_string, traverse_enum_types): Declare.
22470 * read-md.c (enum_types): New variable.
22471 (upcase_string, add_constant): New functions.
22472 (handle_constants): Don't create the hash table here.
22473 Use add_constant.
22474 (traverse_md_constants): Don't check for a null md_constants.
22475 (decimal_string, handle_enum, traverse_enum_types): New functions.
22476 (read_md_files): Initialize md_constants and md_enums.
22477 * genconstants.c (print_md_constant): Ignore info argument.
22478 Only print constants that belong to no enum.
22479 (print_enum_type): New function.
22480 (main): Don't pass stdout to print_md_constant. Call print_enum_type
22481 for each defined enum type.
22482 * config/mips/mips.md (processor): New define_enum.
22483 (unspec): New define_c_enum.
22484 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
22485 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
22486 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
22487 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
22488 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
22489 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
22490 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
22491 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
22492 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
22493 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
22494 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
22495 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
22496 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
22497 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
22498 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
22499 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
22500 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
22501 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
22502 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
22503 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
22504 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
22505 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
22506 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22507 (UNSPEC_RDDSP): Move to mips-dsp.md.
22508 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
22509 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
22510 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
22511 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
22512 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
22513 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
22514 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
22515 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
22516 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
22517 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
22518 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
22519 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
22520 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
22521 Moved to mips-dspr2.md.
22522 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
22523 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
22524 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
22525 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
22526 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
22527 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
22528 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22529 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22530 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22531 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22532 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22533 UNSPEC_LOONGSON_PSADBH)
22534 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22535 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22536 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
22537 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22538 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22539 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22540 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
22541 (cpu): Update comment.
22542 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
22543 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
22544 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
22545 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
22546 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
22547 UNSPEC_LOONGSON_PCMPEQ)
22548 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
22549 UNSPEC_LOONGSON_PINSR_0)
22550 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
22551 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
22552 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
22553 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
22554 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
22555 UNSPEC_LOONGSON_PSADBH)
22556 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
22557 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
22558 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
22559 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
22560 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
22561 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
22562 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
22563 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
22564 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
22565 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
22566 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
22567 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
22568 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
22569 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
22570 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
22571 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
22572 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
22573 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
22574 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
22575 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
22576 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
22577 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
22578 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
22579 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
22580 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
22581 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
22582 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
22583 (UNSPEC_RDDSP): Moved from mips.md.
22584 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
22585 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
22586 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
22587 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
22588 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
22589 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
22590 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
22591 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
22592 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
22593 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
22594 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
22595 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
22596 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
22597 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
22598 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
22599 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
22600 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
22601 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
22602 (UNSPEC_SCC): Moved from mips.md.
22603 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
22604 "processor_type" to "processor".
22605 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
22606 * config/mips/mips.h (processor_type): Delete.
22607 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
22608 "processor_type" to "processor".
22609
22610 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22611
22612 * configure.ac (tm_include_list): Add insn-constants.h.
22613 * configure: Regenerate.
22614 * Makefile.in (GTM_H): Move insn-constants.h here from...
22615 (TM_H): ...here.
22616 * mkconfig.sh: Remove special handling for insn-constants.h.
22617
22618 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22619
22620 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
22621 (BUILD_MD): ...this new variable.
22622 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
22623 that include the old contents of simple_generated_h and
22624 simple_generated_c.
22625 (simple_generated_h, simple_generated_c): Include them. Add
22626 insn-constants.h.
22627 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
22628 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
22629 Remove these dependencies from the main rule and include
22630 insn-conditions.md in the command line only if it appears
22631 in the dependency list.
22632 (insn-constants.h, s-constants): Delete.
22633 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
22634 or gensupport.h.
22635 (build/genmddeps.o): Likewise.
22636 (genprogrtl): New variable that contains everything from genprogmd
22637 except mddeps and constants.
22638 (genprogmd): Redefine in terms of genprogrtl. Make these programs
22639 depend on $(BUILD_MD)
22640 (genprog): New variable. Make these programs depend on
22641 $(BUILD_ERRORS).
22642 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
22643 (main): Use read_md_files instead of init_rtx_reader_args.
22644 * genconstants.c: As for genmddeps.c.
22645 * read-md.h (read_skip_construct): Declare.
22646 * read-md.c (read_skip_construct): New function.
22647 (handle_file): Allow a null handle_directive, skipping the
22648 construct if so.
22649 (parse_include): Update the comment accordingly.
22650
22651 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22652
22653 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
22654 * genmddeps.c: Include read-md.h.
22655 (main): Call init_rtx_reader_args instead of init_md_reader_args.
22656 * genattr.c (main): Likewise.
22657 * genattrtab.c (main): Likewise.
22658 * genautomata.c (main): Likewise.
22659 * gencodes.c (main): Likewise.
22660 * genconditions.c (main): Likewise.
22661 * genconfig.c (main): Likewise.
22662 * genconstants.c (main): Likewise.
22663 * genemit.c (main): Likewise.
22664 * genextract.c (main): Likewise.
22665 * genflags.c (main): Likewise.
22666 * genopinit.c (main): Likewise.
22667 * genoutput.c (main): Likewise.
22668 * genpeep.c (main): Likewise.
22669 * genrecog.c (main): Likewise.
22670 * genpreds.c (main): Likewise.
22671 * gensupport.h (in_fname): Move to read-md.h.
22672 (init_md_reader_args_cb): Rename to...
22673 (init_rtx_reader_args_cb): ...this and return a bool.
22674 (init_md_reader_args): Rename to...
22675 (init_rtx_reader_args): ...this and return a bool.
22676 (include_callback): Move to read-md.h.
22677 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
22678 (file_name_list, first_dir_md_include): Move to read-md.c
22679 (first_bracket_include): Delete unused variable.
22680 (last_dir_md_include): Move to read-md.c.
22681 (process_include): Delete, moving code to read-md.c:handle_include.
22682 (process_rtx): Don't handle INCLUDE.
22683 (save_string): Delete.
22684 (rtx_handle_directive): New function.
22685 (init_md_reader_args_cb): Rename to...
22686 (init_rtx_reader_args_cb): ...this and return a boolean success value.
22687 Use read_md_args.
22688 (init_md_reader_args): Rename to...
22689 (init_rtx_reader_args): ...this and return a boolean success value.
22690 * rtl.def (INCLUDE): Delete.
22691 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
22692 argument.
22693 * read-rtl.c (read_conditions): Don't gobble ')' here.
22694 (read_mapping): Likewise.
22695 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
22696 Handle top-level non-rtx constructs here rather than in read_rtx_1.
22697 Store the whole queue in *X. Remove call to init_md_reader.
22698 (read_rtx_1): Rename to...
22699 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
22700 Don't handle top-level non-rtx constructs here. Don't handle (nil)
22701 here.
22702 (read_nested_rtx): New function. Handle (nil) here rather than
22703 in read_rtx_code.
22704 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
22705 gobble ')' here.
22706 * read-md.h (directive_handler_t): New type.
22707 (in_fname, include_callback): Moved from read-md.h.
22708 (read_constants, init_md_reader): Delete.
22709 (read_md_files): Declare.
22710 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
22711 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
22712 from gensupport.c.
22713 (read_constants): Rename to...
22714 (handle_constants): ...this. Don't gobble ')' here.
22715 (handle_include, handle_file, handle_toplevel_file)
22716 (parse_include): New functions, mostly taken from gensupport.c.
22717 (init_md_reader): Subsume into...
22718 (read_md_files): ...this new function.
22719
22720 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22721
22722 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
22723 (unread_char): Decrement read_md_lineno after putting back '\n'.
22724 * read-md.c (fatal_with_file_and_line): Push back any characters
22725 that we decide not to add to the context.
22726 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
22727 fatal_expected_char in cases where '/' ends a line (for example).
22728 (read_name): Don't increment read_md_lineno here.
22729 (read_escape): Likewise.
22730 (read_quoted_string): Likewise.
22731 (read_braced_string): Likewise.
22732
22733 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22734
22735 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
22736 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
22737 * genconstants.c: Include read-md.h.
22738 * read-rtl.c (md_constants): Move to read-md.c.
22739 (md_name): Move to read-md.h.
22740 (initialize_iterators): Use leading_string_hash instead of def_hash
22741 and leading_string_eq_p instead of def_name_eq_p.
22742 (read_name): Move to read-md.c.
22743 (def_hash, def_name_eq_p): Delete.
22744 (read_constants, traverse_md_constants): Move to read-md.c.
22745 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
22746 * read-md.h: Include hashtab.h.
22747 (md_name): Moved from read-rtl.c.
22748 (md_constant): Moved from read-md.h.
22749 (leading_string_hash, leading_string_eq_p, read_name)
22750 (read_constants, traverse_md_constants): Declare.
22751 * read-md.c (md_constants): Moved from read-rtl.c.
22752 (leading_string_hash, leading_string_eq_p): New functions.
22753 (read_name, read_constants, traverse_md_constants): Moved from
22754 read-rtl.c.
22755
22756 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22757
22758 * read-rtl.c (md_name): New structure.
22759 (read_name): Take an md_name instead of a buffer pointer.
22760 Use the "string" field instead of strcpy when expanding constants.
22761 (read_constants): Remove the tmp_char argument. Update the calls
22762 to read_name, using two local name buffers instead of the tmp_char
22763 argument. Merge the constant-creation code.
22764 (read_conditions): Remove the tmp_char argument. Update the calls
22765 to read_name, using a local name buffer instead of the tmp_char
22766 argument.
22767 (read_mapping): Replace tmp_char variable with a local name buffer.
22768 Update the calls to read_name.
22769 (read_rtx_1): Likewise. Update the calls to read_constants and
22770 read_conditions.
22771
22772 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22773
22774 * Makefile.in (build/read-md.o): Depend on errors.h.
22775 * read-md.h (error_with_line): Declare.
22776 * read-md.c: Include errors.h.
22777 (message_with_line_1): New function, extracted from...
22778 (message_with_line): ...here.
22779 (error_with_line): New function.
22780 * genattrtab.c: If a call to message_with_line is followed by
22781 "have_error = 1;", replace both statements with a call to
22782 error_with_line.
22783 * genoutput.c: Likewise.
22784 * genpreds.c: Likewise.
22785 * genrecog.c: If a call to message_with_line is followed by
22786 "error_count++;", replace both statements with a call to
22787 error_with_line.
22788 (errorcount): Delete.
22789 (main): Don't check it.
22790 * gensupport.c: If a call to message_with_line is followed by
22791 "errors = 1;", replace both statements with a call to error_with_line.
22792 (errors): Delete.
22793 (process_define_cond_exec): Check have_error instead of errors.
22794 (init_md_reader_args_cb): Likewise. Don't set errors.
22795
22796 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22797
22798 * read-md.h (read_md_file): Declare.
22799 (read_char, unread_char): New functions.
22800 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22801 (read_quoted_string, read_string): Remove FILE * argument.
22802 * read-md.c (read_md_file): New variable.
22803 (read_md_filename, read_md_lineno): Update comments and remove
22804 unnecessary initialization.
22805 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
22806 (read_escape, read_quoted_string, read_braced_string, read_string):
22807 Remove FILE * argument. Update calls accordingly, using read_char
22808 and unread_char instead of getc and ungetc.
22809 * rtl.h (read_rtx): Remove FILE * argument.
22810 * read-rtl.c (iterator_group): Remove FILE * argument from
22811 "find_builtin".
22812 (iterator_traverse_data): Remove "infile" field.
22813 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
22814 (add_mapping, read_name, read_constants, read_conditions)
22815 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
22816 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
22817 Remove file arguments from all calls, using read_char and unread_char
22818 instead of getc and ungetc.
22819 * gensupport.c (process_include): Preserve read_md_file around
22820 the include. Set read_md_file to the handle of the included file.
22821 Update call to read_rtx.
22822 (init_md_reader_args_cb): Set read_md_file to the handle of the file
22823 and remove local FILE *. Update calls to read_rtx.
22824
22825 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22826
22827 * read-md.h (read_rtx_lineno): Rename to...
22828 (read_md_lineno): ...this.
22829 (read_rtx_filename): Rename to...
22830 (read_md_filename): ...this.
22831 (copy_rtx_ptr_loc): Rename to...
22832 (copy_md_ptr_loc): ...this.
22833 (print_rtx_ptr_loc): Rename to...
22834 (print_md_ptr_loc): ...this.
22835 * read-md.c: Likewise. Update references after renaming.
22836 (string_obstack): Replace RTL with MD in comment.
22837 (set_rtx_ptr_loc): Rename to...
22838 (set_md_ptr_loc): ...this.
22839 (get_rtx_ptr_loc): Rename to...
22840 (get_md_ptr_loc): ...this.
22841 * genconditions.c: Update references after renaming.
22842 * genemit.c: Likewise.
22843 * genoutput.c: Likewise.
22844 * genpreds.c: Likewise.
22845 * gensupport.c: Likewise.
22846 * read-rtl.c: Likewise.
22847
22848 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
22849
22850 * Makefile.in (READ_MD_H): New variable.
22851 (BUILD_RTL): Add build/read-md.o.
22852 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
22853 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
22854 (build/genattrtab.o, build/genconditions.o build/genemit.o)
22855 (build/genextract.o, build/genflags.o, build/genoutput.o)
22856 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
22857 (build/read-md.o): New rule.
22858 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
22859 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
22860 * coretypes.h: ...here.
22861 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
22862 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
22863 * genattr.c: Include read-md.h.
22864 * genattrtab.c: Likewise.
22865 * genconditions.c: Likewise.
22866 * genemit.c: Likewise.
22867 * genextract.c: Likewise.
22868 * genflags.c: Likewise.
22869 * genoutput.c: Likewise.
22870 * genpreds.c: Likewise.
22871 * genrecog.c: Likewise.
22872 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
22873 (join_c_conditions, print_c_condition, read_rtx_filename)
22874 (read_rtx_lineno): Move to read-md.h.
22875 * read-rtl.c: Include read-md.h.
22876 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
22877 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
22878 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
22879 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
22880 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
22881 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
22882 (read_braced_string, read_string): Move to read-md.c.
22883 (read_rtx): Move some initialization to init_md_reader and call
22884 init_md_reader here.
22885 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
22886 Move to read-md.h.
22887 * gensupport.c: Include read-md.h.
22888 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
22889 * read-md.h, read-md.c: New files.
22890
22891 2010-06-10 Anatoly Sokolov <aesok@post.ru>
22892
22893 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22894 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22895 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
22896 * config/moxie/moxie.c (moxie_function_value): Make static.
22897 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
22898 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22899
22900 2010-06-10 Martin Jambor <mjambor@suse.cz>
22901
22902 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
22903 * dbgcnt.def (tree_sra): New counter.
22904 * tree-sra.c: Include dbgcnt.h.
22905 (gate_intra_sra): Check tree_sra debug counter.
22906
22907 2010-06-10 Martin Jambor <mjambor@suse.cz>
22908
22909 PR tree-optimization/44258
22910 * tree-sra.c (build_access_subtree): Return false iff there is a
22911 partial overlap.
22912 (build_access_trees): Likewise.
22913 (analyze_all_variable_accesses): Disqualify candidates if
22914 build_access_trees returns true for them.
22915
22916 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
22917
22918 PR debug/41371
22919 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
22920 tail-recurse into canonical node. Fast-forward over
22921 non-canonical VALUEs.
22922
22923 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
22924
22925 PR boostrap/44470
22926 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
22927 (*addsi_1_zext) <TYPE_LEA>: Likewise.
22928 (add lea splitter): Likewise.
22929 (add_zext lea splitter): Likewise.
22930
22931 2010-06-10 Joseph Myers <joseph@codesourcery.com>
22932
22933 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
22934
22935 2010-06-10 Jan Hubicka <jh@suse.cz>
22936
22937 * df-problems.c (df_live_problem_data): Add live_bitmaps.
22938 (df_live_alloc): Initialize problem data and live_osbtacks.
22939 (df_live_finalize): Remove obstack, problem data; do not
22940 clear all bitmaps.
22941 (df_live_top_dump, df_live_bottom_dump): Do not dump old
22942 data when not allocated.
22943 (df_live_verify_solution_start): Do not allocate problem data.
22944 (df_live_verify_solution_end): Check if out is allocated.
22945 (struct df_md_problem_data): New structure.
22946 (df_md_alloc): Allocate problem data.
22947 (df_md_free): Free problem data; do not clear bitmaps.
22948
22949 2010-06-10 Jan Beulich <jbeulich@novell.com>
22950
22951 PR bootstrap/37304
22952 * configure.ac: Replace $() with ${} when intending to expand
22953 variables rather than invoking commands.
22954 * configure: Re-generate.
22955
22956 2010-06-10 Jan Hubicka <jh@suse.cz>
22957
22958 PR rtl-optimization/44460
22959 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
22960 TYPE_NEEDS_CONSTRUCTING sanity check.
22961
22962 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
22963
22964 * doc/include/fdl.texi: Move to GFDL version 1.3.
22965
22966 * doc/cpp.texi: Move to GFDL version 1.3.
22967 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
22968 * doc/gccint.texi: Move to GFDL version 1.3.
22969 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
22970 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
22971 * doc/invoke.texi: Move to GFDL version 1.3.
22972
22973 2010-06-09 Jan Hubicka <jh@suse.cz>
22974
22975 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
22976 Break out from ...
22977 (propagate) ... here; swap the order.
22978
22979 2010-06-09 Jan Hubicka <jh@suse.cz>
22980
22981 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
22982 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
22983 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
22984 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
22985
22986 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22987
22988 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
22989 Do not the gather memory reference in the outer loop if the step
22990 is not a constant.
22991
22992 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22993
22994 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
22995 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
22996 8 to 4. Minor change of the related comments.
22997
22998 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22999
23000 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
23001 the scev analysis when the variable is not used outside the loop
23002 in a close phi node: call compute_overall_effect_of_inner_loop.
23003
23004 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
23005
23006 * graphite-sese-to-poly.c (single_pred_cond): Renamed
23007 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
23008 (build_sese_conditions_before): Renamed call to single_pred_cond.
23009 (build_sese_conditions_after): Same.
23010
23011 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
23012
23013 * graphite-poly.h: Fix comments and indentation.
23014 * graphite-sese-to-poly.c: Same.
23015 (build_sese_conditions_before): Compute stmt and gbb only when needed.
23016 * tree-chrec.c: Fix comments and indentation.
23017 (tree-ssa-loop-niter.c): Same.
23018
23019 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
23020
23021 PR rtl-optimization/42461
23022 * dce.c (deletable_insn_p): Return true for const or pure calls again.
23023 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
23024
23025 2010-06-09 Jan Hubicka <jh@suse.cz>
23026
23027 * bitmap.c (bitmap_and): Walk array forward.
23028 (bitmap_and_compl_into): Likewise.
23029 (bitmap_xor): Likewise.
23030 (bitmap_xor_into): Likewise.
23031 (bitmap_equal_p): Likewise.
23032 (bitmap_intersect_p): Likewise.
23033 (bitmap_intersect_compl_p): Likewise.
23034 (bitmap_ior_and_into): Likewise.
23035 (bitmap_elt_copy): Likewise.
23036 (bitmap_and_compl): Likewise.
23037 (bitmap_elt_ior): Likewise.
23038
23039 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
23040
23041 * opts-common.c (prune_options): Ensure replacement argv array
23042 is correctly terminated by a NULL entry.
23043
23044 2010-06-09 Jan Hubicka <jh@suse.cz>
23045
23046 * cgraph.h (varpool_first_static_initializer,
23047 varpool_next_static_initializer): Make checking only when
23048 checking enabled.
23049 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
23050 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
23051 gcc_assert to gcc_checking_assert.
23052 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
23053 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
23054 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
23055 op_iter_init_phiuse, op_iter_init_phidef,
23056 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
23057 gcc_checking_assert.
23058 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
23059 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
23060 partition_is_global, live_on_entry, live_on_exit,
23061 live_merge_and_clear): Likewise.
23062 * system.h (gcc_checking_assert): New macro.
23063 * gimple.h (set_bb_seq): Use gcc_checking_assert.
23064
23065 2010-06-09 Jason Merrill <jason@redhat.com>
23066
23067 * Makefile.in (TAGS): Collect tags info from c-family.
23068
23069 2010-06-09 Jan Hubicka <jh@suse.cz>
23070
23071 * gimple.h (gcc_gimple_checking_assert): New macro.
23072 (gimple_set_def_ops, gimple_set_use_ops,
23073 gimple_set_vuse, gimple_set_vdef,
23074 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
23075 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
23076 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
23077 gimple_asm_output_op, gimple_asm_output_op_ptr,
23078 gimple_asm_set_output_op, gimple_asm_clobber_op,
23079 gimple_asm_set_clobber_op, gimple_asm_label_op,
23080 gimple_asm_set_label_op, gimple_try_set_kind,
23081 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
23082 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
23083 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
23084 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
23085 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
23086 gimple_omp_for_set_initial, gimple_omp_for_final,
23087 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
23088 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
23089 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
23090 conditional with ENABLE_GIMPLE_CHECKING.
23091 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
23092
23093 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
23094
23095 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
23096 (get_computation_cost_at): Use it.
23097 (determine_use_iv_cost_condition): Likewise.
23098 (determine_iv_cost): Likewise.
23099
23100 2010-06-09 Richard Guenther <rguenther@suse.de>
23101
23102 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
23103 replace constants.
23104
23105 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
23106
23107 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
23108
23109 2010-06-09 Martin Jambor <mjambor@suse.cz>
23110
23111 PR tree-optimization/44423
23112 * tree-sra.c (dump_access): Dump also grp_assignment_read.
23113 (analyze_access_subtree): Pass negative allow_replacements to children
23114 if the current type is scalar.
23115
23116 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
23117
23118 PR testsuite/42843
23119 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
23120 * doc/plugins.texi (Plugin license check): Update information
23121 on type of plugin_is_GPL_compatible.
23122 * Makefile.in (PLUGINCC): Define as $(COMPILER).
23123 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
23124
23125 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
23126
23127 * config/arm/arm.c (thumb2_reorg): New function.
23128 (arm_reorg): Call it.
23129 * config/arm/thumb2.md (define_peephole2 for flag clobbering
23130 arithmetic operations): Delete.
23131
23132 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
23133
23134 PR target/44067
23135 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
23136 e500v2 target.
23137
23138 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
23139
23140 PR plugins/44459
23141 * gcc-plugin.h: Encapsulate all declarations in extern "C".
23142
23143 2010-06-08 Jan Hubicka <jh@suse.cz>
23144
23145 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
23146 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
23147
23148 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
23149
23150 PR tree-optimization/39874
23151 PR middle-end/28685
23152 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
23153 Declare.
23154 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
23155 same_bool_result_p): New.
23156 (and_var_with_comparison, and_var_with_comparison_1,
23157 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
23158 (or_var_with_comparison, or_var_with_comparison_1,
23159 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
23160 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
23161 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
23162 of combine_comparisons.
23163 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
23164
23165 2010-06-08 Anatoly Sokolov <aesok@post.ru>
23166
23167 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23168 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23169 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
23170 pdp11_function_value_regno_p): New functions.
23171 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23172 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23173
23174 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
23175
23176 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
23177 Thumb-2 in the MINUS case.
23178
23179 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23180
23181 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
23182
23183 * doc/gty.texi (GTY Options): Document typed GC allocation and
23184 variable_size GTY option.
23185
23186 * ggc-internal.h: New.
23187
23188 * ggc.h: Update copyright year.
23189 (digit_string): Move to stringpool.c.
23190 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
23191 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
23192 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
23193 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
23194 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
23195 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
23196 (ggc_force_collect, ggc_get_size, ggc_statistics)
23197 (ggc_print_common_statistics): Move to ggc-internal.h.
23198 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
23199 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
23200 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
23201 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
23202 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
23203 (ggc_alloc_zone_pass_stat): Remove.
23204 (ggc_internal_alloc_stat, ggc_internal_alloc)
23205 (ggc_internal_cleared_alloc_stat): New.
23206 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
23207 (ggc_internal_vec_alloc_stat)
23208 (ggc_internal_cleared_vec_alloc_stat)
23209 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
23210 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
23211 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
23212 (ggc_cleared_alloc_ptr_array_two_args): New.
23213 (htab_create_ggc, splay_tree_new_ggc): Redefine.
23214 (ggc_splay_alloc): Change the type of the first argument to
23215 enum gt_types_enum.
23216 (ggc_alloc_string): Make macro.
23217 (ggc_alloc_string_stat): New.
23218 (ggc_strdup): Redefine.
23219 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
23220 (ggc_alloc_rtvec_sized): New.
23221 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
23222 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
23223 (ggc_internal_cleared_alloc_zone_stat)
23224 (ggc_internal_zone_alloc_stat)
23225 (ggc_internal_zone_cleared_alloc_stat)
23226 (ggc_internal_zone_vec_alloc_stat)
23227 (ggc_alloc_zone_rtx_def_stat)
23228 (ggc_alloc_zone_tree_node_stat)
23229 (ggc_alloc_zone_cleared_tree_node_stat)
23230 (ggc_alloc_cleared_gimple_statement_d_stat): New.
23231
23232 * ggc-common.c: Include ggc-internal.h.
23233 (ggc_internal_cleared_alloc_stat): Rename from
23234 ggc_alloc_cleared_stat.
23235 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
23236 (ggc_calloc): Remove.
23237 (ggc_cleared_alloc_htab_ignore_args): New.
23238 (ggc_cleared_alloc_ptr_array_two_args): New.
23239 (ggc_splay_alloc): Add obj_type parameter.
23240 (init_ggc_heuristics): Formatting fixes.
23241
23242 * ggc-none.c: Update copyright year.
23243 (ggc_alloc_stat): Rename to ggc_alloc_stat.
23244 (ggc_alloc_cleared_stat): Rename to
23245 ggc_internal_cleared_alloc_stat.
23246 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23247
23248 * ggc-page.c: Update copyright year. Include ggc-internal.h.
23249 Remove references to ggc_alloc in comments.
23250 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
23251 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
23252 (new_ggc_zone, destroy_ggc_zone): Remove.
23253 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23254
23255 * ggc-zone.c: Include ggc-internal.h. Remove references to
23256 ggc_alloc in comments.
23257 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
23258 (ggc_internal_alloc_zone_pass_stat): New.
23259 (ggc_internal_cleared_alloc_zone_stat): New.
23260 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
23261 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
23262 (new_ggc_zone, destroy_ggc_zone): Remove.
23263
23264 * stringpool.c: Update copyright year. Include ggc-internal.h
23265 (digit_vector): Make static.
23266 (digit_string): Moved from ggc.h.
23267 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
23268 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
23269
23270 * Makefile.in (GGC_INTERNAL_H): New.
23271 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
23272 $(GGC_INTERNAL_H) to dependencies.
23273
23274 * gentype.c: Update copyright year.
23275 (walk_type): Accept variable_size GTY option.
23276 (USED_BY_TYPED_GC_P): New macro.
23277 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
23278 whitespace at the end of strings.
23279 (get_type_specifier, variable_size_p): New functions.
23280 (alloc_quantity, alloc_zone): New enums.
23281 (write_typed_alloc_def): New function.
23282 (write_typed_struct_alloc_def): Likewise.
23283 (write_typed_typed_typedef_alloc_def): Likewise.
23284 (write_typed_alloc_defns): Likewise.
23285 (output_typename, write_splay_tree_allocator_def): Likewise.
23286 (write_splay_tree_allocators): Likewise.
23287 (main): Call write_typed_alloc_defns and
23288 write_splay_tree_allocators.
23289
23290 * lto-streamer.h (lto_file_decl_data_ptr): New.
23291
23292 * passes.c (order): Define using cgraph_node_ptr.
23293
23294 * strinpool.c (struct string_pool_data): Declare nested_ptr using
23295 ht_identifier_ptr.
23296
23297 * gimple.h (union gimple_statement_d): Likewise.
23298
23299 * rtl.h (struct rtx_def): Likewise.
23300 (struct rtvec_def): Likewise.
23301
23302 * tree.h (union tree_node): Likewise.
23303
23304 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
23305
23306 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
23307
23308 * tree-scalar-evolution.c (scev_initialize): Likewise.
23309
23310 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
23311
23312 * dwarf2asm.c (dw2_force_const_mem): Likewise.
23313
23314 * omp-low.c (lower_omp_critical): Likewise.
23315
23316 * bitmap.h (struct bitmap_head_def): Update comment to not
23317 reference ggc_alloc.
23318
23319 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
23320
23321 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
23322
23323 * ipa-prop.c (duplicate_ggc_array): Rename to
23324 duplicate_ipa_jump_func_array. Use typed GC allocation.
23325 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
23326
23327 * gimple.c (gimple_alloc_stat): Use
23328 ggc_alloc_cleared_gimple_statement_d_stat.
23329
23330 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
23331
23332 * tree.c (make_node_stat): Use
23333 ggc_alloc_zone_cleared_tree_node_stat.
23334 (make_tree_vec_stat): Likewise.
23335 (build_vl_exp_stat): Likewise.
23336 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
23337 (make_tree_binfo_stat): Likewise.
23338 (tree_cons_stat): Likewise.
23339
23340 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
23341 (shallow_copy_rtx_stat): Likewise.
23342 (make_node_stat): Likewise.
23343
23344 * lto-symtab.c: Fix comment.
23345
23346 * tree-cfg.c (create_bb): Update comment to not reference
23347 ggc_alloc_cleared.
23348 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
23349
23350 * varpool.c (varpool_node): Use typed GC allocation.
23351 (varpool_extra_name_alias): Likewise.
23352
23353 * varasm.c (emutls_decl): Likewise.
23354 (get_unnamed_section): Likewise.
23355 (get_noswitch_section): Likewise.
23356 (get_section): Likewise.
23357 (get_block_for_section): Likewise.
23358 (build_constant_desc): Likewise.
23359 (create_constant_pool): Likewise.
23360 (force_const_mem): Likewise.
23361
23362 * tree.c (build_vl_exp_stat): Likewise.
23363 (build_real): Likewise.
23364 (build_string): Likewise.
23365 (decl_debug_expr_insert): Likewise.
23366 (decl_value_expr_insert): Likewise.
23367 (type_hash_add): Likewise.
23368 (build_omp_clause): Likewise.
23369
23370 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
23371
23372 * tree-ssa.c (init_tree_ssa): Likewise.
23373
23374 * tree-ssa-structalias.c (heapvar_insert): Likewise.
23375
23376 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23377
23378 * tree-ssa-loop-niter.c (record_estimate): Likewise.
23379
23380 * tree-ssa-alias.c (get_ptr_info): Likewise.
23381
23382 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23383
23384 * tree-phinodes.c (allocate_phi_node): Likewise.
23385
23386 * tree-iterator.c (tsi_link_before): Likewise.
23387 (tsi_link_after): Likewise.
23388
23389 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23390
23391 * tree-dfa.c (create_var_ann): Likewise.
23392
23393 * tree-cfg.c (create_bb): Likewise.
23394
23395 * toplev.c (alloc_for_identifier_to_locale): Likewise.
23396 (general_init): Likewise.
23397
23398 * stringpool.c (stringpool_ggc_alloc): Likewise.
23399 (gt_pch_save_stringpool): Likewise.
23400
23401 * sese.c (if_region_set_false_region): Likewise.
23402
23403 * passes.c (do_per_function_toporder): Likewise.
23404
23405 * optabs.c (set_optab_libfunc): Likewise.
23406 (set_conv_libfunc): Likewise.
23407
23408 * lto-symtab.c (lto_symtab_register_decl): Likewise.
23409
23410 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23411 (input_eh_region): Likewise.
23412 (input_eh_lp): Likewise.
23413 (make_new_block): Likewise.
23414 (unpack_ts_real_cst_value_fields): Likewise.
23415
23416 * lto-section-in.c (lto_new_in_decl_state): Likewise.
23417
23418 * lto-cgraph.c (input_node_opt_summary): Likewise.
23419
23420 * loop-init.c (loop_optimizer_init): Likewise.
23421
23422 * lambda.h (lambda_vector_new): Likewise.
23423
23424 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
23425
23426 * ira.c (update_equiv_regs): Likewise.
23427
23428 * ipa.c (cgraph_node_set_new): Likewise.
23429 (cgraph_node_set_add): Likewise.
23430 (varpool_node_set_new): Likewise.
23431 (varpool_node_set_add): Likewise.
23432
23433 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
23434 (duplicate_ipa_jump_func_array): Likewise.
23435 (ipa_read_node_info): Likewise.
23436
23437 * ipa-cp.c (ipcp_create_replace_map): Likewise.
23438
23439 * integrate.c (get_hard_reg_initial_val): Likewise.
23440
23441 * gimple.c (gimple_alloc_stat): Likewise.
23442 (gimple_build_omp_for): Likewise.
23443 (gimple_seq_alloc): Likewise.
23444 (gimple_copy): Likewise.
23445
23446 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
23447 (gsi_insert_after_without_update): Likewise.
23448
23449 * function.c (add_frame_space): Likewise.
23450 (insert_temp_slot_address): Likewise.
23451 (assign_stack_temp_for_type): Likewise.
23452 (allocate_struct_function): Likewise.
23453 (types_used_by_var_decl_insert): Likewise.
23454
23455 * except.c (init_eh_for_function): Likewise.
23456 (gen_eh_region): Likewise.
23457 (gen_eh_region_catch): Likewise.
23458 (gen_eh_landing_pad): Likewise.
23459 (add_call_site): Likewise.
23460
23461 * emit-rtl.c (get_mem_attrs): Likewise.
23462 (get_reg_attrs): Likewise.
23463 (start_sequence): Likewise.
23464 (init_emit): Likewise.
23465
23466 * dwarf2out.c (new_cfi): Likewise.
23467 (queue_reg_save): Likewise.
23468 (dwarf2out_frame_init): Likewise.
23469 (new_loc_descr): Likewise.
23470 (find_AT_string): Likewise.
23471 (new_die): Likewise.
23472 (add_var_loc_to_decl): Likewise.
23473 (clone_die): Likewise.
23474 (clone_as_declaration): Likewise.
23475 (break_out_comdat_types): Likewise.
23476 (new_loc_list): Likewise.
23477 (loc_descriptor): Likewise.
23478 (add_loc_descr_to_each): Likewise.
23479 (add_const_value_attribute): Likewise.
23480 (tree_add_const_value_attribute): Likewise.
23481 (add_comp_dir_attribute): Likewise.
23482 (add_name_and_src_coords_attributes): Likewise.
23483 (lookup_filename): Likewise.
23484 (store_vcall_insn): Likewise.
23485 (dwarf2out_init): Likewise.
23486
23487 * dbxout.c (dbxout_init): Likewise.
23488
23489 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23490
23491 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23492
23493 * config/score/score7.c (score7_output_external): Likewise.
23494
23495 * config/score/score3.c (score3_output_external): Likewise.
23496
23497 * config/s390/s390.c (s390_init_machine_status): Likewise.
23498
23499 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23500 (rs6000_init_machine_status): Likewise.
23501 (output_toc): Likewise.
23502
23503 * config/pa/pa.c (pa_init_machine_status): Likewise.
23504 (get_deferred_plabel): Likewise.
23505
23506 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23507
23508 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23509
23510 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23511
23512 * config/mep/mep.c (mep_init_machine_status): Likewise.
23513 (mep_note_pragma_flag): Likewise.
23514
23515 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23516
23517 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23518
23519 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23520
23521 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23522 (i386_pe_maybe_record_exported_symbol): Likewise.
23523
23524 * config/i386/i386.c (get_dllimport_decl): Likewise.
23525 (ix86_init_machine_status): Likewise.
23526 (assign_386_stack_local): Likewise.
23527
23528 * config/frv/frv.c (frv_init_machine_status): Likewise.
23529
23530 * config/darwin.c (machopic_indirection_name): Likewise.
23531
23532 * config/cris/cris.c (cris_init_machine_status): Likewise.
23533
23534 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23535
23536 * config/avr/avr.c (avr_init_machine_status): Likewise.
23537
23538 * config/arm/arm.c (arm_init_machine_status): Likewise.
23539
23540 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23541 (alpha_need_linkage): Likewise.
23542 (alpha_use_linkage): Likewise.
23543
23544 * cgraph.c (cgraph_allocate_node): Likewise.
23545 (cgraph_create_edge_1): Likewise.
23546 (cgraph_create_indirect_edge): Likewise.
23547 (cgraph_add_asm_node): Likewise.
23548
23549 * cfgrtl.c (init_rtl_bb_info): Likewise.
23550
23551 * cfgloop.c (alloc_loop): Likewise.
23552 (rescan_loop_exit): Likewise.
23553
23554 * cfg.c (init_flow): Likewise.
23555 (alloc_block): Likewise.
23556 (unchecked_make_edge): Likewise.
23557
23558 * c-parser.c (c_parse_init): Likewise.
23559 (c_parse_file): Likewise.
23560
23561 * c-decl.c (bind): Likewise.
23562 (record_inline_static): Likewise.
23563 (push_scope): Likewise.
23564 (make_label): Likewise.
23565 (lookup_label_for_goto): Likewise.
23566 (finish_struct): Likewise.
23567 (finish_enum): Likewise.
23568 (c_push_function_context): Likewise.
23569
23570 * bitmap.c (bitmap_element_allocate): Likewise.
23571 (bitmap_gc_alloc_stat): Likewise.
23572
23573 * alias.c (record_alias_subset): Likewise.
23574 (init_alias_analysis): Likewise.
23575
23576 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
23577
23578 * fold-const.c (fold_comparison): Remove redundant parenthesis.
23579 * tree-inline.c (expand_call_inline): Pass translated return value of
23580 cgraph_inline_failed_string to diagnostic function.
23581
23582 2010-06-08 Andrew Pinski <pinskia@gmail.com>
23583 Shujing Zhao <pearly.zhao@oracle.com>
23584
23585 PR c/37724
23586 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
23587 implicit bad conversions is initialization.
23588 (error_init): Use gmsgid instead of msgid for argument name and change
23589 the call for error.
23590 (pedwarn_init): Use gmsgid instead of msgid for argument name and
23591 change the call for pedwarn.
23592 (warning_init): Use gmsgid instead of msgid for argument name and
23593 change the call for warning.
23594
23595 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
23596
23597 * config/mips/mips-protos.h (mips_print_operand): Delete.
23598 (mips_print_operand_address): Delete.
23599 * config/mips/mips.h (mips_print_operand_punct): Delete.
23600 (PRINT_OPERAND): Delete.
23601 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23602 (PRINT_OPERAND_ADDRESS): Delete.
23603 * config/mips/mips.c (mips_print_operand_punct): Make static.
23604 (mips_print_operand_address): Make static.
23605 (mips_print_operand): Make static. Call
23606 mips_print_operand_punct_valid_p.
23607 (mips_print_operand_punct_valid_p): New function.
23608 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23609 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23610
23611 2010-06-07 Jan Hubicka <jh@suse.cz>
23612
23613 PR middle-end/44454
23614 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
23615 are allocated.
23616
23617 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
23618
23619 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
23620 name of RECORD.
23621
23622 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23623
23624 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23625 attributes): Document gas.
23626
23627 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
23628
23629 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
23630 <TYPE_LEA>: Split instruction.
23631 <default>: Remove alternative 2 handling.
23632 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
23633 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
23634 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
23635
23636 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
23637 (ashift_zext lea splitter): Use DImode for multiplication.
23638
23639 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
23640 to generate addition.
23641
23642 2010-06-07 Joseph Myers <joseph@codesourcery.com>
23643
23644 * common.opt (fira-verbose): Use Var.
23645 (fpcc-struct-return): Use Init instead of VarExists.
23646 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
23647 toplev.c.
23648 * flags.h (flag_signed_char, flag_short_enums,
23649 flag_pcc_struct_return, flag_ira_verbose,
23650 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
23651 * toplev.c (flag_detailed_statistics, flag_signed_char,
23652 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
23653 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
23654 * toplev.h (flag_crossjumping, flag_if_conversion,
23655 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
23656 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
23657 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
23658 flag_cprop_registers, time_report, flag_ira_loop_pressure,
23659 flag_ira_coalesce, flag_ira_move_spills,
23660 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
23661
23662 2010-06-07 Jan Hubicka <jh@suse.cz>
23663
23664 * df-core.c (df_analyze_problem): Do verification after allocation.
23665
23666 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
23667 (df_lr_alloc): Initialize problem data; move bitmaps to
23668 lr_bitmaps obstack.
23669 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
23670 (df_lr_verify_solution_start): Do not initialize problem data;
23671 allocate bitmaps in lr_bitmaps.
23672 (df_lr_verify_solution_end): Do not free problem data.
23673
23674 2010-06-07 Jan Hubicka <jh@suse.cz>
23675
23676 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
23677 if caller is noreturn.
23678 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
23679 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
23680 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
23681 * ipa-pure-const.c (check_decl): Add IPA parameter.
23682 (state_from_flags): New function.
23683 (better_state, worse_state): New functions.
23684 (check_call): When in IPA mode, do not care about callees.
23685 (check_load, check_store): Update.
23686 (check_ipa_load, check_ipa_store): New.
23687 (check_stmt): When in IPA mode, use IPA checkers.
23688 (analyze_function): Use state_from_flags.
23689 (propagate): Check indirect edges and references.
23690
23691 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
23692
23693 PR rtl-optimization/44404
23694 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
23695 of count_occurrences to see if it's safe to modify mem_insn.
23696
23697 2010-06-07 Richard Guenther <rguenther@suse.de>
23698
23699 * gimplify.c (gimplify_cleanup_point_expr): For empty body
23700 and EH-only cleanup drop the cleanup instead of inserting it
23701 unconditionally.
23702
23703 2010-06-07 Ira Rosen <irar@il.ibm.com>
23704
23705 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
23706 documentation.
23707 * targhooks.c (default_builtin_vectorization_cost): New function.
23708 * targhooks.h (default_builtin_vectorization_cost): Declare.
23709 * target.h (enum vect_cost_for_stmt): Define.
23710 (builtin_vectorization_cost): Change argument and comment.
23711 * tree-vectorizer.h: Remove cost model macros.
23712 * tree-vect-loop.c: Include target.h.
23713 (vect_get_cost): New function.
23714 (vect_estimate_min_profitable_iters): Replace cost model macros with
23715 calls to vect_get_cost.
23716 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
23717 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
23718 default implementation.
23719 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
23720 calls to target hook builtin_vectorization_cost.
23721 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
23722 Likewise.
23723 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
23724 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
23725 implementation to return costs.
23726 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
23727 * config/spu/spu.h: Remove vectorizer cost model macros.
23728 * config/i386/i386.h: Likewise.
23729 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
23730 a call to target hook builtin_vectorization_cost.
23731
23732 2010-06-06 Sriraman Tallam <tmsriram@google.com>
23733
23734 PR target/44319
23735 * config/i386/i386.c (override_options): Turn zee pass on for level 2
23736 and above and defer till target is known.
23737 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
23738 turn off otherwise.
23739
23740 2010-05-25 Jan Hubicka <jh@suse.cz>
23741
23742 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
23743 (df_compact_blocks): Likewise.
23744 * df.h (struct df): Turn hardware_regs_used,
23745 regular_block_artificial_uses, eh_block_artificial_uses,
23746 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
23747 bitmap_head.
23748 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
23749 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
23750 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
23751 df_scan_blocks, df_insn_delete, df_insn_rescan,
23752 df_insn_rescan_debug_internal, df_insn_rescan_all,
23753 df_process_deferred_rescans, df_process_deferred_rescans,
23754 df_notes_rescan, df_get_call_refs, df_get_call_refs,
23755 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
23756 df_record_entry_block_defs, df_record_exit_block_uses,
23757 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
23758 df_scan_verify): Update.
23759
23760 2010-05-25 Dodji Seketeli <dodji@redhat.com>
23761
23762 PR c++/44188
23763 * c-common.c (is_typedef_decl): Move this definition ...
23764 * tree.c (is_typedef_decl): ... here.
23765 (typdef_variant_p): Move definition here from cp/tree.c.
23766 * c-common.h (is_typedef_decl): Move this declaration ...
23767 * tree.h (is_typedef_decl): ... here.
23768 (typedef_variant_p): Move declaration here from cp/cp-tree.h
23769 * dwarf2out.c (is_naming_typedef_decl): New function.
23770 (gen_tagged_type_die): Split out of ...
23771 (gen_type_die_with_usage): ... this function. When an anonymous
23772 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23773 is emitted for the typedef.
23774 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23775 anonymous tagged types.
23776
23777 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
23778
23779 PR c/20000
23780 * c-decl.c (grokdeclarator): Delete warning.
23781
23782 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
23783
23784 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
23785 newly built CALL_EXPR.
23786 * tree-profile.c (tree_profiling): Don't profile functions produced
23787 for built-in stuff.
23788
23789 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
23790
23791 PR bootstrap/44427
23792 PR bootstrap/44428
23793 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
23794 endianness-independent.
23795
23796 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
23797
23798 * c-common.c: Move to c-family/.
23799 * c-common.def: Likewise.
23800 * c-common.h: Likewise.
23801 * c-cppbuiltin.c: Likewise.
23802 * c-dump.c: Likewise.
23803 * c-format.c: Likewise.
23804 * c-format.h : Likewise.
23805 * c-gimplify.c: Likewise.
23806 * c-lex.c: Likewise.
23807 * c-omp.c: Likewise.
23808 * c.opt: Likewise.
23809 * c-opts.c: Likewise.
23810 * c-pch.c: Likewise.
23811 * c-ppoutput.c: Likewise.
23812 * c-pragma.c: Likewise.
23813 * c-pragma.h: Likewise.
23814 * c-pretty-print.c: Likewise.
23815 * c-pretty-print.h: Likewise.
23816 * c-semantics.c: Likewise.
23817 * stub-objc.c: Likewise.
23818
23819 * gengtype.c (get_file_langdir): Special-case files in c-family/.
23820 (get_output_file_with_visibility): Fix name for c-common.h.
23821 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
23822
23823 * c-tree.h: Update include path for moved files.
23824 * c-lang.c: Likewise.
23825 * c-lang.h: Likewise.
23826 * c-parser.c: Likewise.
23827 * c-convert.c: Likewise.
23828 * c-decl.c: Likewise.
23829 * c-objc-common.c: Likewise.
23830 * configure.ac: Make sure c-family/ exists in the build directory.
23831 * configure: Regenerate.
23832 * Makefile.in: Update paths for moved files. Regroup files per
23833 location and update dependencies. Move generated_files down after
23834 ALL_GTFILES_H.
23835
23836 * config/spu/spu-c.c: Update paths for moved files.
23837 * config/mep/mep-pragma.c: Likewise.
23838 * config/darwin-c.c: Likewise.
23839 * config/i386/msformat-c.c: Likewise.
23840 * config/i386/i386-c.c: Likewise.
23841 * config/avr/avr-c.c: Likewise.
23842 * config/sol2-c.c: Likewise.
23843 * config/ia64/ia64-c.c: Likewise.
23844 * config/rs6000/rs6000-c.c: Likewise.
23845 * config/arm/arm.c: Likewise.
23846 * config/arm/arm-c.c: Likewise.
23847 * config/h8300/h8300.c: Likewise.
23848 * config/v850/v850-c.c: Likewise.
23849
23850 * config/t-darwin: Fix dependencies for moved files.
23851 * config/t-sol2: Fix dependencies for moved files.
23852 * config/mep/t-mep: Fix dependencies for moved files.
23853 * config/ia64/t-ia64: Fix dependencies for moved files.
23854 * config/rs6000/t-rs6000: Fix dependencies for moved files.
23855 * config/v850/t-v850: Fix dependencies for moved files.
23856 * config/v850/t-v850e: Fix dependencies for moved files.
23857
23858 * config/m32c/m32c-pragma.c
23859
23860 * po/exgettext: Look in c-family/ also.
23861
23862 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
23863
23864 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
23865 (mark_control_dependent_edges_necessary): Call it instead of marking
23866 the last statement manually.
23867 (propagate_necessity): Likewise.
23868
23869 2010-06-05 Jan Hubicka <jh@suse.cz>
23870
23871 * basic-block.h (compute_dominance_frontiers): Updated.
23872 (compute_idf): Likewise.
23873
23874 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
23875 for dominance frontiers.
23876 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
23877 (insert_updated_phi_nodes_for): Likewise.
23878 (update_ssa): Likewise.
23879 * cfganal.c (compute_dominance_frontiers_1): Likewise.
23880 (compute_dominance_frontiers): Likewise.
23881 (compute_idf): Likewise.
23882 * df-problems.c (df_md_local_compute): Likewise.
23883
23884 2010-06-05 Anatoly Sokolov <aesok@post.ru>
23885
23886 * target.h (struct gcc_target): Add memory_move_cost field.
23887 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
23888 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
23889 * targhooks.c (default_memory_move_cost): New function.
23890 * targhooks.h (default_memory_move_cost): Declare function.
23891 * reload.h (memory_move_cost): Declare.
23892 (memory_move_secondary_cost): Change type of 'in' argument to bool.
23893 * reginfo.c (memory_move_cost): New function.
23894 (memory_move_secondary_cost): Change type of 'in' argument to bool.
23895 * ira.h (ira_memory_move_cost): Update comment.
23896 * ira.c (ira_memory_move_cost): Update comment.
23897 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
23898 with memory_move_cost.
23899 * postreload.c (reload_cse_simplify_set): (Ditto.).
23900 * reload1.c (choose_reload_regs): (Ditto.).
23901 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
23902 (MEMORY_MOVE_COST): Revise documentation.
23903
23904 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23905 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23906 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
23907 type of 'in' argument to bool.
23908 (TARGET_MEMORY_MOVE_COST): Define.
23909
23910 2010-06-05 Jan Hubicka <jh@suse.cz>
23911
23912 * ipa-pure-const.c (propagate): Fix typo in handling of functions
23913 that cannot return. Be more careful when merging the results with
23914 previously known ones.
23915
23916 2010-06-05 Matthias Klose <doko@ubuntu.com>
23917
23918 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
23919 function to add the -iplugindir option.
23920 (find_plugindir_spec_function): Add new declaration and function.
23921 (static_spec_func): Use it for "find-plugindir".
23922
23923 2010-06-05 Jakub Jelinek <jakub@redhat.com>
23924
23925 PR c++/44361
23926 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
23927 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
23928 statement expression.
23929
23930 2010-06-05 Jan Hubicka <jh@suse.cz>
23931
23932 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
23933 (df_rd_problem_data): Convert sparse_invalidated_by_call,
23934 dense_invalidated_by_call to bitmap head.
23935 (df_rd_alloc, df_rd_bb_local_compute_process_def,
23936 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
23937 df_rd_start_dump, df_lr_verify_transfer_functions,
23938 df_live_verify_transfer_functions, df_chain_create_bb,
23939 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
23940 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
23941 df_simulate_one_insn_forwards, df_md_alloc,
23942 df_md_bb_local_compute_process_def,
23943 df_md_bb_local_compute_process_def, df_md_local_compute,
23944 df_md_transfer_function df_md_free): Update.
23945
23946 2010-06-05 Joseph Myers <joseph@codesourcery.com>
23947
23948 PR c/44322
23949 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
23950 target type for ADDR_EXPR; require no changes to qualifiers except
23951 for function types.
23952 * c-tree.h (c_build_type_variant): Remove.
23953
23954 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23955
23956 * genautomata.c (get_excl_set): Do work per element, not per char.
23957 (check_presence_pattern_sets): Similar.
23958 (check_absence_pattern_sets): Similar.
23959
23960 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23961
23962 * genautomata.c (curr_state_pass_num): Delete.
23963 (min_issue_delay_pass_states): Delete.
23964 (min_issue_delay): Delete.
23965 (initiate_min_issue_delay_pass_states): Delete.
23966 (output_min_issue_delay_table): Compute min_issue_delay_vect
23967 using a breadth-first search variant.
23968 (output_tables): Don't call initiate_min_issue_delay_pass_states.
23969
23970 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
23971
23972 PR boostrap/44421
23973 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
23974 (df_byte_lr_bb_local_compute): Likewise.
23975
23976 2010-06-03 Jason Merrill <jason@redhat.com>
23977
23978 Implement noexcept operator (5.3.7)
23979 * c-common.c (c_common_reswords): Add noexcept.
23980 * c-common.h (enum rid): Add RID_NOEXCEPT.
23981
23982 2010-06-04 Joseph Myers <joseph@codesourcery.com>
23983
23984 * config/darwin-driver.c (darwin_default_min_version): Use
23985 GCC-specific formats in diagnostics.
23986 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
23987 diagnostics.
23988 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
23989 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
23990 eval_spec_function, handle_braces, process_brace_body, main,
23991 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
23992 getenv_spec_function, compare_version_strings,
23993 version_compare_spec_function): Use GCC-specific formats in
23994 diagnostics.
23995
23996 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23997
23998 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
23999 that operand 0 and operand 1 are equal.
24000 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
24001 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
24002 and operand 1 are equal.
24003 <default>: Ditto. Remove ??? comment.
24004 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
24005 and operand 1 are equal.
24006 <default>: Ditto. Remove ??? comment.
24007 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
24008 are equal.
24009 (*add<mode>_4) <default>: Ditto.
24010 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
24011
24012 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
24013
24014 * config/i386/i386-protos.h (ix86_print_operand): Declare.
24015 * config/i386/i386.c (ix86_print_operand): Make non-static.
24016 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
24017 * output.h (output_operand): Declare.
24018 * final.c (output_operand): Make non-static.
24019
24020 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
24021
24022 PR rtl-optimization/44013
24023 * sched-deps.c (add_dependence_list_and_free): Don't free lists
24024 when processing debug insns.
24025
24026 PR debug/41371
24027 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
24028 recursing. Check that recursion is bounded. Rename inner var
24029 to avoid hiding incoming argument.
24030
24031 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
24032
24033 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
24034 operands[2] == 255.
24035 (*addqi_3): Ditto.
24036 (*addqi_4): Ditto.
24037 (*addqi_5): Ditto.
24038 (*addqi_ext_1_rex64): Ditto.
24039 (*addqi_ext_1): Ditto.
24040
24041 (*addqi_4): Check for incdec_operand in QImode.
24042
24043 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
24044 using SWI mode iterator.
24045 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
24046 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
24047 mode iterator.
24048 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
24049 using SWI mode iterator.
24050
24051 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
24052
24053 PR c/25880
24054 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
24055 * c-format.c (gcc_diag_flag_specs): Add hash.
24056 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
24057 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
24058 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
24059 pp_c_cv_qualifiers. Handle qualifiers spelling here.
24060 (pp_c_type_qualifier_list): Call the function above.
24061 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
24062 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
24063 (WARN_FOR_QUALIFIERS): New macro.
24064 (convert_for_assignment): Use it.
24065
24066 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
24067
24068 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
24069
24070 2010-06-04 Jan Hubicka <jh@suse.cz>
24071
24072 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
24073 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
24074 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
24075 DF_BYTE_LR_OUT): Update for embedded bitmaps.
24076 * fwprop.c (single_def_use_enter_block): Likewise.
24077 * ddg.c (create_ddg_dep_from_intra_loop_link,
24078 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
24079 * loop-iv.c (latch_dominating_def): Likewise.
24080 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
24081 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
24082 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
24083 df_rd_transfer_function, df_rd_top_dump,
24084 df_rd_bottom_dump): Update.
24085 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
24086 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
24087 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
24088 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
24089 df_lr_verify_solution_start, df_lr_verify_solution_end,
24090 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
24091 df_live_free_bb_info, df_live_alloc, df_live_reset,
24092 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
24093 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
24094 df_live_verify_solution_start, df_live_verify_solution_end,
24095 df_live_verify_transfer_functions, df_chain_create_bb,
24096 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
24097 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24098 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24099 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
24100 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
24101 df_byte_lr_transfer_function, df_byte_lr_top_dump,
24102 df_byte_lr_bottom_dump, df_create_unused_note,
24103 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
24104 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
24105 df_md_transfer_function, df_md_init, df_md_confluence_0,
24106 df_md_confluence_n,
24107 df_md_top_dump, df_md_bottom_dump): Update.
24108 (struct df_lr_problem_data): Embedd bitmap headers.
24109
24110 2010-06-04 Jan Hubicka <jh@suse.cz>
24111
24112 * dce.c (dce_process_block): Do not re-scan already marked
24113 instructions.
24114
24115 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
24116
24117 PR rtl-optimization/39871
24118 PR rtl-optimization/40615
24119 PR rtl-optimization/42500
24120 PR rtl-optimization/42502
24121 * ira.c (init_reg_equiv_memory_loc: New function.
24122 (ira): Call it twice.
24123 * reload.h (calculate_elim_costs_all_insns): Declare.
24124 * ira-costs.c: Include "reload.h".
24125 (regno_equiv_gains): New static variable.
24126 (init_costs): Allocate it.
24127 (finish_costs): Free it.
24128 (ira_costs): Call calculate_elim_costs_all_insns.
24129 (find_costs_and_classes): Take estimated elimination costs
24130 into account.
24131 (ira_adjust_equiv_reg_cost): New function.
24132 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
24133 * reload1.c (init_eliminable_invariants, free_reg_equiv,
24134 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
24135 (elim_bb): New static variable.
24136 (reload): Move code out of here into init_eliminable_invariants and
24137 free_reg_equiv. Call them.
24138 (calculate_elim_costs_all_insns): New function.
24139 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
24140 all callers changed. If FOR_COSTS is true, don't call alter_reg,
24141 but call note_reg_elim_costly if we turned a valid memory address
24142 into an invalid one.
24143 * Makefile.in (ira-costs.o): Depend on reload.h.
24144
24145 2010-06-04 Julian Brown <julian@codesourcery.com>
24146
24147 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
24148 for pool ranges.
24149
24150 2010-06-04 Richard Guenther <rguenther@suse.de>
24151
24152 PR lto/41584
24153 * cgraph.h (struct varpool_node): Add lto_file_data field.
24154 * lto-cgraph.c (input_varpool_node): Initialize it.
24155
24156 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
24157
24158 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
24159 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
24160 predicate in "type" attribute calculation.
24161 (*addsi_1_zext): Ditto.
24162 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
24163 (*addsi_2_zext): Ditto.
24164 (*add<mode>_3): Ditto.
24165 (*addsi_3_zext): Ditto.
24166 (*add<mode>_5): Ditto.
24167
24168 2010-06-03 Jan Hubicka <jh@suse.cz>
24169
24170 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
24171 of bitmap_bit_p.
24172 * cfganal.c (compute_dominance_frontiers_1): Likewise.
24173
24174 2010-06-03 Jan Hubicka <jh@suse.cz>
24175
24176 * df-problems.c (df_create_unused_note, df_note_bb_compute):
24177 micro-optimize the checks when to add new note.
24178
24179 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
24180
24181 * final.c (output_asm_insn): Call
24182 targetm.asm_out.print_operand_punct_valid_p. Update comments.
24183 (output_operand): Call targetm.asm_out.print_operand. Update comments.
24184 (output_address): Call targetm.asm_out.print_operand_address.
24185 Update comments.
24186 * target.h (struct gcc_target): Add print_operand,
24187 print_operand_address, and print_operand_punct_valid_p fields.
24188 * targhooks.h (default_print_operand): Declare.
24189 (default_print_operand_address): Declare.
24190 (default_print_operand_punct_valid_p): Declare.
24191 * targhooks.c (default_print_operand): Define.
24192 (default_print_operand_address): Define.
24193 (default_print_operand_punct_valid_p): Define.
24194 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
24195 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
24196 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
24197 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
24198 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
24199 * vmsdbgout.c (addr_const_to_string): Update comment.
24200 * config/i386/i386.c (print_operand): Rename to...
24201 (ix86_print_operand): ...this. Make static.
24202 (print_operand_address): Rename to...
24203 (ix86_print_operand_address): ...this. Make static. Call
24204 ix86_print_operand instead of PRINT_OPERAND.
24205 (ix86_print_operand_punct_valid_p): New function.
24206 (TARGET_PRINT_OPERAND): Define.
24207 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24208 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24209 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
24210 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24211 (PRINT_OPERAND): Delete.
24212 (PRINT_OPERAND_ADDRESS): Delete.
24213 * config/i386/i386-protos.h (print_operand): Delete prototype.
24214 (print_operand_address): Delete prototype.
24215
24216 2010-06-03 Richard Guenther <rguenther@suse.de>
24217
24218 PR tree-optimization/44403
24219 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24220 Preserve pointer qualifiers.
24221 (vect_create_data_ref_ptr): Likewise.
24222
24223 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
24224
24225 PR c++/44294
24226 * defaults.h (MAX_FIXED_MODE_SIZE): New.
24227
24228 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
24229
24230 2010-06-03 Jakub Jelinek <jakub@redhat.com>
24231
24232 PR debug/44375
24233 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
24234 return false if merging the bbs would lead to goto_locus
24235 location being lost from the IL.
24236
24237 2010-06-03 Jan Hubicka <jh@suse.cz>
24238 Jakub Jelinek <jakub@redhat.com>
24239
24240 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
24241 set->regs[i] is NULL or has just one entry.
24242
24243 2010-06-03 Jan Hubicka <jh@suse.cz>
24244
24245 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
24246 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
24247
24248 2010-06-03 Paul Brook <paul@codesourcery.com>
24249
24250 * config/arm/arm.c (FL_TUNE): Define.
24251 (arm_default_cpu, arm_cpu_select): Remove.
24252 (all_cores): Populate core field.
24253 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
24254 (arm_find_cpu): New function.
24255 (arm_handle_option): Lookup cpu/architecture names.
24256 (arm_override_options): Cleanup mcpu/march/mtune handling.
24257 (arm_file_start): Ditto.
24258
24259 2010-06-03 Alan Modra <amodra@gmail.com>
24260
24261 PR target/44169
24262 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
24263 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
24264 rtx to gen_load_toc_v4_PIC_1b. Tidy.
24265 (rs6000_emit_load_toc_table): Likewise.
24266
24267 2010-06-02 Jan Hubicka <jh@suse.cz>
24268
24269 * passes.c (init_optimization_passes): Put ipa reference
24270 after ipa pure-const.
24271
24272 2010-06-02 Jan Hubicka <jh@suse.cz>
24273
24274 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
24275 calls_read_all and calls_write_all.
24276 (get_reference_optimization_summary): Fix formatting.
24277 (is_proper_for_analysis): Check that decl is not readonly.
24278 (propagate_bits): Check CONST/PURE/noreturn flags.
24279 (ipa_init): Move all_module_statics to optimization_summary_obstack.
24280 (analyze_function): Ignore indirect edges.
24281 (copy_global_bitmap): For all module statics, do nothing.
24282 (generate_summary): Do not print calls_read_all/calls_write_all.
24283 (read_write_all_from_decl): Take node as argument; check
24284 cgraph_node_cannot_return.
24285 (propagate): Reorganize read_all/write_all computation;
24286 check indirect edges; check ecf flags; use all_module_statics
24287 in the results; do not free all_module_statics.
24288 (stream_out_bitmap): Handle all_module_statics.
24289 (ipa_reference_write_optimization_summary): Likewise; use
24290 varpool/cgraph encoders to get boundaries.
24291 (ipa_reference_read_optimization_summary): Read in all_module_statics;
24292 use it when possible.
24293
24294 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24295
24296 PR target/44218
24297 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
24298 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
24299
24300 * doc/extend.texi (powerpc builtins): Document vec_recip,
24301 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
24302
24303 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
24304 (rs6000_emit_swrsqrt): Ditto.
24305 (rs6000_emit_swdivsf): Delete.
24306 (rs6000_emit_swdivdf): Ditto.
24307 (rs6000_emit_swrsqrtsf): Ditto.
24308
24309 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
24310 describe the reciprocal estimate support for each type.
24311 (recip_options): Map -mrecip=<opt> into option bits.
24312 (gen_2arg_fn_t): New typedef for binary rtx gen function.
24313 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
24314 reciprocal estimate instructions.
24315 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
24316 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
24317 Set up rs6000_recip_bits based on the -mrecip* options. Print the
24318 cost information if -mdebug=cost or -mdebug=reg.
24319 (rs6000_override_options): Set -mrecip-precision for power6, and
24320 power7 machines. If -mvsx or -mdfp, enable various options that
24321 came in previous instruction set ISAs, unless the option was
24322 explicitly disabled by the command line option. Parse
24323 -mrecip=<opt> options.
24324 (rs6000_builtin_vectorized_function): Add support for vectorizing
24325 the reciprocal estimate builtins and expansions.
24326 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
24327 (bdesc_2arg): Add reciprocal estimate builtins.
24328 (bdesc_1arg): Add reciprocal square root estimate builtins.
24329 (rs6000_expand_builtin): Rewrite to use a switch statement,
24330 instead of multiple if/then/elses. Add reciprocal estimate builtins.
24331 (rs6000_init_builtins): Create declarations for reciprocal
24332 estimate builtins.
24333 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
24334 sized, prefer traditional floating point registers, if integer
24335 vector types, prefer altivec registers. Don't actually look at
24336 the memory address any more.
24337 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
24338 builtins.
24339 (rs6000_load_constant_and_splat): New helper function to load up
24340 the constant for reciprocal estimate instructions.
24341 (rs6000_emit_madd): New helper function for generating
24342 multiply/add type instructions, based on the current switches.
24343 (rs6000_emit_msub): Ditto.
24344 (rs6000_emit_mnsub): Ditto.
24345 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
24346 replace a divide with a reciprocal estimate and fixup, adding
24347 support for machines with high precision and vectors.
24348 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
24349 low precision machines.
24350 (rs6000_emit_swdiv): New common function to be called to replace a
24351 division with reciprocal estimate and fixup.
24352 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
24353 for double and vector types. Add support for high precision machines.
24354
24355 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
24356 the reciprocal estimate instructions can be generated.
24357 (TARGET_FRE): Ditto.
24358 (TARGET_FRSQRTES): Ditto.
24359 (TARGET_FRSQRTE): Ditto.
24360 (RS6000_RECIP_*): New macros for reciprocal estimate support.
24361
24362 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
24363 square root estimate on vectors.
24364 (re<mode>2): New insn for reciprocal division estimate on vectors.
24365
24366 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
24367 New builtin.
24368 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
24369 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
24370 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
24371 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
24372 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
24373 (RS6000_BUILTIN_RSQRT): Ditto.
24374 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
24375 floating point builtin.
24376
24377 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24378 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
24379 __RECIP_PRECISION__ based on the command line switches.
24380 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
24381
24382 * config/rs6000/rs6000.opt (-mrecip): Document add support for
24383 replacing division instructions with reciprocal estimate and fixup.
24384 (-mrecip=<opt>): New option.
24385 (-mrecip-precision): Ditto.
24386
24387 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
24388 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
24389 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
24390 precision scalar.
24391
24392 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
24393 (UNSPEC_VREFP): Ditto.
24394 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
24395 conterparts with regard to support of -mno-fused-madd and -ffast-math.
24396 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
24397 reciprocal estimate instructions to be generated.
24398 (altivec_vrefp): Ditto.
24399
24400 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
24401 estimate support.
24402 (rreg): New mode attribute for reciprocal estimate support.
24403 (recip<mode>3): New insn for division using reciprocal estimate
24404 and fixup builtins.
24405 (divide define_split): New define_split to convert floating point
24406 division to use reciprocal estimate if the user used the
24407 appropriate options and the split is run when we can add new
24408 pseudo registers for the fixup.
24409 (rsqrt<mode>2): New insn for reciprocal square root support.
24410 (recipsf3): Move into recip<mode>3.
24411 (recipdf3): Ditto.
24412 (fres): Use TARGET_FRES.
24413 (rsqrtsf2): Move into rsqrt<mode>2.
24414 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
24415 (copysignsf3): Add support for VSX.
24416 (fred): Use TARGET_FRE.
24417 (fred_fpr): Ditto.
24418 (rsqrtdf_internal1): New function for frsqrte instruciton.
24419
24420 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
24421 (vec_rsqrt): Ditto.
24422
24423 2010-06-03 Richard Guenther <rguenther@suse.de>
24424
24425 PR middle-end/44291
24426 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
24427 (set_user_assembler_libfunc): Likewise.
24428
24429 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24430
24431 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
24432 defaults.h.
24433 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
24434 to defaults.h
24435 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
24436 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
24437 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
24438 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
24439 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
24440 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
24441 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
24442 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
24443 * defaults.h: Updated for above mentioned changes.
24444
24445 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
24446
24447 * c-common.c: Remove header include of tm_p.h.
24448 * Makefile.in (c-common.o): Remove TM_P_H dependency.
24449
24450 2010-06-02 Jakub Jelinek <jakub@redhat.com>
24451
24452 * tree.h (struct tree_decl_map): New type.
24453 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
24454 (tree_decl_map_hash): New prototype.
24455 (debug_expr_for_decl, value_expr_for_decl): Change into
24456 tree_decl_map hashtab from tree_map.
24457 (init_ttree): Adjust initialization.
24458 (tree_decl_map_hash): New function.
24459 (decl_debug_expr_lookup, decl_debug_expr_insert,
24460 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
24461
24462 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24463
24464 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
24465 linker emulations.
24466 * configure: Regenerate.
24467 * config.in: Regenerate.
24468
24469 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
24470 (X86_64_EMULATION): Define.
24471 (TARGET_LD_EMULATION): Use them.
24472
24473 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
24474 (SPARC64_EMULATION): Define.
24475 (LINK_ARCH_SPEC): Use them.
24476
24477 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24478
24479 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
24480 smallest_mode_for_size for computing the precision types of new
24481 graphite IVs. Do not call lang_hooks.types.type_for_size.
24482
24483 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24484
24485 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
24486 information.
24487 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
24488
24489 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
24490
24491 PR middle-end/44363
24492 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
24493 return false instead.
24494
24495 2010-06-02 Jan Hubicka <jh@suse.cz>
24496
24497 PR middle-end/44295
24498 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
24499 create new cgraph node to check callee.
24500
24501 2010-06-02 Richard Guenther <rguenther@suse.de>
24502
24503 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
24504
24505 2010-06-02 Richard Guenther <rguenther@suse.de>
24506
24507 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
24508 (lto_wrapper_cleanup): ... this. Do not exit.
24509 (fatal): Adjust. Exit here.
24510 (fatal_perror): Likewise.
24511 (fatal_signal): New function.
24512 (main): Set up signal handlers to cleanup temporary files.
24513 * Makefile.in (lto-wrapper.o): Adjust dependencies.
24514
24515 2010-06-02 Richard Guenther <rguenther@suse.de>
24516
24517 PR tree-optimization/44377
24518 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
24519
24520 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24521
24522 * config/s390/2097.md (z10_fhex): Remove insn reservation.
24523 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
24524 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
24525 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
24526 instruction.
24527 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
24528
24529 2010-06-02 Jan Hubicka <jh@suse.cz>
24530
24531 * bitmap.c (bitmap_descriptor): Add search_iter.
24532 (bitmap_find_bit): Increment it.
24533 (print_statistics): Print it.
24534
24535 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
24536
24537 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
24538 instead of gimple_build_call_vec. Delete unnecessary local variable.
24539
24540 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24541
24542 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
24543 change from yesterday.
24544
24545 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24546
24547 * c-ada-spec.c: Clean up redundant includes.
24548
24549 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
24550
24551 * gimplify.c: Do not include except.h and optabs.h.
24552 (gimplify_body): Do not initialize RTL profiling.
24553 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
24554 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
24555 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
24556 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
24557 langhooks.h.
24558
24559 * tree-pretty-print.h: Include pretty-print.h.
24560 * gimple-pretty-print.h: Include pretty-print.h.
24561
24562 * tree-pretty-print.c: Do not include diagnostic.h.
24563 * tree-vrp.c: Likewise.
24564 * tree-tailcall.c: Likewise
24565 * tree-scalar-evolution.c: Likewise
24566 * tree-ssa-dse.c: Likewise
24567 * tree-chrec.c: Likewise
24568 * tree-ssa-sccvn.c: Likewise
24569 * tree-ssa-copyrename.c: Likewise
24570 * tree-nomudflap.c: Likewise
24571 * tree-call-cdce.c: Likewise
24572 * tree-stdarg.c: Likewise
24573 * tree-ssa-math-opts.c: Likewise
24574 * tree-nrv.c: Likewise
24575 * tree-ssa-sink.c: Likewise
24576 * tree-browser.c: Likewise
24577 * tree-ssa-loop-ivcanon.c: Likewise
24578 * tree-ssa-loop.c: Likewise
24579 * tree-parloops.c: Likewise
24580 * tree-ssa-address.c: Likewise
24581 * tree-ssa-ifcombine.c: Likewise
24582 * tree-if-conv.c: Likewise
24583 * tree-data-ref.c: Likewise
24584 * tree-affine.c: Likewise
24585 * tree-ssa-phiopt.c: Likewise
24586 * tree-ssa-coalesce.c: Likewise
24587 * tree-ssa-pre.c: Likewise
24588 * tree-ssa-live.c: Likewise
24589 * tree-predcom.c: Likewise
24590 * tree-ssa-forwprop.c: Likewise
24591 * tree-ssa-dce.c: Likewise
24592 * tree-ssa-ter.c: Likewise
24593 * tree-ssa-loop-prefetch.c: Likewise
24594 * tree-optimize.c: Likewise
24595 * tree-ssa-phiprop.c: Likewise
24596 * tree-object-size.c: Likewise
24597 * tree-outof-ssa.c: Likewise
24598 * tree-ssa-structalias.c: Likewise
24599 * tree-switch-conversion.c: Likewise
24600 * tree-ssa-reassoc.c: Likewise
24601 * tree-ssa-operands.c: Likewise
24602 * tree-vectorizer.c: Likewise
24603 * tree-vect-data-refs.c: Likewise
24604 * tree-vect-generic.c: Likewise
24605 * tree-vect-stmts.c: Likewise
24606 * tree-vect-patterns.c: Likewise
24607 * tree-vect-slp.c: Likewise
24608 * tree-vect-loop.c: Likewise
24609 * tree-ssa-loop-ivopts.c: Likewise
24610 * tree-ssa-loop-im.c: Likewise
24611 * tree-ssa-loop-niter.c: Likewise
24612 * tree-ssa-loop-unswitch.c: Likewise
24613 * tree-ssa-loop-manip.c: Likewise
24614 * tree-ssa-loop-ch.c: Likewise
24615 * tree-dump.c: Likewise
24616 * tree-complex.c: Likewise
24617
24618 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
24619 * tree-ssa-uninit.c: Likewise
24620 * tree-ssa-threadupdate.c: Likewise
24621 * tree-ssa-uncprop.c: Likewise
24622 * tree-ssa-ccp.c: Likewise
24623 * tree-ssa-dom.c: Likewise
24624 * tree-ssa-propagate.c: Likewise
24625 * tree-ssa-alias.c: Likewise
24626 * tree-dfa.c: Likewise
24627 * tree-cfgcleanup.c: Likewise
24628 * tree-sra.c: Likewise
24629 * tree-ssa-copy.c: Likewise
24630 * tree-ssa.c: Likewise
24631 * tree-profile.c: Likewise
24632 * tree-cfg.c: Likewise
24633 * tree-ssa-threadedge.c: Likewise
24634 * tree-vect-loop-manip.c: Likewise
24635
24636 * tree-inline.c: Do not include diagnostic.h and expr.h.
24637 Include rtl.h.
24638 (copy_decl_for_dup_finish): Do not use NULL_RTX.
24639
24640 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
24641 * tree-loop-distribution.c: Likewise.
24642
24643 2010-06-01 Jan Hubicka <jh@suse.cz>
24644
24645 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
24646
24647 2010-06-01 Jan Hubicka <jh@suse.cz>
24648
24649 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
24650 remove return value.
24651 (split_bbs_on_noreturn_calls) .... here.
24652 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
24653 * tree-flow.h (fixup_noreturn_call): New.
24654
24655 2010-06-01 Jan Hubicka <jh@suse.cz>
24656
24657 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
24658
24659 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
24660
24661 * tree.h (build_nt_call_list): Delete.
24662 * tree.c (build_nt_call_list): Delete.
24663
24664 2010-06-01 Jan Hubicka <jh@suse.cz>
24665
24666 * fwprop.c: Make emit-rtl.h include last.
24667 * rtlanal.c: Include emit-rtl.h.
24668 * genautomata.c: Output emit-rtl include into insn-automata.c
24669 * df-scan.c: Include emit-rtl.h.
24670 * haifa-sched.c: Indlude emit-rtl.h.
24671 * mode-switching.c: Indlude emit-rtl.h.
24672 * graph.c: Indlude emit-rtl.h.
24673 * sel-sched.c: Include emit-rtl.h.
24674 * sel-sched-ir.c: Include emit-rtl.h.
24675 * ira-build.c: Include emit-rtl.h.
24676 * emit-rtl.c (first_insn, last_insn): Remove defines.
24677 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
24678 Move to emit-rtl.h.
24679 (set_new_first_and_last_insn, get_last_insn_anywhere,
24680 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
24681 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
24682 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
24683 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
24684 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
24685 Use accessor functions.
24686 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24687 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24688 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24689 mem_expr_equal_p): Move here from rtl.h.
24690 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
24691 Move here from emit-rtl.c; make inline.
24692 * cfglayout.h: Include emit-rtl.h.
24693 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
24694 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
24695 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
24696 mem_expr_equal_p, get_insns, set_first-insn,
24697 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
24698 * reg-stack.c: Include emit-rtl.h.
24699 * dce.c: Likewise.
24700
24701 2010-06-01 Jan Hubicka <jh@suse.cz>
24702
24703 * cgraph.h (tree_function_versioning): Update prototype.
24704 (cgraph_function_versioning): Update prototype.
24705 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
24706 bitmap.
24707 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
24708 (cgraph_materialize_clone, save_inline_function_body): Update use of
24709 tree_function_versioning.
24710 * tree-inline.c (copy_bb): Look for previous copied block to link
24711 after; fix debug output.
24712 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
24713 (copy_body): Likewise.
24714 (expand_call_inline): Update use of copy_body.
24715 (tree_function_versioning): Update use of copy body; accept
24716 blocks_to_copy and new_entry.
24717
24718 2010-06-01 Jan Hubicka <jh@suse.cz>
24719
24720 * gegenrtl.c: Remove unnecesary prototypes.
24721 (gendecl): Remove.
24722 (gendef): Produce static inline.
24723 (gencode): Remove.
24724 (main): Do not decode parameters; generate header only.
24725 * Makefile.in (genrtl.c): Remove.
24726
24727 2010-06-01 Jan Hubicka <jh@suse.cz>
24728
24729 * tree-switch-conversion.c (build_one_array): Make it readonly.
24730
24731 2010-06-01 Richard Guenther <rguenther@suse.de>
24732
24733 * optabs.c (init_optabs): Guard all accesses to reinit.
24734 * ipa-pure-const.c (propagate): Fix another typo.
24735 * opts.c (common_handle_option): Split assignment to bool.
24736 * c-opts.c (c_common_handle_option): Likewise.
24737
24738 2010-06-01 Arnaud Charlet <charlet@adacore.com>
24739 Matthew Gingell <gingell@adacore.com>
24740
24741 * doc/invoke.texi: Mention -fdump-ada-spec.
24742 * tree-dump.c (dump_files): Add ada-spec.
24743 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
24744 * tree-pass.h (tree_dump_index): Add TDI_ada.
24745 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
24746 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
24747 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
24748 * c-decl.c: Include c-ada-spec.h.
24749 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
24750 functions.
24751 (c_write_global_declarations): Add handling of -fdump-ada-spec.
24752 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
24753 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
24754 * c-ada-spec.h, c-ada-spec.c: New files.
24755
24756 2010-06-01 Richard Guenther <rguenther@suse.de>
24757
24758 PR lto/43853
24759 * ipa-pure-const.c (get_function_state): Hand back varying state
24760 if we do not have one.
24761 (has_function_state): New function.
24762 (duplicate_node_data): Adjust.
24763 (remove_node_data): Likewise.
24764 (pure_const_write_summary): Likewise.
24765 (propagate): Likewise. Fix typo.
24766
24767 2010-06-01 Jan Hubicka <jh@suse.cz>
24768
24769 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
24770 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
24771 (execute_all_ipa_transforms): Do not play with the states.
24772
24773 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
24774
24775 * config/arm/t-linux-androideabi: New.
24776 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
24777
24778 2010-06-01 Jan Hubicka <jh@suse.cz>
24779
24780 * tree-inline.c (estimate_num_insns): For stdarg functions look
24781 into call statement to count cost of argument passing.
24782
24783 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
24784
24785 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
24786 argument for fprintf.
24787 (ix86_output_addr_diff_elt): Likewise.
24788 (x86_function_profiler): Likewise.
24789 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
24790 (LPREFIX): Likewise.
24791 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
24792
24793 2010-05-31 Jakub Jelinek <jakub@redhat.com>
24794
24795 PR target/44338
24796 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
24797 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
24798 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
24799 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
24800 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
24801 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
24802 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
24803 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
24804 TARGET_FUSED_MADD.
24805
24806 2010-05-31 Jan Hubicka <jh@suse.cz>
24807
24808 * tree.h (tree_range_check_failed): Declare noreturn.
24809
24810 2010-05-31 Jan Hubicka <jh@suse.cz>
24811
24812 * gimple.c (gimple_call_builtin_p): New function.
24813 * gimple.h (gimple_call_builtin_p): Declare.
24814 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
24815 to exit.
24816 (execute_warn_function_return): BUILT_IN_RETURN is return.
24817 (split_critical_edges): Return edges are not critical.
24818 (is_ctrl_altering_stmt): Builtin_in_return is altering.
24819 (gimple_verify_flow_info): Handle built_in_return.
24820 (execute_warn_function_return): Handle built_in_return.
24821 * ipa-pure-const.c (check_call): Ignore builtin_return.
24822
24823 2010-05-31 Jakub Jelinek <jakub@redhat.com>
24824
24825 PR middle-end/44337
24826 * expr.c (expand_assignment): Don't store anything for out-of-bounds
24827 array accesses with non-MEM.
24828
24829 PR tree-optimization/44182
24830 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
24831 newly needs to end a bb is followed by debug stmts, instead return
24832 true from the function at the end.
24833 (maybe_move_debug_stmts_to_successors): New function.
24834 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
24835
24836 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
24837
24838 PR target/44161
24839 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
24840
24841 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
24842
24843 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
24844 for nested functions in non-optimized compilation.
24845
24846 2010-05-31 Richard Guenther <rguenther@suse.de>
24847
24848 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
24849
24850 2010-05-30 Jan Hubicka <jh@suse.cz>
24851
24852 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
24853
24854 2010-05-30 Richard Guenther <rguenther@suse.de>
24855
24856 PR lto/42975
24857 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
24858 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
24859 no longer needed.
24860
24861 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
24862
24863 * config/darwin.c (output_objc_section_asm_op): Add comment.
24864 (name_needs_quotes): Add '_' to list of valid comment chars.
24865 (machopic_output_function_base_name): Remove unneeded quotes.
24866 (darwin_encode_section_info): Adjust asm whitespace.
24867 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
24868 (ASM_OUTPUT_LOCAL): Ditto.
24869 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
24870 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
24871 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
24872
24873 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
24874
24875 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
24876 RS6000_OUTPUT_BASENAME unconditionally.
24877 (rs6000_output_function_epilogue): Likewise.
24878
24879 2010-05-30 Jan Hubicka <jh@suse.cz>
24880
24881 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
24882 nodes.
24883
24884 2010-05-30 Richard Guenther <rguenther@suse.de>
24885
24886 * tree-cfg.c (verify_gimple_assign_single): Implement
24887 verification for COND_EXPR rhs.
24888
24889 2010-05-30 Jan Hubicka <jh@suse.cz>
24890
24891 * cgraph.h (cgraph_dump_file): Declare.
24892 * cgraphunit.c (cgraph_dump_file): Export.
24893 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
24894
24895 2010-05-30 Jan Hubicka <jh@suse.cz>
24896
24897 * dwarf2out.c (reference_to_unused,
24898 premark_types_used_by_global_vars_helper): Avoid creation of new
24899 varpool nodes.
24900
24901 2010-05-30 Jan Hubicka <jh@suse.cz>
24902
24903 * cgraph.h (cgraph_node_cannot_return,
24904 cgraph_edge_cannot_lead_to_return): New functions.
24905 * cgraph.c (cgraph_node_cannot_return,
24906 cgraph_edge_cannot_lead_to_return): Use them.
24907 * ipa-pure-const.c (pure_const_names): New static var.
24908 (check_call): Handle calls not leading to return.
24909 (pure_const_read_summary): Dump info read.
24910 (propagate): Dump info about propagation process; ignore side effects
24911 of functions not leading to exit; fix handling of pure functions.
24912
24913 2010-05-30 Jan Hubicka <jh@suse.cz>
24914
24915 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
24916 for tail call epilogues.
24917
24918 2010-05-30 Jan Hubicka <jh@suse.cz>
24919
24920 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
24921 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
24922 dump files.
24923
24924 2010-05-29 Jan Hubicka <jh@suse.cz>
24925
24926 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
24927 node; remove references in node we no longer keep in cgrpah but need
24928 body of.
24929
24930 2010-05-29 Jan Hubicka <jh@suse.cz>
24931
24932 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
24933
24934 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24935
24936 PR target/44165
24937 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
24938
24939 2010-05-29 Jan Hubicka <jh@suse.cz>
24940
24941 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
24942 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
24943 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
24944 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
24945 debug_names_replaced_by, debug_update_ssa): Likewise.
24946 * sbitmap.c (debug_sbitmap): Likewise.
24947 * genrecog.c (debug_decision, debug_decision_list): Likewise.
24948 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
24949 debug_tree_chain): Likewise.
24950 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
24951 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
24952 * optabs.c (debug_optab_libfuncs): Likewise.
24953 (verify_loop_closed_ssa): Likewise.
24954 * value-prof.c (verify_histograms): Likewise.
24955 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
24956 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
24957 * cfghooks.c (verify_flow_info): Likewise.
24958 * fold-const.c (debug_fold_checksum): Likewise.
24959 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
24960 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
24961 Likewise.
24962 * omega.c (debug_omega_problem): Likewise.
24963 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
24964 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
24965 * dominance.c (verify_dominators, debug_dominance_info,
24966 debug_dominance_tree): Likewise.
24967 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
24968 * df_regno_debug, df_ref_debug,
24969 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
24970 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
24971 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
24972 * sel-sched.c (debug_state): Likewise.
24973 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
24974 Likewise.
24975 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
24976 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
24977 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
24978 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
24979 Likewise.
24980 * c-pretty-print.c (debug_c_tree): Likewise.
24981 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
24982 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
24983 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
24984 * ebitmap.c (debug_ebitmap): Likewise.
24985 * function.c (debug_find_var_in_block_tree): Likewise.
24986 * print-rtl.c (debug_rtx): Likewise.
24987 (debug_rtx_count): Likewise.
24988 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
24989 * stor-layout.c (debug_rli): Likewise.
24990 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
24991 * tree-data-ref.c (debug_data_references,
24992 debug_data_dependence_relations, debug_data_reference,
24993 debug_data_dependence_relation, debug_rdg_vertex,
24994 debug_rdg_component, debug_rdg): Likewise.
24995 * tree-affine.c (debug_aff): Likewise.
24996 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
24997 Likewise.
24998 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
24999 * emit-rtl.c (verify_rtl_sharing): Likewise.
25000 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
25001 debug_value_expressions): Likewise.
25002 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
25003 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
25004 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
25005 * cfglayout.c (verify_insn_chain): Likewise.
25006 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
25007 debug_clast_stmt, debug_generated_program): Likewise.
25008 * ggc-page.c (debug_print_page_list): Likewise.
25009 * tree-ssa-ter.c (debug_ter): Likewise.
25010 * graphite-dependences.c (debug_pddr): Likewise.
25011 * sched-deps.c (debug_ds): Likewise.
25012 * tree-ssa.c (verify_ssa): Likewise.
25013 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
25014 debug_scattering_functions, debug_iteration_domains, debug_pdr,
25015 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
25016 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
25017 * tree-inline.c (debug_find_tree): Likewise.
25018 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
25019 debug_ppl_powerset_matrix): Likewise.
25020 * var-tracking.c (debug_dv): Likewise.
25021 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
25022 * cfgloop.c (verify_loop_structure): Likewise.
25023 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
25024 * c-common.c (verify_sequence_points): Likewise.
25025 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
25026 debug_candidates, debug_rgn_dependencies): Likewise.
25027 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
25028 * debug_constraint_graph, debug_solution_for_var,
25029 debug_sa_points_to_info): Likewise.
25030 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
25031 Likewie.
25032 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
25033 debug_loops, debug_loop, debug_loop_num): Likewise.
25034 * passes.c (debug_pass): Likewise.
25035 (dump_properties): Likewise; add cfglayout property.
25036 (debug_properties): Likewise.
25037 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
25038 * varpool.c (debug_varpool): Likewise.
25039 * regcprop.c (debug_value_data): Likewise.
25040 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
25041 debug_immediate_uses_for): Likewise.
25042
25043 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
25044
25045 PR bootstrap/44315
25046 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
25047 Filter out insn-flags.h.
25048
25049 2010-05-29 Jan Hubicka <jh@suse.cz>
25050
25051 * cgraph.h (struct varpool_node_set_def,
25052 struct cgraph_node_set_def): Remove unused AUX pointer.
25053 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
25054 VEC_empty macro.
25055
25056 2010-05-29 Jan Hubicka <jh@suse.cz>
25057
25058 PR middle-end/44324
25059 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
25060
25061 2010-05-29 Richard Guenther <rguenther@suse.de>
25062
25063 * lto-streamer.c (cached_bp): New global variable.
25064 (bitpack_create): Return the cached bitpack, if available.
25065 (bitpack_delete): Clear and cache the bitpack, if appropriate.
25066 (bp_pack_value): Remove redundant asserts.
25067
25068 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
25069
25070 PR middle-end/44306
25071 * tree-if-conv.c (is_true_predicate): New.
25072 (is_predicated): Use is_true_predicate.
25073 (add_to_predicate_list): Same. Do not use unshare_expr.
25074 (add_to_dst_predicate_list): Same.
25075
25076 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
25077
25078 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
25079 field on edges.
25080 (predicate_bbs): Same.
25081 (clean_predicate_lists): Same.
25082 (find_phi_replacement_condition): Do not AND the predicate from
25083 edge->aux.
25084
25085 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
25086
25087 PR bootstrap/44315
25088 * Makefile.in (build/gencondmd.o): Add a missing `\'.
25089
25090 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25091
25092 PR target/44261
25093 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
25094 (negdf2): Adjust expander pattern and use negdf2_slow.
25095 (negsf2): Likewise.
25096
25097 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
25098
25099 * basic-block.h (struct control_flow_graph): Move last_label_uid field
25100 up.
25101 * df.h (struct df_base_ref): Move regno field up.
25102 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
25103 * expr.h (struct separate_ops): Move location field up.
25104 * optabs.h (struct optab_d): Move libcall_basename field down.
25105 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
25106 * config/i386/i386.h (struct machine_function): Convert call_abi field
25107 into a bitfield. Move cfa field to the end of the structure.
25108
25109 2010-05-29 Jan Hubicka <jh@suse.cz>
25110
25111 * varpool.c (varpool_get_node): Fix lookup.
25112
25113 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25114
25115 * config/spu/spu-protos.h: Do not include rtl.h. Protect
25116 RTL specific prototypes with #ifdef RTX_CODE.
25117 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
25118 * config/spu/t-spu-elf: Fix dependencies.
25119
25120 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
25121
25122 2010-05-29 Mike Stump <mikestump@comcast.net>
25123
25124 PR bootstrap/44315
25125 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
25126 TM_H when building to avoid dependency loops.
25127
25128 2010-05-29 Jan Hubicka <jh@suse.cz>
25129
25130 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
25131 refs and body; not the whole node for masters of materialized clones.
25132
25133 2010-05-29 Mike Stump <mikestump@comcast.net>
25134
25135 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
25136
25137 2010-05-29 Jan Hubicka <jh@suse.cz>
25138
25139 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
25140 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
25141 use of clone_function_name.
25142 * cgraph.h (cgraph_create_virtual_clone,
25143 cgraph_function_versioning): update prototypes.
25144 (clone_function_name): Declare.
25145 * ipa-cp.c (ipcp_insert_stage): Update call of
25146 cgraph_create_virtual_clone.
25147 * omp-low.c (create_omp_child_function_name): Use
25148 cgraph_create_virtual_clone.
25149 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
25150 (cgraph_function_versioning): Take SUFFIX argument; produce new name
25151 and make decl local.
25152
25153 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25154
25155 * vec.h: Include statistics.h
25156 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
25157 with VEC_H.
25158
25159 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25160
25161 * c-lex.c: Do not include c-tree.h.
25162 * c-pretty-print.c: Likewise.
25163 * c-opts.c: Likewise.
25164 * c-gimplify.c: Likewise.
25165 * c-common.c: Likewise.
25166 * c-dump.c: Likewise. Include c-common.h.
25167
25168 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25169
25170 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
25171 before including diagnostic-core.h.
25172 (c_cpp_error): New prototype moved from c-tree.h.
25173 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
25174 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
25175 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
25176 (c_cpp_error): Prototype moved to c-common.h.
25177 * Makefile.in: Update dependency for C_COMMON_H.
25178
25179 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25180
25181 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
25182 * c-common.c (c_register_addr_space): Remove here.
25183 * c-decl.c (c_register_addr_space): Re-add here.
25184
25185 2010-05-28 Mike Stump <mikestump@comcast.net>
25186
25187 * config/darwin-c.c: Remove c-tree.h include.
25188
25189 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25190
25191 * gcc.c: Include diagnostic.h.
25192 (error_count): Remove. All users changed to use errorcount.
25193 (programname): Remove. All users changed to use progname.
25194 (fancy_abort, internal_error, fatal_error, error, warning, inform,
25195 fnotice): Remove.
25196 (execute): Don't include "Internal error" and bug reporting
25197 information in argument of internal_error call.
25198 (process_command): Don't increment error_count after calling
25199 perror_with_name.
25200 (input_filename): Rename to gcc_input_filename. All users
25201 changed.
25202 (main): Call diagnostic_initialize. Register delete_temp_files
25203 with atexit. Use seen_error to test for errors.
25204 * gcc.h: Include diagnostic-core.h.
25205 (fatal_error, error, warning): Remove.
25206 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
25207 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
25208 (gcc.o): Update dependencies.
25209
25210 2010-05-28 Jeff Law <law@redhat.com>
25211
25212 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
25213 functions.
25214 * ira.h (ira_bad_reload_regno): Declare
25215 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
25216
25217 * ira-color.c (update_curr_costs): Free updated hard reg costs.
25218 (ira_reassign_conflict_allocnos): Remove bogus asserts.
25219 (allocno_reload_assign): Likewise.
25220
25221 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
25222
25223 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
25224 build1_stat.
25225
25226 2010-05-28 Richard Guenther <rguenther@suse.de>
25227
25228 PR lto/44312
25229 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
25230 Stream fixed-point constants mode.
25231 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
25232 and TYPE_PRECISION.
25233 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
25234 Stream fixed-point constants mode.
25235 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
25236 and TYPE_PRECISION.
25237
25238 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25239
25240 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
25241 only place it was called from.
25242 (number_of_latch_executions): Do not return chrec_dont_know when the
25243 may_be_zero is a runtime condition: instead, return a COND_EXPR
25244 including the may_be_zero condition.
25245 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
25246 of nb_iterations.
25247 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
25248 COND_EXPRs.
25249
25250 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25251
25252 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
25253 generate COND_EXPRs for degenerate_phi_result.
25254
25255 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25256
25257 PR middle-end/44293
25258 * tree-if-conv.c (if_convertible_loop_p): Check the
25259 if-convertibility of phi nodes in non predicated BBs.
25260
25261 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25262
25263 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
25264
25265 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25266
25267 PR driver/15303
25268 * gcc.c (inform, warning, inform): New functions.
25269 (fatal_ice): Rename to internal_error; change cmsgid parameter to
25270 gmsgid. All callers changed.
25271 (notice): Rename to fnotice; add parameter fp. All callers changed.
25272 (fatal_error): Rename to fatal_signal. All users changed.
25273 (fatal): Rename to fatal_error; change cmsgid parameter to
25274 gmsgid. All callers changed.
25275 (process_command): Use warning instead of error for warnings.
25276 (end_going_arg): Don't use _() around argument of error.
25277 (do_spec_1): Use inform for message from %n specs. Use warning
25278 instead of error for warnings.
25279 (main): Use inform for comparison messages. Use warning for
25280 message about unused linker input.
25281 (error): Increment error_count. Print "error: ".
25282 * gcc.h (fatal): Change to fatal_error.
25283 (warning): Declare.
25284 * config/darwin-driver.c (darwin_default_min_version): Use warning
25285 instead of fprintf for warnings.
25286 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
25287
25288 2010-05-28 Julian Brown <julian@codesourcery.com>
25289
25290 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
25291 (*thumb2_addsi3_compare0_scratch): New.
25292 * config/arm/constraints.md (Pv): New.
25293 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
25294 for ARM mode only.
25295 (*addsi3_compare0_scratch): Likewise.
25296
25297 2010-05-28 Jan Hubicka <jh@suse.cz>
25298
25299 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
25300 check.
25301 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
25302 only on local statics.
25303
25304 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
25305
25306 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
25307
25308 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
25309
25310 PR bootstrap/44314
25311 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
25312 (OPTION_GLIBC): Define.
25313
25314 2010-05-28 Jakub Jelinek <jakub@redhat.com>
25315
25316 PR debug/41048
25317 * dwarf2out.c (double_int_type_size_in_bits): New function.
25318 (round_up_to_align): Change first argument and return value to
25319 double_int.
25320 (field_byte_offset): Work internally on double_ints.
25321
25322 PR target/43636
25323 * builtins.c (expand_movstr): Use a temporary pseudo instead
25324 of target even when target is not NULL and not const0_rtx, but
25325 fails movstr predicate.
25326 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
25327
25328 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25329
25330 * final.c (rest_of_clean_state): Use %m in errors instead of
25331 strerror (errno).
25332 * gengtype.c (read_input_list, close_output_files): Use xstrerror
25333 instead of strerror.
25334 * toplev.c (process_options): Use %m in errors instead of strerror
25335 (errno).
25336 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
25337 (errno).
25338
25339 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
25340
25341 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
25342 (ix86_canonical_va_list_type): Make static. Add declaration.
25343 (ix86_enum_va_list): Make static. Reindent.
25344 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
25345 (ix86_canonical_va_list_type): Ditto.
25346 (ix86_enum_va_list): Ditto.
25347
25348 2010-05-28 Richard Guenther <rguenther@suse.de>
25349
25350 * lto-wrapper.c (run_gcc): With -save-temps generate a
25351 user-visible ltrans filename. Fixup ltrans unit numbering.
25352
25353 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
25354
25355 * c-common.c (c_common_nodes_and_builtins): Replace use
25356 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
25357 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
25358 to ix86_enum_va_list.
25359 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
25360 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
25361 (TARGET_ENUM_VA_LIST_P): Add hook description.
25362 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
25363 * target.h (gcc_target): Add enum_va_list hook.
25364
25365 PR bootstrap/44299
25366 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
25367 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
25368 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
25369
25370 2010-05-28 Alan Modra <amodra@gmail.com>
25371
25372 PR target/44266
25373 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25374 emit_library_call machinery to set up __tls_get_addr calls.
25375
25376 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25377
25378 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
25379
25380 2010-05-28 Dodji Seketeli <dodji@redhat.com>
25381
25382 Revert fix for PR c++/44188
25383 * c-common.c (is_typedef_decl): Revert the moving of this
25384 definition ...
25385 * tree.c (is_typedef_decl): ... here.
25386 (typdef_variant_p): Revert the moving of this definition
25387 here from cp/tree.c.
25388 * c-common.h (is_typedef_decl): Revert the moving of this
25389 declaration ...
25390 * tree.h (is_typedef_decl): ... here.
25391 (typedef_variant_p): Revert the moving of this declaration here
25392 from cp/cp-tree.h
25393 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
25394 (gen_tagged_type_die): Revert the splitting out of ...
25395 (gen_type_die_with_usage): ... this function. Revert the anonymous
25396 tagged type handling.
25397 (gen_typedef_die): Revert emitting DW_TAG_typedef for
25398 typedefs naming anonymous tagged types.
25399
25400 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
25401
25402 * config/rs6000/rs6000-modes.def (PSImode): Delete.
25403
25404 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
25405
25406 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
25407 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
25408 throughout.
25409 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
25410 "xer" to "ca".
25411 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
25412 XER_REGS to CA_REGS throughout.
25413 * config/rs6000/rs6000.h: Same.
25414 (ADDITIONAL_REGISTER_NAMES): Add "xer".
25415 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
25416 that mode_iterator "P" is the size for arithmetic carries as well.
25417 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
25418
25419 2010-05-28 Jakub Jelinek <jakub@redhat.com>
25420
25421 PR bootstrap/44255
25422 * combine.c (struct rtx_subst_pair): Define unconditionally.
25423 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
25424 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
25425 Call make_compound_operation on pair->to.
25426 (propagate_for_debug): Don't call make_compound_operation here.
25427 Always use simplify_replace_fn_rtx.
25428
25429 2010-05-27 Sterling Augustine <sterling@tensilica.com>
25430
25431 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
25432 * config/xtensa/xtensa.c (override_options): Check
25433 TARGET_FORCE_NO_PIC and set flag_pic.
25434 * config/xtensa/xtensa.opt: Document -mforce-no-pic
25435
25436 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
25437
25438 PR bootstrap/44299
25439 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
25440 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
25441
25442 2010-05-27 Joseph Myers <joseph@codesourcery.com>
25443
25444 * diagnostic-core.h: New. Contents moved from diagnostic.h and
25445 toplev.h.
25446 * diagnostic.c: Don't include toplev.h.
25447 (progname): Define. Moved from toplev.c.
25448 (seen_error): New function.
25449 * diagnostic.h: Include diagnostic-core.h.
25450 (diagnostic_t, emit_diagnostic): Don't declare here.
25451 * toplev.c (progname): Move to toplev.c.
25452 (emit_debug_global_declarations, compile_file, finalize,
25453 do_compile, toplev_main): Use seen_error.
25454 * toplev.h: Include diagnostic-core.h.
25455 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
25456 internal_error, warning, warning_at, error, error_n, error_at,
25457 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
25458 verbatim, fnotice, progname): Move to diagnostic-core.h.
25459 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
25460 (expand_builtin_expect): Use seen_error.
25461 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
25462 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
25463 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
25464 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
25465 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
25466 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
25467 errorcount for errors.
25468 * c-opts.c (c_common_finish): Use seen_error.
25469 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25470 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
25471 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
25472 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
25473 (get_coverage_counts): Use seen_error.
25474 * dwarf2out.c (dwarf2out_finish): Use seen_error.
25475 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
25476 gimplify_body): Use seen_error.
25477 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
25478 * ipa-pure-const.c (gate_pure_const): Use seen_error.
25479 * ipa-reference.c (gate_reference): Use seen_error.
25480 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
25481 * lambda-code.c: Include diagnostic-core.h instead of
25482 diagnostic.h.
25483 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
25484 * lto-compress.c: Include diagnostic-core.h instead of
25485 diagnostic.h.
25486 * lto-section-in.c: Include diagnostic-core.h instead of
25487 diagnostic.h.
25488 * lto-streamer-out.c: Include diagnostic-core.h instead of
25489 diagnostic.h.
25490 * lto-streamer.c: Include diagnostic-core.h instead of
25491 diagnostic.h.
25492 (gate_lto_out): Use seen_error.
25493 * matrix-reorg.c: Include diagnostic-core.h instead of
25494 diagnostic.h.
25495 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
25496 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
25497 (gate_expand_omp, lower_omp_1): Use seen_error.
25498 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
25499 (rest_of_decl_compilation, rest_of_type_compilation,
25500 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
25501 * tree-cfg.c (label_to_block_fn): Use seen_error.
25502 * tree-inline.c (optimize_inline_calls): Use seen_error.
25503 * tree-mudflap.c (mudflap_finish_file): Use
25504 seen_error.
25505 * tree-optimize.c (gate_all_optimizations,
25506 gate_all_early_local_passes, gate_all_early_optimizations): Use
25507 seen_error.
25508 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
25509 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
25510 (varpool_remove_unreferenced_decls,
25511 varpool_assemble_pending_decls): Use seen_error.
25512 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
25513 (TOPLEV_H, DIAGNOSTIC_H): Update.
25514 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
25515 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
25516 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
25517 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
25518 coverage.o, lambda-code.o): Update dependencies.
25519
25520 2010-05-25 Dodji Seketeli <dodji@redhat.com>
25521
25522 PR c++/44188
25523 * c-common.c (is_typedef_decl): Move this definition ...
25524 * tree.c (is_typedef_decl): ... here.
25525 (typdef_variant_p): Move definition here from cp/tree.c.
25526 * c-common.h (is_typedef_decl): Move this declaration ...
25527 * tree.h (is_typedef_decl): ... here.
25528 (typedef_variant_p): Move declaration here from cp/cp-tree.h
25529 * dwarf2out.c (is_naming_typedef_decl): New function.
25530 (gen_tagged_type_die): Split out of ...
25531 (gen_type_die_with_usage): ... this function. When an anonymous
25532 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25533 is emitted for the typedef.
25534 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25535 anonymous tagged types.
25536
25537 2010-05-27 Jason Merrill <jason@redhat.com>
25538
25539 * print-tree.c (debug_vec_tree): New fn.
25540 (print_vec_tree): New fn.
25541 * tree.h: Declare them.
25542 * gdbinit.in (pvt): New command.
25543
25544 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
25545
25546 * gdbinit.in (pdd): New command.
25547
25548 2010-05-27 Jan Hubicka <jh@suse.cz>
25549
25550 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
25551 (update_caller_keys): Return early if there are no callers;
25552 only update fibheap when decresing the key.
25553 (update_callee_keys): Avoid recursion.
25554 (decide_inlining_of_small_functions): When badness does not match;
25555 re-insert into fibheap.
25556
25557 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
25558
25559 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
25560 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
25561 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
25562 (ALL_HOST_OBJS): Now a union of the above two.
25563 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
25564 all files in ALL_HOST_FRONTEND_OBJS.
25565 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
25566
25567 * c-common.c: Pretend to be a backend file by undefining
25568 IN_GCC_FRONTEND (still need rtl.h here).
25569
25570 2010-05-27 Jan Hubicka <jh@suse.cz>
25571
25572 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
25573 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
25574
25575 2010-05-27 Jan Hubicka <jh@suse.cz>
25576
25577 * sched-ebb.c: Rename struct deps to struct deps_desc.
25578 * ddg.c: Likewise.
25579 * sel-sched-ir.c: Likewise.
25580 * sched-deps.c: Likewise.
25581 * sched-int.h: Likewise.
25582 * sched-rgn.c: Likewise.
25583
25584 2010-05-27 Jon Beniston <jon@beniston.com>
25585
25586 PR 43726
25587 * config/lm32/lm32.h: Remove definition of
25588 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
25589
25590 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
25591
25592 PR lto/44230
25593 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
25594
25595 2010-05-27 Richard Guenther <rguenther@suse.de>
25596
25597 PR tree-optimization/44284
25598 * tree-vect-stmts.c (vectorizable_assignment): Handle
25599 sign-changing conversions as simple copy.
25600
25601 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25602
25603 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
25604 Bionic C library.
25605 (__gthread_active_p): Check for pthread_create if compiling against
25606 Bionic C library.
25607
25608 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25609
25610 Support compilation for Android platform. Reimplement -mandroid.
25611
25612 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
25613 (*android*): Set ANDROID_DEFAULT.
25614 (arm*-*-linux*): Include linux-android.h.
25615 (arm*-*-eabi*): Don't include previous -mandroid implementation.
25616 * config/arm/eabi.h: Remove, move Android-specific parts ...
25617 * config/linux-android.h: ... here. New file.
25618 * config/arm/eabi.opt: Rename to ...
25619 * config/linux-android.opt: ... this.
25620 (mandroid): Allow -mno-android option. Initialize based on
25621 ANDROID_DEFAULT.
25622 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
25623 Move logic to corresponding LINUX_TARGET_* macros.
25624 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
25625 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
25626 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
25627 Android definitions.
25628 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
25629 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
25630 Document.
25631
25632 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
25633
25634 Add support for Bionic C library
25635
25636 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
25637 macro.
25638 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
25639 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
25640
25641 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
25642 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
25643 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
25644 to support multiple C libraries. Handle Bionic.
25645 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
25646 (BIONIC_DYNAMIC_LINKER64): Define.
25647 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
25648 Update.
25649 (TARGET_HAS_SINCOS): Enable for Bionic.
25650
25651 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
25652 the last option specified on command line take effect.
25653 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
25654 (mbionic): New.
25655 (mglibc, muclibc): Update.
25656
25657 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
25658 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
25659 DEFAULT_LIBC.
25660
25661 * doc/invoke.texi (-mglibc, -muclibc): Update.
25662 (-mbionic): Document.
25663
25664 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25665
25666 * c-common.h (c_register_addr_space): Add prototype.
25667 (ADDR_SPACE_KEYWORD): Remove.
25668 * c-common.c (c_register_addr_space): New function.
25669 (c_addr_space_name): Reimplement.
25670 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
25671
25672 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
25673 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
25674
25675 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
25676 Remove TARGET_ADDR_SPACE_KEYWORDS.
25677
25678 2010-05-27 Joseph Myers <joseph@codesourcery.com>
25679
25680 * input.c: New file.
25681 * input.h (main_input_filename): Move declaration to toplev.h.
25682 * toplev.c (input_location, line_table): Move to input.c
25683 * toplev.h (main_input_filename): Move declaration from input.h.
25684 * tree.c (expand_location): Move to input.c.
25685 * Makefile.in (OBJS-common): Add input.o.
25686 (input.o): Add dependencies.
25687
25688 2010-05-27 Richard Guenther <rguenther@suse.de>
25689
25690 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
25691 for non-existant files.
25692 (fork_execute): Mark args_name file as deleted.
25693
25694 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
25695
25696 PR bootstrp/44287
25697 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
25698 (narrow_signed_type): Likewise.
25699
25700 2010-05-26 Jan Hubicka <jh@suse.cz>
25701
25702 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
25703 edge only when checking is enabled; check using former_clone_of;
25704 check inline clones too.
25705 (cgraph_materialize_clone): Record former_clone_of pointer.
25706 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
25707 combining redirections; dump args_to_skip bitmap
25708 (cgraph_materialize_all_clones): Do no redirection here.
25709 * ipa-inline.c (inline_transform): Do redirection here.
25710 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
25711 cheking only).
25712
25713 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25714
25715 * config/avr/avr-c.c: Do not include regs.h.
25716 Include cpplib.h for cpp_define and tree.h for c-common.h.
25717 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
25718 * config/avr/t-avr: Fix dependencies for avr-c.o.
25719
25720 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25721
25722 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
25723 string instead of SYMBOL_REF rtx.
25724 * rtl.h (set_stack_check_libfunc): Move prototype from here...
25725 * libfuncs.h: ...to here. Adjust for explow.c change.
25726
25727 2010-05-26 Joseph Myers <joseph@codesourcery.com>
25728
25729 * pretty-print.c: Don't include ggc.h.
25730 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
25731 (identifier_to_locale): Use them for allocation.
25732 * pretty-print.h (identifier_to_locale_alloc,
25733 identifier_to_locale_free): Declare.
25734 * toplev.c (alloc_for_identifier_to_locale): New.
25735 (general_init): Set identifier_to_locale_alloc and
25736 identifier_to_locale_free.
25737 * Makefile.in (pretty-print.o): Update dependencies.
25738
25739 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
25740
25741 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
25742 pointer types if they have different alignment or mode.
25743
25744 2010-05-26 Anatoly Sokolov <aesok@post.ru>
25745
25746 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25747 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25748 * config/sparc/sparc-protos.h (function_value): Remove declaration.
25749 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
25750 sparc_function_value_regno_p): New functions.
25751 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25752 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25753 (function_value): Rename to...
25754 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
25755 argument to 'outgoing'.
25756 (function_arg_record_value, function_arg_union_value,
25757 function_arg_vector_value): Update comment.
25758
25759 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
25760
25761 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
25762 (fde_needed_for_eh_p): New predicate.
25763 (output_call_frame_info): Use it throughout to decide whether FDEs
25764 are needed for EH purpose.
25765 (dwarf2out_begin_prologue): Reorder assignments.
25766
25767 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25768
25769 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
25770 special case loop->header.
25771 (is_predicated): New.
25772 (if_convertible_loop_p): Call it.
25773
25774 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25775
25776 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
25777 iterator in parameter. Do not generate code during the analysis.
25778 (tree_if_convert_cond_stmt): Removed.
25779 (tree_if_convert_stmt): Removed.
25780 (predicate_bbs): New.
25781 (if_convertible_loop_p): Call predicate_bbs.
25782 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
25783 now contains all the analysis part.
25784
25785 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25786
25787 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
25788 statements in the analysis part.
25789 (tree_if_convert_stmt): Update comment.
25790 (remove_conditions_and_labels): New.
25791 (combine_blocks): Call remove_conditions_and_labels.
25792 (tree_if_conversion): Update comment.
25793
25794 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25795
25796 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
25797 than 2 predecessors or more than 2 successors.
25798
25799 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25800
25801 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
25802 of loops in which the data dependence analysis fails.
25803
25804 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25805
25806 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
25807 CDI_POST_DOMINATORS.
25808 (tree_if_conversion): Same.
25809
25810 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25811
25812 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
25813
25814 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
25815
25816 * tree-if-conv.c: Update copyright years. Fix comments.
25817 Fix indentation.
25818
25819 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
25820
25821 * builtin-types.def (BT_INT128): New primitive type.
25822 (BT_UINT128): Likewise.
25823 * c-common.c (c_common_r): Add __int128 keyword.
25824 (c_common_type_for_size): Handle __int128.
25825 (c_common_type_for_mode): Likewise.
25826 (c_common_signed_or_unsigned_type): Likewise.
25827 (c_common_nodes_and_builtins): Add builtin type
25828 if target supports 128-bit integer scalar.
25829 * c-common.h (enum rid): Add RID_INT128.
25830 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
25831 if target supports 128-bit integer scalar.
25832 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
25833 (finish_declspecs): Likewise.
25834 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
25835 (c_token_starts_declspecs): Likewise.
25836 (c_parser_declspecs): Likewise.
25837 (c_parser_attributes): Likewise.
25838 (c_parser_objc_selector): Likewise.
25839 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
25840 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
25841 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
25842 * tree.c (make_or_reuse_type): Likewise.
25843 (make_unsigned_type): Likewise.
25844 (build_common_tree_nodes_2): Likewise.
25845 * tree.h (enum integer_type_kind): Add itk_int128 and
25846 itk_unsigned_int128.
25847 (int128_integer_type_node): New define.
25848 (int128_unsigned_type_node): New define.
25849 * doc/extend.texi: Add documentation about __int128 type.
25850
25851 2010-05-26 Richard Guenther <rguenther@suse.de>
25852
25853 * tree-ssa-sccvn.c (copy_nary): Adjust.
25854 (copy_phis): Rename to ...
25855 (copy_phi): ... this. Adjust.
25856 (copy_references): Rename to ...
25857 (copy_reference): ... this. Adjust.
25858 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
25859 result into the valid table.
25860
25861 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25862
25863 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
25864 insn-config.h, insn-codes.h, recog.h, and optabs.h.
25865
25866 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25867
25868 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
25869
25870 2010-05-26 Richard Guenther <rguenther@suse.de>
25871
25872 * opts.c (common_handle_option): Handle OPT_Ofast.
25873
25874 2010-05-26 Joseph Myers <joseph@codesourcery.com>
25875
25876 * diagnostic.c: Don't include opts.h.
25877 (permissive_error_option): Define.
25878 (diagnostic_initialize): Take n_opts parameter. Allocate memory
25879 for classify_diagnostic. Don't use memset for
25880 classify_diagnostic. Initialize new and recently added fields.
25881 (diagnostic_classify_diagnostic): Use context->n_opts instead of
25882 N_OPTS.
25883 (diagnostic_report_diagnostic): Pass context parameter to
25884 diagnostic_report_warnings_p. Use option_enabled and option_name
25885 hooks from context.
25886 (emit_diagnostic): Use permissive_error_option.
25887 (permerror): Likewise.
25888 * diagnostic.h: Don't include options.h.
25889 (struct diagnostic_context): Add n_opts, opt_permissive,
25890 inhibit_warnings, warn_system_headers, option_enabled and
25891 option_name fields. Change classify_diagnostic to a pointer.
25892 * opts-diagnostic.h: New file.
25893 * opts.c: Include opts-diagnostic.h.
25894 (common_handle_option): Set global_dc fields for -Wfatal-errors,
25895 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
25896 (option_name): New function.
25897 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
25898 (c_common_handle_option): Set global_dc->permissive for
25899 -fpermissive.
25900 * c-common.c (c_cpp_error): Save and restore
25901 global_dc->warn_system_headers, not variable warn_system_headers.
25902 * toplev.c: Include opts-diagnostic.h.
25903 (general_init): Update call to diagnostic_initialize. Set
25904 global_dc->show_column, global_dc->option_enabled and
25905 global_dc->option_name.
25906 (process_options): Don't set global_dc fields here.
25907 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
25908 (diagnostic.o, opts.o, toplev.o): Update dependencies.
25909
25910 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25911
25912 * config/picochip/picochip.md (movsi): Split a movsi from a
25913 const after reload.
25914
25915 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25916
25917 * ggc-zone.c: Update copyright year.
25918 (poison_region): Mark memory for Valgrind as undefined before
25919 memset () call and inaccessible afterwards.
25920 (ggc_pch_total_size): Change type of i to int.
25921
25922 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25923
25924 * ggc-common.c (ggc_free_overhead): Allow empty slot.
25925
25926 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25927
25928 * ggc-common.c: Update copyright year.
25929 (ggc_rlimit_bound): Remove prototype. Compile only if
25930 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
25931 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
25932 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
25933 (ggc_min_heapsize_heuristic): Likewise.
25934
25935 2010-05-26 Richard Guenther <rguenther@suse.de>
25936
25937 PR rtl-optimization/44164
25938 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
25939 no-common access-path disambiguation.
25940 (indirect_ref_may_alias_decl_p): Adjust.
25941 (indirect_refs_may_alias_p): Likewise.
25942 (refs_may_alias_p_1): Likewise.
25943
25944 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25945
25946 * c-typeck.c: Do not include expr.h.
25947
25948 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
25949
25950 * rtl.h (decl_default_tls_model): Move prototype from here...
25951 * output.h: ...to here.
25952 * c-decl.c: Do not include rtl.h.
25953 * c-pragma.c: Likewise.
25954 * c-parser.c: Likewise.
25955 * c-gimplify.c: Likewise. And also not hard-reg-set.
25956 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
25957 FIXME note for it. Add a FIXME note for expr.h.
25958 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
25959 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
25960 defined.
25961
25962 2010-05-26 Jakub Jelinek <jakub@redhat.com>
25963
25964 PR target/44199
25965 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
25966 or total_size is larger than red zone size for non-V4 ABI, emit a
25967 stack_tie resp. frame_tie insn before stack pointer restore.
25968 * config/rs6000/rs6000.md (frame_tie): New insn.
25969
25970 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
25971
25972 * function.h (struct function): Add can_throw_non_call_exceptions bit.
25973 * lto-streamer-in.c (input_function): Stream it in.
25974 * lto-streamer-out.c (output_function): Stream it out.
25975 * function.c (allocate_struct_function): Set it.
25976 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
25977 for flag_non_call_exceptions.
25978 * cfgbuild.c (control_flow_insn_p): Likewise.
25979 (make_edges): Likewise.
25980 * cfgexpand.c (expand_stack_alignment): Likewise.
25981 * combine.c (distribute_notes): Likewise.
25982 * cse.c (cse_extended_basic_block): Likewise.
25983 * except.c (insn_could_throw_p): Likewise.
25984 * gcse.c (simple_mem): Likewise.
25985 * ipa-pure-const.c (check_call): Likewise.
25986 (check_stmt ): Likewise.
25987 * lower-subreg.c (lower-subreg.c): Likewise.
25988 * optabs.c (emit_libcall_block): Likewise.
25989 (prepare_cmp_insn): Likewise.
25990 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
25991 * postreload.c (rest_of_handle_postreload): Likewise.
25992 * reload1.c (reload_as_needed): Likewise.
25993 (emit_input_reload_insns): Likewise.
25994 (emit_output_reload_insns): Likewise.
25995 (fixup_abnormal_edges): Likewise.
25996 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
25997 * store-motion.c (find_moveable_store): Likewise.
25998 * tree-eh.c (stmt_could_throw_p): Likewise.
25999 (tree_could_throw_p): Likewise.
26000 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26001 * config/arm/arm.c (arm_expand_prologue): Likewise.
26002 (thumb1_expand_prologue): Likewise.
26003 * config/rx/rx.md (cbranchsf4): Likewise.
26004 (cmpsf): Likewise.
26005 * config/s390/s390.c (s390_emit_prologue): Likewise.
26006 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
26007 (inline_forbidden_into_p): New predicate.
26008 (expand_call_inline): Use it to forbid inlining.
26009 (tree_can_inline_p): Likewise.
26010
26011 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26012
26013 * config/i386/i386-c.c: Do not include rtl.h.
26014 * config/i386/t-i386: Update dependencies.
26015
26016 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26017
26018 * attribs.c: Do not include rtl.h.
26019 * Makefile.in: Update dependencies.
26020
26021 2010-05-25 Anatoly Sokolov <aesok@post.ru>
26022
26023 * double-int.h (double_int_and): New.
26024 * combine.c (try_combine): Clean up, use double_int_* and
26025 immed_double_int_const functions.
26026
26027 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26028
26029 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
26030 stderr to /dev/null instead of grep -q.
26031 * configure: Regenerate.
26032
26033 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26034
26035 * Makefile.in (EXCEPT_H): Fix typo.
26036
26037 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
26038
26039 * ira-build.c (update_conflict_hard_reg_costs): New.
26040 (ira_build): Call update_conflict_hard_reg_costs.
26041
26042 2010-05-25 Jakub Jelinek <jakub@redhat.com>
26043
26044 PR debug/41371
26045 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
26046 ENABLE_CHECKING.
26047 (intersect_loc_chains): Walk the s2var's loc_chain together
26048 with s1node chain as long as the locations are equal, don't
26049 call find_loc_in_1pdv in that case.
26050
26051 PR debug/42801
26052 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
26053 (copy_bind_expr): ... instead of here.
26054 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
26055 if the block hasn't been remapped.
26056 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
26057 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
26058
26059 2010-05-25 Richard Guenther <rguenther@suse.de>
26060
26061 PR middle-end/44069
26062 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
26063 out-of-bounds array accesses.
26064
26065 2010-05-25 Richard Guenther <rguenther@suse.de>
26066
26067 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
26068 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
26069 (run_gcc): Re-organize to make cleanup easier.
26070
26071 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26072
26073 * config/s390/s390.c (optimization_options): Fix and move the
26074 flag_prefetch_loop_arrays override ...
26075 (override_options): ... here.
26076
26077 2010-05-25 Joseph Myers <joseph@codesourcery.com>
26078
26079 * diagnostic.c: Don't include plugin.h.
26080 (diagnostic_report_diagnostic): Don't handle plugins specially
26081 here. Pass context to internal_error callback.
26082 * diagnostic.h (struct diagnostic_context): Add context parameter
26083 to internal_error callback.
26084 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
26085 * plugin.h (struct diagnostic_context): Declare.
26086 (warn_if_plugins, plugins_internal_error_function): Declare.
26087 * toplev.c (general_init): Set global_dc->internal_error.
26088 * Makefile.in (diagnostic.o): Update dependencies.
26089
26090 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
26091
26092 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
26093 * config/rs6000/t-darwin64: New.
26094 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
26095 build crt2.
26096
26097 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
26098
26099 PR 44203
26100 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
26101 match the original (and intended) behaviour before r159557. This
26102 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
26103 in two ways.
26104
26105 2010-05-25 Richard Guenther <rguenther@suse.de>
26106
26107 * doc/invoke.texi: Document -Ofast.
26108 * target.h (struct gcc_target): Add handle_ofast.
26109 * target-def.h (TARGET_HANDLE_OFAST): Add.
26110 (TARGET_INITIALIZER): Adjust.
26111 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
26112 * common.opt (Ofast): Add.
26113
26114 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
26115
26116 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
26117 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
26118
26119 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
26120
26121 PR target/43610
26122 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
26123 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
26124 false_rtx. Use false_rtx to compute the correct *ptest for reversed
26125 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
26126
26127 2010-05-25 Jakub Jelinek <jakub@redhat.com>
26128
26129 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
26130 DW_OP_minus with negated offset instead of DW_OP_plus.
26131 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
26132
26133 2010-05-25 Wei Guozhi <carrot@google.com>
26134
26135 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
26136 tst instruction and a new alternative.
26137 * config/arm/constraints.md (Pu): New constraint.
26138
26139 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
26140
26141 * function.c (assign_stack_local_1): Initialize variable
26142 to avoid warning when bootstrapping at -O3.
26143
26144 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
26145
26146 * configure.ac (all_lang_makefiles): Remove everything related to it.
26147 * configure: Regenerate.
26148 * Makefile.in: Fix reference to ada Make-lang.in.
26149 Remove support for LANG_MAKEFILES.
26150
26151 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
26152 Sandra Loosemore <sandra@codesourcery.com>
26153
26154 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
26155 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
26156 description. Add arm_neon_fp16_ok.
26157 (Add Options): Add arm_neon and arm_neon_fp16.
26158
26159 2010-05-24 Joseph Myers <joseph@codesourcery.com>
26160
26161 * diagnostic.c: Don't include flags.h.
26162 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
26163 context parameters. Check flags in the context passed as a parameter.
26164 (diagnostic_build_prefix): Add context parameter. Check
26165 show_column flag in context.
26166 (diagnostic_action_after_output): Check fatal_errors flag in context.
26167 (diagnostic_report_current_module): Check show_column flag in context.
26168 (default_diagnostic_starter): Update call to
26169 diagnostic_build_prefix.
26170 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
26171 (emit_diagnostic): Pass context to permissive_error_kind.
26172 (permerror): Pass context to permissive_error_kind.
26173 * diagnostic.h (struct diagnostic_context): Add show_column,
26174 pedantic_errors, permissive and fatal_errors fields.
26175 (diagnostic_build_prefix): Update prototype.
26176 * langhooks.c
26177 * toplev.c (process_options): Set flags in global_dc from
26178 flag_show_column, flag_pedantic_errors, flag_permissive,
26179 flag_fatal_errors.
26180 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
26181 to diagnostic_build_prefix.
26182 * Makefile.in (diagnostic.o): Update dependencies.
26183
26184 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
26185
26186 * config/i386/ia32intrin.h (__crc32q): Define only if
26187 __SSE4_2__ is defined.
26188
26189 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
26190
26191 PR target/44132
26192 PR middle-end/43602
26193 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
26194 DECL_VISIBILITY_SPECIFIED.
26195 (emutls_decl): Set DECL_PRESERVE_P and copy
26196 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
26197 (emutls_finalize_control_var): New callback.
26198 (emutls_finish): Finalize emutls control variables.
26199 * toplev.c (compile_file): Move the call to emutls_finish ()
26200 before varpool_assemble_pending_decls ().
26201
26202 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
26203
26204 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
26205 added to the preprocessor condition.
26206
26207 2010-05-24 Paul Brook <paul@codesourcery.com>
26208
26209 * gengtype-lex.l: Add HARD_REG_SET.
26210 * expr.c (expand_expr_real_1): Record writes to hard registers.
26211 * function.c (rtl_data): Add asm_clobbers.
26212 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
26213 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
26214 Use crtl->asm_clobbers.
26215
26216 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26217
26218 * doc/makefile.texi (Makefile): Mention stages 'profile'
26219 and 'feedback' for profiledbootstrap.
26220
26221 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
26222
26223 PR target/44245
26224 * config/i386/i386.c (def_builtin): Properly check
26225 OPTION_MASK_ISA_64BIT.
26226
26227 2010-05-23 Joseph Myers <joseph@codesourcery.com>
26228
26229 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
26230 typedefs with different but compatible types. Allow duplicate
26231 typedefs with the same type except for pedantic non-C1X, but give
26232 warning for variably modified types.
26233 * c-typeck.c (tagged_types_tu_compatible_p,
26234 function_types_compatible_p, type_lists_compatible_p,
26235 comptypes_internal): Add parameter different_types_p; set
26236 *different_types_p for different but compatible types. All
26237 callers changed.
26238 (comptypes_check_different_types): New.
26239 * c-tree.h (comptypes_check_different_types): Declare.
26240
26241 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26242
26243 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
26244 * jump.c: Include basic-block.h.
26245 * profile.c: Likewise.
26246 * tree-profile.c: Likewise.
26247 * coverage.c: Likewise.
26248 * basic-block.h (optimize_function_for_size_p): Move to function.h.
26249 (optimize_function_for_speed_p): Likewise.
26250 * function.h (optimize_function_for_size_p,
26251 optimize_function_for_speed_p): Moved here from basic-block.h.
26252 * Makefile.in: Update dependencies.
26253
26254 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26255
26256 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
26257 before calling make; allow override through $MAKE.
26258 * doc/invoke.texi (Optimize Options): Document override.
26259
26260 2010-05-23 Anatoly Sokolov <aesok@post.ru>
26261
26262 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
26263 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26264 (rs6000_mode_dependent_address_ptr): Make static.
26265 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26266 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
26267 Remove.
26268
26269 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
26270
26271 PR target/43869
26272 * config/i386/i386.c: Make sure that the correct regparm is passed.
26273
26274 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26275
26276 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
26277 * sbitmap.c: ...to here to internalize sbitmap element access.
26278 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
26279 Explain why basic-block.h is included.
26280 * function.h: Include tm.h for CUMULATIVE_ARGS.
26281 * Makefile.in: Update dependencies.
26282
26283 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26284
26285 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
26286 New core types.
26287 * sbitmap.h (struct sbitmap_def): Do not typedef here.
26288 * sbitmap.c: Include sbitmap.h.
26289 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
26290 hard-reg-set.h. Split everything related to regsets out from here...
26291 * regset.h: ...to here. New file.
26292 * df.h: Include regset.h and sbitmap.h.
26293 * tree-flow.h: Likewise.
26294 * cfgloop.h: Likewise.
26295 * except.h: Do not include sbitmap.h. Include hashtab.h.
26296 * cgraph.h: Include vec.h and function.h.
26297 * reload.h (struct insn_chain): Change types of live_throughout
26298 and dead_or_set from regset_head to bitmap_head.
26299 (compute_use_by_pseudos): Be defined also if regset.h is not included.
26300 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
26301 spilled_regs from regset_head to bitmap_head to avoid dependency
26302 in regset.h.
26303 * sel-sched-ir.h: Include regset.h.
26304 * reload.c: Include df.h before reload.h.
26305 * caller-save.c: Likewise.
26306 * reload1.c: Likewise.
26307 * ira.c: Likewise.
26308 (mark_elimination): Update type of r to bitmap, consistent with
26309 DF_LR_IN.
26310 * dominance.c: Include bitmap.h.
26311 * modulo-sched.c: Include df.h.
26312 * cfganal.c: Include bitmap.h and sbitmap.h.
26313 * cfgbuild.c: Include sbitmap.h.
26314 * lcm.c: Include sbitmap.h.
26315 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
26316 * domwalk.c: Include sbitmap.h, exclude ggc.h.
26317 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
26318 * cselib.c: Include bitmap.h.
26319 * tree-optimize.c: Include regset.h.
26320 * stmt.c: Include bitmap.h.
26321 * Makefile.in: Update dependencies.
26322
26323 2010-05-22 Jan Hubicka <jh@suse.cz>
26324
26325 * cgraph.h (struct varpool_node): Add same_comdat_group.
26326 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
26327 pointer.
26328 (output_varpool): Update call of lto_output_varpool_node.
26329 (input_varpool): Read same_comdat_group pointer.
26330 (input_varpool_1): Fixup same_comdat_group pointer.
26331 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
26332 group is needed, all are.
26333 * varpool.c (varpool_remove_node): Remove node from same comdat group
26334 linklist too.
26335 (varpool_analyze_pending_decls): Walk same comdat groups.
26336
26337 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26338
26339 * rtl.h (union rtunion_def): Remove rt_bit member.
26340 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
26341 * print-rtl (print_rtx): Do not print the member.
26342 * gengtype.c (adjust_field_rtx_def): Do not handle it.
26343 * gengenrtl.c (type_from_format): Likewise.
26344 (accessor_from_format): Likewise.
26345
26346 2010-05-22 Joseph Myers <joseph@codesourcery.com>
26347
26348 * dbgcnt.c: Include toplev.h instead of errors.h.
26349 * ira-emit.c: Don't include errors.h.
26350 * ira.c: Include toplev.h instead of errors.h.
26351 * lto-compress.c: Include toplev.h instead of errors.h.
26352 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
26353 ira.o, dbgcnt.o): Update dependencies.
26354
26355 2010-05-22 Richard Guenther <rguenther@suse.de>
26356
26357 * gimple.c (gimple_types_compatible_p): Check type qualifications
26358 before merging pointer to complete and pointer to incomplete type.
26359 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
26360 we use our own resolution algorithm. The gold linker plugin
26361 doesn't do the job we want it to do here.
26362
26363 2010-05-22 Anatoly Sokolov <aesok@post.ru>
26364
26365 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26366 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26367 (sparc_mode_dependent_address_p): New function.
26368
26369 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26370
26371 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
26372
26373 * timevar.c: Do not include any core headers.
26374 (timevar_print): De-i18n-ize.
26375 (print_time): Likewise.
26376 * timevar.h (timevar_push, timevar_pop): Make inline functions.
26377
26378 2010-05-21 Joseph Myers <joseph@codesourcery.com>
26379
26380 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
26381 langhooks-def.h.
26382 (diagnostic_initialize): Initialize x_data not last_function.
26383 (diagnostic_report_current_function): Move to tree-diagnostic.c.
26384 (default_diagnostic_starter): Call
26385 diagnostic_report_current_module not
26386 diagnostic_report_current_function.
26387 (diagnostic_report_diagnostic): Initialize x_data not
26388 abstract_origin.
26389 (verbatim): Likewise.
26390 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
26391 x_data.
26392 (struct diagnostic_context): Change last_function to x_data.
26393 (diagnostic_auxiliary_data): Replace with
26394 diagnostic_context_auxiliary_data and
26395 diagnostic_info_auxiliary_data.
26396 (diagnostic_last_function_changed, diagnostic_set_last_function,
26397 diagnostic_report_current_function): Move to tree-diagnostic.h.
26398 (print_declaration, dump_generic_node, print_generic_stmt,
26399 print_generic_stmt_indented, print_generic_expr,
26400 print_generic_decl, debug_c_tree, dump_omp_clauses,
26401 print_call_name, debug_generic_expr, debug_generic_stmt,
26402 debug_tree_chain, default_tree_printer): Move to
26403 tree-pretty-print.h.
26404 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
26405 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
26406 gimple-pretty-print.h.
26407 * pretty-print.c: Don't include tree.h
26408 (pp_base_format): Don't handle %K here.
26409 (pp_base_tree_identifier): Move to tree-pretty-print.c.
26410 * pretty-print.h (text_info): Change abstract_origin to x_data.
26411 (pp_tree_identifier, pp_unsupported_tree,
26412 pp_base_tree_identifier): Move to tree-pretty-print.h.
26413 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
26414 tree-pretty-print.h: New files.
26415 * tree-pretty-print.c: Include tree-pretty-print.h.
26416 (percent_K_format): New. Moved from pretty-print.c.
26417 (pp_base_tree_identifier): Move from pretty-print.c.
26418 * c-objc-common.c: Include tree-pretty-print.h.
26419 (c_tree_printer): Handle %K here.
26420 * langhooks.c: Include tree-diagnostic.h.
26421 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
26422 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
26423 (default_tree_printer): Handle %K using percent_K_format.
26424 (general_init): Use default_tree_diagnostic_starter.
26425 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
26426 (free_lang_data): Use default_tree_diagnostic_starter.
26427 * c-pretty-print.c: Include tree-pretty-print.h.
26428 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26429 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26430 * dwarf2out.c: Include tree-pretty-print.h.
26431 * except.c: Include tree-pretty-print.h.
26432 * gimple-pretty-print.c: Include tree-pretty-print.h and
26433 gimple-pretty-print.h.
26434 * gimplify.c: Include tree-pretty-print.h.
26435 * graphite-poly.c: Include tree-pretty-print.h and
26436 gimple-pretty-print.h.
26437 * ipa-cp.c: Include tree-pretty-print.h.
26438 * ipa-inline.c: Include gimple-pretty-print.h.
26439 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26440 * ipa-pure-const.c: Include gimple-pretty-print.h.
26441 * ipa-struct-reorg.c: Include tree-pretty-print.h and
26442 gimple-pretty-print.h.
26443 * ipa-type-escape.c: Include tree-pretty-print.h.
26444 * print-rtl.c: Include tree-pretty-print.h.
26445 * print-tree.c: Include gimple-pretty-print.h.
26446 * sese.c: Include tree-pretty-print.h.
26447 * tree-affine.c: Include tree-pretty-print.h.
26448 * tree-browser.c: Include tree-pretty-print.h.
26449 * tree-call-cdce.c: Include gimple-pretty-print.h.
26450 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
26451 * tree-chrec.c: Include tree-pretty-print.h.
26452 * tree-data-ref.c: Include tree-pretty-print.h and
26453 gimple-pretty-print.h.
26454 * tree-dfa.c: Include tree-pretty-print.h.
26455 * tree-if-conv.c: Include tree-pretty-print.h and
26456 gimple-pretty-print.h.
26457 * tree-inline.c: Include tree-pretty-print.h.
26458 * tree-into-ssa.c: Include tree-pretty-print.h and
26459 gimple-pretty-print.h.
26460 * tree-nrv.c: Include tree-pretty-print.h.
26461 * tree-object-size.c: Include tree-pretty-print.h and
26462 gimple-pretty-print.h.
26463 * tree-outof-ssa.c: Include tree-pretty-print.h and
26464 gimple-pretty-print.h.
26465 * tree-parloops.c: Include tree-pretty-print.h and
26466 gimple-pretty-print.h.
26467 * tree-predcom.c: Include tree-pretty-print.h and
26468 gimple-pretty-print.h.
26469 * tree-scalar-evolution.c: Include tree-pretty-print.h and
26470 gimple-pretty-print.h.
26471 * tree-sra.c: Include tree-pretty-print.h.
26472 * tree-ssa-address.c: Include tree-pretty-print.h.
26473 * tree-ssa-alias.c: Include tree-pretty-print.h.
26474 * tree-ssa-ccp.c: Include tree-pretty-print.h and
26475 gimple-pretty-print.h.
26476 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
26477 * tree-ssa-copy.c: Include tree-pretty-print.h and
26478 gimple-pretty-print.h.
26479 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
26480 * tree-ssa-dce.c: Include tree-pretty-print.h and
26481 gimple-pretty-print.h.
26482 * tree-ssa-dom.c: Include tree-pretty-print.h and
26483 gimple-pretty-print.h.
26484 * tree-ssa-dse.c: Include gimple-pretty-print.h.
26485 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
26486 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
26487 * tree-ssa-live.c: Include tree-pretty-print.h and
26488 gimple-pretty-print.h.
26489 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
26490 gimple-pretty-print.h.
26491 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
26492 gimple-pretty-print.h.
26493 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
26494 gimple-pretty-print.h.
26495 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
26496 gimple-pretty-print.h.
26497 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
26498 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
26499 * tree-ssa-operands.c: Include tree-pretty-print.h and
26500 gimple-pretty-print.h.
26501 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
26502 gimple-pretty-print.h.
26503 * tree-ssa-pre.c: Include tree-pretty-print.h and
26504 gimple-pretty-print.h.
26505 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
26506 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
26507 gimple-pretty-print.h.
26508 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
26509 gimple-pretty-print.h.
26510 * tree-ssa-sink.c: Include gimple-pretty-print.h.
26511 * tree-ssa-ter.c: Include tree-pretty-print.h and
26512 gimple-pretty-print.h.
26513 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
26514 * tree-ssa.c: Include tree-pretty-print.h and
26515 gimple-pretty-print.h.
26516 * tree-stdarg.c: Include gimple-pretty-print.h.
26517 * tree-switch-conversion.c: Include gimple-pretty-print.h.
26518 * tree-tailcall.c: Include tree-pretty-print.h and
26519 gimple-pretty-print.h.
26520 * tree-vect-data-refs.c: Include tree-pretty-print.h and
26521 gimple-pretty-print.h.
26522 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
26523 gimple-pretty-print.h.
26524 * tree-vect-loop.c: Include tree-pretty-print.h and
26525 gimple-pretty-print.h.
26526 * tree-vect-patterns.c: Include gimple-pretty-print.h.
26527 * tree-vect-slp.c: Include tree-pretty-print.h and
26528 gimple-pretty-print.h.
26529 * tree-vect-stmts.c: Include tree-pretty-print.h and
26530 gimple-pretty-print.h.
26531 * tree-vectorizer.c: Include tree-pretty-print.h.
26532 * tree-vrp.c: Include tree-pretty-print.h and
26533 gimple-pretty-print.h.
26534 * value-prof.c: Include tree-pretty-print.h and
26535 gimple-pretty-print.h.
26536 * var-tracking.c: Include tree-pretty-print.h.
26537 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
26538 (tree-diagnostic.o): New dependencies.
26539 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
26540 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
26541 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
26542 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
26543 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
26544 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
26545 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
26546 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
26547 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
26548 tree-ssa-address.o, tree-ssa-loop-niter.o,
26549 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
26550 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
26551 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
26552 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
26553 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
26554 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
26555 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
26556 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
26557 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
26558 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
26559 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
26560 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
26561 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
26562 tree-switch-conversion.o, var-tracking.o, value-prof.o,
26563 cfgexpand.o, pretty-print.o): Update dependencies.
26564
26565 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
26566
26567 * tree-ssa-structalias.c: Remove tm_p.h from include.
26568
26569 2010-05-21 Jeff Law <law@redhat.com>
26570
26571 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
26572
26573 2010-05-21 Jason Merrill <jason@redhat.com>
26574
26575 * tree-eh.c (cleanup_is_dead_in): New.
26576 (lower_try_finally): Don't generate a dead cleanup region.
26577 (lower_cleanup): Likewise.
26578
26579 2010-05-21 Jakub Jelinek <jakub@redhat.com>
26580
26581 PR debug/44223
26582 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
26583 unchain each use from the cyclic next_regno_use chain first.
26584
26585 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26586
26587 * real: Do not include gmp.h, mpfr.h, and mpc.h.
26588 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
26589 (real_value_negate, real_value_abs): New prototypes.
26590 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
26591 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
26592 new include file for interface between MPFR and REAL_VALUE_TYPE.
26593 * real.c: Include realmpfr.h.
26594 (real_arithmetic2): Remove legacy function.
26595 (real_value_negate): New.
26596 (real_value_abs): New.
26597 (mfpr_from_real, real_from_mpfr): Move from here...
26598 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
26599 * builtins.c: Include realmpfr.h.
26600 * fold-const.c: Include realmpfr.h.
26601 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
26602 (fold_negate_const): Likewise.
26603 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
26604 * toplev.c: Include realmpfr.h.
26605 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
26606 and real_value_negate.
26607 * fixed-value.c (check_real_for_fixed_mode): Likewise.
26608 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
26609 (vfp3_const_double_index): Likewise.
26610 (arm_print_operand): Likewise.
26611 * Makefile.in: Update dependencies.
26612
26613 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26614
26615 * config/s390/s390.c (override_options): Increase the default
26616 of max-completely-peel-times.
26617
26618 2010-05-21 Julian Brown <julian@codesourcery.com>
26619 Mark Mitchell <mark@codesourcery.com>
26620
26621 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
26622 sibling calls for Thumb-1.
26623 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
26624 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
26625 Thumb-2.
26626 (*call_insn, *call_value_insn): Don't use for Thumb-2.
26627 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
26628 for Thumb-2.
26629 (return): New expander.
26630 (*arm_return): New name for ARM return insn.
26631 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
26632
26633 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
26634
26635 * config.gcc (sparc64-*-rtems*): New target.
26636
26637 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
26638
26639 * tree.c (build_function_decl_skip_args): Fix grammar.
26640 (build_function_type_list_1): Fix typos, adjust formatting.
26641
26642 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26643
26644 * tree.h: Include real.h and fixed-value.h as basic datatypes.
26645 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
26646 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
26647 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
26648 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
26649 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
26650 tree-pretty-print.c, tree-loop-distribution.c,
26651 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
26652 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
26653 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
26654 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
26655 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
26656 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
26657 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
26658 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
26659 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
26660 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
26661 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
26662 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
26663 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
26664 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
26665 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
26666 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
26667 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
26668 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
26669 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
26670 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
26671 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
26672 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
26673 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
26674 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
26675 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
26676 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
26677 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
26678 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
26679 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
26680 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
26681 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
26682 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
26683 config/score/score7.c, config/score/score.c, config/arm/arm.c,
26684 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
26685 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
26686 config/bfin/bfin.c: Clean up redundant includes.
26687 * Makefile.in: Update accordingly.
26688
26689 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
26690
26691 PR middle-end/44204
26692 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
26693 statement has no arguments.
26694
26695 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
26696
26697 PR/44139
26698 * varasm.c (emutls_decl): Merge attributes to new decl.
26699
26700 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
26701
26702 PR middle-end/44101
26703 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
26704 around the uniquized constructor if its type requires a conversion.
26705
26706 2010-05-21 Jakub Jelinek <jakub@redhat.com>
26707
26708 PR debug/44205
26709 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
26710 at -O0 goto_locus of any of the incoming edges differs from
26711 goto_locus of outgoing edge, or gimple_location of any of the
26712 labels differs.
26713
26714 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
26715
26716 * ira.c (ira_non_ordered_class_hard_regs): Define.
26717 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
26718 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
26719 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
26720 cost of unaligned hard regs when allocating multi-reg pseudos.
26721
26722 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
26723
26724 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
26725 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
26726 for TARGET_NO_FLOAT.
26727 * config/mips/mips.c (mips_file_start): Expand conditional expression
26728 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
26729 (mips_override_options): Move -mno-float override -msoft-float and
26730 -mhard-float.
26731 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
26732 Condition(TARGET_SUPPORTS_NO_FLOAT).
26733 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
26734 __mips_no_float here.
26735 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
26736 (TARGET_SUPPORTS_NO_FLOAT): Define.
26737 * config/mips/sdemtk.opt: Delete.
26738
26739 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
26740
26741 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
26742
26743 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
26744
26745 PR target/43733
26746 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
26747 * configure: Regenerate.
26748 * config.in: Regenerate.
26749 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
26750 instead of sahf only for 64bit targets.
26751
26752 2010-05-20 Jakub Jelinek <jakub@redhat.com>
26753
26754 PR debug/44178
26755 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
26756 setup_ref_regs for DEBUG_INSNs.
26757
26758 2010-05-20 Jan Hubicka <jh@suse.cz>
26759
26760 PR middle-end/44197
26761 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
26762
26763 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
26764
26765 PR bootstrap/43870
26766 * df-scan.c (df_ref_compare): Stabilize sort.
26767
26768 2010-05-20 Jakub Jelinek <jakub@redhat.com>
26769
26770 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
26771 argument. Don't use DW_OP_piece if offset is non-zero,
26772 put offset into second DW_OP_bit_piece argument.
26773 (dw_sra_loc_expr): Adjust callers. For memory expressions
26774 compute offset.
26775
26776 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
26777
26778 PR target/44202
26779 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
26780 settings for 16-bit-constant "addo" alternative.
26781
26782 2010-05-19 James E. Wilson <wilson@codesourcery.com>
26783
26784 * config/mips/mips-dsp.md (add<DSPV:mode>3,
26785 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
26786
26787 PR target/43764
26788 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
26789 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
26790 Use it.
26791
26792 2010-05-19 Joseph Myers <joseph@codesourcery.com>
26793
26794 * diagnostic.c (FLOAT, FFS): Don't undefine.
26795 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
26796 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
26797 include ordering.
26798
26799 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26800
26801 * combine.c (propagate_for_debug): Call make_compound_operation
26802 on the source value.
26803 (try_combine): When implementing a split chosen by find_split_point,
26804 either copy i2src or set it to null. Assert that i2src is not null
26805 before substituting into CALL_INSN_FUNCTION_USAGE.
26806
26807 2010-05-19 Anatoly Sokolov <aesok@post.ru>
26808
26809 * double-int.h (double_int_ior): New function.
26810 * tree.h (build_int_cst_wide_type): Remove.
26811 * tree.c (build_int_cst_wide_type): Remove.
26812 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
26813 of build_int_cst_wide_type.
26814 * stor-layout.c (set_sizetype): (Ditto.).
26815 * dojump.c (do_jump): Use build_int_cstu instead of
26816 build_int_cst_wide_type.
26817
26818 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
26819
26820 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
26821 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
26822 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
26823 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
26824 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
26825 propagate the 'data' argument to copy_tree_r.
26826 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
26827 Propagate 'data' argument to walk_tree.
26828 (copy_if_shared): New function.
26829 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
26830 (unmark_visited): New function.
26831 (unshare_body): Call copy_if_shared instead of doing it manually.
26832 (unvisit_body): Call unmark_visited instead of doing it manually.
26833
26834 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
26835
26836 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
26837 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
26838 * hooks.c: Likewise.
26839 * target-def.h (TARGET_FOLD_BUILTIN): Define to
26840 hook_tree_tree_int_treep_bool_null.
26841 * target.h (struct gcc_target): Update signature of fold_builtin
26842 field.
26843 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
26844 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
26845 instead of the call expression.
26846 (fold_builtin_call_array): Pass n and argarray directly.
26847 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
26848 consing a list.
26849 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
26850 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
26851 `i' and use it in place of `arity'.
26852 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
26853 Dereference `args' directly.
26854 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
26855
26856 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26857
26858 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26859 3dnow, sse3, sse2.
26860 (Directives): Document optional dg-require-effective-target
26861 selector.
26862
26863 2010-05-19 Richard Guenther <rguenther@suse.de>
26864
26865 PR lto/44196
26866 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
26867
26868 2010-05-19 Richard Guenther <rguenther@suse.de>
26869
26870 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
26871 * common.opt (fwhopr=): New.
26872 * opts.c (common_handle_option): Handle OPT_fwhopr.
26873 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
26874 * collect2.c (main): Match -fwhopr*.
26875 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
26876 Execute ltrans stage in parallel when jobs is bigger than 1.
26877
26878 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26879
26880 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
26881 pentiumpro on Solaris 8/x86 with Sun as.
26882 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
26883 hidden alias bug.
26884 (gcc_cv_as_ix86_quad): Check for .quad directive.
26885 * configure: Regenerate.
26886 * config.in: Regenerate.
26887 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
26888
26889 2010-05-19 Martin Jambor <mjambor@suse.cz>
26890
26891 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
26892 also for indirect edges. Actual printing moved...
26893 (ipa_print_node_jump_functions_for_edge): ...here.
26894 (ipa_compute_jump_functions): Renamed to
26895 ipa_compute_jump_functions_for_edge and made static.
26896 (ipa_compute_jump_functions): New function.
26897 (make_edge_direct_to_target): Check if the number of arguments on
26898 the newly direct edge is the same as the number of parametrs of
26899 the callee.
26900 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
26901 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
26902 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
26903 analysis functions unconditionally, call the new
26904 ipa_analyze_params_uses on the node instead of every edge.
26905
26906 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
26907
26908 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
26909 to tree.
26910 (dump_mem_ref): Adopt debug code to handle a tree as step. This
26911 also checks for a constant int vs. non-constant but
26912 loop-invariant steps.
26913 (find_or_create_group): Change the sort algorithm to only consider
26914 steps that are constant ints.
26915 (idx_analyze_ref): Adopt code to handle a tree instead of a
26916 HOST_WIDE_INT for step.
26917 (gather_memory_references_ref): Handle tree instead of int and be
26918 prepared to see a NULL_TREE.
26919 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
26920 prefetches if the step cannot be calculated at compile time.
26921 (issue_prefetch_ref): Issue prefetches for non-constant but
26922 loop-invariant steps.
26923
26924 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26925
26926 Revert:
26927 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26928
26929 * tree.h (build_call_list): Remove.
26930 * tree.c (build_call_list): Remove.
26931
26932 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
26933
26934 * tree.h (build_call_list): Remove.
26935 * tree.c (build_call_list): Remove.
26936
26937 2010-05-18 Jan Hubicka <jh@suse.cz>
26938
26939 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
26940
26941 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
26942
26943 PR rtl-optimization/43332
26944 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
26945
26946 2010-05-18 Anatoly Sokolov <aesok@post.ru>
26947
26948 * tree.h (build_int_cstu): Implement as static inline.
26949 * tree.c (build_int_cstu): Remove function.
26950 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
26951 sign extended.
26952
26953 2010-05-18 Richard Guenther <rguenther@suse.de>
26954
26955 PR lto/44143
26956 * lto-wrapper.c (verbose): New variable. Initialize from -v.
26957 (debug): Initialize from -save-temps.
26958 (collect_execute): Print command-line when verbose.
26959 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
26960 for ltrans invocation. Produce -dumpbase flag again.
26961 (process_args): Remove.
26962 (main): Simplify.
26963 * collect2.c (maybe_run_lto_and_relink): Only pass object
26964 files to lto-wrapper.
26965 * gcc.c (LINK_COMMAND_SPEC): Likewise.
26966
26967 2010-05-18 Jan Hubicka <jh@suse.cz>
26968
26969 * opts.c (decode_options): Do not disable whopr at ipa_cp.
26970 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
26971
26972 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26973
26974 PR lto/44184
26975 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
26976 in a GIMPLE_ASM.
26977 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
26978 in a GIMPLE_ASM.
26979
26980 2010-05-18 Jakub Jelinek <jakub@redhat.com>
26981
26982 PR debug/41371
26983 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
26984 rtx_equal_p inline.
26985
26986 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26987
26988 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
26989 lto-macho as lto_binary_reader.
26990
26991 * darwin.c (darwin_asm_named_section): Do not add assembler comment
26992 after .section directive; just print it before the directive instead.
26993
26994 2010-05-17 Jan Hubicka <jh@suse.cz>
26995
26996 * cgraph.c (cgraph_create_virtual_clone): Only check
26997 versionable_function_p when not in wpa and checking is enabled.
26998 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
26999 there are no more functions to materialize.
27000
27001 2010-05-17 Jan Hubicka <jh@suse.cz>
27002
27003 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
27004 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
27005 New functions.
27006 (output_cgraph): Call output_cgraph_opt_summary.
27007 (input_cgrpah): Call input_cgraph_opt_summary.
27008 (output_cgraph_opt_summary_p, output_node_opt_summary,
27009 input_node_opt_summary, input_cgraph_opt_section): New functions.
27010 * lto-section-in.c (lto_section_name): Add cgraphopt.
27011 * tree-inline.c (tree_function_versioning): Handle parm_num.
27012 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
27013 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
27014
27015 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
27016
27017 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
27018 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
27019 the insn to prefetch ratio heuristic to loops with known trip count.
27020
27021 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
27022
27023 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
27024 (schedule_prefetches): Do not generate a prefetch if the unroll factor
27025 is far from what is required by the prefetch.
27026
27027 2010-05-17 Jan Hubicka <jh@suse.cz>
27028
27029 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
27030 (ipcp_estimate_growth): Likewise.
27031 (ipcp_const_param_count): Likewise.
27032 (ipcp_insert_stage): Likewise.
27033 * ipa-prop.c (visit_load_for_mod_analysis): New function.
27034 (visit_store_addr_for_mod_analysis): Set used flag.
27035 (ipa_detect_param_modifications): Set used flag for SSE params;
27036 update use of walk_stmt_load_store_addr_ops.
27037 (ipa_print_node_params): Print used flag.
27038 (ipa_write_node_info): Stream used flag.
27039 (ipa_read_node_info): Likewise.
27040 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
27041 (ipa_is_param_used): New function.
27042 (lto_ipa_fixup_call_notes): Remove unused declaration.
27043
27044 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27045
27046 PR target/44074
27047 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
27048 * configure: Regenerate.
27049 * config.in: Regenerate.
27050 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
27051 !HAVE_AS_IX86_REP_LOCK_PREFIX.
27052 Don't emit whitespace.
27053 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
27054 (*rep_movsi): Likewise.
27055 (*rep_movsi_rex64): Likewise.
27056 (*rep_movqi): Likewise.
27057 (*rep_movqi_rex64): Likewise.
27058 (*rep_stosdi_rex64): Likewise.
27059 (*rep_stossi): Likewise.
27060 (*rep_stossi_rex64): Likewise.
27061 (*rep_stosqi): Likewise.
27062 (*rep_stosqi_rex64): Likewise.
27063 (*cmpstrnqi_nz_1): Use {%;} after repz.
27064 (*cmpstrnqi_nz_rex_1): Likewise.
27065 (*cmpstrnqi_1): Likewise.
27066 (*cmpstrnqi_rex_1): Likewise.
27067 (*strlenqi_1): Use {%;} after repnz.
27068 (*strlenqi_rex_1): Likewise.
27069 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
27070 (*sync_compare_and_swap<mode>): Likewise.
27071 (sync_double_compare_and_swap<mode>): Likewise.
27072 (*sync_double_compare_and_swapdi_pic): Likewise.
27073 (sync_old_add<mode>): Likewise.
27074 (sync_add<mode>): Likewise.
27075 (sync_sub<mode>): Likewise.
27076 (sync_<code><mode>): Likewise.
27077
27078 2010-05-17 Martin Jambor <mjambor@suse.cz>
27079
27080 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
27081 otr_token and polymorphic.
27082 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
27083 (cgraph_clone_edge): Copy the above fields.
27084 * tree.c (get_binfo_at_offset): New function.
27085 * tree.h (get_binfo_at_offset): Declare.
27086 * ipa-prop.h (enum jump_func_type): Added known_type jump function
27087 type, reordered items, updated comments.
27088 (union jump_func_value): Added base_type field, reordered fields.
27089 (enum ipa_lattice_type): Moved down in the file.
27090 (struct ipa_param_descriptor): New field polymorphic.
27091 (ipa_is_param_polymorphic): New function.
27092 * ipa-prop.c: Include gimple.h and gimple-fold.h.
27093 (ipa_print_node_jump_functions): Print known type jump functions.
27094 (compute_complex_pass_through): Renamed to...
27095 (compute_complex_assign_jump_func): this.
27096 (compute_complex_ancestor_jump_func): New function.
27097 (compute_known_type_jump_func): Likewise.
27098 (compute_scalar_jump_functions): Create known type and complex ancestor
27099 jump functions.
27100 (ipa_note_param_call): New parameter polymorphic, set the corresponding
27101 flag in the call note accordingly.
27102 (ipa_analyze_call_uses): Renamed to...
27103 (ipa_analyze_indirect_call_uses): this. New parameter target, define
27104 variable var only in the block where it is used.
27105 (ipa_analyze_virtual_call_uses): New function.
27106 (ipa_analyze_call_uses): Likewise.
27107 (combine_known_type_and_ancestor_jfs): Likewise.
27108 (update_jump_functions_after_inlining): Implemented handling of a
27109 number of new jump function types combination.
27110 (print_edge_addition_message): Removed.
27111 (make_edge_direct_to_target): New function.
27112 (try_make_edge_direct_simple_call): Likewise.
27113 (try_make_edge_direct_virtual_call): Likewise.
27114 (update_call_notes_after_inlining): Renamed to...
27115 (update_indirect_edges_after_inlining): this. Moved edge creation for
27116 indirect calls to try_make_edge_direct_simple_call, also calls
27117 try_make_edge_direct_virtual_call for virtual calls.
27118 (ipa_print_node_params): Changed the header message.
27119 (ipa_write_jump_function): Stream also known type jump functions.
27120 (ipa_read_jump_function): Likewise.
27121 (ipa_write_indirect_edge_info): Stream new fields in
27122 cgraph_indirect_call_info.
27123 (ipa_read_indirect_edge_info): Likewise.
27124 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
27125 GIMPLE_FOLD_H.
27126
27127 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27128
27129 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
27130
27131 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
27132
27133 * tree.h (CALL_EXPR_ARGS): Delete.
27134 (call_expr_arglist): Delete.
27135 * tree.c (call_expr_arglist): Delete.
27136 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
27137 targetm.fold_builtin.
27138 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
27139 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
27140 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
27141 arglist parameter. Use CALL_EXPR_ARG.
27142 (picochip_expand_builtin_3op): Likewise.
27143 (picochip_expand_builtin_2opvoid): Likewise.
27144 (picochip_expand_array_get): Likewise.
27145 (picochip_expand_array_put): Likewise.
27146 (picochip_expand_array_testport): Likewise.
27147 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
27148 rather than arglist.
27149 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
27150 CALL_EXPR_ARGS.
27151 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
27152 than TREE_VALUE and TREE_CHAIN.
27153 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
27154 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
27155 the arglist.
27156
27157 2010-05-17 Jakub Jelinek <jakub@redhat.com>
27158
27159 PR bootstrap/42347
27160 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
27161 to have no fallthru edge.
27162
27163 PR middle-end/44102
27164 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
27165 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
27166 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
27167 add BARRIER after previous bb if needed.
27168
27169 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
27170
27171 * tree.c (build_function_type_list_1): Remove bogus assert condition.
27172
27173 2010-05-17 Alan Modra <amodra@gmail.com>
27174
27175 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
27176 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
27177 with copy_reg rtx param.
27178 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
27179 Correct cases where code for ABI_V4 did not initialise the reg
27180 used to access frame. Also leave frame_reg_rtx as sp for large
27181 frames that save no regs.
27182
27183 2010-05-17 Martin Jambor <mjambor@suse.cz>
27184
27185 PR middle-end/44133
27186 * tree-sra.c (create_access_replacement): New parameter rename, mark
27187 the replaement for renaming only when it is true.
27188 (get_access_replacement): Pass true in the rename parameter of
27189 create_access_replacement.
27190 (get_unrenamed_access_replacement): New function.
27191 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
27192 replacement declaration from it.
27193
27194 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
27195
27196 * function.c (try_fit_stack_local, add_frame_space): New static
27197 functions.
27198 (assign_stack_local_1): Use them. Look for opportunities to use
27199 space previously wasted on alignment.
27200 * function.h (struct frame_space): New.
27201 (struct rtl_data): Add FRAME_SPACE_LIST member.
27202 * reload1.c (something_was_spilled): New static variable.
27203 (alter_reg): Set it.
27204 (reload): Test it in addition to testing if the frame size changed.
27205
27206 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
27207
27208 * config/s390/s390.c: Define sane prefetch settings and activate
27209 flag_prefetch_loop_arrays on -O3.
27210 * config/s390/s390.h: Declare that read can use write prefetch.
27211
27212 2010-05-17 Jakub Jelinek <jakub@redhat.com>
27213
27214 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
27215 build.
27216
27217 2010-05-16 Jan Hubicka <jh@suse.cz>
27218
27219 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
27220 function body; do not check stdarg field of struct function.
27221
27222 2010-05-16 Jan Hubicka <jh@suse.cz>
27223
27224 * cgraph.c (dump_cgraph_node): Dump versionable flag.
27225 * cgraph.h (cgraph_local_info): Add versionable flag.
27226 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
27227 (ipcp_versionable_function_p): Use it.
27228 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27229 versionable flag.
27230
27231 2010-05-16 Jan Hubicka <jh@suse.cz>
27232
27233 * cgraph.c (cgraph_clone_node): Take decl argument and insert
27234 clone into hash when it is different from orig.
27235 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
27236 * cgraph.h (cgraph_clone_node): Update prototype.
27237 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
27238 (lto_cgraph_encoder_delete): Delete body map.
27239 (lto_cgraph_encoder_size): Move to header.
27240 (lto_cgraph_encoder_encode_body_p,
27241 lto_set_cgraph_encoder_encode_body): New.
27242 (lto_output_node): Do not take written_decls argument; output clone_of
27243 pointer.
27244 (add_node_to): Add include_body_argument; call
27245 lto_set_cgraph_encoder_encode_body on master of the clone.
27246 (add_references): Update use of add_node_to.
27247 (compute_ltrans_boundary): Likewise.
27248 (output_cgraph): Do not create written_decls bitmap.
27249 (input_node): Take nodes argument; stream in clone_of correctly.
27250 (input_cgraph_1): Update use of input_node.
27251 * lto-streamer-out.c (lto_output): Use encoder info to decide
27252 what bodies to output.
27253 * ipa-inline.c (cgraph_clone_inlined_nodes,
27254 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
27255 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
27256 (lto_cgraph_encoder_size): Define here.
27257 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
27258 Declare.
27259
27260 2010-05-16 Richard Guenther <rguenther@suse.de>
27261
27262 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
27263 -fipa-type-escape.
27264 * ipa-type-escape.c (gate_type_escape_vars): Run when
27265 -fipa-struct-reorg runs.
27266 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
27267 * common.opt (fipa-type-escape): Remove.
27268
27269 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27270
27271 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
27272 (decode_options): Likewise.
27273 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
27274
27275 2010-05-16 Jan Hubicka <jh@suse.cz>
27276
27277 * ipa.c (function_and_variable_visibility): Also bring local all
27278 aliases.
27279
27280 2010-05-16 Richard Guenther <rguenther@suse.de>
27281
27282 * alias.c (nonoverlapping_memrefs_p): Remove use of
27283 IPA type-escape information.
27284
27285 2010-05-16 Joseph Myers <joseph@codesourcery.com>
27286
27287 * c-common.c (c_common_reswords): Add _Static_assert for C.
27288 * c-parser.c (c_token_starts_declaration,
27289 c_parser_next_token_starts_declaration,
27290 c_parser_static_assert_declaration_no_semi,
27291 c_parser_static_assert_declaration): New.
27292 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
27293 Handle static assertions if static_assert_ok.
27294 (c_parser_external_declaration, c_parser_declaration_or_fndef,
27295 c_parser_compound_statement_nostart, c_parser_label,
27296 c_parser_for_statement, c_parser_objc_methodprotolist,
27297 c_parser_omp_for_loop): All callers of
27298 c_parser_declaration_or_fndef changed.
27299 (c_parser_struct_declaration): Handle static assertions.
27300 (c_parser_compound_statement_nostart): Use
27301 c_parser_next_token_starts_declaration and
27302 c_token_starts_declaration to detect start of declarations.
27303 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
27304 Likewise.
27305
27306 2010-05-16 Anatoly Sokolov <aesok@post.ru>
27307
27308 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27309 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27310 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27311 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27312 (mmix_function_outgoing_value): Rename to...
27313 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
27314 (mmix_function_value_regno_p): Make static.
27315 (mmix_libcall_value): New function.
27316 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
27317 mmix_function_value_regno_p): Remove declaration.
27318
27319 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27320
27321 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
27322 BUILT_IN_ALLOCA if stack checking is enabled.
27323
27324 2010-05-16 Richard Guenther <rguenther@suse.de>
27325
27326 * var-tracking.c (vars_copy_1): Inline ...
27327 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
27328 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
27329 (variable_merge_over_cur): Adjust. Merge asserts.
27330 (variable_merge_over_src): Likewise.
27331 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
27332 (variable_post_merge_new_vals): Merge asserts.
27333 (variable_post_merge_perm_vals): Likewise.
27334 (find_mem_expr_in_1pdv): Likewise.
27335 (dataflow_set_different_value): Remove.
27336 (onepart_variable_different_p): Merge asserts.
27337 (variable_different_p): Likewise.
27338 (dataflow_set_different_1): Inline ...
27339 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
27340 (emit_notes_for_differences_1): Merge asserts.
27341
27342 2010-05-16 Richard Guenther <rguenther@suse.de>
27343
27344 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
27345 * optabs.c (libfunc_decl_hash): Likewise.
27346 * varasm.c (emutls_decl): Likewise.
27347
27348 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
27349
27350 * c-decl.c: Don't include gimple.h.
27351 (merge_decls): Do not copy gimple_body.
27352
27353 2010-05-15 Jason Merrill <jason@redhat.com>
27354
27355 * c.opt: Add -fnothrow-opt.
27356
27357 2010-05-15 Jan Hubicka <jh@suse.cz>
27358
27359 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
27360 analyzed.
27361 * passes.c (ipa_write_summaries): Write all analyzed nodes.
27362
27363 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
27364
27365 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
27366 * Makefile.in: Add it.
27367 Fix all other Makefile dependencies for changes below.
27368 * tree.h: Include it instead of defining VEC primitives here.
27369 * gimple.h: Likewise.
27370 * rtl.h: Likewise.
27371 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
27372 * except.h: Include vecir.h, break dependence on tree.h.
27373
27374 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
27375 Move from here...
27376 * tree-iterator.c: ...to here.
27377 * tree-iterator.h: Fix file introduction comment. Add extern markers.
27378
27379 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
27380 tm_p.h.
27381 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
27382 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
27383 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
27384 tree-mudflap.h, and target.h.
27385 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
27386 predict.h, tree-inline.h, gimple.h, and langhooks.h.
27387 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
27388 Add FIXME for why gimple.h is still included (should be unnecessary
27389 since GCC 4.5 gimplification unit-at-a-time).
27390 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
27391 * c-pragma.c: Add FIXME for why function.h needs to be included just
27392 for cfun, at front-end level.
27393 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
27394 Do not include ggc.h, but include vecprim.h for VEC(char).
27395 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
27396 Explain why target.h is included.
27397 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
27398 Explain why gimple.h is included.
27399 * c-ppoutput.c: Do not include tm.h.
27400 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
27401 * c-parses.c: Explain why rtl.h is included, and that this (and only
27402 this) is also why tm.h must be included.
27403 Do not include except.h.
27404 * c-lang.c: Do not include ggc.h.
27405
27406 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
27407
27408 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
27409
27410 2010-05-15 Joseph Myers <joseph@codesourcery.com>
27411
27412 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
27413 unions by default if those structs and unions have no tags. Do
27414 not condition anonymous struct and unions handling on flag_iso.
27415 Allow anonymous structs and unions for C1X.
27416 (finish_struct): Do not diagnose lack of named fields when
27417 anonymous structs and unions present for C1X. Accept flexible
27418 array members in structure with anonymous structs or unions but no
27419 directly named fields.
27420 * doc/extend.texi (Unnamed Fields): Update.
27421
27422 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
27423
27424 * gimple.h (compare_field_offset): Rename into...
27425 (gimple_compare_field_offset): ...this.
27426 * gimple.c (compare_field_offset): Rename into...
27427 (gimple_compare_field_offset): ...this. Compare the full access if
27428 the offset is self-referential.
27429 (gimple_types_compatible_p): Adjust for above renaming.
27430 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
27431 DECL_NONADDRESSABLE_P flag of fields before merging them.
27432
27433 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
27434
27435 * tree.h (ctor_to_list): Delete.
27436 * tree.c (ctor_to_list): Delete.
27437
27438 2010-05-15 Jan Hubicka <jh@suse.cz>
27439
27440 * ipa-reference.c: Include toplev.h
27441 (is_proper_for_analysis): Only add to all_module_statics
27442 if it is allocated.
27443 (write_node_summary_p, stream_out_bitmap,
27444 ipa_reference_write_optimization_summary,
27445 ipa_reference_read_optimization_summary): New.
27446 (struct ipa_opt_pass_d pass_ipa_reference): Add
27447 optimization summary streaming.
27448 * lto-cgraph.c (referenced_from_this_partition_p,
27449 reachable_from_this_partition_p): New functions.
27450 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
27451 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
27452 * opts.c (decode_options): Enable ipa_reference.
27453 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
27454 * lto-streamer.h (referenced_from_this_partition_p,
27455 reachable_from_this_partition_p): Declare.
27456
27457 2010-05-15 Richard Guenther <rguenther@suse.de>
27458
27459 PR tree-optimization/44038
27460 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
27461 taking the address of a V_C_E of a constant.
27462
27463 2010-05-14 Jan Hubicka <jh@suse.cz>
27464
27465 * tree.h (memory_identifier_string): Remove.
27466 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
27467 (ipa_reference_global_vars_info_d): Remove statics_not_read and
27468 statics_not_written.
27469 (ipa_reference_optimization_summary_d): New structure.
27470 (ipa_reference_optimization_summary_t): New type and vector.
27471 (ipa_reference_vars_info_d): Embedd structures instead of using
27472 pointers.
27473 (reference_vars_to_consider): Remove out of GGC space.
27474 (module_statics_escape): Remove.
27475 (global_info_obstack): Rename to ...
27476 (optimization_summary_obstack): ... this one.
27477 (initialization_status_t): Remove.
27478 (memory_identifier_string): Remove.
27479 (get_reference_vars_info): Fix indenting.
27480 (set_reference_vars_info): Likewise.
27481 (get_reference_optimization_summary): New.
27482 (set_reference_optimization_summary): New.
27483 (get_global_reference_vars_info): Remove.
27484 (ipa_reference_get_read_global): Remove.
27485 (ipa_reference_get_written_global): Remove.
27486 (ipa_reference_get_not_read_global): Update.
27487 (ipa_reference_get_not_written_global): Update.
27488 (is_proper_for_analysis): Outlaw addressable.
27489 (propagate_bits): Update for new datastructures.
27490 (analyze_variable): Remove.
27491 (init_function_info): Update for new datastructures.
27492 (clean_function_local_data): Remove.
27493 (clean_function): Remove.
27494 (copy_global_bitmap): Use optimizations_summary_obstack.
27495 (duplicate_node_data): Duplicate optimization summary only.
27496 (remove_node_data): Remove optimization summary only.
27497 (generate_summary): Do not analyze variables; do not compute
27498 module_statics_escape; do not prune solutions by it.
27499 (read_write_all_from_decl): Fix typos in comments.
27500 (propagate): Doscover readonly and nonaddressable first;
27501 update for new datastructures; share global bitmaps.
27502 * ipa-reference.h (ipa_reference_get_read_global,
27503 ipa_reference_get_written_global): Remove.
27504 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
27505 * Makefile.in: Remove ipa-refereference from GT files.
27506
27507 2010-05-14 Jakub Jelinek <jakub@redhat.com>
27508
27509 PR debug/44112
27510 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
27511 for all SYMBOL_REF_DECLs.
27512
27513 2010-05-14 Jan Hubicka <jh@suse.cz>
27514
27515 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
27516 (varpool_all_refs_explicit_p): New inline function.
27517 * ipa-reference.c: Update comment.
27518 (module_statics_written): Remove.
27519 (get_static_decl): Remove.
27520 (ipa_init): Do not initialize module_statics_written.
27521 (analyze_function): Likewise.
27522 (generate_summary): Likewise; do not compute module_statics_readonly
27523 and do not update variable flags.
27524 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
27525 * ipa.c: Inlucde flags.h
27526 (cgraph_local_node_p): New.
27527 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
27528 promote functions to local.
27529 (ipa_discover_readonly_nonaddressable_vars): New function.
27530 (function_and_variable_visibility): Use cgraph_local_node_p.
27531 * varpool.c (varpool_finalize_decl): Set force_output for
27532 DECL_PRESERVE_P vars.
27533
27534 2010-05-14 Jan Hubicka <jh@suse.cz>
27535
27536 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
27537
27538 2010-05-14 Richard Guenther <rguenther@suse.de>
27539
27540 PR tree-optimization/44119
27541 * tree-ssa-pre.c (eliminate): Properly mark replacement of
27542 a PHI node necessary.
27543
27544 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
27545
27546 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
27547
27548 2010-05-14 Jason Merrill <jason@redhat.com>
27549
27550 PR c++/44127
27551 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
27552 (gimple_call_set_nothrow): New.
27553 * gimple.c (gimple_build_call_from_tree): Call it.
27554 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
27555
27556 PR c++/44127
27557 * gimplify.c (gimplify_seq_add_stmt): No longer static.
27558 * gimple.h: Declare it.
27559 * gimple.c (gimple_build_eh_filter): No ops.
27560
27561 2010-05-14 Jan Hubicka <jh@suse.cz>
27562
27563 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
27564 nodes already in queue.
27565 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
27566 re-enqueueing node.
27567
27568 2010-05-14 Jakub Jelinek <jakub@redhat.com>
27569
27570 PR debug/44136
27571 * cfgexpand.c (expand_debug_expr): If non-memory op0
27572 has BLKmode, return NULL.
27573
27574 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
27575
27576 * config.gcc: Add support for --with-cpu option for bdver1.
27577 * config/i386/i386.h (TARGET_BDVER1): New macro.
27578 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
27579 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27580 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
27581 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
27582 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
27583 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
27584 (processor_type): Add PROCESSOR_BDVER1.
27585 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
27586 processor_type in config/i386/i386.h.
27587 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
27588 movaps <reg, reg> instead of movapd <reg, reg> when replacing
27589 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
27590 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
27591 to emit packed xor instead of packed double/packed integer
27592 xor for SSE and AVX when moving a zero value.
27593 * config/i386/sse.md: Add check for
27594 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
27595 movapd/movdqa for SSE and AVX.
27596 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
27597 single logical operations i.e and, or and xor instead of packed double
27598 logical operations for SSE and AVX.
27599 * config/i386/i386-c.c (ix86_target_macros_internal):
27600 Add PROCESSOR_BDVER1.
27601 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
27602 (has_fma4, has_xop): New.
27603 * config/i386/i386.c (bdver1_cost): New variable.
27604 (m_BDVER1): New macro.
27605 (m_AMD_MULTIPLE): Add m_BDVER1.
27606 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
27607 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
27608 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
27609 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
27610 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
27611 x86_tune_sse_partial_reg_dependency,
27612 x86_tune_sse_unaligned_load_optimal,
27613 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
27614 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
27615 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
27616 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
27617 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
27618 Enable/disable for bdver1.
27619 (processor_target_table): Add bdver1_cost.
27620 (cpu_names): Add bdver1.
27621 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
27622 processor_alias_table.
27623 (ix86_expand_vector_move_misalign): Change.
27624 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
27625 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
27626 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
27627 of movupd/movdqu for SSE and AVX.
27628 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
27629 (ix86_tune_adjust_cost): Add code for bdver1.
27630 (standard_sse_constant_opcode): Add check for
27631 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
27632 of packed double xor for SSE and AVX.
27633
27634 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
27635
27636 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
27637 result to unsigned.
27638
27639 2010-05-14 Tristan Gingold <gingold@adacore.com>
27640
27641 * toplev.c (default_debug_hooks): Remove this variable.
27642 (process_options): Remove assignments to default_debug_hooks.
27643
27644 2010-05-14 Martin Jambor <mjambor@suse.cz>
27645
27646 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
27647 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
27648 * langhooks.h (struct lang_hooks_for_decls): Removed field
27649 fold_obj_type_ref.
27650 * tree.c (free_lang_data): Remove assignment to
27651 lang_hooks.fold_obj_type_ref.
27652 * tree.def (OBJ_TYPE_REF): Update comment.
27653
27654 2010-05-14 Richard Guenther <rguenther@suse.de>
27655
27656 PR tree-optimization/44124
27657 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
27658
27659 2010-05-14 Alan Modra <amodra@gmail.com>
27660
27661 PR target/44075
27662 * config/rs6000/rs6000.c (struct machine_function): Reorder
27663 fields for better packing. Add lr_save_state.
27664 (rs6000_ra_ever_killed): Return lr_save_state if set.
27665 (rs6000_emit_eh_reg_restore): Set lr_save_state.
27666
27667 2010-05-13 Jan Hubicka <jh@suse.cz>
27668
27669 * varpool.c (decide_is_variable_needed): Drop code checking
27670 TREE_SYMBOL_REFERENCED.
27671
27672 2010-05-13 Jan Hubicka <jh@suse.cz>
27673
27674 * final.c (output_addr_const): Do not call mark_decl_referenced.
27675 * cgraphunit.c (process_function_and_variable_attributes): Use
27676 mark_needed_node dirrectly.
27677 (assemble_thunk): Do not call mark_decl_referenced.
27678
27679 2010-05-13 Anatoly Sokolov <aesok@post.ru>
27680
27681 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
27682
27683 2010-05-13 Jeff Law <law@redhat.com>
27684
27685 * ira-conflicts.c (print_allocno_conflicts): New function broken out
27686 from...
27687 (print_conflicts): Call print_allocno_conflicts.
27688
27689 2010-05-13 Jakub Jelinek <jakub@redhat.com>
27690
27691 PR debug/44104
27692 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
27693 if it is NULL.
27694
27695 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
27696
27697 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
27698 t-mingw-w64 or t-mingw-w32 for multilib configuration.
27699 * config/i386/t-mingw-w32: New.
27700 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
27701
27702 2010-05-13 Martin Jambor <mjambor@suse.cz>
27703
27704 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
27705 gimple-fold.c).
27706 * gimple-fold.c (get_base_binfo_for_type): New function.
27707 (gimple_get_relevant_ref_binfo): Likewise.
27708 (gimple_fold_obj_type_ref_known_binfo): Likewise.
27709 (gimple_fold_obj_type_ref): Likewise.
27710 (fold_gimple_call): Simplify condition for folding virtual calls
27711 and call gimple_fold_obj_type_ref.
27712 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
27713 (gimple_fold_obj_type_ref_known_binfo): Likewise.
27714
27715 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
27716
27717 * config/rs6000/rs6000-protos.h
27718 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
27719 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
27720 (rs6000_debug_mode_dependent_address)
27721 (rs6000_mode_dependent_address_ptr): Likewise.
27722
27723 2010-05-13 Jakub Jelinek <jakub@redhat.com>
27724
27725 PR debug/43983
27726 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
27727 by SRA.
27728 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
27729 * tree-sra.c (create_access_replacement): Call unshare_expr before
27730 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
27731 * dwarf2out.c: Include tree-flow.h.
27732 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
27733 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
27734 Handle DW_OP_bit_piece.
27735 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
27736 construct_piece_list, adjust_piece_list): New functions.
27737 (add_var_loc_to_decl): Handle SRA optimized variables.
27738 Adjust for var_loc_note to loc field renaming.
27739 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
27740 in VAR_LOCATION note.
27741 (new_loc_descr_op_bit_piece): New function.
27742 (dw_sra_loc_expr): New function.
27743 (dw_loc_list): Use it. Don't handle the last range after the
27744 loop, handle it inside of the loop. Adjust for var_loc_note
27745 to loc field renaming.
27746 (add_location_or_const_value_attribute): Only special case
27747 single entry loc lists if loc is NOTE_P. Adjust for
27748 var_loc_note to loc field renaming.
27749 (dwarf2out_var_location): Don't set newloc->var_loc_note
27750 and newloc->next here.
27751
27752 2010-05-12 Jan Hubicka <jh@suse.cz>
27753
27754 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
27755 flag.
27756 * cgraph.h (cgraph_only_called_directly_p,
27757 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
27758 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
27759 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
27760 (assemble
27761 * ipa.c (cgraph_remove_unreachable_nodes): Use
27762 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
27763 flags.
27764 * tree-inline.c (copy_bb): Check address_taken flag.
27765 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
27766 externally_visible flag.
27767
27768 2010-05-12 Jason Merrill <jason@redhat.com>
27769
27770 PR bootstrap/44048
27771 PR target/44099
27772 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
27773 * sdbout.c (plain_type_1): Likewise.
27774 * dwarf2out.c (is_base_type): Likewise.
27775 (gen_type_die_with_usage): Likewise. Generate
27776 DW_TAG_unspecified_type for any LANG_TYPE.
27777
27778 2010-05-12 Jan Hubicka <jh@suse.cz>
27779
27780 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
27781 indrect edges too.
27782 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
27783 (cgraph_clone_edge): Update.
27784 (cgraph_node_remove_callees): Remove indirect calls too.
27785 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
27786 (cgraph_create_indirect_edge): Update prototype.
27787 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
27788 is_proper_for_analysis.
27789 (add_new_function, visited_nodes, function_insertion_hook_holder,
27790 get_local_reference_vars_info, mark_address_taken, mark_address,
27791 mark_load, mark_store, check_asm_memory_clobber, check_call,
27792 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
27793 (ipa_init): Do not initialize visited_nodes;
27794 function_insertion_hook_holder.
27795 (analyze_variable): Rewrite.
27796 (analyze_function): Rewrite.
27797 (copy_local_bitmap): Remove.
27798 (duplicate_node_dat): Do not duplicate local info.
27799 (generate_summary): Simplify to only walk cgraph.
27800 (write_node_summary_p, ipa_reference_write_summary,
27801 ipa_reference_read_summary): Remove.
27802 (propagate): Do not remove function insertion;
27803 generate summary.
27804 (pass_ipa_reference): NULLify summary handling fields.
27805 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
27806 (input_edge): Input ecf_flags.
27807 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
27808 (update_indirect_edges_after_inlining): Ignore edges with unknown
27809 param.
27810
27811 2010-05-12 Sriraman Tallam <tmsriram@google.com>
27812
27813 * implicit-zee.c: New file.
27814 * tree-pass.h (pass_implicit_zee): Declare.
27815 * passes.c (init_optimization_passes): Add zee pass.
27816 * common.opt (fzee): New flag.
27817 * timevar.def (TV_ZEE): Define.
27818 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
27819 and beyond.
27820 * Makefile.in (implicit-zee.o): Add new build file.
27821
27822 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27823 Nathan Froyd <froydnj@codesourcery.com>
27824
27825 * c-common.c (sync_resolve_params): Remove write-only variable.
27826
27827 2010-05-12 Anatoly Sokolov <aesok@post.ru>
27828
27829 * target.h (struct gcc_target): Add mode_dependent_address_p field.
27830 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27831 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
27832 * targhooks.c (default_mode_dependent_address_p): New function.
27833 * targhooks.h (default_mode_dependent_address_p): Declare function.
27834 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
27835 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
27836 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
27837 target hook. Change return type to bool.
27838 * recog.h (mode_dependent_address_p): Change return type to bool.
27839
27840 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27841 Nathan Froyd <froydnj@codesourcery.com>
27842
27843 * tree-mudflap.c (build_function_type_0, build_function_type_1,
27844 build_function_type_2, build_function_type_3): Remove.
27845 (mudflap_init): Use build_function_type_list.
27846
27847 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
27848 Nathan Froyd <froydnj@codesourcery.com>
27849
27850 * coverage.c (build_fn_info_value): Call build_constructor instead of
27851 build_constructor_from_list.
27852 (build_ctr_info_value): Likewise.
27853 (build_gcov_info): Likewise.
27854
27855 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
27856
27857 * tree.c (build_constructor): Compute TREE_CONSTANT for the
27858 resultant constructor.
27859 (build_constructor_single): Don't set TREE_CONSTANT.
27860 (build_constructor_from_list): Don't compute TREE_CONSTANT.
27861
27862 2010-05-12 Jan Hubicka <jh@suse.cz>
27863
27864 * cgraph.h (struct varpool_node): Add aux.
27865 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
27866 * varpool.c (varpool_remove_node): Do not remove initializer.
27867 (varpool_reset_queue): Export.
27868 (varpool_finalize_decl): Volatile vars are forced to be output.
27869 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
27870 replaced decl.
27871 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
27872 process_references, varpool_can_remove_if_no_refs): New functions.
27873 (cgraph_remove_unreachable_nodes): Handle variables too.
27874
27875 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
27876
27877 PR target/44088
27878 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
27879
27880 2010-05-12 Jakub Jelinek <jakub@redhat.com>
27881
27882 PR middle-end/44085
27883 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
27884 change value of ORT_TASK.
27885 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
27886 (omp_notice_threadprivate_variable): New function.
27887 (omp_notice_variable): Call it for threadprivate variables.
27888 If enclosing ctx is a task, print enclosing task rather than
27889 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
27890 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
27891 if task has untied clause.
27892
27893 PR debug/42278
27894 * dwarf2out.c (base_type_die): Don't add name attribute here.
27895 (modified_type_die): Instead of sizetype use
27896 its underlying original type. If a DW_TAG_base_type doesn't
27897 have name added, add __unknown__.
27898 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
27899 always call force_type_die instead.
27900
27901 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
27902
27903 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
27904 for __stack_chk_guard.
27905
27906 2010-05-11 Jakub Jelinek <jakub@redhat.com>
27907
27908 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
27909 don't call start_source_file debug hook here...
27910 (finish_options): ... but here, after outputting predefined and
27911 command line defines and undefs.
27912
27913 PR middle-end/44071
27914 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
27915 no fallthru edge.
27916 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
27917 optimizing away empty bb with no successors, move over its
27918 footer chain to fallthru predecessor.
27919 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
27920 (rtl_split_edge): For asm goto call patch_jump_insn even if
27921 splitting fallthru edge.
27922
27923 PR c++/44059
27924 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
27925 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
27926 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
27927 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
27928 on DW.ref.* decls.
27929
27930 PR c++/44062
27931 * c-parser.c (c_parser_expression): Mark LHS of a comma
27932 expression as read if it is a decl, handled component or
27933 COMPOUND_EXPR with that on the RHS.
27934 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
27935 if it is a decl or handled component.
27936
27937 2010-05-11 Jan Hubicka <jh@suse.cz>
27938
27939 * lto-symtab.c (lto_symtab_free): New function.
27940 * lto-streamer.h (lto_symtab_free): Declare.
27941
27942 2010-05-11 Jan Hubicka <jh@suse.cz>
27943
27944 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
27945 that if function is needed it is reachable.
27946 (lto_output_node): See if it the function is reachable or referenced.
27947 (output_cgraph): Update call of lto_output_node.
27948 * lto-streamer.h (reachable_from_other_partition_p): Declare.
27949
27950 2010-05-11 Jan Hubicka <jh@suse.cz>
27951
27952 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
27953 Mark as used.
27954
27955 2010-05-11 Jan Hubicka <jh@suse.cz>
27956
27957 PR tree-optimize/44063
27958 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
27959 queue.
27960 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
27961 limits.
27962 (estimate_function_body_sizes): Compute sizes even when disregarding.
27963
27964 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
27965
27966 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
27967
27968 2010-05-11 Jan Hubicka <jh@suse.cz>
27969
27970 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
27971 into every boundary.
27972
27973 2010-05-11 Jan Hubicka <jh@suse.cz>
27974
27975 * matrix-reorg.c (matrix_reorg): Rebuild edges.
27976
27977 2010-05-11 Jan Hubicka <jh@suse.cz>
27978
27979 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
27980 lto_streamer_cache_delete): Put nodes into heap.
27981 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
27982 heap.
27983
27984 2010-05-11 Jan Hubicka <jh@suse.cz>
27985
27986 * cgraphbuild.c (cgraph_rebuild_references): New.
27987 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
27988 out extern inlines.
27989 * cgraph.h (cgraph_rebuild_references): Declare.
27990 * tree-inline.c (tree_function_versioning): Use it.
27991 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
27992
27993 2010-05-11 Jan Hubicka <jh@suse.cz>
27994
27995 * cgraph.c: Include ipa-utils.h
27996 (cgraph_create_virtual_clone): Update references.
27997 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
27998
27999 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
28000
28001 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
28002 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
28003 cache size.
28004
28005 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
28006
28007 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
28008
28009 2010-05-11 Jakub Jelinek <jakub@redhat.com>
28010
28011 * gcc.c (execute): For -### don't quote arguments that
28012 contain just alphanumerics and _/-. characters.
28013 * doc/invoke.texi: Document that change for -###.
28014
28015 PR debug/44023
28016 * df-problems.c (struct dead_debug): Add to_rescan field.
28017 (dead_debug_init): Clear to_rescan field.
28018 (dead_debug_finish): Rescan all debug insns in to_rescan
28019 bitmap and free the bitmap.
28020 (dead_debug_insert_before): Instead of rescanning debug insns
28021 immediately queue their rescanning until dead_debug_finish.
28022 (df_note_bb_compute): After dead_debug_add do continue instead
28023 of break.
28024
28025 2010-05-10 Jakub Jelinek <jakub@redhat.com>
28026
28027 PR debug/44028
28028 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
28029 clear also INSN_REG_USE_LIST.
28030
28031 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28032
28033 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
28034
28035 2010-05-10 Jan Hubicka <jh@suse.cz>
28036
28037 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
28038 commited change.
28039
28040 2010-05-10 Jan Hubicka <jh@suse.cz>
28041
28042 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
28043 Allocate encoders.
28044 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
28045 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
28046 (lto_streamer_cache_create): Init alloc pool.
28047 (lto_streamer_cache_delete): Free alloc pool.
28048 * lto-streamer.h: Include alloc pool.
28049 (lto_streamer_cache_d): Use alloc pool.
28050 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
28051
28052 2010-05-10 Jan Hubicka <jh@suse.cz>
28053
28054 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
28055 * cgraphbuild.c: Include except.h
28056 (record_type_list, record_eh_tables): New function.
28057 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
28058
28059 2010-05-10 Jan Hubicka <jh@suse.cz>
28060
28061 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
28062 __frame_dummy_init_array_entry, force_to_data): Attribute as used
28063 rather than unused.
28064
28065 2010-05-10 Michael Matz <matz@suse.de>
28066
28067 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
28068 (can_reassociate_p): Use FLOAT_TYPE_P.
28069 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
28070 (vect_force_simple_reduction): ... this.
28071 * tree-parloops.c (gather_scalar_reductions): Use
28072 vect_force_simple_reduction.
28073 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
28074 vect_is_simple_reduction, add modify argument, if true rewrite
28075 "a-b" into "a+(-b)".
28076 (vect_is_simple_reduction, vect_force_simple_reduction): New
28077 functions.
28078 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
28079
28080 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
28081 Vladimir Makarov <vmakarov@redhat.com>
28082
28083 PR rtl-optimization/44012
28084 * ira-build.c (remove_unnecessary_allocnos): Nullify
28085 regno_allocno_map of the removed allocno.
28086
28087 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28088
28089 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
28090 to /dev/null.
28091 * configure: Regenerate.
28092
28093 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28094
28095 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
28096 unused.
28097 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
28098 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
28099 support in Sun ld.
28100 * configure: Regenerate.
28101
28102 2010-05-10 Richard Guenther <rguenther@suse.de>
28103
28104 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
28105 marked if the entry identifier is marked.
28106
28107 2010-05-10 Richard Guenther <rguenther@suse.de>
28108
28109 * c-common.c (struct c_common_attributes): Add fnspec attribute.
28110 (handle_fnspec_attribute): New function.
28111 * gimple.h (gimple_call_return_flags): Declare.
28112 (gimple_call_arg_flags): Likewise.
28113 * gimple.c (gimple_call_arg_flags): New function.
28114 (gimple_call_return_flags): Likewise.
28115 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
28116 New argument flags.
28117 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
28118 return value flags.
28119 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
28120 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
28121 main work to ...
28122 (make_heapvar_for): ... this new function.
28123 (handle_rhs_call): Handle fnspec attribute argument specifiers.
28124 (handle_lhs_call): Likewise.
28125 (find_func_aliases): Adjust.
28126
28127 2010-05-10 Richard Guenther <rguenther@suse.de>
28128
28129 PR tree-optimization/44050
28130 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
28131
28132 2010-05-10 Wei Guozhi <carrot@google.com>
28133
28134 PR target/42879
28135 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
28136
28137 2010-05-09 Joseph Myers <joseph@codesourcery.com>
28138
28139 PR c/10676
28140 * c-typeck.c (lookup_field): Take a type directly. Update
28141 recursive calls.
28142 (build_component_ref): Update call to lookup_field.
28143 (set_init_label): Use lookup_field to find initialized field.
28144 Handle returned list of fields like a sequence of designators.
28145
28146 2010-05-09 Richard Guenther <rguenther@suse.de>
28147
28148 PR middle-end/44024
28149 * fold-const.c (tree_single_nonzero_warnv_p): Properly
28150 handle &FUNCTION_DECL.
28151
28152 2010-05-09 Joseph Myers <joseph@codesourcery.com>
28153
28154 PR c/4784
28155 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
28156 structures and unions recursively.
28157 (detect_field_duplicates): Move duplicate detection with a hash to
28158 detect_field_duplicates_hash. Always use a hash if anonymous
28159 structures or unions are present.
28160 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
28161 give errors.
28162
28163 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
28164
28165 PR target/44046
28166 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
28167 detect Atom, Core 2 and Core i7.
28168
28169 2010-05-09 Richard Guenther <rguenther@suse.de>
28170
28171 * gcc.c (store_arg): Handle temporary file deletion for
28172 joined arguments.
28173
28174 2010-05-09 Richard Guenther <rguenther@suse.de>
28175
28176 PR middle-end/44043
28177 * ipa-inline.c (estimate_function_body_sizes): Return after
28178 disregarding inline limits.
28179
28180 2010-05-09 Richard Guenther <rguenther@suse.de>
28181
28182 * gcc.c (store_arg): Revert last change.
28183
28184 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
28185
28186 PR middle-end/28685
28187 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
28188 (optimize_ops_list): Call it.
28189
28190 2010-05-08 Richard Guenther <rguenther@suse.de>
28191
28192 PR tree-optimization/44030
28193 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
28194 NECESSARY flag if we propagate from a inserted expression.
28195
28196 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
28197
28198 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
28199 domain types as equal if they are both PLACEHOLDER_EXPRs.
28200
28201 2010-05-08 Richard Guenther <rguenther@suse.de>
28202
28203 * lto-wrapper.c (run_gcc): Remove linker output from
28204 command line for LTRANS invocation.
28205
28206 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28207
28208 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
28209 lto-macho as lto_binary_reader.
28210 * target.h (struct gcc_target): New hooks lto_start and lto_end.
28211 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
28212 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
28213 in lto_start and lto_end calls.
28214 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
28215 magic numbers.
28216 (scan_prog_file): Update is_elf_or_coff call.
28217 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
28218
28219 * collect2.c (main): Fix enum comparison.
28220
28221 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
28222 Add prototypes.
28223 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
28224 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
28225 and TARGET_ASM_LTO_END.
28226 * darwin.c: Include obstack.h and lto-streamer.h.
28227 (lto_section_names_offset, lto_section_names_obstack,
28228 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
28229 global variables.
28230 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
28231 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
28232 to a temporary file.
28233 (darwin_asm_lto_end): New function. Restore asm_out_file.
28234 (darwin_asm_named_section): For LTO sections, replace the name with
28235 the offset of the section name in a string table, and build this
28236 table.
28237 (darwin_file_start): Initialize global vars for LTO support.
28238 (darwin_file_end): If output to asm_out_file was redirected, append it
28239 to the proper asm_out_file here. Add the section names section.
28240
28241 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28242
28243 * c-pragma.c (pending_weak_d, pending_weak): New.
28244 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
28245 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
28246 handle_pragma_weak): Update the uses of pending_weaks.
28247
28248 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28249
28250 PR documentation/44016
28251 * doc/standards.texi (Standards): Link to unversioned
28252 cxx0x_status.html page.
28253
28254 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
28255
28256 PR target/43708
28257 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
28258 in addition to TREE_USED, to avoid "set but unused" warnings.
28259
28260 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28261
28262 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
28263 (is_loop_prefetching_profitable): Do not insert prefetches
28264 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
28265 times the prefetch ahead distance.
28266
28267 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28268
28269 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
28270 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
28271 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
28272 the unroll_factor.
28273
28274 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28275
28276 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
28277 a diagnostic info when the insn-to-mem ratio is too small.
28278
28279 2010-05-07 Richard Guenther <rguenther@suse.de>
28280
28281 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
28282 the linker plugin.
28283 (store_arg): Queue temp_filename for deletion instead of
28284 the whole argument.
28285
28286 2010-05-07 Richard Guenther <rguenther@suse.de>
28287
28288 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
28289 (run_gcc): Handle LTRANS phase invocation.
28290 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
28291
28292 2010-05-07 Jakub Jelinek <jakub@redhat.com>
28293
28294 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
28295 this is also meaningful on PARM_DECLs and RESULT_DECLs.
28296
28297 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28298
28299 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
28300
28301 2010-05-07 Richard Guenther <rguenther@suse.de>
28302
28303 PR tree-optimization/44020
28304 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
28305 code when PRE is not yet initialized.
28306
28307 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28308
28309 * config/mips/dbxmdebug.h: Remove.
28310 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
28311
28312 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
28313
28314 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
28315 with null pointer and also warn about ordered comparison of zero with
28316 pointer if -Wextra.
28317
28318 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28319
28320 * graphite-blocking.c
28321 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
28322 * graphite-clast-to-gimple.c
28323 (clast_to_gcc_expression): Same.
28324 (precision_for_value): Same.
28325 (precision_for_interval): Same.
28326 (gcc_type_for_interval): Same.
28327 (graphite_create_new_guard): Same.
28328 (compute_bounds_for_level): Same.
28329 (graphite_create_new_loop_guard): Same.
28330 * graphite-interchange.c
28331 (build_linearized_memory_access): Same.
28332 (pdr_stride_in_loop): Same.
28333 (memory_strides_in_loop_1): Same.
28334 (memory_strides_in_loop): Same.
28335 (extend_scattering): Same.
28336 (psct_scattering_dim_for_loop_depth): Same.
28337 (pbb_number_of_iterations): Same.
28338 * graphite-poly.h
28339 (debug_iteration_domains): Same.
28340 * graphite-ppl.c
28341 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
28342 (ppl_set_inhomogeneous_gmp): Same.
28343 (ppl_strip_loop): Same.
28344 (ppl_lexico_compare_linear_expressions): Same.
28345 (ppl_read_polyhedron_matrix): Same.
28346 (ppl_max_for_le_pointset): Same.
28347 * graphite-ppl.h
28348 (ppl_read_polyhedron_matrix): Same.
28349 (tree_int_to_gmp): Same.
28350 (gmp_cst_to_tree): Same.
28351 (ppl_set_inhomogeneous): Same.
28352 (ppl_set_inhomogeneous_tree): Same.
28353 (ppl_set_coef): Same.
28354 (ppl_set_coef_tree): Same.
28355 * graphite-sese-to-poly.c
28356 (build_pbb_scattering_polyhedrons): Same.
28357 (build_scop_scattering): Same.
28358 (scan_tree_for_params_right_scev): Same.
28359 (scan_tree_for_params): Same.
28360 (find_params_in_bb): Same.
28361 (find_scop_parameters): Same.
28362 (add_upper_bounds_from_estimated_nit): Same.
28363 (build_loop_iteration_domains): Same.
28364 (add_condition_to_domain): Same.
28365 (pdr_add_memory_accesses): Same.
28366
28367 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28368
28369 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
28370 CLooG's value_* macros to their respective mpz_* counterparts.
28371 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
28372 (graphite_create_new_loop_guard): Same.
28373 * graphite-interchange.c (build_linearized_memory_access): Same.
28374 (pdr_stride_in_loop): Same.
28375 (memory_strides_in_loop_1): Same.
28376 (1st_interchange_profitable_p): Same.
28377 * graphite-poly.c (extend_scattering): Same.
28378 (psct_scattering_dim_for_loop_depth): Same.
28379 (pbb_number_of_iterations): Same.
28380 (pbb_number_of_iterations_at_time): Same.
28381 * graphite-poly.h (new_1st_loop): Same.
28382 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
28383 (oppose_constraint): Same.
28384 (insert_constraint_into_matrix): Same.
28385 (ppl_set_inhomogeneous_gmp): Same.
28386 (ppl_set_coef_gmp): Same.
28387 (ppl_strip_loop): Same.
28388 (ppl_lexico_compare_linear_expressions): Same.
28389 (ppl_max_for_le_pointset): Same.
28390 (ppl_min_for_le_pointset): Same.
28391 (ppl_build_realtion): Same.
28392 * graphite-ppl.h (gmp_cst_to_tree): Same.
28393 (ppl_set_inhomogeneous): Same.
28394 (ppl_set_inhomogeneous_tree): Same.
28395 (ppl_set_coef): Same.
28396 (ppl_set_coef_tree): Same.
28397 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
28398 (build_scop_scattering): Same.
28399 (add_value_to_dim): Same.
28400 (scan_tree_for_params_right_scev): Same.
28401 (scan_tree_for_params_int): Same.
28402 (scan_tree_for_params): Same.
28403 (find_params_in_bb): Same.
28404 (find_scop_parameters): Same.
28405 (add_upper_bounds_from_estimated_nit): Same.
28406 (build_loop_iteration_domains): Same.
28407 (create_linear_expr_from_tree): Same.
28408 (add_condition_to_domain): Same.
28409 (pdr_add_memory_accesses): Same.
28410
28411 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
28412 Jason Merrill <jason@redhat.com>
28413
28414 * c-common.c (c_common_reswords): Add nullptr.
28415 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
28416 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
28417 (gen_type_die_with_usage): Likewise.
28418 * dbxout.c (dbxout_type): Likewise.
28419 * sdbout.c (plain_type_1): Likewise.
28420
28421 2010-05-06 Jason Merrill <jason@redhat.com>
28422
28423 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
28424 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
28425 ret appropriately.
28426 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
28427
28428 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
28429 stripping WITH_SIZE_EXPR.
28430 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
28431 change.
28432
28433 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28434
28435 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
28436 list of obsolete configurations.
28437 Disabled check for obsolete configurations.
28438 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
28439 Removed support for previous versions.
28440 * config/mips/iris.h: Removed.
28441 * config/mips/iris5.h: Removed.
28442 * config/mips/iris6.h: Merged old iris.h contents.
28443 (TARGET_IRIX): Removed.
28444 (DRIVER_SELF_SPECS): Removed mabi=32.
28445 (IDENT_ASM_OP): Removed undef.
28446 (STARTFILE_SPEC): Removed mabi=32.
28447 (ENDFILE_SPEC): Likewise.
28448 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
28449 (MACHINE_TYPE): Update for IRIX 6.5.
28450 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
28451 TARGET_IRIX by TARGET_IRIX6.
28452 (mips_file_start): Likewise.
28453 (mips_output_external): Remove IRIX 5/6 O32 support.
28454 (mips_output_function_prologue): Likewise.
28455 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
28456 TARGET_IRIX6.
28457 (TARGET_CPU_CPP_BUILTINS): Likewise.
28458 (TARGET_IRIX): Removed.
28459 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
28460 (MULTILIB_DIRNAMES): Removed 32.
28461 (MULTILIB_OSDIRNAMES): Removed ../lib.
28462 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
28463 (Specific, mips-sgi-irix5): Document removal.
28464 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
28465 Remove references to older IRIX 6 releases and the O32 ABI.
28466
28467 2010-05-06 Jakub Jelinek <jakub@redhat.com>
28468
28469 PR bootstrap/43994
28470 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
28471 instead of DF_REF_REAL_REG.
28472
28473 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
28474
28475 PR target/43888
28476 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
28477 handling to still return true for x64 targets.
28478
28479 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
28480
28481 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
28482
28483 2010-05-06 Jan Hubicka <jh@suse.cz>
28484
28485 PR tree-optimization/43791
28486 * ipa-inline.c (update_caller_keys): Remove bogus
28487 disregard_inline_limits check.
28488
28489 2010-05-06 Michael Matz <matz@suse.de>
28490
28491 PR tree-optimization/43984
28492 * tree-ssa-pre.c (inserted_phi_names): Remove.
28493 (inserted_exprs): Change to bitmap.
28494 (create_expression_by_pieces): Set bits, don't append to vector.
28495 (insert_into_preds_of_block): Don't handle inserted_phi_names.
28496 (eliminate): Don't look at inserted_phi_names, remove deleted
28497 insns from inserted_exprs.
28498 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
28499 (init_pre, fini_pre): Allocate and free bitmaps.
28500 (execute_pre): Insert insns on edges before elimination.
28501
28502 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
28503
28504 * tree.c (initializer_zerop): Handle STRING_CST.
28505
28506 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
28507
28508 PR 40989
28509 * doc/invoke.texi (Wimplicit): Document as C only.
28510 * opts.c (common_handle_option): Add argument kind.
28511 (handle_option): Rename as read_cmdline_option. Factor out code to...
28512 (handle_option): ... here. New.
28513 (handle_options): Rename as read_cmdline_options.
28514 (decode_options): Update call.
28515 (set_option): Use option index instead of option pointer. Classify
28516 diagnostics correctly.
28517 (enable_warning_as_error): Call handle_option.
28518 * opts.h (set_option): Update declaration.
28519 (handle_option): Declare.
28520 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
28521 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
28522 * c-opts.c (set_Wimplicit): Delete.
28523 (c_family_lang_mask): New static constant.
28524 (c_common_handle_option): Add argument kind. Use handle_option
28525 instead of set_Wimplicit.
28526 (c_common_post_options): warn_implicit and warn_implicit_int
28527 are disabled by default.
28528 * c-common.c (warn_implicit): Do not define here.
28529 * c-common.h (warn_implicit): Do not declare here.
28530 (c_common_handle_option): Update declaration.
28531 * lto-opts.c (lto_reissue_options): Update call to set_option.
28532
28533 2010-05-06 Richard Guenther <rguenther@suse.de>
28534
28535 PR tree-optimization/43571
28536 * domwalk.c (walk_dominator_tree): Walk the dominator
28537 sons in more optimal order.
28538
28539 2010-05-06 Richard Guenther <rguenther@suse.de>
28540
28541 PR tree-optimization/43934
28542 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
28543 (stmt_cost): Likewise.
28544 (extract_true_false_args_from_phi): New helper.
28545 (determine_max_movement): For PHI nodes verify we can hoist them
28546 and compute their cost.
28547 (determine_invariantness_stmt): Handle PHI nodes.
28548 (move_computations_stmt): Likewise. Hoist PHI nodes in
28549 if-converted form using COND_EXPRs.
28550 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
28551 (tree_ssa_lim): Likewise.
28552 * tree-flow.h (tree_ssa_lim): Adjust prototype.
28553 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
28554
28555 2010-05-06 Richard Guenther <rguenther@suse.de>
28556
28557 PR tree-optimization/43987
28558 * tree-ssa-structalias.c (could_have_pointers): For possibly
28559 address-taken variables force pointers to be recorded.
28560 (create_variable_info_for_1): Likewise.
28561 (push_fields_onto_fieldstack): Pass in wheter all fields
28562 must have pointers.
28563 (find_func_aliases): Query types instead of vars whether
28564 they contain pointers where appropriate.
28565
28566 2010-05-06 Jan Hubicka <jh@suse.cz>
28567
28568 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
28569 (record_reference, mark_address, mark_load, mark_store): Record
28570 references.
28571 (record_references_in_initializer): Update call of record_references.
28572 (rebuild_cgraph_edges): Remove all references before rebuiding.
28573 * cgraph.c (cgraph_create_node): Clear ref list.
28574 (cgraph_remove_node): Remove references.
28575 (dump_cgraph_node): Dump references.
28576 (cgraph_clone_node): Clone references.
28577 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
28578 (struct cgraph_node, varpool_node): Add ref_lst.
28579 * ipa-ref.c: New file.
28580 * ipa-ref.h: New file.
28581 * ipa-ref-inline.h: New file.
28582 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
28583 (referenced_from_other_partition_p): New function.
28584 (lto_output_varpool_node): Take set arugment; call
28585 referenced_from_other_partition.
28586 (lto_output_ref): New.
28587 (add_references): New.
28588 (output_refs): New.
28589 (output_cgraph): Compute boundary based on references; output refs.
28590 (output_varpool): Accept cgraph_node_set argument.
28591 (input_ref): New.
28592 (input_refs): New.
28593 (input_cgraph): Call input_refs.
28594 * lto-section-in.c (lto_section_name): Add refs.
28595 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
28596 (ipa-ref.o): New file.
28597 * varpool.c (varpool_node): Clear ipa ref list.
28598 (varpool_remove_node): Remove references.
28599 (dump_varpool_node): Dump references.
28600 (varpool_assemble_decl): Only compile finalized ones.
28601 (varpool_extra_name_alias): Initialize ref list.
28602 * lto-streamer.c (lto-get_section_name): Add .refs section.
28603 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
28604 (referenced_from_other_partition_p): Declared.
28605
28606 2010-05-06 Ira Rosen <irar@il.ibm.com>
28607
28608 PR tree-optimization/43901
28609 * tree-vect-stmts.c (vectorizable_call): Assert that vector
28610 type is not NULL if it's transformation phase, and return
28611 FALSE if it's analysis.
28612 (vectorizable_conversion, vectorizable_operation,
28613 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
28614
28615 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
28616
28617 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28618 Delete.
28619 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
28620 New define.
28621 * config/mips/mips-protos.h
28622 (mips_small_register_classes_for_mode_p): Delete prototype.
28623
28624 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
28625
28626 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
28627 * config/arm/arm.c (multiple_operation_profitable_p,
28628 compute_offset_order): New static functions.
28629 (load_multiple_sequence, store_multiple_sequence): Use them.
28630 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
28631 memory offsets, not register numbers.
28632 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
28633
28634 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
28635
28636 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
28637 (get_pending_sizes, put_pending_size, put_pending_sizes):
28638 Update the uses of pending_sizes.
28639 * c-decl.c (store_parm_decls): Likewise.
28640 * c-tree.h (struct c_arg_info): Likewise.
28641 * tree.h: Update the prototype for get_pending_sizes and
28642 put_pending_sizes.
28643
28644 2010-05-05 Jason Merrill <jason@redhat.com>
28645
28646 PR debug/43370
28647 * c-common.c (handle_aligned_attribute): Respect
28648 ATTR_FLAG_TYPE_IN_PLACE.
28649
28650 PR testsuite/43758
28651 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
28652 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28653 (TARGET_INITIALIZER): Use it.
28654 * c-common.c (attribute_takes_identifier_p): Call it.
28655 * c-common.h: Update prototype.
28656 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
28657 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
28658
28659 2010-05-05 Jakub Jelinek <jakub@redhat.com>
28660
28661 PR debug/43950
28662 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
28663 DW_ID_down_case for Fortran compilation units.
28664
28665 2010-05-05 Jan Hubicka <jh@suse.cz>
28666
28667 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
28668 handle aliases.
28669
28670 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
28671
28672 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
28673 a variable-sized RESULT_DECL.
28674
28675 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
28676
28677 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
28678
28679 2010-05-05 Jason Merrill <jason@redhat.com>
28680
28681 PR c++/43787
28682 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
28683 returns GS_OK.
28684 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
28685
28686 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
28687 Jakub Jelinek <jakub@redhat.com>
28688
28689 PR debug/43478
28690 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
28691 (dead_debug_init, dead_debug_finish): New functions.
28692 (dead_debug_add, dead_debug_insert_before): Likewise.
28693 (df_note_bb_compute): Initialize a dead_debug object, add dead
28694 debug uses to it, insert debug bind insns before death insns,
28695 reset debug insns that refer to pending uses at the end.
28696 * rtl.h (make_debug_expr_from_rtl): New prototype.
28697 * varasm.c (make_debug_expr_from_rtl): New function.
28698
28699 2010-05-05 Jan Hubicka <jh@suse.cz>
28700
28701 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
28702 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
28703 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
28704 lto_varpool_encoder_deref, lto_varpool_encoder_size,
28705 lto_varpool_encoder_encode_initializer_p,
28706 lto_set_varpool_encoder_encode_initializer): New functions.
28707 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
28708 call output_varpool.
28709 (input_varpool_node): Do not always set analyzed.
28710 (input_cgraph_1): Return vector of cgraph nodes.
28711 (input_varpool_1): Return vector of varpools.
28712 (input_cgraph): Free the vectors.
28713 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28714 output only initializers needed.
28715 (lto_output): Only call output_cgraph.
28716 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
28717 * lto-section-out.c (lto_new_out_decl_state): Initialize
28718 state->varpool_node_encoder.
28719 * lto-streamer.h (lto_varpool_encoder_d): New.
28720 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
28721 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
28722 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
28723 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
28724 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
28725 Declare.
28726 (output_varpool, input_varpool): Remove declarations.
28727
28728 2010-05-05 Jan Hubicka <jh@suse.cz>
28729
28730 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
28731 with body can prevail.
28732
28733 2010-05-05 Jan Hubicka <jh@suse.cz>
28734
28735 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
28736 size.
28737
28738 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28739
28740 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
28741
28742 * gengtype.h (erro_at_line): Constify pos argument.
28743
28744 * gengtype.c: Include hashtab.h.
28745 (enum gc_used): Document GC_MAYBE_POINTED_TO.
28746 (error_at_line): Constify pos argument.
28747 (do_typedef): Initialize p->opt field.
28748 (get_file_gtfilename): Fix comment typo.
28749 (struct walk_type_data): Constify line field.
28750 (get_output_file_for_structure): New function.
28751 (write_local_func_for_structure): Constify orig_s argument.
28752 Use get_output_file_for_structure.
28753 (write_func_for_structure): Use get_output_file_for_structure.
28754 (INDENT): New define.
28755 (dump_pair, dump_type, dump_type_list, dump_typekind)
28756 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
28757 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
28758 functions.
28759 (seen_types): New variable.
28760 (main): New variable do_dump. Process "-d" command line option.
28761 Call dump_everything if dump requested.
28762
28763 2010-05-05 Jakub Jelinek <jakub@redhat.com>
28764
28765 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
28766 in a temporary instead of invoking the macro multiple times.
28767 (track_expr_p): Likewise.
28768
28769 2010-05-04 Neil Vachharajani <nvachhar@google.com>
28770
28771 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
28772 per new semantics.
28773 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
28774 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
28775 conditions for printing notes.
28776 * common.opt (-Wcoverage-mismatch): Allow negative, default to
28777 true, update documentation.
28778 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
28779
28780 2010-05-04 Jakub Jelinek <jakub@redhat.com>
28781
28782 PR c/43981
28783 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
28784 on dimen.
28785
28786 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
28787
28788 PR target/43799
28789 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
28790 (*sse_prologue_save_insn1): Likewise.
28791 (SSE prologue save splitter): Likewise.
28792
28793 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
28794
28795 * tree.c (free_lang_data_in_one_sizepos): New inline function.
28796 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
28797 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
28798 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
28799 all decls. Call it on DECL_FIELD_OFFSET of fields.
28800 (find_decls_types_r): Follow DECL_VALUE_EXPR.
28801 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
28802
28803 2010-05-04 Martin Jambor <mjambor@suse.cz>
28804
28805 * tree-sra.c (build_access_from_expr_1): The first parameter type
28806 changed to simple tree.
28807 (build_access_from_expr): Likewise, gsi parameter was eliminated.
28808 (scan_assign_result): Renamed to assignment_mod_result, enum elements
28809 renamed as well.
28810 (build_accesses_from_assign): Removed all parameters except for a
28811 simple gimple statement. Now returns a simple bool.
28812 (scan_function): All non-analysis parts moved to separate functions
28813 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
28814 parameters and updated both callers.
28815 (sra_modify_expr): Removed parameter data.
28816 (sra_modify_function_body): New function.
28817 (perform_intra_sra): Call sra_modify_function_body to modify the
28818 function body.
28819 (replace_removed_params_ssa_names): Parameter data changed into
28820 adjustments vector.
28821 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
28822 changed the parameter dont_convert to convert with the opposite
28823 meaning.
28824 (sra_ipa_modify_assign): Parameter data changed into adjustments
28825 vector, return value changed to bool.
28826 (ipa_sra_modify_function_body): New function.
28827 (sra_ipa_reset_debug_stmts): Updated a comment.
28828 (modify_function): Use ipa_sra_modify_function_body to modify function
28829 body.
28830
28831 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
28832
28833 PR middle-end/43671
28834 * alias.c (true_dependence): Handle the same VALUE in x and mem.
28835 (canon_true_dependence): Likewise.
28836 (write_dependence_p): Likewise.
28837
28838 2010-05-04 Jan Hubicka <jh@suse.cz>
28839
28840 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
28841 * cgraphbuild.c: Include ipa-utils.h
28842 (record_reference_ctx): New struct.
28843 (record_reference): Simplify to work on initializers; not statements.
28844 (mark_address, mark_load, mark_store): New.
28845 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28846 walk PHI nodes too.
28847 (record_references_in_initializer): Update use of record_reference.
28848 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
28849 walk PHI nodes too.
28850
28851 2010-05-04 Jan Hubicka <jh@suse.cz>
28852
28853 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
28854 node will be removed anyway.
28855 (lto_varpool_replace_node): Allow also unanalyzed nodes;
28856 relink aliases of node into prevailing node.
28857 * varpool.c (varpool_remove_node): Remove aliases properly;
28858 when removing node, remove all its aliases too; remove DECL_INITIAL
28859 of removed node; ggc_free the varpool node.
28860
28861 2010-05-04 Richard Guenther <rguenther@suse.de>
28862
28863 PR tree-optimization/43879
28864 * tree-ssa-structalias.c (alias_get_name): Use
28865 DECL_ASSEMBLER_NAME if available.
28866 (create_function_info_for): Return the varinfo node.
28867 (ipa_pta_execute): Associate same-body aliases and extra names
28868 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
28869
28870 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
28871
28872 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
28873
28874 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
28875
28876 PR bootstrap/43964
28877 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
28878 only if HONOR_REG_ALLOC_ORDER is not defined.
28879
28880 2010-05-04 Richard Guenther <rguenther@suse.de>
28881
28882 PR tree-optimization/43949
28883 * tree-vrp.c (extract_range_from_binary_expr): Only handle
28884 TRUNC_MOD_EXPR.
28885
28886 2010-04-26 Jason Merrill <jason@redhat.com>
28887
28888 * c.opt (-fstrict-enums): New.
28889 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
28890
28891 2010-05-03 David Ung <davidu@mips.com>
28892 James E. Wilson <wilson@codesourcery.com>
28893
28894 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
28895 emit the trap instruction before the divide for TUNE_74K.
28896
28897 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
28898
28899 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
28900 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
28901 based on the above, for new target hook.
28902
28903 * hooks.c (hook_bool_mode_true): New generic hook.
28904 * hooks.h (hook_bool_mode_true): Add prototype.
28905
28906 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
28907 target hook.
28908 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
28909 target hook, set to hook_bool_mode_false.
28910 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
28911 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
28912 with targetm.small_register_classes_for_mode_p.
28913 (find_reusable_reload): Likewise.
28914 (combine_reloads): Likewise.
28915 * reload1.c (reload_as_needed): Likewise.
28916 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
28917 * ifcvt.c (noce_process_if_block, check_cond_move_block,
28918 dead_or_predicable): Likewise.
28919 * regmove.c (optimize_reg_copy_1): Likewise.
28920 * calls.c (prepare_call_address): Likewise.
28921 (precompute_register_parameters): Likewise.
28922
28923 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
28924 hook definition.
28925 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
28926 implementation of the hook that considers all register classes
28927 small except for SH64.
28928 (sh_override_options): Use the new hook.
28929 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
28930 Add prototype.
28931
28932 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
28933 hook definition.
28934 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
28935 implementation of the hook that considers all register classes
28936 small for THUMB1.
28937 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
28938 Add prototype.
28939
28940 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
28941 hook definition.
28942 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
28943 implementation of the hook that considers all register classes
28944 small for MIPS16.
28945 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
28946 Add prototype.
28947
28948 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
28949 hook definition.
28950 * config/m32c/m32c.h: Likewise.
28951 * config/pdp11/pdp11.h: Likewise.
28952 * config/avr/avr.h: Likewise.
28953 * config/xtensa/xtensa.h: Likewise.
28954 * config/m68hc11/m68hc11.h: Likewise.
28955 * config/mn10300/mn10300.h: Likewise.
28956 * config/mcore/mcore.h: Likewise.
28957 * config/h8300/h8300.h: Likewise.
28958 * config/bfin/bfin.h: Likewise.
28959
28960 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
28961 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
28962
28963 2010-05-03 Anatoly Sokolov <aesok@post.ru>
28964
28965 * double-int.h (tree_to_double_int): Remove macro.
28966 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
28967 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28968 (tree_to_double_int): New function.
28969 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
28970 Move ...
28971 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28972
28973 2010-05-03 Richard Guenther <rguenther@suse.de>
28974
28975 PR tree-optimization/43971
28976 * tree-ssa-structalias.c (get_constraint_for_1): Fix
28977 constraints in the !flag_delete_null_pointer_checks case.
28978
28979 2010-05-03 Jakub Jelinek <jakub@redhat.com>
28980
28981 PR debug/43972
28982 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
28983 result mode matches original rtl mode.
28984
28985 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
28986
28987 PR target/43888
28988 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
28989
28990 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28991
28992 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
28993 when processing flag options.
28994
28995 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28996
28997 * gcov-iov.c (main): Change format string placeholder
28998 from %#08x to 0x%08x.
28999 * genchecksum.c (dosum): Change format string placeholder
29000 from %#02x to 0x%02x.
29001
29002 2010-05-02 Richard Guenther <rguenther@suse.de>
29003
29004 PR tree-optimization/43879
29005 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
29006
29007 2010-05-02 Bruno Haible <bruno@clisp.org>
29008
29009 * doc/extend.texi (Function Attributes): Fix a typo.
29010
29011 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29012
29013 Revert:
29014 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
29015 placeholder from 0x%x to %#x.
29016 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29017 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29018 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29019 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29020 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29021 * config/i386/i386.c (ix86_target_string): Ditto.
29022 * config/i386/i386.c (output_pic_addr_const): Ditto.
29023 (print_operand): Ditto.
29024
29025 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29026
29027 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
29028 placeholder from 0x%x to %#x.
29029 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
29030 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
29031 (ASM_OUTPUT_DEBUG_DATA): Ditto.
29032 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
29033 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
29034 * optc-gen.awk: Ditto.
29035 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
29036 (HOST_WIDE_INT_PRINT_HEX): Ditto.
29037 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
29038 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29039
29040 2010-05-01 Anatoly Sokolov <aesok@post.ru>
29041
29042 * target.h (struct calls): Add function_value_regno_p field.
29043 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
29044 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
29045 * targhooks.c (default_function_value_regno_p): New function.
29046 * targhooks.h (default_function_value_regno_p): Declare function.
29047 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
29048 * builtins.c. (apply_result_size): (Ditto.).
29049 * combine.c. (likely_spilled_retval_p): (Ditto.).
29050 * mode-switching.c. Include 'target.h'.
29051 (create_pre_exit): Use function_value_regno_p hook.
29052 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
29053 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
29054 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
29055
29056 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
29057 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
29058 (ix86_function_value_regno_p): Declare as static, change argument
29059 type to const unsigned int.
29060 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
29061
29062 2010-05-01 Richard Guenther <rguenther@suse.de>
29063
29064 PR tree-optimization/43949
29065 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
29066 types.
29067 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
29068
29069 2010-05-01 Anatoly Sokolov <aesok@post.ru>
29070
29071 * rtl.h (CONST_DOUBLE_P): Define.
29072 (rtx_to_double_int): Declare.
29073 * emit-rtl.c (rtx_to_double_int): New function.
29074 * dwarf2out.c (insert_double): New function.
29075 (loc_descriptor, add_const_value_attribute): Clean up, use
29076 rtx_to_double_int and insert_double functions.
29077
29078 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
29079
29080 * doc/extend.texi (Inline): Add missing return keyword to examples.
29081 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
29082 "command-line".
29083
29084 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
29085
29086 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
29087 the variable part of the offset as well. Use highest_pow2_factor for
29088 all alignment checks.
29089
29090 2010-04-30 Richard Guenther <rguenther@suse.de>
29091
29092 PR tree-optimization/43879
29093 * tree-ssa-structalias.c (type_could_have_pointers): Functions
29094 can have pointers.
29095
29096 2010-04-30 Jan Hubicka <jh@suse.cz>
29097
29098 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
29099 varpool.
29100 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
29101
29102 2010-04-30 Jan Hubicka <jh@suse.cz>
29103
29104 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
29105 New.
29106 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
29107 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
29108 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
29109 cgraph_node_set_needs_ltrans_p): Remove.
29110
29111 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
29112
29113 * sdbout.c: Include vec.h, do not include varray.h.
29114 (deferred_global_decls, sdbout_global_decl,
29115 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
29116 * toplev.c: Do not include varray.h.
29117 (dump_memory_report): Do not dump VARRAY statistics.
29118 * gengtype.c (open_base_file): Ignore varray.h.
29119 * Makefile.in: Update for abovementioned changes.
29120 Remove all traces of varray.c and varray.h.
29121 * varray.c: Remove file.
29122 * varray.h: Remove file.
29123
29124 2010-04-30 Jan Hubicka <jh@suse.cz>
29125
29126 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
29127 references.
29128
29129 2010-04-30 Jan Hubicka <jh@suse.cz>
29130
29131 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
29132 needed.
29133
29134 2010-04-30 Richard Guenther <rguenther@suse.de>
29135
29136 * tree-ssa-structalias.c (get_constraint_for_1): Generate
29137 constraints for CONSTRUCTOR.
29138
29139 2010-04-30 Richard Guenther <rguenther@suse.de>
29140
29141 PR lto/43946
29142 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
29143 first after all lowering passes.
29144
29145 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
29146
29147 * toplev.c: Include varray.h for statistics dumping.
29148 * tree.h: Do not declare varray_head_tag.
29149 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
29150 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
29151 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
29152 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
29153 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
29154 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
29155 c-common.c, c-common.h, reg-stack.c, basic-block.h,
29156 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
29157 include varray.h.
29158 * Makefile.in: Update for abovementioned changes.
29159
29160 2010-04-30 Jakub Jelinek <jakub@redhat.com>
29161
29162 PR debug/43942
29163 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
29164
29165 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29166
29167 * config/picochip/picochip.c (picochip_legitimize_address): Define.
29168 Use this function to do machine-specific conversion.
29169 (picochip_legitimize_reload_address): Likewise.
29170 (picochip_legitimate_address_p): Check valid base register only if
29171 strict.
29172 (picochip_check_conditional_copy): Check for modw only if opnd is
29173 register.
29174 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
29175 to call the function in c.
29176 * config/picochip/picochip-protos.h
29177 (picochip_legitimize_reload_address): Define.
29178 * config/picochip/picochip.md (supported_compare1): Define.
29179
29180 2010-04-30 Jan Hubicka <jh@suse.cz>
29181
29182 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
29183 (cgraph_global_info): Remove inlined.
29184 (LTO_cgraph_tag_names): Remove.
29185 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
29186 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
29187 simplify cgraph tags and document.
29188 (lto_output_node): Use only LTO_cgraph_unavail_node and
29189 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
29190 for_functions_valid, global info, process and output flags.
29191 (input_overwrite_node): Initialize estimated stack size and
29192 estimated growth. Do not read flags we no longer store.
29193 (input_node): Likewise do not read info no longer stored.
29194 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
29195 flag.
29196
29197 2010-04-30 Richard Guenther <rguenther@suse.de>
29198
29199 PR tree-optimization/43879
29200 * tree-ssa-structalias.c (get_constraint_for_1): Properly
29201 handle non-zero initializers.
29202
29203 2010-04-30 Richard Guenther <rguenther@suse.de>
29204
29205 * builtins.c (fold_builtin_1): Delete free (0).
29206
29207 2010-04-29 Jan Hubicka <jh@suse.cz>
29208
29209 * gengtype.c (open_base_files): Add lto-streamer.h
29210 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
29211 (pass_ipa_cp): GGC collect.
29212 * toplev. (compile_file): Do not output symbols.
29213 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
29214 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
29215 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
29216 * lto-section-in.c: Include ggc.h
29217 (lto_new_in_decl_state): Alloc in GGC.
29218 (lto_delete_in_decl_state): Likewise.
29219 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
29220 Collect.
29221
29222 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29223
29224 PR target/42895
29225 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
29226 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
29227 (HONOR_REG_ALLOC_ORDER): Describe new macro.
29228 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
29229 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
29230 account only if HONOR_REG_ALLOC_ORDER is not defined.
29231 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
29232 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
29233
29234 2010-04-29 Jon Grant <04@jguk.org>
29235
29236 * collect2.c (vflag): Change type from int to bool.
29237 (debug): Likewise.
29238 (helpflag): New global bool.
29239 (main): Set vflag and debug with boolean, not integer truth values.
29240 Accept new "--help" option and output usage text if found.
29241 * collect2.h (vflag): Update prototype.
29242 (debug): Likewise.
29243
29244 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29245
29246 PR bootstrap/43936
29247 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
29248
29249 2010-04-29 Richard Guenther <rguenther@suse.de>
29250
29251 PR bootstrap/43935
29252 * plugin.h (invoke_plugin_callbacks): Annotate arguments
29253 with ATTRIBUTE_UNUSED.
29254
29255 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29256
29257 PR target/43921
29258 * config/i386/i386.c (get_some_local_dynamic_name): Replace
29259 INSN_P with NONDEBUG_INSN_P.
29260 (distance_non_agu_define): Likewise.
29261 (distance_agu_use): Likewise.
29262
29263 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29264
29265 From Dominique d'Humieres <dominiq@lps.ens.fr>
29266 PR bootstrap/43858
29267 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
29268 test_set.
29269
29270 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
29271
29272 * plugin.h (invoke_plugin_callbacks): New inline function.
29273 * plugin.c (flag_plugin_added): New global flag.
29274 (add_new_plugin): Initialize above flag.
29275 (invoke_plugin_callbacks): Rename to ...
29276 (invoke_plugin_callbacks_full): ... this.
29277
29278 2010-04-28 Jan Hubicka <jh@suse.cz>
29279
29280 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
29281 (lto_varpool_replace_node): New.
29282 (lto_symtab_resolve_symbols): Resolve varpool nodes.
29283 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
29284 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
29285 * cgraph.h (varpool_node_ptr): New type.
29286 (varpool_node_ptr): New vector.
29287 (varpool_node_set_def): New structure.
29288 (varpool_node_set): New type.
29289 (varpool_node_set): New vector.
29290 (varpool_node_set_element_def): New structure.
29291 (varpool_node_set_element, const_varpool_node_set_element): New types.
29292 (varpool_node_set_iterator): New type.
29293 (varpool_node): Add prev pointers, add used_from_other_partition,
29294 in_other_partition.
29295 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
29296 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
29297 varpool_get_node, varpool_remove_node): Declare.
29298 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
29299 varpool_node_set_size): New inlines.
29300 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
29301 * tree-pass.h (varpool_node_set_def): Forward declare.
29302 (ipa_opt_pass_d): Summary writting takes vnode sets too.
29303 (ipa_write_optimization_summaries): Update prototype.
29304 * ipa-cp.c (ipcp_write_summary): Update.
29305 * ipa-reference.c (ipa_reference_write_summary): Update.
29306 * lto-cgraph.c (lto_output_varpool_node): New static function.
29307 (output_varpool): New function.
29308 (input_varpool_node): New static function.
29309 (input_varpool_1): New function.
29310 (input_cgraph): Input varpool.
29311 * ipa-pure-const.c (pure_const_write_summary): Update.
29312 * lto-streamer-out.c (lto_output): Update, output varpool too.
29313 (write_global_stream): Kill WPA hack.
29314 (produce_asm_for_decls): Update.
29315 (output_alias_pair_p): Handle variables.
29316 (output_unreferenced_globals): Output only needed partition of varpool.
29317 * ipa-inline.c (inline_write_summary): Update.
29318 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
29319 cgraph.
29320 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
29321 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
29322 varpool_node_set_new, varpool_node_set_add,
29323 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
29324 debug_varpool_node_set): New functions.
29325 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
29326 (execute_one_pass): Process new decls too.
29327 (ipa_write_summaries_2): Pass around vsets.
29328 (ipa_write_summaries_1): Likewise.
29329 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
29330 to add.
29331 (ipa_write_optimization_summaries_1): Pass around vsets.
29332 (ipa_write_optimization_summaries): Likewise.
29333 * varpool.c (varpool_get_node): New.
29334 (varpool_node): Update doubly linked lists.
29335 (varpool_remove_node): New.
29336 (dump_varpool_node): More dumping.
29337 (varpool_enqueue_needed_node): Update doubly linked lists.
29338 (decide_is_variable_needed): Kill ltrans hack.
29339 (varpool_finalize_decl): Kill lto hack.
29340 (varpool_assemble_decl): Skip decls in other partitions.
29341 (varpool_assemble_pending_decls): Update doubly linkes lists.
29342 (varpool_empty_needed_queue): Likewise.
29343 (varpool_extra_name_alias): Likewise.
29344 * lto-streamer.c (lto_get_section_name): Add vars section.
29345 * lto-streamer.h (lto_section_type): Update.
29346 (output_varpool, input_varpool): Declare.
29347
29348 2010-04-28 Mike Stump <mikestump@comcast.net>
29349
29350 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
29351
29352 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29353
29354 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
29355 record or union type with RECORD_OR_UNION_TYPE_P predicate.
29356 (lto_input_ts_type_tree_pointers): Likewise.
29357 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
29358 (lto_output_ts_type_tree_pointers): Likewise.
29359
29360 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29361
29362 Uniquization of constants at the Tree level
29363 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
29364 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
29365 bit to the end.
29366 (tree_output_constant_def): Declare.
29367 * gimplify.c (gimplify_init_constructor): When using block copy, first
29368 uniquize the constant constructor on the RHS.
29369 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
29370 DECL_IN_CONSTANT_POOL flag.
29371 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
29372 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
29373 constant pool.
29374 (assemble_variable): Deal with symbols belonging to the tree constant
29375 pool.
29376 (get_constant_section): Add ALIGN parameter and simplify.
29377 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
29378 (assemble_constant_contents): Use the expression of the VAR_DECL.
29379 (output_constant_def_contents): Use the alignment of the VAR_DECL.
29380 (tree_output_constant_def): New global function.
29381 (mark_constant): Use the expression of the VAR_DECL.
29382 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
29383 its expression.
29384 (output_object_block): Likewise and assemble the expression.
29385
29386 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29387
29388 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
29389 hash_tree, eq_tree): New tree hash table.
29390 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
29391 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
29392 lto_orig_address_remove): Reimplement.
29393
29394 2010-04-28 Xinliang David Li <davidxl@google.com>
29395
29396 PR c/42643
29397 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
29398 (compute_uninit_opnds_pos): New function.
29399 (is_non_loop_exit_postdominating): New function.
29400 (compute_control_dep_chain): New function.
29401 (find_pdom): New function.
29402 (convert_control_dep_chain_into_preds): New function.
29403 (find_predicates): New function.
29404 (find_control_equiv_block): New function.
29405 (collect_phi_def_edges): New function.
29406 (find_def_preds): New function.
29407 (find_dom): New function.
29408 (dump_predicates): New function.
29409 (get_cmp_code): New function.
29410 (is_value_included_in): New function.
29411 (find_matching_predicate_in_rest_chains): New function.
29412 (use_pred_not_overlap_with_undef_path_pred): New function.
29413 (is_use_properly_guarded): New function.
29414 (normalize_cond_1): New function.
29415 (is_and_or_or): New function.
29416 (normalize_cond): New function.
29417 (is_gcond_subset_of): New function.
29418 (is_subset_of_any): New function.
29419 (is_or_set_subset_of): New function.
29420 (is_and_set_subset_of): New function.
29421 (is_norm_cond_subset_of): New function.
29422 (is_pred_expr_subset_of): New function.
29423 (is_pred_chain_subset_of): New function.
29424 (is_included_in): New function.
29425 (is_superset_of): New function.
29426 (find_uninit_use): New function.
29427 (warn_uninitialized_phi): New function.
29428 (compute_possibly_undefined_names): New function.
29429 (ssa_undefined_value_p): New function.
29430 (execute_late_warn_uninitialized): New function.
29431 * tree-ssa.c (ssa_undefined_value_p): Removed.
29432 (warn_uninit): Changed to extern.
29433 (warn_uninitialized_phi): Removed.
29434 (warn_uninitialized_vars): Changed to extern.
29435 (execute_late_warn_uninitialized): Removed
29436 * tree-flow.h: Add new prototypes.
29437 * timevar.def: Add new time variable.
29438 * Makefile.in: Add new build file.
29439
29440 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
29441
29442 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
29443 type if available.
29444
29445 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29446
29447 PR target/22224
29448 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
29449
29450 2010-04-28 Martin Jambor <mjambor@suse.cz>
29451
29452 * cgraph.h (struct cgraph_node): New field indirect_calls.
29453 (struct cgraph_indirect_call_info): New type.
29454 (struct cgraph_edge): Removed field indirect_call. New fields
29455 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
29456 (cgraph_create_indirect_edge): Declare.
29457 (cgraph_make_edge_direct): Likewise.
29458 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
29459 * ipa-prop.h (struct ipa_param_call_note): Removed.
29460 (struct ipa_node_params): Removed field param_calls.
29461 (ipa_create_all_structures_for_iinln): Declare.
29462 * cgraph.c: Described indirect edges and uids in initial comment.
29463 (cgraph_add_edge_to_call_site_hash): New function.
29464 (cgraph_edge): Search also among the indirect edges, use
29465 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
29466 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
29467 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
29468 site hash.
29469 (initialize_inline_failed): Assign a reason to indirect edges.
29470 (cgraph_create_edge_1): New function.
29471 (cgraph_create_edge): Moved some functionality to
29472 cgraph_create_edge_1.
29473 (cgraph_create_indirect_edge): New function.
29474 (cgraph_edge_remove_callee): Add an assert checking for
29475 non-indirectness.
29476 (cgraph_edge_remove_caller): Special-case indirect edges.
29477 (cgraph_remove_edge): Likewise.
29478 (cgraph_set_edge_callee): New function.
29479 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
29480 (cgraph_make_edge_direct): New function.
29481 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
29482 the declaration of the call statement matches.
29483 (cgraph_node_remove_callees): Special-case indirect edges.
29484 (cgraph_clone_edge): Likewise.
29485 (cgraph_clone_node): Clone also the indirect edges.
29486 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
29487 indirect_call, dump count of indirect_calls edges.
29488 * ipa-prop.c (iinlining_processed_edges): New variable.
29489 (ipa_note_param_call): Create indirect edges instead of
29490 creating notes. New parameter node.
29491 (ipa_analyze_call_uses): New parameter node, pass it on to
29492 ipa_note_param_call.
29493 (ipa_analyze_stmt_uses): Likewise.
29494 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
29495 (print_edge_addition_message): Work on edges rather than on notes.
29496 (update_call_notes_after_inlining): Likewise, renamed to
29497 update_indirect_edges_after_inlining.
29498 (ipa_create_all_structures_for_iinln): New function.
29499 (ipa_free_node_params_substructures): Do not free notes.
29500 (ipa_edge_duplication_hook): Propagate bits within
29501 iinlining_processed_edges bitmap.
29502 (ipa_node_duplication_hook): Do not duplicate notes.
29503 (free_all_ipa_structures_after_ipa_cp): Renamed to
29504 ipa_free_all_structures_after_ipa_cp.
29505 (free_all_ipa_structures_after_iinln): Renamed to
29506 ipa_free_all_structures_after_iinln.
29507 (ipa_write_param_call_note): Removed.
29508 (ipa_read_param_call_note): Removed.
29509 (ipa_write_indirect_edge_info): New function.
29510 (ipa_read_indirect_edge_info): Likewise.
29511 (ipa_write_node_info): Do not stream notes, do stream information
29512 in indirect edges.
29513 (ipa_read_node_info): Likewise.
29514 (lto_ipa_fixup_call_notes): Removed.
29515 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
29516 * ipa-inline.c (pass_ipa_inline): Likewise.
29517 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
29518 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
29519 * tree-inline.c (copy_bb): Removed an unnecessary double check for
29520 is_gimple_call.
29521 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
29522 edges.
29523 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
29524 (output_cgraph): Stream also indirect edges.
29525 (lto_output_edge): Added capability to stream indirect edges.
29526 (input_edge): Likewise.
29527 (input_cgraph_1): Likewise.
29528 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
29529 of indirect edges.
29530
29531 2010-04-28 Richard Guenther <rguenther@suse.de>
29532
29533 PR tree-optimization/43879
29534 PR tree-optimization/43909
29535 * tree-ssa-structalias.c (struct variable_info): Add
29536 only_restrict_pointers flag.
29537 (new_var_info): Initialize it. Increment stats.total_vars here.
29538 (create_function_info_for): Do not increment stats.total_vars here.
29539 (get_function_part_constraint): Fix build with C++.
29540 (insert_into_field_list): Remove.
29541 (push_fields_onto_fieldstack): Properly merge fields.
29542 (create_variable_info_for): Split and simplify.
29543 (create_variable_info_for_1): New piece.
29544 (intra_create_variable_infos): Properly make restrict constraints
29545 from parameters.
29546
29547 2010-04-28 Richard Guenther <rguenther@suse.de>
29548
29549 PR c++/43880
29550 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
29551
29552 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
29553 Jan Hubicka <hubicka@ucw.cz>
29554
29555 * doc/invoke.texi (-Wsuggest-attribute=const,
29556 -Wsuggest-attribute=pure): Document.
29557 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
29558 (function_always_visible_to_compiler_p,
29559 suggest_attribute, warn_function_pure, warn_function_const):
29560 New functions.
29561 (check_call): Improve debug info.
29562 (analyze_function): Do not check availability.
29563 (add_new_function): Check availability.
29564 (propagate): Output warnings.
29565 (skip_function_for_local_pure_const): New function.
29566 (local_pure_const): Use it; output warnings.
29567 * common.opt (Wsuggest-attribute=const,
29568 Wsuggest-attribute=pure): New.
29569
29570 2010-04-27 Jakub Jelinek <jakub@redhat.com>
29571
29572 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
29573 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
29574 or DW_CFA_def_cfa_offset{,_sf}.
29575
29576 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
29577
29578 * tree.h: Fix truncated long macros.
29579
29580 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
29581
29582 * collect2.c (TARGET_64BIT): Redefine to target's default.
29583 * tlink.c: Likewise.
29584 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
29585 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
29586 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
29587 for underscoring __USER_LABEL_PREFIX__.
29588 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
29589 (SUB_LINK_ENTRY32): New.
29590 (SUB_LINK_ENTRY64): New.
29591 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
29592 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
29593 (SUB_LINK_ENTRY64): New.
29594 (SUB_LINK_ENTRY): New.
29595 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
29596 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
29597 x64 target is choosen.
29598 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
29599 * configure: Regenerated.
29600 * configure.ac (leading-mingw64-underscores): Option added.
29601
29602 2010-04-27 Jan Hubicka <jh@suse.cz>
29603
29604 * doc/invoke.texi (-fipa-profile): Document.
29605 * opts.c (decode_options): Enable ipa-profile at -O1.
29606 * timevar.def (TV_IPA_PROFILE): Define.
29607 * common.opt (fipa-profile): Add.
29608 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
29609 flag for clones.
29610 (cgraph_propagate_frequency): Handle only local ones.
29611 * tree-pass.h (pass_ipa_profile): Declare.
29612 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
29613 (pass_ipa_profile): Use TV_IPA_PROFILE.
29614 * ipa.c (ipa_profile): New function.
29615 (gate_ipa_profile): Likewise.
29616 (pass_ipa_profile): New global variable.
29617 * passes.c (pass_ipa_profile): New.
29618
29619 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
29620
29621 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
29622
29623 2010-04-27 Martin Jambor <mjambor@suse.cz>
29624
29625 PR middle-end/43812
29626 * ipa.c (dissolve_same_comdat_group_list): New function.
29627 (function_and_variable_visibility): Call
29628 dissolve_same_comdat_group_list when comdat group contains external or
29629 newly local nodes.
29630 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
29631 lists are circular and that they contain only DECL_ONE_ONLY nodes.
29632
29633 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
29634
29635 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
29636 (const_hash_1) <VECTOR_CST>: New case.
29637 (compare_constant) <VECTOR_CST>: Likewise.
29638 <ADDR_EXPR>: Deal with LABEL_REFs.
29639 (copy_constant) <VECTOR_CST>: New case.
29640
29641 2010-04-27 Jan Hubicka <jh@suse.cz>
29642
29643 * cgraph.c (cgraph_propagate_frequency): New function.
29644 * cgraph.h (cgraph_propagate_frequency): Declare.
29645 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
29646 cgraph_propagate_frequency.
29647
29648 2010-04-27 Jakub Jelinek <jakub@redhat.com>
29649
29650 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
29651
29652 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
29653
29654 PR target/40657
29655 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
29656 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
29657 here to determine which regs to push and how much stack to reserve.
29658
29659 2010-04-27 Jie Zhang <jie@codesourcery.com>
29660
29661 * doc/gimple.texi (gimple_statement_with_ops): Remove
29662 addresses_taken field.
29663 (gimple_statement_with_memory_ops): Likewise.
29664
29665 2010-04-27 Jan Hubicka <jh@suse.cz>
29666
29667 * tree-inline.c (eni_inlining_weights): Remove.
29668 (estimate_num_insns): Special case more builtins.
29669
29670 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
29671
29672 PR c/32207
29673 * c-typeck.c (build_binary_op): Move forward check for comparison
29674 pointer with null pointer constant and adjust the diagnostic message.
29675
29676 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
29677
29678 PR lto/42776
29679 * configure.ac (gcc_cv_as_section_has_align): Set if installed
29680 binutils supports extended .section directive needed by LTO, or
29681 warn if older binutils found.
29682 (LTO_BINARY_READER): New AC_SUBST'd variable.
29683 (LTO_USE_LIBELF): Likewise.
29684 * config.gcc (lto_binary_reader): New target-specific configure
29685 variable.
29686 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
29687 (LTO_USE_LIBELF): Likewise.
29688 * configure: Regenerate.
29689
29690 * collect2.c (is_elf): Rename from this ...
29691 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
29692 object files in addition to ELF-formatted ones.
29693 (scan_prog_file): Caller updated. Also allow for LTO info marker
29694 symbol to be prefixed or not by an extra underscore.
29695
29696 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
29697 * config/i386/winnt.c: Also #include lto-streamer.h
29698 (i386_pe_asm_named_section): Specify 1-byte section alignment for
29699 LTO named sections.
29700 (i386_pe_asm_output_aligned_decl_common): Add comment.
29701 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
29702
29703 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
29704
29705 PR target/43889
29706 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
29707 Add missing earlyclobber for second alternative.
29708
29709 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
29710
29711 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
29712 bits for artificial defs at the top of the block.
29713 * fwprop.c (single_def_use_enter_block): Don't call it.
29714
29715 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
29716
29717 PR 43715
29718 * configure.ac: Use "$gcc_cv_nm -g" on darwin
29719 instead of "$gcc_cv_objdump -T".
29720 Use "-undefined dynamic_lookup" on darwin.
29721 * configure: Regenerate.
29722
29723 2010-04-26 Jakub Jelinek <jakub@redhat.com>
29724
29725 PR c/43893
29726 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
29727
29728 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
29729
29730 * c-parser.c (struct c_token): Move location field up.
29731 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
29732 (struct c_declspecs): Convert typespec_word, storage_class, and
29733 default_int_p into bitfields.
29734 (struct c_declarator): Move loc field up.
29735
29736 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
29737
29738 * cfgloop.h (struct loop): Move can_be_parallel field up.
29739 * ipa-prop.h (struct ip_node_params): Move bitfields up.
29740 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
29741 down.
29742 (struct iv_cand): Convert pos field into a bitfield.
29743 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
29744 field up.
29745 (struct _stmt_vec_info): Shuffle fields for better packing.
29746
29747 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
29748
29749 * varasm.c (IN_NAMED_SECTION): Remove guard.
29750 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
29751 (IN_NAMED_SECTION_P): ...this.
29752 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
29753 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
29754
29755 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
29756
29757 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
29758 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
29759 of shadowing it. Fix comments.
29760
29761 2010-04-26 Jan Hubicka <jh@suse.cz>
29762
29763 * cgraph.c (cgraph_create_node): Set node frequency to normal.
29764 (cgraph_clone_node): Copy function frequency.
29765 * cgraph.h (node_frequency): New enum
29766 (struct cgraph_node): Add.
29767 * final.c (rest_of_clean_state): Update.
29768 * lto-cgraph.c (lto_output_node): Output node frequency.
29769 (input_overwrite_node): Input node frequency.
29770 * tre-ssa-loop-ivopts (computation_cost): Update.
29771 * lto-streamer-out.c (output_function): Do not output function
29772 frequency.
29773 * predict.c (maybe_hot_frequency_p): Update and handle functions
29774 executed once.
29775 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
29776 attribute lookup.
29777 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
29778 (compute_function_frequency): Set noreturn functions to be executed
29779 once.
29780 (choose_function_section): Update.
29781 * lto-streamer-in.c (input_function): Do not input function frequency.
29782 * function.c (allocate_struct_function): Do not initialize function
29783 frequency.
29784 * function.h (function_frequency): Remove.
29785 (struct function): Remove function frequency.
29786 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
29787 (try_update): Update.
29788 * tree-inline.c (initialize_cfun): Do not update function frequency.
29789 * passes.c (pass_init_dump_file): Update.
29790 * i386.c (ix86_compute_frame_layout): Update.
29791 (ix86_pad_returns): Update.
29792
29793 2010-04-26 Jie Zhang <jie@codesourcery.com>
29794
29795 PR tree-optimization/43833
29796 * tree-vrp.c (range_int_cst_p): New.
29797 (range_int_cst_singleton_p): New.
29798 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
29799 when both operands are constants. Use range_int_cst_p in
29800 BIT_IOR_EXPR case.
29801
29802 2010-04-26 Jan Hubicka <jh@suse.cz>
29803
29804 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
29805
29806 2010-04-26 Richard Guenther <rguenther@suse.de>
29807
29808 PR lto/43080
29809 * gimple.c (gimple_decl_printable_name): Deal gracefully
29810 with a NULL DECL_NAME.
29811
29812 2010-04-26 Richard Guenther <rguenther@suse.de>
29813
29814 PR lto/42425
29815 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
29816 if emitting debug information and it is either a function
29817 or a namespace decl.
29818
29819 2010-04-26 Ira Rosen <irar@il.ibm.com>
29820
29821 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
29822 determine if the statement is vectorizable, and a macro to access it.
29823 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29824 Skip statements that can't be vectorized. If the analysis fails,
29825 mark the statement as unvectorizable if vectorizing basic block.
29826 (vect_compute_data_refs_alignment): Likewise.
29827 (vect_verify_datarefs_alignment): Skip statements marked as
29828 unvectorizable. Add print.
29829 (vect_analyze_group_access): Skip statements that can't be
29830 vectorized. If the analysis fails, mark the statement as
29831 unvectorizable if vectorizing basic block.
29832 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
29833 * tree-vect-stmts.c (vectorizable_store): Fix the number of
29834 generated stmts for SLP.
29835 (new_stmt_vec_info): Initialize the new field.
29836 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
29837 statements marked as unvectorizable.
29838
29839 2010-04-25 Joseph Myers <joseph@codesourcery.com>
29840
29841 * c-common.c (flag_isoc1x): New.
29842 (flag_isoc99): Update comment.
29843 * c-common.h (flag_isoc1x): New.
29844 (flag_isoc99): Update comment.
29845 * c-cppbuiltin.c (builtin_define_float_constants): Also define
29846 __<type>_DECIMAL_DIG__.
29847 * c-opts.c (set_std_c1x): New.
29848 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
29849 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
29850 * c.opt (-std=c1x, -std=gnu1x): New options.
29851 * doc/cpp.texi: Mention -std=c1x.
29852 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
29853 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
29854 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
29855 * doc/standards.texi: Mention C1X.
29856 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
29857 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
29858 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
29859 Define for C1X.
29860
29861 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
29862
29863 * config/i386/gmon-sol2.c (_mcleanup): Change format string
29864 placeholder from 0x%x to %#x.
29865 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29866 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29867 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29868 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29869 * config/i386/i386.c (ix86_target_string): Ditto.
29870 (output_pic_addr_const): Ditto.
29871 (print_operand): Ditto.
29872
29873 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
29874
29875 * combine.c (find_split_point): Add third argument. Use it
29876 to find nested multiply-accumulate instructions. Adjust calls.
29877 (try_combine): Adjust call to find_split_point.
29878
29879 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
29880
29881 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
29882
29883 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
29884
29885 PR tree-optimization/41442
29886 * fold-const.c (merge_truthop_with_opposite_arm): New function.
29887 (fold_binary_loc): Call it.
29888
29889 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
29890
29891 * toplev.c (general_init): Set default for fdiagnostics-show-option.
29892 * opts.c (common_handle_option): Allow disabling it.
29893 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
29894
29895 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
29896
29897 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
29898 between modes if both types are integral.
29899
29900 2010-04-23 Richard Guenther <rguenther@suse.de>
29901
29902 PR tree-optimization/43572
29903 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
29904
29905 2010-04-23 Richard Guenther <rguenther@suse.de>
29906
29907 PR lto/43455
29908 * tree-inline.c (tree_can_inline_p): Also check compatibility
29909 of return types.
29910
29911 2010-04-23 Martin Jambor <mjambor@suse.cz>
29912
29913 PR tree-optimization/43846
29914 * tree-sra.c (struct access): New flag grp_assignment_read.
29915 (build_accesses_from_assign): Set grp_assignment_read.
29916 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
29917 (enum mark_read_status): New type.
29918 (analyze_access_subtree): Propagate grp_assignment_read, create
29919 accesses also if both direct_read and root->grp_assignment_read.
29920
29921 2010-04-23 Martin Jambor <mjambor@suse.cz>
29922
29923 PR middle-end/43835
29924 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
29925 function does not have type attributes.
29926
29927 2010-04-23 Richard Guenther <rguenther@suse.de>
29928
29929 PR lto/42653
29930 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
29931 of FUNCTION_DECLs.
29932
29933 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29934
29935 * sese.h (create_if_region_on_edge): Remove.
29936
29937 * sese.c (create_if_region_on_edge): Make static.
29938
29939 * tree-inline.c: Do not include ggc.h.
29940
29941 * expr.c: Do not include ggc.h.
29942
29943 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
29944 dependencies.
29945
29946 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
29947
29948 PR target/43744
29949 * config/sh/sh.c (find_barrier): Don't emit a constant pool
29950 in the middle of insns for casesi_worker_2.
29951
29952 2010-04-22 David Edelsohn <edelsohn@gnu.org>
29953
29954 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
29955
29956 2010-04-22 Ira Rosen <irar@il.ibm.com>
29957
29958 PR tree-optimization/43842
29959 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
29960 loop unrolling in update of exit phis. Fix comment.
29961 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
29962 least two reduction statements in the loop before starting SLP
29963 analysis.
29964
29965 2010-04-22 Nick Clifton <nickc@redhat.com>
29966
29967 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
29968
29969 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
29970
29971 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
29972 to simplify a + ~a.
29973
29974 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29975
29976 * tree-parloops.c (loop_parallel_p): New argument
29977 parloop_obstack. Pass it down.
29978 (parallelize_loops): New variable parloop_obstack. Initialize it,
29979 pass it down, free it.
29980
29981 * tree-loop-linear.c (linear_transform_loops): Pass down
29982 lambda_obstack.
29983
29984 * tree-data-ref.h (lambda_compute_access_matrices): New argument
29985 of type struct obstack *.
29986
29987 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
29988 scratch_obstack. Initialize it, pass down, free it.
29989
29990 * lambda.h (lambda_loop_new): Remove.
29991 (lambda_matrix_new, lambda_matrix_inverse)
29992 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
29993 argument of type struct obstack *.
29994
29995 * lambda-trans.c (lambda_trans_matrix_new): New argument
29996 lambda_obstack. Pass it down, use obstack allocation for ret.
29997 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
29998 it down.
29999
30000 * lambda-mat.c (lambda_matrix_get_column)
30001 (lambda_matrix_project_to_null): Remove.
30002 (lambda_matrix_new): New argument lambda_obstack. Use obstack
30003 allocation for mat.
30004 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
30005 lambda_obstack.
30006
30007 * lambda-code.c (lambda_loop_new): New function.
30008 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
30009 (lambda_compute_auxillary_space, lambda_compute_target_space)
30010 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
30011 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
30012 (build_access_matrix): New argument lambda_obstack. Use obstack
30013 allocation for am.
30014 (lambda_compute_step_signs, lambda_compute_access_matrices): New
30015 argument lambda_obstack. Pass it down.
30016
30017 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30018
30019 * optabs.h (expand_widening_mult): Declare.
30020
30021 2010-04-22 Richard Guenther <rguenther@suse.de>
30022
30023 PR tree-optimization/43845
30024 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
30025 lookup the CALL_EXPR function and arguments.
30026
30027 2010-04-22 Nick Clifton <nickc@redhat.com>
30028
30029 * config/stormy16/stormy16.c
30030 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
30031 * config/stormy16/stormy16.h: Tidy up formatting.
30032 (DONT_USE_BUILTIN_SETJMP): Remove definition.
30033 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
30034 (ineqbranchsi): Delete pattern.
30035 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
30036 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
30037 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
30038 stormy16-lib2-ucmpsi2.c.
30039
30040 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30041
30042 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
30043 df_simulate_find_noclobber_defs as appropriate. Keep track of an
30044 extra set merge_set_noclobber, and use it to relax the final test
30045 slightly.
30046 * df.h (df_simulate_find_noclobber_defs): Declare.
30047 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
30048 conditional defs.
30049 (df_simulate_find_noclobber_defs): New function.
30050
30051 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
30052
30053 * config/i386/i386.md: Use {} around multi-line preparation statements.
30054
30055 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
30056
30057 * c-tree.h (push_init_level, pop_init_level, set_init_index)
30058 (process_init_element): New argument of type struct obstack *.
30059
30060 * c-typeck.c (push_init_level, pop_init_level, set_designator)
30061 (set_init_index, set_init_label, set_nonincremental_init)
30062 (set_nonincremental_init_from_string, find_init_member)
30063 (output_init_element, output_pending_init_elements)
30064 (process_init_element): New argument braced_init_obstack. Pass it
30065 down.
30066 (push_range_stack, add_pending_init): New argument
30067 braced_init_obstack. Use obstack allocation.
30068
30069 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
30070 braced_init_obstack. Pass it down.
30071 (c_parser_braced_init): New variables ret, braced_init_obstack.
30072 Initialize obstack, pass it down and finally free it.
30073
30074 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30075
30076 PR middle-end/29274
30077 * tree-pass.h (pass_optimize_widening_mul): Declare.
30078 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
30079 gate_optimize_widening_mul): New static functions.
30080 (pass_optimize_widening_mul): New.
30081 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
30082 <case MULT_EXPR>: Remove support for widening multiplies.
30083 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
30084 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
30085 simplify_gen_unary rather than directly building extensions.
30086 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
30087 WIDEN_MULT_EXPR.
30088 * expmed.c (expand_widening_mult): New function.
30089 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
30090
30091 2010-04-21 Jan Hubicka <jh@suse.cz>
30092
30093 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
30094 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
30095 * lto-wpa-fixup.c: Remove.
30096 * Makefile.in (lto-wpa-fixup.o): Remove.
30097 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
30098 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
30099 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
30100
30101 2010-04-21 Jan Hubicka <jh@suse.cz>
30102
30103 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
30104 add write_optimization_summary, read_optimization_summary.
30105 (ipa_write_summaries_of_cgraph_node_set): Remove.
30106 (ipa_write_optimization_summaries): Declare.
30107 (ipa_read_optimization_summaries): Declare.
30108 * ipa-cp.c (pass_ipa_cp): Update.
30109 * ipa-reference.c (pass_ipa_reference): Update.
30110 * ipa-pure-const.c (pass_ipa_pure_const): Update.
30111 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
30112 Update.
30113 * ipa-inline.c (pass_ipa_inline): Update.
30114 * ipa.c (pass_ipa_whole_program): Update.
30115 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
30116 * passes.c (ipa_write_summaries_1): Do not test wpa.
30117 (ipa_write_optimization_summaries_1): New.
30118 (ipa_write_optimization_summaries): New.
30119 (ipa_read_summaries): Do not test ltrans.
30120 (ipa_read_optimization_summaries_1): New.
30121 (ipa_read_optimization_summaries): New.
30122
30123 2010-04-21 Jan Hubicka <jh@suse.cz>
30124
30125 * lto-cgraph.c (lto_output_node): Do not output comdat groups
30126 for boundary nodes.
30127 (output_cgraph): Do not arrange comdat groups for boundary nodes.
30128
30129 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30130
30131 PR debug/40040
30132 * dwarf2out.c (add_name_and_src_coords_attributes): Add
30133 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
30134
30135 2010-04-21 Jan Hubicka <jh@suse.cz>
30136
30137 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
30138
30139 2010-04-21 Jan Hubicka <jh@suse.cz>
30140
30141 * varpool.c (decide_is_variable_needed): Variable is always needed
30142 during ltrans.
30143
30144 2010-04-21 Jan Hubicka <jh@suse.cz>
30145
30146 * opts.c (decode_options): Enable pure-const pass for whopr.
30147
30148 2010-04-21 Jan Hubicka <jh@suse.cz>
30149
30150 * cgraph.c (dump_cgraph_node): Dump also assembler name.
30151 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
30152 at WPA dumping.
30153 (cgraph_decide_inlining): Do not expect callee to be removed in all
30154 cases.
30155
30156 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
30157
30158 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
30159
30160 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30161
30162 * config/i386/i386.md (x86_shrd): Add athlon_decode and
30163 amdfam10_decode attributes.
30164
30165 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30166
30167 PR middle-end/43570
30168 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
30169 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
30170 (lower_copyprivate_clauses): Use private var in outer
30171 context instead of original var. Make sure the types
30172 are correct for VLAs.
30173
30174 2010-04-21 Richard Guenther <rguenther@suse.de>
30175
30176 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
30177 to non-pointer objects.
30178
30179 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30180
30181 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
30182 last chain entry if it starts with the still current label.
30183 (add_location_or_const_value_attribute): Check that
30184 loc_list->first->next is NULL instead of comparing ->first with ->last.
30185 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
30186 to add_var_loc_to_decl.
30187
30188 * dwarf2out.c (output_call_frame_info): For dw_cie_version
30189 >= 4 add also address size and segment size fields into CIE header.
30190
30191 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
30192 long as address size is the same as sizeof (void *) and
30193 segment size is 0.
30194 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
30195 address size or segment size is unexpected, return DW_EH_PE_omit.
30196 (classify_object_over_fdes): If get_cie_encoding returned
30197 DW_EH_PE_omit, return -1.
30198 (init_object): If classify_object_over_fdes returned -1,
30199 pretend there were no FDEs at all.
30200
30201 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30202
30203 * config/i386/i386.md (bswap<mode>2): Macroize expander from
30204 bswap{si,di}2 using SWI48 mode iterator.
30205 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
30206 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
30207 set modrm attribute of bswap insn to 0 and remove length attribute.
30208 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
30209 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
30210 set mode attribute to <MODE> and remove length attribute.
30211
30212 2010-04-20 James E. Wilson <wilson@codesourcery.com>
30213
30214 PR rtl-optimization/43520
30215 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
30216 zero available registers.
30217
30218 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30219
30220 * builtins.c (fold_builtin_cproj): Fold more cases.
30221
30222 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30223
30224 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
30225 (fold_builtin_1): Fold builtin cproj.
30226 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
30227 Use ATTR_CONST_NOTHROW_LIST.
30228
30229 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
30230
30231 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
30232 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
30233 ffsi2_no_cmove for !TARGET_CMOVE.
30234 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
30235 (ffssi2): Remove expander.
30236 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
30237 mode iterator.
30238 (ctz<mode>2): Ditto from ctz{si,di}2.
30239 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
30240 mode iterator.
30241 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
30242 mode iterator.
30243
30244 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30245
30246 * dwarf2out.c (AT_linkage_name): Define.
30247 (clone_as_declaration): Handle DW_AT_linkage_name.
30248 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
30249 of DW_AT_MIPS_linkage_name.
30250 (move_linkage_attr): Likewise.
30251 (dwarf2out_finish): Likewise.
30252
30253 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
30254
30255 PR middle-end/41952
30256 * fold-const.c (fold_comparison): New folding rule.
30257
30258 2010-04-20 Anatoly Sokolov <aesok@post.ru>
30259
30260 * double-int.h (double_int_setbit): Declare.
30261 * double-int.c (double_int_setbit): New function.
30262 * rtl.h (immed_double_int_const): Declare.
30263 * emit-rtl.c (immed_double_int_const): New function.
30264 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
30265 and immed_double_int_const functions.
30266 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
30267 expand_copysign_bit): (Ditto.).
30268 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
30269 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
30270 * dojump.c (prefer_and_bit_test): (Ditto.).
30271 * expr.c (convert_modes, reduce_to_bit_field_precision,
30272 const_vector_from_tree): (Ditto.).
30273 * expmed.c (mask_rtx, lshift_value): (Ditto.).
30274
30275 2010-04-20 Jan Hubicka <jh@suse.cz>
30276
30277 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
30278 (dump_cgraph_node): Dump new flags.
30279 * cgraph.h (struct cgraph_node): Add flags
30280 reachable_from_other_partition and in_other_partition.
30281 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
30282 other partition can not be removed.
30283 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
30284 the other partition must be output; silence sanity checking on
30285 leaking functions bodies from other paritition.
30286 * lto-cgraph.c (reachable_from_other_partition_p): New function.
30287 (lto_output_node): Output new flags; do not sanity check that inline
30288 clones are output; drop lto_forced_extern_inline_p code; do not mock
30289 visibility flags at partition boundaries.
30290 (add_node_to): New function.
30291 (output_cgraph): Use it to sort functions so masters appear before
30292 clones.
30293 (input_overwrite_node): Input new flags.
30294 * passes.c (ipa_write_summaries): Do not call
30295 lto_new_extern_inline_states.
30296 * lto-section-out.c (forced_extern_inline,
30297 lto_new_extern_inline_states lto_delete_extern_inline_states,
30298 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
30299 * lto-streamer.h (lto_new_extern_inline_states,
30300 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
30301 lto_forced_extern_inline_p): Kill.
30302
30303 2010-04-20 Richard Guenther <rguenther@suse.de>
30304
30305 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
30306 from vars that can have pointers.
30307 (process_constraint): Dump useless constraints.
30308
30309 2010-04-20 Richard Guenther <rguenther@suse.de>
30310
30311 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
30312 (dump_sa_points_to_info): Remove asserts.
30313 (init_base_vars): nothing_id isn't an escape point nor does it
30314 have pointers.
30315
30316 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30317
30318 * tree.h (TYPE_REF_IS_RVALUE): Define.
30319 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
30320 should_move_die_to_comdat, prune_unused_types_walk): Handle
30321 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
30322 (modified_type_die, gen_reference_type_die): Emit
30323 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
30324 if TYPE_REF_IS_RVALUE and -gdwarf-4.
30325
30326 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30327
30328 PR target/43635
30329 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
30330 calls for -fpic -m31 if they have been sibcall optimized.
30331
30332 2010-04-19 James E. Wilson <wilson@codesourcery.com>
30333
30334 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
30335 ar.lc fixed and call-used.
30336
30337 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
30338
30339 2010-04-19 Jan Hubicka <jh@suse.cz>
30340
30341 * opts.c (decode_options): Disable whpr incompatible passes.
30342 * lto/lto.c (lto_1_to_1_map): Skip clones.
30343 (read_cgraph_and_symbols): Do not mark everything as needed.
30344 (do_whole_program_analysis): Do map only after optimizing;
30345 set proper cgraph_state; use passmanager.
30346
30347 2010-04-19 DJ Delorie <dj@redhat.com>
30348
30349 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
30350 POINTER_PLUS_EXPR and fix them.
30351
30352 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
30353
30354 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
30355 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
30356 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
30357 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
30358 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
30359 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
30360 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
30361 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
30362 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
30363 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
30364 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
30365
30366 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
30367
30368 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
30369 (check_cond_move_block): Likewise.
30370 (cond_move_process_if_block): Likewise.
30371 (noce_find_if_block): Improve formatting.
30372 (find_if_header): Pass 0 to memset and tweak conditions.
30373 (cond_exec_find_if_block): Fix long lines and tweak conditions.
30374
30375 2010-04-19 Jakub Jelinek <jakub@redhat.com>
30376
30377 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
30378 for -gdwarf-4.
30379
30380 PR middle-end/43337
30381 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
30382 with non-local decl doesn't need chain.
30383
30384 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
30385
30386 * ira-color.c (allocno_reload_assign): Avoid accumulating
30387 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
30388
30389 2010-04-19 Martin Jambor <mjambor@suse.cz>
30390
30391 * gimple.h (create_tmp_reg): Declare.
30392 * gimplify.c (create_tmp_reg): New function.
30393 (gimplify_return_expr): Use create_tmp_reg.
30394 (gimplify_omp_atomic): Likewise.
30395 (gimple_regimplify_operands): Likewise.
30396 * tree-dfa.c (make_rename_temp): Likewise.
30397 * tree-predcom.c (predcom_tmp_var): Likewise.
30398 (reassociate_to_the_same_stmt): Likewise.
30399 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
30400 (get_replaced_param_substitute): Likewise.
30401 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
30402 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
30403 * tree-ssa-pre.c (get_representative_for): Likewise.
30404 (create_expression_by_pieces): Likewise.
30405 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
30406 (create_tailcall_accumulator): Likewise.
30407
30408 2010-04-19 Martin Jambor <mjambor@suse.cz>
30409
30410 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
30411 new_stmt.
30412 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
30413
30414 2010-04-19 Richard Guenther <rguenther@suse.de>
30415
30416 PR tree-optimization/43796
30417 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
30418 from SCEV in the lattice.
30419 (vrp_visit_phi_node): Dump change.
30420
30421 2010-04-19 Richard Guenther <rguenther@suse.de>
30422
30423 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
30424 * configure: Re-generated.
30425
30426 2010-04-19 Richard Guenther <rguenther@suse.de>
30427
30428 PR tree-optimization/43783
30429 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
30430 constant ARRAY_REF operands two and three if possible.
30431
30432 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
30433
30434 PR target/43766
30435 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
30436
30437 2010-04-19 Jie Zhang <jie@codesourcery.com>
30438
30439 PR target/43662
30440 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
30441
30442 2010-04-19 Ira Rosen <irar@il.ibm.com>
30443
30444 PR tree-optimization/37027
30445 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
30446 and macro to access it.
30447 (vectorizable_reduction): Add argument.
30448 (vect_get_slp_defs): Likewise.
30449 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
30450 statements for possible use in SLP.
30451 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
30452 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
30453 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
30454 add new argument.
30455 (vectorizable_reduction): Likewise.
30456 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
30457 vect_get_slp_defs.
30458 (vectorizable_type_demotion, vectorizable_type_promotion,
30459 vectorizable_store): Likewise.
30460 (vect_analyze_stmt): Update call to vectorizable_reduction.
30461 (vect_transform_stmt): Likewise.
30462 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
30463 (vect_build_slp_tree): Fix indentation. Check that there are no loads
30464 from different interleaving chains in same node.
30465 (vect_slp_rearrange_stmts): New function.
30466 (vect_supported_load_permutation_p): Allow load permutations for
30467 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
30468 inside SLP nodes if necessary.
30469 (vect_analyze_slp_instance): Handle reductions.
30470 (vect_analyze_slp): Try to build SLP instances originating from groups
30471 of reductions.
30472 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
30473 (vect_get_constant_vectors): Create initial vectors for reductions
30474 according to reduction code. Add new argument.
30475 (vect_get_slp_defs): Add new argument, pass it to
30476 vect_get_constant_vectors.
30477 (vect_schedule_slp_instance): Remove SLP tree root statements.
30478
30479 2010-04-19 Jakub Jelinek <jakub@redhat.com>
30480
30481 * tree.h (ENUM_IS_SCOPED): Define.
30482 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
30483 for ENUM_IS_SCOPED enums.
30484
30485 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
30486
30487 * fold-const.c (fold_comparison): Use ssizetype.
30488 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
30489 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
30490 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
30491 * tree-object-size.c (compute_object_sizes): Use size_type_node.
30492
30493 * tree.h (initialize_sizetypes): Remove parameter.
30494 (build_common_tree_nodes): Remove second parameter.
30495 * stor-layout.c (initialize_sizetypes): Remove parameter.
30496 Always create an unsigned type.
30497 (set_sizetype): Assert that the passed type is unsigned and simplify.
30498 * tree.c (build_common_tree_nodes): Remove second parameter.
30499 Adjust call to initialize_sizetypes.
30500 * c-decl.c (c_init_decl_processing): Remove second argument in call to
30501 build_common_tree_nodes.
30502
30503 2010-04-18 Matthias Klose <doko@ubuntu.com>
30504
30505 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
30506
30507 2010-04-18 Ira Rosen <irar@il.ibm.com>
30508
30509 PR tree-optimization/43771
30510 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
30511 load permutation doesn't have gaps.
30512
30513 2010-04-18 Jan Hubicka <jh@suse.cz>
30514
30515 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
30516 (sse_prologue_save_insn expander): Use new pattern.
30517 (sse_prologue_save_insn1): New pattern and splitter.
30518 (sse_prologue_save_insn): Update to deal also with 64bit aligned
30519 blocks.
30520 * i386.c (setup_incoming_varargs_64): Do not compute jump
30521 destination here.
30522 (ix86_gimplify_va_arg): Update alignment needed.
30523 (ix86_local_alignment): Do not align all local arrays to 128bit.
30524
30525 2010-04-17 Jan Hubicka <jh@suse.cz>
30526
30527 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
30528
30529 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30530
30531 * arm.md (negdi2): Remove redundant code to force values into a
30532 register.
30533
30534 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30535
30536 * arm/bpabi.S: Add EABI alignment attributes to objects.
30537 * arm/bpabi-v6m.S: Likewise.
30538 * arm/crti.asm: Likewise.
30539 * arm/crtn.asm: Likewise.
30540 * arm/lib1funcs.asm: Likewise.
30541 * arm/libunwind.S: Likewise.
30542
30543 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
30544
30545 * arm-protos.h (tune_params): New structure.
30546 * arm.c (current_tune): New variable.
30547 (arm_constant_limit): Delete.
30548 (struct processors): Add pointer to the tune parameters.
30549 (arm_slowmul_tune): New tuning option.
30550 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
30551 (all_cores): Adjust to pick up the tuning model.
30552 (arm_constant_limit): New function.
30553 (arm_override_options): Select the appropriate tuning model. Delete
30554 initialization of arm_const_limit.
30555 (arm_split_constant): Use the new constant-limit model.
30556 (arm_rtx_costs): Pick up the current tuning model.
30557 * arm.md (is_strongarm, is_xscale): Delete.
30558 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
30559 for Xscale variant architectures.
30560 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
30561
30562 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30563
30564 * config/arm/arm.c (arm_gen_constant): Remove unused variable
30565 can_shift.
30566 (arm_rtx_costs_1): Remove unused variable extra_cost.
30567 (arm_unwind_emit_set): Use variable offset.
30568 (thumb1_output_casesi): Remove unused variable flags.
30569
30570 2010-04-16 Jeff Law <law@redhat.com>
30571
30572 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
30573 needing assignment rather than doing a two-phase assignment. Remove
30574 unused variable 'm'.
30575
30576 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30577
30578 PR bootstrap/43767
30579 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
30580
30581 2010-04-16 Doug Kwan <dougkwan@google.com>
30582
30583 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
30584 (next_operand_entry_id): New static variable.
30585 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
30586 (add_to_ops_vec): Assigned unique ID to operand entry.
30587 (struct oecount_s): New field ID.
30588 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
30589 (undistribute_ops_list): Assign unique IDs to oecounts.
30590 (init_reassoc): reset next_operand_entry_id.
30591
30592 2010-04-16 Doug Kwan <dougkwan@google.com>
30593
30594 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
30595 missing left parenthesis.
30596
30597 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
30598
30599 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
30600 *btdi_rex64 using SWI48 mode iterator.
30601 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
30602 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
30603 *jcc_btdi_mask_rex64.
30604
30605 2010-04-16 Anatoly Sokolov <aesok@post.ru>
30606
30607 * double-int.h (tree_to_double_int): Convert to macro.
30608 * double-int.c (tree_to_double_int): Remove.
30609
30610 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30611
30612 PR debug/43762
30613 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
30614 with want_address 2 and in case a single element list might be
30615 possible, call it again with want_address 0.
30616
30617 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30618
30619 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
30620 case 'W' print operands for HI mode.
30621 * config/h8300/h8300.h (Y0, Y2) : New constraints.
30622 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
30623 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
30624 * config/h8300/predicate.md (bit_register_indirect_operand): New.
30625
30626 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
30627
30628 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
30629 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
30630 #xx:3 and #xx:4 mode.
30631
30632 * config/h8300/h8300.md (inverted load with HImode dest): Add
30633 support for H8300SX.
30634
30635 * config/h8300/predicate.md (bit_operand): Allow immediate values that
30636 satisfy 'U' constraint.
30637
30638 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30639
30640 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
30641 * configure: Regenerate.
30642 * config.in: Regenerate.
30643 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
30644 works.
30645
30646 2010-04-16 Richard Guenther <rguenther@suse.de>
30647
30648 * tree.h (struct tree_decl_minimal): Move pt_uid ...
30649 (struct tree_decl_common): ... here.
30650 (DECL_PT_UID): Adjust.
30651 (SET_DECL_PT_UID): Likewise.
30652 (DECL_PT_UID_SET_P): Likewise.
30653
30654 2010-04-16 Richard Guenther <rguenther@suse.de>
30655
30656 PR tree-optimization/43572
30657 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
30658 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
30659 * tree-flow.h (is_call_clobbered): Remove.
30660 * tree-flow-inline.h (is_call_clobbered): Likewise.
30661 * tree-dfa.c (dump_variable): Do not dump call clobber state.
30662 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
30663 (execute_return_slot_opt): Adjust.
30664 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
30665 check for call clobbered vars here.
30666 (find_tail_calls): Move tailcall verification to the
30667 proper place.
30668
30669 2010-04-16 Diego Novillo <dnovillo@google.com>
30670
30671 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
30672
30673 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
30674
30675 PR target/40603
30676 * config/arm/arm.md (cbranchqi4): New pattern.
30677 * config/arm/predicates.md (const0_operand,
30678 cbranchqi4_comparison_operator): New predicates.
30679
30680 2010-04-16 Richard Guenther <rguenther@suse.de>
30681
30682 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
30683 (dump_gimple_stmt): Likewise.
30684
30685 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
30686
30687 * recog.h (struct recog_data): New field is_operator.
30688 (struct insn_operand_data): New field is_operator.
30689 * recog.c (extract_insn): Set recog_data.is_operator.
30690 * genoutput.c (output_operand_data): Emit code to set the
30691 is_operator field.
30692 * reload.c (find_reloads): Use it rather than testing for an
30693 empty constraint string.
30694
30695 PR target/41514
30696 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
30697 If the previous insn is a cbranchsi4_insn with the same arguments,
30698 omit the compare instruction.
30699
30700 * config/arm/arm.md (addsi3_cbranch): If destination is a high
30701 register, inputs must be low registers and we need a low register
30702 scratch. Handle alternative 2 like alternative 3.
30703
30704 2010-04-16 Jakub Jelinek <jakub@redhat.com>
30705
30706 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
30707 don't call get_addr on both. If one expression is a VALUE and
30708 the other a REG, check VALUE's locs if the REG isn't among them.
30709
30710 2010-04-16 Christian Bruel <christian.bruel@st.com>
30711
30712 * config/sh/sh.h (sh_frame_pointer_required): New function.
30713 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
30714 (flag_omit_frame_pointer) Set.
30715 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
30716 (rounded_frame_size): Adjust size with outgoing_args_size.
30717 (sh_set_return_address): Must return from stack pointer.
30718 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
30719 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
30720 (ACCUMULATE_OUTGOING_ARGS): Define.
30721 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
30722 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
30723
30724 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
30725
30726 PR target/43471
30727 * config/sh/sh.c (sh_legitimize_reload_address): Use
30728 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
30729 Remove a unneeded check for offset_base.
30730
30731 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
30732
30733 * configure: Regenerated.
30734
30735 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30736
30737 * config/s390/s390.c (s390_call_save_register_used): Switch back
30738 to HARD_REGNO_NREGS.
30739
30740 2010-04-15 Richard Guenther <rguenther@suse.de>
30741
30742 * alias.c (alias_set_subset_of): Handle alias-set zero
30743 child properly.
30744
30745 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
30746 Julian Brown <julian@codesourcery.com>
30747
30748 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
30749 alternatives according to use of high and low regs.
30750 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
30751 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
30752 optimizing for size on Thumb-2.
30753
30754 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
30755
30756 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
30757
30758 2010-04-15 Richard Guenther <rguenther@suse.de>
30759
30760 * tree-ssa-structalias.c (struct variable_info): Add
30761 is_fn_info flag.
30762 (new_var_info): Initialize it.
30763 (dump_constraints): Support printing last added constraints.
30764 (debug_constraints): Adjust.
30765 (dump_constraint_graph): Likewise.
30766 (make_heapvar_for): Check for NULL cfun.
30767 (get_function_part_constraint): New function.
30768 (get_fi_for_callee): Likewise.
30769 (find_func_aliases): Properly implement IPA PTA constraints.
30770 (process_ipa_clobber): New function.
30771 (find_func_clobbers): Likewise.
30772 (insert_into_field_list_sorted): Remove.
30773 (create_function_info_for): Properly allocate vars for IPA mode.
30774 Do not use insert_into_field_list_sorted.
30775 (create_variable_info_for): Properly generate constraints for
30776 global vars in IPA mode.
30777 (dump_solution_for_var): Always dump the solution.
30778 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
30779 (find_what_var_points_to): Adjust.
30780 (pt_solution_set): Change.
30781 (pt_solution_ior_into): New function.
30782 (pt_solution_empty_p): Export.
30783 (pt_solution_includes_global): Adjust.
30784 (pt_solution_includes_1): Likewise.
30785 (pt_solutions_intersect_1): Likewise.
30786 (dump_sa_points_to_info): Check some invariants.
30787 (solve_constraints): Move constraint dumping ...
30788 (compute_points_to_sets): ... here.
30789 (ipa_pta_execute): ... and here.
30790 (compute_may_aliases): Do not re-compute points-to info
30791 locally if IPA info is available.
30792 (ipa_escaped_pt): New global var.
30793 (ipa_pta_execute): Properly implement IPA PTA.
30794 * tree-into-ssa.c (dump_decl_set): Support dumping
30795 decls not in referenced-vars.
30796 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
30797 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
30798 (dump_points_to_solution): Likewise.
30799 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
30800 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
30801 (remap_gimple_stmt): Reset call clobber/use information if necessary.
30802 (copy_decl_to_var): Copy DECL_PT_UID.
30803 (copy_result_decl_to_var): Likewise.
30804 * tree.c (make_node_stat): Initialize DECL_PT_UID.
30805 (copy_node_stat): Copy it.
30806 * tree.h (DECL_PT_UID): New macro.
30807 (SET_DECL_PT_UID): Likewise.
30808 (DECL_PT_UID_SET_P): Likewise.
30809 (struct tree_decl_minimal): Add pt_uid member.
30810 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
30811 (pt_solution_empty_p): Declare.
30812 (pt_solution_set): Adjust.
30813 (ipa_escaped_pt): Declare.
30814 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
30815 * gimple-pretty-print.c (pp_points_to_solution): New function.
30816 (dump_gimple_call): Dump call clobber/use information.
30817 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
30818 * tree-pass.h (TDF_ALIAS): New dump option.
30819 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
30820 * doc/invoke.texi (-fipa-pta): Update documentation.
30821
30822 2010-04-15 Richard Guenther <rguenther@suse.de>
30823
30824 * Makefile.in (OBJS-common): Add gimple-fold.o.
30825 (gimple-fold.o): New rule.
30826 * tree.h (maybe_fold_offset_to_reference,
30827 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
30828 prototypes ...
30829 * gimple.h: ... here.
30830 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
30831 may_propagate_address_into_dereference): Move prototypes ...
30832 * gimple.h: ... here.
30833 * tree-ssa-ccp.c (get_symbol_constant_value,
30834 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
30835 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
30836 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
30837 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
30838 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
30839 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
30840 gimplify_and_update_call_from_tree): Move ...
30841 * gimple-fold.c: ... here. New file.
30842 (ccp_fold_builtin): Rename to ...
30843 (gimple_fold_builtin): ... this.
30844 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
30845
30846 2010-04-15 Richard Guenther <rguenther@suse.de>
30847
30848 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
30849 fit_double_type, force_fit_type_double, add_double_with_sign,
30850 neg_double, mul_double_with_sign, lshift_double, rshift_double,
30851 lrotate_double, rrotate_double, div_and_round_double): Move ...
30852 * double-int.c: ... here.
30853 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
30854 add_double, neg_double, mul_double_with_sign, mul_double,
30855 lshift_double, rshift_double, lrotate_double, rrotate_double,
30856 div_and_round_double): Move prototypes ...
30857 * double-int.h: ... here.
30858
30859 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
30860
30861 PR target/43742
30862 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
30863 matching constraints to ensure inputs match the output.
30864
30865 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
30866
30867 PR target/43742
30868 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
30869 in an input-only operand.
30870
30871 2010-04-15 Anatoly Sokolov <aesok@post.ru>
30872
30873 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
30874 (double_int_not, double_int_lshift, double_int_rshift): Declare.
30875 (double_int_negative_p): Convert to static inline function.
30876 * double-int.c (double_int_lshift, double_int_lshift): New functions.
30877 (double_int_negative_p): Remove.
30878 * tree.h (lshift_double, rshift_double):
30879 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
30880 * fold-const.c (fold_convert_const_int_from_real,
30881 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
30882 (lshift_double): Change type of arith argument to bool.
30883 (rshift_double): Change type of arith argument to bool. Correct
30884 comment.
30885 * expmed.c (mask_rtx, lshift_value): (Ditto.).
30886
30887 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
30888
30889 PR target/21803
30890 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
30891 at the start and end of the then/else blocks, and omit them from the
30892 conversion.
30893 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
30894 argument; all callers changed. Pass zero to old_insns_match_p instead.
30895 (flow_find_head_matching_sequence): New function.
30896 (old_insns_match_p): Check REG_EH_REGION notes for calls.
30897 * basic-block.h (flow_find_cross_jump,
30898 flow_find_head_matching_sequence): Declare functions.
30899
30900 2010-04-14 Jason Merrill <jason@redhat.com>
30901
30902 PR c++/36625
30903 * c-common.c (attribute_takes_identifier_p): New fn.
30904 * c-common.h: Declare it.
30905
30906 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30907
30908 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
30909 splitter condition.
30910 (*udivmod<mode>4): Ditto.
30911
30912 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30913
30914 * config/i386/i386.md (maxmin_int): Rename code attribute from
30915 maxminiprefix and update all users.
30916 (maxmin_float): Ditto from maxminfprefix.
30917 (logic): Ditto from logicprefix.
30918 (absneg_mnemonic): Ditto from absnegprefix.
30919 * config/i386/mmx.md: Update all users of maxminiprefix,
30920 maxminfprefix and logicprefix for rename.
30921 * config/i386/sse.md: Ditto.
30922 * config/i386/sync.md (sync_<code><mode>): Update for
30923 logicprefix rename.
30924
30925 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
30926
30927 PR 42966
30928 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
30929 warnings converted to errors.
30930
30931 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30932
30933 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
30934 used insn_type variable.
30935 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
30936 to avoid set-but-not-used warning.
30937
30938 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30939
30940 * df-core.c (df_ref_debug): Change format string placeholder
30941 from 0x%x to %#x.
30942 * dwarf2asm.c (dw2_asm_output_data_raw,
30943 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
30944 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
30945 * dwarf2out.c (output_cfi, output_cfi_directive,
30946 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
30947 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
30948 Ditto.
30949 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
30950 * print-rtl.c (print_rtx): Ditto.
30951
30952 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30953
30954 PR middle-end/42694
30955 * builtins.c (expand_builtin_pow_root): New function to expand pow
30956 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
30957 series of sqrt and cbrt calls under -ffast-math.
30958 (expand_builtin_pow): Call it.
30959
30960 2010-04-14 Michael Matz <matz@suse.de>
30961
30962 PR tree-optimization/42963
30963 * tree-cfg.c (touched_switch_bbs): New static variable.
30964 (group_case_labels_stmt): New function broken out from ...
30965 (group_case_labels): ... here, use the above.
30966 (start_recording_case_labels): Allocate touched_switch_bbs.
30967 (end_recording_case_labels): Deallocate it, call
30968 group_case_labels_stmt.
30969 (gimple_redirect_edge_and_branch): Remember index of affected BB.
30970
30971 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30972
30973 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
30974 from insn template.
30975
30976 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30977
30978 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
30979
30980 2010-04-13 Jan Hubicka <jh@suse.cz>
30981
30982 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
30983 of optimized out static functions.
30984 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
30985 cost computation. Also sanity check for overflows.
30986 (update_caller_keys): Update cgraph_edge_badness call; properly
30987 update fibheap and sanity check that it is up to date.
30988 (add_new_edges_to_heap): Update cgraph_edge_badness.
30989 (cgraph_decide_inlining_of_small_function): Likewise;
30990 add sanity checking that badness in heap is up to date;
30991 improve dumping of reason; Update badness of calls to the
30992 offline copy of function currently inlined; dump badness
30993 of functions not inlined because of unit growth limits.
30994
30995 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
30996
30997 PR middle-end/32628
30998 * c-common.c (pointer_int_sum): Disregard overflow that occured only
30999 because of sign-extension change when converting to sizetype here...
31000 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
31001
31002 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
31003 the folding to constants. Remove redundant final conversion.
31004 (fold_binary) <associate>: Do not associate if the re-association of
31005 constants alone overflows.
31006 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
31007 to the end of the list.
31008 (multiple_of_p) <COND_EXPR>: New case.
31009
31010 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
31011
31012 * opt-functions.awk (opt_sanitized_name): New.
31013 (opt_enum): New.
31014 * optc-gen.awk: Use it
31015 * opth-gen.awk: Use it.
31016
31017 2010-04-13 Martin Jambor <mjambor@suse.cz>
31018
31019 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
31020 (sra_modify_assign): Delete stmts loading dead data even if racc has no
31021 children. Call replace_uses_with_default_def_ssa_name to handle
31022 SSA_NAES on lhs.
31023
31024 2010-04-13 Michael Matz <matz@suse.de>
31025
31026 PR middle-end/43730
31027 * builtins.c (expand_builtin_interclass_mathfn): Also create
31028 a register if the predicate doesn't match.
31029
31030 2010-04-13 Diego Novillo <dnovillo@google.com>
31031
31032 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
31033 * c-pch.c: Include timevar.h.
31034 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
31035 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
31036 * ggc-common.c: Include timevar.h.
31037 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
31038 * timevar.def (TV_PCH_SAVE): Define.
31039 (TV_PCH_CPP_SAVE): Define.
31040 (TV_PCH_PTR_REALLOC): Define.
31041 (TV_PCH_PTR_SORT): Define.
31042 (TV_PCH_RESTORE): Define.
31043 (TV_PCH_CPP_RESTORE): Define.
31044
31045 2010-04-13 Michael Matz <matz@suse.de>
31046
31047 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
31048 into MINUS_EXPRs.
31049 (can_reassociate_p): New function.
31050 (break_up_subtract_bb, reassociate_bb): Use it.
31051
31052 2010-04-13 Richard Guenther <rguenther@suse.de>
31053
31054 PR bootstrap/43737
31055 * builtins.c (c_readstr): Fix assert.
31056
31057 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
31058
31059 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
31060 when generating cltd insn.
31061
31062 (*ashl<mode>3_1): Remove special handling for register operand 2.
31063 (*ashlsi3_1_zext): Ditto.
31064 (*ashlhi3_1): Ditto.
31065 (*ashlhi3_1_lea): Ditto.
31066 (*ashlqi3_1): Ditto.
31067 (*ashlqi3_1_lea): Ditto.
31068 (*<shiftrt_insn><mode>3_1): Ditto.
31069 (*<shiftrt_insn>si3_1_zext): Ditto.
31070 (*<shiftrt_insn>qi3_1_slp): Ditto.
31071 (*<rotate_insn><mode>3_1): Ditto.
31072 (*<rotate_insn>si3_1_zext): Ditto.
31073 (*<rotate_insn>qi3_1_slp): Ditto.
31074
31075 2010-04-13 Richard Guenther <rguenther@suse.de>
31076
31077 * tree-ssa-structalias.c (callused_id): Remove.
31078 (call_stmt_vars): New.
31079 (get_call_vi): Likewise.
31080 (lookup_call_use_vi): Likewise.
31081 (lookup_call_clobber_vi): Likewise.
31082 (get_call_use_vi): Likewise.
31083 (get_call_clobber_vi): Likewise.
31084 (make_transitive_closure_constraints): Likewise.
31085 (handle_const_call): Adjust to do per-call call-used handling.
31086 (handle_pure_call): Likewise.
31087 (find_what_var_points_to): Remove general callused handling.
31088 (init_base_vars): Likewise.
31089 (init_alias_vars): Initialize call_stmt_vars.
31090 (compute_points_to_sets): Process call-used and call-clobbered
31091 vars for call statements.
31092 (delete_points_to_sets): Free call_stmt_vars.
31093
31094 2010-04-13 Richard Guenther <rguenther@suse.de>
31095
31096 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31097 Only add RW dependence for dependence distance zero.
31098 Adjust maximal vectorization factor according to dependences.
31099 Move alignment handling ...
31100 (vect_find_same_alignment_drs): ... here. New function.
31101 (vect_analyze_data_ref_dependences): Adjust.
31102 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
31103 (vect_analyze_data_refs): Adjust minimal vectorization factor
31104 according to data references.
31105 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
31106 dependences before determining the vectorization factor.
31107 Analyze alignment after determining the vectorization factor.
31108 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
31109 dependences before alignment.
31110 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
31111 Adjust prototype.
31112 (vect_analyze_data_refs): Likewise.
31113 (MAX_VECTORIZATION_FACTOR): New define.
31114
31115 2010-04-13 Duncan Sands <baldrick@free.fr>
31116
31117 * except.h (lang_eh_type_covers): Remove.
31118 * except.c (lang_eh_type_covers): Likewise.
31119
31120 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31121 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31122
31123 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
31124 * config/s390/s390.c: Replace UNTIS_PER_WORD with
31125 UNITS_PER_LONG where it is ABI relevant.
31126 (s390_return_addr_rtx): Likewise.
31127 (s390_back_chain_rtx): Likewise.
31128 (s390_frame_area): Likewise.
31129 (s390_frame_info): Likewise.
31130 (s390_initial_elimination_offset): Likewise.
31131 (save_gprs): Likewise.
31132 (s390_emit_prologue): Likewise.
31133 (s390_emit_epilogue): Likewise.
31134 (s390_function_arg_advance): Likewise.
31135 (s390_function_arg): Likewise.
31136 (s390_va_start): Likewise.
31137 (s390_gimplify_va_arg): Likewise.
31138 (s390_function_profiler): Likewise.
31139 (s390_optimize_prologue): Likewise.
31140 (s390_rtx_costs): Likewise.
31141 (s390_secondary_reload): Likewise.
31142 (s390_promote_function_mode): Likewise.
31143 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
31144 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
31145 registers available.
31146 (s390_unwind_word_mode): New function.
31147 (s390_function_value): Split 64 bit values into register pair if
31148 used as return value.
31149 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
31150 function call parameters. Handle parallels.
31151 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
31152 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
31153 (DWARF_CIE_DATA_ALIGNMENT): New macro.
31154 (s390_expand_setmem): Remove unused variable src_addr.
31155 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
31156 deal with 64 bit registers.
31157 * config/s390/s390.h: Define __zarch__ predefined macro.
31158 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
31159 (UNITS_PER_LONG): New macro.
31160 * libjava/include/s390-signal.h: Define extended ucontext
31161 structure containing the upper halfs of the 64 bit registers.
31162
31163 2010-04-13 Simon Baldwin <simonb@google.com>
31164
31165 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
31166
31167 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
31168
31169 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
31170 rvalue on the RHS if the LHS is of a non-renamable type.
31171 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
31172
31173 2010-04-13 Matthias Klose <doko@ubuntu.com>
31174
31175 * gcc.c (cc1_options): Handle -iplugindir before processing
31176 the cc1 spec. Only add -iplugindir once.
31177 (cpp_unique_options): Add -iplugindir option if -fplugin* options
31178 found.
31179 * common.opt (iplugindir): Remove `Separate' property, initialize.
31180 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
31181 option.
31182 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
31183 (distclean): Remove plugin dir.
31184 * doc/invoke.texi: Document -iplugindir.
31185
31186 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
31187
31188 * doc/plugins.texi (Loading Plugins): Document short
31189 -fplugin=foo option.
31190 (Plugin API): Mention default_plugin_dir_name function.
31191
31192 * gcc.c (find_file_spec_function): Add new declaration.
31193 (static_spec_func): Use it for "find-file".
31194 (find_file_spec_function): Add new function.
31195 (cc1_options): Add -iplugindir option if -fplugin* options found.
31196
31197 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
31198
31199 * plugin.c (add_new_plugin): Updated comment, and handle short
31200 plugin name.
31201 (default_plugin_dir_name): Added new function.
31202
31203 * common.opt (iplugindir): New option to set the plugin directory.
31204
31205 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
31206
31207 * config/i386/i386.md (any_rotate): New code iterator.
31208 (rotate_insn): New code attribute.
31209 (rotate): Ditto.
31210 (SWIM124): New mode iterator.
31211 (<rotate_insn>ti3): New expander.
31212 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
31213 any_rotate code iterator.
31214 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
31215 using any_rotate code iterator and SWIM124 mode iterator.
31216 (ix86_rotlti3): New insn_and_split pattern.
31217 (ix86_rotrti3): Ditto.
31218 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
31219 ix86_rotl{di,ti}3 patterns.
31220 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
31221 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
31222 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
31223 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
31224 code iterator and SWI mode iterator.
31225 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
31226 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
31227 code iterator.
31228 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
31229 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
31230 (bswap rotatert splitter): Add splitter.
31231 (bswap splitter): Macroize splitter using any_rotate code iterator.
31232 Add insn predicate to split only for TARGET_USE_XCHGB or when
31233 optimizing function for size.
31234
31235 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31236
31237 * config/pa/pa.c (emit_move_sequence): Remove use of
31238 deleted variable flag_argument_noalias.
31239
31240 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31241
31242 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
31243 configurations.
31244 Add to unsupported targets list.
31245 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
31246 sparc*-sun-solaris2.[567]* from target lists.
31247 * configure: Regenerate.
31248 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
31249 removal.
31250 Remove Solaris 7 patch references.
31251 (Specific, sparc-sun-solaris2.7): Removed.
31252 (sparc-sun-solaris2*): Update Solaris 7 example.
31253 (sparc64-*-solaris2*): Likewise.
31254
31255 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31256
31257 * config.build (alpha*-dec-osf4*): Remove.
31258 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
31259 of obsolete configurations.
31260 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
31261 support.
31262 * config/alpha/t-osf4: Renamed to ...
31263 * config/alpha/t-osf5: ... this.
31264 * config/alpha/osf.h: Renamed to ...
31265 * config/alpha/osf5.h: ... this.
31266 Merged old osf5.h contents.
31267 Update comments.
31268 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
31269 (EXTRA_SPECS): Removed.
31270 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
31271 reflect removal of Tru64 UNIX V4.0/V5.0 support.
31272 Document that.
31273
31274 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31275
31276 * doc/contrib.texi (Contributors, Rainer Orth): Update.
31277
31278 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
31279
31280 PR/43702
31281 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
31282 __thiscall convention.
31283
31284 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31285
31286 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
31287 orig_base.
31288 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
31289
31290 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31291
31292 * function.c (assign_parms_initialize_all): Add unused attribute
31293 to fntype.
31294
31295 2010-04-12 Richard Guenther <rguenther@suse.de>
31296
31297 * gsstruct.def (GSS_CALL): New.
31298 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
31299 * gimple.h: Include tree-ssa-alias.h.
31300 (struct gimple_statement_call): New.
31301 (union gimple_statement_struct_d): Add gimple_call member.
31302 (gimple_call_reset_alias_info): Declare.
31303 (gimple_call_use_set): New function.
31304 (gimple_call_clobber_set): Likewise.
31305 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
31306 * gimple.c (gimple_call_reset_alias_info): New function.
31307 (gimple_build_call_1): Call it.
31308 * lto-streamer-in.c (input_gimple_stmt): Likewise.
31309 * tree-inline.c (remap_gimple_stmt): Likewise.
31310 (expand_call_inline): Remove callused handling.
31311 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
31312 * tree-dfa.c (dump_variable): Likewise.
31313 * tree-parloops.c (parallelize_loops): Likewise.
31314 * tree-ssa.c (init_tree_ssa): Likewise.
31315 (delete_tree_ssa): Likewise.
31316 * tree-flow-inline.h (is_call_used): Remove.
31317 * tree-flow.h (struct gimple_df): Remove callused member.
31318 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
31319 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
31320 (ref_maybe_used_by_call_p_1): Simplify.
31321 (call_may_clobber_ref_p_1): Likewise.
31322 * tree-ssa-structalias.c (compute_points_to_sets): Set
31323 the call stmt used and clobbered sets.
31324 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
31325 (find_tail_calls): Verify the tail call.
31326
31327 2010-04-12 Richard Guenther <rguenther@suse.de>
31328
31329 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
31330 single-iteration always-inline inlining.
31331 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
31332 (cgraph_decide_inlining): Do not handle always-inline specially.
31333 (try_inline): Remove always-inline cycle detection special case.
31334 Do not recurse on always-inlines.
31335 (cgraph_early_inlining): Do not iterate if not optimizing.
31336 (cgraph_gate_early_inlining): remove.
31337 (pass_early_inline): Run unconditionally.
31338 (gate_cgraph_decide_inlining): New function.
31339 (pass_ipa_inline): Use it. Do not run the IPA inliner if
31340 not inlining or optimizing.
31341 (cgraph_decide_inlining_of_small_functions): Also consider
31342 always-inline functions.
31343 (cgraph_default_inline_p): Return true for nodes which should
31344 disregard inline limits.
31345 (estimate_function_body_sizes): Assume zero size and time for
31346 nodes which are marked as disregarding inline limits.
31347 (cgraph_decide_recursive_inlining): Do not perform recursive
31348 inlining on always-inline nodes.
31349
31350 2010-04-12 Jakub Jelinek <jakub@redhat.com>
31351
31352 PR bootstrap/43699
31353 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
31354 for exprs satisfying handled_component_p.
31355
31356 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
31357
31358 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
31359 non-constant aggregate elements.
31360
31361 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
31362 is a real initialization.
31363
31364 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
31365
31366 PR c/36774
31367 * c-decl.c (start_function): Move forward check for nested function.
31368
31369 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
31370
31371 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
31372 * config/sh/sh.c: Include reload.h.
31373 (sh_legitimize_reload_address): New.
31374 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
31375 sh_legitimize_reload_address.
31376
31377 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31378
31379 * config/sh/sh.md (*movqi_pop): New insn pattern.
31380 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
31381
31382 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31383
31384 * config/i386/i386.md (any_shiftrt): New code iterator.
31385 (shiftrt_insn): New code attribute.
31386 (shiftrt): Ditto.
31387 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
31388 using any_shiftrt code iterator.
31389 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
31390 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
31391 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
31392 pattern from corresponding peephole2 patterns.
31393 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
31394 using any_shiftrt code iterator.
31395 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
31396 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
31397 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
31398 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
31399 *{ashr,lshr}<mode>3_cmp_zext.
31400 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
31401
31402 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31403
31404 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
31405 scratch register.
31406 (*lshr<mode>3_cconly): Ditto.
31407
31408 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
31409
31410 * config/i386/i386.md (lshr<mode>3): Macroize expander from
31411 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31412 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
31413 pattern from *lshr{di,ti}3_1 and corresponding splitters using
31414 DWI mode iterator.
31415 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31416 from corresponding peephole2 patterns.
31417 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
31418 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
31419 and *lshrdi3_1_rex64 using SWI mode iterator.
31420 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
31421 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
31422 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
31423 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
31424 and *lshrdi3_cmp_rex64 using SWI mode iterator.
31425 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
31426 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
31427 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
31428 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
31429 SWI mode iterator.
31430
31431 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
31432
31433 * config/i386/i386.md (ashr<mode>3): Macroize expander from
31434 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
31435 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
31436 pattern from *ashr{di,ti}3_1 and corresponding splitters using
31437 DWI mode iterator.
31438 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
31439 from corresponding peephole2 patterns.
31440 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
31441 (ashrsi3_cvt): Rename from ashrsi3_31.
31442 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
31443 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
31444 and x86_64_shift_adj_3 using SWI48 mode iterator.
31445 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
31446 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
31447 and *ashrdi3_1_rex64 using SWI mode iterator.
31448 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
31449 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
31450 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
31451 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
31452 and *ashrdi3_cmp_rex64 using SWI mode iterator.
31453 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
31454 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
31455 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
31456 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
31457 SWI mode iterator.
31458 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
31459 * config/i386/i386.c (ix86_split_ashr): Update for renamed
31460 x86_shift<mode>_adj_3 expanders.
31461
31462 2010-04-10 Wei Guozhi <carrot@google.com>
31463
31464 PR target/42601
31465 * config/arm/arm.c (arm_pic_static_addr): New function.
31466 (legitimize_pic_address): Call arm_pic_static_addr when it detects
31467 a static symbol.
31468 (arm_output_addr_const_extra): Output expression for new pattern.
31469 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
31470
31471 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
31472
31473 * ira-costs.c (record_reg_classes): Ignore alternatives that are
31474 not enabled.
31475
31476 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
31477 * web.c: Include "insn-config.h" and "recog.h".
31478 (union_match_dups): New function.
31479 (web_main): Call it.
31480 (union_defs): Don't try to recognize match_dups.
31481
31482 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
31483 if doing so would replace the entire pattern.
31484
31485 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
31486
31487 PR target/43707
31488 PR target/43709
31489 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
31490 and splitter pattern. Change splitter operand 1 predicate to
31491 nonmemory_operand.
31492
31493 2010-04-09 Martin Jambor <mjambor@suse.cz>
31494
31495 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
31496 lattices are addresses of CONST_DECLs with the same initial value.
31497 (ipcp_print_all_lattices): Print values of CONST_DECLs.
31498 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
31499
31500 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
31501 Bernd Schmidt <bernds@codesourcery.com>
31502
31503 * loop-invariant.c (replace_uses): New static function.
31504 (move_invariant_reg): Use it to ensure we can replace the uses.
31505
31506 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
31507
31508 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
31509 function template.
31510 (picochip_override_options): Enable section anchors only above -O1.
31511 (picochip_reorg): Fixed a couple of build warnings.
31512
31513 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31514
31515 * configure.ac (plugin -rdynamic test): Log result.
31516 * configure: Regenerate.
31517 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
31518 (RDYNAMIC_SPEC): Define.
31519 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
31520
31521 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31522
31523 * configure.ac: Determine Sun ld version numbers.
31524 (comdat_group): Restrict GNU ld version checks to gld.
31525 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
31526 (enable_comdat): Support --enable-comdat.
31527 * configure: Regenerate.
31528 * doc/install.texi (Configuration): Document --enable-comdat.
31529
31530 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31531
31532 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
31533 * config/sol2-gld.h: ... here.
31534 * config.gcc (sparc*-*-solaris2*): Reflect this.
31535 (i[34567]86-*-solaris2*): Use it.
31536
31537 2010-04-09 Steve Ellcey <sje@cup.hp.com>
31538
31539 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
31540 setup_clocks_p.
31541 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
31542
31543 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
31544
31545 PR 42965
31546 * diagnostic.c (diagnostic_initialize): Initialize
31547 some_warnings_are_errors.
31548 (diagnostic_finish): New.
31549 (diagnostic_action_after_output): Call it before exiting.
31550 (diagnostic_report_diagnostic): Do not print message here. Set
31551 some_warnings_are_errors.
31552 * diagnostic.h (diagnostic_context): Delete
31553 issue_warnings_are_errors_message. Add some_warnings_are_errors.
31554 (diagnostic_finish): Declare.
31555 * toplev.c (toplev_main): Call it before exit.
31556
31557 2010-04-09 Jason Merrill <jason@redhat.com>
31558
31559 PR c++/42623
31560 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
31561 for incomplete type.
31562
31563 PR c++/41788
31564 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
31565 based on a warning flag.
31566
31567 2010-04-09 Richard Guenther <rguenther@suse.de>
31568
31569 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
31570
31571 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
31572
31573 PR bootstrap/43684
31574 * varasm.c (default_assemble_visibility): Wrap vars that are
31575 set, but unused, by targets without GAS.
31576 * config/rs6000/rs6000.c (paired_emit_vector_compare):
31577 Remove set, but unused, vars.
31578 (rs6000_legitimize_tls_address): Likewise.
31579 (altivec_expand_dst_builtin): Likewise.
31580 * config/darwin.c (machopic_classify_symbol): Likewise.
31581 (machopic_indirection_name): Likewise.
31582
31583 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
31584
31585 * config/i386/i386.md (DWI): New mode iterator.
31586 (S): New mode attribute.
31587 (shift_operand): Ditto.
31588 (shift_immediate_operand): Ditto.
31589 (ashl_input_operand): Ditto.
31590 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
31591 using SDWIM mode iterator.
31592 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
31593 pattern from *ashl{di,ti}3_1 and corresponding splitters using
31594 DWI mode iterator.
31595 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
31596 from corresponding peephole2 patterns.
31597 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
31598 and x86_64_shift_adj_1 using SWI48 mode iterator.
31599 (x86_shift<mode>_adj_2): Ditto.
31600 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
31601 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
31602 using SWI48 mode iterator.
31603 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
31604 *ashldi3_cmp_rex64 using SWI mode iterator.
31605 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
31606 *ashldi3_cconly_rex64 using SWI mode iterator.
31607 * config/i386/i386.c (ix86_split_ashl): Update for renamed
31608 x86_shift<mode>_adj_{1,2}.
31609 (ix86_split_ashr): Ditto.
31610 (ix86_split_lshr): Ditto.
31611
31612 2010-04-09 Richard Guenther <rguenther@suse.de>
31613
31614 * target.h (builtin_conversion): Pass in input and output types.
31615 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
31616 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
31617 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
31618 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
31619
31620 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
31621 Handle AVX modes.
31622 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
31623
31624 2010-04-09 Richard Guenther <rguenther@suse.de>
31625
31626 PR target/43152
31627 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
31628
31629 2010-04-09 Richard Guenther <rguenther@suse.de>
31630
31631 * tree-vectorizer.h (struct _stmt_vec_info): Document
31632 that vectype is the type of the LHS.
31633 (supportable_widening_operation, supportable_narrowing_operation):
31634 Get both input and output vector types as arguments.
31635 (vect_is_simple_use_1): Declare.
31636 (get_same_sized_vectype): Likewise.
31637 * tree-vect-loop.c (vect_determine_vectorization_factor):
31638 Set STMT_VINFO_VECTYPE to the vector type of the def.
31639 (vectorizable_reduction): Adjust.
31640 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
31641 Adjust. Specify the output vector type.
31642 (vect_pattern_recog_1): Adjust.
31643 * tree-vect-stmts.c (get_same_sized_vectype): New function.
31644 (vectorizable_call): Adjust.
31645 (vectorizable_conversion): Likewise.
31646 (vectorizable_operation): Likewise.
31647 (vectorizable_type_demotion): Likewise.
31648 (vectorizable_type_promotion): Likewise.
31649 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
31650 the def.
31651 (vect_is_simple_use_1): New function.
31652 (supportable_widening_operation): Get both input and output
31653 vector types.
31654 (supportable_narrowing_operation): Likewise.
31655 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
31656
31657 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
31658
31659 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
31660 __thiscall and _thiscall as predefined macros.
31661 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
31662 thiscall attribute handling.
31663 (ix86_comp_type_attributes): Likewise.
31664 (ix86_function_regparm): Likewise.
31665 (ix86_return_pops_args): Likewise.
31666 (init_cumulative_args): Likewise.
31667 (find_drap_reg): Likewise.
31668 (ix86_static_chain): Likewise.
31669 (x86_this_parameter): Likewise.
31670 (x86_output_mi_thunk): Likewise.
31671 (ix86_attribute_table): Add description for thiscall attribute.
31672 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
31673 * doc/extend.texi: Add documentation for thiscall.
31674
31675 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
31676
31677 PR c++/28584
31678 * c.opt (Wint-to-pointer-cast): Available in C++.
31679 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
31680
31681 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
31682
31683 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
31684 * calls.c (expand_call): Pass the function type to aggregate_value_p.
31685 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
31686 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
31687 function type instead. Reorder and simplify checks.
31688
31689 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
31690
31691 2010-04-08 Jing Yu <jingyu@google.com>
31692 Zdenek Dvorak <ook@ucw.cz>
31693
31694 PR tree-optimization/42720
31695 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
31696 loop unswitch conditions here from ...
31697 (tree_unswitch_single_loop): ... here.
31698
31699 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
31700
31701 * tree-if-conv.c: Fix comments and simplify logic.
31702
31703 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
31704
31705 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
31706 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
31707 (main_tree_if_conversion): Update call to tree_if_conversion.
31708
31709 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
31710
31711 PR 42485
31712 * doc/invoke.texi (-b,-V): Delete.
31713 * doc/tm.texi: Do not mention -b.
31714 * gcc.c (display_help): Delete -b and -V.
31715 (process_command): Delete -b and -V.
31716 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
31717
31718 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
31719 Wolfgang Gellerich <gellerich@de.ibm.com>
31720
31721 Implement target hook for loop unrolling
31722 * target.h (loop_unroll_adjust): Add a new target hook function.
31723 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
31724 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
31725 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
31726 (s390_loop_unroll_adjust): Implement the new target hook for s390.
31727 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
31728 target hook.
31729 (decide_unroll_stupid): Likewise.
31730
31731 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31732
31733 PR target/43643
31734 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
31735
31736 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31737
31738 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
31739 (Specific, *-*-solaris2*): Likewise.
31740 Don't prefer Sun as over GNU as.
31741
31742 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
31743
31744 * config/s390/s390.c (override_options): Adjust the z10 defaults
31745 for max-unroll-times, max-completely-peeled-insns
31746 and max-completely-peel-times.
31747
31748 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31749
31750 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
31751 instructions for z10.
31752 (s390_expand_setmem): Likewise.
31753 (s390_expand_cmpmem): Likewise.
31754
31755 2010-04-08 Richard Guenther <rguenther@suse.de>
31756
31757 PR tree-optimization/43679
31758 * tree-ssa-pre.c (eliminate): Only propagate copies.
31759
31760 2010-04-08 Jakub Jelinek <jakub@redhat.com>
31761
31762 PR bootstrap/43681
31763 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
31764 set but not used variable warning.
31765
31766 2010-04-08 Wei Guozhi <carrot@google.com>
31767
31768 PR target/41653
31769 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
31770 (arm_size_rtx_costs): Call the new function when optimized for size.
31771
31772 2010-04-08 Jakub Jelinek <jakub@redhat.com>
31773
31774 PR debug/43670
31775 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
31776 op0 is not a MEM, just return NULL instead of assertion
31777 failure.
31778 (discover_nonconstant_array_refs): Don't walk debug stmts.
31779
31780 2010-04-08 Doug Kwan <dougkwan@google.com>
31781
31782 * configure.ac: Recognize gold and do not use its version number
31783 to test ld features.
31784 * configure: Regenerate.
31785
31786 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
31787
31788 PR middle-end/40815
31789 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
31790 (negate_value): Move code to push elements to broken_up_substracts ...
31791 (eliminate_plus_minus_pair): ... here. Push operands that have no
31792 negative pair to plus_negates.
31793 (repropagate_negates, init_reassoc, fini_reassoc): Update.
31794
31795 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31796
31797 * doc/install.texi (Configuration): Move description of
31798 --enable-lto, --with-libelf*, --enable-gold from Java section to
31799 general section.
31800
31801 * doc/generic.texi (Working with declarations)
31802 (Function Properties, C and C++ Trees): Fix typos.
31803 * doc/sourcebuild.texi (Top Level): Likewise.
31804
31805 2010-04-07 Jakub Jelinek <jakub@redhat.com>
31806
31807 PR c/18624
31808 * tree.h (DECL_READ_P): Define.
31809 (struct tree_decl_common): Add decl_read_flag.
31810 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
31811 a set but not used warning.
31812 (merge_decls): Merge DECL_READ_P flag.
31813 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
31814 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
31815 * c-common.c (handle_used_attribute, handle_unused_attribute):
31816 Likewise.
31817 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
31818 New prototypes.
31819 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
31820 New functions.
31821 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
31822 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
31823 c_parser_binary_expression, c_parser_cast_expression,
31824 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
31825 Call default_function_array_read_conversion instead of
31826 default_function_array_conversion where needed.
31827 (c_parser_unary_expression, c_parser_conditional_expression,
31828 c_parser_postfix_expression_after_primary, c_parser_initelt):
31829 Likewise. Call mark_exp_read where needed.
31830 (c_parser_statement_after_labels, c_parser_asm_operands,
31831 c_parser_typeof_specifier, c_parser_sizeof_expression,
31832 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
31833 where needed.
31834 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
31835 New.
31836 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
31837 (warn_unused_but_set_parameter): Default to warn_unused
31838 && extra_warnings.
31839 * doc/invoke.texi: Document -Wunused-but-set-variable and
31840 -Wunused-but-set-parameter.
31841
31842 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
31843 used count variable.
31844 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
31845 when operandN variables aren't used in the body of the expander
31846 or splitter.
31847 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
31848 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
31849 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
31850 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
31851 FOR_EACH_IMM_USE_ON_STMT): Likewise.
31852 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
31853 * tree.c (PROCESS_ARG): Likewise.
31854
31855 2010-04-07 Simon Baldwin <simonb@google.com>
31856
31857 * diagnostic.h (diagnostic_override_option_index): New macro to
31858 set a diagnostic's option_index.
31859 * c-tree.h (c_cpp_error): Add warning reason argument.
31860 * opts.c (_warning_as_error_callback): New.
31861 (register_warning_as_error_callback): Store callback for
31862 warnings enabled via enable_warning_as_error.
31863 (enable_warning_as_error): Call callback, minor code tidy.
31864 * opts.h (register_warning_as_error_callback): Declare.
31865 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
31866 response to -Werror=.
31867 (c_common_init_options): Register warning_as_error_callback in opts.c.
31868 * common.opt: Add -Wno-cpp option.
31869 * c-common.c (struct reason_option_codes_t): Map cpp warning
31870 reason codes to gcc option indexes.
31871 * (c_option_controlling_cpp_error): New function, lookup the gcc
31872 option index for a cpp warning reason code.
31873 * (c_cpp_error): Add warning reason argument, call
31874 c_option_controlling_cpp_error for diagnostic_override_option_index.
31875 * doc/invoke.texi: Document -Wno-cpp.
31876
31877 2010-04-07 Richard Guenther <rguenther@suse.de>
31878
31879 * ipa-reference.c (mark_load): Use get_base_address.
31880 (mark_store): Likewise.
31881
31882 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
31883 inserting GIMPLE_NOPs into the IL.
31884 * tree-ssa-structalias.c (get_constraint_for_component_ref):
31885 Explicitly strip handled components and indirect references.
31886
31887 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
31888 folding address expressions.
31889 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
31890 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
31891 operand_equal_p to compare decls.
31892 (ptr_deref_may_alias_decl_p): Likewise.
31893 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
31894 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
31895 Handle reversed comparison ops.
31896 * tree-sra.c (asm_visit_addr): Use get_base_address.
31897 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
31898 * ipa-reference.c (mark_address): Use get_base_address.
31899
31900 2010-04-07 Richard Guenther <rguenther@suse.de>
31901
31902 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
31903 Propagate constants everywhere.
31904
31905 2010-04-07 Jakub Jelinek <jakub@redhat.com>
31906
31907 PR debug/43516
31908 * tree.c (MAX_INT_CACHED_PREC): Define.
31909 (nonstandard_integer_type_cache): New array.
31910 (build_nonstandard_integer_type): Cache results for precision
31911 <= MAX_INT_CACHED_PREC.
31912
31913 2010-04-07 Richard Guenther <rguenther@suse.de>
31914
31915 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
31916 -fargument-noalias-global, -fargument-noalias-anything): Remove.
31917 * common.opt: Likewise.
31918 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
31919 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
31920 (nonoverlapping_memrefs_p): Likewise.
31921 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31922 * opts.c (common_handle_option): Handle OPT_fargument_alias,
31923 OPT_fargument_noalias, OPT_fargument_noalias_anything and
31924 OPT_fargument_noalias_global for backward compatibility.
31925
31926 2010-04-07 Richard Guenther <rguenther@suse.de>
31927
31928 PR tree-optimization/43270
31929 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
31930 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
31931 * tree-ssa-pre.c (phi_translate_1): Adjust.
31932 (fully_constant_expression): Split out vn_reference handling to ...
31933 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
31934 Fold reads from constant strings.
31935 (vn_reference_lookup): Handle fully constant references.
31936 (vn_reference_lookup_pieces): Likewise.
31937 * Makefile.in (expmed.o-warn): Add -Wno-error.
31938
31939 2010-04-07 Martin Jambor <mjambor@suse.cz>
31940
31941 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
31942
31943 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
31944
31945 PR driver/41594
31946 * gcc.c: Add -static-libstdc++ to list of recognized options.
31947
31948 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31949
31950 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
31951
31952 2010-04-07 Richard Guenther <rguenther@suse.de>
31953
31954 PR middle-end/42617
31955 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
31956 bases build simple mem attributes to retain points-to information.
31957
31958 2010-04-07 Richard Guenther <rguenther@suse.de>
31959
31960 PR middle-end/42617
31961 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
31962 preserve points-to related information.
31963
31964 2010-04-07 Richard Guenther <rguenther@suse.de>
31965
31966 PR middle-end/42617
31967 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
31968 discard plain indirect references.
31969 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
31970 * tree.c (tree_nop_conversion): Likewise.
31971
31972 2010-04-07 Dodji Seketeli <dodji@redhat.com>
31973
31974 PR debug/43628
31975 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
31976
31977 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
31978
31979 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
31980 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
31981
31982 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31983
31984 * tree-if-conv.c: Fix indentation and comments.
31985
31986 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31987
31988 * tree-if-conv.c: Sort static functions in topological order.
31989
31990 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31991
31992 * tree-if-conv.c: Fix indentation and comments.
31993
31994 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31995
31996 PR middle-end/43519
31997 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
31998 lang_hooks.types.type_for_size instead of
31999 build_nonstandard_integer_type.
32000 When converting an unsigned type to signed, double its precision.
32001 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
32002 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
32003 (graphite_create_new_loop_guard): When ub + 1 wraps around,
32004 use lb <= ub.
32005
32006 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32007
32008 PR middle-end/43519
32009 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
32010 POINTER_PLUS_EXPR for pointer types.
32011
32012 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32013
32014 PR middle-end/43519
32015 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
32016 * graphite-clast-to-gimple.c: Include langhooks.h.
32017 (max_signed_precision_type): New.
32018 (max_precision_type): Takes two types as arguments.
32019 (precision_for_value): New.
32020 (precision_for_interval): New.
32021 (gcc_type_for_interval): New.
32022 (gcc_type_for_value): New.
32023 (gcc_type_for_clast_term): New.
32024 (gcc_type_for_clast_red): New.
32025 (gcc_type_for_clast_bin): New.
32026 (gcc_type_for_clast_expr): Split up into several functions.
32027 (gcc_type_for_clast_eq): Rewritten.
32028 (compute_bounds_for_level): New.
32029 (compute_type_for_level_1): New.
32030 (compute_type_for_level): New.
32031 (gcc_type_for_cloog_iv): Removed.
32032 (gcc_type_for_iv_of_clast_loop): Rewritten.
32033 (graphite_create_new_loop): Compute the lower and upper bound types
32034 with gcc_type_for_clast_expr.
32035 (graphite_create_new_loop_guard): Same.
32036 (find_cloog_iv_in_expr): Removed.
32037 (compute_cloog_iv_types_1): Removed.
32038 (compute_cloog_iv_types): Removed.
32039 (gloog): Do not call compute_cloog_iv_types.
32040 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
32041 GBB_CLOOG_IV_TYPES.
32042 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
32043 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
32044 (GBB_CLOOG_IV_TYPES): Removed.
32045
32046 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32047
32048 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
32049 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
32050 (detect_commutative_reduction): Same.
32051
32052 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32053
32054 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
32055 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
32056 argument.
32057 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
32058 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
32059 (rewrite_commutative_reductions_out_of_ssa): Same.
32060 * passes.c (execute_function_todo): Call verify_ssa for every pass
32061 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
32062 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
32063 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
32064 with an extra argument.
32065 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
32066 verify_ssa only when the extra argument is true.
32067 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
32068 with an extra argument.
32069 (tree_transform_and_unroll_loop): Same.
32070
32071 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32072
32073 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
32074 for all the passes of the LNO having LOOP_CLOSED_SSA.
32075 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
32076 * tree-loop-distribution.c (pass_loop_distribution): Same.
32077 * tree-pass.h (TODO_verify_loops): Removed.
32078 * tree-ssa-loop.c (pass_tree_loop_init): Same.
32079 (pass_lim): Same.
32080 (pass_tree_unswitch): Same.
32081 (pass_predcom): Same.
32082 (pass_vectorize): Same.
32083 (pass_linear_transform): Same.
32084 (pass_graphite_transforms): Same.
32085 (pass_iv_canon): Same.
32086 (pass_complete_unroll): Same.
32087 (pass_complete_unrolli): Same.
32088 (pass_parallelize_loops): Same.
32089 (pass_loop_prefetch): Same.
32090 (pass_iv_optimize): Same.
32091
32092 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
32093
32094 PR middle-end/32824
32095 * passes.c (init_optimization_passes): Move pass_lim before
32096 pass_copy_prop and pass_dce_loop.
32097
32098 2010-04-06 Jakub Jelinek <jakub@redhat.com>
32099
32100 PR target/43667
32101 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
32102 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
32103 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
32104 MULTI_* defines for 4 argument vpermil2p* builtins.
32105
32106 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
32107
32108 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
32109 * config/i386/i386.c (x86_maybe_negate_const_int): New.
32110 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
32111 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
32112 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
32113 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
32114 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
32115 Use x86_maybe_negate_const_int to output insn mnemonic.
32116 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
32117 check from instruction predicate. Update comments.
32118 * config/i386/sync.md (sync_add<mode>): Use
32119 x86_maybe_negate_const_int to output insn mnemonic.
32120
32121 2010-04-06 Jan Hubicka <jh@suse.cz>
32122
32123 PR tree-optimization/42906
32124 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
32125 IGNORE_SELF argument. Set visited_control_parents for fully
32126 processed BBs.
32127 (find_obviously_necessary_stmts): Update call of
32128 mark_control_dependent_edges_necessary.
32129 (propagate_necessity): Likewise. Handle PHI edges more curefully.
32130
32131 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
32132
32133 * config/i386/i386.md: Remove comment about 'e' and 'E'
32134 operand modifier.
32135
32136 2010-04-06 Richard Guenther <rguenther@suse.de>
32137
32138 PR tree-optimization/43627
32139 * tree-vrp.c (extract_range_from_unary_expr): Widenings
32140 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
32141 not varying.
32142
32143 2010-04-06 Jakub Jelinek <jakub@redhat.com>
32144
32145 * BASE-VER: Change to 4.6.0.
32146
32147 PR target/43638
32148 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
32149 handling.
32150
32151 2010-04-06 Richard Guenther <rguenther@suse.de>
32152
32153 PR middle-end/43661
32154 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
32155
32156 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32157
32158 * doc/invoke.texi (Optimize Options): Document that LTO
32159 won't remove object access purely due to incompatible
32160 declarations.
32161
32162 2010-04-04 Matthias Klose <doko@ubuntu.com>
32163
32164 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
32165 Initialize variable.
32166
32167 2010-04-03 Richard Guenther <rguenther@suse.de>
32168
32169 PR middle-end/42509
32170 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
32171 require a non-NULL MEM_OFFSET.
32172
32173 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
32174
32175 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
32176 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
32177 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
32178 config/alpha/predicates.md, config/arm/arm.md,
32179 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
32180 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
32181 config/darwin9.h, config/darwin.c, config/darwin.h,
32182 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
32183 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
32184 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
32185 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
32186 config/mips/mips.md, config/mn10300/mn10300.c,
32187 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
32188 config/rs6000/aix.h, config/rs6000/dfp.md,
32189 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
32190 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
32191 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
32192 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
32193 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
32194 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
32195 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
32196 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
32197 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
32198 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
32199 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
32200 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
32201 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
32202 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
32203 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
32204 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
32205 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
32206 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
32207 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
32208 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
32209 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
32210 opt-functions.awk, opth-gen.awk, params.def, passes.c,
32211 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
32212 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
32213 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
32214 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
32215 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
32216 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
32217 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
32218 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
32219 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
32220 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
32221 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
32222 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
32223 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
32224 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
32225
32226 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32227
32228 PR other/43620
32229 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
32230 * aclocal.m4: Regenerate.
32231
32232 2010-04-02 Richard Guenther <rguenther@suse.de>
32233
32234 PR tree-optimization/43629
32235 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
32236 if we have seen a constant value.
32237
32238 2010-04-02 Joseph Myers <joseph@codesourcery.com>
32239
32240 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
32241
32242 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
32243
32244 PR target/43469
32245 * arm.c (legitimize_tls_address): Adjust call to
32246 gen_tls_load_dot_plus_four.
32247 (arm_note_pic_base): New function.
32248 (arm_cannot_copy_insn_p): Use it.
32249 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
32250 constraint.
32251
32252 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32253
32254 PR bootstrap/43531
32255
32256 Revert:
32257 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32258
32259 * Makefile.in ($(out_object_file)): Depend on
32260 gt-$(basename $(notdir $(out_file))).h.
32261
32262 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
32263
32264 * config.gcc (lm32-*-rtems*): Add t-lm32.
32265
32266 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
32267
32268 * config.gcc: Add lm32-*-rtems*.
32269 * config/lm32/rtems.h: New file.
32270
32271 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
32272
32273 PR target/42609
32274 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
32275
32276 2010-04-01 Jakub Jelinek <jakub@redhat.com>
32277
32278 * dwarf2out.c (output_compilation_unit_header): For
32279 -gdwarf-4 use version 4 instead of version 3.
32280 (output_line_info): For version 4 and above emit additional
32281 maximum ops per insn header field.
32282 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
32283
32284 * dwarf2out.c (is_c_family, is_java): Remove.
32285 (lower_bound_default): New function.
32286 (add_bound_info, gen_descr_array_type_die): Use it.
32287
32288 2010-04-01 Dodji Seketeli <dodji@redhat.com>
32289
32290 PR debug/43325
32291 * dwarf2out.c (gen_variable_die): Allow debug info for variable
32292 re-declaration when it happens in a function.
32293
32294 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
32295
32296 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
32297 (cgraph_remove_function_insertion_hook): Same.
32298 (cgraph_call_function_insertion_hooks): Same.
32299
32300 2010-04-01 Richard Guenther <rguenther@suse.de>
32301
32302 PR middle-end/43614
32303 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
32304 and TREE_THIS_VOLATILE.
32305 (copy_ref_info): Likewise.
32306 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
32307 * tree.c (build6_stat): Ignore side-effects of all but arg5
32308 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
32309 TARGET_MEM_REF.
32310
32311 2010-04-01 Richard Guenther <rguenther@suse.de>
32312
32313 PR tree-optimization/43607
32314 * ipa-type-escape.c (check_call): Do not access non-existing
32315 arguments.
32316
32317 2010-04-01 Richard Guenther <rguenther@suse.de>
32318
32319 PR middle-end/43602
32320 Revert
32321 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
32322 Jack Howarth <howarth@bromo.med.uc.edu>
32323
32324 * tree-profile.c (tree_init_ic_make_global_vars): Make static
32325 variables TLS.
32326
32327 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32328
32329 * doc/install.texi (Prerequisites): Document libelf usability on
32330 IRIX 5/6 and Solaris 2.
32331 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
32332 Update GNU as, GNU ld requirements.
32333 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
32334 Document Sun Studio compiler download.
32335 Update and simplify as, ld recommendations.
32336 (Specific, *-*-solaris2.7): Note obsoletion, removal.
32337
32338 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32339
32340 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
32341 with_tune_32 to pentium4.
32342
32343 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
32344
32345 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
32346
32347 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32348
32349 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
32350 obsoletion, removal.
32351 Update IDO URL.
32352 Document GNU as requirement.
32353 Update configure requirements.
32354 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
32355 Recomment IRIX 6.5.18+.
32356 Document IDF/IDL requirement.
32357 Document GNU as requirement.
32358 Document GNU ld bootstrap failure.
32359 Remove freeware.sgi.com reference.
32360
32361 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32362
32363 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
32364 UNIX V4.0, V5.0 obsoletion, removal.
32365 Remove --with-gc=simple reference.
32366 Update VM requirements during bootstrap.
32367 Remove -oldas bootstrap description.
32368 Update binutils reference.
32369 Remove comparison failure note.
32370
32371 2010-03-31 Richard Guenther <rguenther@suse.de>
32372 Zdenek Dvorak <ook@ucw.cz>
32373 Sebastian Pop <sebastian.pop@amd.com>
32374
32375 PR middle-end/43464
32376 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
32377 with multiple arguments.
32378 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
32379
32380 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32381
32382 * graphite-dependences.c (print_pddr): Call print_pdr with an
32383 extra argument.
32384 * graphite-poly.c (debug_pdr): Add an extra argument for the
32385 verbosity level.
32386 (print_pdr): Same.
32387 (print_pbb_domain): Same.
32388 (print_pbb): Same.
32389 (print_scop_context): Same.
32390 (print_scop): Same.
32391 (print_cloog): Same.
32392 (debug_pbb_domain): Same.
32393 (debug_pbb): Same.
32394 (print_pdrs): Same.
32395 (debug_pdrs): Same.
32396 (debug_scop_context): Same.
32397 (debug_scop): Same.
32398 (debug_cloog): Same.
32399 (print_scop_params): Same.
32400 (debug_scop_params): Same.
32401 (print_iteration_domain): Same.
32402 (print_iteration_domains): Same.
32403 (debug_iteration_domain): Same.
32404 (debug_iteration_domains): Same.
32405 (print_scattering_function): Same.
32406 (print_scattering_functions): Same.
32407 (debug_scattering_function): Same.
32408 (debug_scattering_functions): Same.
32409 * graphite-poly.h (debug_pdr): Update declaration.
32410 (print_pdr): Same.
32411 (print_pbb_domain): Same.
32412 (print_pbb): Same.
32413 (print_scop_context): Same.
32414 (print_scop): Same.
32415 (print_cloog): Same.
32416 (debug_pbb_domain): Same.
32417 (debug_pbb): Same.
32418 (print_pdrs): Same.
32419 (debug_pdrs): Same.
32420 (debug_scop_context): Same.
32421 (debug_scop): Same.
32422 (debug_cloog): Same.
32423 (print_scop_params): Same.
32424 (debug_scop_params): Same.
32425 (print_iteration_domain): Same.
32426 (print_iteration_domains): Same.
32427 (debug_iteration_domain): Same.
32428 (debug_iteration_domains): Same.
32429 (print_scattering_function): Same.
32430 (print_scattering_functions): Same.
32431 (debug_scattering_function): Same.
32432 (debug_scattering_functions): Same.
32433
32434 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32435
32436 * graphite-poly.c (print_scattering_function_1): New.
32437 (print_scattering_function): Call it.
32438 (print_scop_params): Remove spaces at the end of lines.
32439 (print_cloog): New.
32440 (debug_cloog): New.
32441 * graphite-poly.h (print_cloog): Declared.
32442 (debug_cloog): Declared.
32443
32444 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32445
32446 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
32447 in loop->header.
32448 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
32449 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
32450 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
32451 to switch between adding the IV bump in loop->latch or in loop->header.
32452
32453 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
32454
32455 * graphite-poly.c (print_scattering_function): Pretty print following
32456 the scoplib format.
32457 (print_pdr): Same.
32458 (print_pbb_domain): Same.
32459 (dump_gbb_cases): Same.
32460 (dump_gbb_conditions): Same.
32461 (print_pdrs): Same.
32462 (print_pbb): Same.
32463 (print_scop_params): Same.
32464 (print_scop_context): Same.
32465 (print_scop): Same.
32466 (print_pbb_body): New.
32467 (lst_indent_to): New.
32468 (print_lst): Start new lines with a #.
32469 * graphite-poly.h (pbb_bb): New.
32470 (pbb_index): Use pbb_bb.
32471 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
32472 disjuncts.
32473 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
32474
32475 2010-03-31 Jakub Jelinek <jakub@redhat.com>
32476
32477 * dwarf2out.c (size_of_die): For -gdwarf-4 use
32478 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
32479 and 0 instead of 1 for dw_val_class_flag.
32480 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
32481 dw_val_class_range_list, dw_val_class_loc_list,
32482 dw_val_class_lineptr and dw_val_class_macptr, use
32483 DW_FORM_flag_present for dw_val_class_flag and
32484 DW_FORM_exprloc for dw_val_class_loc.
32485 (output_die): For -gdwarf-4 print dw_val_class_loc
32486 size as uleb128 instead of 1 or 2 bytes and don't print
32487 anything for dw_val_class_flag.
32488
32489 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
32490 instead of cselib_lookup following by tweaking locs->setting_insn.
32491
32492 PR bootstrap/43596
32493 * cselib.c (cselib_process_insn): Clear cselib_current_insn
32494 even before returning from label, setjmp call or volatile asm
32495 handling.
32496
32497 2010-03-31 Richard Guenther <rguenther@suse.de>
32498
32499 PR middle-end/43600
32500 * cgraphunit.c (cgraph_output_in_order): Do not allocate
32501 temporary data on stack.
32502
32503 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32504
32505 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
32506 (PUSHSECTION_ASM_OP): Remove.
32507 (POPSECTION_ASM_OP): Remove.
32508 (PUSHSECTION_FORMAT): Remove.
32509 * config/sol2.h (PUSHSECTION_FORMAT): Define.
32510 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
32511 * config/sol2.c (solaris_output_init_fini): Use it.
32512
32513 2010-03-31 Jie Zhang <jie@codesourcery.com>
32514
32515 PR 43574
32516 * opt-functions.awk (var_type_struct): Use signed char type
32517 for simple variables.
32518
32519 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32520
32521 * config/sol2.c: Include output.h.
32522 (solaris_assemble_visibility): New function.
32523 * config/t-sol2 (sol2.o): Add output.h dependency.
32524 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
32525 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
32526 Redefine.
32527
32528 2010-03-31 Jakub Jelinek <jakub@redhat.com>
32529
32530 PR target/43580
32531 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
32532 V2SImode or XFmode on PRE_DEC.
32533
32534 PR debug/43557
32535 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
32536 BLKmode.
32537
32538 2010-03-31 Jie Zhang <jie@codesourcery.com>
32539
32540 PR 43562
32541 * reload.h (caller_save_initialized_p): Declare.
32542 * toplev.c (backend_init_target): Don't call
32543 init_caller_save but set caller_save_initialized_p to false.
32544 * caller-save.c (caller_save_initialized_p): Define.
32545 (init_caller_save): Check caller_save_initialized_p.
32546 * ira.c (ira): Call init_caller_save if flag_caller_saves.
32547
32548 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32549
32550 PR target/39048
32551 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
32552 and soft-fp/t-softfp to tmake_file.
32553 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
32554 (LIBGCC2_TF_CEXT): Define.
32555 (TF_SIZE): Define.
32556
32557 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
32558
32559 PR debug/42977
32560 * cselib.c (n_useless_values): Document handling of debug locs.
32561 (n_useless_debug_values, n_debug_values): New variables.
32562 (new_elt_loc_list): Don't add to debug values, keep count.
32563 (promote_debug_loc): New.
32564 (cselib_reset_table): Zero new variables.
32565 (entry_and_rtx_equal_p): Promote debug locs.
32566 (discard_useless_locs): Increment n_useless_debug_values for
32567 debug values.
32568 (remove_useless_values): Adjust n_useless_values and n_debug_values
32569 with n_useless_debug_values.
32570 (add_mem_for_addr): Promote debug locs.
32571 (cselib_lookup_mem): Likewise.
32572 (cselib_lookup_addr): Renamed to...
32573 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
32574 (cselib_log_lookup): ... this. Turn into...
32575 (cselib_lookup_addr): ... new wrapper.
32576 (cselib_lookup_from_insn): New.
32577 (cselib_invalidate_regno): Increment n_useless_debug_values for
32578 debug values.
32579 (cselib_invalidate_mem): Likewise.
32580 (cselib_process_insn): Take n_deleted and n_debug_values into
32581 account to guard remove_useless_value call.
32582 (cselib_finish): Zero n_useless_debug_values.
32583 * cselib.h (cselib_lookup_from_insn): Declare.
32584 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
32585 (sched_analyze_2): Likewise.
32586
32587 2010-03-30 Jakub Jelinek <jakub@redhat.com>
32588
32589 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
32590 functions.
32591 (adjust_mems): Replace narrowing SUBREG of expression containing
32592 just PLUS, MINUS, MULT and ASHIFT of registers and constants
32593 with operations in the narrower mode.
32594
32595 PR debug/43593
32596 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
32597 regs_invalidated_by_call instead all call_used_reg_set registers.
32598
32599 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
32600
32601 PR middle-end/43430
32602 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
32603 pointer comparisons with types_compatible_p.
32604 * tree-vect-stmts.c (vectorizable_call): Same.
32605 (vectorizable_condition): Same.
32606
32607 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32608
32609 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
32610 stack check if the mask would be zero.
32611
32612 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
32613 Jack Howarth <howarth@bromo.med.uc.edu>
32614
32615 * tree-profile.c (tree_init_ic_make_global_vars): Make static
32616 variables TLS.
32617
32618 2010-03-30 Joseph Myers <joseph@codesourcery.com>
32619
32620 PR other/25232
32621 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
32622 and __unordtf2.
32623 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
32624 Include ___unordxf2 and ___unordtf2.
32625 * config/i386/libgcc-glibc.ver: Do not define inheritance from
32626 GCC_4.4.0 here.
32627
32628 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
32629
32630 * config/lm32/t-lm32: New file.
32631 * config.gcc: Use the above file when targetting lm32.
32632
32633 2010-03-28 Duncan Sands <baldrick@free.fr>
32634
32635 * Makefile.in (PLUGIN_HEADERS): Add except.h.
32636
32637 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
32638
32639 PR middle-end/43431
32640 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
32641 Improve vectorization cost model diagnostic.
32642
32643 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
32644
32645 PR middle-end/43436
32646 * tree-vect-data-refs.c (vect_analyze_data_refs): When
32647 compute_data_dependences_for_loop returns false, early exit
32648 and output an extra diagnostic for the failed data reference
32649 analysis.
32650
32651 2010-03-29 Richard Guenther <rguenther@suse.de>
32652
32653 PR tree-optimization/43560
32654 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
32655 (can_sm_ref_p): Treat stores to readonly locations as trapping.
32656
32657 2010-03-29 Jie Zhang <jie@codesourcery.com>
32658
32659 PR 43564
32660 * toplev.c (process_options): Set optimization_default_node
32661 and optimization_current_node.
32662 * opts.c (decode_options): Don't set optimization_default_node
32663 and optimization_current_node.
32664
32665 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
32666
32667 * config/rtems.h: Abandon -qrtems_debug.
32668
32669 2010-03-28 Jan Hubicka <jh@suse.cz>
32670
32671 PR tree-optimization/43505
32672 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
32673 map should not be copied.
32674
32675 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32676
32677 PR middle-end/41674
32678 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
32679 cdtors, set DECL_PRESERVE_P.
32680 * ipa.c (cgraph_externally_visible_p): Return true if declaration
32681 should be preseved.
32682
32683 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
32684
32685 PR tree-optimization/43528
32686 * stor-layout.c (place_field): Check that constant fits into
32687 unsigned HWI when skipping calculation of MS bitfield layout.
32688
32689 2010-03-27 Jan Hubicka <jh@suse.cz>
32690
32691 PR middle-end/43391
32692 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
32693 notice_global_symbol work.
32694
32695 2010-03-27 Jakub Jelinek <jakub@redhat.com>
32696
32697 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
32698 instead of dwarf2out_decl.
32699 (struct var_loc_node): Remove section_label field.
32700 (dwarf2out_function_decl): New function.
32701 (dwarf2out_var_location): Don't set section_label field.
32702 (dwarf2out_begin_function): Don't empty decl_loc_table here.
32703
32704 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
32705
32706 PR tree-optimization/43544
32707 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32708 First argument for builtin vectorized function hook is now a
32709 tree to be able to distinguish between machine specific and
32710 standard builtins.
32711 * targhooks.c (default_builtin_vectorized_function): Ditto.
32712 * targhooks.h (default_builtin_vectorized_function): Ditto.
32713 * target.h (struct gcc_target): Ditto.
32714 * tree-vect-stmts.c (vectorizable_function): Ditto.
32715 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
32716 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
32717 Ditto.
32718
32719 2010-03-26 Joseph Myers <joseph@codesourcery.com>
32720
32721 PR c/43381
32722 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
32723 nested binding iff it is a FUNCTION_DECL.
32724 (store_parm_decls_newstyle): Pass nested=true to bind for
32725 FUNCTION_DECLs amongst parameters.
32726
32727 2010-03-26 Jakub Jelinek <jakub@redhat.com>
32728
32729 * var-tracking.c (vt_expand_loc_callback): Don't run
32730 cselib_expand_value_rtx_cb in dummy mode if
32731 cselib_dummy_expand_value_rtx_cb returned false.
32732
32733 * var-tracking.c (emit_note_insn_var_location): For one part
32734 notes with offset 0, don't add EXPR_LIST around the location.
32735 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
32736 add_location_or_const_value_attribute): Adjust for that change.
32737
32738 PR debug/43540
32739 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
32740 into first operand and location into second.
32741 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
32742 dw_cfi_oprnd_loc for DW_CFA_expression.
32743 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
32744 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
32745 assume first argument is regnum and second argument is location.
32746
32747 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
32748
32749 PR target/42113
32750 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
32751 of scratch register to DImode. Split to DImode comparison operator.
32752 Use SImode subreg of scratch register in the multiplication.
32753 (*cmp_sadd_sidi): Ditto.
32754 (*cmp_ssub_si): Ditto.
32755 (*cmp_ssub_sidi): Ditto.
32756
32757 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
32758
32759 PR target/43524
32760 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
32761 Remove invalid assert and wrong comment.
32762
32763 2010-03-26 Jakub Jelinek <jakub@redhat.com>
32764
32765 PR debug/43516
32766 * flags.h (final_insns_dump_p): New extern.
32767 * final.c (final_insns_dump_p): New variable.
32768 (rest_of_clean_state): Set it before -fdump-final-insns=
32769 dumping, clear afterwards.
32770 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
32771 MEM_ALIAS_SET on MEMs.
32772
32773 2010-03-26 David S. Miller <davem@davemloft.net>
32774
32775 * configure.ac: Fix sparc GOTDATA_OP bug check.
32776 * configure: Rebuild.
32777
32778 2010-03-26 Alan Modra <amodra@gmail.com>
32779
32780 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
32781
32782 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32783
32784 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
32785 TLS_SECTION_ASM_FLAG.
32786
32787 2010-03-25 Jakub Jelinek <jakub@redhat.com>
32788
32789 PR bootstrap/43511
32790 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
32791 Clear first_function_block_is_cold.
32792
32793 PR c/43385
32794 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
32795 argument if the argument is truth_value_p.
32796
32797 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32798
32799 * config/rs6000/constraints.md: Update copyright year for my changes.
32800
32801 PR target/43484
32802 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
32803 used in reg+reg addressing, swap registers.
32804
32805 2010-03-24 Jakub Jelinek <jakub@redhat.com>
32806
32807 PR debug/43293
32808 * target.h (struct gcc_target): Add code_end hook.
32809 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
32810 if not yet defined.
32811 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
32812 * toplev.c (compile_file): Call targetm.asm_out.code_end
32813 hook before unwind info/debug info output.
32814 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
32815 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
32816 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32817 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
32818 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
32819 * config/i386/i386.c (ix86_file_end): Renamed to...
32820 (ix86_code_end): ... this. Make static. Don't call
32821 file_end_indicate_exec_stack. Emit unwind info using
32822 final_start_function/final_end_function.
32823 (darwin_x86_file_end): Remove.
32824 (TARGET_ASM_CODE_END): Define.
32825 * config/i386/i386.h (TARGET_ASM_FILE_END,
32826 NEED_INDICATE_EXEC_STACK): Don't define.
32827 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
32828 (TARGET_ASM_FILE_END): Define to darwin_file_end.
32829 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
32830 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
32831
32832 PR target/43498
32833 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
32834 at the beginning and final_end_function at the end.
32835 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
32836
32837 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32838
32839 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
32840 and Sun as TLS syntax.
32841 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
32842 * configure: Regenerate.
32843 * config.in: Regenerate.
32844 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
32845 (default_elf_asm_named_section): Use it.
32846 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
32847 (i386_output_dwarf_dtprel): Likewise.
32848 (output_addr_const_extra): Likewise.
32849 (output_pic_addr_const): Lowercase @GOTTPOFF.
32850 (output_addr_const_extra): Likewise.
32851 (output_pic_addr_const): Lowercase @GOTNTPOFF.
32852 (output_addr_const_extra): Likewise.
32853 (output_pic_addr_const): Lowercase @INDNTPOFF.
32854 (output_addr_const_extra): Likewise.
32855 (output_pic_addr_const): Lowercase @NTPOFF.
32856 (output_addr_const_extra): Likewise.
32857 (output_pic_addr_const): Lowercase @TPOFF.
32858 (output_addr_const_extra): Likewise.
32859 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
32860 (*tls_global_dynamic_64): Likewise.
32861 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
32862 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
32863
32864 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
32865 (ASM_OUTPUT_TLS_COMMON): Use it.
32866 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
32867
32868 PR target/38118
32869 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
32870 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
32871 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
32872 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
32873 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32874 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
32875
32876 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32877
32878 * config/i386/i386.c (override_options): Don't accept
32879 -mtls-dialect=sun any longer.
32880 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
32881 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
32882 (*tls_local_dynamic_base_32_sun): Likewise.
32883 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
32884
32885 2010-03-24 Jakub Jelinek <jakub@redhat.com>
32886
32887 PR debug/43508
32888 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32889 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
32890
32891 PR debug/43479
32892 * ira.c (adjust_cleared_regs): New function.
32893 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
32894
32895 PR debug/19192
32896 PR debug/43479
32897 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
32898 from gimple_block.
32899 * expr.c (expand_expr_real): Restore previous
32900 curr_insn_source_location and curr_insn_block after
32901 expand_expr_real_1 call.
32902 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
32903 instead of expand_expr_real_1.
32904
32905 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
32906
32907 PR rtl-optimization/43413
32908 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
32909 hard regs too.
32910
32911 2010-03-22 James E. Wilson <wilson@codesourcery.com>
32912
32913 PR target/43348
32914 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
32915 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
32916
32917 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
32918
32919 * config/i386/i386.c (ix86_target_string): Add -mfma.
32920 Fix a typo in comment.
32921
32922 2010-03-22 Mike Stump <mikestump@comcast.net>
32923
32924 PR target/23071
32925 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
32926 Don't overly align based upon packed packed fields.
32927
32928 2010-03-22 Jason Merrill <jason@redhat.com>
32929
32930 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
32931 Use () rather than [], and move before the element type.
32932
32933 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32934
32935 * doc/configfiles.texi (Configuration Files): Removed
32936 fixinc/Makefile*, intl/Makefile.*.
32937 * doc/makefile.texi: Fixed markup. Abstract from version
32938 control system used.
32939 (Makefile): Removed obsolete java/parse.y example.
32940 * doc/sourcebuild.texi: Likewise.
32941 (Top Level): Added config, gnattools, libdecnumber, libgcc,
32942 libgomp, libssp. Removed fastjar.
32943 (Miscellaneous Docs): Clarify location.
32944 Added COPYING3, COPYING3.LIB.
32945 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
32946
32947 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32948
32949 PR target/38085
32950 * config/i386/i386.c (x86_function_profiler)
32951 [!NO_PROFILE_COUNTERS]: Fix typo.
32952 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
32953 instead of callq.
32954
32955 2010-03-22 Janis Johnson <janis187@us.ibm.com>
32956 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32957
32958 * doc/sourcebuild.texi (Test Directives): Split into six
32959 subsections, with most of the current text in new subsections
32960 Directives, Selectors, and Final Actions.
32961 (Directives): Split list of test directives into multiple
32962 subsubsections.
32963 (Selectors): Describe use and syntax of selectors.
32964 (Effective-Target Keywords): Describe all existing keywords.
32965 (Add Options): Describe features for dg-add-options.
32966 (Require Support): Describe variants of dg-require-support.
32967 (Final Actions): Describe commands to use in dg-final.
32968
32969 2010-03-22 Michael Matz <matz@suse.de>
32970
32971 PR middle-end/43475
32972 * recog.c (validate_replace_rtx_group): Replace also in
32973 REG_EQUAL and REG_EQUIV notes.
32974
32975 2010-03-22 Richard Guenther <rguenther@suse.de>
32976
32977 PR tree-optimization/43390
32978 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
32979 sure vector extracts are type correct.
32980
32981 2010-03-22 Richard Guenther <rguenther@suse.de>
32982
32983 PR middle-end/40106
32984 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
32985 x * sqrt (x) even when optimizing for size if the target
32986 has native support for sqrt.
32987
32988 2010-03-22 Jakub Jelinek <jakub@redhat.com>
32989
32990 * varasm.c (make_decl_rtl_for_debug): Also clear
32991 flag_mudflap for the duration of make_decl_rtl call.
32992
32993 PR debug/43443
32994 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
32995 locs from preserved VALUEs.
32996
32997 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32998
32999 PR middle-end/42718
33000 * pa.md (movmemsi): Set align to one if zero.
33001 (movmemdi): Likewise.
33002
33003 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
33004
33005 PR target/42321
33006 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
33007 with their corresponding prologue pushes.
33008
33009 2010-03-20 Andrew Pinski <pinskia@gmail.com>
33010
33011 PR target/43156
33012 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
33013 at the begining or end.
33014 (spu_expand_epilogue): Likewise.
33015
33016 2010-03-20 Richard Guenther <rguenther@suse.de>
33017
33018 PR rtl-optimization/43438
33019 * combine.c (make_extraction): Properly zero-/sign-extend an
33020 extraction of the low part of a CONST_INT. Also handle
33021 CONST_DOUBLE.
33022
33023 2010-03-19 Mike Stump <mikestump@comcast.net>
33024
33025 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
33026 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
33027 (override_options): Use SUBTARGET32_DEFAULT_CPU.
33028
33029 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
33030
33031 PR c/43211
33032 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
33033 an error.
33034
33035 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
33036
33037 PR rtl-optimization/42258
33038 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
33039 use that may match DEF.
33040
33041 PR target/40697
33042 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
33043 the cost of loading the constant rather than assuming
33044 COSTS_N_INSNS (1).
33045 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
33046 outer code is AND, do the same tests as the andsi3 expander and
33047 return COSTS_N_INSNS (1) if and is cheap.
33048
33049 * optabs.c (avoid_expensive_constant): Fix formatting.
33050
33051 2010-03-19 Michael Matz <matz@suse.de>
33052
33053 PR c++/43116
33054 * attribs.c (decl_attributes): When rebuilding a function pointer
33055 type use the same qualifiers as the original pointer type.
33056
33057 2010-03-19 Martin Jambor <mjambor@suse.cz>
33058
33059 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
33060 and is_gimple_ip_invariant_address.
33061
33062 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33063
33064 Revert
33065 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33066
33067 * config/arm/arm.c (arm_override_options): Turn off
33068 flag_dwarf2_cfi_asm for AAPCS variants.
33069
33070 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33071
33072 PR target/43399
33073 * config/arm/arm.c (emit_multi_reg_push): Update comments.
33074 Use PRE_MODIFY instead of PRE_DEC.
33075 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
33076 (vfp_emit_fstmd): Likewise.
33077
33078 2010-03-19 Michael Matz <matz@suse.de>
33079
33080 PR target/43305
33081 * builtins.c (expand_builtin_interclass_mathfn,
33082 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
33083 if that fails.
33084
33085 2010-03-19 Richard Guenther <rguenther@suse.de>
33086
33087 PR tree-optimization/43415
33088 * tree-ssa-pre.c (phi_translate): Split out worker to ...
33089 (phi_translate_1): ... this.
33090 (phi_translate): Move all caching here. Cache all NARY
33091 and REFERENCE translations.
33092
33093 2010-03-19 David S. Miller <davem@davemloft.net>
33094
33095 With help from Eric Botcazou.
33096 * config/sparc/sparc.c: Include dwarf2out.h.
33097 (emit_pic_helper): Delete.
33098 (pic_helper_symbol_name): Delete.
33099 (pic_helper_emitted_p): Delete.
33100 (pic_helper_needed): New.
33101 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
33102 (get_pc_thunk_name): New.
33103 (load_pic_register): Remove 'delay_pic_helper' arg. Use
33104 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
33105 Set pic_helper_needed to true. Don't call emit_pic_helper.
33106 (sparc_expand_prologue): Update load_pic_register call.
33107 (sparc_output_mi_thunk): Likewise.
33108 (sparc_file_end): Emit a hidden comdat symbol for the PIC
33109 thunk if possible. Output CFI information as needed.
33110
33111 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33112 Jack Howarth <howarth@bromo.med.uc.edu>
33113
33114 PR target/36399
33115 * config/i386/i386.h: Fix ABI on darwin x86-32.
33116
33117 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
33118
33119 * tree.h: Declare make_decl_rtl_for_debug.
33120 * varasm.c (make_decl_rtl_for_debug): New.
33121 * dwarf2out.c (rtl_for_decl_location): Call it.
33122 * cfgexpand.c (expand_debug_expr): Call it.
33123
33124 2010-03-18 Jakub Jelinek <jakub@redhat.com>
33125
33126 PR bootstrap/43399
33127 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
33128 mem_mode.
33129
33130 PR bootstrap/43403
33131 * var-tracking.c (vt_init_cfa_base): Do nothing if
33132 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
33133
33134 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
33135
33136 PR debug/42873
33137 * var-tracking.c (canonicalize_vars_star): New.
33138 (dataflow_post_merge_adjust): Use it.
33139
33140 2010-03-18 Jakub Jelinek <jakub@redhat.com>
33141
33142 PR debug/43058
33143 * var-tracking.c (non_suitable_const): New function.
33144 (add_uses): For DEBUG_INSNs with constants, don't record any
33145 value, instead just the constant value itself.
33146 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
33147 is not VAR_LOC_UNKNOWN_P, set var to the constant.
33148 (emit_notes_in_bb): Likewise.
33149 (emit_note_insn_var_location): For onepart variables if
33150 cur_loc is a VOIDmode constant, use DECL_MODE.
33151
33152 2010-03-18 Martin Jambor <mjambor@suse.cz>
33153
33154 PR middle-end/42450
33155 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
33156 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
33157 all non-clones. Moved call redirection...
33158 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
33159 (cgraph_materialize_all_clones): Dispose of all
33160 combined_args_to_skip bitmaps.
33161 (verify_cgraph_node): Do not check for edges pointing to wrong
33162 nodes in inline clones.
33163 * tree-inline.c (copy_bb): Call
33164 cgraph_redirect_edge_call_stmt_to_callee.
33165 * ipa.c (cgraph_remove_unreachable_nodes): Call
33166 cgraph_node_remove_callees even when there are used clones.
33167
33168 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33169
33170 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
33171
33172 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33173
33174 PR target/43383
33175 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
33176 for 32bit.
33177
33178 2010-03-18 Michael Matz <matz@suse.de>
33179
33180 PR middle-end/43419
33181 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
33182 into sqrt(x) if we need to preserve signed zeros.
33183
33184 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
33185 Eric Botcazou <ebotcazou@adacore.com>
33186
33187 PR rtl-optimization/43360
33188 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
33189 note if we don't know its invariant status.
33190
33191 2010-03-18 Michael Matz <matz@suse.de>
33192
33193 PR tree-optimization/43402
33194 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
33195 PHI chains of ssa names registered for update.
33196
33197 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
33198
33199 PR target/42427
33200 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
33201 non-offsettable and pre_modify update addressing.
33202 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
33203 and "2" alternatives "#".
33204 (*movdd_softfloat32): Make all alternatives "#";
33205 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
33206 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
33207 (*movdf_softfloat32): Make all alternatives "#";
33208 (movdi): Use the new DIFD mode iterator to create a common splitter
33209 for movdi, movdf and movdd patterns.
33210
33211 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
33212
33213 * common.opt (dumpdir): Remove redundant tab.
33214
33215 2010-03-17 Martin Jambor <mjambor@suse.cz>
33216
33217 PR tree-optimization/43347
33218 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
33219 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
33220
33221 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
33222
33223 PR rtl-optimization/42216
33224 * regrename.c (create_new_chain): New function, broken out from...
33225 (scan_rtx_reg): ... here. Call it. Handle the case where we are
33226 appending a use to an empty chain.
33227 (build_def_use): Remove previous changes that convert OP_INOUT to
33228 OP_OUT operands; instead detect the case where an OP_INOUT operand
33229 uses a previously untracked register and create an empty chain for it.
33230
33231 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33232
33233 * doc/extend.texi (Function Attributes): Rewrite unfinished
33234 sentence in ms_abi documentation.
33235
33236 2010-03-17 Alan Modra <amodra@gmail.com>
33237
33238 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
33239 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
33240 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
33241 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
33242
33243 2010-03-16 Richard Henderson <rth@redhat.com>
33244
33245 PR middle-end/43365
33246 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
33247 (lower_try_finally): Save and restore eh_seq around the expansion
33248 of the try-finally.
33249
33250 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33251
33252 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
33253 statements before splitting block.
33254
33255 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33256
33257 * doc/sourcebuild.texi (Testsuites): Fix markup.
33258 Use pathnames relative to gcc/testsuite.
33259 (Test Directives): Move description of how timeout is determined.
33260 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
33261 (C Tests): Correct gcc.misc-tests directory.
33262 Framework tests now live in gcc.test-framework.
33263
33264 2010-03-16 Richard Guenther <rguenther@suse.de>
33265
33266 PR middle-end/43379
33267 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
33268 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
33269
33270 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33271 Alexandre Oliva <aoliva@redhat.com>
33272
33273 PR tree-optimization/42917
33274 * lambda-code.c (remove_iv): Skip debug statements.
33275 (lambda_loopnest_to_gcc_loopnest): Likewise.
33276 (not_interesting_stmt): Debug statements are not interesting.
33277
33278 2010-03-16 Jakub Jelinek <jakub@redhat.com>
33279
33280 PR debug/43051
33281 PR debug/43092
33282 * cselib.c (cselib_preserve_constants,
33283 cfa_base_preserved_val): New static variables.
33284 (preserve_only_constants): New function.
33285 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
33286 clear its REG_VALUES. If cselib_preserve_constants, don't
33287 empty the whole hash table, but preserve there VALUEs with constants,
33288 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
33289 (cselib_preserve_cfa_base_value): New function.
33290 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
33291 (cselib_init): Change argument to int bitfield. Set
33292 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
33293 is in it.
33294 (cselib_finish): Clear cselib_preserve_constants and
33295 cfa_base_preserved_val.
33296 * cselib.h (enum cselib_record_what): New enum.
33297 (cselib_init): Change argument to int.
33298 (cselib_preserve_cfa_base_value): New prototype.
33299 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
33300 * dse.c (dse_step1): Likewise.
33301 * cfgcleanup.c (thread_jump): Likewise.
33302 * sched-deps.c (sched_analyze): Likewise.
33303 * gcse.c (local_cprop_pass): Likewise.
33304 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
33305 If FN is non-NULL, call the callback always and whenever it returns
33306 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
33307 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
33308 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
33309 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
33310 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
33311 * var-tracking.c: Include recog.h.
33312 (bb_stack_adjust_offset): Remove.
33313 (vt_stack_adjustments): Don't call it, instead just gather the
33314 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
33315 (adjust_stack_reference): Remove.
33316 (compute_cfa_pointer): New function.
33317 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
33318 (struct adjust_mem_data): New type.
33319 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
33320 functions.
33321 (get_address_mode): New function.
33322 (replace_expr_with_values): Use it.
33323 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
33324 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
33325 (adjust_sets): Remove.
33326 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
33327 Use get_address_mode.
33328 (get_adjusted_src): Remove.
33329 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
33330 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
33331 (add_with_sets): Don't call adjust_sets.
33332 (fp_setter, vt_init_cfa_base): New functions.
33333 (vt_initialize): Change return type to bool. Move most of pool etc.
33334 initialization to the beginning of the function from end. Pass
33335 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
33336 If !frame_pointer_needed, call vt_stack_adjustment before mos
33337 vector is filled, call vt_init_cfa_base if argp/framep has been
33338 eliminated to sp. If frame_pointer_needed and argp/framep has
33339 been eliminated to hard frame pointer, set
33340 hard_frame_pointer_adjustment and call vt_init_cfa_base after
33341 encountering fp setter in the prologue. For MO_ADJUST, call
33342 log_op_type before pusing the op into mos vector, not afterwards.
33343 Call adjust_insn before cselib_process_insn/add_with_sets,
33344 call cancel_changes (0) afterwards.
33345 (variable_tracking_main_1): Adjust for vt_initialize calling
33346 vt_stack_adjustments and returning whether it succeeded or not.
33347
33348 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
33349
33350 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
33351 debug statements.
33352
33353 2010-03-15 Jakub Jelinek <jakub@redhat.com>
33354
33355 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
33356 has been set.
33357 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
33358 drap_reg has not been set.
33359
33360 2010-03-15 Michael Matz <matz@suse.de>
33361
33362 PR middle-end/43300
33363 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
33364 use it to expand block copies.
33365 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
33366 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
33367 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
33368
33369 2010-03-15 Richard Guenther <rguenther@suse.de>
33370
33371 PR tree-optimization/43367
33372 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
33373 elimination check.
33374
33375 2010-03-15 Richard Guenther <rguenther@suse.de>
33376
33377 PR tree-optimization/43317
33378 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
33379
33380 2010-03-15 Martin Jambor <mjambor@suse.cz>
33381
33382 PR tree-optimization/43141
33383 * tree-sra.c (create_abstract_origin): New function.
33384 (modify_function): Call create_abstract_origin.
33385
33386 2010-03-15 Chris Demetriou <cgd@google.com>
33387
33388 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
33389 wasn't copied.
33390
33391 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33392
33393 PR middle-end/43354
33394 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
33395 call insert_out_of_ssa_copy for default definitions.
33396
33397 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33398
33399 * graphite-clast-to-gimple.c (my_long_long): Defined.
33400 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
33401 * graphite-sese-to-poly.c (my_long_long): Defined.
33402 (scop_ivs_can_be_represented): Use it.
33403
33404 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33405
33406 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
33407 graphite-max-bbs-per-function, and loop-block-tile-size.
33408 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
33409 with "maximum".
33410 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
33411
33412 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33413
33414 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
33415 forward declaration.
33416 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
33417 (add_upper_bounds_from_estimated_nit): New.
33418 (build_loop_iteration_domains): Use it.
33419
33420 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33421
33422 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
33423
33424 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33425
33426 PR middle-end/43306
33427 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
33428 should be an INTEGER_CST. Also handle CASE_CONVERT.
33429
33430 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33431
33432 * graphite.c (graphite_initialize): To bound the number of bbs per
33433 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
33434 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
33435 * doc/invoke.texi: Document it.
33436
33437 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33438
33439 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
33440 * graphite-sese-to-poly.h (build_poly_scop): Same.
33441
33442 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
33443
33444 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
33445 the number of parameters in the scop. Use as an upper bound
33446 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
33447 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
33448 * doc/invoke.texi: Document it.
33449
33450 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
33451
33452 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
33453 * doc/c-tree.texi: Remove.
33454 * doc/generic.texi: Merge c-tree.texi here.
33455 * doc/gccint.texi (Trees): Remove menu entry.
33456 (c-tree.texi): Remove @include.
33457 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
33458 * doc/languages.texi (Reading RTL): Ditto.
33459
33460 2010-03-12 Steve Ellcey <sje@cup.hp.com>
33461
33462 PR target/42869
33463 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
33464
33465 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
33466
33467 PR middle-end/42431
33468 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
33469 code added to work around reload clobbering CONST insns.
33470
33471 2010-03-12 Jakub Jelinek <jakub@redhat.com>
33472
33473 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
33474 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
33475 (cselib_preserve_only_values): Remove retain argument, don't
33476 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
33477 * cselib.h (cselib_preserve_only_values): Remove retain argument.
33478 * var-tracking.c (micro_operation): Move insn field before union.
33479 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
33480 (struct variable_tracking_info_def): Remove n_mos field, change
33481 mos into a vector of micro_operations.
33482 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
33483 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
33484 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
33485 changing into a vector.
33486 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
33487 come before all other uops generated by add_stores.
33488 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
33489 argument removal.
33490 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
33491 a vector. Run just one pass over the bbs instead of separate counting
33492 and computation phase.
33493 (vt_finalize): Free VTI (bb)->mos vector instead of array.
33494
33495 PR debug/43329
33496 * tree-inline.c (remap_decls): Put old_var rather than origin_var
33497 into *nonlocalized_list vector.
33498 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
33499 even if origin is non-NULL.
33500 (gen_variable_die): Likewise.
33501 (process_scope_var): Don't change origin.
33502 (gen_decl_die): Likewise.
33503 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
33504 before adding new edges instead of after it, fix moving over
33505 debug stmts.
33506
33507 2010-03-11 David S. Miller <davem@davemloft.net>
33508
33509 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
33510 of four.
33511 * configure: Rebuild.
33512
33513 2010-03-11 Martin Jambor <mjambor@suse.cz>
33514
33515 PR tree-optimization/43257
33516 * tree.c (assign_assembler_name_if_neeeded): New function.
33517 (free_lang_data_in_cgraph): Assembler name assignment moved to the
33518 above new function.
33519 * tree.h (assign_assembler_name_if_neeeded): Declare.
33520 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
33521 the function if needed.
33522
33523 2010-03-11 Chris Demetriou <cgd@google.com>
33524
33525 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
33526 include/stdint-gcc.h, and include/stdint.h world-readable.
33527
33528 2010-03-11 Richard Guenther <rguenther@suse.de>
33529
33530 PR tree-optimization/43255
33531 * tree-vrp.c (process_assert_insertions_for): Do not insert
33532 asserts for trivial conditions.
33533
33534 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33535
33536 PR tree-optimization/43280
33537 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
33538 generation. Move calculation of size out of the if branch.
33539 (find_bswap): Modify compare number generation.
33540
33541 2010-03-11 Richard Guenther <rguenther@suse.de>
33542
33543 PR lto/43200
33544 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
33545 (input_gimple_stmt): Fixup handled component types during
33546 operand read. Also fix up decls in ADDR_EXPRs.
33547
33548 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
33549
33550 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
33551 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
33552
33553 2010-03-10 Jan Hubicka <jh@suse.cz>
33554
33555 PR c/43288
33556 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
33557 * varasm.c (get_variable_section): Don't do that here...
33558 (make_decl_rtl): ... and here.
33559 (do_assemble_alias): Produce decl RTL.
33560 (assemble_alias): Likewise.
33561
33562 2010-03-10 Jakub Jelinek <jakub@redhat.com>
33563
33564 PR debug/43290
33565 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
33566 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
33567 of fde->vdrap_reg.
33568 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
33569 (based_loc_descr): Only express drap or vdrap regno based expressions
33570 using DW_OP_fbreg when not optimizing.
33571 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
33572 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
33573 REG_CFA_SET_VDRAP note.
33574
33575 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
33576
33577 PR tree-optimization/43236
33578 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
33579 error in calculation of base address in reverse iteration case.
33580 (generate_builtin): Take number of latch executions if the statement
33581 is in the latch.
33582
33583 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
33584
33585 PR middle-end/42859
33586 * tree-eh.c: Include pointer-set.h.
33587 (lower_eh_dispatch): Filter out duplicate case labels and
33588 remove the unneeded edge when the label is unused. Return
33589 true when some edges are removed.
33590 (execute_lower_eh_dispatch): When any lowering resulted in
33591 removing an edge, also delete unreachable blocks.
33592
33593 2010-03-10 Jakub Jelinek <jakub@redhat.com>
33594
33595 PR bootstrap/43287
33596 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
33597 UNSPEC_MACHOPIC_OFFSET.
33598
33599 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
33600
33601 PR target/43294
33602 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
33603 (m68k_delegitimize_address): New function.
33604
33605 2010-03-09 Jakub Jelinek <jakub@redhat.com>
33606
33607 PR debug/43299
33608 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
33609
33610 PR debug/43299
33611 * var-tracking.c (adjust_sets): New function.
33612 (count_with_sets, add_with_sets): Use it.
33613 (get_adjusted_src): New inline function.
33614 (add_stores): Use it.
33615
33616 PR debug/43304
33617 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
33618 call cselib_dummy_expand_value_rtx_cb instead of
33619 cselib_expand_value_rtx_cb.
33620
33621 PR debug/43293
33622 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
33623 * config/i386/i386.c: Include debug.h and dwarf2out.h.
33624 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
33625 and .cfi_endproc around the pic thunks.
33626 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
33627 all queued unwind info register saves are saved before the call.
33628 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
33629 considered as sp-=4 for unwind info and the pop as sp+=4 which
33630 also clobbers dest, but doesn't actually restore it.
33631
33632 PR debug/43290
33633 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
33634 RTX_FRAME_RELATED_P.
33635
33636 2010-03-09 Jie Zhang <jie@codesourcery.com>
33637
33638 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
33639 whitespaces in output template.
33640
33641 2010-03-09 Jie Zhang <jie@codesourcery.com>
33642
33643 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
33644 out array boundary.
33645
33646 2010-03-08 Jakub Jelinek <jakub@redhat.com>
33647
33648 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
33649 builtins.exp in a separate job.
33650
33651 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33652
33653 * graphite-sese-to-poly.c (add_param_constraints): Use
33654 lower_bound_in_type and upper_bound_in_type.
33655
33656 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33657
33658 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
33659 instead of unsigned_type_node.
33660
33661 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33662 Reza Yazdani <reza.yazdani@amd.com>
33663
33664 PR middle-end/43065
33665 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
33666 on pointer type parameters.
33667
33668 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
33669
33670 PR middle-end/42644
33671 PR middle-end/42130
33672 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
33673 handle conversions from pointer to integers.
33674 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
33675 induction variable, to be able to work with code generated by CLooG.
33676 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
33677 (build_poly_scop): Bail out if we cannot codegen a loop.
33678
33679 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
33680
33681 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
33682 code generation with gloog_error.
33683
33684 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33685
33686 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
33687 Call fold_convert on all the returned values.
33688 (expand_scalar_variables_expr): Pass to
33689 expand_scalar_variables_ssa_name the type of the resulting expression.
33690
33691 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33692
33693 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
33694 ppl_min_for_le_pointset.
33695 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
33696 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
33697
33698 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33699
33700 * graphite-dependences.c (map_into_dep_poly): Removed.
33701 (dependence_polyhedron_1): Use combine_context_id_scat.
33702
33703 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33704
33705 * graphite-poly.h (struct poly_scattering): Add layout documentation.
33706 (struct poly_bb): Same.
33707 (combine_context_id_scat): New.
33708
33709 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33710
33711 PR middle-end/42326
33712 * sese.c (name_defined_in_loop_p): Return false for default
33713 definitions.
33714
33715 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33716
33717 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
33718 and clean up the logic.
33719
33720 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
33721
33722 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
33723 early return.
33724
33725 2010-03-08 Jakub Jelinek <jakub@redhat.com>
33726
33727 * var-tracking.c (remove_cselib_value_chains): Define only for
33728 ENABLE_CHECKING.
33729 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
33730 delete_slot_part, emit_notes_for_differences_1): Don't call
33731 remove_cselib_value_chains here.
33732 (set_slot_part, emit_notes_for_differences_2): Don't call
33733 add_cselib_value_chains here.
33734 (preserved_values): New vector.
33735 (preserve_value): New function.
33736 (add_uses, add_stores, vt_add_function_parameters): Use it
33737 instead of cselib_preserve_value.
33738 (changed_values_stack): New vector.
33739 (check_changed_vars_0): New function.
33740 (check_changed_vars_1, check_changed_vars_2): Use it.
33741 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
33742 changed_values_stack VALUEs.
33743 (vt_emit_notes): For all preserved_values call
33744 add_cselib_value_chains. If ENABLE_CHECKING call
33745 remove_cselib_value_chains before verifying value_chains is empty.
33746 Initialize and free changed_values_stack.
33747 (vt_initialize): Initialize preserved_values.
33748 (vt_finalize): Free preserved_values.
33749
33750 2010-03-08 Richard Guenther <rguenther@suse.de>
33751
33752 PR tree-optimization/43269
33753 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
33754 region detection.
33755
33756 2010-03-08 Martin Jambor <mjambor@suse.cz>
33757
33758 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
33759 (ipa_is_param_called): Removed.
33760 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
33761 (ipa_print_node_params): Do not print the called flag.
33762 (ipa_write_node_info): Do not stream the called flag.
33763 (ipa_read_node_info): Likewise.
33764
33765 2010-03-07 Jakub Jelinek <jakub@redhat.com>
33766
33767 PR debug/43176
33768 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
33769 * cselib.c (struct expand_value_data): Add dummy field.
33770 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
33771 dummy to false.
33772 (cselib_dummy_expand_value_rtx_cb): New function.
33773 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
33774 any rtl.
33775 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
33776 * var-tracking.c: Include pointer-set.h.
33777 (variable): Change n_var_parts to char from int. Add
33778 cur_loc_changed and in_changed_variables fields.
33779 (variable_canonicalize): Remove.
33780 (shared_var_p): New inline function.
33781 (unshare_variable): Maintain cur_loc_changed and
33782 in_changed_variables fields. If var was in changed_variables,
33783 replace it there with new_var. Just copy cur_loc instead of
33784 resetting it to something else.
33785 (variable_union): Don't recompute cur_loc. Use shared_var_p.
33786 (dataflow_set_union): Don't call variable_canonicalize.
33787 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
33788 of their DEBUG_EXPR_TREE_DECLs.
33789 (canonicalize_loc_order_check): Verify that cur_loc is NULL
33790 and in_changed_variables and cur_loc_changed is false.
33791 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
33792 and cur_loc_changed. Don't update cur_loc here.
33793 (variable_merge_over_src): Don't call variable_canonicalize.
33794 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
33795 removing loc that is equal to cur_loc, clear cur_loc,
33796 set cur_loc_changed and ensure variable_was_changed is called.
33797 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
33798 compare pointers in cur_loc check, if it is equal to loc,
33799 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
33800 (variable_different_p): Remove compare_current_location argument,
33801 don't compare cur_loc.
33802 (dataflow_set_different_1): Adjust variable_different_p caller.
33803 (variable_was_changed): If dv had some var in changed_variables
33804 already, reset in_changed_variables flag for it and propagate
33805 cur_loc_changed over to the new variable. On empty var
33806 always set cur_loc_changed. Set in_changed_variables on whatever
33807 var is added to changed_variables.
33808 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
33809 Use shared_var_p. When removing loc that is equal to cur_loc,
33810 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
33811 end, don't set it to something else, just call variable_was_changed.
33812 (delete_slot_part): Use shared_var_p. When cur_loc equals to
33813 loc being removed, clear cur_loc and set cur_loc_changed.
33814 Set cur_loc_changed if all locations have been removed.
33815 (struct expand_loc_callback_data): New type.
33816 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
33817 allocated. Always create SUBREGs if simplify_subreg failed.
33818 Prefer to use cur_loc, when that fails and still in
33819 changed_variables (and seen first time) recompute it. Set
33820 cur_loc_changed of variables which had to change cur_loc and
33821 compute elcd->cur_loc_changed if any of the subexpressions used
33822 had to change cur_loc.
33823 (vt_expand_loc): Adjust to pass arguments in
33824 expand_loc_callback_data structure.
33825 (vt_expand_loc_dummy): New function.
33826 (emitted_notes): New variable.
33827 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
33828 that weren't used for any other decl in current
33829 emit_notes_for_changes call call vt_expand_loc_dummy to update
33830 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
33831 first loc_chain location if NULL before. Always use just
33832 cur_loc instead of first loc_chain location. When cur_loc_changed
33833 is false, when not --enable-checking=rtl just don't emit any note.
33834 When rtl checking, compute the note and assert it is the same
33835 as previous note. Clear cur_loc_changed and in_changed_variables
33836 at the end before removing from changed_variables.
33837 (check_changed_vars_3): New function.
33838 (emit_notes_for_changes): Traverse changed_vars to call
33839 check_changed_vars_3 on each changed var.
33840 (emit_notes_for_differences_1): Clear cur_loc_changed and
33841 in_changed_variables. Recompute cur_loc of new_var.
33842 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
33843 (vt_emit_notes): Initialize and destroy emitted_notes.
33844
33845 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
33846
33847 PR rtl-optimization/42220
33848 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
33849 Use verify_reg_tracked to determine if we should use OP_OUT rather
33850 than OP_INOUT.
33851 (build_def_use): If we see an in-out operand for a register that we
33852 know nothing about, treat is an output if possible, fail the block if
33853 not.
33854
33855 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33856
33857 PR debug/42897
33858 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
33859 permanently.
33860
33861 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33862
33863 PR debug/42897
33864 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
33865 uses of relevant DEFs that are dead outside the loop too.
33866
33867 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
33868
33869 * var-tracking.c (dataflow_set_merge): Swap src and src2.
33870 Reverted:
33871 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33872 PR debug/41371
33873 * var-tracking.c (values_to_unmark): New variable.
33874 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33875 values_to_unmark vector. Moved body to...
33876 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33877 instead queue it into values_to_unmark vector.
33878 (vt_find_locations): Free values_to_unmark vector.
33879
33880 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
33881
33882 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
33883 (site.exp): Export them when plugins are enabled.
33884
33885 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
33886
33887 PR middle-end/42326
33888 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
33889 that contain scevs.
33890 (chrec_fold_multiply): Same.
33891
33892 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
33893
33894 PR c/43248
33895 * c-decl.c (build_compound_literal): Return early if init is
33896 an error_mark_node.
33897
33898 2010-03-04 Martin Jambor <mjambor@suse.cz>
33899
33900 PR tree-optimization/43164
33901 PR tree-optimization/43191
33902 * tree-sra.c (type_consists_of_records_p): Reject records with
33903 zero-size bit-fields at the end.
33904
33905 2010-03-04 Mike Stump <mikestump@comcast.net>
33906
33907 * Makefile.in (TAGS): Remove *.y.
33908
33909 2010-03-04 Richard Guenther <rguenther@suse.de>
33910
33911 PR tree-optimization/40761
33912 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
33913 in reverse order.
33914 (my_rev_post_order_compute): New function.
33915 (init_pre): Call it.
33916
33917 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
33918
33919 PR middle-end/43209
33920 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
33921 decrease the cost of an IV candidate when the cost is infinite.
33922
33923 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33924
33925 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
33926 Use '3DNow!' for the extension of that name, ensure normal space
33927 after the string.
33928 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
33929
33930 2010-03-03 Jeff Law <law@redhat.com>
33931
33932 * PR middle-end/32693
33933 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
33934 than gen_rtx_SUBREG.
33935 (extract_bit_field_1): Likewise.
33936
33937 2010-03-03 Janis Johnson <janis187@us.ibm.com>
33938
33939 * doc/sourcebuild.texi (Test directives): Document that arguments
33940 include-opts and exclude-opts are now optional for dg-skip-if,
33941 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
33942
33943 2010-03-03 Jason Merrill <jason@redhat.com>
33944
33945 PR c++/12909
33946 * cgraph.h (varpool_node): Add extra_name field.
33947 * varpool.c (varpool_extra_name_alias): New.
33948 (varpool_assemble_decl): Emit extra name aliases.
33949 (varpool_mark_needed_node): Look past an extra name alias.
33950 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
33951 * lto-streamer-in.c (lto_input_tree): Read it.
33952 * lto-streamer-out.c (output_unreferenced_globals): Write it.
33953
33954 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
33955
33956 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
33957 (sparc*-*-solaris2*): ...this.
33958
33959 2010-03-03 Jakub Jelinek <jakub@redhat.com>
33960
33961 PR debug/43229
33962 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
33963 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
33964 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
33965 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
33966
33967 PR debug/43237
33968 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
33969 fallthrough to default handling, just with want_address 0 instead of 2.
33970 For single element lists, add_AT_loc directly, otherwise create an
33971 artificial variable DIE and stick location list to it.
33972
33973 PR debug/43177
33974 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
33975 (VAL_EXPR_HAS_REVERSE): Define.
33976 (reverse_op): New function.
33977 (add_stores): For reversible operations add an extra MO_VAL_USE.
33978
33979 2010-03-02 Jason Merrill <jason@redhat.com>
33980
33981 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
33982
33983 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
33984
33985 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
33986 (sparc64-*-linux*): Likewise.
33987 (sparc64-*-solaris2*): Include assembler files before linker ones.
33988 (sparc-*-solaris2*): Simplify and reorder to match previous case.
33989 * config/sparc/gas.h: Delete.
33990 * config/sparc/sol2-64.h: Add copyright notice.
33991 * config/sparc/sol2-gas-bi.h: Likewise.
33992 * config/sparc/sol2-gld.h: Likewise.
33993 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
33994 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
33995 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
33996 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
33997 (sparc_elf_asm_named_section): Rename into...
33998 (sparc_solaris_elf_asm_named_section): ...this. Always define.
33999
34000 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
34001
34002 * config/alpha/alpha.c (override_options): Fix -mtune error message.
34003
34004 2010-03-02 Jeff Law <law@redhat.com>
34005
34006 PR middle-end/42431
34007 * reload1.c (rtx_p, substitute_stack): Declare.
34008 (substitute): Record addresses of changed rtxs.
34009 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
34010 Restore the original rtx when complete.
34011 (reload): Free subsitute_stack when complete.
34012
34013 2010-03-02 Janis Johnson <janis187@us.ibm.com>
34014
34015 * doc/gccint.texi (menu): Add Testsuites as a chapter.
34016 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
34017 new chapter.
34018 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
34019 LTO Testing, gcov Testing, profopt Testing, compat Testing,
34020 Torture Tests): Change from subsection to section.
34021
34022 2010-03-02 Jakub Jelinek <jakub@redhat.com>
34023 Steven Bosscher <steven@gcc.gnu.org>
34024
34025 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
34026 instead of bb.
34027
34028 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
34029
34030 PR middle-end/42640
34031 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
34032 the assignment from the new induction variable to the assignment
34033 of the value from the original loop PHI function.
34034
34035 2010-03-01 Janis Johnson <janis187@us.ibm.com>
34036 Daniel Jacobowitz <dan@codesourcery.com>
34037
34038 * doc/sourcebuild.texi (Test directives): Clarify options to
34039 dg-skip-if.
34040
34041 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34042
34043 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
34044 Disable cfi directives unless GCC and gas agree on using read-only
34045 .eh_frame sections for 64-bit.
34046 * configure: Regenerate.
34047
34048 2010-03-01 Richard Guenther <rguenther@suse.de>
34049
34050 PR tree-optimization/43220
34051 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
34052 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
34053
34054 2010-03-01 Richard Guenther <rguenther@suse.de>
34055 Martin Jambor <mjambor@suse.cz>
34056
34057 PR middle-end/41250
34058 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
34059 gimplified parameters.
34060
34061 2010-03-01 Christian Bruel <christian.bruel@st.com>
34062
34063 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
34064
34065 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
34066
34067 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
34068
34069 2010-03-01 Richard Guenther <rguenther@suse.de>
34070
34071 PR middle-end/43213
34072 * expr.c (expand_assignment): Use the alias-oracle to tell
34073 if the rhs aliases the result decl.
34074
34075 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34076
34077 PR pch/14940
34078 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
34079 to sol_gt_pch_get_address.
34080 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
34081 64-bit, SPARC and x86.
34082 (sol_gt_pch_get_address): New function.
34083
34084 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
34085
34086 * toplev.h (inform_n, error_n): Declare.
34087 * diagnostic.c (inform_n, error_n): New function.
34088
34089 2010-03-01 Jakub Jelinek <jakub@redhat.com>
34090
34091 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
34092 has no rtl yet when processing local_decls, queue it and recheck
34093 if deferred stack allocation hasn't assigned it rtl.
34094
34095 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
34096
34097 * config/sh/sh.c (unspec_bbr_uid): New.
34098 (gen_block_redirect): Use it instead of INSN_UID.
34099 (gen_far_branch): Likewise.
34100
34101 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
34102
34103 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
34104 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
34105
34106 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34107
34108 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
34109 (Warning Options): -Wno-conversion-null is valid for
34110 Objective-C++ as well.
34111 * doc/tm.texi (Named Address Spaces): Likewise.
34112 * doc/plugins.texi (Plugins): Replace TABs with spaces.
34113 * doc/tree-ssa.texi (Tree SSA): Likewise.
34114
34115 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34116
34117 PR bootstrap/43202
34118 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
34119 by default. Don't set the default arch for
34120 i[34567]86-*-darwin*|x86_64-*-darwin*.
34121
34122 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34123
34124 PR bootstrap/43202
34125 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
34126 default. Set the default 32bit/64bit archs with $with_arch
34127 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
34128
34129 2010-02-27 Richard Guenther <rguenther@suse.de>
34130
34131 PR tree-optimization/43186
34132 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
34133 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
34134 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
34135 unroller iterations.
34136
34137 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34138
34139 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
34140 required and i[34567]86-*-* targets don't support 64bit ISA.
34141
34142 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
34143
34144 PR ada/43096
34145 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34146 the same alias set.
34147
34148 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
34149
34150 * config.gcc: Set the default arch at least to Prescott for
34151 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
34152 if SSE math is enabled.
34153
34154 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34155
34156 * diagnostic.c (diagnostic_initialize): Update.
34157 (diagnostic_report_diagnostic): Test inhibit_notes_p for
34158 informative notes.
34159 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
34160 (diagnostic_inhibit_notes): New.
34161 * toplev.c (process_options): inhibit notes with -fcompare-debug.
34162
34163 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34164
34165 PR c/20631
34166 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
34167 * doc/standards.texi: Likewise.
34168 * doc/extend.texi: Likewise.
34169 * doc/trouble.texi: Likewise.
34170 * doc/cppopts.texi: Likewise.
34171 * doc/install.texi: Likewise.
34172 * c.opt (std=c90,std=gnu90): New options.
34173 * c-opts.c (c_common_handle_option): Handle them.
34174
34175 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34176
34177 PR c/24577
34178 * c-decl.c (undeclared_variable): Use an informative note.
34179
34180 2010-02-26 Richard Guenther <rguenther@suse.de>
34181
34182 PR tree-optimization/43186
34183 * gimple.h (gimple_fold): Remove.
34184 * gimple.c (gimple_fold): Remove. Inline into single user ...
34185 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
34186 Try harder for conditions.
34187
34188 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34189
34190 PR debug/43190
34191 * function.c (used_types_insert): Don't skip through named pointer
34192 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
34193 and it is different from the main variant's type.
34194
34195 2010-02-26 Nick Clifton <nickc@redhat.com>
34196
34197 * config/rx/rx.md (sminsi3): Remove bogus alternative.
34198
34199 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
34200
34201 * config.gcc: Support --with-fpmath=sse for x86.
34202
34203 * config/i386/ssemath.h: New.
34204
34205 * doc/install.texi (--with-fpmath=sse): Documented.
34206
34207 2010-02-26 Richard Guenther <rguenther@suse.de>
34208
34209 PR tree-optimization/43188
34210 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
34211 vector types of over-aligned element type.
34212
34213 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
34214
34215 PR target/43175
34216 * config/i386/i386.c (expand_vec_perm_blend): Use correct
34217 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
34218
34219 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
34220
34221 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
34222
34223 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34224
34225 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
34226 * var-tracking.c: Include diagnostic.h.
34227 (debug_dv): New function.
34228 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
34229
34230 PR debug/43160
34231 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
34232 (add_value_chain, add_value_chains, remove_value_chain,
34233 remove_value_chains): Handle DEBUG_EXPRs.
34234 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
34235
34236 PR debug/43161
34237 * regcprop.c (struct queued_debug_insn_change): New type.
34238 (struct value_data_entry): Add debug_insn_changes field.
34239 (struct value_data): Add n_debug_insn_changes field.
34240 (debug_insn_changes_pool): New variable.
34241 (free_debug_insn_changes, apply_debug_insn_changes,
34242 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
34243 (kill_value_one_regno): Call free_debug_insn_changes if needed.
34244 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
34245 fields.
34246 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
34247 changes for them.
34248 (copyprop_hardreg_forward_1): Don't call apply_change_group for
34249 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
34250 changes, call cprop_find_used_regs via note_stores.
34251 (copyprop_hardreg_forward): When copying vd from predecessor
34252 which has any queued DEBUG_INSN changes, make sure the pointers are
34253 cleared. At the end call df_analyze and then if there are any
34254 DEBUG_INSN changes queued at the end of some basic block for still
34255 live registers, apply them.
34256 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
34257
34258 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
34259
34260 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
34261 (arm*-*-*): Ditto.
34262
34263 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
34264
34265 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
34266 targets. Set the default with_cpu/with_arch from arch/cpu.
34267 Allow x86-64 and native for with_cpu/with_arch.
34268
34269 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
34270
34271 * ebitmap.c: Change calls to verify_popcount with calls to
34272 sbitmap_verify_popcount.
34273 (ebitmap_clear_bit): Fixed map->cacheindex test and
34274 map>cache update when bit clearing results in an empty
34275 element.
34276
34277 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34278
34279 PR target/43154
34280 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
34281 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
34282 and support both V2DF and V2DI modes.
34283 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
34284 support both V2DF and V2DI modes.
34285 (general): Delete trailing whitespace from a few patterns.
34286
34287 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34288 V2DF/V2DI interleave high/low builtins.
34289
34290 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
34291 new VSX builtins.
34292
34293 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
34294 interleave high/low functions.
34295
34296 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
34297
34298 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
34299 #pragma extern_prefix.
34300
34301 2010-02-25 Jakub Jelinek <jakub@redhat.com>
34302
34303 PR debug/43166
34304 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
34305 BLKmode, assert op0 is a MEM and just adjust its mode.
34306
34307 PR debug/43165
34308 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
34309 if bitpos isn't multiple of mode's bitsize.
34310
34311 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34312
34313 * c.opt (-ftemplate-depth=): New.
34314 (-ftemplate-depth-): Deprecate.
34315 * optc-gen.awk: Handle -ftemplate-depth=.
34316 * opth-gen.awk: Likewise.
34317 * c-opts.c (c_common_handle_option): Likewise.
34318 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
34319
34320 2010-02-24 Jason Merrill <jason@redhat.com>
34321
34322 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
34323
34324 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34325
34326 * cfg.c (alloc_aux_for_block): Remove inline.
34327 (alloc_aux_for_edge): Likewise.
34328
34329 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34330
34331 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
34332
34333 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34334
34335 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
34336 * config/i386/sol2-gas.h: New file.
34337 * config.gcc (i[34567]86-*-solaris2*): Use it.
34338
34339 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34340
34341 PR c/43128
34342 * c-typeck.c (ep_convert_and_check): New.
34343 (build_conditional_expr): Use it.
34344 (build_binary_op): Likewise.
34345
34346 2010-02-24 Jakub Jelinek <jakub@redhat.com>
34347
34348 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
34349
34350 PR debug/43150
34351 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
34352 bounds even for -O+.
34353 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
34354 expr needs to have DECL_NAME set.
34355
34356 2010-02-24 Nick Clifton <nickc@redhat.com>
34357
34358 * config/mep/mep.c: Include gimple.h.
34359 (mep_function_uses_sp): Delete unused function.
34360 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
34361 parameters. Use unsigned integers to count args. Return a
34362 NULL_RTX instead of an error_mark_node. Toidy up formatting.
34363
34364 2010-02-23 Jakub Jelinek <jakub@redhat.com>
34365
34366 PR target/43107
34367 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
34368 greater or equal to nelt instead of 2 * nelt.
34369 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
34370 with nelt - 1.
34371
34372 2010-02-23 Jason Merrill <jason@redhat.com>
34373
34374 PR debug/42800
34375 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
34376 in cfun->local_decls even if they have register types.
34377
34378 PR c++/42837
34379 * stor-layout.c (place_field): Don't warn about unnecessary
34380 DECL_PACKED if the type is packed.
34381
34382 2010-02-23 Jakub Jelinek <jakub@redhat.com>
34383
34384 PR target/43139
34385 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
34386 GOTOFF relocs, even when the base reg isn't pic pointer.
34387
34388 2010-02-23 Michael Matz <matz@suse.de>
34389
34390 PR debug/43077
34391 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
34392 (expand_gimple_basic_block): Generate and use debug temps if there
34393 are debug uses left after the last real use of TERed ssa names.
34394 Unlink debug immediate uses when they are expanded.
34395
34396 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
34397
34398 PR 43123
34399 * config/i386/i386.c (override_options): Reorganise to provide
34400 better error messages.
34401
34402 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34403
34404 PR middle-end/43083
34405 * graphite-scop-detection.c (create_single_exit_edge): Move
34406 the call to find_single_exit_edge to....
34407 (create_sese_edges): ...here. Don't handle multiple edges
34408 exiting the function.
34409 (build_graphite_scops): Don't handle multiple edges
34410 exiting the function.
34411
34412 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34413
34414 PR middle-end/43097
34415 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
34416 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
34417
34418 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
34419
34420 PR middle-end/43026
34421 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
34422
34423 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
34424
34425 PR c++/43126
34426 * c-typeck.c (convert_arguments): Print declaration location.
34427 * c-common.c (validate_nargs): Rename as
34428 builtin_function_validate_nargs.
34429 (check_builtin_function_arguments): Update.
34430
34431 2010-02-22 Richard Guenther <rguenther@suse.de>
34432
34433 PR lto/43045
34434 * tree-inline.c (declare_return_variable): Use the type of
34435 the call stmt lhs if available.
34436
34437 2010-02-22 Duncan Sands <baldrick@free.fr>
34438
34439 * passes.c (register_pass): Always consider all pass lists when
34440 ref_pass_instance_number is zero.
34441
34442 2010-02-22 Richard Guenther <rguenther@suse.de>
34443
34444 PR tree-optimization/42749
34445 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
34446 parameter. Do arithmetic in the original type.
34447 (update_accumulator_with_ops): Likewise.
34448 (adjust_accumulator_values): Adjust.
34449
34450 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34451
34452 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
34453 (QI to BLKmode splitter): New splitter.
34454
34455 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
34456
34457 * config/i386/i386.c (initial_ix86_tune_features): Turn on
34458 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
34459
34460 2010-02-22 Richard Guenther <rguenther@suse.de>
34461
34462 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
34463
34464 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
34465
34466 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
34467 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
34468 ($(T)crti.o, $(T)crtn.o): Remove rules.
34469
34470 2010-02-21 Tobias Burnus <burnus@net-b.de>
34471
34472 PR fortran/35259
34473 * doc/invoke.texi (-fassociative-math): Document that this
34474 option is automatically enabled for Fortran.
34475
34476 2010-02-20 David S. Miller <davem@davemloft.net>
34477
34478 * configure.ac: Test if linker and assembler properly support
34479 GOTDATA_OP relocations.
34480 * configure: Rebuild.
34481 * config.in: Likewise.
34482 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
34483 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
34484 (movsi_high_pic): Likewise.
34485 (movdi_lo_sum_pic): Likewise.
34486 (movdi_high_pic): Likewise.
34487 (movsi_pic_gotdata_op): New pattern.
34488 (movdi_pic_gotdata_op): Likewise.
34489 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
34490 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
34491
34492 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
34493
34494 PR target/43067
34495 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
34496 attribute to ssemul.
34497 (xop_mulv2div2di3_high): Ditto.
34498
34499 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
34500
34501 PR c++/35669
34502 * c.opt (Wconversion-null): New option.
34503 * doc/invoke.texi (Wconversion-null): Document.
34504
34505 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
34506
34507 * common.opt (Wlarger-than-): Add Undocumented.
34508
34509 2010-02-19 Mike Stump <mikestump@comcast.net>
34510
34511 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
34512
34513 2010-02-19 Jason Merrill <jason@redhat.com>
34514
34515 PR target/40332
34516 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
34517 * configure: Likewise.
34518
34519 2010-02-20 Alan Modra <amodra@gmail.com>
34520
34521 PR middle-end/42344
34522 * cgraph.h (cgraph_make_decl_local): Declare.
34523 * cgraph.c (cgraph_make_decl_local): New function.
34524 (cgraph_make_node_local): Use it.
34525 * cgraphunit.c (cgraph_function_versioning): Likewise.
34526 * ipa.c (function_and_variable_visibility): Likewise.
34527
34528 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34529
34530 PR bootstrap/43121
34531 * except.c (sjlj_emit_function_enter): Don't call
34532 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
34533 directly.
34534 * rtl.h (add_reg_br_prob_note): Remove prototype.
34535
34536 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
34537
34538 PR 41779
34539 * c-common.c (conversion_warning): Remove widening conversions
34540 before checking the conversion of integers to reals.
34541
34542 2010-02-19 Mike Stump <mikestump@comcast.net>
34543
34544 PR middle-end/43125
34545 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
34546
34547 PR objc/43061
34548 * cgraphunit.c (process_function_and_variable_attributes): Check
34549 DECL_PRESERVE_P instead of looking up attribute "used".
34550 * ipa-pure-const.c (check_decl): Likewise.
34551 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
34552 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
34553 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
34554 instead of attribute "used".
34555 * config/sol2-c.c (solaris_pragma_init): Likewise.
34556 (solaris_pragma_fini): Likewise.
34557
34558 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34559
34560 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
34561 Use XCNEW instead of xcalloc.
34562 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
34563 XNEW instead of xmalloc.
34564 (get_fields): Use XNEWVEC instead of xmalloc.
34565
34566 PR debug/43084
34567 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
34568 populate vars array.
34569 (create_new_general_access): For debug stmts just reset value.
34570 (get_stmt_accesses): For accesses within debug stmts just record them
34571 using add_access_to_acc_sites instead of preventing the peeling or
34572 counting them as accesses.
34573
34574 PR middle-end/42233
34575 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
34576
34577 2010-02-19 Richard Guenther <rguenther@suse.de>
34578
34579 PR tree-optimization/42916
34580 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
34581 instructions.
34582
34583 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
34584
34585 * configure.ac: Replace all uses of changequote in macro arguments
34586 with proper quoting.
34587
34588 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34589
34590 PR middle-end/42233
34591 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
34592
34593 2010-02-19 Richard Guenther <rguenther@suse.de>
34594
34595 PR tree-optimization/42944
34596 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
34597 test for aliasing with errno.
34598
34599 2010-02-19 Jakub Jelinek <jakub@redhat.com>
34600
34601 PR middle-end/42233
34602 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
34603 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
34604 * dojump.c: Include output.h.
34605 (inv): New inline function.
34606 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
34607 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
34608 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
34609 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
34610 argument, pass it down to other calls.
34611 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
34612 add REG_BR_PROB note to the conditional jump.
34613 * cfgexpand.c (add_reg_br_prob_note): Removed.
34614 (expand_gimple_cond): Don't call it, add the probability
34615 as last argument to jumpif_1/jumpifnot_1.
34616 * Makefile.in (dojump.o): Depend on output.h.
34617 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
34618 callers.
34619 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
34620 * stmt.c (do_jump_if_equal): Likewise.
34621 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
34622 * loop-unswitch.c (compare_and_jump_seq): Likewise.
34623 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
34624 Likewise.
34625 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
34626 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
34627 jumpifnot_1 callers.
34628 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
34629 callers.
34630 (store_expr): Adjust jumpifnot caller.
34631 (store_constructor): Adjust jumpif caller.
34632
34633 PR middle-end/42233
34634 * gimplify.c (gimple_boolify): For __builtin_expect call
34635 gimple_boolify also on its first argument.
34636
34637 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
34638
34639 * configure.ac (gnu-unique-object): Wrap regexps using [] in
34640 changequote block.
34641 (__stack_chk_fail): Ditto. Remove quadrigraphs.
34642 * configure: Regenerated.
34643
34644 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34645
34646 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
34647 lang_hooks.types_compatible_p instead of comptypes.
34648
34649 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34650
34651 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
34652 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
34653 if __prefer_thumb__ is defined.
34654
34655 2010-02-18 Martin Jambor <mjambor@suse.cz>
34656
34657 PR tree-optimization/43066
34658 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
34659 array with zero-sized element type.
34660
34661 2010-02-18 Jakub Jelinek <jakub@redhat.com>
34662
34663 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
34664 rtx, allocate struct var_loc_node here and return it to the
34665 caller, and only if it is actually needed.
34666 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
34667 move it earlier and return immediately if it returns NULL.
34668
34669 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
34670
34671 * config/sparc/gas.h: New file. Restore
34672 TARGET_ASM_NAMED_SECTION to its ELF default.
34673 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
34674 check !HAVE_GNU_AS.
34675 * config/sparc/sparc.c (sparc_elf_asm_named_section):
34676 Likewise. Add ATTRIBUTE_UNUSED to prototype.
34677 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
34678 after sparc/sysv4.h.
34679
34680 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
34681
34682 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
34683
34684 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
34685
34686 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
34687 patterns from predicated pattern.
34688
34689 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
34690
34691 PR target/43103
34692 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
34693 for insn mnemonic suffix.
34694
34695 2010-02-17 Richard Guenther <rguenther@suse.de>
34696
34697 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
34698 to loop PHI nodes.
34699
34700 2010-02-17 Jakub Jelinek <jakub@redhat.com>
34701
34702 PR debug/42918
34703 * caller-save.c (save_call_clobbered_regs): If BB ends with
34704 a DEBUG_INSN, move any notes in between last real insn and the last
34705 DEBUG_INSN after the last DEBUG_INSN.
34706
34707 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
34708
34709 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
34710 Fix return type. Fix argument type. Explain meaning of return value.
34711
34712 2010-02-16 Richard Guenther <rguenther@suse.de>
34713
34714 PR tree-optimization/41043
34715 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
34716 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
34717 statements ...
34718 (vrp_visit_phi_node): ... but only for loop PHI nodes.
34719
34720 2010-02-16 Ira Rosen <irar@il.ibm.com>
34721
34722 PR tree-optimization/43074
34723 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
34724 * tree-vect-loop.c (vect_analyze_loop_operations): Add
34725 vectorizable cycles in hybrid SLP check.
34726 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
34727
34728 2010-02-16 Richard Guenther <rguenther@suse.de>
34729
34730 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
34731 (true_dependence): If memrefs_conflict_p computes must-alias
34732 trust it. Move TBAA check after offset-based disambiguation.
34733 (canon_true_dependence): Likewise.
34734
34735 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
34736
34737 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
34738 * doc/invoke.texi: Document it.
34739 * var-tracking.c: Include toplev.h and params.h.
34740 (vt_find_locations): Return bool indicating success. Compute
34741 hash sizes unconditionally. Check new parameter, report.
34742 (variable_tracking_main_1): Check vt_find_locations results and
34743 retry. Renamed from...
34744 (variable_tracking_main): ... this. New wrapper to preserve
34745 flag_var_tracking_assignments.
34746 * Makefile.in (var-tracking.o): Adjust dependencies.
34747
34748 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
34749 Jakub Jelinek <jakub@redhat.com>
34750
34751 PR target/42854
34752 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
34753 if weak_import attribute is present.
34754 * config/darwin.c (machopic_select_section): Likewise.
34755
34756 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
34757
34758 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
34759 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
34760 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
34761 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
34762
34763 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
34764 types.
34765
34766 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34767 Fix argument types.
34768
34769 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
34770 Rewrite text to refer to the names.
34771
34772 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
34773
34774 * config/i386/i386-builtin-types.def
34775 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
34776 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
34777 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
34778 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
34779 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
34780 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
34781 IX86_BUILTIN_VPERMIL2PS256.
34782 (MULTI_ARG_4_DF2_DI_I): Defined.
34783 (MULTI_ARG_4_DF2_DI_I1): Defined.
34784 (MULTI_ARG_4_SF2_SI_I): Defined.
34785 (MULTI_ARG_4_SF2_SI_I1): Defined.
34786 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
34787 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
34788 __builtin_ia32_vpermil2ps256.
34789 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34790 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34791 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
34792 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
34793 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
34794 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
34795 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
34796 CODE_FOR_xop_vpermil2v8sf3.
34797 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
34798 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
34799 * config/i386/xopintrin.h (_mm_permute2_pd): New.
34800 (_mm256_permute2_pd): New.
34801 (_mm_permute2_ps): New.
34802 (_mm256_permute2_ps): New.
34803
34804 2010-02-15 Nick Clifton <nickc@redhat.com>
34805
34806 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
34807 boolean parameters. Use emit_jump_insn when emitting a pop
34808 instruction containing a return insn.
34809 (push): Use 'true' rather than '1' as second parameter to F.
34810 (h8300_expand_prologue): Likewise.
34811 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
34812 (h8300_expand_epilogue): Likewise.
34813
34814 2010-02-15 Richard Guenther <rguenther@suse.de>
34815
34816 PR middle-end/43068
34817 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
34818 if that is zero.
34819
34820 2010-02-15 Nick Clifton <nickc@redhat.com>
34821
34822 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
34823 delta.
34824
34825 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
34826
34827 * intl.c (fake_ngettext): New function.
34828 * intl.h (fake_ngettext): Declare.
34829 (ngettext): Define macro.
34830 * collect2.c (notice_translated): New function.
34831 (main): Use notice_translated and ngettext.
34832 * collect2.h (notice_translated): Declare.
34833
34834 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
34835
34836 * reorg.c (delete_computation): Comment fixes.
34837 * caller-save.c (setup_save_areas): Idem.
34838 * sel-sched-dump.c (dump_lv_set): Idem.
34839 * rtl.def: Idem.
34840
34841 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34842
34843 * config/s390/s390.c (s390_sched_init): New function.
34844 (TARGET_SCHED_INIT): Target hook defined.
34845
34846 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
34847 Jack Howarth <howarth@bromo.med.uc.edu>
34848 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
34849
34850 PR target/42982
34851 Partial revert of unintended change in fix for PR41605.
34852 * config/darwin.h: Fix typo.
34853 * config/darwin9.h: Same.
34854
34855 2010-02-11 Jakub Jelinek <jakub@redhat.com>
34856
34857 * c-pch.c (pch_init): Clear v.
34858
34859 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34860
34861 PR middle-end/42930
34862 * graphite-scop-detection.c (graphite_can_represent_scev): Call
34863 graphite_can_represent_init for MULT_EXPR.
34864
34865 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34866
34867 PR middle-end/42914
34868 PR middle-end/42530
34869 * graphite-sese-to-poly.c (remove_phi): New.
34870 (translate_scalar_reduction_to_array): Call remove_phi.
34871
34872 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34873
34874 PR middle-end/42771
34875 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
34876 * graphite-clast-to-gimple.h (gloog): Update declaration.
34877 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
34878 * graphite-poly.h (struct poly_bb): Add missing comments.
34879 (struct scop): Add poly_scop_p field.
34880 (POLY_SCOP_P): New.
34881 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
34882 * graphite.c (graphite_transform_loops): Build the polyhedral
34883 representation for each scop before code generation.
34884 * sese.c (rename_variables_in_operand): Removed.
34885 (rename_variables_in_expr): Return the renamed expression.
34886 (rename_sese_parameters): New.
34887 * sese.h (rename_sese_parameters): Declared.
34888
34889 2010-02-11 Richard Guenther <rguenther@suse.de>
34890
34891 PR tree-optimization/42998
34892 * tree-ssa-pre.c (create_expression_by_pieces): Treat
34893 POINTER_PLUS_EXPR properly.
34894
34895 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
34896 Changpeng Fang <changpeng.fang@amd.com>
34897
34898 PR middle-end/40886
34899 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
34900 the cost of an IV candidate when the IV is used in a test against zero.
34901
34902 * gcc.dg/tree-ssa/ivopts-3.c: New.
34903
34904 2010-02-11 Richard Guenther <rguenther@suse.de>
34905
34906 PR lto/41664
34907 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
34908 pointer-vs-decl case by swapping refs. Handle some cases
34909 of pointer-vs-decl disambiguations more conservatively.
34910 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
34911 to false after expanding.
34912
34913 2010-02-11 Richard Guenther <rguenther@suse.de>
34914
34915 PR driver/43021
34916 * gcc.c (process_command): Handle LTO file@offset case more
34917 appropriately.
34918
34919 2010-02-11 Jakub Jelinek <jakub@redhat.com>
34920
34921 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
34922 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
34923 of DEBUG_INSNs.
34924 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
34925
34926 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
34927 if MEM's mode size isn't DWARF2_ADDR_SIZE.
34928 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
34929 Optimize eq/ne comparisons when both arguments are known to be
34930 zero-extended.
34931 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
34932 Don't mask operands unnecessarily if they are known to be already
34933 zero-extended.
34934
34935 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
34936
34937 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
34938 instead of loop.
34939
34940 2010-02-10 Richard Guenther <rguenther@suse.de>
34941
34942 PR tree-optimization/43017
34943 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
34944 for wrapping signed arithmetic.
34945
34946 2010-02-10 Jakub Jelinek <jakub@redhat.com>
34947
34948 PR debug/43010
34949 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
34950 if no debug info should be emitted for it.
34951
34952 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
34953
34954 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
34955 note when flag_exceptions is set.
34956
34957 2010-02-10 Duncan Sands <baldrick@free.fr>
34958
34959 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
34960
34961 2010-02-10 Richard Guenther <rguenther@suse.de>
34962
34963 PR c/43007
34964 * tree.c (get_unwidened): Handle constants.
34965 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
34966
34967 2010-02-10 Martin Jambor <mjambor@suse.cz>
34968
34969 PR lto/42985
34970 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
34971 check for variable argument counts independently.
34972
34973 2010-02-10 Christian Bruel <christian.bruel@st.com>
34974
34975 PR target/42841
34976 * config/sh/sh.c (find_barrier): Increase length for non delayed
34977 conditional branches.
34978
34979 2010-02-10 Christian Bruel <christian.bruel@st.com>
34980
34981 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
34982
34983 2010-02-10 Jakub Jelinek <jakub@redhat.com>
34984
34985 * builtins.c (set_builtin_user_assembler_name): Also handle
34986 ffs if int is smaller than word.
34987
34988 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
34989
34990 PR middle-end/42973
34991 * ira-conflicts.c (get_dup): Remove.
34992 (process_reg_shuffles): Add new parameter. Use it as an
34993 additional guard for copy generation.
34994 (add_insn_allocno_copies): Rewrite.
34995
34996 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
34997
34998 * common.opt (fsched2-use-traces): Preserved for backward
34999 compatibility.
35000 * doc/invoke.texi: Remove the documentation about option
35001 -fsched2-use-traces.
35002 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
35003 flag_sched2_use_traces.
35004 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
35005 the backward compatibility flag section.
35006
35007 2010-02-09 Richard Guenther <rguenther@suse.de>
35008
35009 PR tree-optimization/43008
35010 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
35011 make HEAP variables initialized from global memory if they
35012 are not known builtin functions.
35013 (find_func_aliases): Adjust.
35014
35015 2010-02-09 Richard Guenther <rguenther@suse.de>
35016
35017 PR tree-optimization/43000
35018 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
35019 arithmetic manually.
35020
35021 2010-02-08 Jakub Jelinek <jakub@redhat.com>
35022
35023 PR tree-optimization/42931
35024 * tree-loop-linear.c (try_interchange_loops): Don't call
35025 double_int_mul if estimated_loop_iterations failed.
35026
35027 2010-02-08 Martin Jambor <mjambor@suse.cz>
35028
35029 PR middle-end/42898
35030 * tree-sra.c (build_accesses_from_assign): Do not mark in
35031 should_scalarize_away_bitmap if stmt has volatile ops.
35032 (sra_modify_assign): Do not process assigns piecemeal if if stmt
35033 has volatile ops.
35034
35035 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
35036
35037 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
35038
35039 2010-02-07 Adam Nemet <adambnmet@gmail.com>
35040
35041 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
35042 before the pattern.
35043
35044 2010-02-07 Andrew Pinski <pinskia@gmail.com>
35045
35046 PR middle-end/42946
35047 * df-core.c (df_finish_pass): Change type of saved_flags to int.
35048
35049 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
35050
35051 PR middle-end/42988
35052 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
35053 to unknown_dependence.
35054 (graphite_legal_transform_dr): Handle the unknown_dependence.
35055 (graphite_carried_dependence_level_k): Same.
35056
35057 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
35058
35059 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
35060
35061 2010-02-07 Richard Guenther <rguenther@suse.de>
35062
35063 PR middle-end/42991
35064 * expr.c (get_inner_reference): Always initialize *pbitsize.
35065
35066 2010-02-07 Richard Guenther <rguenther@suse.de>
35067
35068 PR middle-end/42956
35069 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
35070 new ARRAY_REFs on variable size element or minimal index arrays.
35071 Complete.
35072 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
35073 gimple_fold_indirect_ref.
35074
35075 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
35076
35077 PR target/42957
35078 * arm.c (arm_override_options): Just return if the user has specified
35079 an invalid fpu name.
35080
35081 2010-02-03 Jason Merrill <jason@redhat.com>
35082
35083 PR c++/42870
35084 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
35085 i386_pe_maybe_record_exported_symbol.
35086
35087 2010-02-05 Steve Ellcey <sje@cup.hp.com>
35088
35089 PR target/42924
35090 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35091 (pa_delegitimize_address): New function.
35092
35093 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
35094
35095 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
35096 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
35097
35098 2010-02-05 Richard Guenther <rguenther@suse.de>
35099
35100 PR lto/42762
35101 * lto-streamer-in.c (get_resolution): Deal with references
35102 to undefined functions.
35103
35104 2010-02-05 Richard Guenther <rguenther@suse.de>
35105
35106 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
35107 (fold_const_aggregate_ref): Likewise.
35108 (ccp_fold_stmt): Substitute loads.
35109 (maybe_fold_reference): Verify types before substituting.
35110 Unshare properly.
35111 (fold_gimple_assign): Unshare properly.
35112 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
35113
35114 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
35115
35116 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
35117 for rs6000_gen_cell_microcode.
35118
35119 2010-02-04 Richard Guenther <rguenther@suse.de>
35120
35121 PR rtl-optimization/42952
35122 * dse.c (const_or_frame_p): Remove MEM handling.
35123
35124 2010-02-04 Nick Clifton <nickc@redhat.com>
35125
35126 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
35127 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35128 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
35129 (mn10300_asm_output_mi_thunk): New function.
35130 (mn10300_can_output_mu_thunk): New function.
35131 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
35132 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
35133 (FUNCTION_ARG): Delete incorrect comment.
35134
35135 2010-02-03 Jason Merrill <jason@redhat.com>
35136
35137 PR c++/40138
35138 * fold-const.c (operand_equal_p): Handle erroneous types.
35139
35140 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
35141
35142 * config/h8300/h8300.md (can_delay): Fix attibute condition.
35143
35144 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
35145
35146 PR rtl-optimization/42941
35147 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
35148 of xmalloc.
35149
35150 2010-02-03 Jason Merrill <jason@redhat.com>
35151
35152 PR c++/35652
35153 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
35154
35155 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
35156
35157 PR debug/42896
35158 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
35159 (cselib_reset_table): Renamed from...
35160 (cselib_reset_table_with_next_value): ... this.
35161 (cselib_get_next_uid): Renamed from...
35162 (cselib_get_next_unknown_value): ... this.
35163 * cselib.c (next_uid): Renamed from...
35164 (next_unknown_value): ... this.
35165 (cselib_clear_table): Adjust.
35166 (cselib_reset_table): Adjust. Renamed from...
35167 (cselib_reset_table_with_next_value): ... this.
35168 (cselib_get_next_uid): Adjust. Renamed from...
35169 (cselib_get_next_unknown_value): ... this.
35170 (get_value_hash): Use hash.
35171 (cselib_hash_rtx): Likewise.
35172 (new_cselib_val): Adjust. Set and dump uid.
35173 (cselib_lookup_mem): Pass next_uid as hash.
35174 (cselib_subst_to_values): Likewise.
35175 (cselib_log_lookup): Dump uid.
35176 (cselib_lookup): Pass next_uid as hash. Adjust.
35177 (cselib_process_insn): Adjust.
35178 (cselib_init): Initialize next_uid.
35179 (cselib_finish): Adjust.
35180 (dump_cselib_table): Likewise.
35181 * dse.c (canon_address): Dump value uid.
35182 * print-rtl.c (print_rtx): Print value uid.
35183 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
35184 (dvuid): New type.
35185 (dv_uid): New function, sort of renamed from...
35186 (dv_htab_hash): ... this, reimplemented in terms of it and...
35187 (dv_uid2hash): ... this. New.
35188 (variable_htab_eq): Drop excess assertions.
35189 (tie_break_pointers): Removed.
35190 (canon_value_cmp): Compare uids.
35191 (variable_post_merge_New_vals): Print uids.
35192 (vt_add_function_parameters): Adjust.
35193 (vt_initialize): Reset table. Adjust.
35194
35195 2010-02-03 Richard Guenther <rguenther@suse.de>
35196
35197 PR tree-optimization/42944
35198 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
35199 (call_may_clobber_ref_p_1): Likewise. Properly handle
35200 malloc and calloc clobbering errno.
35201
35202 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
35203
35204 * doc/invoke.texi: Fix name of sched1 dump.
35205
35206 * opts.c (decode_options): Set flag_tree_switch_conversion
35207 only conditionally on optimize >= 2.
35208
35209 * gcse.c: Assorted comment fixes in pass description.
35210
35211 2010-02-03 Anthony Green <green@moxielogic.com>
35212
35213 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
35214 nop padding in order to maintain alignment of storage location of
35215 target function address.
35216 (moxie_trampoline_init): Store target function address at newly
35217 aligned location.
35218 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
35219 to 32.
35220 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
35221
35222 2010-02-03 Richard Guenther <rguenther@suse.de>
35223
35224 PR middle-end/42927
35225 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
35226
35227 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35228
35229 * config.gcc: Reenable check for obsolete targets.
35230 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
35231 mips-sgi-irix6.[0-4]*.
35232
35233 2010-02-02 Nick Clifton <nickc@redhat.com>
35234
35235 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
35236 constant size of 4 as being the same as 0.
35237 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
35238 can take values in the range 0..4.
35239
35240 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
35241
35242 PR java/41991
35243 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
35244 as _darwin10_Unwind_FindEnclosingFunction().
35245 * libgcc-libsystem.ver: New.
35246
35247 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
35248
35249 PR target/41399
35250 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
35251 implicitly set registers.
35252
35253 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
35254
35255 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
35256 (arm_override_options): Allow automatic selection of the thread
35257 pointer register if thumb2.
35258 (legitimize_pic_address): Improve code sequences for Thumb2.
35259 (arm_call_tls_get_addr): Likewise.
35260 (legitimize_tls_address): Likewise.
35261 * arm.md (pic_load_addr_arm): Delete. Replace with ...
35262 (pic_load_addr_32bit): ... this. New named pattern.
35263 * thumb2.md (pic_load_addr_thumb2): Delete.
35264 (pic_load_dot_plus_four): Delete.
35265 (tls_load_dot_plus_four): New named pattern.
35266
35267 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35268
35269 PR libgomp/29986
35270 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
35271 Document fix for TLS bug.
35272
35273 2010-01-31 Richard Guenther <rguenther@suse.de>
35274
35275 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
35276 conservatively correct.
35277
35278 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35279
35280 PR target/42850
35281 Revert:
35282 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35283
35284 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35285
35286 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35287
35288 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
35289
35290 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
35291
35292 * config.gcc: Adjust order of makefile fragments for mingw targets.
35293
35294 2010-01-31 Richard Guenther <rguenther@suse.de>
35295
35296 PR middle-end/42898
35297 * gimplify.c (gimplify_init_constructor): For volatile LHS
35298 initialize a temporary.
35299
35300 2010-01-31 Matthias Klose <doko@ubuntu.com>
35301
35302 * configure.ac: Fix __stack_chk_fail check for cross builds configured
35303 --with-headers
35304 * configure: Regenerate.
35305
35306 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
35307
35308 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35309 the same alias set and their sizes different constantness.
35310 (aliasing_component_refs_p): Revert 2009-10-24 change.
35311
35312 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35313
35314 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
35315 unused.
35316
35317 2010-01-29 Richard Guenther <rguenther@suse.de>
35318
35319 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
35320 Assert we successfully updated the call.
35321
35322 2010-01-29 Jakub Jelinek <jakub@redhat.com>
35323
35324 PR rtl-optimization/42889
35325 * df.h (df_set_bb_dirty_nonlr): New prototype.
35326 * df-core.c (df_set_bb_dirty_nonlr): New function.
35327 * df-scan.c (df_insn_rescan): Call it instead of
35328 df_set_bb_dirty for DEBUG_INSNs.
35329
35330 2010-01-29 Richard Guenther <rguenther@suse.de>
35331
35332 PR middle-end/37448
35333 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
35334 quadratic behavior in most cases.
35335
35336 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
35337
35338 PR target/42891
35339 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
35340 in the call to gen_x86_movsicc_0_m1.
35341
35342 2010-01-28 Richard Guenther <rguenther@suse.de>
35343
35344 PR tree-optimization/42871
35345 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
35346
35347 2010-01-28 Richard Guenther <rguenther@suse.de>
35348
35349 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
35350 into call arguments.
35351
35352 2010-01-28 Richard Guenther <rguenther@suse.de>
35353
35354 PR middle-end/42883
35355 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
35356 the forwarder if the destination is an EH landing pad.
35357
35358 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
35359
35360 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
35361 block list passed to gimple_duplicate_sese_tail.
35362 (parallelize_loops): Avoid parallelization when the function
35363 has_nonlocal_label.
35364 Avoid parallelization when the preheader is IRREDUCIBLE.
35365 Try to optimize when estimated_loop_iterations_int is unresolved.
35366 Add the loop's location to the dump file.
35367 * tree-cfg.c (add_phi_args_after_redirect): Remove.
35368 (gimple_duplicate_sese_tail): Remove the check for the latch.
35369 Redirect nexits to the exit block.
35370 Remove handling of the incoming edges to the latch.
35371 Redirect the backedge from the copied latch to the exit bb.
35372
35373 2010-01-28 Michael Matz <matz@suse.de>
35374
35375 PR target/42881
35376 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
35377 Wrap force_reg into a sequence, emit it before user.
35378
35379 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
35380
35381 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
35382 (arm_rev): New.
35383 (arm_legacy_rev): Likewise.
35384 (thumb_legacy_rev): Likewise.
35385
35386 2010-01-27 Jakub Jelinek <jakub@redhat.com>
35387
35388 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
35389 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
35390 on MEM's address failed, try avoid_constant_pool_reference and
35391 recurse if it returned something different.
35392 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
35393 address, try avoid_constant_pool_reference and recurse if it
35394 returned something different.
35395 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
35396 address and avoid_constant_pool_reference returned something
35397 different, don't set have_address.
35398
35399 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
35400
35401 PR debug/42861
35402 * var-tracking.c (val_store): Add modified argument, obey it.
35403 Adjust callers.
35404 (count_uses): Move down logging of main.
35405 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
35406 don't need resolution.
35407 (emit_notes_in_bb): Likewise.
35408
35409 2010-01-27 Richard Guenther <rguenther@suse.de>
35410
35411 PR middle-end/42878
35412 * tree-inline.c (remap_decl): Delay remapping of SSA name
35413 default definitions until we need them.
35414
35415 2010-01-27 Jakub Jelinek <jakub@redhat.com>
35416
35417 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35418 (rs6000_delegitimize_address): New function.
35419
35420 * config/s390/s390.c (s390_delegitimize_address): Call
35421 delegitimize_mem_from_attrs.
35422
35423 PR middle-end/42874
35424 * tree-inline.c (cannot_copy_type_1): Removed.
35425 (copy_forbidden): Don't forbid copying of functions containing
35426 records/unions with variable length fields.
35427
35428 2010-01-27 Christian Bruel <christian.bruel@st.com>
35429
35430 Revert:
35431 PR target/42841
35432 * config/sh/sh.c (find_barrier): Increase length for non delayed
35433 conditional branches.
35434
35435 2010-01-27 Matthias Klose <doko@ubuntu.com>
35436
35437 * configure.ac (gnu-unique-object): Fix ldd version check.
35438 * configure: Regenerate.
35439
35440 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35441
35442 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
35443 HAVE_GNU_AS value.
35444 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
35445 Test for HAVE_GNU_AS value.
35446
35447 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35448
35449 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
35450 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
35451 INT64_TYPE): Define.
35452 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
35453 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
35454 INT_LEAST64_TYPE): Define.
35455 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
35456 UINT_LEAST64_TYPE): Define.
35457 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
35458 INT_FAST64_TYPE): Define.
35459 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
35460 UINT_FAST64_TYPE): Define.
35461 (INTMAX_TYPE, UINTMAX_TYPE): Define.
35462 (INTPTR_TYPE, UINTPTR_TYPE): Define.
35463 (SIG_ATOMIC_TYPE): Define.
35464
35465 2010-01-26 Richard Guenther <rguenther@suse.de>
35466
35467 * df-scan.c (df_scan_set_bb_info): Remove assert.
35468 (df_insn_rescan_debug_internal): Merge asserts.
35469 (df_install_ref): Likewise.
35470 (df_mark_reg): Use bitmap_set_range.
35471 (df_hard_reg_used_p): Remove assert.
35472 (df_hard_reg_used_count): Likewise.
35473
35474 2010-01-26 Richard Guenther <rguenther@suse.de>
35475
35476 PR rtl-optimization/42685
35477 * web.c (web_main): Ignore DEBUG_INSNs.
35478
35479 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
35480
35481 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
35482
35483 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
35484 Fix types of fndecl and arglist parameters.
35485
35486 2010-01-26 Richard Guenther <rguenther@suse.de>
35487
35488 PR middle-end/42806
35489 * tree-eh.c (unsplit_eh): Skip debug insns.
35490
35491 2010-01-26 Richard Guenther <rguenther@suse.de>
35492
35493 PR tree-optimization/42250
35494 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
35495
35496 2010-01-26 Jakub Jelinek <jakub@redhat.com>
35497
35498 PR fortran/42866
35499 * omp-low.c (expand_omp_sections): Only use single_pred if
35500 l2_bb is single_pred_p.
35501
35502 2010-01-25 Christian Bruel <christian.bruel@st.com>
35503
35504 PR target/42841
35505 * config/sh/sh.c (find_barrier): Increase length for non delayed
35506 conditional branches.
35507 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
35508
35509 2010-01-24 David S. Miller <davem@davemloft.net>
35510
35511 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
35512 define if not using GAS.
35513 * config/sparc/sparc.c (sparc_elf_asm_named_section):
35514 Likewise. Delete SECTION_MERGE code, which is only applicable
35515 when using GAS.
35516
35517 2010-01-24 Mark Mitchell <mark@codesourcery.com>
35518
35519 PR c++/42748
35520 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
35521 mangling of va_list in system headers.
35522
35523 2010-01-23 Toon Moene <toon@moene.org>
35524
35525 * tree-predcom.c (combine_chains): Return NULL, not false.
35526
35527 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
35528
35529 * tree-loop-distribution.c (distribute_loop): Fix declaration and
35530 initialization of variable res to agree with return type.
35531
35532 2010-01-22 Steve Ellcey <sje@cup.hp.com>
35533
35534 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
35535 * tree-sra.c: Add include of expr.h.
35536
35537 2010-01-22 Jakub Jelinek <jakub@redhat.com>
35538
35539 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
35540 insert the debug stmt on the single non-EH edge from the stmt.
35541
35542 2010-01-22 Richard Henderson <rth@redhat.com>
35543
35544 PR tree-opt/42833
35545 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
35546 the RHS until after generate_subtree_copies has insertted its
35547 code before the current statement.
35548
35549 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
35550
35551 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
35552
35553 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
35554
35555 2010-01-21 Martin Jambor <mjambor@suse.cz>
35556
35557 PR tree-optimization/42585
35558 * tree-sra.c (struct access): New field grp_total_scalarization.
35559 (dump_access): Dump the new field.
35560 (should_scalarize_away_bitmap): New variable.
35561 (cannot_scalarize_away_bitmap): Likewise.
35562 (sra_initialize): Allocate new bitmaps.
35563 (sra_deinitialize): Free new bitmaps.
35564 (create_access_1): New function.
35565 (create_access): Parts moved to create_access_1.
35566 (type_consists_of_records_p): New function.
35567 (completely_scalarize_record): Likewise.
35568 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
35569 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
35570 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
35571 access.
35572 (analyze_all_variable_accesses): Completely scalarize small eligible
35573 records.
35574
35575 2010-01-21 Martin Jambor <mjambor@suse.cz>
35576
35577 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
35578
35579 2010-01-21 Andrew Haley <aph@redhat.com>
35580
35581 * gcc.c (process_command): Move lang_specific_driver before
35582 setting cc_libexec_prefix.
35583
35584 2010-01-21 Richard Guenther <rguenther@suse.de>
35585
35586 PR middle-end/19988
35587 * fold-const.c (negate_expr_p): Pretend only negative
35588 real constants are easily negatable.
35589
35590 2010-01-20 Janis Johnson <janis187@us.ibm.com>
35591 Jason Merrill <jason@redhat.com>
35592
35593 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
35594 (TYPE_TRANSPARENT_AGGR): this, for union and record.
35595 * calls.c (initialize argument_information): Handle it.
35596 * c-common.c (handle_transparent_union_attribute): Use new name.
35597 * c-decl.c (finish_struct): Ditto.
35598 * c-typeck.c (type_lists_compatible_p): Ditto.
35599 (convert_for_assignment): Use new name and also handle record.
35600 * function.c (aggregate_value_p): Handle it.
35601 (pass_by_reference): Ditto.
35602 (assign_parm_data_types): Ditto.
35603 * print-tree.c (print_node): Ditto.
35604 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
35605 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
35606 * tree.c (first_field): New fn.
35607
35608 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
35609
35610 PR target/42818
35611 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
35612 even when linking statically, for now.
35613
35614 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
35615
35616 PR debug/42715
35617 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
35618 without a cselib val.
35619 (count_uses): Accept MO_VAL_SET with no val on stores.
35620 (add_stores): Likewise.
35621
35622 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35623
35624 * var-tracking.c (check_value_val): Add a compile time assertion.
35625 (dv_is_decl_p): Simplify.
35626 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
35627 gcc_assert if ENABLE_CHECKING.
35628
35629 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
35630
35631 PR debug/42782
35632 * var-tracking.c: Include tree-flow.h.
35633 (mem_dies_at_call): New.
35634 (dataflow_set_preserve_mem_locs): Use it.
35635 (dataflow_set_remove_mem_locs): Likewise.
35636 (dump_var): Renamed from dump_variable. Adjust all callers.
35637 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
35638 * Makefile.in (var-tracking.o): Adjust deps.
35639
35640 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
35641
35642 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
35643
35644 2010-01-20 Richard Guenther <rguenther@suse.de>
35645
35646 PR tree-optimization/42717
35647 * tree-ssa-dce.c (get_live_post_dom): Remove.
35648 (forward_edge_to_pdom): Take an arbitrary edge to copy
35649 degenerate PHI args from.
35650 (remove_dead_stmt): Use the first post-dominator even if it
35651 does not contain live statements as redirection destination.
35652
35653 2010-01-20 Richard Guenther <rguenther@suse.de>
35654
35655 * tree-inline.c (estimate_num_insns): Handle EH builtins.
35656
35657 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35658
35659 * sel-sched.c (create_speculation_check): Remove set but not used
35660 variable twin.
35661 (try_transformation_cache): Remove set but not used variable ds.
35662 (calculate_privileged_insns): Remove set but not used variables
35663 cur_insn and min_spec_insn.
35664 (find_best_expr): Remove set but not used variable avail_n.
35665 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
35666 variable e.
35667 * cgraphunit.c (assemble_thunk): Remove set but not used variable
35668 false_label.
35669 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
35670 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
35671 new_scop_exit_edge.
35672
35673 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
35674
35675 PR bootstrap/42786
35676 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
35677 cpu types. Add support for *-sse3 cpu types.
35678 (x86_64-*-*): Ditto.
35679
35680 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35681
35682 PR middle-end/42803
35683 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
35684 argument, call initializer_constant_valid_p_1 instead of
35685 initializer_constant_valid_p, pass CACHE to it, return NULL
35686 immediately if first call returns NULL.
35687 (initializer_constant_valid_p_1): New function.
35688 (initializer_constant_valid_p): Use it.
35689
35690 2010-01-20 Thomas Quinot <quinot@adacore.com>
35691
35692 * tree.def (PLACEHOLDER_EXPR): Fix comment.
35693
35694 2010-01-20 Jakub Jelinek <jakub@redhat.com>
35695
35696 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
35697 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
35698 (loc_list_from_tree): Don't handle unsigned division. Handle
35699 signed modulo using DW_OP_{over,over,div,mul,minus}.
35700 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
35701 modulo instead of signed.
35702
35703 2010-01-20 DJ Delorie <dj@redhat.com>
35704
35705 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
35706 (Fpa): Pass it
35707 (h8300_emit_stack_adjustment): Propogate it.
35708 (push): Pass it.
35709 (h8300_expand_prologue): Likewise.
35710 (h8300_expand_epilogue): Likewise.
35711
35712 2010-01-19 Michael Matz <matz@suse.de>
35713
35714 PR tree-optimization/41783
35715 * tree-data-ref.c (toplevel): Include flags.h.
35716 (dump_data_dependence_relation): Also dump the inputs if the
35717 result will be unknown.
35718 (split_constant_offset_1): Look through some conversions.
35719 * tree-predcom.c (determine_roots_comp): Restart a new chain if
35720 the offset from last element is too large.
35721 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
35722 (reassociate_to_the_same_stmt): Handle vector registers.
35723 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
35724 (e.g. conversions).
35725 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
35726 wide_prolog_niters argument, emit widening instructions.
35727 (vect_do_peeling_for_alignment): Adjust caller, use widened
35728 variant of the iteration cound.
35729 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
35730
35731 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35732
35733 PR target/38697
35734 * config/arm/neon-testgen.m (emit_automatics): New parameter
35735 features. Adjust for Fixed_return_reg feature.
35736 (test_intrinsic): Call emit_automatics with new feature.
35737 * config/arm/neon.ml: Update copyright years.
35738 (features): New Fixed_return_reg feature.
35739 (ops): Update feature for Vget_low.
35740
35741 2010-01-19 Jakub Jelinek <jakub@redhat.com>
35742
35743 PR tree-optimization/42719
35744 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
35745 stmt uses.
35746
35747 PR debug/42728
35748 * fwprop.c (all_uses_available_at): Return false if def_set dest
35749 is a REG that is used in def_insn.
35750
35751 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
35752
35753 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
35754
35755 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
35756 Add argument names.
35757
35758 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
35759
35760 * target.h (struct gcc_target) <secondary_reload>: Change type
35761 of last argument to secondary_reload_info *.
35762
35763 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
35764
35765 PR target/42774
35766 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
35767 memory references with unaligned offsets. Remove CQImode handling.
35768 (unaligned_memory_operand): Return 1 for memory references with
35769 unaligned offsets. Remove CQImode handling.
35770
35771 2010-01-18 Richard Guenther <rguenther@suse.de>
35772
35773 PR middle-end/39954
35774 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
35775 builtin calls.
35776
35777 2010-01-18 Richard Guenther <rguenther@suse.de>
35778
35779 PR tree-optimization/42781
35780 * tree-ssa-structalias.c (find_what_var_points_to): Skip
35781 restrict processing only if the original variable was artificial.
35782
35783 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
35784
35785 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
35786 find number of popped argument bytes.
35787
35788 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
35789 Fix the text that describes the return value for invalid insns.
35790
35791 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
35792
35793 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
35794 Clarify what 'cost of the -dependence' is. Fix quoting.
35795
35796 * toplev.c (default_get_pch_validity): Rename argument to "sz".
35797 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
35798
35799 2010-01-17 Jakub Jelinek <jakub@redhat.com>
35800
35801 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35802 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
35803
35804 2010-01-17 Richard Guenther <rguenther@suse.de>
35805
35806 PR middle-end/42248
35807 * function.c (split_complex_args): Take a VEC to modify.
35808 (assign_parms_augmented_arg_list): Build a VEC instead of
35809 a chain of PARM_DECLs.
35810 (assign_parms_unsplit_complex): Take a VEC of arguments.
35811 Do not fixup unmodified parms.
35812 (assign_parms): Deal with the VEC.
35813 (gimplify_parameters): Likewise.
35814
35815 2010-01-17 Richard Guenther <rguenther@suse.de>
35816
35817 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
35818 node existence check.
35819 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
35820 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
35821 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
35822 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
35823 (gimple_execute_on_growing_pred): Likewise.
35824
35825 2010-01-17 Richard Guenther <rguenther@suse.de>
35826
35827 PR tree-optimization/42773
35828 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
35829 (compute_antic_aux): Likewise.
35830 (compute_partial_antic_aux): Likewise.
35831
35832 2010-01-17 Jie Zhang <jie.zhang@analog.com>
35833
35834 PR debug/42767
35835 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
35836 and US_TRUNCATE.
35837
35838 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
35839
35840 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
35841 appearance.
35842
35843 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
35844 Fix markup for strict argument.
35845
35846 (TARGET_SCHED_REORDER2): Fix argument types.
35847
35848 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
35849 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
35850
35851 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
35852 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
35853
35854 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
35855 Add argument name.
35856
35857 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
35858 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
35859 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
35860 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
35861 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
35862
35863 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
35864
35865 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
35866
35867 (TARGET_ASM_RELOC_RW_MASK): Add return type.
35868 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
35869
35870 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
35871
35872 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
35873 Use prototype.
35874
35875 (TARGET_ASM_NAMED_SECTION): Fix argument list.
35876
35877 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
35878 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
35879
35880 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
35881
35882 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
35883
35884 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
35885 referring to it. Fix language.
35886
35887 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
35888
35889 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
35890
35891 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
35892
35893 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
35894
35895 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
35896 '@var{stream}. Remove stray 'and'.
35897
35898 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
35899
35900 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
35901
35902 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
35903
35904 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
35905 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
35906
35907 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
35908 Fix description of return value.
35909 Rename argument "sz" to "len."
35910
35911 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
35912 Clarify meaning of 'true' return value.
35913
35914 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
35915
35916 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
35917 rep_mode versus mode_rep.
35918
35919 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
35920
35921 (TARGET_BUILTIN_DECL): Fix name.
35922
35923 (TARGET_COMMUTATIVE_P): Fix type of first argument.
35924
35925 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
35926
35927 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
35928
35929 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
35930
35931 (TARGET_RELAXED_ORDERING): Use @deftypevr.
35932
35933 (TARGET_GET_DRAP_RTX): Note that this is a hook.
35934 Clarify language.
35935
35936 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
35937 Rename argument tm_fn to md_fn.
35938
35939 (TARGET_OPTION_PRINT): Fix argument list.
35940
35941 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
35942
35943 PR target/42664
35944 * config/i386/i386.c (ix86_fixup_binary_operands):
35945 Revert FMA4 fixup of operands.
35946
35947 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35948
35949 PR other/42525
35950 * Makefile.in (write_entries_to_file, install-plugin):
35951 Use \012 instead of \n with tr.
35952
35953 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
35954
35955 * configure.ac (HAVE_AS_REF): New C macro.
35956 * configure: Regenerate.
35957 * config.in: Likewise.
35958 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
35959 if HAVE_AS_REF.
35960 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
35961 if HAVE_AS_REF.
35962
35963 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
35964
35965 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
35966
35967 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
35968
35969 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
35970
35971 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
35972
35973 (TARGET_IN_SMALL_DATA_P): Fix argument type.
35974
35975 (TARGET_BINDS_LOCAL_P): Fix argument type.
35976
35977 (TARGET_ASM_FILE_END): Use prototype.
35978
35979 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
35980
35981 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
35982
35983 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
35984
35985 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
35986
35987 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
35988 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
35989
35990 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
35991 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
35992
35993 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
35994 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
35995 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
35996 (TARGET_ADDR_SPACE_CONVERT): Likewise.
35997
35998 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
35999
36000 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
36001
36002 (TARGET_INIT_BUILTINS): Use prototype.
36003
36004 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
36005 Put 'const char *' in braces. Fix parameter types.
36006 (TARGET_INVALID_CONVERSION): Fix parameter types.
36007 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
36008 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
36009
36010 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
36011 Fix argument type.
36012
36013 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
36014
36015 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
36016
36017 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
36018
36019 * doc/tm.texi (TARGET_HELP): Fix return type.
36020
36021 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
36022 in braces. Fix argument types.
36023
36024 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
36025
36026 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
36027
36028 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
36029
36030 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
36031 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
36032
36033 (TARGET_MANGLE_TYPE): Fix argument types.
36034
36035 (TARGET_IRA_COVER_CLASSES): Use prototype.
36036
36037 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
36038
36039 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
36040
36041 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
36042
36043 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
36044
36045 (TARGET_CALLEE_COPIES): Fix argument types.
36046
36047 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
36048
36049 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
36050
36051 (TARGET_FUNCTION_VALUE): Fix argument types.
36052
36053 (TARGET_RETURN_IN_MSB): Fix argument type.
36054
36055 (TARGET_RETURN_IN_MEMORY): Fix argument types.
36056
36057 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
36058
36059 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
36060
36061 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
36062 agree with return type.
36063
36064 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
36065
36066 2010-01-15 Jing Yu <jingyu@google.com>
36067
36068 PR rtl-optimization/42691
36069 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
36070 a pseudo to a constant and are merged, and adjust comments.
36071
36072 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
36073
36074 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
36075
36076 2010-01-15 Richard Guenther <rguenther@suse.de>
36077
36078 PR middle-end/42739
36079 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
36080 labels of computed or non-local gotos to the destination.
36081 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
36082 landing pad label is the first label.
36083
36084 2010-01-15 Richard Guenther <rguenther@suse.de>
36085
36086 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
36087
36088 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
36089
36090 PR target/42747
36091 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
36092 to allow generation of the xssqrtdp instruction on power7.
36093 (sqrtdf2_fpr): Ditto.
36094
36095 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36096
36097 PR middle-end/42674
36098 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
36099 functions with noreturn attribute.
36100
36101 PR c++/42608
36102 * varasm.c (declare_weak): Add weak attribute to decl if it
36103 doesn't have one already.
36104 (assemble_external): Only add decls to weak_decls if they also
36105 have weak attribute.
36106
36107 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
36108
36109 * var-tracking.c (var_reg_delete): Don't delete the association
36110 between REGs and values or one-part variables if the register
36111 isn't clobbered.
36112
36113 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36114
36115 PR debug/42657
36116 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
36117 because its first operand is a non-localized variable.
36118
36119 2010-01-14 Martin Jambor <mjambor@suse.cz>
36120
36121 PR tree-optimization/42706
36122 * tree-sra.c (encountered_recursive_call): New variable.
36123 (encountered_unchangable_recursive_call): Likewise.
36124 (sra_initialize): Initialize both new variables.
36125 (callsite_has_enough_arguments_p): New function.
36126 (scan_function): Call decl and flags check only for IPA-SRA, check
36127 whether there is a recursive call and whether it has enough arguments.
36128 (all_callers_have_enough_arguments_p): New function.
36129 (convert_callers): Look for recursive calls only when
36130 encountered_recursive_call is set.
36131 (ipa_early_sra): Bail out either if
36132 !all_callers_have_enough_arguments_p or
36133 encountered_unchangable_recursive_call.
36134
36135 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36136
36137 * sel-sched.c: Add 2010 to copyright years.
36138 * sel-sched-ir.c: Likewise.
36139 * sel-sched-ir.h: Likewise.
36140
36141 2010-01-14 Martin Jambor <mjambor@suse.cz>
36142
36143 PR tree-optimization/42714
36144 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
36145 constructors specially.
36146
36147 2010-01-14 Andi Kleen <ak@linux.intel.com>
36148
36149 * config/i386/drivers-i386.c (detect_caches_intel):
36150 Add l2sizekb parameter and fill in.
36151 (host_detect_local_cpu): Add l2sizekb, fill in.
36152 Add Atom small cache heuristic.
36153
36154 2010-01-14 Andi Kleen <ak@linux.intel.com>
36155
36156 * config/i386/drivers-i386.c (detect_caches_cpuid4):
36157 Add level3 parameter and fill in.
36158 (detect_caches_intel): Handle level3 cache.
36159
36160 2010-01-14 Andi Kleen <ak@linux.intel.com>
36161
36162 * config/i386/drivers-i386.c (host_detect_local_cpu):
36163 Fix core duo detection.
36164
36165 2010-01-14 Andi Kleen <ak@linux.intel.com>
36166
36167 * config/i386/drivers-i386.c (host_detect_local_cpu):
36168 Fix Atom detection.
36169
36170 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36171
36172 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
36173 (rs6000_variable_issue_1): this. Use...
36174 (rs6000_variable_issue): here. Reimplement. Print debug info.
36175
36176 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36177
36178 * sel-sched-ir.c (sel_restore_other_notes): Rename to
36179 sel_restore_notes. Update all callers. Call reemit_notes
36180 for all insns.
36181
36182 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36183
36184 PR rtl-optimization/42246
36185 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
36186 loops.
36187
36188 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36189
36190 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
36191 all successors is the same as number of successors in current region.
36192
36193 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36194
36195 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
36196 to rename is not separable. Otherwise check that its LHS is not NULL.
36197
36198 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36199
36200 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
36201
36202 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36203
36204 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
36205 available registers when failed to discover LHS register class.
36206 Fix indentation. Update comment.
36207
36208 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36209 Alexander Monakov <amonakov@ispras.ru>
36210
36211 PR rtl-optimization/42389
36212 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
36213 to can_issue_more.
36214 (advance_state_on_fence): Likewise.
36215 (sel_target_adjust_priority): Print debug output only when
36216 sched_verbose >= 4, not 2.
36217 (get_expr_cost): Do not issue all unique insns on the next cycle.
36218 (fill_insns): Initialize can_issue_more from the value saved
36219 with the fence.
36220 * sel-sched-ir.c (flist_add): New parameter issue_more.
36221 Init FENCE_ISSUE_MORE with it.
36222 (merge_fences): Likewise.
36223 (init_fences): Update call to flist_add.
36224 (add_to_fences, add_clean_fence_to_fences)
36225 (add_dirty_fence_to_fences): Likewise.
36226 (move_fence_to_fences): Update call to merge_fences.
36227 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
36228 sched groups.
36229 * sel-sched-ir.h (struct _fence): New field issue_more.
36230 (FENCE_ISSUE_MORE): New accessor macro.
36231
36232 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36233
36234 PR rtl-optimization/42388
36235 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
36236 that have no predecessors nor successors. Do not call move_bb_info
36237 for empty blocks outside of current region.
36238
36239 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36240
36241 PR rtl-optimization/42294
36242 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
36243 * sel-sched.c (move_exprs_to_boundary): Transitively add all
36244 originators' originators.
36245
36246 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36247
36248 PR rtl-optimization/39453
36249 PR rtl-optimization/42246
36250 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
36251 for pipelining_p.
36252 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
36253
36254 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36255 Alexander Monakov <amonakov@ispras.ru>
36256
36257 PR middle-end/42245
36258 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
36259 (maybe_tidy_empty_bb): ... here. Make static. Add new
36260 argument. Update all callers.
36261 (tidy_control_flow): ... and here. Recompute topological order
36262 of basic blocks in region if necessary.
36263 (sel_redirect_edge_and_branch): Change return type. Return true
36264 if topological order might have been invalidated.
36265 (purge_empty_blocks): Export and move from...
36266 * sel-sched.c (purge_empty_blocks): ... here.
36267 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
36268 (maybe_tidy_empty_bb): Delete prototype.
36269 (purge_empty_blocks): Declare.
36270
36271 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36272
36273 PR rtl-optimization/42249
36274 * sel-sched.c (try_replace_dest_reg): When chosen register
36275 and original register is the same, do not bail out early, but
36276 still check all original insns for validity of replacing destination
36277 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
36278 in this case.
36279
36280 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36281
36282 PR c/42721
36283 Port from no-undefined-overflow branch:
36284 2009-03-09 Richard Guenther <rguenther@suse.de>
36285
36286 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
36287
36288 2010-01-14 Richard Guenther <rguenther@suse.de>
36289
36290 PR lto/42665
36291 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
36292
36293 2010-01-14 Ira Rosen <irar@il.ibm.com>
36294
36295 PR tree-optimization/42709
36296 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
36297 as scalar type in creation of constant vector operand.
36298
36299 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36300
36301 PR testsuite/42414
36302 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
36303 (check-parallel-%): Match `testsuite' directory component only
36304 at the end.
36305
36306 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
36307
36308 PR translation/39521
36309 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
36310 strings with _().
36311
36312 2010-01-13 Richard Guenther <rguenther@suse.de>
36313
36314 PR tree-optimization/42730
36315 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
36316 offset zero.
36317
36318 2010-01-13 Steve Ellcey <sje@cup.hp.com>
36319
36320 PR target/pr42542
36321 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
36322 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
36323 them signed.
36324
36325 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
36326
36327 * config/bfin/libgcc-bfin.ver: Regenerate based on current
36328 libgcc-std.ver. Add entries for ___smulsi3_highpart and
36329 ___umulsi3_highpart.
36330
36331 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
36332 rather than schedule_insns if the pass is enabled.
36333
36334 2010-01-13 Martin Jambor <mjambor@suse.cz>
36335
36336 PR tree-optimization/42704
36337 * tree-sra.c (sra_modify_assign): Do not delete assignments to
36338 SSA_NAMEs.
36339
36340 2010-01-13 Martin Jambor <mjambor@suse.cz>
36341
36342 PR tree-optimization/42703
36343 * tree-sra.c (analyze_access_subtree): Check that we can build a
36344 reference to the original data within the aggregate.
36345
36346 2010-01-13 Richard Guenther <rguenther@suse.de>
36347
36348 PR tree-optimization/42705
36349 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
36350
36351 2010-01-13 Richard Guenther <rguenther@suse.de>
36352
36353 PR middle-end/42716
36354 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
36355
36356 2010-01-13 Jakub Jelinek <jakub@redhat.com>
36357
36358 PR debug/41371
36359 * var-tracking.c (values_to_unmark): New variable.
36360 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36361 values_to_unmark vector. Moved body to...
36362 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
36363 instead queue it into values_to_unmark vector.
36364 (vt_find_locations): Free values_to_unmark vector.
36365
36366 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
36367
36368 * config/s390/s390.c (override_options): Set
36369 default of max-pending-list-length to 256
36370
36371 2010-01-13 Richard Guenther <rguenther@suse.de>
36372
36373 PR lto/42678
36374 * tree-pass.h (PROP_gimple_lcx): New.
36375 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
36376 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
36377 before the final cleanup_eh.
36378 (dump_properties): Dump PROP_gimple_lcx.
36379 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
36380 (tree_lower_complex_O0): Remove.
36381 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
36382 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
36383 tree_lower_complex, schedule TODO_update_ssa.
36384 * lto-streamer-out.c (output_function): Stream the functions
36385 properties.
36386 * lto-streamer-in.c (input_function): Likewise.
36387 (lto_read_body): Do not override them here.
36388
36389 2010-01-12 Joseph Myers <joseph@codesourcery.com>
36390
36391 PR c/42708
36392 * c-typeck.c (build_c_cast): Fold value cast to union type before
36393 wrapping it in a CONSTRUCTOR.
36394
36395 2010-01-12 Jakub Jelinek <jakub@redhat.com>
36396
36397 PR rtl-optimization/42699
36398 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
36399 involved.
36400
36401 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36402
36403 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36404 SUBTARGET_WARN_UNUSED_SPEC): Move ...
36405 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
36406 SUBTARGET_WARN_UNUSED_SPEC): ... here
36407 * config/mips/iris5.h (LIBGCC_SPEC): Define.
36408
36409 2010-01-12 Julian Brown <julian@codesourcery.com>
36410
36411 * config/arm/neon-schedgen.ml (Utils): Don't try to
36412 open missing module.
36413 (find_with_result): New.
36414
36415 2010-01-12 Jakub Jelinek <jakub@redhat.com>
36416
36417 PR debug/42662
36418 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
36419 sharing when canonicalizing ({lt,ge}u (plus a b) b).
36420
36421 PR tree-optimization/42645
36422 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
36423 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
36424 decl_map, set processing_debug_stmt to -1 and return name without
36425 any remapping.
36426
36427 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
36428
36429 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
36430 binutils version, and reword target configuration description.
36431
36432 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
36433
36434 * config/avr/avr.h (LINKER_NAME): Remove.
36435
36436 2010-01-11 Janis Johnson <janis187@us.ibm.com>
36437
36438 PR target/42416
36439 * config/rs6000/rs6000.c (rs6000_override_options): On targets
36440 that support VSX, warn for -mno-altivec if vsx is not disabled,
36441 and disable vsx.
36442
36443 2010-01-11 Joseph Myers <joseph@codesourcery.com>
36444 Shujing Zhao <pearly.zhao@oracle.com>
36445
36446 PR translation/42469
36447 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
36448 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
36449 character between option name and help text.
36450 * c.opt (imultilib): Likewise.
36451
36452 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
36453
36454 * lto-streamer-out.c (output_unreferenced_globals): Output static
36455 variables.
36456
36457 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
36458
36459 PR rtl-optimization/42621
36460 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
36461 optimizing for size.
36462 (duplicate_computed_gotos): Remove now-redundant check.
36463
36464 2010-01-10 Steve Ellcey <sje@cup.hp.com>
36465
36466 PR target/37454
36467 * configure.ac: Save and restore LDFLAGS and LIBS
36468 * configure: Regenerate.
36469
36470 2010-01-10 Richard Guenther <rguenther@suse.de>
36471
36472 PR middle-end/42667
36473 * builtins.c (fold_builtin_strlen): Add type argument and
36474 convert the resulting length to it.
36475 (fold_builtin_1): Adjust.
36476
36477 2010-01-09 Jakub Jelinek <jakub@redhat.com>
36478
36479 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
36480 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
36481 1 insn.
36482 (num_insns_constant_wide): Adjust for that change.
36483
36484 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36485
36486 PR debug/42631
36487 * web.c (union_defs): Add used argument, to combine uses of
36488 uninitialized regs.
36489 (entry_register): Adjust type and tests of used argument.
36490 (web_main): Widen used for new use. Pass it to union_defs.
36491 * df.h (union_defs): Adjust prototype.
36492
36493 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36494
36495 PR debug/42630
36496 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
36497 uses in new incoming argument. Free body.
36498 (reset_debug_uses_in_loop): New.
36499 (analyze_insn_to_expand_var): Call the latter if the former found
36500 anything. Fix whitespace. Reject invalid dest overlaps before
36501 going through all insns in the loop.
36502
36503 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36504
36505 PR debug/42629
36506 * haifa-sched.c (dying_use_p): Debug insns don't count.
36507
36508 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36509
36510 PR middle-end/42363
36511 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
36512 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
36513 (verify_gimple_call): Reject LHS in noreturn calls.
36514
36515 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36516
36517 PR debug/42604
36518 PR debug/42395
36519 * tree-vect-loop-manip.c (adjust_info): New type.
36520 (adjust_vec): New pointer to vector.
36521 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
36522 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
36523 (slpeel_update_phis_for_duplicate_loop): Use them.
36524 (slpeel_update_phi_nodes_for_guard1): Likewise.
36525 (slpeel_update_phi_nodes_for_guard2): Likewise.
36526 (slpeel_tree_peel_loop_to_edge): Likewise.
36527 (vect_update_ivs_after_vectorizer): Likewise.
36528
36529 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36530
36531 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
36532 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
36533
36534 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
36535
36536 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
36537 bogus uninitialized warning.
36538
36539 2010-01-09 Richard Guenther <rguenther@suse.de>
36540
36541 PR middle-end/42512
36542 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
36543 the evolution is compatible with the initial condition.
36544
36545 2010-01-09 Jakub Jelinek <jakub@redhat.com>
36546
36547 * gcc.c (process_command): Update copyright notice dates.
36548 * gcov.c (print_version): Likewise.
36549 * gcov-dump.c (print_version): Likewise.
36550 * mips-tfile.c (main): Likewise.
36551 * mips-tdump.c (main): Likewise.
36552
36553 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
36554
36555 PR target/41885
36556 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
36557 (rotlhi3): Delete.
36558 (rotlhi3_8): Delete.
36559 (rotlsi3): Delete.
36560 (rotlsi3_8): Delete.
36561 (rotlsi3_16): Delete.
36562 (rotlsi3_24): Delete.
36563 (rotl<mode>3): New.
36564 (*rotw<mode>3): New.
36565 (*rotb<mode>3): New.
36566 * config/avr/avr.c (avr_rotate_bytes): New function.
36567 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
36568
36569 2010-01-08 Steve Ellcey <sje@cup.hp.com>
36570
36571 PR target/37454
36572 * configure.ac: Modify -rdynamic check.
36573 * configure: Regenerate.
36574
36575 2010-01-08 DJ Delorie <dj@redhat.com>
36576
36577 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
36578 register popping order.
36579
36580 2010-01-08 Richard Guenther <rguenther@suse.de>
36581
36582 PR lto/42528
36583 * c.opt (fsigned-char): Also let LTO handle this option.
36584 (funsigned-char): Likewise.
36585
36586 2010-01-07 Richard Guenther <rguenther@suse.de>
36587
36588 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
36589 (gimple_op): Likewise.
36590 (gimple_op_ptr): Likewise.
36591 (gimple_assign_set_lhs): Remove gcc_assert.
36592 (gimple_assign_set_rhs1): Likewise.
36593 (gimple_assign_set_rhs2): Likewise.
36594 (gimple_call_set_lhs): Likewise.
36595 (gimple_call_set_fn): Likewise.
36596 (gimple_call_set_fndecl): Likewise.
36597 (gimple_call_fndecl): Likewise.
36598 (gimple_call_return_type): Likewise.
36599 (gimple_call_set_chain): Likewise.
36600 (gimple_call_num_args): Likewise.
36601 (gimple_call_set_arg): Likewise.
36602 (gimple_cond_set_code): Likewise.
36603 (gimple_cond_set_lhs): Likewise.
36604 (gimple_cond_set_rhs): Likewise.
36605 (gimple_cond_set_true_label): Likewise.
36606 (gimple_cond_set_false_label): Likewise.
36607 (gimple_label_set_label): Likewise.
36608 (gimple_goto_set_dest): Likewise.
36609 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
36610 (gimple_debug_bind_get_value): Likewise.
36611 (gimple_debug_bind_get_value_ptr): Likewise.
36612 (gimple_debug_bind_set_var): Likewise.
36613 (gimple_debug_bind_set_value): Likewise.
36614 (gimple_debug_bind_reset_value): Likewise.
36615 (gimple_debug_bind_has_value_p): Likewise.
36616 (gimple_return_retval_ptr): Remove gcc_assert.
36617 (gimple_return_retval): Likewise.
36618 (gimple_return_set_retval): Likewise.
36619 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
36620 (safe_referenced_var_iterator): Remove.
36621 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
36622 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
36623 (fill_referenced_var_vec): Remove.
36624 (first_readonly_imm_use): Remove redundant gcc_assert.
36625 (phi_arg_index_from_use): Combine gcc_asserts.
36626 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
36627 (first_imm_use_stmt): Remove redundant gcc_assert.
36628 * tree-cfg.c (verify_gimple_call): Verify function and chain
36629 operands. Verify arguments.
36630 (verify_types_in_gimple_stmt): Verify condition code and labels.
36631
36632 2010-01-07 Richard Guenther <rguenther@suse.de>
36633
36634 PR tree-optimization/42641
36635 * sese.c (rename_map_elt_info): Use the SSA name version, do
36636 not hash pointers.
36637
36638 2010-01-07 Jakub Jelinek <jakub@redhat.com>
36639
36640 PR tree-optimization/42625
36641 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
36642 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
36643
36644 2010-01-07 Duncan Sands <baldrick@free.fr>
36645
36646 * Makefile.in (PLUGIN_HEADERS): Add version.h.
36647
36648 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
36649
36650 PR target/42511
36651 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
36652 note itself is not function_invariant_p.
36653
36654 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
36655
36656 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
36657 Do not add the DF_NOTE problem.
36658 * store-motion.c (execute_rtl_store_motion): Likewise.
36659
36660 2010-01-07 Martin Jambor <mjambor@suse.cz>
36661
36662 PR tree-optimization/42157
36663 * tree-sra.c (compare_access_positions): Stabilize sort if both
36664 accesses have integer types, return zero immediately if they are the
36665 same.
36666
36667 2010-01-06 Richard Henderson <rth@redhat.com>
36668
36669 PR middle-end/41883
36670 * haifa-sched.c (add_to_note_list): Merge into ...
36671 (concat_note_lists): ... here, and ...
36672 (unlink_other_notes, rm_other_notes): Merge into...
36673 (remove_notes): ... here. Create REG_SAVE_NOTEs for
36674 NOTE_INSN_EPILOGUE_BEG.
36675
36676 2010-01-06 Richard Guenther <rguenther@suse.de>
36677
36678 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
36679 not inline regular functions into always-inline functions.
36680
36681 2010-01-06 Nick Clifton <nickc@redhat.com>
36682
36683 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
36684 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
36685 used together.
36686 (OVERRIDE_OPTIONS): Delete.
36687 (OPTIMIZATION_OPTIONS): Define.
36688 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
36689 * config/rx/rx.c (rx_handle_option): Issue an error message if
36690 -mcpu=rx200 and -fpu are used together.
36691 (rx_set_optimization_options): New function. Issue an error
36692 message if an optimization attribute attempts to reset the FPU/
36693 math optimization pairing.
36694 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
36695 * config/rx/rx.opt: Set the default to 32-bit doubles.
36696 * config/rx/t-rx: Add multilibs for -nofpu option.
36697 * doc/invoke.texi: Update documentation of RX options.
36698
36699 2010-01-06 Richard Guenther <rguenther@suse.de>
36700
36701 * tree-ssa-pre.c (name_to_id): New global.
36702 (alloc_expression_id): Simplify SSA name handling.
36703 (lookup_expression_id): Likewise.
36704 (init_pre): Zero name_to_id.
36705 (fini_pre): Free it.
36706
36707 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
36708
36709 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
36710
36711 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
36712
36713 PR target/42542
36714 * config/i386/sse.md (smaxv2di3): New.
36715 (umaxv2di3): Likewise.
36716 (sminv2di3): Likewise.
36717 (uminv2di3): Likewise.
36718
36719 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
36720
36721 PR target/42564
36722 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
36723 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
36724 (legitimize_tls_address): Likewise.
36725 (sparc_tls_referenced_p): Likewise.
36726 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
36727 and adjust calls to legitimize_pic_address.
36728 (legitimate_constant_p) Use sparc_tls_referenced_p.
36729 (legitimate_pic_operand_p): Likewise.
36730 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
36731 (sparc_tls_symbol_ref_1): Delete.
36732 (sparc_tls_referenced_p): Make static, recognize specific patterns.
36733 (legitimize_tls_address): Make static, handle CONST patterns.
36734 (legitimize_pic_address): Make static, remove unused parameter and
36735 adjust recursive calls.
36736 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
36737 and adjust call to legitimize_pic_address.
36738 (sparc_output_mi_thunk): Likewise.
36739
36740 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
36741 H.J. Lu <hongjiu.lu@intel.com>
36742
36743 PR target/42542
36744 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
36745 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
36746 operands to make them signed.
36747
36748 Revert:
36749 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36750
36751 PR target/42542
36752 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36753 GTU to GT for V4SI and V2DI.
36754
36755 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36756 (umin<mode>3): Removed.
36757 (uminv8hi3): New.
36758 (uminv4si3): Likewise.
36759
36760 2010-01-05 Martin Jambor <mjambor@suse.cz>
36761
36762 PR tree-optimization/42462
36763 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
36764 current_function_decl to helper functions and macros.
36765
36766 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36767
36768 PR bootstrap/41771
36769 * flags.h: Don't include real.h.
36770 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
36771 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
36772 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
36773 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
36774 * dominance.c: Update copyright.
36775 * gimple.c (walk_gimple_op): Remove inline.
36776 * tree-ssa-reassoc.c: Include real.h.
36777 * Makefile.in (FLAGS_H): Remove $(REAL_H).
36778 (tree-ssa-reassoc.o): Depend on $(REAL_H).
36779
36780 2010-01-05 Nick Clifton <nickc@redhat.com>
36781
36782 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
36783 register to push into the stack frame when the accumulator has to
36784 be saved during interrupts.
36785
36786 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
36787
36788 * doc/invoke.texi: Remove the documentation about option
36789 -Wunreachable-code.
36790 * common.opt (Wunreachable-code): Preserved for backward
36791 compatibility.
36792 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
36793 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
36794 the backward compatibility flag section.
36795
36796 2010-01-05 Richard Guenther <rguenther@suse.de>
36797
36798 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
36799
36800 2010-01-05 Jakub Jelinek <jakub@redhat.com>
36801
36802 PR other/42611
36803 * cfgexpand.c (expand_one_var): Diagnose too large variables.
36804
36805 PR tree-optimization/42508
36806 * tree-sra.c (convert_callers): Check for recursive call
36807 by comparing cgraph nodes instead of decls.
36808 (modify_function): Call ipa_modify_formal_parameters also
36809 on all same_body aliases.
36810
36811 * cgraphunit.c (cgraph_materialize_all_clones): Compare
36812 cgraph nodes when checking for same_body aliases.
36813
36814 2010-01-05 Richard Guenther <rguenther@suse.de>
36815
36816 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
36817 allocation and lookup.
36818 (get_or_alloc_expr_for_constant): Likewise.
36819 (phi_translate): Sink allocation.
36820
36821 2010-01-04 Richard Guenther <rguenther@suse.de>
36822
36823 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
36824 a new entry only if needed.
36825 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
36826 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
36827 hashtable lookup.
36828 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
36829 the result array.
36830 (phi_translate): Handle CONSTANTs early.
36831
36832 2010-01-04 Martin Jambor <mjambor@suse.cz>
36833
36834 PR tree-optimization/42398
36835 * tree-sra.c (struct access): Removed flag grp_different_types.
36836 (dump_access): Do not dump the removed flag.
36837 (sort_and_splice_var_accesses): Do not set the removed flag.
36838 (sra_modify_expr): Check for type compatibility directly.
36839
36840 2010-01-04 Martin Jambor <mjambor@suse.cz>
36841
36842 PR tree-optimization/42366
36843 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
36844 edges with variable number of parameters.
36845 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
36846 flag instead of asserting it.
36847 (ipa_read_node_info): Read uses_analysis_done flag.
36848
36849 2010-01-04 Richard Guenther <rguenther@suse.de>
36850
36851 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
36852 iterative_hash_* as intended.
36853 (vn_reference_compute_hash): Likewise. Simplify hashing
36854 SSA names.
36855 (vn_reference_lookup_2): Likewise.
36856 (vn_nary_op_compute_hash): Likewise.
36857 (vn_phi_compute_hash): Likewise.
36858 (expressions_equal_p): Remove strange code.
36859 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
36860 (pre_expr_hash): Likewise. Simplify hashing SSA names.
36861 (bitmap_insert_into_set_1): Take value-id as parameter.
36862 (add_to_value): Pass it.
36863 (bitmap_insert_into_set): Likewise.
36864 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
36865
36866 2010-01-04 Jakub Jelinek <jakub@redhat.com>
36867
36868 PR driver/42442
36869 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
36870 (do_self_spec): For switches with SWITCH_IGNORE set set also
36871 SWITCH_IGNORE_PERMANENTLY.
36872 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
36873 of SWITCH_IGNORE.
36874
36875 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
36876
36877 * lto-streamer-out.c (output_unreferenced_globals): Output the full
36878 tree of an unreferenced global var.
36879
36880 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36881
36882 PR target/42542
36883 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
36884 GTU to GT for V4SI and V2DI.
36885
36886 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
36887 (umin<mode>3): Removed.
36888 (uminv8hi3): New.
36889 (uminv4si3): Likewise.
36890
36891 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
36892
36893 PR lto/42581
36894 * collect2.c (main): Turn on trace in collect2 if -v is passed
36895 to gcc with LTO.
36896
36897 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
36898
36899 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
36900 description of expression operand.
36901
36902 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
36903
36904 * configure.ac: Add install-html to target_list for Make-hooks.
36905 * configure: Regenerate.
36906 * fortran/Make-lang.in (F95_HTMLFILES): New.
36907 (fortran.html): Use it.
36908 (fortran.install-html): New.
36909 * Makefile.in (install-html): Add lang.install-html.
36910 * java/Make-lang.in (JAVA_HTMLFILES): New.
36911 (java.html): Use it.
36912 (java.install-html): New.
36913 * objc/Make-lang.in (objc.install-html): New.
36914 * objcp/Make-lang.in (obj-c++.install-html): New.
36915 * cp/Make-lang.in (c++.install-html): New.
36916 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
36917 * lto/Make-lang.in (lto.install-html): New.
36918
36919 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
36920
36921 PR lto/42520
36922 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
36923
36924 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
36925
36926 PR rtl-optimization/41862
36927 * store-motion.c (store_killed_in_insn, compute_store_table,
36928 remove_reachable_equiv_notes, replace_store_insn,
36929 build_store_vectors): Ignore all DEBUG_INSNs.
36930
36931 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
36932
36933 PR lto/41564
36934 * common.opt: Add dumpdir.
36935
36936 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
36937 isn't specified.
36938 (option_map): Add --dumpdir.
36939
36940 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
36941
36942 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
36943
36944 * opts.c (decode_options): Try dump_dir_name first if
36945 dump_base_name isn't an absolute path.
36946 (common_handle_option): Handle OPT_dumpdir.
36947
36948 * toplev.c (dump_dir_name): New.
36949 (print_switch_values): Also ignore -dumpdir.
36950
36951 * toplev.h (dump_dir_name): New.
36952
36953 2010-01-03 Richard Guenther <rguenther@suse.de>
36954
36955 PR tree-optimization/42589
36956 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
36957 double-word expansion of bswap32.
36958
36959 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
36960
36961 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
36962 with BLOCK_FOR_INSN.
36963 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
36964 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
36965 noce_process_if_block): Likewise.
36966 * gcse.c (compute_local_properties, insert_expr_in_table,
36967 insert_set_in_table, canon_list_insert, find_avail_set,
36968 pre_insert_copy_insn): Likewise.
36969
36970 * basic-block.h (BLOCK_NUM): Move from here...
36971 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
36972
36973 2010-01-03 Richard Guenther <rguenther@suse.de>
36974
36975 PR tree-optimization/42438
36976 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
36977 contains_may_not_return_call flag.
36978 (BB_MAY_NOTRETURN): New.
36979 (valid_in_sets): Trapping nary operations are not valid
36980 in blocks that may not return.
36981 (insert_into_preds_of_block): Remove check for trapping expressions.
36982 (compute_avail): Compute also BB_MAY_NOTRETURN.
36983
36984 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
36985
36986 * doc/invoke.texi: Add 2010 to copyright years.
36987
36988 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
36989
36990 * config/sparc/sparc.c: Fix formatting nits.
36991
36992 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36993 Alexander Monakov <amonakov@ispras.ru>
36994
36995 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
36996
36997 2010-01-02 Richard Guenther <rguenther@suse.de>
36998
36999 PR middle-end/42577
37000 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
37001 (simplify_switch_using_ranges): Mark to be removed edges
37002 as non-executable.
37003
37004 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37005
37006 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37007
37008 * collect2.c (scan_libraries): Add missing argument in call to
37009 scan_prog_file.
37010
37011 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
37012
37013 PR target/42448
37014 * config/alpha/predicates.md (aligned_memory_operand): Return false
37015 for CQImode.
37016 (unaligned_memory_operand): Return true for CQImode.
37017 * config/alpha/alpha.c (get_aligned_mem): Assert that location
37018 doesn not cross aligned SImode word boundary.
37019
37020 2010-01-02 Anatoly Sokolov <aesok@post.ru>
37021
37022 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
37023 Remove.
37024 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
37025 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
37026
37027 2010-01-02 Richard Guenther <rguenther@suse.de>
37028
37029 PR lto/41597
37030 * toplev.c (compile_file): Emit LTO marker properly. Change
37031 it to __gnu_lto_v1.
37032 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
37033
37034 2010-01-01 Richard Guenther <rguenther@suse.de>
37035
37036 PR debug/42455
37037 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
37038
37039 2010-01-01 Richard Guenther <rguenther@suse.de>
37040
37041 PR c/42570
37042 * c-decl.c (grokdeclarator): For zero-size arrays force
37043 structural equality checks as layout_type does.
37044
37045 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
37046
37047 * builtins.c: Update copyright to 2010.
37048
37049 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
37050
37051 PR lto/42531
37052 * lto-streamer-out.c (produce_asm): Revert the last change.
37053 (copy_function): Likewise.
37054
37055 * lto-streamer.c (lto_get_section_name): Skip any leading
37056 asterisk in name.
37057
37058 2010-01-01 Richard Guenther <rguenther@suse.de>
37059
37060 PR middle-end/42559
37061 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
37062 for LABEL_DECLs.
37063
37064 \f
37065 Copyright (C) 2010 Free Software Foundation, Inc.
37066
37067 Copying and distribution of this file, with or without modification,
37068 are permitted in any medium without royalty provided the copyright
37069 notice and this notice are preserved.