]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
spu: Use the FMA rtx code.
[gcc.git] / gcc / ChangeLog
1 2010-11-16 Richard Henderson <rth@redhat.com>
2
3 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
4 (fnma<VSF>4): Rename from fnms_<VSF>.
5 (fms<VSF>4): Rename from fms_<VSF>.
6 (fma<VDF>4): Rename from fma_<VDF>.
7 (fms<VDF>4): Rename from fms_<VDF>.
8 (nfma<VDF>4): Rename from fnma_<VDF>.
9 (nfms<VDF>4): Rename from fnms_<VDF>.
10 (fnma<VDF>4, fnms<VDF>4): New expanders.
11 (floatunsdisf2): Update for the renames.
12 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
13 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
14
15 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
16
17 PR rtl-optimization/46490
18 * combine.c (expand_compound_operation): Fix thinko.
19
20 2010-11-16 Richard Henderson <rth@redhat.com>
21
22 PR target/46470
23 * recog.c (peep2_attempt): Convert frame-related info when possible.
24 (peep2_fill_buffer): Allow frame-related insns into the buffer.
25 (peephole2_optimize): Allow peep2_attempt to fail.
26
27 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
28
29 PR rtl-optimization/46315
30 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
31 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
32 extracted from...
33 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
34 (remove_reg_equal_equiv_notes_for_defs): ...this.
35 (delete_unmarked_insns): Adjust to above renaming.
36 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
37 referring to registers set in the insns being moved, if any.
38
39 * df-core.c (df_ref_dump): New function extracted from...
40 (df_refs_chain_dump): ...here. Call it.
41 (df_regs_chain_dump): Likewise.
42 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
43 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
44
45 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
46
47 PR rtl-optimization/46395
48 * postreload.c (reload_combine): Invalidate register use
49 information on all control flow insns.
50
51 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
52 LABEL_REF in UNSPEC operand.
53
54 2010-11-16 Jan Hubicka <jh@suse.cz>
55
56 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
57 when !flag_toplevel_reorder do not remove unless variable is
58 COMDAT or ARTIFICIAL.
59 * ipa.c (varpool_can_remove_if_no_refs): ... here.
60 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
61 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
62 * varpool.c (decide_is_variable_needed): Do not handle visibility issues.
63 (varpool_finalize_decl): Likewise.
64 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node; update
65 outdated comment on DECL_RTL_SET_P check.
66
67 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68
69 * config/sol2.h (NM_FLAGS): Define.
70 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
71 * doc/tm.texi: Update.
72
73 2010-11-16 Nick Clifton <nickc@redhat.com>
74
75 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma
76 rtx_code.
77 (msubsf4): Rename to fmssf4, and use fma.
78 (nmaddsf4): Rename to fnmasf4 and use fma.
79 (nmsubsf4): Rename to fnmssf4 and use fma.
80
81 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
82
83 PR target/44762
84 * config/score/score3.c (score3_return_in_memory): Constify arguments.
85 (score3_in_small_data_p, score3_function_value): Likewise.
86 (score3_trampoline_init): Use LCT_NORMAL.
87 (score3_print_operand): Initialize code as UNKNOWN.
88 * config/score/predicates.md (score_load_multiple_operation):
89 Remove unused variable.
90 (score_store_multiple_operation): Likewise.
91 * config/score/score7.c (score7_return_in_memory): Constify arguments.
92 (score7_in_small_data_p, score7_function_value): Likewise.
93 (score7_trampoline_init): Use LCT_NORMAL.
94 (score7_print_operand): Initialize code as UNKNOWN.
95 * config/score/score3.h (score3_return_in_memory): Update prototype.
96 (score3_in_small_data_p, score3_function_value): Likewise.
97 * config/score/score-protos.h (score_function_value): Likewise.
98 * config/score/score7.h (score7_return_in_memory): Update prototype.
99 (score7_in_small_data_p, score7_function_value): Likewise.
100 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
101 (score_return_in_memory, score_pass_by_reference): Constify arguments.
102 (score_output_mi_thunk, score_function_prologue): Don't return a value.
103 (score_function_epilogue, score_in_small_data_p): Likewise.
104 (score_option_override, score_asm_trampoline_template): Likewise.
105 (score_trampoline_init, score_print_operand): Likewise.
106 (score_print_operand_address, score_prologue): Likewise.
107 (score_epilogue, score_call, score_call_value): Likewise.
108 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
109 (score_function_arg_advance): Likewise. Make static.
110 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
111 (score_function_arg, score_legitimate_address_p): Make static.
112 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
113 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
114 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
115 Allow (W) == HOST_BITS_PER_WIDE_INT.
116
117 PR java/46386
118 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
119 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
120
121 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
122
123 * config/arc/arc.c: Delete pasto.
124 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
125
126 2010-11-16 Anatoly Sokolov <aesok@post.ru>
127
128 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
129 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
130 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
131 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
132 (mn10300_preferred_reload_class,
133 mn10300_preferred_output_reload_class): New functions.
134
135 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
136
137 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New
138 macros.
139 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
140 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
141 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
142
143 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
144
145 * builtins.c (std_gimplify_va_arg_expr): Use
146 targetm.calls.function_arg_boundary.
147 * function.c (assign_parms, locate_and_pad_parm): Likewise.
148 * calls.c (struct arg_data): Update comment.
149 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
150 * target.def (function_arg_boundary): Define.
151 * targhooks.h (default_function_arg_boundary): Declare.
152 * targhooks.c (default_function_arg_boundary): Define.
153 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
154 TARGET_FUNCTION_ARG_BOUNDARY.
155 (FUNCTION_ARG_BOUNDARY): Delete.
156 (TARGET_FUNCTION_ARG_BOUNDARY): New.
157 * doc/tm.texi: Regenerate.
158 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
159 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
160 * config/arc/arc.c (arc_function_arg_boundary): Define.
161 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
162 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
163 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
164 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
165 (arm_function_arg_boundary): Define.
166 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
167 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
168 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
169 * config/frv/frv.c (frv_function_arg_boundary): Make static.
170 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
171 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
172 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
173 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
174 (ix86_compat_function_arg_boundary): Take and return unsigned int.
175 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
176 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
177 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
178 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
179 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
180 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
181 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
182 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
183 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
184 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
185 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
186 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
187 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
188 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
189 * config/mips/mips.c (mips_function_arg_boundary): Make static.
190 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
191 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
192 * config/pa/pa.c (pa_function_arg_boundary): Define.
193 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
194 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
195 * config/picochip/picochip-protos.h
196 (picochip_get_function_arg_boundary): Delete.
197 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
198 Rename to...
199 (picochip_function_arg_boundary): ...this. Make static.
200 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
201 (picochip_arg_advance): Adjust.
202 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
203 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
204 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
205 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
206 (rs6000_function_arg_boundary): ...this. Make static.
207 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
208 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
209 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
210 * config/rx/rx.c (rx_function_arg_boundary): Define.
211 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
212 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
213 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
214 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
215 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
216 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
217 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
218 (xtensa_function_arg_boundary): ...this. Make static.
219 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
220
221 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
222
223 * expr.c (alignment_for_piecewise_move): New function.
224 (widest_int_mode_for_size): New function.
225 (move_by_pieces, move_by_pieces_ninsns): Call them.
226 (can_store_by_pieces, store_by_pieces_1): Likewise.
227
228 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
229
230 * gcc.c (char_p): Define. Define a VEC of it.
231 (n_linker_options, n_assembler_options, n_preprocessor_options):
232 Delete.
233 (linker_options, assembler_options, preprocessor_options): Convert
234 to a VEC.
235 (add_preprocessor_option): Adjust.
236 (add_assembler_option): Adjust.
237 (add_linker_option): Adjust.
238 (do_specs_vec): New function.
239 (do_spec_1): Call it. Adjust for new types.
240
241 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
242
243 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update
244 dependencies.
245 (sreal.o, statistics.o, stringpool.o): Likewise.
246
247 2010-11-16 Richard Guenther <rguenther@suse.de>
248
249 PR tree-optimization/44545
250 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
251 statements are not reassociatable.
252 (reassociate_bb): Likewise.
253
254 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
255
256 * bitmap.c: Delete unnecessary includes.
257 * ebitmap.c: Likewise.
258 * et-forest.c: Likewise.
259 * sreal.c: Likewise.
260 * statistics.c: Likewise.
261 * stringpool.c: Likewise.
262 * double-int.c: Add comment for inclusion of tm.h.
263
264 2010-11-16 Richard Guenther <rguenther@suse.de>
265
266 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
267 (visit_nary_op): ... this.
268 (visit_binary_op): Remove.
269 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
270
271 2010-11-16 Richard Guenther <rguenther@suse.de>
272
273 PR middle-end/45172
274 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate
275 edges.
276
277 2010-11-16 Nick Clifton <nickc@redhat.com>
278
279 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
280 record is packed.
281
282 2010-11-15 Richard Henderson <rth@redhat.com>
283
284 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
285 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR,
286 DOT_PROD_EXPR.
287
288 2010-11-15 Richard Henderson <rth@redhat.com>
289
290 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
291 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
292 fma rtx_code.
293
294 2010-11-15 Richard Henderson <rth@redhat.com>
295
296 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
297 and *mulsubsf4 respectively. Use fma rtx_code.
298
299 2010-11-15 Joseph Myers <joseph@codesourcery.com>
300
301 * gcc.c: Include "vec.h".
302 (argbuf): Make into a VEC.
303 (argbuf_length, argbuf_index): Remove.
304 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
305 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
306 compare_debug_dump_opt_spec_function: Use VEC interfaces on
307 argbuf.
308 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
309 (gcc.o): Depend on $(VEC_H).
310
311 2010-11-15 Richard Henderson <rth@redhat.com>
312
313 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
314 via FMA if unsafe math.
315 (insert_var_expansion_initialization): Handle FMA.
316 (combine_var_copies_in_loop_exit): Likewise.
317
318 2010-11-15 Richard Henderson <rth@redhat.com>
319
320 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
321 * config/ia64/ia64.opt: Remove mfused-madd.
322 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
323 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
324 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
325 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
326 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
327 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
328 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
329 (fmav2sf4): Rename from fpma; use FMA code.
330 (fmsv2sf4): Rename from fpms; use FMA code.
331 (fnmav2sf4): Rename from *fpnma; use FMA code.
332 * config/ia64/ia64.md (MODE_SDF): New iterator.
333 (suffix): New mode attribute.
334 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
335 (fmssf4): Rename from *fmssf4.
336 (fnmasf4): Rename from *nfmasf4.
337 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
338 (*nmadddf4, *nmadddf4_truncsf): Remove.
339 (fmsdf4): Rename from *fmsdf4.
340 (fnmadf4): Rename from *nfmadf4.
341 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
342 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
343 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
344 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
345 (fmsxf4): Rename from *fmsxf4.
346 (fnmaxf4): Rename from *nfmaxf4.
347 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
348 (*fnmaxf_trunc_<MODE_SDF>): New.
349
350 2010-11-15 Jakub Jelinek <jakub@redhat.com>
351
352 PR tree-optimization/46461
353 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
354 a gimple val.
355
356 2010-11-15 Ian Lance Taylor <iant@google.com>
357
358 * godump.c: New file.
359 * common.opt (fdump-go-spec=): New option.
360 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
361 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
362 (TYPE_SYMTAB_IS_DIE): Define.
363 (struct tree_type): Change GTY for symtab field to use
364 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
365 to pick the union field.
366 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
367 (dump_go_spec_init): Declare.
368 * toplev.c (process_options): Handle flag_dump_go_spec.
369 * debug.c: Include "tree.h".
370 (do_nothing_debug_hooks): Set tree_type_symtab_field.
371 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
372 * dbxout.c (dbx_debug_hooks): Likewise.
373 (xcoff_debug_hooks): Likewise.
374 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
375 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
376 SDB_DEBUGGING_INFO is not defined.
377 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
378 (Overall Options): Document -fdump-go-spec.
379 * Makefile.in (OBJS-common): Add godump.o.
380 (debug.o): Add dependency on $(TREE_H).
381 (godump.o): New target.
382 (GTFILES): Add $(srcdir)/godump.c.
383
384 2010-11-15 Jakub Jelinek <jakub@redhat.com>
385
386 PR debug/46095
387 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
388 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
389 style < 0, add REG_FRAME_RELATED_EXPR.
390
391 PR debug/46387
392 * rtl.h (vt_equate_reg_base_value): New prototype.
393 * alias.c (vt_equate_reg_base_value): New function.
394 * var-tracking.c (vt_init_cfa_base): Use it.
395
396 2010-11-15 Jan Hubicka <jh@suse.cz>
397 Diego Novillo <dnovillo@google.com>
398
399 PR lto/41528
400 * doc/lto.texi: Add.
401 * doc/gccint.texi: Add reference to lto.texi.
402 * doc/invoke.texi: Update user documentation for LTO.
403 Move internal flags to lto.texi
404
405 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
406
407 * c-typeck.c (build_unary_op): Use
408 objc_build_incr_expr_for_property_ref to build the pre/post
409 increment/decrement of an Objective-C property ref, and skip the
410 lvalue_or_else check in that case.
411
412 2010-11-15 Martin Jambor <mjambor@suse.cz>
413
414 PR tree-optimization/46349
415 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
416 (contains_vce_or_bfcref_p): Likewise.
417 (sra_modify_assign): Use them.
418
419 2010-11-15 Richard Guenther <rguenther@suse.de>
420
421 PR tree-optimization/46467
422 * tree-ssa-structalias.c (do_structure_copy): Properly treat
423 variables without subvars.
424
425 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
426
427 * config/picochip/picochip.c (file header): Picochip name change.
428 * config/picochip/picochip.md (file header): Likewise.
429 * config/picochip/predicates.md (file header): Likewise.
430 * config/picochip/dfa_space.md (file header): Likewise.
431 * config/picochip/dfa_speed.md (file header): Likewise.
432 * config/picochip/picochip.h(file header): Likewise.
433 * config/picochip/constraints.md (file header): Likewise.
434 * config/picochip/picochip-protos.h (file header): Likewise.
435 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
436 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
437 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
438 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
439 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
440 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
441 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
442 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
443 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
444 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
445 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
446 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
447 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
448 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
449
450 2010-11-15 Richard Guenther <rguenther@suse.de>
451
452 PR bootstrap/46474
453 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
454
455 2010-11-15 Nick Clifton <nickc@redhat.com>
456
457 * config/stormy16/stormy16.c (direct_return): Do not generate a
458 direct return for interrupt handlers.
459
460 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
461
462 * Makefile.in (tm.texi): Replace with rule for:
463 ($(srcdir)/doc/tm.texi).
464 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
465 $(srcdir)/doc/tm.texi .
466 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
467 tm.texi .
468
469 PR target/46427
470 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
471
472 PR bootstrap/45444
473 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
474 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
475
476 PR target/46432
477 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
478
479 2010-11-15 Richard Guenther <rguenther@suse.de>
480
481 PR lto/44150
482 * lto-opts.c (lto_write_options): Write -fexceptions even if
483 not set by the user.
484
485 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
486
487 PR c/46462
488 * c-decl.c (declspecs_add_type): Make variables with error types
489 integers.
490 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
491 do not start a declaration before an Objective-C foreach.
492 (c_parser_declaration_or_fndef): Improve recovery after unknown
493 type name.
494 (c_parser_for_statement): Hoist entrance of "foreach context"
495 before ifs, add corresponding reset where it was missing. Do
496 not set objc_could_be_foreach_context for C.
497
498 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
499
500 PR tree-optimization/45722
501 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
502 this is a reference to a component.
503 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
504 (ipa_note_param_call): Adjust comment.
505
506 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
507
508 * config/mips/mips.c (machine_function): Remove
509 initialized_mips16_gp_pseudo_p.
510 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
511 detect whether a pseudo has already been created. Unconditionally
512 create a new one if not.
513 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
514 expanding to rtl. Create a new pseudo otherwise, if allowed.
515
516 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
517
518 PR target/43440
519 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
520 * tm.texi: Regenerated.
521 * output.h (decode_reg_name_and_count): Declare.
522 * varasm.c (decode_reg_name_and_count): New function.
523 (decode_reg_name): Reimplement using decode_reg_name_and_count.
524 * reginfo.c (fix_register): Use decode_reg_name_and_count and
525 iterate over all regs used.
526 * stmt.c (expand_asm_operands): Likewise.
527 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
528 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
529 multiple machine registers.
530
531 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
532
533 * stor-layout.c (place_union_field): Do not put location information
534 on offset expressions.
535 (place_field): Likewise.
536 (finalize_record_size): Likewise on size expressions.
537 (finalize_type_size): Likewise.
538 (layout_type): Likewise.
539
540 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
541
542 PR debug/42889
543 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
544 * df-core.c (df_set_bb_dirty_nonrl): Remove.
545 * df.h (df_set_bb_dirty_nonlr): Likewise.
546
547 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
548
549 * config/mips/mips.md (call_internal): Pass curr_insn to
550 mips_split_call.
551 (call_internal_direct): Ditto.
552 (call_value_internal): Ditto.
553 (call_value_internal_direct): Ditto.
554 (call_value_multiple_internal): Ditto.
555 * config/mips/mips.c (mips_split_call): Do not copy
556 CALL_INSN_FUNCTION_USAGE here.
557
558 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
559
560 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
561 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
562 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
563 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
564 (TUNE_LOONGSON_3A): Define.
565 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
566 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
567 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
568 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
569 (mips_rtx_cost_data): Add Loongson-3A.
570
571 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
572
573 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
574 switches.
575
576 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
577
578 * dwarf2out.c (macinfo_entry): New struct.
579 (output_comp_unit): Emit the section start label here and flag that we
580 will emit an info section.
581 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
582 emitting directly.
583 (dwarf2out_end_source_file): Likewise.
584 (dwarf2out_define): Likewise.
585 (dwarf2out_undef): Likewise.
586 (output_macinfo): New.
587 (dwarf2out_init): Do not emit debug section switches here, allocate a
588 vec for macinfo, when required.
589 (dwarf2out_finish): First switch to debug_abbrev_section here.
590 debug_line_section, debug_macinfo_section, Likewise.
591 Check that the pubtypes table has at least one unpruned entry before
592 trying to emit it.
593
594 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
595
596 PR c/20385
597 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
598 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
599 token lookahead.
600 (c_parser_compound_statement_nostart, c_parser_label,
601 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
602 (c_parser_declaration_or_fndef): Detect the case now matched by
603 c_parser_next_tokens_start_declaration, give error and correct it.
604
605 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
606
607 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
608 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
609 with typespec_kind.
610 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
611 (shadow_tag_warned, check_compound_literal_type): Adjust
612 uses of tag_defined_p.
613 (declspecs_add_type): Set typespec_kind.
614 * c-parser.c (c_parser_declaration_or_fndef,
615 c_parser_declspecs, c_parser_struct_declaration,
616 c_parser_parameter_declaration, c_parser_type_name,
617 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
618 of type_seen_p.
619 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
620 tag_defined_p, pass ctsk_firstref through.
621
622 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
623
624 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
625 (struct format_wanted_type): Replace field "name" with "kind", add
626 "format_start" and "format_length".
627 (check_format_info_main): Fill in new fields. Fill in
628 FORMAT_WANTED_TYPES even for missing arguments. Move checks
629 after the final NUL outside the while loop. Do not include
630 width and precision modifiers in the format_start/format_length
631 of the main format.
632 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
633 arguments. Compute WANTED_TYPE first so that format_type_warning
634 can be called for missing arguments. Adjust calls to
635 format_type_warning.
636 (format_type_warning): Fetch as much information as possible
637 from format_wanted_type. Adjust printing now that every
638 warning has a "descr", as well as for missing argument warnings
639 and to include % sign for format specifiers.
640
641 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
642
643 PR rtl-optimization/46204
644 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
645 Update all callers. Do not recompute topological order. Adjust
646 fallthrough edges following a degenerate conditional jump.
647
648 2010-11-12 Joseph Myers <joseph@codesourcery.com>
649
650 * opts-common.c (control_warning_option): New.
651 * opts.c (set_default_handlers): New.
652 (decode_options): Use set_default_handlers and
653 control_warning_option.
654 (common_handle_option): Update call to enable_warning_as_error.
655 (enable_warning_as_error): Take gcc_options parameters. Use
656 control_warning_option.
657 * opts.h (set_default_handlers, control_warning_option): Declare.
658
659 2010-11-12 Joseph Myers <joseph@codesourcery.com>
660
661 * Makefile.in (OPTS_H): Define.
662 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
663 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
664 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
665 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
666 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
667 * gcc.c (driver_handle_option): Take location_t parameter.
668 (process_command, do_self_spec): Update calls to
669 read_cmdline_option.
670 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
671 * langhooks.c (lhd_handle_option): Take location_t parameter.
672 * langhooks.h (handle_option): Take location_t parameter.
673 * lto-opts.c (lto_reissue_options): Update call to set_option.
674 * opts-common.c (handle_option): Make static. Take location_t
675 parameter and pass it to other functions.
676 (handle_generated_option): Take location_t parameter and pass it
677 to other functions.
678 (read_cmdline_option): Take location_t parameter and pass it to
679 other functions. Use warning_at and error_at.
680 (set_option): Take location_t parameter and pass it to other
681 functions.
682 * opts.c (common_handle_option): Take location_t parameter and
683 pass it to other functions.
684 (enable_warning_as_error): Make static. Take location_t parameter
685 and pass it to other functions.
686 (lang_handle_option): Take location_t parameter and pass it to
687 other functions.
688 (target_handle_option): Take location_t parameter.
689 (read_cmdline_options, maybe_default_option,
690 maybe_default_options, default_options_optimization,
691 decode_options): Take location_t parameter and pass it to other
692 functions.
693 * opts.h: Include input.h.
694 (struct cl_option_handler_func, decode_options, set_option,
695 handle_generated_option, read_cmdline_option): Take location_t
696 parameters.
697 (handle_option, enable_warning_as_error): Remove.
698 * toplev.c (toplev_main): Update call to decode_options.
699
700 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
701
702 * graphite-cloog-util.c (oppose_constraint,
703 cloog_matrix_to_ppl_constraint,
704 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
705 CLooG isl uses unsigned integers. This triggered a warning.
706
707 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
708
709 PR target/46438
710 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
711 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
712 (xtensa_function_arg_1): De-constify cum.
713 (xtensa_expand_prologue): Use add_reg_note.
714
715 PR target/46435
716 * config/cris/cris.c (saved_regs_mentioned): Delete.
717 (cris_reload_address_legitimized): Cast itype to enum reload_type.
718 Remove unused variable op0p.
719 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
720 (cris_emit_movem_store): Use add_reg_note.
721
722 PR bootstrap/46456
723 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
724
725 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
726
727 * function.c (expand_function_end): Set the locator of the prologue on
728 the stack checking insns.
729
730 2010-11-12 Richard Henderson <rth@redhat.com>
731
732 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
733 * config/xtensa/xtensa.opt (mfused-madd): Remove.
734 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
735 MASK_FUSED_MADD.
736 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
737 (fnmasf4): Rename from mulsubsf3; use fma.
738
739 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
740 Richard Henderson <rth@redhat.com>
741
742 PR target/46428
743 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
744 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
745 comparison.
746
747 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
748
749 * opts-common.c (decode_cmdline_option): Initialize separate_args.
750
751 2010-11-12 Jan Hubicka <jh@suse.cz>
752
753 * doc/invoke.texi (early-inlining-insns): Update default.
754 * params.def (early-inlining-insns): Default to 10.
755
756 2010-11-12 Olivier Hainque <hainque@adacore.com>
757
758 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
759
760 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
761
762 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
763 (SUPPORTS_INIT_PRIORITY): Define.
764
765 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
766
767 PR target/46430
768 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
769 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
770 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
771 (avr_device_to_devicelib): Likewise.
772 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
773 into block.
774 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
775 (zero_extendhidi2, zero_extendsidi2): Likewise.
776 * config/avr/avr.c (avr_num_arg_regs): Constify type.
777 (avr_return_addr_rtx): De-constify tem.
778 (avr_rotate_bytes): Move declarations to start of block.
779 Don't use variable length array.
780 Put nested if/else into block.
781
782 PR rtl-optimization/46433
783 * var-tracking.c: Include tm_p.h .
784
785 PR bootstrap/44756
786 PR build/44767
787 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
788 should be unsigned.
789 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
790 * doc/tm.texi: Regenerate.
791
792 PR target/46412
793 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
794 * config/bfin/bfin.c: Include sel-sched.h .
795 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
796 (expand_interrupt_handler_prologue): Remove unused variable insn.
797 (bfin_load_pic_reg): Likewise.
798 (bfin_rtx_costs): Make code / outer_code variables of type
799 enum rtx_code, copied from re-named parameters.
800 (bfin_local_alignment): Change align argument and return type
801 to unsigned.
802 (bfin_adjust_cost): Remove unused variable insn_type.
803 Declare variables at start of block.
804 (struct loop_info): Rename to...
805 (struct loop_info_d).
806 (workaround_rts_anomaly): Change type of icode to int.
807 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
808 with int-typed variable.
809 (note_np_check_stores): Likewise.
810 (trapping_loads_p): Remove unused variable pat.
811 (bfin_expand_binop_builtin): Use expand_normal.
812 (bfin_expand_unop_builtin): Likewise.
813 (bfin_expand_builtin): Likewise.
814 Set tmode before use.
815
816 PR middle-end/44769
817 * final.c (split_double): Don't use BITS_PER_WORD directly in
818 shift count.
819
820 PR target/46431
821 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
822 assignment.
823
824 PR target/46450
825 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
826 Use add_reg_note.
827 (xstormy16_function_arg): Dereference cum.
828 (xstormy16_expand_builtin): Use expand_normal.
829 Change type of omode to enum machine_mode.
830 (combine_bnp): Rename and to and_insn.
831
832 PR target/46437
833 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
834 localreg.
835
836 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
837
838 PR debug/46375
839 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
840
841 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
842
843 PR lto/46376
844 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
845
846 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
847
848 PR c/44782
849 * common.opt (fmax-errors=): New option.
850 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
851 * diagnostic.h (struct diagnostic_context): Add max_errors field.
852 * diagnostic.c (diagnostic_initialize): Initialize it.
853 (diagnostic_action_after_output): Exit if more than max_errors
854 have been output.
855 * doc/invoke.texi (Warning Options): Add -fmax-errors.
856 (-fmax-errors): Document.
857
858 2010-11-11 Richard Henderson <rth@redhat.com>
859
860 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
861
862 2010-11-11 Richard Henderson <rth@redhat.com>
863
864 * config/fused-madd.opt: New file.
865 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
866 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
867 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
868 * config/i386/i386.opt (mfused-madd): Remove.
869 * config/i386/sse.md (split_fma): Remove.
870 (split_fms, split_fnma, split_fnms): Remove.
871
872 2010-11-12 Jakub Jelinek <jakub@redhat.com>
873
874 PR target/46088
875 * config/i386/i386.md (*ashl<mode>3_cconly,
876 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
877 change nonimmediate_operand predicate to register_operand.
878
879 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
880
881 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
882
883 2010-11-11 Jan Hubicka <jh@suse.cz>
884
885 * opts.c (finish_options): Do not error on -flto-partition alone.
886
887 * doc/invoke.texi (-fwhopr): Merge into -flto section.
888 (-flto-partition): Document none.
889 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
890 * lto-wrapper.c: Update comment.
891 (run_gcc): Update LTO option parsing.
892 * opts.c (finish_options): add support -flto-partition=none
893 (common_handle_option): Remove fwhopr.
894 * common.opt: Turn fwhopr into flto.
895 * collect2.c (main): Update option handling.
896 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
897 * ipa-split.c (execute_split_functions): Remove flag_whopr.
898 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
899 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
900 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
901
902 2010-11-11 Jan Hubicka <jh@suse.cz>
903
904 PR tree-optimize/40436
905 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
906 (eliminated_by_inlining_prob): ... this one; return 50% probability for
907 SRA.
908 (estimate_function_body_sizes): Update use of eliminated_by_inlining_prob;
909 estimate static function size for 2 instructions.
910
911 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
912
913 PR target/44749
914 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
915 declare. Change type of argument four to type int.
916 (mep_secondary_input_reload_class): Returns enum reg_class.
917 (mep_secondary_output_reload_class): Likewise.
918 (mep_function_value): Change types of arguments to cont_tree.
919 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
920 argument four to type int.
921 (mep_secondary_input_reload_class): Returns enum reg_class.
922 (mep_secondary_output_reload_class): Likewise.
923 (mep_function_value): Change types of arguments to cont_tree.
924 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
925 mep_regno_reg_class to enum reg_class.
926
927 2010-11-11 Richard Henderson <rth@redhat.com>
928
929 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
930 that the target has the exact fma operation that we matched.
931
932 2010-11-11 Joseph Myers <joseph@codesourcery.com>
933
934 * reginfo.c (fix_register): Avoid inserting English word in
935 diagnostic sentence. Use %qs for quoting and %'.
936
937 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
938
939 * config/i386/driver-i386.c (host_detect_local_cpu): Support
940 Intel processor family 6, model 0x2c.
941
942 2010-11-11 Joseph Myers <joseph@codesourcery.com>
943
944 * opts.c (warning_as_error_callback,
945 register_warning_as_error_callback): Remove.
946 (enable_warning_as_error): Don't use warning_as_error_callback.
947 * opts.h (register_warning_as_error_callback): Remove.
948
949 2010-11-11 Richard Henderson <rth@redhat.com>
950
951 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
952 in between the MULT and the PLUS/MINUS.
953
954 2010-11-11 Jakub Jelinek <jakub@redhat.com>
955
956 PR middle-end/46388
957 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
958 BLKmode mode for it.
959 (expand_expr_real_1): Similarly for op0.
960
961 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
962
963 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
964 Document optional target selector.
965
966 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
967
968 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
969 assembling high and low parts of size if not using 32-bit HWINT; else
970 use DECL_SIZE_UNITS, not DECL_SIZE.
971
972 2010-11-11 Martin Jambor <mjambor@suse.cz>
973
974 PR tree-optimization/46383
975 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
976 offsets.
977 (compute_complex_ancestor_jump_func): Likewise.
978 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
979
980 2010-11-11 Jakub Jelinek <jakub@redhat.com>
981
982 PR debug/46150
983 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
984 true if expr1->hash != expr2->hash.
985
986 2010-11-10 Joseph Myers <joseph@codesourcery.com>
987
988 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
989 diagnostics with lowercase letters.
990 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
991 lowercase letters.
992 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
993 diagnostic.
994 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
995 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
996 lowercase letters.
997 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
998 Remove trailing ' ' from diagnostic.
999 * config/avr/avr.c (print_operand_address): Start diagnostic with
1000 a lowercase letter and remove trailing '.'.
1001 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
1002 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
1003 with lowercase letters. Use %' in diagnostics. Remove trailing
1004 '.' from diagnostics.
1005 (bfin_handle_longcall_attribute): Use %' in diagnostic.
1006 * config/cris/cris.c (cris_split_movdx,
1007 cris_expand_pic_call_address): Start diagnostics with lowercase
1008 letters.
1009 (cris_asm_output_label_ref): Use %' in diagnostic.
1010 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
1011 letter.
1012 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
1013 lowercase letter.
1014 * config/darwin-c.c (version_as_macro): Start diagnostic with a
1015 lowercase letter.
1016 * config/darwin-driver.c (darwin_default_min_version): Use %' in
1017 diagnostic.
1018 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
1019 diagnostic.
1020 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1021 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
1022 diagnostics.
1023 * config/i386/i386.c (ix86_option_override_internal): Write
1024 diagnostic as a single sentence without trailing '.'. Use %' in
1025 diagnostics.
1026 (ix86_function_sseregparm, classify_argument): Start diagnostics
1027 with lowercase letters.
1028 (ix86_expand_prologue): Use %' in diagnostic.
1029 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
1030 diagnostic.
1031 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
1032 lowercase letter.
1033 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
1034 diagnostic.
1035 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1036 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
1037 '`' in help text.
1038 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
1039 lowercase letter.
1040 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
1041 lowercase letters.
1042 * config/microblaze/microblaze.c (microblaze_handle_option):
1043 Remove trailing '.' from diagnostic.
1044 (print_operand): Start diagnostic with a lowercase letter.
1045 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
1046 lowercase letters. Avoid '`' in diagnostics.
1047 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
1048 lowercase letters. Avoid '`' in diagnostics.
1049 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
1050 lowercase letters. Avoid '`' in diagnostics.
1051 * config/picochip/picochip.c (picochip_option_override,
1052 picochip_emit_save_register, picochip_function_arg,
1053 picochip_output_label, picochip_output_internal_label,
1054 picochip_asm_output_opcode, picochip_output_cbranch,
1055 picochip_output_compare, picochip_output_branch,
1056 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
1057 diagnostics. Start diagnostics with lowercase letters. Use %' in
1058 diagnostics.
1059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
1060 "SPE" capitalization. Start diagnostic with a lowercase letter.
1061 (rs6000_handle_option): Start diagnostics with lowercase letters.
1062 (def_builtin): Remove trailing '.' from diagnostic.
1063 (rs6000_savres_routine_name): Start diagnostic with a lowercase
1064 letter.
1065 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
1066 diagnostic.
1067 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
1068 lowercase letter.
1069 * config/s390/s390.c (s390_option_override) Start diagnostics with
1070 lowercase letters. Use %' in diagnostic.
1071 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
1072 lowercase letters.
1073 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
1074 diagnostic.
1075 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
1076 diagnostic.
1077 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
1078 diagnostic.
1079 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
1080 * config/spu/spu.c (spu_option_override): Start diagnostics with
1081 lowercase letters. Use %qs for quoting in diagnostics.
1082 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
1083 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
1084 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
1085 from diagnostic.
1086 * convert.c (convert_to_integer, convert_to_vector): Use %' in
1087 diagnostics.
1088 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
1089 letter and use "cannot" spelling.
1090 * expmed.c (extract_fixed_bit_field): Start diagnostic with
1091 lowercase letter and format as a single sentence without '.'.
1092 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
1093 Use %' in diagnostics.
1094 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1095 Use %' in diagnostics.
1096 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
1097 Use %' in diagnostics.
1098 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
1099 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
1100 with lowercase letters and remove tailing '.' and '\n'.
1101 * lto-cgraph.c (input_profile_summary): Start diagnostic with
1102 lowercase letter and remove trailing '.'.
1103 (input_cgraph): Start diagnostics with lowercase letters and
1104 remove trailing '\n'.
1105 * opts.c (finish_options, common_handle_option): Start diagnostics
1106 with lowercase letters and remove trailing '.'. Fix typo in
1107 diagnostic.
1108 * passes.c (position_pass): Start diagnostic with lowercase
1109 letter.
1110 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
1111 register_callback, try_init_one_plugin): Start diagnostics with
1112 lowercase letters.
1113 * reload1.c (spill_failure): Use %' in diagnostic.
1114 (gen_reload): Start diagnostic with a lowercase letter.
1115 * stor-layout.c (place_field): Start diagnostic with a lowercase
1116 letter.
1117 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
1118 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
1119 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
1120 Start diagnostics with lowercase letters, remove trailing '.' and
1121 use %' in diagnostics.
1122 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
1123 (verify_ssa): Don't split diagnostic across two error calls.
1124 Spell out "number" and use %' in diagnostic.
1125 * value-prof.c (visit_hist, check_counter): Start diagnostics with
1126 lowercase letters.
1127
1128 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
1129
1130 PR middle-end/46419
1131 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
1132 (_mm_cvtpu16_ps): Ditto.
1133
1134 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1135
1136 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
1137 warn_larger_than, larger_than_size, warn_frame_larger_than,
1138 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
1139 default_visibility, flag_tls_default): New Variable declarations.
1140 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
1141 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
1142 (v): Declare as Common and document here.
1143 * flags.h (default_visibility, flag_generate_lto,
1144 warn_larger_than, larger_than_size, warn_frame_larger_than,
1145 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
1146 flag_shlib, flag_excess_precision_cmdline): Remove.
1147 (set_Wstrict_aliasing): Update prototype.
1148 * gcc.c (verbose_flag): Remove.
1149 (driver_handle_option): Add diagnostic_context parameter. Don't
1150 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
1151 incrementing it.
1152 * opts-common.c (handle_option): Pass dc to handler.
1153 * opts.c (warn_larger_than, larger_than_size,
1154 warn_frame_larger_than, frame_larger_than_size,
1155 default_visibility): Remove.
1156 (common_handle_option): Add diagnostic_context parameter.
1157 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
1158 gcc_options parameters.
1159 (lang_handle_option, target_handle_option, read_cmdline_options,
1160 decode_options): Add diagnostic_context parameters.
1161 (finish_options): Access option state through opts pointer where
1162 possible.
1163 (common_handle_option): Access option state through opts pointer
1164 where possible. Do not set local static variable verbose. Do not
1165 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
1166 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
1167 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
1168 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
1169 OPT_fwhopr_. Do not explicitly set .opt file variables for
1170 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
1171 (set_Wstrict_aliasing): Add gcc_options parameter.
1172 * opts.h (struct cl_option_handler_func): Add diagnostic_context
1173 parameter to handler.
1174 (decode_options): Add diagnostic_context parameter.
1175 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
1176 asm_file_name, flag_generate_lto, flag_gen_aux_info,
1177 aux_info_file_name, flag_shlib, flag_tls_default,
1178 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
1179 (toplev_main): Pass global_dc to decode_options.
1180 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
1181 aux_info_file_name, asm_file_name): Remove.
1182 * tree.h (flag_tls_default): Remove.
1183
1184 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
1185
1186 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
1187 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
1188
1189 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
1190
1191 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
1192 (x86_64-*-*): Likewise.
1193 * config/i386/cpuid.h: Define TBM bit.
1194 * config/i386/driver-i386.c (host_detect_local_cpu): Define
1195 and set has_tbm.
1196 * config/i386/i386-c.c (ix86_target_macros_internal): Check
1197 isa_flag for TBM.
1198 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
1199 (OPTION_MASK_ISA_TBM_UNSET): New.
1200 (ix86_handle_option): Handle -mtbm.
1201 (isa_opts): Add -mtbm.
1202 (enum pta_flags): Add PTA_TBM.
1203 (ix86_option_override_internal): Add TBM support.
1204 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
1205 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
1206 (IX86_BUILTIN_BEXTRI64): Likewise.
1207 (bdesc_args): Add TBM intrinsics.
1208 (ix86_expand_builtin): Add TBM specific case.
1209 * config/i386/i386.h (TARGET_TBM): New for TBM.
1210 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
1211 (tbm_bextri_<mode>): Likewise.
1212 (*tbm_blcfill_<mode>): Likewise.
1213 (*tbm_blci_<mode>): Likewise.
1214 (*tbm_blcic_<mode>): Likewise.
1215 (*tbm_blcmsk_<mode>): Likewise.
1216 (*tbm_blcs_<mode>): Likewise.
1217 (*tbm_blsfill_<mode>): Likewise.
1218 (*tbm_blsic_<mode>): Likewise.
1219 (*tbm_t1mskc_<mode>): Likewise.
1220 (*tbm_tzmsk_<mode>): Likewise.
1221 * config/i386/i386.opt: Add -mtbm.
1222 * config/i386/tbmintrin.h (__bextri_u32): New.
1223 (__blcfill_u32): Likewise.
1224 (__blci_u32): Likewise.
1225 (__blcic_u32): Likewise.
1226 (__blcmsk_u32): Likewise.
1227 (__blcs_u32): Likewise.
1228 (__blsfill_u32): Likewise.
1229 (__blsic_u32): Likewise.
1230 (__t1mskc_u32): Likewise.
1231 (__tzmsk_u32): Likewise.
1232 (__bextri_u64): Likewise.
1233 (__blcfill_u64): Likewise.
1234 (__blci_u64): Likewise.
1235 (__blcic_u64): Likewise.
1236 (__blcmsk_u64): Likewise.
1237 (__blcs_u64): Likewise.
1238 (__blsfill_u64): Likewise.
1239 (__blsic_u64): Likewise.
1240 (__t1mskc_u64): Likewise.
1241 (__tzmsk_u64): Likewise.
1242 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
1243 * doc/invoke.texi: Document -mtbm.
1244 * doc/extend.texi: Document TBM built-in functions.
1245
1246 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
1247
1248 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
1249 (x86_64-*-*): Likewise.
1250 * config/i386/cpuid.h: Define BMI bit.
1251 * config/i386/driver-i386.c (host_detect_local_cpu): Define
1252 and set has_bmi.
1253 * config/i386/i386-c.c (ix86_target_macros_internal): Check
1254 isa_flag for BMI.
1255 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
1256 (OPTION_MASK_ISA_BMI_UNSET): New.
1257 (ix86_handle_option): Handle -mbmi.
1258 (isa_opts): Add -mbmi.
1259 (enum pta_flags): Add PTA_BMI.
1260 (ix86_option_override_internal): Add BMI support.
1261 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
1262 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
1263 (IX86_BUILTIN_BEXTR64): Likewise.
1264 (IX86_BUILTIN_CTZS): Likewise.
1265 (bdesc_args): Add BMI intrinsics.
1266 (ix86_expand_args_builtin): Add BMI specific cases.
1267 * config/i386/i386.h (TARGET_BMI): New for BMI.
1268 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
1269 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
1270 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
1271 (UNSPEC_TZCNT): Likewise.
1272 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
1273 (bmi_andn_<mode>): New for BMI.
1274 (bmi_bextr_<mode>): Likewise.
1275 (bmi_blsi_<mode>): Likewise.
1276 (bmi_blsmsk_<mode>): Likewise.
1277 (bmi_blsr_<mode>): Likewise.
1278 * config/i386/i386.opt: Add -mbmi.
1279 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
1280 * config/i386/bmiintrin.h (__lzcnt_u16): New.
1281 (__tzcnt_u16): Likewise.
1282 (__andn_u32): Likewise.
1283 (__bextr_u32): Likewise.
1284 (__blsi_u32): Likewise.
1285 (__blsmsk_u32): Likewise.
1286 (__blsr_u32): Likewise.
1287 (__lzcnt_u32): Likewise.
1288 (__tzcnt_u32): Likewise.
1289 (__andn_u64): Likewise.
1290 (__bextr_u64): Likewise.
1291 (__blsi_u64): Likewise.
1292 (__blsmsk_u64): Likewise.
1293 (__blsr_u64): Likewise.
1294 (__lzcnt_u64): Likewise.
1295 (__tzcnt_u64): Likewise.
1296 * doc/invoke.texi: Document -mbmi and -mno-bmi.
1297 * doc/extend.texi: Document BMI built-in functions.
1298
1299 2010-11-10 Jan Hubicka <jh@suse.cz>
1300
1301 PR tree-optimize/46228
1302 * doc/invoke.texi (comdat-sharing-probability): Document.
1303 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
1304 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
1305
1306 2010-11-10 Jan Hubicka <jh@suse.cz>
1307
1308 PR tree-optimize/46228
1309 * cgraph.c (cgraph_propagate_frequency): Fix typo.
1310
1311 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 PR tree-optimization/46414
1314 * tree-inline.c (estimate_move_cost): Check preferred vector
1315 mode for vector type.
1316
1317 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1318
1319 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
1320
1321 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
1322
1323 PR tree-optimization/45971
1324 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
1325 for phi nodes analyzable by scev.
1326
1327 2010-11-10 Richard Guenther <rguenther@suse.de>
1328
1329 PR tree-optimization/44964
1330 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
1331
1332 2010-11-10 Martin Jambor <mjambor@suse.cz>
1333
1334 PR tree-optimization/46351
1335 PR tree-optimization/46377
1336 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
1337 aggregate bit-fields.
1338
1339 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1340
1341 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1342 * doc/tm.texi: Regenerate.
1343 * opts-common.c (tm.h): Don't include.
1344 (target_option_translations): Remove.
1345 (decode_cmdline_options_to_array): Don't handle translating options.
1346 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
1347 * config/darwin-driver.c: Don't condition includes on
1348 CROSS_DIRECTORY_STRUCTURE.
1349 (darwin_default_min_version): Make static.
1350 (darwin_driver_init): New. Call darwin_default_min_version if not
1351 CROSS_DIRECTORY_STRUCTURE.
1352 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1353 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
1354 (ASM_SPEC): Add %{static}.
1355 (darwin_default_min_version): Don't declare.
1356 (darwin_driver_init): Declare.
1357 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
1358 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
1359 * config/darwin.opt (all_load, allowable_client,
1360 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
1361 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
1362 exported_symbols_list, filelist, findirect-virtual-calls,
1363 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
1364 framework, fterminated-vtables, gfull, gused, image_base, init,
1365 install_name, multi_module, multiply_defined,
1366 multiply_defined_unused, no_dead_strip_inits_and_terms,
1367 seg_addr_table, seg_addr_table_filename, segaddr,
1368 segs_read_only_addr, segs_read_write_addr, single_module,
1369 umbrella, unexported_symbols_list, weak_reference_mismatches,
1370 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
1371 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
1372 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
1373 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
1374 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
1375 (ASM_SPEC): Add %{static}.
1376 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1377 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1378 (DRIVER_SELF_SPECS): Handle options formerly in
1379 TARGET_OPTION_TRANSLATE_TABLE.
1380 * config/mep/mep.opt (mfar): New.
1381 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1382 (DRIVER_SELF_SPECS): Define. Handle options formerly in
1383 TARGET_OPTION_TRANSLATE_TABLE.
1384 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
1385 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1386 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
1387 ffix-and-continue, findirect-data): New.
1388 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1389 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
1390 (mnofpu): Define mask and use Report here.
1391
1392 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1393
1394 * config/s390/s390.c (s390_emit_prologue): Report the stack
1395 size if -fstack-usage is used.
1396
1397 2010-11-10 Richard Guenther <rguenther@suse.de>
1398
1399 PR tree-optimization/46398
1400 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
1401
1402 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
1403
1404 PR target/44760
1405 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
1406 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
1407 GP_REG_OR_PSEUDO_STRICT_P.
1408 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
1409 unexpected alternative.
1410 (*movsf_internal): Likewise.
1411 (indirect_jump): Replace call to non-existant function with call to
1412 internal_error.
1413 (tablejump): Likewise.
1414 * config/iq2000/iq2000.c: Include df.h .
1415 (iq2000_function_arg_advance): Use CONST_CAST2.
1416 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
1417 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
1418 a non-zero function address.
1419 (iq2000_initial_elimination_offset): Add gcc_unreachable for
1420 unexpected value of FROM.
1421 (symbolic_expression_p): Delete.
1422 (iq2000_function_value): Constify func.
1423 (expand_one_builtin): Use expand_normal.
1424 (iq2000_print_operand): Don't print VALUE if calculating it failed.
1425
1426 PR rtl-optimization/44764
1427 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
1428
1429 PR target/46407
1430 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
1431 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
1432 with ATTRIBUTE_UNUSED.
1433 (valid_psw_flag): Constify parameter which.
1434 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
1435
1436 PR target/46415
1437 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
1438 (mmix_dbx_register_number): Likewise.
1439 * config/mmix/mmix.c: Include df.h .
1440 (mmix_local_alignment): Change argument basic_align and return type
1441 to unsigned.
1442 (mmix_dbx_register_number): Change argument and return type to
1443 unsigned.
1444 (mmix_expand_prologue): Use add_reg_note.
1445
1446 PR target/46417
1447 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
1448 (spu_split_store): Use aform.
1449 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
1450
1451 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1452
1453 PR/46268
1454 * doc/gty.texi (GTY Options): Clarify that variable_size produces
1455 allocators taking size in bytes, compare with length option. Add
1456 size calculation example.
1457 (Invoking the garbage collector): Ensure that sentences are
1458 followed by two spaces. Describe that pointer fields must be
1459 initialized at ggc_collect call.
1460 (Troubleshooting): New section.
1461
1462 2010-11-09 Jan Hubicka <jh@suse.cz>
1463
1464 PR tree-optimization/40436
1465 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
1466 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
1467 normal instructions; be sure bultin is not implemented in this file;
1468 compute non-zero return cost.
1469 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
1470 * tree-inline.h (eni_weights_d): Add return cost.
1471
1472 2010-11-09 Joseph Myers <joseph@codesourcery.com>
1473
1474 * c-parser.c (c_parser_struct_declaration): Handle declaration
1475 specifiers followed by CPP_CLOSE_BRACE.
1476
1477 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1478
1479 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
1480 split occurs before reload, and we allocate memory at the time of
1481 the split, not during expansion. Add attributes.
1482 (floatsi<mode>2_lfiwax_mem): Ditto.
1483 (floatunssi<mode>2_lfiwzx): Ditto.
1484 (floatunssi<mode>2_lfiwzx_mem): Ditto.
1485 (floatsidf2): Ditto.
1486 (floatunssisf2): Ditto.
1487 (floatunssidf2): Ditto.
1488 (fix_trunc<mode>si2): Ditto.
1489 (fix_trunc<mode>si2_stfiwx): Ditto.
1490 (fix_trunc<mode>si2_internal): Ditto.
1491 (fix_trunc<mode>si2): Ditto.
1492 (fix_trunc<mode>di2): Ditto.
1493 (fixuns_trunc<mode>si2_stfiwx): Ditto.
1494 (floatsisf2): Ditto.
1495 (floatdidf2_mem): Ditto.
1496 (floatunsdidf2_mem): Ditto.
1497 (floatunsdidf2): Ditto.
1498 (floatdisf2_internal1): Ditto.
1499 (floatdisf2_mem): Ditto.
1500 (floatunsdisf2_mem): Ditto.
1501 (floatsi<mode>2_lfiwax_mem2): Delete.
1502 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1503 (fix_trunc<mode>si2_mem): Ditto.
1504 (fixuns_trunc<mode>si2_mem): Ditto.
1505 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
1506 type operations to reduce copying the values to multiple memory slots.
1507 (roundu32<mode>2_fprs): Ditto.
1508
1509 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
1510 PRE_INC, PRE_DEC, PRE_MODIFY.
1511 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
1512
1513 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
1514 Delete prototype.
1515
1516 2010-11-09 Jakub Jelinek <jakub@redhat.com>
1517
1518 PR target/43808
1519 * cfgexpand.c (partition_stack_vars): Call
1520 update_alias_info_with_stack_vars unconditionally.
1521 (update_alias_info_with_stack_vars): Allow unused
1522 unreferenced vars when not optimizing.
1523
1524 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
1525
1526 PR tree-optimization/46036
1527 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
1528 add_to_dst_predicate_list.
1529
1530 2010-11-09 Jakub Jelinek <jakub@redhat.com>
1531
1532 PR debug/46171
1533 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
1534 earlier.
1535 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
1536 argument, call dead_debug_reset when adding REG_UNUSED note.
1537 (dead_debug_reset): New function.
1538 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
1539 df_create_unused_note callers.
1540
1541 2010-11-09 Anatoly Sokolov <aesok@post.ru>
1542
1543 * config/fr30/fr30.c: Include "df.h".
1544
1545 2010-11-09 Richard Guenther <rguenther@suse.de>
1546
1547 PR tree-optimization/46355
1548 * tree-loop-distribution.c (tree_loop_distribution): Do not
1549 distribute loops without a single exit.
1550
1551 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1552
1553 PR rtl-optimization/46237
1554 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
1555 saved hard regs if they might get partially clobbered.
1556
1557 2010-11-09 Paul Koning <ni1d@arrl.net>
1558
1559 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
1560
1561 2010-11-09 Richard Guenther <rguenther@suse.de>
1562
1563 PR tree-optimization/46177
1564 * tree-loop-distribution.c (prop_phis): Remove.
1565 (generate_builtin): Re-use the old loop exit edge to avoid
1566 needing to update PHI nodes.
1567
1568 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
1569
1570 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
1571 type of args_size to unsigned HOST_WIDE_INT.
1572
1573 PR target/44755
1574 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
1575 * config/t-pnt16-warn: New file.
1576 * config/picochip/picochip.c (picochip_emit_stack_allocate):
1577 Use add_reg_note.
1578 (picochip_emit_save_register): Likewise.
1579 (picochip_emit_restore_register): Remove variable insn.
1580 (picochip_legitimize_address): Don't use C++ style comments.
1581 (picochip_legitimize_reload_address): Likewise.
1582 (reorder_var_tracking_notes): Remove variable vliw_start.
1583 (picochip_reorg): Cast first arguemnt to emit_note_after to
1584 enum insn_note.
1585 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
1586 (picochip_expand_builtin_3op): Likewise.
1587 (picochip_expand_builtin_2opvoid): Likewise.
1588 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
1589 (picochip_expand_array_testport): Likewise.
1590 (picochip_init_builtins): Remove unused variables.
1591 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
1592 to unsigned long, and output it as such.
1593 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
1594 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
1595 (schedType): Cast result of picochip_schedule_type to
1596 enum attr_schedType.
1597
1598 PR target/44759
1599 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
1600 conditional to type of S.
1601 (mn10300_function_arg): Remove unused variable align.
1602 (mn10300_arg_partial_bytes): Likewise.
1603 * config/mn10300/mn10300.md (attribute cpu): Cast value to
1604 enum attr_cpu.
1605
1606 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 PR bootstrap/46392
1609 * gengtype-parse.c (type): Call get_input_file_name to get file name.
1610
1611 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
1612
1613 * tree.h (contains_placeholder_p): Fix comment.
1614 (type_contains_placeholder_p): Adjust comment.
1615 * tree.c (contains_placeholder_p): Fix comment.
1616 (type_contains_placeholder_1): Do not recurse on pointed-to types and
1617 adjust comment.
1618 (type_contains_placeholder_p): Add comment.
1619
1620 2010-11-09 Paul Koning <ni1d@arrl.net>
1621
1622 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
1623 output of byte values.
1624
1625 2010-11-09 Jakub Jelinek <jakub@redhat.com>
1626
1627 PR middle-end/46360
1628 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
1629 not in SSA mode.
1630
1631 2010-11-09 Richard Guenther <rguenther@suse.de>
1632
1633 PR middle-end/46221
1634 * varasm.c (compute_visible_aliases): New function.
1635 (remove_unreachable_alias_pairs): Aliases make a target available
1636 even though we reclaimed the cgraph node.
1637 (finish_aliases_1): Likewise.
1638 * Makefile.in (varasm.o): Add pointer-set.h dependency.
1639
1640 2010-11-09 Nick Clifton <nickc@redhat.com>
1641
1642 * config/mn10300/mn10300-modes.def: New file.
1643
1644 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
1645 Jeremie Salvucci <jeremie.salvucci@free.fr>
1646
1647 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
1648 (plugin_files, get_file_basename, get_file_realbasename)
1649 (get_file_langdir, error_at_line, gt_files, this_file)
1650 (system_h_file, read_input_list, create_field_all)
1651 (get_file_srcdir_relative_path, get_file_basename)
1652 (get_file_langdir, get_file_gtfilename)
1653 (get_output_file_with_visibility, get_output_file_name)
1654 (struct flist, put_mangled_filename, walk_type)
1655 (put_mangled_filename, finish_root_table, write_roots): Use
1656 input_file-s.
1657 (lang_dir_names, num_lang_dirs): Remove static.
1658 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
1659 (main): Use input_file-s.
1660
1661 * gengtype.h: (struct input_file_st, input_file): New type.
1662 (struct fileloc): Use it.
1663 (gt_files, num_gt_files, this_file, system_h_file)
1664 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
1665 (get_input_file_name): New function.
1666 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
1667 use input_file.
1668 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
1669 (get_output_file_name): Ditto.
1670
1671 * gengtype-lex.l (yybegin): Use input_file.
1672
1673 * gengtype-parse.c (parse_error): Use input_file.
1674
1675 2010-11-08 Xinliang David Li <davidxl@google.com>
1676
1677 PR tree-optimization/46316
1678 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
1679 * double-int.h (double_int_mul_with_sign): New function.
1680 * double-int.c (double_int_mul_with_sign): New function.
1681
1682 2010-11-08 Paul Koning <ni1d@arrl.net>
1683
1684 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
1685
1686 2010-11-08 Paul Koning <ni1d@arrl.net>
1687
1688 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
1689
1690 2010-11-08 Paul Koning <ni1d@arrl.net>
1691
1692 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
1693 to 8 bits.
1694
1695 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1696
1697 PR target/46378
1698 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1699 turn on ISA 2.04 rounding instructions for power5.
1700
1701 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
1702 not ISA 2.02.
1703
1704 PR target/45585
1705 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
1706 in FPR registers.
1707 (movdi_low_st): Ditto.
1708
1709 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
1710 Richard Henderson <rth@redhat.com>
1711
1712 PR target/44758
1713 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
1714 (attribute acc_group): Cast value to enum attr_acc_group.
1715 (*movdi_nodouble+6): Use gen_int_mode.
1716 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
1717 if RTX_CODE is defined or not.
1718 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
1719 struct frv_io.
1720 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
1721 (frv_frame_access, frv_expand_prologue): Remove unused variables.
1722 (frv_expand_block_clear): Likewise.
1723 (frv_trampoline_init): Use LCT_NORMAL.
1724 (struct frv_packet_group): New struct, broken out of type of
1725 frv_packet.
1726 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
1727 use cast in loop counter increment.
1728 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
1729 assigning to io->type.
1730 (bdesc_set): Use rtx_code UNKNOWN in initializer.
1731 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
1732 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
1733 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
1734 (frv_read_argument): Use expand_normal.
1735
1736 PR target/44757
1737 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
1738 lm32_legitimate_constant_p.
1739 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1740 * config/lm32/lm32.c (gen_int_relational): Make new block for
1741 LE / LT / LEU / LTU case. Declare variables at start of block.
1742 (lm32_block_move_inline): Use XALLOCAVEC.
1743
1744 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1745
1746 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
1747
1748 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
1749
1750 * gengtype (get_output_file_for_structure): Ensure type is union
1751 or struct.
1752 (write_splay_tree_allocator_def): Use
1753 get_output_file_with_visibility.
1754
1755 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1756
1757 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
1758 to defined values in case of an error.
1759 (s390_option_override): Skip further processing if the -march
1760 parameter wasn't recognized.
1761
1762 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
1763
1764 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
1765 assert that REG is a hard register number before using it as an index.
1766
1767 PR bootstrap/46358
1768 * config/i386/i386.c (ix86_expand_split_stack_prologue):
1769 Avoid warnings when HOST_WIDE_INT is 32 bit.
1770
1771 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 PR target/46208
1774 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
1775 (sparc_promote_prototypes): Likewise.
1776 (sparc_promote_function_mode): Promote in 32-bit mode as well.
1777 (sparc_return_in_memory): Remove superfluous parentheses.
1778 (sparc_struct_value_rtx): Fix long lines.
1779 (sparc_function_value_1): Promote in 32-bit mode as well.
1780
1781 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
1782
1783 PR rtl-optimization/45352
1784 * sel-sched.c (find_best_expr): Do not set pneed_stall when
1785 the variable_issue hook is not implemented.
1786 (fill_insns): Remove dead variable stall_iterations.
1787 (init_seqno_1): Force EBB start for resetting sched cycles on any
1788 successor blocks of the rescheduled region.
1789 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
1790 (reset_sched_cycles_in_current_ebb): Add debug printing.
1791 New variable issued_insns. Advance state when we have issued
1792 issue_rate insns.
1793
1794 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
1795
1796 * gengtype (main): Get here's position using POS_HERE macro for
1797 do*typedef calls.
1798
1799 2010-11-07 Ian Lance Taylor <iant@google.com>
1800
1801 PR target/46089
1802 * config/i386/i386.c (split_stack_fn_large): New static variable.
1803 (ix86_expand_split_stack_prologue): Handle large model.
1804
1805 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
1806
1807 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
1808 all possible addressing modes.
1809
1810 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
1811
1812 PR tree-optimization/46346
1813 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
1814
1815 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
1816
1817 * config/mips/mips.c: Revert previous patch.
1818 * config/mips/mips.md: Likewise.
1819
1820 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
1821
1822 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
1823 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
1824 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
1825 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
1826 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
1827 to use FMA.
1828 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
1829 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
1830 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
1831 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
1832
1833 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
1834
1835 PR c/43384
1836 * c-decl.c (lookup_label): Labels can only be referenced in a
1837 function's scope.
1838 (store_parm_decls_oldstyle): Skip erroneous parameters.
1839
1840 2010-11-06 Anatoly Sokolov <aesok@post.ru>
1841
1842 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1843 LIBCALL_VALUE): Remove macros.
1844 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1845 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1846 (fr30_function_value_regno_p, fr30_function_value,
1847 fr30_libcall_value): New functions.
1848
1849 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
1850
1851 PR middle-end/46314
1852 * target.def (generate_internal_label): New asm_out hook.
1853 * output.h (default_generate_internal_label): Declare.
1854 * varasm.c (default_generate_internal_label): Define.
1855
1856 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1857
1858 PR target/44981
1859 * doc/extend.tex (format): Document NSString extension.
1860 (format_arg): Likewise.
1861 (Darwin Format Checks): New section.
1862 * doc/tm.texi: Document string object hooks (generated).
1863 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
1864 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1865 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1866 * target.def (objc_construct_string_object): Rename, amend
1867 documentation.
1868 (string_object_ref_type_p): New hook.
1869 (check_string_object_format_arg): New hook.
1870 * c-parser.c (c_parser_attributes): Allow objective-c class names as
1871 attribute identifiers.
1872 * config/darwin-c.c (darwin_cfstring_ref_p): New.
1873 (darwin_check_cfstring_format_arg): New.
1874 (darwin_additional_format_types): New.
1875 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
1876 (darwin_check_cfstring_format_arg): New.
1877 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
1878 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1879 (TARGET_N_FORMAT_TYPES): New.
1880 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1881
1882 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
1883 Pascal Obry <obry@adacore.com>
1884
1885 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
1886 in 64-bit mode and 17 otherwise.
1887
1888 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1889
1890 PR debug/45939
1891 * var-tracking.c (emit_note_insn_var_location): Make sure that
1892 call related var location notes come before the normal ones.
1893
1894 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
1895
1896 PR target/46326
1897 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
1898 in the last change.
1899
1900 2010-11-05 Ian Lance Taylor <iant@google.com>
1901
1902 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
1903
1904 2010-11-05 Jakub Jelinek <jakub@redhat.com>
1905
1906 PR c/44772
1907 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
1908 pointer_set_contains if DECL_NAME is NULL.
1909
1910 2010-11-05 Ian Lance Taylor <iant@google.com>
1911
1912 PR target/46084
1913 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
1914 request enough additional space for alignment, and force alignment.
1915
1916 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
1917
1918 * config/i386/i386.c (legitimate_pic_address_disp_p):
1919 Handle UNSPEC_PCREL.
1920 (ix86_legitimate_address_p): Likewise.
1921 (legitimize_pic_address): Likewise.
1922 (output_pic_addr_const): Likewise.
1923 (ix86_delegitimize_address): Likewise.
1924 (ix86_find_base_term): Likewise.
1925 (memory_address_length): Likewise.
1926 (x86_output_mi_thunk): Handle special case x64
1927 for non local binding.
1928 * config/i386/i386.md (UNSPEC_PCREL): New.
1929 * config/i386/winnt.c (i386_pe_binds_local_p):
1930 Allow weak symbol for x64 windows with non-local binding.
1931
1932 2010-11-05 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR target/45670
1935 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
1936 instead of EXPAND_NORMAL for base expansion.
1937
1938 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
1939
1940 * config.gcc: Support --with-fpmath=avx for x86.
1941 * config/i386/avxmath.h: New.
1942 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
1943
1944 2010-11-05 Ian Lance Taylor <iant@google.com>
1945
1946 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
1947 * gengtype.c (walk_type): Don't recognize descbits option.
1948
1949 2010-11-05 Joseph Myers <joseph@codesourcery.com>
1950
1951 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
1952 WORD_SWITCH_TAKES_ARG): Remove.
1953 * doc/options.texi (Args): Document.
1954 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
1955 * doc/tm.texi: Regenerate.
1956 * opt-functions.awk (switch_flags): Handle Args.
1957 * opts-common.c: Update comment on tm.h include.
1958 (decode_cmdline_option): Handle options with multiple arguments.
1959 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
1960 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
1961 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1962 CL_COMMON): Update values.
1963 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
1964 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
1965 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
1966 sectobjectsymbols, sectorder, segcreate, segprot): New.
1967
1968 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
1969 Uros Bizjak <ubizjak@gmail.com>
1970
1971 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
1972 256bit AVX register is used.
1973 (ix86_expand_vector_move_misalign): Likewise.
1974 (ix86_expand_vector_move): Replace use_avx256_p with
1975 VALID_AVX256_REG_MODE.
1976
1977 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
1978
1979 PR target/44750
1980 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
1981 change. Set $@-warn.o to -Wno-error.
1982
1983 PR bootstrap/44756
1984 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
1985 comparing it to a signed value.
1986
1987 PR middle-end/44766
1988 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
1989 PR bootstrap/44770
1990 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
1991 to i.
1992
1993 PR target/44754
1994 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
1995 (m32c_function_arg). Add comma between arguments two and three.
1996 (m32c_promote_prototypes): Remove declaration.
1997 (current_function_special_page_vector): Likewise.
1998 (m32c_regno_reg_class): Change return type to enum reg_class.
1999 (m32c_pushm_popm): Use add_reg_note.
2000 (m32c_push_rounding): Change return type to unsigned int.
2001 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
2002 enum reload_type.
2003 (m32c_insert_attributes): Constify variable name.
2004 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
2005 (m32c_prepare_shift): Remove variable lref.
2006 (m32c_expand_movcc): Remove variable cmp.
2007 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
2008 (m32c_compare_redundant): Remove variable op2.
2009 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
2010 (m32c_pragma_memregs): Assign the number to target_memregs.
2011 (m32c_pragma_address): Remove variable var_str.
2012 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
2013 enum reg_class.
2014 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
2015 * config/m32c/bitops.md (andsi3): Add default case to switch.
2016 (iorsi3, xorsi3): Likewise.
2017 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
2018 * config/m32c/jump.md (call, call_value): Likewise.
2019 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
2020 (m32c_regno_reg_class): Likewise.
2021 (current_function_special_page_vector): Declare.
2022
2023 2010-11-05 Jakub Jelinek <jakub@redhat.com>
2024
2025 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
2026
2027 PR tree-optimization/46099
2028 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
2029 if it is NULL and uid wasn't found in the hash table. Just fold the
2030 result if it is NULL otherwise. Insert other potentially needed
2031 stmts right before current stmt instead of on the entry edge.
2032 (struct elv_data): Add gsi and reset fields.
2033 (eliminate_local_variables_1): Adjust caller. If take_address_of
2034 failed for debug stmt, set dta->reset and return.
2035 (eliminate_local_variables_stmt): Change STMT argument for GSI,
2036 pass GSI through to the callback, handle resetting of debug stmts.
2037 (eliminate_local_variables): Adjust caller. Process debug stmts
2038 in second phase.
2039
2040 PR middle-end/43690
2041 * gimplify.c (gimplify_asm_expr): If a "m" input is a
2042 {pre,post}{in,de}crement, fail.
2043
2044 PR debug/46307
2045 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
2046 * tree-pretty-print.c (dump_generic_node): Likewise.
2047 (op_code_prio): Likewise.
2048 * cfgexpand.c (expand_debug_expr): Likewise.
2049
2050 2010-11-04 Paul Koning <ni1d@arrl.net>
2051
2052 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
2053 constraints.
2054
2055 2010-11-04 Chao-ying Fu <fu@mips.com>
2056
2057 * configure.ac: Test assembler support for DSP Rev1 mult.
2058 * configure: Regenerate.
2059 * config.in: Regenerate.
2060 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
2061 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
2062 (CODE_FOR_mips_multu): New define.
2063 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
2064 dspr2_32 to dsp_32.
2065 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
2066 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
2067 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
2068 New define_expand patterns.
2069 * config/mips/constraints.md (ka): Update the constraint to test
2070 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
2071 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
2072 mips_multu): Delete.
2073 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
2074 Change target constraint to "ka".
2075 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
2076 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
2077 Emit the accumulator destination when ISA_HAS_DSP_MULT.
2078 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
2079 Emit the accumulator destination when ISA_HAS_DSP_MULT.
2080 (<u>maddsidi4): Likewise.
2081 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
2082 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
2083
2084 2010-11-04 Paul Koning <ni1d@arrl.net>
2085
2086 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
2087
2088 2010-11-04 Paul Koning <ni1d@arrl.net>
2089
2090 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
2091
2092 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2093
2094 Fixed using the Objective-C 2.0 dot-syntax with class names.
2095 * c-parser.c (c_parser_next_token_starts_declspecs): In
2096 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
2097 (c_parser_next_token_starts_declaration): Same.
2098 (c_parser_postfix_expression): Parse the Objective-C 2.0
2099 dot-syntax with a class name.
2100
2101 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
2102
2103 * final.c (compute_alignments): Compute/free loop info all the time.
2104 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
2105 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
2106 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
2107 * config/rs6000/rs6000.c (cfgloop.h): Include.
2108 (can_override_loop_align): New.
2109 (rs6000_option_override_internal): Set it.
2110 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
2111 (rs6000_loop_align): New function.
2112 (rs6000_loop_align_max_skip): Likewise.
2113
2114 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2115
2116 PR driver/45703
2117 * collect2.c (main): Print --help output to stdout. Do not
2118 exit right away, so ld --help is appended. Add empty lines
2119 to separate output suitably.
2120
2121 2010-11-04 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR tree-optimization/46233
2124 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
2125 after calling analyze_function, not before.
2126
2127 PR target/46234
2128 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
2129 instead of build_va_arg_indirect_ref.
2130 * config/spu/spu.c (spu_va_start): Likewise.
2131 * config/s390/s390.c (s390_va_start): Likewise.
2132
2133 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
2134
2135 PR middle-end/46292
2136 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
2137 if the innermode is not vector mode, determine the mode of a subreg
2138 by using mode_for_size of inner_size.
2139
2140 2010-11-04 Richard Guenther <rguenther@suse.de>
2141
2142 PR rtl-optimization/46183
2143 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
2144 (execute_rtl_pre): Likewise.
2145 (execute_rtl_hoist): Likewise.
2146
2147 2010-11-04 Richard Guenther <rguenther@suse.de>
2148
2149 PR tree-optimization/46068
2150 * ipa-split.c (consider_split): Remove gcc_unreachable.
2151
2152 2010-11-04 Richard Guenther <rguenther@suse.de>
2153
2154 * tree-nested.c (build_addr): Use build_fold_addr_expr.
2155
2156 2010-11-04 Richard Guenther <rguenther@suse.de>
2157
2158 PR tree-optimization/45991
2159 * gimplify.c (force_gimple_operand_1): Use the provded test
2160 function in the initial test.
2161
2162 2010-11-04 Jeff Law <law@redhat.com>
2163
2164 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
2165 of readonly memory equivalances for const/pure calls.
2166
2167 2010-11-04 Richard Guenther <rguenther@suse.de>
2168
2169 PR tree-optimization/45733
2170 * tree-vect-stmts.c (reverse_vec_elements): Honor the
2171 permute builtins function return type.
2172
2173 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
2174
2175 PR middle-end/44765
2176 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
2177 as an index, check it is not INVALID_REGNUM.
2178
2179 PR bootstrap/44756
2180 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
2181 unsignedp.
2182 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
2183
2184 PR bootstrap/44756
2185 * function.c (thread_prologue_and_epilogue_insns): Add
2186 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
2187
2188 PR bootstrap/44756
2189 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
2190
2191 PR target/44750
2192 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
2193 (pdp11_preferred_reload_class): Rename class to rclass.
2194 (pdp11_preferred_output_reload_class): Likewise.
2195 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
2196 ALL_COMPILERFLAGS .
2197 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
2198
2199 PR bootstrap/44756
2200 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
2201 iteration variables to enum machine_mode.
2202
2203 PR target/44751
2204 * config/h8300/h8300.c: Include df.h.
2205 (push, pop): Use add_reg_note.
2206 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
2207 (compute_a_shift_cc): Likewise.
2208 (expand_a_shift): Argument code has type enum rtx_code.
2209 (struct shift_insn): Member cc_valid has type enum attr_cc.
2210 (struct shift_info) <cc_inline, cc_special>: Likewise.
2211 enum attr_cc.
2212 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
2213 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
2214
2215 2010-11-04 Ira Rosen <irar@il.ibm.com>
2216
2217 PR tree-optimization/46213
2218 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
2219 MINUS_EXPR only if the first operand is reduction operand.
2220
2221 2010-11-04 Richard Guenther <rguenther@suse.de>
2222 Richard Henderson <rth@redhat.com>
2223
2224 * tree.def (FMA_EXPR): New tree code.
2225 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
2226 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
2227 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
2228 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
2229 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
2230 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
2231 (execute_optimize_widening_mul): Call it. Reorganize to allow
2232 dead stmt removal. Move TODO flags ...
2233 (pass_optimize_widening_mul): ... here.
2234 * flag-types.h (enum fp_contract_mode): New enum.
2235 * common.opt (flag_fp_contract_mode): New variable.
2236 (-ffp-contract): New option.
2237 * opts.c (common_handle_option): Handle it.
2238 * doc/invoke.texi (-ffp-contract): Document.
2239 * tree.h (fold_fma): Declare.
2240 * builtins.c (fold_fma): New function.
2241 (fold_builtin_fma): Likewise.
2242 (fold_builtin_3): Call it for fma.
2243 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
2244 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
2245 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
2246 New expanders.
2247 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
2248 named patterns.
2249 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
2250 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
2251 (fms_optab, fnma_optab, fnms_optab): New defines.
2252 * gimplify.c (gimplify_expr): Handle binary truth expressions
2253 explicitly. Handle FMA_EXPR.
2254 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
2255 operations.
2256
2257 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2258 Richard Guenther <rguenther@suse.de>
2259
2260 * passes.c (init_optimization_passes): Move veclower after SSA.
2261 * tree-vect-generic.c (uniform_vector_p): New function.
2262 (expand_vector_operations_1): Handle conversion.
2263 (pass_lower_vector): Update SSA form.
2264
2265 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
2266
2267 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
2268 plugin capabilities.
2269 * configure: Regenerate.
2270
2271 2010-11-03 Xinliang David Li <davidxl@google.com>
2272
2273 PR target/46200
2274 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
2275 Adjust cbase if the use stmt is after iv update.
2276
2277 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
2278
2279 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
2280
2281 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
2282
2283 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
2284 comment. Pass true to the last argument of output_stack_adjust.
2285
2286 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
2287
2288 PR target/46295
2289 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
2290 if 256bit AVX register is used.
2291
2292 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2293
2294 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
2295 xsmindp/xsmaxdp on VSX for single precision min/max.
2296 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
2297 (vsx_sminsf3): Ditto.
2298
2299 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
2300
2301 * combine.c (try_combine): Fix formatting issues, improve comments and
2302 fix a pasto.
2303
2304 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
2305
2306 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
2307 of the result before building binary expressions.
2308
2309 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
2310
2311 PR rtl-optimization/45865
2312 * Makefile.in (df-problems.o): Revert revision 164552.
2313 * basic-block.h (enum bb_flags): Likewise.
2314 * cfgcleanup.c (block_was_dirty): Likewise.
2315 (try_forward_edges): Likewise.
2316 (try_crossjump_bb): Likewise.
2317 (try_head_merge_bb): Likewise.
2318 (try_optimize_cfg): Likewise.
2319 (cleanup_cfg): Likewise.
2320 * df-core.c (df_set_bb_dirty): Likewise.
2321 * df-problems.c: Likewise.
2322 (df_simulate_find_uses): Likewise.
2323 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
2324 (find_memory, find_memory_store): Likewise.
2325 (can_move_insns_across): Likewise.
2326 * df.h (can_move_insns_across): Likewise.
2327 * ifcvt.c (find_memory): Likewise.
2328 (dead_or_predicable): Likewise.
2329
2330 2010-11-03 Richard Guenther <rguenther@suse.de>
2331
2332 PR middle-end/46288
2333 * predict.c (strip_predict_hints): Simply DCE builtin expect if
2334 the result is unused.
2335
2336 2010-11-03 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR tree-optimization/46009
2339 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
2340 cond_if_else_store_replacement if bb1 and bb2 have the same
2341 single successor.
2342 (cond_store_replacement): Use gimple_assign_single_p, don't
2343 check if rhs is SSA_NAME or invariant. Call release_defs for
2344 assign.
2345 (cond_if_else_store_replacement): New function.
2346
2347 2010-11-03 Richard Guenther <rguenther@suse.de>
2348
2349 * opts.c (finish_options): Properly check for all WHOPR
2350 flags before complaining about -flto-partition.
2351
2352 2010-11-04 Alan Modra <amodra@gmail.com>
2353
2354 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
2355 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
2356 TARGET_SECURE_PLT.
2357 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
2358 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
2359 on input, "r" on output.
2360
2361 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2362
2363 Implemented -fobjc-std=objc1 flag.
2364 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
2365 option.
2366 * doc/standards.texi (Standards): Updated the section on
2367 Objective-C; mention support for Objective-C 2.0 features and the
2368 new -fstd-objc=objc1 flag to disable them.
2369
2370 2010-11-03 Richard Guenther <rguenther@suse.de>
2371
2372 PR middle-end/46241
2373 * dwarf2out.c (scope_die_for): Properly detect global scope.
2374
2375 2010-11-03 Richard Guenther <rguenther@suse.de>
2376
2377 PR tree-optimization/46190
2378 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2379 Properly compute peel iterations.
2380
2381 2010-11-03 Richard Guenther <rguenther@suse.de>
2382
2383 PR tree-optimization/46286
2384 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
2385 re-allocated vector data.
2386
2387 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
2388
2389 PR target/46285
2390 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
2391 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
2392 is completed.
2393
2394 2010-11-03 Richard Guenther <rguenther@suse.de>
2395
2396 PR tree-optimization/46217
2397 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
2398 flag matches.
2399 (execute_update_addresses_taken): Likewise.
2400
2401 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
2402
2403 PR bootstrap/44335
2404 * targhooks.c (targhook_words_big_endian): New function.
2405 (targhook_float_words_big_endian): Likewise.
2406 * targhooks.h (targhook_words_big_endian): Declare.
2407 (targhook_float_words_big_endian): Likewise.
2408 * target.def (words_big_endian, float_words_big_endian): New hooks.
2409
2410 2010-11-03 Jakub Jelinek <jakub@redhat.com>
2411
2412 PR tree-optimization/46165
2413 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
2414 a normal call into noreturn call.
2415
2416 2010-11-03 Richard Guenther <rguenther@suse.de>
2417
2418 PR middle-end/46251
2419 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
2420 not INDIRECT_REFs.
2421
2422 2010-11-03 Jakub Jelinek <jakub@redhat.com>
2423
2424 PR tree-optimization/46107
2425 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
2426 if cfg_hook_duplicate_loop_to_header_edge failed.
2427
2428 2010-11-03 Ian Lance Taylor <iant@google.com>
2429
2430 PR lto/46273
2431 * config.gcc: Don't set lto_binary_reader.
2432 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2433 (Configuration): Mention --disable-lto. Remove --with-libelf
2434 paragraph.
2435
2436 2010-11-03 Jakub Jelinek <jakub@redhat.com>
2437
2438 PR debug/46252
2439 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
2440 prev_real_insn.
2441 * gcse.c (insert_insn_end_basic_block): Likewise.
2442
2443 PR rtl-optimization/46034
2444 PR rtl-optimization/46212
2445 PR rtl-optimization/46248
2446 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
2447 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
2448 before i0dest -> i0src substitution and pass 1 instead of 0 as last
2449 argument to subst on i2pat.
2450
2451 2010-11-02 Ian Lance Taylor <iant@google.com>
2452
2453 * configure.ac: Use AC_SYS_LARGEFILE.
2454 * configure: Rebuild.
2455 * config.in: Rebuild.
2456
2457 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
2458
2459 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
2460 fold_convert.
2461 * c-typeck.c (build_function_call_vec): Likewise.
2462 * cfgexpand.c (expand_debug_expr): Likewise.
2463 * cgraphunit.c (assemble_thunk): Likewise.
2464 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
2465 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
2466 (fold_binary_loc, fold_ternary_loc): Likewise.
2467 * gimple-fold.c (get_symbol_constant_value): Likewise.
2468 * gimple-low.c (lower_builtin_setjmp): Likewise.
2469 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
2470 * gimplify.c (gimplify_init_constructor): Likewise.
2471 * lambda.h (build_linear_expr): Likewise.
2472 * omp-low.c (omp_reduction_init): Likewise.
2473 * tree-inline.c (remap_ssa_name): Likewise.
2474 * tree-object-size.c (compute_object_sizes): Likewise.
2475 * tree-sra.c (init_subtree_with_zero): Likewise.
2476 (sra_ipa_modify_assign): Likewise.
2477 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
2478 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
2479 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
2480 (undistribute_ops_list): Likewise.
2481 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
2482 * tree-vect-stmts.c (vectorizable_call): Likewise.
2483 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
2484 (build_zero_cst): Handle more cases directly. Update comment.
2485
2486 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
2487
2488 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
2489 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
2490
2491 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
2492 and call ix86_split_call_vzeroupper instead of
2493 ix86_split_call_pop_vzeroupper.
2494 (*call_pop_1_vzeroupper): Likewise.
2495 (*sibcall_pop_1_vzeroupper): Likewise.
2496 (*call_value_pop_0_vzeroupper): Likewise.
2497 (*call_value_pop_1_vzeroupper): Likewise.
2498 (*sibcall_value_pop_1_vzeroupper): Likewise.
2499
2500 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
2501
2502 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
2503
2504 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
2505
2506 * basic-block.h (insert_insn_end_bb_new): Delete.
2507 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
2508
2509 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
2510 H.J. Lu <hongjiu.lu@intel.com>
2511
2512 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
2513 (ix86_split_call_pop_vzeroupper): Likewise.
2514
2515 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
2516 (ix86_expand_call): Conditionally decorate calls with
2517 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
2518 (ix86_split_call_vzeroupper): New.
2519 (ix86_split_call_pop_vzeroupper): Likewise.
2520
2521 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
2522 (*call_pop_0_vzeroupper): New insn_and_split pattern.
2523 (*call_pop_1_vzeroupper): Likewise.
2524 (*sibcall_pop_1_vzeroupper): Likewise.
2525 (*call_0_vzeroupper): Likewise.
2526 (*call_1_vzeroupper): Likewise.
2527 (*sibcall_1_vzeroupper): Likewise.
2528 (*call_1_rex64_vzeroupper): Likewise.
2529 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
2530 (*call_1_rex64_large_vzeroupper): Likewise.
2531 (*sibcall_1_rex64_vzeroupper): Likewise.
2532 (*call_value_pop_0_vzeroupper): Likewise.
2533 (*call_value_pop_1_vzeroupper): Likewise.
2534 (*sibcall_value_pop_1_vzeroupper): Likewise.
2535 (*call_value_0_vzeroupper): Likewise.
2536 (*call_value_0_rex64_vzeroupper): Likewise.
2537 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
2538 (*call_value_1_vzeroupper): Likewise.
2539 (*sibcall_value_1_vzeroupper): Likewise.
2540 (*call_value_1_rex64_vzeroupper): Likewise.
2541 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
2542 (*call_value_1_rex64_large_vzeroupper): Likewise.
2543 (*sibcall_value_1_rex64_vzeroupper): Likewise.
2544
2545 2010-11-02 Ian Lance Taylor <iant@google.com>
2546
2547 PR lto/46273
2548 * config.gcc: Revert last patch: set lto_binary_reader.
2549
2550 2010-11-02 Richard Guenther <rguenther@suse.de>
2551
2552 PR tree-optimization/46149
2553 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
2554 non-indirect MEM_REF variants.
2555
2556 2010-11-02 Richard Guenther <rguenther@suse.de>
2557
2558 PR tree-optimization/46216
2559 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2560 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
2561
2562 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2563
2564 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
2565 (*-*-osf*): Likewise.
2566 * configure: Regenerate.
2567
2568 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
2569
2570 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
2571 for Intel Core 2 and Core i7.
2572
2573 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
2574
2575 Model decoder of Core 2/i7 for multipass scheduling.
2576
2577 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
2578 New type to hold target-specific data for multipass scheduling.
2579 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2580 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
2581 Core 2/i7.
2582 (core2i7_secondary_decoder_max_insn_size,)
2583 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
2584 New static variables.
2585 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
2586 ([_]ix86_first_cycle_multipass_data): New static variable.
2587 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
2588 Implement targetm.sched hooks.
2589 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
2590 of ...
2591 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
2592 Implement new targetm.sched hooks.
2593 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
2594 targetm.sched hook to install multipass scheduling hooks on demand.
2595
2596 * doc/tm.texi.in: Document new targetm.sched hooks.
2597 * doc/tm.texi: Regenerate.
2598
2599 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2600 (first_cycle_multipass_data_t): New typedef.
2601 (struct choice_entry: target_data): New field.
2602 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
2603 to allow target model restrictions not represented in DFA.
2604 (choose_ready, schedule_block): Update.
2605 (sched_extend_ready_list, sched_finish_ready_list): Call new target
2606 hooks to initialize target-specific data for multipass scheduling.
2607 * sched-int.h (max_issue): Update declaration.
2608 * sel-sched.c (choose_best_insn): Update.
2609 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
2610 (first_cycle_multipass_{init, fini}): Define and document new
2611 targetm.sched hooks.
2612
2613 2010-11-02 Richard Guenther <rguenther@suse.de>
2614
2615 PR tree-optimization/46184
2616 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
2617 input vector type from the reduction operand as well.
2618
2619 2010-11-02 Richard Guenther <rguenther@suse.de>
2620
2621 PR tree-optimization/46177
2622 * tree-loop-distribution.c (prop_phis): Use
2623 mark_virtual_phi_result_for_renaming.
2624
2625 2010-11-02 Martin Jambor <mjambor@suse.cz>
2626
2627 PR middle-end/46120
2628 * tree.c (get_binfo_at_offset): Bail out on artificial
2629 fields. Identify primary bases according to their offsets.
2630
2631 2010-11-02 Martin Jambor <mjambor@suse.cz>
2632
2633 PR tree-optimization/45875
2634 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
2635 (gimple_get_relevant_ref_binfo): Detect primary bases according to
2636 their field offset.
2637
2638 2010-11-02 Ian Lance Taylor <iant@google.com>
2639
2640 * doc/install.texi (Configuration): Note in two places that Java
2641 is not enabled by default.
2642
2643 2010-11-02 Ian Lance Taylor <iant@google.com>
2644
2645 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2646 (Configuration): Mention --disable-lto. Remove --with-libelf
2647 paragraph.
2648
2649 2010-11-02 Ian Lance Taylor <iant@google.com>
2650
2651 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
2652 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
2653 LIBELFINC. Remove HAVE_libelf.
2654 * config.gcc: Don't set lto_binary_reader.
2655 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
2656 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
2657 (LIBS): Remove $(LIBELFLIBS).
2658 (INCLUDES): Remove $(LIBELFINC).
2659 * configure: Rebuild.
2660 * config.in: Rebuild.
2661
2662 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
2663
2664 * config/microblaze/microblaze-protos.h (function_arg): Delete.
2665 (function_arg_advance): Delete.
2666 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
2667 (FUNCTION_ARG): Delete.
2668 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
2669 (microblaze_function_arg_advance): ...this. Make static. Take a
2670 const_tree and a bool.
2671 (function-arg): Rename to...
2672 (microblaze_function_arg): ...this. Make static. Take a const_tree
2673 and a bool.
2674 (microblaze_expand_prologue): Call targetm.calls.function_arg and
2675 targetm.calls.function_arg_advance.
2676 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2677
2678 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
2679
2680 Merge from FSF "apple/trunk" branch.
2681
2682 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
2683 * config/darwin.opt: .. to here.
2684 (matt-stubs): New option.
2685 * config/i386/darwin.opt: Delete.
2686 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
2687 (MACHO_DYNAMIC_NO_PIC_P): New.
2688 (MACHOPIC_INDIRECT): New.
2689 (MACHOPIC_PURE): New.
2690 * config/i386/darwin.h (DARWIN_X86) Define to 1.
2691 (MACHOPIC_ATT_STUB): New.
2692 (CC1_SPEC): Do not remove mdynamic-no-pic.
2693 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2694 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2695 (FUNCTION_PROFILER): Correct over-length line.
2696 (SUBTARGET_OVERRIDE_OPTIONS): New.
2697 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2698 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
2699 (legitimate_constant_p): Handle mdynamic-no-pic.
2700 (ix86_legitimate_address_p): Likewise.
2701 (ix86_legitimize_address): Likewise.
2702 (ix86_expand_move): Likewise.
2703 (machopic_output_stub): Update for ATT-style stubs and
2704 mdynamic-no-pic.
2705 * config/darwin-protos.h (machopic_symbol_defined_p): New.
2706 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
2707 TARGET_DYNAMIC_NO_PIC: Remove.
2708 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2709 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2710 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
2711 Remove handling of mdynamic-no-pic.
2712 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
2713 Define if required.
2714 (machopic_symbol_defined_p): Do not try to use current_function_decl
2715 when generating _get_pc thunks within stubs.
2716 (machopic_indirect_data_reference): Rework for direct conditionals
2717 rather than #ifdefs, add x86 mdynamic-no-pic
2718 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
2719 defined value.
2720 (darwin_override_options): Handle mdynamic-no-pic here.
2721 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
2722 (machopic_lazy_symbol_ptr3_section): New.
2723 (machopic_picsymbol_stub2_section): New.
2724 (machopic_picsymbol_stub3_section): New.
2725 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
2726 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2727 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2728 Moved common definition from x86 and rs6000.
2729 (MACHO_DYNAMIC_NO_PIC_P): Override value.
2730 (MACHOPIC_INDIRECT): Likewise.
2731 (MACHOPIC_PURE): Likewise.
2732 * config.gcc (x86-darwin-*): Remove darwin.opt.
2733
2734 2010-11-02 Jakub Jelinek <jakub@redhat.com>
2735
2736 PR debug/46255
2737 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
2738 instead of gsi_last_bb.
2739
2740 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
2741 Maxim Kuvyrkov <maxim@codesourcery.com>
2742
2743 * config/i386/i386.c (cpu_names): Add "corei7".
2744 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
2745
2746 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
2747 Maxim Kuvyrkov <maxim@codesourcery.com>
2748
2749 Tune alignment for Intel Core i7
2750
2751 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
2752 (enum processor_type): Update comment. Add entries for Core i7.
2753 * config/i386-c.c (ix86_target_macros_internal): Update.
2754 * config/i386.c (m_COREI7{_32,_64}): New macros.
2755 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
2756 (processor_target_table): Tune alignment for Core i7.
2757 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
2758
2759 * doc/invoke.texi: Document "corei7" option value.
2760
2761 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
2762 Maxim Kuvyrkov <maxim@codesourcery.com>
2763 H.J. Lu <hjl.tools@gmail.com>
2764
2765 Basic support for Intel Core i7
2766
2767 * i386.c (ix86_option_override_internal): Add entry for corei7, use
2768 generic tuning. Use generic32 when compiling for 32-bit ABI.
2769
2770 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
2771
2772 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
2773 sections and call darwin_asm_dwarf_section() to handle them.
2774 (darwin_asm_dwarf_section): New.
2775 (darwin_file_start): Remove code emitting dwarf section symbols.
2776
2777 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
2778
2779 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
2780 explicitly disable stack protection when building libgcc.
2781 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
2782
2783 2010-11-01 Jason Merrill <jason@redhat.com>
2784
2785 * fold-const.c (fold_indirect_ref_1): Handle folding
2786 POINTER_PLUS_EXPR to ARRAY_REF.
2787
2788 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
2789
2790 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
2791 (sh_delegitimize_address): New function.
2792
2793 2010-11-01 Joseph Myers <joseph@codesourcery.com>
2794
2795 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
2796 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
2797 (CC1_SPEC): Don't handle -target.
2798 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
2799 options.
2800 * config/darwin.opt (Zallowable_client, Zbundle_loader,
2801 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
2802 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
2803 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
2804 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
2805 Zweak_reference_mismatches, client_name, compatibility_version,
2806 current_version, dylinker_install_name, pagezero_size,
2807 read_only_relocs, seg1addr, segs_read_only_addr,
2808 segs_read_write_addr, sub_library, sub_umbrella): New.
2809 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
2810 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
2811 * config/freebsd.opt: New.
2812 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
2813 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
2814 * config/rpath.opt: New.
2815 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
2816 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
2817 Use rpath.opt.
2818
2819 2010-11-01 Joseph Myers <joseph@codesourcery.com>
2820
2821 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
2822 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
2823 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
2824 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
2825 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
2826 Document that options in .opt files do not need to be included.
2827 * doc/tm.texi: Regenerate.
2828 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
2829 * opts-common.c: Update comment on tm.h include.
2830 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
2831 * system.h (SWITCH_TAKES_ARG): Poison.
2832 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
2833 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
2834 in darwin.opt.
2835 (LINK_COMMAND_SPEC_A): Don't include %{x}.
2836 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2837 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
2838 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
2839 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2840 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
2841 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
2842 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
2843 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
2844 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2845 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
2846 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
2847 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
2848 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
2849 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
2850 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
2851 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
2852 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
2853 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
2854 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
2855 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
2856 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
2857 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
2858 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2859
2860 2010-11-01 Paul Koning <ni1d@arrl.net>
2861
2862 * config/pdp11/pdp11.md: Use iterators.
2863 (addqi3, subqi3, iorsi3, xorsi3): Delete.
2864
2865 2010-11-01 Steve Ellcey <sje@cup.hp.com>
2866
2867 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
2868 GCC_INSN_FLAGS_H.
2869 * libgcov.c (__gcov_indirect_call_profiler): Set
2870 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
2871 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
2872
2873 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
2874
2875 PR tree-optimization/46259
2876
2877 Revert:
2878 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
2879 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
2880 build_vector_from_val.
2881
2882 2010-11-01 DJ Delorie <dj@redhat.com>
2883
2884 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
2885 as well as an assertion.
2886
2887 2010-11-01 Paul Koning <ni1d@arrl.net>
2888
2889 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
2890 complex modes in memory.
2891
2892 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
2893
2894 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
2895
2896 2010-11-01 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR target/45250
2899 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
2900 (cfa_base_offset): New variable.
2901 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
2902 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
2903 is NULL.
2904 (vt_init_cfa_base): Initialize cfa_base_offset.
2905
2906 2010-11-01 Alan Modra <amodra@gmail.com>
2907
2908 PR target/46030
2909 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
2910 and savres_strategy.
2911 (stack_info): New file scope var.
2912 (rs6000_init_machine_status): Init stack_info.
2913 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
2914 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2915 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
2916 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
2917 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
2918 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
2919 (rs6000_savres_strategy): Rewrite.
2920 (rs6000_stack_info): Use "stack_info" in place of local "info".
2921 Return cached stack info when reload_completed unless ENABLE_CHECKING
2922 in which case confirm newly calculated stack info matches old info.
2923 Delay calculation of lr_save_p, set it for out of line gp save/restore
2924 as well as fp. Call rs6000_savres_strategy from here..
2925 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
2926 (rs6000_output_function_prologue): Use info->savres_strategy to
2927 determine whether fp save/restore externs need to be emitted.
2928
2929 2010-10-31 Jason Merrill <jason@redhat.com>
2930
2931 * tree.h (EXPR_LOC_OR_HERE): New macro.
2932 * builtins.c (c_strlen): Use it.
2933 * c-decl.c (build_enumerator): Likewise.
2934 * gimplify.c (internal_get_tmp_var): Likewise.
2935 (shortcut_cond_expr): Likewise.
2936 (gimplify_one_sizepos): Likewise.
2937
2938 2010-10-31 Richard Henderson <rth@redhat.com>
2939
2940 * config/i386/cygming.h (TARGET_SEH): New.
2941 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
2942 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
2943 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
2944 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
2945 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
2946 (ASM_DECLARE_FUNCTION_SIZE): New.
2947 * config/i386/i386-protos.h: Update.
2948 * config/i386/i386.c (ix86_option_override_internal): Enable
2949 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
2950 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
2951 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
2952 (ix86_compute_frame_layout): For SEH, disable
2953 use_fast_prologue_epilogue, move frame pointer to the end of
2954 the frame. Initialize hfp_save_offset.
2955 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
2956 at end of prologue for SEH.
2957 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
2958 emit blockage at beginning of epilogue.
2959 (ix86_expand_binary_operator): After reload, emit LEA if needed.
2960 (ix86_output_call_insn): New.
2961 * config/i386/i386.h (TARGET_SEH): New.
2962 (struct machine_function): Add member seh.
2963 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
2964 * config/i386/winnt.c (struct seh_frame_state): New.
2965 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
2966 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
2967 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
2968 i386_pe_start_function, i386_pe_end_function): New.
2969
2970 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
2971 as CFA_STORE in rules 12 and 13.
2972
2973 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
2974
2975 PR tree-optimization/46142
2976 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
2977 accommodate third function argument.
2978
2979 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
2980
2981 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
2982
2983 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
2984
2985 * fold-const.c (build_zero_vector): Use build_vector_from_val.
2986 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
2987 (get_initial_def_for_reduction): Likewise.
2988 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2989 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2990 * tree.c (build_one_cst): Likewise.
2991 (build_vector_from_val): Use types_compatible_p for assert.
2992
2993 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
2994
2995 * emit-rtl.c (mark_used_flags): New function.
2996 (set_used_flags, reset_used_flags): Call it.
2997
2998 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
2999
3000 PR middle-end/44569
3001 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
3002 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
3003
3004 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 PR target/46195
3007 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
3008 (ix86_compat_aligned_value_p): This.
3009 (ix86_old_function_arg_boundary): Renamed to ...
3010 (ix86_compat_function_arg_boundary): This. Updated.
3011 (ix86_contains_aligned_value_p): New.
3012 (ix86_function_arg_boundary): Align long double parameters on
3013 stack to 4byte in 32bit.
3014
3015 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3016
3017 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3018 * c-parser.c (c_parser_objc_at_property_declaration): Removed
3019 parsing of RID_COPIES and RID_IVAR. Updated call to
3020 objc_add_property_declaration.
3021 * c-typecheck.c (build_component_ref): Call
3022 objc_maybe_build_component_ref instead of objc_build_setter_call.
3023 Use objc_is_property_ref to improve Objective-C checks.
3024 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
3025 of objc_build_getter_call.
3026
3027 2010-10-29 Paul Koning <ni1d@arrl.net>
3028
3029 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3030 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
3031 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
3032 (REG_OK_STRICT): Move description.
3033
3034 2010-10-29 Paul Koning <ni1d@arrl.net>
3035
3036 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
3037
3038 2010-10-29 Paul Koning <ni1d@arrl.net>
3039
3040 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
3041
3042 2010-10-29 Paul Koning <ni1d@arrl.net>
3043
3044 PR/41822
3045 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
3046
3047 2010-10-29 Richard Henderson <rth@redhat.com>
3048
3049 PR rtl-opt/46226
3050 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
3051 for asm goto.
3052
3053 2010-10-29 Paul Koning <ni1d@arrl.net>
3054
3055 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
3056 register to register move.
3057
3058 2010-10-29 Paul Koning <ni1d@arrl.net>
3059
3060 * config/pdp11/pdp11.c (print_operand_address): Correct handling
3061 of integer constant addresses, delete vax-only logic.
3062
3063 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3064
3065 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
3066 a conditional expression.
3067
3068 2010-10-29 Paul Koning <ni1d@arrl.net>
3069
3070 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
3071 instruction encoding.
3072
3073 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3074 Andrew Pinski <pinskia@gmail.com>
3075
3076 * tree.h (build_vector_from_val): Declare.
3077 * tree.c (build_vector_from_val): New function.
3078 * c-typeck.c (build_binary_op): Handle vector shifting.
3079 * doc/extend.texi: Description of the vector shifting operation.
3080
3081 2010-10-29 Paul Koning <pkoning@equallogic.com>
3082
3083 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
3084 pdp11_secondary_memory_needed): Declare.
3085 * config/pdp11/predicates.md (float_operand): New predicate.
3086 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
3087 (cbranchdf4, movdf): Change predicate.
3088 (movsf): Handle FPU register case.
3089 (truncdfsf2, extendsfdf2): Add FPU register case.
3090 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
3091 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
3092 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3093 (pdp11_register_move_cost): Update cost matrix.
3094 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
3095 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
3096 pdp11_secondary_memory_needed): New function.
3097 (pdp11_return_in_memory): Add other float types.
3098 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
3099 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
3100 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
3101 REGISTER_MOVE_COST): Delete.
3102 (BASE_RETURN_VALUE_REG): Add other float types.
3103
3104 2010-10-29 Nick Clifton <nickc@redhat.com>
3105
3106 * doc/invoke.texi: Document -mam34 and -mtune options.
3107 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
3108 (mn10300_tune_cpu): New variable.
3109 (mn10300_handle_option): Handle -mam34 and -mtune options.
3110 (mn10300_option_override): Convert tune string into tune cpu variable.
3111 (mn10300_legitimate_constant_p): Delete unused local variable.
3112 (is_load_insn): New function.
3113 (is_store_insn): New function.
3114 (mn10300_adjust_schedule_cost): New function.
3115 (TARGET_SCHED_ADJUST_COST): Define.
3116 * config/mn10300/mn10300.opt (mam34): New option.
3117 (mtune): New option.
3118 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
3119 (enum processor_type): Add AM34.
3120 (TARGET_AM34): Define.
3121 * config/mn10300/mn10300.md (attr cpu): Add am34.
3122 Add pipeline description.
3123 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
3124 Remove unneeded alternatives. Add timing attribute.
3125 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
3126 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
3127 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
3128 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
3129 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
3130 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
3131 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
3132 float_conditional_branch, jump, indirect_jump, tablejump,
3133 call_internal, call_value_internal, zero_extendqisi2_am33,
3134 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
3135 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
3136 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
3137 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
3138 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
3139 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
3140 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
3141 return_internal_regs, store_movm, return, call_next_insn):
3142 Add timing attribute.
3143 (am33_subsi3): Add missing clobber of CC_REG.
3144 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
3145 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
3146 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
3147 extendqisi2): Fix predicates.
3148 (call_internal, call_internal_value): Separate alternatives.
3149 * config/mn10300/t-mn10300: Add AM34 multilib.
3150
3151 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
3152
3153 * config/sh/sh.c (sh_promote_function_mode): Use
3154 default_promote_function_mode if !sh_promote_prototypes.
3155
3156 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
3157
3158 * recog.c (split_all_insns): Remove dead code.
3159
3160 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3161
3162 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3163
3164 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3165
3166 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3167 (FUNCTION_ARG_ADVANCE): Delete.
3168 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
3169 functions.
3170 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
3171 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3172 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3173
3174 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3175
3176 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
3177 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3178 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
3179 Take a const_tree and a bool.
3180 (mcore_function_arg_advance): New function.
3181 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3182
3183 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3184
3185 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
3186 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3187 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
3188 Take a const_tree and a bool.
3189 (mcore_function_arg_advance): New function.
3190 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3191
3192 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3193
3194 * config/h8300/h8300-protos.h (function_arg): Delete.
3195 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3196 * config/h8300/h8300.c (function_arg): Rename to...
3197 (h8300_function_arg): ...this. Make static. Take a const_tree and
3198 a bool.
3199 (h8300_function_arg_advance): New function.
3200 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3201
3202 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3203
3204 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
3205 to...
3206 * config/arc/arc.c (arc_function_arg): ...here and...
3207 (arc_function_arg_advance): ...here. New functions.
3208 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3209
3210 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3211
3212 * config/crx/crx-protos.h (crx_function_arg): Delete.
3213 (crx_function_arg_advance): Delete.
3214 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3215 * config/crx/crx.c (crx_function_arg): Make static. Take a
3216 const_tree and a bool.
3217 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
3218 (enough_regs_for_param): Take a const_tree.
3219 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3220
3221 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3222
3223 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
3224 (m68hc11_function_arg_advance): Delete.
3225 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
3226 (FUNCTION_ARG_ADVANCE): Delete.
3227 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
3228 Take a const_tree and a bool.
3229 (m68hc11_function_arg_advance): Likewise.
3230 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3231
3232 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3233
3234 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
3235 (xstormy16_function_arg_advance): Delete.
3236 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
3237 (FUNCTION_ARG_ADVANCE): Delete.
3238 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
3239 Take a const_tree and a bool.
3240 (xstormy16_function_arg_advance): Likewise. Return void, updating
3241 the CUM parameter instead.
3242 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3243
3244 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3245
3246 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
3247 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3248 (MOXIE_FUNCTION_ARG_SIZE): Move to...
3249 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
3250 (moxie_function_arg): Make static. Take a const_tree and a bool.
3251 (moxie_function_arg_advance): New function.
3252 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3253
3254 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3255
3256 * config/mn10300/mn10300-protos.h (function_arg): Delete.
3257 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
3258 (FUNCTION_ARG_ADVANCE): Delete.
3259 * config/mn10300/mn10300.c (function_arg): Rename to...
3260 (mn10300_function_arg): ...this. Make static. Take a const_tree
3261 and a bool.
3262 (mn10300_function_arg_advance): New function.
3263 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3264
3265 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3266
3267 * config/iq2000/iq2000-protos.h (function_arg): Delete.
3268 (function_arg_advance): Delete.
3269 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3270 * config/iq2000/iq2000.c (function_arg): Rename to...
3271 (iq2000_function_arg): ...this. Make static. Take a const_tree and
3272 a bool.
3273 (function_arg_advance): Rename to...
3274 (iq2000_function_arg_advance): ...this. Make static. Take a
3275 const_tree and a bool.
3276 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
3277 iq2000_function_arg.
3278 (iq2000_pass_by_reference): Call iq2000_function_arg).
3279 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3280
3281 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3282
3283 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
3284 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3285 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
3286 const_tree.
3287 (fr30_function_arg): New function.
3288 (fr30_function_arg_advance): New function.
3289 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3290
3291 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
3292
3293 * config/frv/frv-protos.h (frv_function_arg): Delete.
3294 (frv_function_arg_advance): Delete.
3295 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3296 * config/frv/frv.c (frv_function_arg): Rename to...
3297 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
3298 (frv_function_arg, frv_function_incoming_arg): New functions.
3299 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
3300 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3301 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3302
3303 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
3304
3305 PR target/46153
3306 * config/i386/sse.md (sse_movhlps_exp): Use destination
3307 returned from ix86_fixup_binary_operands to expand insn.
3308 (sse_movlhps_exp): Ditto.
3309 (sse_loadhps_exp): Ditto.
3310 (sse_loadlps_exp): Ditto.
3311 (sse2_loadhpd_exp): Ditto.
3312 (sse2_loadlpd_exp): Ditto.
3313
3314 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
3315
3316 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
3317 constants in thumb2.
3318
3319 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
3320
3321 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
3322 arithmetics in masking operations.
3323 (contains_muldiv): Likewise.
3324 (try_combine): Likewise.
3325 (find_split_point): Likewise.
3326 (combine_simplify_rtx): Likewise.
3327 (simplify_if_then_else): Likewise.
3328 (simplify_set): Likewise.
3329 (expand_compound_operation): Likewise.
3330 (expand_field_assignment): Likewise.
3331 (make_extraction): Likewise.
3332 (extract_left_shift): Likewise.
3333 (make_compound_operation): Likewise.
3334 (force_to_mode): Likewise.
3335 (make_field_assignment): Likewise.
3336 (reg_nonzero_bits_for_combine): Likewise.
3337 (simplify_shift_const_1): Likewise.
3338 (simplify_comparison): Likewise.
3339
3340 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
3341
3342 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
3343 (ia64_function_arg_advance): Delete.
3344 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3345 (FUNCTION_ARG_ADVANCE): Delete.
3346 * config/ia64/ia64.c (ia64_function_arg): Rename to...
3347 (ia64_function_arg_1): ...this. Make static. Take const_tree and
3348 bool arguments.
3349 (ia64_function_arg, ia64_function_incoming_arg): New functions.
3350 (ia64_function_arg_advance): Make static. Take a const_tree and
3351 a bool.
3352 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3353 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3354
3355 2010-10-27 Steve Ellcey <sje@cup.hp.com>
3356
3357 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
3358 (TARGET_GET_RAW_ARG_MODE): New.
3359 * doc/tm.texi: Regenerate.
3360 * target.def (get_raw_result_mode): New.
3361 (get_raw_arg_mode): New.
3362 * targhooks.c (default_get_reg_raw_mode): New.
3363 * targhooks.h (default_get_reg_raw_mode): New.
3364 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
3365 (apply_result_size): Ditto.
3366 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
3367 (TARGET_GET_RAW_RESULT_MODE): Define.
3368 (TARGET_GET_RAW_ARG_MODE): Ditto.
3369
3370 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
3371
3372 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
3373 for newer Solaris 10 release.
3374 (sparc_fallback_frame_state): Likewise.
3375
3376 2010-10-27 Jason Merrill <jason@redhat.com>
3377
3378 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
3379 variables sooner.
3380
3381 2010-10-27 Jie Zhang <jie@codesourcery.com>
3382 Maxim Kuvyrkov <maxim@codesourcery.com>
3383
3384 * haifa-sched.c (ISSUE_POINTS): Remove.
3385 (max_issue): Don't issue more than issue_rate instructions.
3386
3387 2010-10-27 Ian Lance Taylor <iant@google.com>
3388
3389 PR target/46197
3390 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
3391 (split_stack_return): Replace UNSPEC_STACK_CHECK with
3392 UNSPECV_SPLIT_STACK_RETURN.
3393
3394 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
3395
3396 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
3397
3398 * config/i386/i386.c (block_info): New.
3399 (BLOCK_INFO): Likewise.
3400 (call_avx256_state): Likewise.
3401 (check_avx256_stores): Likewise.
3402 (move_or_delete_vzeroupper_2): Likewise.
3403 (move_or_delete_vzeroupper_1): Likewise.
3404 (move_or_delete_vzeroupper): Likewise.
3405 (use_avx256_p): Likewise.
3406 (function_pass_avx256_p): Likewise.
3407 (flag_opts): Add -mvzeroupper.
3408 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
3409 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
3410 is disabled.
3411 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
3412 generate vzeroupper.
3413 (init_cumulative_args): Add an int to indicate caller. Set
3414 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
3415 based on return type.
3416 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
3417 caller_pass_avx256_p based on argument type.
3418 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
3419 is used, but not returned by caller.
3420 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
3421 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
3422 is used.
3423 (ix86_minimum_alignment): Likewise.
3424 (ix86_expand_special_args_builtin): Set target to
3425 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
3426 (ix86_reorg): Run the vzeroupper optimization if needed.
3427
3428 * config/i386/i386.h (ix86_args): Add caller.
3429 (INIT_CUMULATIVE_ARGS): Updated.
3430 (machine_function): Add use_vzeroupper_p, use_avx256_p,
3431 caller_pass_avx256_p, caller_return_avx256_p,
3432 callee_pass_avx256_p and callee_return_avx256_p.
3433
3434 * config/i386/i386.opt (-mvzeroupper): New.
3435
3436 * config/i386/predicates.md (vzeroupper_operation): Removed.
3437
3438 * config/i386/sse.md (avx_vzeroupper): Removed.
3439 (*avx_vzeroupper): Removed.
3440 (avx_vzeroupper): New.
3441
3442 * doc/invoke.texi: Document -mvzeroupper.
3443
3444 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
3445
3446 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
3447 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
3448 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
3449
3450 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
3451 Olivier Hainque <hainque@adacore.com>
3452
3453 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
3454 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
3455 fs->signal_frame instead.
3456
3457 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3458
3459 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
3460 parsing of RID_COPIES and RID_IVAR.
3461
3462 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3463
3464 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
3465 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
3466 Do not use objc_set_property_attr, but use local variables
3467 instead. Detect repeated usage of setter, getter and ivar
3468 attributes. Improved error processing when a setter name does not
3469 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
3470 that the token is a keyword. Updated call to
3471 objc_add_property_declaration.
3472
3473 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3474
3475 * c-parser.c (c_parser_objc_at_property): Renamed to
3476 c_parser_objc_at_property_declaration. Updated calls to
3477 objc_add_property_variable, now objc_add_property_declaration.
3478 Code rewritten to be much more robust in recovering from syntax
3479 errors. Added comments.
3480 (c_parser_objc_property_attrlist): Removed.
3481 (c_parser_external_declaration): Updated calls to
3482 c_parser_objc_at_property, now
3483 c_parser_objc_at_property_declaration.
3484 (c_parser_objc_methodprotolist): Same change.
3485
3486 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
3487
3488 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
3489
3490 2010-10-26 Jan Hubicka <jh@suse.cz>
3491
3492 * ipa.c (process_references): Enqueue all referenced nodes;
3493 mark as reachable only non-external nodes.
3494 (cgraph_remove_unreachable_nodes): All referenced nodes should
3495 be enqueued; remove bogues node->needed check.
3496
3497 2010-10-26 Jan Hubicka <jh@suse.cz>
3498
3499 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
3500 to represent OMP.
3501
3502 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
3503
3504 * config/i386/i386.md (split_stack_return): Replace
3505 unspec_volatile with unspec.
3506
3507 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
3508
3509 * doc/install.texi: Fix typo in --with-sysroot description.
3510
3511 2010-10-26 Jan Hubicka <jh@suse.cz>
3512
3513 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3514 Use info provided by linker plugin.
3515
3516 2010-10-26 Jason Merrill <jason@redhat.com>
3517
3518 * varasm.c (constructor_static_from_elts_p): Don't require a
3519 CONSTRUCTOR to have elements to be suitable for static
3520 initialization. Allow ARRAY_TYPE as well.
3521
3522 2010-10-26 Jan Hubicka <jh@suse.cz>
3523
3524 PR middle-end/45736
3525 * cgraph.c (cgraph_set_readonly_flag): Rename to...
3526 (cgraph_set_const_flags) ... this one; get also looping argument;
3527 clear constructor/destructor flags.
3528 (cgraph_set_pure_flag): Likewise.
3529 (cgraph_set_looping_const_or_pure_flag): Remove.
3530 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
3531 to optimize away static ctors/dtors; it does not work on inline clones;
3532 external functions can always be rmeoved.
3533 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
3534 inline clones; in LTO external functions always can go.
3535 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
3536 (cgraph_mark_address_taken_node): Assert that we are not taking
3537 address of inline clone.
3538 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
3539 external functions.
3540 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
3541 address taken.
3542 (ipcp_initialize_node_lattices): Only local functions can be
3543 handled without cloning.
3544 * cgraph.h (cgraph_set_readonly_flag,
3545 cgraph_set_looping_const_or_pure_flag): Remove.
3546 (cgraph_set_const_flag): Declare.
3547 (cgraph_set_pure_flag): Update.
3548 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
3549 flags setting code.
3550 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
3551 look at inline clones; fix handling of external definitions.
3552 (cgraph_postorder): Do not look at inline clones in the first pass.
3553 (function_and_variable_visibility): Drop constructors/destructor
3554 flags at pure and const functions.
3555 * tree-profile.c (tree_profiling): Update.
3556 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
3557 address taken; external functions do not account to whole program size.
3558 (cgraph_decide_inlining): Likewise; do not try to inline
3559 functions already inlined.
3560
3561 2010-10-26 Jie Zhang <jie@codesourcery.com>
3562
3563 * doc/invoke.texi: Improve documentation of
3564 -fstrict-volatile-bitfields.
3565
3566 2010-10-26 Ira Rosen <irar@il.ibm.com>
3567
3568 PR tree-optimization/46167
3569 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
3570 is basic block for the statement.
3571
3572 2010-10-26 Paul Koning <ni1d@arrl.net>
3573
3574 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
3575 current definition of struct_real_format.
3576
3577 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
3578
3579 PR target/44948
3580 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
3581 (ix86_function_arg_boundary): Always align parameters on stack
3582 in 64bit and align parameters with alignment >= 16byte on stack
3583 in 32bit. Warn alignment change.
3584
3585 2010-10-26 Ian Lance Taylor <iant@google.com>
3586
3587 PR middle-end/45687
3588 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
3589 offset.
3590
3591 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
3592
3593 Implement opaque-enum-specifiesr for C++0x
3594 * tree.h (ENUM_IS_OPAQUE): New.
3595 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
3596
3597 2010-10-26 Jie Zhang <jie@codesourcery.com>
3598
3599 * stor-layout.c (layout_decl): Use the field's type to
3600 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
3601 * config/arm/arm.c (arm_override_options): Default to
3602 -fstrict-volatile-bitfields.
3603
3604 2010-10-25 Paul Koning <ni1d@arrl.net>
3605
3606 * config/pdp11/pdp11.md: Add define_constants for register
3607 numbers, branch offset limits.
3608 * config/pdp11/pdp11.c: Use named constants instead of numbers.
3609 * config/pdp11.pdp11.h: Ditto.
3610
3611 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
3612
3613 * configure.ac: Use $cpu_type instead of $target to define the nop.
3614 * configure: Regenerate.
3615
3616 2010-10-25 Jie Zhang <jie@codesourcery.com>
3617
3618 * combine.c (try_combine): If insns need to be kept around, check that
3619 they can be copied in the merged instruction.
3620
3621 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
3622
3623 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
3624 has been modified.
3625 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
3626 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
3627 it has been modified.
3628
3629 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
3630
3631 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
3632
3633 2010-10-24 Paul Koning <ni1d@arrl.net>
3634
3635 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
3636 * config/pdp11/pdp11.c (output_jump): Ditto.
3637
3638 2010-10-24 Ian Lance Taylor <iant@google.com>
3639
3640 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
3641
3642 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
3643
3644 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
3645 least one insn with a locus corresponding to an edge's goto_locus,
3646 disregard non-fallthru edges to the exit block and merge the blocks
3647 created for the same goto_locus.
3648
3649 2010-10-23 Joseph Myers <joseph@codesourcery.com>
3650
3651 * gcc.c (n_switches_alloc_debug_check): New.
3652 (set_option_handlers): New.
3653 (process_command): Use set_option_handlers.
3654 (do_self_spec): Pass spec-generated options through option handlers.
3655 (main): Also save and restore n_switches_alloc when swapping
3656 switch arrays.
3657
3658 2010-10-23 Richard Henderson <rth@redhat.com>
3659
3660 PR target/46144
3661 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
3662 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
3663 Honor matching operands when splitting to XOR.
3664
3665 2010-10-23 Ian Lance Taylor <iant@google.com>
3666
3667 * tree-vrp.c (extract_range_from_binary_expr): If
3668 flag_non_call_exceptions don't eliminate division by zero.
3669 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3670
3671 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
3672
3673 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3674 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
3675 __ORDER_PDP_ENDIAN__.
3676 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3677 (struct DWstruct): Define based on __BYTE_ORDER__.
3678 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3679 (struct INTstruct): Define based on __BYTE_ORDER__.
3680 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3681 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
3682 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
3683 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3684 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3685 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3686 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3687 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3688 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3689 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3690 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3691 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3692 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3693 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3694 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3695 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3696 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3697 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3698 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3699 * doc/tm.texi: Regenerate.
3700 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
3701 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
3702
3703 2010-10-23 Jie Zhang <jie@codesourcery.com>
3704
3705 PR rtl-optimization/37360
3706 * config/mips/mips.c (cached_can_issue_more): New local variable.
3707 (mips_sched_reorder_1): New.
3708 (mips_sched_reorder): Use mips_sched_reorder_1.
3709 (mips_sched_reorder2): New.
3710 (mips_variable_issue): Set cached_can_issue_more.
3711 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
3712 instead of mips_sched_reorder.
3713
3714 Revert:
3715 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
3716 PR rtl-optimization/37360
3717 * haifa-sched.c (max_issue): Do not assert that we never issue more
3718 insns than issue_rate. Add comment.
3719
3720 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
3721
3722 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
3723 location info of the expression.
3724
3725 2010-10-22 DJ Delorie <dj@redhat.com>
3726
3727 * doc/extend.texi (Named Address Spaces): Document the M32C named
3728 address space.
3729
3730 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
3731 __far address space.
3732 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
3733 "__far" address space for R8C and M16C processor variants.
3734 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
3735 (far_addr_space_p): New.
3736 (encode_pattern_1): Add sign and zero extend support.
3737 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
3738 (m32c_extra_constraint_p2): Add SF constraint.
3739 (m32c_legitimate_address_p): Support __far addresses.
3740 (m32c_addr_space_pointer_mode): New.
3741 (m32c_addr_space_address_mode): New.
3742 (m32c_addr_space_legitimate_address_p): New.
3743 (m32c_addr_space_legitimize_address): New.
3744 (m32c_addr_space_subset_p): New.
3745 (m32c_addr_space_convert): New.
3746 (conversions): Add __far operand patterns.
3747 (m32c_prepare_move): Force constants into registers for __far moves.
3748 (m32c_split_move): __far moves are always split.
3749 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
3750 * config/m32c/mov.md (mov<mode>_far_op1): New.
3751 (mov<mode>_far_op2): New.
3752 (movqi_op): Add __far (SF) support.
3753 (movhi_op): Likewise.
3754 (movsi_splittable): Split A1A0 also.
3755
3756 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3757 Andrew Pinski <pinskia@gmail.com>
3758
3759 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
3760 * doc/extend.texi: New paragraph
3761
3762 2010-10-22 Paul Koning <ni1d@arrl.net>
3763
3764 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
3765
3766 2010-10-22 DJ Delorie <dj@redhat.com>
3767
3768 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
3769
3770 2010-10-22 Paul Koning <ni1d@arrl.net>
3771
3772 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
3773
3774 2010-10-22 Richard Henderson <rth@redhat.com>
3775
3776 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
3777 cases for __builtin_fma and __builtin_fmaf.
3778
3779 2010-10-22 Richard Henderson <rth@redhat.com>
3780
3781 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
3782 NEG+USE for vectors as well.
3783 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
3784 and splitter.
3785
3786 2010-10-22 Joseph Myers <joseph@codesourcery.com>
3787
3788 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
3789 SWITCH_CURTAILS_COMPILATION): Remove.
3790 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
3791 * doc/tm.texi: Regenerate.
3792 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
3793
3794 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
3795
3796 * config/i386/bdver1.md: New file.
3797 * config/i386/i386.md (include "bdver1.md"): Invoke the
3798 pipeline description for bdver1.
3799 (x86_sahf_1): Add "bdver1_decode" attribute.
3800 (*cmpfp_i_mixed): Likewise.
3801 (*cmpfp_i_sse): Likewise.
3802 (*cmpfp_i_i387): Likewise.
3803 (*cmpfp_iu_mixed): Likewise.
3804 (*cmpfp_iu_sse): Likewise.
3805 (*cmpfp_iu_387): Likewise.
3806 (*swap<mode>,*swap<mode>_1): Likewise.
3807 (fixuns_trunc<mode>hi2): Likewise.
3808 (fix_trunc<mode>si_sse): Likewise.
3809 (x86_fnstcw_1): Likewise.
3810 (x86_fldcw_1): Likewise.
3811 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
3812 (*floatsi<mode>2_vector_mixed): Likewise.
3813 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
3814 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3815 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3816 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
3817 (*floatsi<mode>2_vector_sse): Likewise.
3818 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
3819 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3820 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3821 (*mul<mode>3_1): Likewise.
3822 (*mulsi3_1_zext): Likewise.
3823 (*mulhi3_1): Likewise.
3824 (*mulqi3_1): Likewise.
3825 (*<u>mul<mode><dwi>3_1): Likewise.
3826 (*<u>mulqihi3_1): Likewise.
3827 (*<s>muldi3_highpart_1): Likewise.
3828 (*<s>mulsi3_highpart_1): Likewise.
3829 (*<s>mulsi3_highpart_zext): Likewise.
3830 (x86_64_shld): Likewise.
3831 (x86_shld): Likewise.
3832 (x86_64_shrd): Likewise.
3833 (x86_shrd): Likewise.
3834 (sqrtxf2): Likewise.
3835 (sqrt_extend<mode>xf2_i387): Likewise.
3836 (*sqrt<mode>2_sse): Likewise.
3837 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
3838 (sse_cvtsi2ssq): Likewise.
3839 (sse_cvtss2si): Likewise.
3840 (sse_cvtss2si_2): Likewise.
3841 (sse_cvtss2siq): Likewise.
3842 (sse_cvtss2siq_2): Likewise.
3843 (sse_cvttss2si): Likewise.
3844 (sse_cvttss2siq): Likewise.
3845 (sse2_cvtpi2pd): Likewise.
3846 (sse2_cvttpd2pi): Likewise.
3847 (sse2_cvtsi2sd): Likewise.
3848 (sse2_cvtsi2sdq): Likewise.
3849 (sse2_cvtsd2si): Likewise.
3850 (sse2_cvtsd2si_2): Likewise.
3851 (sse2_cvtsd2siq): Likewise.
3852 (sse2_cvtsd2siq_2): Likewise.
3853 (sse2_cvttsd2si): Likewise.
3854 (sse2_cvttsd2siq): Likewise.
3855 (*sse2_cvtpd2dq): Likewise.
3856 (*sse2_cvttpd2dq): Likewise.
3857 (sse2_cvtsd2ss): Likewise.
3858 (sse2_cvtss2sd): Likewise.
3859 (*sse2_cvtpd2ps): Likewise.
3860 (sse2_cvtps2pd): Likewise.
3861
3862 2010-10-22 Richard Guenther <rguenther@suse.de>
3863
3864 PR middle-end/46137
3865 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
3866 remove the virtual operands if they are not needed.
3867
3868 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
3869
3870 * config/i386/i386.c (processor_costs bdver1_cost): Update
3871 insn costs and architectural parameters for bdver1.
3872
3873 2010-10-22 Richard Guenther <rguenther@suse.de>
3874
3875 * gimple.h (gimple_register_canonical_type): Declare.
3876 * gimple.c (gimple_canonical_types): New global hashtable.
3877 (struct gimple_type_leader_entry_s): New type.
3878 (gimple_type_leader): New global cache.
3879 (gimple_lookup_type_leader): New function.
3880 (gtc_visit): Query the proper cache.
3881 (gimple_types_compatible_p): Likewise.
3882 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
3883 (gimple_canonical_type_eq): New function.
3884 (gimple_register_canonical_type): Likewise.
3885 (print_gimple_types_stats): Adjust for gimple_canonical_types.
3886 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
3887 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
3888 gimple_types_compatible_p for LTO.
3889
3890 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
3891
3892 PR target/46098
3893 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3894 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3895 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3896 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3897 (<sse>_movu<ssemodesuffix>): New expander.
3898 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3899 (avx_movdqu<avxmodesuffix>): New expander.
3900 (*sse2_movdqu): Rename from sse2_movdqu.
3901 (sse2_movdqu): New expander.
3902
3903 2010-10-22 Richard Guenther <rguenther@suse.de>
3904
3905 PR tree-optimization/45720
3906 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3907 Handle negative step.
3908 (vect_enhance_data_refs_alignment): Likewise.
3909 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
3910 (vect_create_cond_for_align_checks): Likewise.
3911 (vect_create_cond_for_alias_checks): Likewise.
3912
3913 2010-10-22 Ira Rosen <irar@il.ibm.com>
3914
3915 PR tree-optimization/46126
3916 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
3917 vectorizable_shift in case of basic block vectorization.
3918
3919 2010-10-22 Joseph Myers <joseph@codesourcery.com>
3920
3921 * target.h (enum opt_levels, struct default_options): New.
3922 * target.def (handle_ofast): Remove hook.
3923 (target_option.optimization): Change to
3924 target_option.optimization_table.
3925 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
3926 TARGET_OPTION_OPTIMIZATION_TABLE.
3927 (CAN_DEBUG_WITHOUT_FP): Remove.
3928 * doc/tm.texi: Regenerate.
3929 * opts.c (maybe_default_option, maybe_default_options,
3930 default_options_table): New.
3931 (default_options_optimization): Take extra parameters. Don't
3932 assert that global_options and global_options_set are in use. Use
3933 maybe_default_options.
3934 (decode_options): Pass extra parameters to
3935 default_options_optimization.
3936 * common.opt (falign-loops): Use value 0 with Var.
3937 (frerun-cse-after-loop, ftree-ter): Remove Init.
3938 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
3939 TARGET_OPTION_OPTIMIZATION): Remove.
3940 * targhooks.c (empty_optimization_table): New.
3941 * targhooks.h (empty_optimization_table): Declare.
3942 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
3943 * config/alpha/alpha.c (alpha_option_optimization_table,
3944 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3945 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
3946 * config/arm/arm.c (arm_option_optimization: Change to
3947 arm_option_optimization_table.
3948 (TARGET_OPTION_OPTIMIZATION): Change to
3949 TARGET_OPTION_OPTIMIZATION_TABLE.
3950 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
3951 * config/avr/avr.c (avr_option_optimization_table,
3952 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3953 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
3954 * config/cris/cris.c (cris_option_optimization): Change to
3955 cris_option_optimization_table.
3956 (TARGET_OPTION_OPTIMIZATION): Change to
3957 TARGET_OPTION_OPTIMIZATION_TABLE.
3958 * config/crx/crx.c (crx_option_optimization): Change to
3959 crx_option_optimization_table.
3960 (TARGET_OPTION_OPTIMIZATION): Change to
3961 TARGET_OPTION_OPTIMIZATION_TABLE.
3962 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3963 * config/fr30/fr30.c (fr30_option_optimization_table,
3964 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3965 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
3966 * config/frv/frv.c (frv_option_optimization_table,
3967 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3968 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
3969 * config/h8300/h8300.c (h8300_option_optimization): Change to
3970 h8300_option_optimization_table.
3971 (TARGET_OPTION_OPTIMIZATION): Change to
3972 TARGET_OPTION_OPTIMIZATION_TABLE.
3973 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3974 * config/i386/i386.c (ix86_option_optimization): Change to
3975 ix86_option_optimization_table.
3976 (TARGET_OPTION_OPTIMIZATION): Change to
3977 TARGET_OPTION_OPTIMIZATION_TABLE.
3978 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
3979 as initializer.
3980 * config/ia64/ia64.c (ia64_option_optimization): Change to
3981 ia64_option_optimization_table.
3982 (TARGET_OPTION_OPTIMIZATION): Change to
3983 TARGET_OPTION_OPTIMIZATION_TABLE.
3984 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
3985 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
3986 initializer.
3987 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3988 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3989 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3990 * config/lm32/lm32.c (lm32_option_optimization_table,
3991 TARGET_OPTION_OPTIMIZATION_TABLE): New.
3992 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
3993 * config/m32r/m32r.c (m32r_option_optimization): Change to
3994 m32r_option_optimization_table.
3995 (TARGET_OPTION_OPTIMIZATION): Change to
3996 TARGET_OPTION_OPTIMIZATION_TABLE.
3997 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
3998 CAN_DEBUG_WITHOUT_FP): Remove.
3999 * config/mcore/mcore.c (mcore_option_optimization): Change to
4000 mcore_option_optimization_table.
4001 (TARGET_OPTION_OPTIMIZATION): Change to
4002 TARGET_OPTION_OPTIMIZATION_TABLE.
4003 * config/mep/mep.c (mep_option_optimization): Change to
4004 mep_option_optimization_table.
4005 (TARGET_OPTION_OPTIMIZATION): Change to
4006 TARGET_OPTION_OPTIMIZATION_TABLE.
4007 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
4008 * config/microblaze/microblaze.c
4009 (microblaze_option_optimization_table,
4010 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4011 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
4012 * config/mips/mips.c (mips_option_optimization_table,
4013 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4014 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
4015 * config/mmix/mmix.c (mmix_option_optimization): Change to
4016 mmix_option_optimization_table.
4017 (TARGET_OPTION_OPTIMIZATION): Change to
4018 TARGET_OPTION_OPTIMIZATION_TABLE.
4019 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
4020 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4021 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4022 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
4023 * config/pa/pa.c (pa_option_optimization_table,
4024 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4025 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4026 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
4027 pdp11_option_optimization_table.
4028 (TARGET_OPTION_OPTIMIZATION): Change to
4029 TARGET_OPTION_OPTIMIZATION_TABLE.
4030 * config/picochip/picochip.c (picochip_option_optimization_table,
4031 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4032 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
4033 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
4034 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4035 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
4036 * config/rx/rx.c (rx_option_optimization_table,
4037 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4038 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
4039 * config/s390/s390.c (s390_option_optimization): Change to
4040 s390_option_optimization_table.
4041 (s390_option_override): Update comment.
4042 (TARGET_OPTION_OPTIMIZATION): Change to
4043 TARGET_OPTION_OPTIMIZATION_TABLE.
4044 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
4045 * config/score/score.c (score_option_optimization_table,
4046 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4047 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
4048 * config/sh/sh.c (sh_option_optimization): Change to
4049 sh_option_optimization_table.
4050 (TARGET_OPTION_OPTIMIZATION): Change to
4051 TARGET_OPTION_OPTIMIZATION_TABLE.
4052 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
4053 (sh_option_override, expand_block_move, multcosts, find_barrier,
4054 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
4055 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
4056 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
4057 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
4058 instead of TARGET_SMALLCODE.
4059 * config/sh/sh.opt (mspace): Make into an alias for -Os.
4060 * config/sparc/sparc.c (sparc_option_optimization_table,
4061 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4062 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
4063 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4064 TARGET_OPTION_OPTIMIZATION_TABLE): New.
4065 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
4066 * config/v850/v850.c (v850_option_optimization): Change to
4067 v850_option_optimization_table.
4068 (TARGET_OPTION_OPTIMIZATION): Change to
4069 TARGET_OPTION_OPTIMIZATION_TABLE.
4070 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
4071 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
4072 xtensa_option_optimization_table.
4073 (TARGET_OPTION_OPTIMIZATION): Change to
4074 TARGET_OPTION_OPTIMIZATION_TABLE.
4075 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
4076
4077 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
4078
4079 Based on the CFString implementation in FSF apple/trunk branch.
4080
4081 * target.def (objc_construct_string): New Hook.
4082 * doc/tm.texi (objc_construct_string): Document.
4083 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
4084 * config/t-darwin: Amend build rules for darwin.o.
4085 * config/darwin.opt: Add cfstrings flags.
4086 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
4087 (darwin_objc_construct_string): New.
4088 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
4089 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
4090 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
4091 (darwin_fold_builtin): Likewise.
4092 (darwin_build_constant_cfstring): Likewise.
4093 (darwin_objc_construct_string): Likewise.
4094 (darwin_cfstring_p): Likewise.
4095 (darwin_enter_string_into_cfstring_table): Likewise.
4096 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
4097 * config/darwin.c (darwin_running_cxx): New var.
4098 (machopic_select_section): Return cfstring_constant_object_section.
4099 (darwin_override_options): Set darwin_running_cxx.
4100 (add_builtin_field_decl): New.
4101 (darwin_init_cfstring_builtins): New.
4102 (darwin_build_constant_cfstring): New.
4103 (darwin_fold_builtin): New.
4104 (cfstring_hash): New.
4105 (cfstring_eq): New.
4106 (darwin_enter_string_into_cfstring_table): New.
4107 * config/darwin-sections.def (cfstring_constant_object_section): New.
4108 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
4109 (TARGET_OBJC_CONSTRUCT_STRING): Define.
4110
4111 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4112
4113 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
4114 TYPE_STUB_DECL instead of TREE_CHAIN.
4115 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
4116 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
4117 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
4118 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
4119 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
4120 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
4121 Likewise.
4122 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
4123
4124 2010-10-22 Jie Zhang <jie@codesourcery.com>
4125
4126 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
4127 (copy_blkmode_from_reg): Likewise.
4128 (read_complex_part): Likewise.
4129 (expand_expr_real_1): Calculate packedp and pass it to
4130 extract_bit_field.
4131 * expr.h (extract_bit_field): Update declaration.
4132 * calls.c (store_unaligned_arguments_into_pseudos): Update call
4133 to extract_bit_field.
4134 * expmed.c (extract_fixed_bit_field): Update calls to
4135 extract_fixed_bit_field.
4136 (store_split_bit_field): Likewise.
4137 (extract_bit_field_1): Add new argument packedp.
4138 (extract_bit_field): Add new argument packedp.
4139 (extract_fixed_bit_field): Add new argument packedp and let
4140 packed attribute override volatile.
4141 * stmt.c (expand_return): Update call to extract_bit_field.
4142
4143 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4144
4145 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
4146
4147 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4148
4149 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
4150 of gcc_checking_assert.
4151 * sel-sched.c (code_motion_process_successors): Likewise.
4152
4153 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
4154
4155 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
4156 when stopping because of a different locus on edge or insn.
4157 (try_optimize_cfg): Add comment.
4158 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
4159 block is a forwarder block, propagate locus on the edge.
4160 (cfg_layout_merge_blocks): Likewise.
4161
4162 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
4163
4164 PR target/45946
4165 * config/i386/i386.md (*pushti2): New insn pattern.
4166 (pushti2 splitter): New insn splitter.
4167 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
4168 DWI mode iterator.
4169
4170 2010-10-21 Paul Koning <ni1d@arrl.net>
4171
4172 * config/pdp11/pdp11-protos.md (arith_operand,
4173 const_immediate_operand, expand_shift_operand,
4174 immediate15_operand): Delete
4175 * config/pdp11/pdp11.c: Ditto.
4176 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
4177 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
4178 EXTRA_CONSTRAINT): Delete.
4179 * config/pdp11/pdp11.md (various): Use standard constraints
4180 instead of removed ones.
4181 * config/pdp11/constraints.md: New file.
4182 * config/pdp11/predicates.md: New file.
4183
4184 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
4185
4186 PR c/45834
4187 * alias.c (true_dependence_1): Remove obsolete check for QImode.
4188 (may_alias_p): Ditto.
4189
4190 2010-10-21 Martin Jambor <mjambor@suse.cz>
4191
4192 PR tree-optimization/45875
4193 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
4194
4195 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4196
4197 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
4198 variables.
4199 (create_new_def_for): Likewise.
4200
4201 2010-10-21 Nick Clifton <nickc@redhat.com>
4202
4203 * config/mn10300/mn10300.c: Fold code to 80-character width.
4204 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
4205 MEM, CONST_INT and CONST_DOUBLE.
4206 (targetm): Move initialization to end of file.
4207 (print_operand): Rename to mn10300_print_operand.
4208 (print_operand_address): Rename to mn10300_print_operand_address.
4209 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
4210 (expand_prologue): Rename to mn10300_expand_prologue.
4211 (expand_epilogue): Rename to mn10300_expand_epilogue.
4212 (initial_offset): Rename to mn10300_initial_offset.
4213 (function_arg): Rename to mn10300_function_arg.
4214 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
4215 (symbolic_operand): Rename to mn10300_symbolic_operand.
4216 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
4217 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
4218 * config/mn10300/mn10300-protos.h: Update prototypes.
4219 * config/mn10300/mn10300.h: Fold code to 80-character width.
4220 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
4221 MEM, CONST_INT and CONST_DOUBLE.
4222 (CPP_SPEC): Move to...
4223 (TARGET_CPU_CPP_BUILTINS): ... here.
4224 * config/mn10300/mn10300.md: Fold code to 80-character width.
4225 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
4226 MEM, CONST_INT and CONST_DOUBLE.
4227
4228 2010-10-21 Ira Rosen <irar@il.ibm.com>
4229
4230 PR tree-optimization/46049
4231 PR tree-optimization/46052
4232 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
4233 (vect_get_slp_defs): Add arguments.
4234 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
4235 operands to vect_get_slp_defs.
4236 (vectorizable_reduction): Fix comment, pass scalar operands to
4237 vect_get_slp_defs.
4238 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
4239 type to determine number of units in the created vector.
4240 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
4241 (vectorizable_conversion): Fix comment.
4242 (vectorizable_shift): New function.
4243 (vectorizable_operation): Move code that handles shifts to
4244 vectorizable_shift.
4245 (vectorizable_type_demotion): Fix comment, pass scalar operands to
4246 vect_get_slp_defs.
4247 (vectorizable_type_promotion, vectorizable_store): Likewise.
4248 (vectorizable_condition): Fix comment.
4249 (vect_analyze_stmt): Call vectorizable_shift.
4250 (vect_transform_stmt): Likewise.
4251 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
4252 Use it as the operand to create vectors for, except reduction
4253 initial definition and store. Use operands type.
4254 (vect_get_slp_defs): Add new arguments. Pass them to
4255 vect_get_constant_vectors.
4256
4257 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4258
4259 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
4260 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
4261 * cfghooks.c (fixup_reorder_chain): Likewise.
4262 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
4263 * cgraph.c (cgraph_add_thunk): Likewise.
4264 (cgraph_create_edge_1): Likewise.
4265 (cgraph_create_virtual_clone): Likewise.
4266 * ddg.c (add_cross_iteration_register_deps): Likewise.
4267 * dwarf2out.c (modified_type_die): Likewise.
4268 * emit-rtl.c (set_mem_alias_set): Likewise.
4269 * ggc-zone.c (zone_allocate_marks): Likewise.
4270 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
4271 * gimple.c (iterative_hash_gimple_type): Likewise.
4272 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
4273 (create_single_exit_edge): Likewise.
4274 * haifa-sched.c (choose_ready): Likewise.
4275 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4276 * passes.c (execute_todo): Likewise.
4277 * sched-ebb.c (begin_schedule_ready): Likewise.
4278 * sel-sched.c (code_motion_process_successors): Likewise.
4279 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
4280 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
4281 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
4282 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
4283 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
4284 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
4285 (ssa_conflicts_add): Likewise.
4286 * tree-ssa-copy.c (replace_exp): Likewise.
4287 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
4288 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
4289 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4290 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
4291 (compute_antic): Likewise.
4292 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
4293 (add_dependence): Likewise.
4294 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
4295 * tree-vrp.c (supports_overflow_infinity): Likewise.
4296 (make_overflow_infinity, negative_overflow_infinity): Likewise.
4297 (avoid_overflow_infinity, register_new_assert_for): Likewise.
4298 (process_assert_insertions_for): Likewise.
4299 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
4300 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
4301 (intersect_loc_chains, variable_merge_over_cur): Likewise.
4302
4303 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
4304
4305 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
4306 * reload1.c (has_nonexceptional_receiver): Likewise.
4307 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
4308 (create_new_def_for): Likewise.
4309 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4310 (merge_phi_nodes): Likewise.
4311 (has_abnormal_incoming_edge_p): Delete.
4312
4313 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
4314
4315 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
4316
4317 2010-10-21 Richard Guenther <rguenther@suse.de>
4318 Michael Matz <matz@suse.de>
4319
4320 PR tree-optimization/45764
4321 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4322 Adjust initial misalignment for negative DR_STEP.
4323 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
4324 do not have the same alignment over the whole iteration domain.
4325
4326 2010-10-21 Richard Guenther <rguenther@suse.de>
4327
4328 PR tree-optimization/46111
4329 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
4330
4331 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4332
4333 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
4334
4335 2010-10-21 Tristan Gingold <gingold@adacore.com>
4336
4337 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
4338 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
4339
4340 2010-10-21 Tristan Gingold <gingold@adacore.com>
4341
4342 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
4343 signal_frame.
4344 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
4345
4346 2010-10-21 Tristan Gingold <gingold@adacore.com>
4347
4348 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
4349 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
4350
4351 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
4352
4353 * basic-block.h (find_fallthru_edge): Define.
4354 * cfgcleanup.c (merge_blocks_move): Use it.
4355 (try_crossjump_bb): Likewise.
4356 * cfglayout.c (fixup_reorder_chains): Likewise.
4357 (fixup_fallthru_exit_predecessor): Likewise.
4358 * cfgrtl.c (rtl_split_edge): Likewise.
4359 (rtl_verify_flow_info): Likewise.
4360 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4361 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
4362 * ifcvt.c (block_fallthru): Likewise.
4363 * reload1.c (fixup_abnormal_edges): Likewise.
4364 * sched-ebb.c (being_schedule_ready): Likewise.
4365 (schedule_ebb): Likwise.
4366 * sched-rgn.c (find_single_block_region): Likewise.
4367 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
4368 * tree-complex.c (expand_complex_move): Likewise.
4369 * sched-int.h (find_fallthru_edge): Rename to...
4370 (find_fallthru_edge_from): ...this.
4371 * haifa-sched.c (find_fallthru_edge): Rename to...
4372 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
4373 (init_before_recovery): Call find_fallthru_edge_from.
4374 * sel-sched-ir.c (merge_fences): Likewise.
4375 * sel-sched.c (in_fallthru_bb_p): Likewise.
4376 (move_cond_jump): Likewise.
4377
4378 2010-10-20 Paul Koning <ni1d@arrl.net>
4379
4380 * config/pdp11/pdp11.md (various): Fix conditions on a number of
4381 insn to check for target 11/40 or higher.
4382
4383 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4384
4385 * parser.c (c_parser_objc_method_type): Mark inline. Return a
4386 bool instead of a tree.
4387 (c_parser_objc_method_decl): Added bool argument. Updated call to
4388 objc_build_method_signature.
4389 (c_parser_objc_method_definition): Do not call
4390 objc_set_method_type. Updated calls to c_parser_objc_method_type,
4391 c_parser_objc_method_decl and objc_start_method_definition.
4392 (c_parser_objc_methodproto): Do not call objc_set_method_type.
4393 Updated calls to c_parser_objc_method_type,
4394 c_parser_objc_method_decl and objc_add_method_declaration.
4395
4396 2010-10-20 Jakub Jelinek <jakub@redhat.com>
4397
4398 PR tree-optimization/45919
4399 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
4400 array members.
4401
4402 PR tree-optimization/46066
4403 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
4404 instead of gsi_last_bb.
4405
4406 2010-10-20 DJ Delorie <dj@redhat.com>
4407
4408 * config/m32c/m32c.c (m32c_option_override): Always disable
4409 function-cse in 16-bit mode. Indirect calls are always worse than
4410 direct calls as there is no 16-bit indirect call opcode.
4411 (m32c_override_options_after_change): New, likewise.
4412
4413 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
4414
4415 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
4416 emitting the conditional move in the inner mode of the SUBREG.
4417
4418 2010-10-20 Anatoly Sokolov <aesok@post.ru>
4419
4420 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
4421 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
4422 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4423 (ia64_preferred_reload_class): Make static. Change rclass argument
4424 and result types from enum reg_class to reg_class_t.
4425
4426 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
4427
4428 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
4429 call for single operand expression.
4430
4431 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
4432
4433 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
4434 if there is a call statement to pure or const function in the block.
4435
4436 2010-10-20 Paul Koning <pkoning@equallogic.com>
4437
4438 Fix several build errors for pdp11 target.
4439 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
4440 (cbranchdf4): Conditional on TARGET_FPU.
4441 (movdf): Ditto; correct alternatives check.
4442 (movmemhi): Fix predicate and constraint.
4443 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
4444
4445 2010-10-20 Richard Guenther <rguenther@suse.de>
4446
4447 PR lto/45667
4448 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
4449 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
4450 (verify_gimple_assign_single): Disable ADDR_EXPR type check
4451 when in LTO.
4452
4453 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
4454
4455 PR fortran/42169
4456 * ira-emit.c (store_can_be_removed_p): Return false instead of
4457 gcc_unreachable.
4458
4459 2010-10-20 Dmitry Melnik <dm@ispras.ru>
4460
4461 * fold-const.c (fold_binary_loc): New transformation.
4462
4463 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
4464
4465 PR target/46085
4466 * config/i386/sse.md (reduc_splus_v8sf): Updated.
4467 (reduc_splus_v4df): Likewise.
4468
4469 2010-10-20 Richard Guenther <rguenther@suse.de>
4470
4471 PR tree-optimization/45860
4472 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
4473 conditional store replacement for non-register type stores.
4474
4475 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
4476
4477 * stor-layout.c (skip_simple_constant_arithmetic): New function.
4478 (self_referential_size): Use it instead of skip_simple_arithmetic.
4479
4480 2010-10-20 Olivier Hainque <hainque@adacore.com>
4481
4482 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
4483 If the current function calls eh_return, claim live all registers
4484 that we need to check for liveness otherwise.
4485
4486 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4487
4488 * c-decl.c (c_write_global_declarations): Call
4489 objc_write_global_declarations when compiling Objective-C.
4490 * c-lang.c (finish_file): Removed.
4491
4492 2010-10-19 DJ Delorie <dj@redhat.com>
4493
4494 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
4495 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
4496 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4497 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4498 * doc/tm.texi: Regenerate.
4499 * targhooks.h (default_label_align_after_barrier_max_skip,
4500 default_loop_align_max_skip, default_label_align_max_skip,
4501 default_jump_align_max_skip): Declare.
4502 * target.def (label_align_after_barrier_max_skip): New.
4503 (loop_align_max_skip): New.
4504 (label_align_max_skip): New.
4505 (jump_align_max_skip): New.
4506 * system.h (poison): Add those macros to the list.
4507 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
4508 (LOOP_ALIGN_MAX_SKIP): Remove.
4509 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
4510 (JUMP_ALIGN_MAX_SKIP): Remove.
4511 (default_label_align_after_barrier_max_skip): New.
4512 (default_loop_align_max_skip): New.
4513 (default_label_align_max_skip): New.
4514 (default_jump_align_max_skip): New.
4515 (compute_alignments): Use the new hooks.
4516 (shorten_branches): Likewise.
4517
4518 2010-10-19 Richard Henderson <rth@redhat.com>
4519
4520 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
4521 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
4522 (fma4i_fmadd_<mode>): New.
4523 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
4524 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
4525 standard fma patterns.
4526 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
4527 enable for FMA.
4528 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4529 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4530 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
4531
4532 2010-10-19 Paul Koning <pkoning@equallogic.com>
4533
4534 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
4535 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
4536
4537 2010-10-19 Richard Henderson <rth@redhat.com>
4538
4539 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
4540 (fmadf4, *fmsdf4, *nfmadf4): New.
4541 (fmaxf4, *fmsxf4, *nfmaxf4): New.
4542
4543 2010-10-19 Michael Eager <eager@eagercon.com>
4544
4545 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
4546 Use sjlj unwind info for exceptions.
4547
4548 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
4549
4550 PR fortran/43414
4551 * dwarf2out.c (add_calling_convention_attribute): Flag main
4552 Fortran subroutine with DW_AT_main_subprogram.
4553
4554 2010-10-19 Nick Clifton <nickc@redhat.com>
4555
4556 * config/rx/rx.c (rx_function_value): Small integer types are
4557 promoted to SImode.
4558 (rx_promote_function_mode): New function.
4559 (TARGET_PROMOTE_FUNCTION_MODE): Define.
4560
4561 2010-10-19 Nick Clifton <nickc@redhat.com>
4562
4563 * config/mep/mep.c (mep_print_operand): Use
4564 targetm.strip_name_encoding.
4565 (mep_output_aligned_common): Likewise.
4566
4567 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
4568
4569 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
4570
4571 2010-10-18 Richard Henderson <rth@redhat.com>
4572
4573 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
4574 (fma (neg a) (neg b) c) and (fma a (neg b) c).
4575
4576 2010-10-18 Richard Henderson <rth@redhat.com>
4577
4578 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
4579 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
4580 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
4581 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
4582 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
4583 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
4584 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
4585 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
4586 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
4587 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
4588 (bdesc_multi_arg): Remove the corresponding builtins.
4589 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
4590 (UNSPEC_FMA4_FMSUBADD): Remove.
4591 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
4592 * config/i386/sse.md (FMA4MODEF4): Remove.
4593 (FMAMODE): Add.
4594 (fma<mode>4): New expander.
4595 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
4596 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
4597 (*fma4i_fmsub_<mode>): Similarly.
4598 (*fma4i_fnmadd_<mode>): Similarly.
4599 (*fma4i_fnmsub_<mode>): Similarly.
4600 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
4601 with the first operand.
4602 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
4603 of explicit arithmetic. Macroize with AVXMODEF2P.
4604 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
4605 (xop_frcz<mode>2): Macroize with FMAMODE.
4606 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
4607 the first operand.
4608 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
4609 extra negations.
4610 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
4611 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
4612 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
4613 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
4614 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
4615 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
4616 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
4617 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
4618
4619 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
4620
4621 PR rtl-optimization/45966
4622 * combine.c (try_combine): If added_sets_2, deal with the case
4623 where i0 feeds i1 and i1 feeds i2.
4624
4625 2010-10-18 Jan Hubicka <jh@suse.cz>
4626
4627 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
4628 preserve flags before trying to guess on visibility.
4629 (varpool_externally_visible_p): New function.
4630 (function_and_variable_visibility): Use it.
4631
4632 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4633
4634 Implemented parsing @synthesize and @dynamic for Objective-C.
4635 * c-parser.c (c_parser_external_declaration): Recognize
4636 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4637 (c_parser_objc_at_synthesize_declaration): New.
4638 (c_parser_objc_at_dynamic_declaration): New.
4639
4640 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4641
4642 * c-parser.c (c_parser_objc_class_declaration): After finding an
4643 error, parse the whole declaration then reset parser->error.
4644
4645 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4646
4647 PR target/46041
4648 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
4649 * builtins.c (mode_has_fma): Ditto.
4650
4651 2010-10-18 Steve Ellcey <sje@cup.hp.com>
4652
4653 PR target/36898
4654 PR middle-end/43760
4655 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
4656
4657 2010-10-18 Joseph Myers <joseph@codesourcery.com>
4658
4659 * config/i386/i386.c (ix86_option_override_internal): Define and
4660 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
4661 default.
4662 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4663 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
4664
4665 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4666
4667 Merge from 'apple/trunk' branch on FSF servers.
4668 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
4669 following Objective-C change:
4670
4671 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
4672
4673 Radar 4301047
4674 * c-parse.in (objc_quals): Build objc qualifier list same way
4675 as gcc-3.3
4676
4677 2010-10-18 Jan Hubicka <jh@suse.cz>
4678
4679 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
4680 function_and_variable_visibility): Revert accidental commit.
4681
4682 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4683
4684 Merge from 'apple/trunk' branch on FSF servers.
4685 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
4686 the following Objective-C change:
4687
4688 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
4689
4690 Radar 4204796
4691 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
4692 'volatilized' type used in a typeof operator.
4693
4694 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
4695
4696 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
4697 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
4698 rewrite modelled on gimple_purge_dead_eh_edges.
4699 (gimple_purge_all_dead_abnormal_call_edges): New function.
4700 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
4701 directly instead of through gimple_purge_dead_abnormal_call_edges.
4702 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
4703 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
4704 removed AB side-effects from one of its statements.
4705 (init_pre): Initialize need_ab_cleanup.
4706 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
4707 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
4708
4709 2010-10-18 Jakub Jelinek <jakub@redhat.com>
4710
4711 PR c/46015
4712 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
4713 on computed goto argument.
4714
4715 2010-10-18 Richard Guenther <rguenther@suse.de>
4716
4717 PR tree-optimization/45967
4718 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
4719 (could_have_pointers): Likewise.
4720 (handle_rhs_call, handle_const_call, handle_pure_call,
4721 find_func_aliases, intra_create_variable_infos): Remove calls to them.
4722 (struct fieldoff): Add must_have_pointers field.
4723 (type_must_have_pointers): New function.
4724 (field_must_have_pointers): Likewise.
4725 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
4726 Adjust field merging.
4727 (create_function_info_for): May-have-pointers of varinfo is
4728 almost always true.
4729 (create_variable_info_for_1): Likewise.
4730
4731 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
4732
4733 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
4734 of operands to vec_concat.
4735
4736 2010-10-18 Richard Guenther <rguenther@suse.de>
4737
4738 PR lto/44950
4739 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
4740 also clear references to entries of it.
4741
4742 2010-10-18 Andi Kleen <ak@linux.intel.com>
4743
4744 PR other/43448
4745 * gccbug.in: Remove.
4746 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
4747 (doc, distclean, install-common): Remove reference to gccbug.
4748 * configure: Regenerate.
4749 * configure.ac (all_outputs): Remove gccbug.
4750 * doc/configfiles.texi: Remove references to gccbug.
4751 * doc/sourcebuild.texi: Dito.
4752
4753 2010-10-18 Jakub Jelinek <jakub@redhat.com>
4754
4755 PR middle-end/46019
4756 * fold-const.c (fold_binary_loc): If integer_pow2p has
4757 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
4758
4759 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
4760 Jeremie Salvucci <jeremie.salvucci@free.fr>
4761
4762 * gengtype.c (verbosity_level): Add variable.
4763 (set_gc_used): Count variables for verbosity.
4764 (close_output_files): Backing up files, counting written ones
4765 verbosily.
4766 (write_types): Count emitted functions for verbosity. Added
4767 debug messages.
4768 (write_enum_defn): Count structures for verbosity. Added debug
4769 messages.
4770 (gengtype_long_options): Add "verbose" & "backupdir".
4771 (print_usage): Ditto.
4772 (main): Verbose display of parsed files.
4773
4774 * gengtype.h (verbosity_level): Add declaration.
4775
4776 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
4777
4778 * gengtype.c (parse_program_options): Add allocation of
4779 plugin_files, and correct test on nb_plugin_files.
4780
4781 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4782
4783 Merge from 'apple/trunk' branch on FSF servers.
4784
4785 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4786
4787 Radar 4133425
4788 * c-decl.c (undeclared_variable): Issue diagnostic on
4789 private 'ivar' access.
4790
4791 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
4792
4793 PR target/46051
4794 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
4795 generated sequence to match *avx_vperm2f128<mode>_nozero.
4796 (vec_interleave_lowv4df): Ditto.
4797 (vec_interleave_highv8sf): Ditto.
4798 (vec_interleave_lowv8sf): Ditto.
4799
4800 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
4801
4802 * libgcov.c (create_file_directory): Enable it for win32 case.
4803 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
4804 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
4805 (GCOV_PREFIX_SKIP): Likewise.
4806
4807 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4808
4809 * doc/objc.texi (GNU Objective-C runtime API): New section.
4810 (Modern GNU Objective-C runtime API): New section.
4811 (Traditional GNU Objective-C runtime API): New section.
4812 (Executing code before main): Mention that this section is
4813 specific to the GNU Objective-C runtime.
4814 (Garbage Collection): Same.
4815
4816 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
4817
4818 * c-parser.c (c_parser_for_statement): Move initialization of
4819 cond and incr before if.
4820
4821 2010-10-17 Anatoly Sokolov <aesok@post.ru>
4822
4823 * target.def (preferred_output_reload_class): New hook.
4824 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
4825 * doc/tm.texi: Regenerate.
4826 * targhooks.c (default_preferred_output_reload_class): New function.
4827 * targhooks.h (default_preferred_output_reload_class): Declare.
4828 * reload.c (find_dummy_reload): Change rclass argument type from
4829 enum reg_class to reg_class_t. Change this_alternative array type
4830 from enum reg_class to reg_class_t.
4831 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4832 (push_reload): Change preferred_class variable type to reg_class_t.
4833 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4834 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
4835 argument type from enum reg_class to reg_class_t. Use
4836 HARD_REGISTER_NUM_P predicate.
4837 * recog.h (reg_fits_class_p): Update prototype.
4838
4839 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4840 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
4841 Remove.
4842 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
4843 static. Change regclass argument and result types from enum reg_class
4844 to reg_class_t.
4845 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4846
4847 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4848
4849 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
4850 visibility enum, and handle @package.
4851
4852 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4853
4854 * doc/objc.texi (What you can and what you cannot do in +load):
4855 Document that sending messages to constant string objects in +load
4856 is not guaranteed to work.
4857
4858 2010-10-16 Jan Hubicka <jh@suse.cz>
4859
4860 PR middle-end/44206
4861 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
4862 existence of refrences before removing the function.
4863
4864 2010-10-16 Jan Hubicka <jh@suse.cz>
4865
4866 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
4867 only_called_at_startup and only_called_at_exit.
4868 (cgraph_propagate_frequency): Compute only_called_at_startup and
4869 only_called_at_exit.
4870 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
4871 only_called_at_exit.
4872 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
4873 flags.
4874 * predict.c (compute_function_frequency): Initialize the new flags.
4875
4876 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
4877
4878 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
4879 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
4880 on the bounds of its domain.
4881 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
4882
4883 2010-10-16 Anatoly Sokolov <aesok@post.ru>
4884
4885 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
4886 * config/avr/avr-protos.h (preferred_reload_class): Remove.
4887 * config/avr/avr.c (preferred_reload_class): Remove.
4888 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
4889 * config/pa/pa.c (emit_move_sequence): Update comment
4890 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
4891 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
4892 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
4893 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
4894 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
4895 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
4896 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
4897 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
4898 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
4899 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
4900 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
4901 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
4902 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
4903
4904 2010-10-16 Joseph Myers <joseph@codesourcery.com>
4905
4906 * opts.c (set_fast_math_flags,
4907 set_unsafe_math_optimizations_flags): Make static.
4908 * toplev.h (set_fast_math_flags,
4909 set_unsafe_math_optimizations_flags): Remove prototypes.
4910
4911 2010-10-16 Joseph Myers <joseph@codesourcery.com>
4912
4913 * config/arm/arm.c (arm_option_optimization): Set
4914 flag_section_anchors to 1 not 2.
4915 * config/i386/i386.c (ix86_option_override_internal): Check
4916 global_options_set.x_flag_zee and
4917 global_options_set.x_flag_omit_frame_pointer.
4918 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
4919 flag_zee to 2.
4920 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4921 global_options_set.x_flag_omit_frame_pointer.
4922 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
4923 opts->x_flag_section_anchors to 1 not 2.
4924 * config/sh/sh.c (sh_option_optimization): Don't set
4925 flag_schedule_insns to 2.
4926 (sh_option_override): Check
4927 global_options_set.x_flag_schedule_insns.
4928 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
4929
4930 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
4931
4932 * configure.ac: Make sure inhibit_libc remains false for mingw targets
4933 as cross.
4934 * configure: Regenerated.
4935
4936 2010-10-15 Xinliang David Li <davidxl@google.com>
4937
4938 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
4939 function.
4940 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
4941 into a recursive function.
4942
4943 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
4944
4945 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
4946 (*movdfcc_1): ditto.
4947
4948 2010-10-15 Joseph Myers <joseph@codesourcery.com>
4949
4950 * target.def (target_option.init_struct): New hook.
4951 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
4952 * doc/tm.texi: Regenerate.
4953 * hooks.c (hook_void_gcc_optionsp): New.
4954 * hooks.h (hook_void_gcc_optionsp): Declare.
4955 * langhooks-def.h (lhd_init_options_struct): Remove.
4956 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
4957 * langhooks.c (lhd_init_options_struct): Remove.
4958 * opts.c (init_options_struct): Also call
4959 targetm.target_option.init_struct.
4960 * config/i386/i386.c (ix86_option_init_struct,
4961 TARGET_OPTION_INIT_STRUCT): New.
4962 (ix86_option_optimization): Move some settings to
4963 ix86_option_init_struct.
4964 * config/pdp11/pdp11.c (pdp11_option_init_struct,
4965 TARGET_OPTION_INIT_STRUCT): New.
4966 (pdp11_option_optimization): Move some settings to
4967 pdp11_option_init_struct.
4968 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
4969 rs6000_option_init_struct. Use options structure pointer.
4970 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4971 * config/s390/s390.c (s390_option_init_struct,
4972 TARGET_OPTION_INIT_STRUCT): New.
4973 (s390_option_optimization): Don't set
4974 flag_asynchronous_unwind_tables here.
4975 * config/sh/sh.c (sh_option_init_struct,
4976 TARGET_OPTION_INIT_STRUCT): New.
4977 (sh_option_optimization): Don't set flag_finite_math_only here.
4978 * config/spu/spu.c (spu_option_optimization): Replace by
4979 spu_option_optimization. Use options structure pointer.
4980 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4981
4982 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4983
4984 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
4985
4986 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
4987 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
4988 (Standard names): Document fma.
4989
4990 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
4991 __FP_FAST_FMAF, __FP_FAST_FMAL.
4992
4993 * builitns.c (expand_builtin_mathfn_ternary): New function for
4994 expanding ternary math functions, like fma.
4995 (expand_builtin): Call it for the fma builtins.
4996
4997 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
4998 ops at present.
4999
5000 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
5001 vectorizable functions to support vectorizing fma.
5002
5003 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
5004 Handle fma builtins.
5005
5006 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
5007 (UNSPEC_VSX_MSUB): Ditto.
5008 (UNSPEC_VSX_NMADD): Ditto.
5009 (UNSPEC_VSX_NMSUB): Ditto.
5010 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
5011 of UNSPEC. Renumber combiner patterns.
5012 (vsx_fmsub<mode>4*): Ditto.
5013 (vsx_fnmadd<mode>4*): Ditto.
5014 (vsx_fnmsub<mode>4*): Ditto.
5015
5016 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
5017 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
5018 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
5019 (altivec_vmaddfp_1): Ditto.
5020 (altivec_vmaddfp_2): Ditto.
5021 (atlivec_mulv4sf3): Ditto.
5022 (altivec_vnmsubfp): Ditto.
5023 (altivec_vnmsubfp_1): Ditto.
5024 (altivec_vnmsubfp_2): Ditto.
5025 (altivec_vnmsubfp_3): Delete.
5026
5027 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
5028 (fmasf4_fpr): Ditto.
5029 (fmssf4_fpr): Ditto.
5030 (fnmasf4_fpr): Ditto.
5031 (fnmssf4_fpr): Ditto.
5032 (fmadf4): Ditto.
5033 (fmadf4_fpr): Ditto.
5034 (fmsdf4_fpr): Ditto.
5035 (fnmadf4_fpr): Ditto.
5036 (fnmsdf4_fpr): Ditto.
5037
5038 * optabs.h (OTI_fma): Add fma optab.
5039 (fma_optab): Ditto.
5040
5041 * genopinit.c (optabs): Set fma optab.
5042
5043 * rtl.def (FMA): Add FMA rtl.
5044
5045 * tree.h (mode_has_fma): New function to return if MODE supports a
5046 fast multiply and add instruction.
5047 * builtins.c (mode_has_fma): Ditto.
5048
5049 2010-10-15 Jan Hubicka <jh@suse.cz>
5050
5051 * lto-streamer-out.c (write_symbol): Use pointer set of seen
5052 objects instead of bitmap.
5053 (produce_symtab): Likewise; output defined symbols first.
5054
5055 2010-10-15 Jie Zhang <jie@codesourcery.com>
5056
5057 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
5058 Option Summary and Index.
5059
5060 2010-10-15 Richard Guenther <rguenther@suse.de>
5061
5062 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
5063 for automatic variables again.
5064
5065 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5066
5067 * doc/extend.texi (Variable Length): Don't refer to VLAs not
5068 conforming to C99.
5069
5070 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5071
5072 * config/rx/rx.c (rx_option_optimization): Change to
5073 rx_override_options_after_change. Don't change
5074 flag_lto_compression_level. Don't check for changes to whether
5075 FPU instructions can be used. Check and set only
5076 flag_finite_math_only, not other fast-math flags.
5077 (rx_option_override): Call rx_override_options_after_change.
5078 (TARGET_OPTION_OPTIMIZATION): Remove.
5079 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5080
5081 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5082
5083 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
5084 disable section anchors for lang_hooks.name[4] != 'O'.
5085
5086 2010-10-15 Joseph Myers <joseph@codesourcery.com>
5087
5088 * config/frv/frv.c (frv_option_optimization,
5089 TARGET_OPTION_OPTIMIZATION): Remove.
5090 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
5091
5092 2010-10-15 Michael Matz <matz@suse.de>
5093
5094 * cgraphunit.c (clone_of_p): Define unconditionally.
5095
5096 2010-10-15 Richard Guenther <rguenther@suse.de>
5097
5098 PR lto/45957
5099 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
5100
5101 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
5102
5103 * ifcvt.c (find_active_insn_before): New function.
5104 (find_active_insn_after): New function.
5105 (cond_exec_process_if_block): Use new functions to replace
5106 prev_active_insn() and next_active_insn().
5107
5108 2010-10-14 Yao Qi <yao@codesourcery.com>
5109
5110 PR target/45447
5111 * config/arm/arm.c (arm_build_builtin_va_list): Assign
5112 va_list_name to TYPE_STUB_DECL (va_list_type).
5113
5114 2010-10-14 Jan Hubicka <jh@suse.cz>
5115
5116 PR middle-end/45621
5117 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
5118 redirected to clone, be happy.
5119 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
5120 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
5121 former_clone_of unconditionally.
5122
5123 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5124
5125 Merge from FSF apple 'trunk' branch.
5126 2006 Fariborz Jahanian <fjahanian@apple.com>
5127
5128 Radars 4436866, 4505126, 4506903, 4517826
5129 * c-parser.c (c_parser, objc_property_attr_context) New flag.
5130 (c_lex_one_token): Handle property attributes.
5131 (c_parser_external_declaration): Handle @property.
5132 (c_parser_declaration_or_fndef): Warn on invalid attributes before
5133 @alias, @class, @end and @property objc keywords.
5134 (c_parser_objc_methodprotolist): Handle @property.
5135 (c_parser_objc_property_attrlist): New.
5136 (c_parser_objc_at_property): New.
5137 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
5138 (build_modify_expr): Likewise.
5139
5140 2010-10-14 Jakub Jelinek <jakub@redhat.com>
5141
5142 PR tree-optimization/46008
5143 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
5144
5145 2010-10-14 Richard Guenther <rguenther@suse.de>
5146
5147 PR tree-optimization/44913
5148 * tree-data-ref.c (disjoint_objects_p): Remove.
5149 (dr_may_alias_p): Simplify. Only hand the base object to
5150 the alias-oracle.
5151 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5152 some more trees, bail out instead of asserting.
5153 (ptr_derefs_may_alias_p): Likewise. Export.
5154 (refs_may_alias_p_1): Handle STRING_CSTs.
5155 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
5156
5157 2010-10-14 Joseph Myers <joseph@codesourcery.com>
5158
5159 PR c/45969
5160 * c-typeck.c (build_binary_op): Don't try to compute a semantic
5161 type with excess precision for boolean operations.
5162
5163 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
5164 Basile Starynkevitch <basile@starynkevitch.net>
5165
5166 * gengtype.c: Include getopt.h and version.h.
5167
5168 (lang_bitmap, struct outf, outf_p)
5169 (get_output_file_with_visibility, oprintf): Definitions moved to
5170 gengtype.h
5171 (output_files, header_file, srcdir, srcdir_len, this_file)
5172 (do_dump): No more static variables.
5173 (do_debug): New.
5174 (dbgprint_count_type_at): Added new function.
5175 (gengtype_long_options): New.
5176 (print_usage, print_version, parse_program_options): New.
5177 (main): Call parse_program_options, and removed old option
5178 handling code. Added some debug output.
5179
5180 * gengtype.h: Updated copyright year.
5181 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
5182 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
5183 Moved from gengtype.c to here.
5184 (do_debug, read_state_filename, write_state_filename): New variables.
5185 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
5186
5187 * Makefile.in:
5188 (REVISION): Always defined.
5189 (version.o): Removed ifdef REVISION_c.
5190 (s-gtype): Pass arguments to build/gengtype program.
5191 (build/version.o): Added building rule.
5192 (build/gengtype$(build_exeext)): Added build/version.o.
5193
5194 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5195
5196 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
5197 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
5198 __strong macros.
5199
5200 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
5201
5202 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
5203 may_trap_or_fault_p instead of may_trap_p predicate.
5204 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
5205 (substitute_placeholder_in_expr): Likewise.
5206 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
5207 flag on MEM_REF nodes.
5208 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
5209 flags on INDIRECT_REF nodes.
5210
5211 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
5212
5213 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
5214 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
5215 (arm*-*-eabi*) <tm_file>: Likewise.
5216 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
5217 (frv-*-*linux*) <tm_file>: Likewise.
5218 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
5219 and associated helper macros.
5220 * config/frv/frv-abi.h: Delete.
5221
5222 2010-10-14 Richard Guenther <rguenther@suse.de>
5223
5224 PR lto/44561
5225 * tree.def (NULLPTR_TYPE): New tree code.
5226 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
5227 * dwarf2out.c (is_base_type): Likewise.
5228 (gen_type_die_with_usage): Likewise.
5229 * sdbout.c (plain_type_1): Likewise.
5230 * tree.c (build_int_cst_wide): Likewise.
5231 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
5232
5233 2010-10-14 Joseph Myers <joseph@codesourcery.com>
5234
5235 * params.c (params_finished): New.
5236 (add_params): Assert !params_finished.
5237 (finish_params): New.
5238 (set_param_value_internal): Take params and params_set
5239 parameters. Assert params_finished.
5240 (set_param_value, maybe_set_param_value): Take params and
5241 params_set parameters. Update calls to set_param_value_internal.
5242 (set_default_param_value): Assert !params_finished. Don't use
5243 set_param_value_internal.
5244 (default_param_value, init_param_values): New.
5245 * params.h (struct param_info): Change value to default_value.
5246 Remove set.
5247 (set_param_value, maybe_set_param_value): Add params and
5248 params_set parameters.
5249 (PARAM_VALUE): Get parameters from global_options.
5250 (PARAM_SET_P): Remove.
5251 (finish_params, default_param_value, init_param_values): New.
5252 * common.opt (param_values): New Variable.
5253 * config/arm/arm.c (arm_option_override): Pass extra arguments to
5254 maybe_set_param_value.
5255 * config/i386/i386.c (ix86_option_override_internal): Pass extra
5256 arguments to maybe_set_param_value.
5257 * config/picochip/picochip.c (picochip_option_override): Pass
5258 extra arguments to maybe_set_param_value.
5259 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
5260 extra arguments to maybe_set_param_value.
5261 * config/s390/s390.c (s390_option_override): Use
5262 maybe_set_param_value instead of set_param_value. Pass extra
5263 arguments to maybe_set_param_value.
5264 * config/sparc/sparc.c (sparc_option_override): Pass extra
5265 arguments to maybe_set_param_value.
5266 * config/spu/spu.c (spu_option_override): Pass extra arguments to
5267 maybe_set_param_value.
5268 * opts.c (handle_param): Take opts and opts_set parameters.
5269 Update call to set_param_value.
5270 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
5271 initial_loop_invariant_max_bbs_in_loop): Remove.
5272 (init_options_once): Don't set them.
5273 (init_options_struct): Initialize parameters structures.
5274 (default_options_optimization): Use default_param_value when
5275 restoring defaults. Update calls to maybe_set_param_value.
5276 (finish_options): Update calls to maybe_set_param_value.
5277 (common_handle_option): Update calls to handle_param and
5278 set_param_value.
5279 * toplev.c (DEFPARAM): Update definition for changes to param_info.
5280 (general_init): Call finish_params.
5281
5282 2010-10-14 Nick Clifton <nickc@redhat.com>
5283
5284 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
5285 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
5286 (FIRST_PSEUDO_REGISTER): Increase by one.
5287 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
5288 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
5289 (MODES_TIEABLE): Call mn10300_modes_tieable.
5290 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
5291 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
5292 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
5293 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
5294 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
5295 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
5296 (mn10300_cc_status_mdep): Delete.
5297 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
5298 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
5299 the combine-stack-adjust pass.
5300 (print_operand): Use the mode of the comparison operation to
5301 select the comparison suffix.
5302 (notice_update_cc): Delete.
5303 (mn10300_secondary_reload_class): Remove test for stack pointer
5304 based arithmetic.
5305 (output_tst): Rename to mn10300_output_cmp.
5306 (impossible_plus_operand): Move into predicates.md.
5307 (mn10300_legitimize_address): Make static.
5308 (mn10300_legitimate_address_p): Make static. Only allow SI sized
5309 constant pic operands.
5310 (mn10300_legitimate_constant_p): New function.
5311 (mn10300_case_values_threshold): Make static.
5312 (mn10300_hard_regno_mode_ok): New function.
5313 (mn10300_modes_tieable): New function.
5314 (mn10300_select_cc_mode): New function.
5315 * config/mn10300/predicates.md (impossible_plus_operand): Define.
5316 * config/mn10300/mn10300-protos.h: Tidy.
5317 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
5318 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
5319 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
5320 with clobbers or sets of CC_REG.
5321 (CC_REG): Define.
5322 (mov*): Remove use of CLR instruction.
5323 (cbranch_si4_<code>): New pattern/split.
5324 (integer_conditional_branch): New pattern.
5325 (cbranch_sf4_<code>): New pattern/split.
5326 (float_conditional_branch): New pattern.
5327 (casesi): Use addsi3 pattern instead of movsi pattern to add and
5328 move a value at the same time.
5329 (cc0 peepholes): Remove.
5330
5331 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
5332
5333 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
5334 on RTX_FRAME_RELATED_P insns and the insn to which
5335 NOTE_INSN_EPILOGUE_BEG is attached.
5336 * sched-vis.c (print_value): Allow NULL value.
5337
5338 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
5339
5340 PR rtl-optimization/45570
5341 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
5342 assert that we are pipelining outer loops. Allow returning
5343 zero predecessors.
5344
5345 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
5346
5347 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
5348 (tidy_control_flow): Tidy vertical space.
5349 (sel_remove_bb): New variable idx. Use it to remember the basic
5350 block index before deleting the block.
5351 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
5352 (sel_merge_blocks): ... here.
5353 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
5354
5355 2010-10-14 Jakub Jelinek <jakub@redhat.com>
5356
5357 * cse.c (is_dead_reg): Change into inline function that is not
5358 called through for_each_rtx.
5359 (set_live_p): Adjust caller.
5360 (insn_live_p): Don't reset DEBUG_INSNs here.
5361 (struct dead_debug_insn_data): New data.
5362 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
5363 (delete_trivially_dead_insns): If there is just one setter for the
5364 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
5365 and add DEBUG_INSN for it right before the removed setter and
5366 use the DEBUG_EXPR instead of the dead pseudo.
5367
5368 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
5369
5370 * et-forest.c (et_nca): Return NULL immediately when
5371 the dominance forest has disjoint components.
5372
5373 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
5374
5375 * ira.c (setup_class_hard_regs): Fix typo in indexing
5376 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
5377
5378 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
5379
5380 * graph.c (inbb): New variable.
5381 (start_bb): Set inbb to 1 if output is inside of a building block.
5382 (end_bb): Check if output is inside of a building block.
5383
5384 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
5385
5386 PR rtl-optimization/45912
5387 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
5388 regno of registers instead of their index to compute the alignment.
5389
5390 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
5391
5392 * config/i386/i386.c (ix86_build_const_vector): Check vector
5393 mode instead of scalar mode.
5394 (ix86_build_signbit_mask): Likewise.
5395 (ix86_expand_fp_absneg_operator): Updated.
5396 (ix86_expand_copysign): Likewise.
5397 (ix86_expand_int_vcond): Likewise.
5398 (ix86_emit_swdivsf): Likewise.
5399 (ix86_sse_copysign_to_positive): Likewise.
5400 (ix86_expand_sse_fabs): Likewise.
5401 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
5402 * config/i386/sse.md (copysign<mode>3): Likewise.
5403 (sse2_cvtudq2ps): Likewise.
5404 (vec_unpacku_float_hi_v4si): Likewise.
5405 (vec_unpacku_float_lo_v4si): Likewise.
5406
5407 * config/i386/i386.c (ix86_builtins): Add
5408 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
5409 (bdesc_args): Likewise.
5410 (ix86_builtin_vectorized_function): Support
5411 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
5412 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
5413 and IX86_BUILTIN_CVTPS2DQ256.
5414 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
5415
5416 * config/i386/sse.md (STORENT_MODE): New.
5417 (VEC_FLOAT_MODE): Likewise.
5418 (VEC_EXTRACT_MODE): Likewise.
5419 (*avx_cvtdq2pd256_2): Likewise.
5420 (vec_pack_trunc_v4df): Likewise.
5421 (vec_interleave_highv8sf): Likewise.
5422 (vec_interleave_lowv8sf): Likewise.
5423 (storent<mode>): Macroized.
5424 (<code><mode>2: absneg): Likewise.
5425 (copysign<mode>3): Likewise.
5426 (vec_extract<mode>): Likewise.
5427
5428 PR target/44180
5429 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
5430 for V8SFmode.
5431
5432 2010-10-13 Richard Guenther <rguenther@suse.de>
5433 H.J. Lu <hongjiu.lu@intel.com>
5434
5435 * config/i386/sse.md (reduc_splus_v8sf): Add.
5436 (reduc_splus_v4df): Likewise.
5437 (vec_unpacks_hi_v8sf): Likewise.
5438 (vec_unpacks_lo_v8sf): Likewise.
5439 (*avx_cvtps2pd256_2): Likewise.
5440 (vec_unpacks_float_hi_v8si): Likewise.
5441 (vec_unpacks_float_lo_v8si): Likewise.
5442 (vec_interleave_highv4df): Likewise.
5443 (vec_interleave_lowv4df): Likewise.
5444
5445 2010-10-13 Richard Guenther <rguenther@suse.de>
5446
5447 PR objc/45878
5448 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
5449 alone if there are no virtual methods.
5450
5451 2010-10-13 Richard Henderson <rth@redhat.com>
5452
5453 * expr.c (build_personality_function): Take parameter LANG instead
5454 of parameter NAME. Build the name based on the lang prefix and the
5455 unwind method in use.
5456 * tree.c (lhd_gcc_personality): Update call to
5457 build_personality_function.
5458
5459 2010-10-13 Richard Guenther <rguenther@suse.de>
5460
5461 PR objc/45878
5462 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
5463
5464 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
5465
5466 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
5467 Canonicalize input operands of ASM_OPERANDS insns.
5468
5469 2010-10-13 Richard Guenther <rguenther@suse.de>
5470
5471 PR tree-optimization/45788
5472 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
5473 EH update until fixup-cfg.
5474
5475 2010-10-13 Julian Brown <julian@codesourcery.com>
5476
5477 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
5478 from CORE_REGS and GENERAL_REGS classes.
5479 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
5480 final constraint for register preferencing.
5481
5482 2010-10-13 Richard Guenther <rguenther@suse.de>
5483
5484 PR tree-optimization/45970
5485 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
5486 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
5487 (stmt_kills_ref_p): Likewise.
5488 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
5489
5490 2010-10-13 Richard Guenther <rguenther@suse.de>
5491
5492 PR tree-optimization/45982
5493 * tree-ssa-structalias.c (make_constraints_to): New function.
5494 (make_constraint_to): Implement in terms of make_constraints_to.
5495 (find_func_aliases): Properly make return values of pure/const
5496 functions escape if they assign to sth that is not a pointer.
5497
5498 2010-10-13 Richard Guenther <rguenther@suse.de>
5499
5500 PR middle-end/45874
5501 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5502 Fixup the CFG when EH was fixed up.
5503
5504 2010-10-13 Ira Rosen <irar@il.ibm.com>
5505
5506 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
5507 Use operand's type for POINTER_PLUS_EXPR.
5508
5509 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
5510
5511 * c-parser.c (c_parser_for_statement): Initialize incr.
5512
5513 2010-10-12 Xinliang David Li <davidxl@google.com>
5514
5515 PR tree-optimization/45972
5516 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
5517 with too many arguments.
5518
5519 2010-10-12 Jakub Jelinek <jakub@redhat.com>
5520
5521 PR fortran/45636
5522 * tree-ssa-forwprop.c: Include expr.h.
5523 (constant_pointer_difference, simplify_builtin_call): New functions.
5524 (tree_ssa_forward_propagate_single_use_vars): Call
5525 simplify_builtin_call on builtin calls.
5526
5527 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
5528
5529 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
5530 (*adddi3_extend_sp32): Likewise.
5531 (*subdi3_insn_sp32): Likewise.
5532 (*subdi3_extend_sp32): Likewise.
5533 (*negdi2_sp32): Use negative test for consistency.
5534
5535 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
5536
5537 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
5538 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5539 * config/fixed-bit.h: Likewise.
5540 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5541 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5542 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
5543 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
5544 (DF_SIZE): Likewise.
5545 * doc/tm.texi: Regenerate.
5546
5547 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
5548
5549 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
5550 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
5551 (*isel_reversed_unsigned_<mode>): New.
5552 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
5553 as valid comparisons and adjust operands and output appropriately.
5554 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
5555
5556 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
5557
5558 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
5559 DATA_ALIGNMENT and add COND parameter. Update comments above.
5560 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
5561 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
5562
5563 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
5564
5565 PR bootstrap/45958
5566 * exec-tool.in: Support '-plugin' as the second option to the linker.
5567
5568 2010-10-12 Richard Henderson <rth@redhat.com>
5569
5570 PR middle-end/45962
5571 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
5572 (expand_stack_vars): Assert large base allocated when used.
5573
5574 2010-10-12 Richard Guenther <rguenther@suse.de>
5575
5576 * tree-ssa-structalias.c (get_constraint_for_1): Constants
5577 only point to nonlocal, not anything.
5578
5579 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
5580
5581 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
5582 unwind info for exceptions.
5583
5584 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5585
5586 PR testsuite/45851
5587 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
5588 Document optional target selector.
5589
5590 2010-10-12 Joseph Myers <joseph@codesourcery.com>
5591
5592 * flag-types.h: New.
5593 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
5594 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
5595 options.h.
5596 (OPTIONS_H): Define.
5597 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
5598 of options.h.
5599 * configure.ac (tm_include_list): Include options.h not flags.h.
5600 * configure: Regenerate.
5601 * flags.h: Include flag-types.h. Include options.h at top of file
5602 again.
5603 (enum debug_info_type, enum debug_info_level, enum
5604 debug_info_usage, enum symbol_visibility, struct visibility_flags,
5605 enum ira_algorithm, enum ira_region, enum excess_precision, enum
5606 graph_dump_types, enum stack_check_type,
5607 enum warn_strict_overflow_code): Move to flag-types.h
5608 * opth-gen.awk: Include flag-types.h in options.h.
5609
5610 2010-10-12 Jakub Jelinek <jakub@redhat.com>
5611
5612 * expr.c (store_expr): Share code for STRING_CST and
5613 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
5614 check if target is a MEM.
5615
5616 * rtl.h: Include hashtab.h.
5617 (iterative_hash_rtx): New prototype.
5618 * rtl.c (iterative_hash_rtx): New function.
5619 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
5620 (output_loc_list): Return immediately if emitted is set, set it.
5621 (hash_loc_operands, hash_locs, hash_loc_list,
5622 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
5623 optimize_location_lists_1, optimize_location_lists): New function.
5624 (dwarf2out_finish): Call optimize_location_lists.
5625 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
5626
5627 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5628
5629 PR testsuite/45974
5630 Revert:
5631 * Makefile.in ($(lang_checks_parallel))
5632 ($(lang_checks_parallelized)): Use single quotes for
5633 $(RUNTESTFLAGS), to allow passing quoted content.
5634
5635 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5636
5637 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
5638 actual_oldval. Use __builtin_expect.
5639 (SUBWORD_VAL_CAS): Likewise.
5640
5641 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
5642
5643 * recog.c (nonmemory_operand): Call immediate_operand for
5644 CONSTANT_P operands.
5645
5646 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
5647
5648 * config/i386/i386.md (movmem<mode>): Macroize expander from
5649 movmem{si,di} using SWI48 mode iterator.
5650 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
5651 *strmovsi_rex_1 using P mode iterator.
5652 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
5653 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
5654 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
5655 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
5656 (setmem<mode>): Macroize expander from setmem{si,di} using
5657 SWI48 mode iterator.
5658 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
5659 *strsetsi_rex_1 using P mode iterator.
5660 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
5661 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
5662 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
5663 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
5664 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
5665 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
5666 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
5667 mode iterator.
5668 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
5669 *strlenqi_rex_1 using P mode iterator.
5670
5671 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
5672
5673 PR bootstrap/45445
5674 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
5675 static functions.
5676 (mark_ref_live, mark_ref_dead): Use them.
5677 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
5678 Save the original reg, and use the new functions.
5679 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
5680 changed.
5681 (check_and_make_def_conflict): Save the original reg.
5682
5683 2010-10-11 Martin Jambor <mjambor@suse.cz>
5684
5685 PR middle-end/45699
5686 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
5687 thunks.
5688
5689 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5690
5691 * Makefile.in ($(lang_checks_parallel))
5692 ($(lang_checks_parallelized)): Use single quotes for
5693 $(RUNTESTFLAGS), to allow passing quoted content.
5694
5695 PR bootstrap/35855
5696 * opt-functions.awk (BEGIN): New section.
5697 (lower, upper, digit, alnum): New variables.
5698 (static_var, opt_sanitized_name): Use alnum instead of character
5699 classes, for non-C locale.
5700 * optc-gen.awk: Likewise.
5701 * opth-gen.awk: Likewise.
5702
5703 2010-10-11 Anatoly Sokolov <aesok@post.ru>
5704
5705 * target.def (preferred_reload_class): New hook.
5706 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
5707 * doc/tm.texi: Regenerate.
5708 * targhooks.c (default_preferred_reload_class): New function.
5709 * targhooks.h (default_preferred_reload_class): Declare.
5710 * reload.c (find_dummy_reload): Change preferred_class variable type
5711 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
5712 target hook.
5713 (find_reloads): Change goal_alternative array type from int to
5714 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
5715 (push_reload, find_reloads_address_part): Use
5716 TARGET_PREFERRED_RELOAD_CLASS target hook.
5717 * reload1.c (emit_input_reload_insns): Ditto.
5718 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
5719 hook. Change rclass argument and secondary_class variable types from
5720 'enum reg_class' to reg_class_t.
5721
5722 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
5723 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
5724 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
5725 Change regclass argument and result types from enum reg_class to
5726 reg_class_t.
5727 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5728
5729 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
5730
5731 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
5732 in masking operations.
5733 (simplify_const_unary_operation): Likewise.
5734 (simplify_binary_operation_1): Likewise.
5735 (simplify_const_binary_operation): Likewise.
5736 (simplify_const_relational_operation): Likewise.
5737 (simplify_ternary_operation): Likewise.
5738 (simplify_immed_subreg): Likewise.
5739
5740 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5741
5742 PR middle-end/45862
5743 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
5744 (TARGET_SUPPORTS_WEAK): New.
5745 * doc/tm.texi: Regenerate.
5746 * defaults.h (SUPPORTS_WEAK): Update comment.
5747 (TARGET_SUPPORTS_WEAK): New.
5748 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
5749 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
5750 SUPPORTS_WEAK.
5751 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
5752 make_decl_one_only): Likewise.
5753 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
5754 TARGET_SUPPORTS_WEAK.
5755 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
5756 instead of SUPPORTS_WEAK.
5757
5758 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5759
5760 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
5761
5762 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
5763
5764 * vec.h (VEC_qsort): Define.
5765 * dbxout.c (output_used_types): Use it.
5766 * df-scan.c (df_sort_and_compress_refs): Likewise.
5767 (df_sort_and_compress_mws): Likewise.
5768 * genautomata.c (uniq_sort_alt_states): Likewise.
5769 (evaluate_equiv_classes): Likewise.
5770 (output_trans_table): Likewise.
5771 (output_state): Likewise.
5772 * gimplify.c (compare_case_labels): Likewise.
5773 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
5774 * ipa.c (build_cdtor_fns): Likewise.
5775 * lto.c (lto_wpa_write_files): Likewise.
5776 * sel-sched.c (fill_vec_av_set): Likewise.
5777 * tree-predcom.c (determine_roots_comp): Likewise.
5778 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
5779 (splice_param_accesses): Likewise.
5780 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
5781 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5782 (reassociate_bb): Likewise.
5783 * tree-ssa-sccvn.c (sort_scc): Likewise.
5784 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
5785
5786 2010-10-11 Ian Lance Taylor <iant@google.com>
5787
5788 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
5789 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
5790 TREE_THIS_NOTRAP when appropriate.
5791 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
5792 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
5793 newly created MEM_REF.
5794
5795 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
5796
5797 Nathan Froyds patch to hooks FUNCTION_ARG etc.
5798 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
5799 (picochip_incoming_function_arg): Delete.
5800 (picochip_arg_advance): Delete.
5801 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
5802 (FUNCTION_INCOMING_ARG): Delete.
5803 (FUNCTION_ARG_ADVANCE): Delete.
5804 * config/picochip/picochip.c (picochip_function_arg): Take a
5805 const_tree and a bool.
5806 (picochip_incoming_function_arg): Likewise.
5807 (picochip_arg_advance): Likewise.
5808 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5809 (TARGET_FUNCTION_ARG_ADVANCE): Define.
5810
5811 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5812
5813 PR middle-end/45955
5814 * ipa.c (build_cdtor): Delete endless loop.
5815
5816 2010-10-07 Andi Kleen <ak@linux.intel.com>
5817
5818 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
5819 checksum-options.
5820 (checksum-options): Add.
5821 (cc1-dummy): Remove.
5822 (cc1-checksum): Change to run checksum over object files
5823 and options only.
5824 * dummy-checksum.c: Remove.
5825 * genchecksum.c: Update copyright.
5826 (usage): Allow multiple arguments.
5827 (BLOCKSIZE): Add.
5828 (dosum): Change for incremental checksum. Remove C output.
5829 (main): Iterate over all argument files. Add C output.
5830
5831 2010-10-11 Joseph Myers <joseph@codesourcery.com>
5832
5833 * params.c (set_param_value_internal): New.
5834 (set_param_value): Use set_param_value_internal.
5835 (maybe_set_param_value, set_default_param_value): New.
5836 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
5837 (maybe_set_param_value, set_default_param_value): Declare.
5838 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
5839 * config/i386/i386.c (ix86_option_override_internal): Use
5840 maybe_set_param_value.
5841 * config/ia64/ia64.c (ia64_option_default_params,
5842 TARGET_OPTION_DEFAULT_PARAMS): New.
5843 (ia64_option_optimization): Move some code to
5844 ia64_option_default_params.
5845 * config/picochip/picochip.c (picochip_option_override): Use
5846 maybe_set_param_value.
5847 * config/rs6000/rs6000.c (rs6000_option_default_params,
5848 TARGET_OPTION_DEFAULT_PARAMS): New.
5849 (rs6000_option_override_internal): Use maybe_set_param_value.
5850 (rs6000_option_optimization): Move some code to
5851 rs6000_option_default_params.
5852 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
5853 * config/sh/sh.c (sh_option_default_params,
5854 TARGET_OPTION_DEFAULT_PARAMS): New.
5855 (sh_option_optimization): Move some code to sh_option_default_params.
5856 * config/sparc/sparc.c (sparc_option_override): Use
5857 maybe_set_param_value.
5858 * config/spu/spu.c (spu_option_default_params,
5859 TARGET_OPTION_DEFAULT_PARAMS): New.
5860 (spu_option_optimization): Move some code to spu_option_default_params.
5861 (spu_option_override): Use maybe_set_param_value.
5862 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
5863 * doc/tm.texi: Regenerate.
5864 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
5865 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
5866 compiler_params.
5867 (default_options_optimization): Use maybe_set_param_value.
5868 (finish_options): Use maybe_set_param_value.
5869 * target.def (target_option.default_params): New hook.
5870 * toplev.c (general_init): Call targetm.target_option.default_params.
5871
5872 2010-10-11 Ira Rosen <irar@il.ibm.com>
5873
5874 PR tree-optimization/45902
5875 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
5876 vector type for constants, unless it's a pointer.
5877
5878 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5879
5880 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
5881
5882 2010-10-11 Jakub Jelinek <jakub@redhat.com>
5883
5884 PR target/45870
5885 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
5886 (ix86_delegitimize_address): Use it.
5887
5888 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
5889
5890 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
5891
5892 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
5893
5894 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
5895 to cum struct in the call to function_arg_advance.
5896 (alpha_function_arg_advance): Mark named as unused.
5897
5898 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
5899
5900 * config/mips/mips.c (mips_handle_option): Make "value" with
5901 ATTRIBUTE_UNUSED.
5902
5903 2010-10-09 Richard Henderson <rth@redhat.com>
5904
5905 PR rtl-opt/33721
5906 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
5907 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
5908 required_align, tidy the code a bit. Emit split_stack code in the
5909 right place. Mark the return value with the alignment properly.
5910 * expr.h (allocate_dynamic_stack_space): Update decl.
5911 * builtins.c (expand_builtin_apply): Update call to
5912 allocate_dynamic_stack_space.
5913 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
5914 * calls.c (initialize_argument_information): Update call to
5915 allocate_dynamic_stack_space.
5916 (expand_call): Likewise.
5917
5918 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
5919 Don't update_stack_alignment here.
5920 (alloc_stack_frame_space): Make ALIGN unsigned.
5921 (stack_var_cmp): Sort by alignment too.
5922 (partition_stack_vars): Don't merge large and small alignment vars.
5923 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
5924 Take care when BASE is not virtual_stack_vars_rtx.
5925 (expand_stack_vars): Allocate dynamic stack space for large
5926 alignment variables.
5927 (expand_one_stack_var): Update all to expand_one_stack_var_at.
5928 (defer_stack_allocation): True for large alignment vars.
5929 (update_stack_alignment): Merge into ...
5930 (expand_one_var): ... here.
5931 (gimple_expand_cfg): Place code from expand_stack_vars.
5932
5933 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5934
5935 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5936 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
5937 (pdp11_function_arg_advance): New function.
5938 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5939
5940 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5941
5942 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
5943 * libgcc2.c: Likewise.
5944
5945 2010-10-09 Richard Guenther <rguenther@suse.de>
5946
5947 PR lto/45956
5948 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
5949 Properly check if a decl is an automatic var.
5950
5951 2010-10-09 Richard Guenther <rguenther@suse.de>
5952
5953 PR lto/45947
5954 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
5955
5956 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5957
5958 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
5959 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5960 * config/mmix/mmix.c (mmix_function_arg): Rename to...
5961 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
5962 bool arguments.
5963 (mmix_function_arg): New function.
5964 (mmix_function_incoming_arg): New function.
5965 (mmix_function_arg_advance): New function.
5966 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5967 (TARGET_FUNCTION_ARG_ADVANCE): Define.
5968
5969 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5970
5971 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5972 * config/vax/vax.c (vax_function_arg): New function.
5973 (vax_function_arg_advance): New function.
5974 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5975
5976 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5977
5978 * config/pa/pa-protos.h (function_arg): Delete.
5979 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5980 * config/pa/pa.c (function_arg): Rename to...
5981 (pa_function_arg): ...this. Make static. Take a const_tree and
5982 a bool.
5983 (pa_function_arg_advance): New function.
5984 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5985
5986 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5987
5988 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5989 * config/m68k/m68k.c (m68k_function_arg): New function.
5990 (m68k_function_arg_advance): New function.
5991 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5992
5993 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
5994
5995 * config/avr/avr-protos.h (function_arg): Delete.
5996 (function_arg_advance): Delete.
5997 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5998 * config/avr/avr.c (function_arg): Rename to...
5999 (avr_function_arg): ...this. Make static. Take a const_tree and
6000 a bool.
6001 (function_arg_advance): Rename to...
6002 (avr_function_arg_advance): ...this. Make static. Take a
6003 const_tree and a bool.
6004 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6005
6006 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6007
6008 * config/alpha/alpha-protos.h (function_arg): Delete.
6009 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6010 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
6011 * config/alpha/alpha.c (function_arg): Rename to...
6012 (alpha_function_arg): ...this. Make static. Take a const_tree and
6013 a bool. Delete TARGET_ABI_UNICOSMK code.
6014 (alpha_function_arg_advance): New function.
6015 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6016
6017 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6018
6019 * config/mep/mep-protos.h (mep_function_arg): Delete.
6020 (mep_function_arg_advance): Delete.
6021 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6022 * config/mep/mep.c (mep_function_arg): Make static. Take a
6023 const_tree and a bool.
6024 (mep_function_arg_advance): Likewise.
6025 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6026
6027 2010-10-09 Richard Guenther <rguenther@suse.de>
6028
6029 PR tree-optimization/45945
6030 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
6031
6032 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
6033
6034 PR tree-optimization/45612
6035 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
6036 Test LABEL_DECLs as well. Fix formatting issues.
6037 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
6038 whose label is present in NON_SSA_VARS.
6039 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
6040 as well. Fix formatting issues.
6041 (visit_bb): Fix typos and formatting issue.
6042
6043 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
6044
6045 PR tree-optimization/45950
6046 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
6047 before initializing vno->op.
6048
6049 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
6050
6051 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
6052 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
6053
6054 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
6055
6056 PR target/45913
6057 * config/i386/i386.c (ix86_binary_operator_ok): Support
6058 "andhi/andsi/anddi" as a zero-extending move.
6059
6060 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6061
6062 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
6063 into a temporary array.
6064
6065 2010-10-08 Jakub Jelinek <jakub@redhat.com>
6066
6067 PR tree-optimization/45903
6068 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
6069 of {A,L}SHIFTRT of MEM.
6070
6071 2010-10-08 Richard Guenther <rguenther@suse.de>
6072
6073 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6074 Re-construct BLOCK_VARS.
6075 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
6076 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6077 * tree.c (free_lang_data_in_block): Remove.
6078 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
6079 Do not touch the BLOCK tree.
6080 * expr.c (expand_expr_real_1): Allow externals.
6081
6082 2010-10-08 Richard Guenther <rguenther@suse.de>
6083
6084 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
6085 Do not output BLOCK_SUBBLOCKS.
6086 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
6087 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
6088 Re-construct BLOCK_SUBBLOCKS of parent block.
6089 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
6090 for BINFO_BASE_ACCESSES.
6091
6092 2010-10-08 Joseph Myers <joseph@codesourcery.com>
6093
6094 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
6095 (TREE_H): Include $(FLAGS_H) instead of options.h.
6096 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
6097 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6098 * common.opt (flag_complex_method, flag_evaluation_order,
6099 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
6100 Variable declarations.
6101 * configure.ac (tm_include_list): Include flags.h instead of options.h.
6102 * configure: Regenerate.
6103 * flags.h: Condition out contents for target libraries. Include
6104 options.h at end of file.
6105 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
6106 flag_evaluation_order, flag_warn_unused_result): Remove.
6107 * gcc.c (main): Intialize global_options with global_options_init.
6108 * langhooks-def.h (lhd_init_options_struct): Declare.
6109 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
6110 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
6111 * langhooks.c (lhd_init_options_struct): New.
6112 * langhooks.h (struct lang_hooks): Add init_options_struct.
6113 Update comment on init_options.
6114 * optc-gen.awk: Generate initializer for global_options_init, not
6115 global_options.
6116 * opth-gen.awk: Condition out structure declarations for target
6117 libraries. Declare global_options_init.
6118 * opts-common.c: Include flags.h instead of options.h.
6119 * opts.c (flag_warn_unused_result): Remove.
6120 (read_cmdline_options): Take gcc_options parameters. Pass them to
6121 read_cmdline_option.
6122 (initial_lang_mask, initial_min_crossjump_insns,
6123 initial_max_fields_for_field_sensitive,
6124 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
6125 (init_options_once): New. Split out of decode_options.
6126 (init_options_struct): New. Split out of decode_options.
6127 (decode_cmdline_options_to_array_default_mask): New.
6128 (default_options_optimization): New. Split out of decode_options.
6129 (decode_options): Move most code to other functions. Update call
6130 to read_cmdline_options.
6131 (finish_options): New. Split out of decode_options.
6132 * opts.h (decode_options): Add gcc_options parameters.
6133 (init_options_once, init_options_struct,
6134 decode_cmdline_options_to_array_default_mask): New.
6135 * toplev.c (flag_complex_method, flag_ira_algorithm,
6136 flag_ira_region, flag_evaluation_order): Remove.
6137 (general_init): Use global_options_init for initial flag values
6138 for global_dc.
6139 (toplev_main): Call init_options_once, init_options_struct,
6140 lang_hooks.init_options_struct,
6141 decode_cmdline_options_to_array_default_mask and
6142 lang_hooks.init_option before decode_options. Update arguments to
6143 decode_options.
6144 * tree.h: Include flags.h instead of options.h.
6145
6146 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6147
6148 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6149
6150 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6151
6152 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
6153 Delete.
6154 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
6155 (FUNCTION_INCOMING_ARG): Delete.
6156 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
6157 (function_arg_slotno): Likewise. Take bool arguments.
6158 (sparc_arg_partial_bytes): Update call to it.
6159 (function_arg): Rename to...
6160 (sparc_function_arg_1): ...this. Take bool arguments.
6161 (sparc_function_arg, sparc_function_incoming_arg): New functions.
6162 (function_arg_advance): Rename to...
6163 (sparc_function_arg_advance): ...this. Take bool argument.
6164 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
6165 (TARGET_FUNCTION_INCOMING_ARG): Define.
6166
6167 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6168
6169 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
6170 Delete.
6171 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6172 * config/bfin/bfin.c (function_arg_advance): Rename to...
6173 (bfin_function_arg_advance): ...this. Make static. Take const_tree
6174 and bool arguments.
6175 (function_arg): Rename to...
6176 (bfin_function_arg): ...this. Make static. Take const_tree and bool
6177 arguments.
6178 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6179
6180 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6181
6182 * config/score/score-protos.h (score_function_arg): Delete.
6183 (score_function_arg_advance): Delete.
6184 * config/score/score3.h (score3_function_arg_advance): Take a
6185 const_tree and a bool.
6186 (score3_function_arg): Likewise.
6187 * config/score/score7.h (score7_function_arg_advance): Likewise.
6188 (score7_function_arg): Likewise.
6189 * config/score/score3.c (score3_classify_arg): Likewise.
6190 (score3_function_arg_advance, score3_function_arg): Likewise.
6191 * config/score/score7.c (score7_classify_arg): Likewise.
6192 (score7_function_arg_advance, score7_function_arg): Likewise.
6193 * config/score/score.c (score_function_arg_advance): Likewise.
6194 (score_function_arg): Likewise. De-const-ify `cum' argument.
6195 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6196
6197 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6198
6199 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
6200 (s390_function_arg): Delete.
6201 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6202 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
6203 (s390_function_arg_integer): Likewise.
6204 (s390_function_arg_advance): Make static. Take a const_tree and
6205 a bool.
6206 (s390_function_arg): Likewise.
6207 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6208
6209 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6210
6211 * config/spu/spu-protos.h (spu_function_arg): Delete.
6212 * config/spu/spu.h (FUNCTION_ARG): Delete.
6213 (FUNCTION_ARG_ADVANCE): Move code to ...
6214 * config/spu/spu.c (spu_function_arg_advance): New function.
6215 (spu_function_arg): Make static. Take a const_tree and a bool.
6216 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
6217 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6218
6219 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6220
6221 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6222
6223 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6224
6225 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
6226 (init_vn_nary_op_from_op): New function.
6227 (init_vn_nary_op_from_stmt): New function.
6228 (vn_nary_op_lookup_1): New function.
6229 (sizeof_vn_nary_op): New function.
6230 (alloc_vn_nary_op_noinit): New function.
6231 (alloc_vn_nary_op): New function.
6232 (vn_nary_op_insert_into): New function.
6233 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
6234 (vn_nary_op_lookup): Likewise.
6235 (vn_nary_op_lookup_stmt): Likewise.
6236 (vn_nary_op_insert_pieces): Likewise.
6237 (vn_nary_op_insert): Likewise.
6238 (vn_nary_op_insert_stmt): Likewise.
6239 (copy_nary): Likewise.
6240 (set_value_id_for_result): New function.
6241 (set_hashtable_value_ids): Call it.
6242
6243 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6244
6245 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6246 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
6247
6248 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
6249
6250 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
6251 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6252
6253 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
6254
6255 PR debug/45656
6256 * cse.c (cse_extended_basic_block): Preserve cc0 info across
6257 debug isnsn. Skip them when searching for cc0 setter.
6258 (set_live_p): Skip debug insns when searching for cc0 user.
6259
6260 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
6261
6262 PR debug/45673
6263 PR debug/45604
6264 PR debug/45419
6265 PR debug/45408
6266 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
6267 type of MEM_REFs to INTEGER_CSTs.
6268
6269 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
6270
6271 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
6272 m68hc11_print_operand_address.
6273
6274 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
6275
6276 * builtins.c (rewrite_call_expr): Move code to...
6277 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
6278 (rewrite_call_expr_array): New function.
6279 (fold_builtin_sprintf_chk_1): New function.
6280 (fold_builtin_sprintf_chk): Call it.
6281 (gimple_fold_builtin_sprintf_chk): Likewise.
6282 (fold_builtin_snprintf_chk_1): New function.
6283 (fold_builtin_snprintf_chk): Call it.
6284 (gimple_fold_builtin_snprintf_chk): Likewise.
6285 (gimple_rewrite_call_expr): Delete.
6286
6287 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
6288
6289 * config.host: Update copyright year.
6290
6291 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
6292
6293 * config.host (host_lto_plugin_soname): New shell variable.
6294 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
6295 * config.in: Regenerate.
6296 * configure: Regenerate.
6297 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
6298 LTO plugin shared library.
6299
6300 2010-10-07 Richard Henderson <rth@redhat.com>
6301
6302 * target.h (enum unwind_info_type): Move ...
6303 * coretypes.h: ... here.
6304
6305 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
6306
6307 * doc/objc.texi (Fast enumeration protocol): Mention that
6308 'unsigned int' can also be used instead of 'unsigned long' in
6309 countByEnumeratingWithState:objects:count:.
6310
6311 2010-10-07 Martin Jambor <mjambor@suse.cz>
6312
6313 * tree-sra.c (struct access): New field grp_assignment_write.
6314 (dump_access): Dump grp_assignment_write.
6315 (build_accesses_from_assign): Set grp_assignment_write.
6316 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
6317 (mark_read_status): Renamed to mark_rw_status, individual values
6318 renamed too.
6319 (analyze_access_subtree): Changed type of mark_write to
6320 mark_read_status. Fixed propagating of mark_read and
6321 mark_write. Changed benefit estimate. Updated comment.
6322
6323 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
6324
6325 PR Tree-Vect/45847
6326 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
6327 check for vectype_out returned by get_vectype_for_scalar_type().
6328
6329 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
6330
6331 PR target/45805
6332 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
6333 constraint, add register specifier in instruction template.
6334 (neon_vec_pack_trunc_<mode>): Likewise.
6335 (neon_vec_<US>mult_<mode>): Add register specifier to
6336 instruction template.
6337
6338 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
6339
6340 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
6341 cygwin2.o.
6342 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
6343 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
6344 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
6345 (cygwin2.o): Likewise.
6346 * config/i386/cygwin1.c: Delete file.
6347 * config/i386/cygwin2.c: Likewise.
6348 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
6349 make all {%!mno-cygwin} ones unconditional.
6350 (STARTFILE_SPEC): Likewise.
6351 (REAL_LIBGCC_SPEC): Likewise.
6352 (LIB_SPEC): Likewise.
6353 (CXX_WRAP_SPEC): Likewise.
6354 (LINK_SPEC): Likewise.
6355 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
6356 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
6357 (cygwin_gplusplus_include_dir): Delete now-unused array.
6358 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
6359 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
6360 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
6361 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
6362 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
6363 (cygwin_local_include_dir): Delete now-unused array.
6364 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
6365 (cygwin_cross_include_dir): Delete now-unused array.
6366 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
6367 (cygwin_tool_include_dir): Delete now-unused array.
6368 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
6369 (cygwin_standard_include_dir): Delete now-unused array.
6370 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
6371 (GEN_CVT_ARRAY): Delete now-unused macro definition.
6372 (cvt_to_mingw): Delete now-unused array.
6373 (mingw_scan): Remove prototype of deleted function.
6374 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
6375 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
6376 * doc/invoke.texi (-mcygwin): Don't document removed option.
6377 (-mno-cygwin): Likewise.
6378
6379 2010-10-07 Richard Guenther <rguenther@suse.de>
6380
6381 * machmode.h (mode_for_vector): Declare.
6382 * stor-layout.c (mode_for_vector): New function, split out from ...
6383 (layout_type): ... here.
6384 * tree-vectorizer.h (current_vector_size): Declare.
6385 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
6386 mask vector type is available.
6387 (get_vectype_for_scalar_type): Rename to ...
6388 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
6389 size argument.
6390 (get_vectype_for_scalar_type): New wrapper around
6391 get_vectype_for_scalar_type_and_size using current_vector_size.
6392 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
6393 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
6394 of vect_analyze_loop here.
6395 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
6396 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
6397 to autodetect.
6398 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
6399 V8SF to V8SI conversion builtin.
6400
6401 2010-10-07 Richard Guenther <rguenther@suse.de>
6402
6403 * target.def (autovectorize_vector_sizes): New target hook.
6404 * targhooks.c (default_autovectorize_vector_sizes): New function.
6405 * targhooks.h (default_autovectorize_vector_sizes): Declare.
6406 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
6407 Document.
6408 * doc/tm.texi: Update.
6409 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
6410 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6411
6412 2010-10-07 Richard Guenther <rguenther@suse.de>
6413
6414 * target.def (units_per_simd_word): Rename to ...
6415 (preferred_simd_mode): ... this. Return mode instead of size.
6416 * targhooks.c (default_units_per_simd_word): Rename to ...
6417 (default_preferred_simd_mode): ... this. Return word_mode.
6418 * targhooks.h (default_preferred_simd_mode): Declare.
6419 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
6420 (arm_preferred_simd_mode): ... this. Re-implement.
6421 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
6422 (ix86_preferred_simd_mode): ... this. Re-implement.
6423 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
6424 (sparc_preferred_simd_mode): ... this. Re-implement.
6425 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
6426 (mips_preferred_simd_mode): ... this. Re-implement.
6427 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
6428 (rs6000_preferred_simd_mode): ... this. Re-implement.
6429 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
6430 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
6431 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
6432 * doc/tm.texi: Update.
6433
6434 2010-10-07 Richard Guenther <rguenther@suse.de>
6435
6436 PR middle-end/45869
6437 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
6438 of pointers.
6439
6440 2010-10-07 Alan Modra <amodra@gmail.com>
6441
6442 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
6443 rather than sign extension by hand.
6444
6445 2010-10-07 Jan Hubicka <jh@suse.cz>
6446
6447 PR middle-end/45926
6448 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
6449
6450 2010-10-07 Richard Guenther <rguenther@suse.de>
6451
6452 PR bootstrap/45914
6453 * configure.ac: Fix typo.
6454 * configure: Regenerated.
6455
6456 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6457
6458 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
6459 define_builtin_std where it's unnecessary.
6460 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
6461
6462 2010-10-06 Anatoly Sokolov <aesok@post.ru>
6463
6464 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
6465 * doc/tm.texi.in: Regenerate.
6466 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
6467 * targhooks.c (default_class_likely_spilled_p): Don't use the
6468 CLASS_LIKELY_SPILLED_P macro.
6469
6470 * config/arm/arm.md: Update comment.
6471
6472 2010-10-06 Jan Hubicka <jh@suse.cz>
6473
6474 * ipa.c (cgraph_remove_unreachable_nodes): External references can
6475 always be removed.
6476 (cgraph_externally_visible_p): We can not bring local comdats that
6477 are known to linker; fix handling of internal visibility.
6478 (function_and_variable_visibility): Likewise.
6479
6480 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
6481
6482 PR rtl-optimization/45394
6483 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
6484 (struct rtx_subst_pair): Remove AFTER field.
6485 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
6486 (propagate_for_debug): Remove MOVE parameter and adjust.
6487 (try_combine): In the special case where I2 is a PARALLEL, combine only
6488 destinations of SETs and set I2SRC to the I2 source.
6489 Adjust calls to propagate_for_debug throughout.
6490 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
6491 insns.
6492
6493 2010-10-06 Olivier Hainque <hainque@adacore.com>
6494
6495 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
6496 switch on insn codes as sequence of ifs.
6497
6498 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6499
6500 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
6501 be UI_NONE for picochip.
6502 (picochip_option_override): Do not disable exception flags.
6503 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
6504 Declare.
6505
6506 2010-10-06 Richard Guenther <rguenther@suse.de>
6507
6508 * Makefile.in (regmove.o): Depend on $(TARGET_H).
6509
6510 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6511
6512 Implemented fast enumeration for Objective-C.
6513 * c-parser.c (objc_could_be_foreach_context): New.
6514 (c_lex_one_token): Recognize RID_IN keyword in a potential
6515 Objective-C foreach context.
6516 (c_parser_declaration_or_fndef): Added parameter. Accept
6517 Objective-C RID_IN keyword as terminating a declaration; in that
6518 case, return the declaration in the new parameter.
6519 (c_parser_extenral_declaration): Updated calls to
6520 c_parser_declaration_or_fndef.
6521 (c_parser_declaration_or_fndef): Same change.
6522 (c_parser_compound_statement_nostart): Same change.
6523 (c_parser_label): Same change.
6524 (c_parser_objc_methodprotolist): Same change.
6525 (c_parser_omp_for_loop): Same change.
6526 (c_parser_for_statement): Detect and parse Objective-C foreach
6527 statements.
6528 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
6529 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
6530 fast enumeration parsing code to turn off the c99 error but still
6531 perform checks on the loop declarations.
6532 * c-tree.h (check_for_loop_decls): Updated declaration.
6533 * doc/objc.texi: Document fast enumeration.
6534
6535 2010-10-06 Nick Clifton <nickc@redhat.com>
6536
6537 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
6538 (MDR_REGNUM): Define.
6539 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
6540 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
6541 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
6542 (REGISTER_NAMES): Add MDR.
6543 (DWARF2_DEBUGGING_INFO): Define to 1.
6544 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6545 (F): New function. Sets RTX_FRAME_RELATED_P.
6546 (mn10300_gen_multiple_store): Use F.
6547 (expand_prologue): Use F. Use gen_movsf() to push floating
6548 point registers.
6549 (expand_epilogue): Use gen_movsf() to pop floating point registers.
6550 (mn10300_option_override): Disable combine stack adjust pass.
6551
6552 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
6553
6554 PR target/45901
6555 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
6556 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
6557
6558 2010-10-06 Jakub Jelinek <jakub@redhat.com>
6559
6560 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
6561 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
6562 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
6563 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
6564 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
6565 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
6566 BUILT_IN_TOUPPER): Mark as leaf.
6567
6568 PR middle-end/45838
6569 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
6570 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
6571 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
6572 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
6573 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
6574 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
6575 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
6576
6577 2010-10-05 Anatoly Sokolov <aesok@post.ru>
6578
6579 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
6580 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6581 (m68hc11_class_likely_spilled_p): New function.
6582
6583 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
6584
6585 * c-parser.c (c_parser_objc_method_definition): Updated comment.
6586
6587 2010-10-05 Jan Hubicka <jh@suse.cz>
6588
6589 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
6590 Document.
6591 * opts.c (decode_options): Handle lto partitions.
6592 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
6593 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
6594
6595 2010-10-05 Jan Hubicka <jh@suse.cz>
6596
6597 * cgraphunit.c (assemble_function): Output thunks and aliases before
6598 the function itself.
6599
6600 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
6601
6602 * config/picochip/picochip.c (picochip_option_override): Disable
6603 exception flags for picochip.
6604
6605 2010-10-05 Joseph Myers <joseph@codesourcery.com>
6606
6607 * opts-common.c (handle_option, handle_generated_option,
6608 read_cmdline_option, set_option): Add diagnostic_context
6609 parameter. Update calls among these functions.
6610 (set_option): Don't use global_dc.
6611 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
6612 (decode_options): Pass global_dc to enable_warning_as_error.
6613 (common_handle_option): Pass global_dc to enable_warning_as_error.
6614 (enable_warning_as_error): Add diagnostic_context parameter.
6615 Document parameters. Don't use global_dc. Pass
6616 diagnostic_context parameter to handle_generated_option.
6617 * opts.h (set_option, handle_option, handle_generated_option,
6618 read_cmdline_option, enable_warning_as_error): Add
6619 diagnostic_context parameter.
6620 * Makefile.in (lto-opts.o): Update dependencies.
6621 * coretypes.h (struct diagnostic_context, diagnostic_context):
6622 Declare here.
6623 * diagnostic.h (diagnostic_context): Don't declare typedef here.
6624 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
6625 * langhooks-def.h (struct diagnostic_context): Don't declare here.
6626 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
6627 using diagnostic_context typedef.
6628 * langhooks.c (lhd_initialize_diagnostics): Declare using
6629 diagnostic_context typedef.
6630 * langhooks.h (struct diagnostic_context): Don't declare here.
6631 (initialize_diagnostics, print_error_function): Declare using
6632 diagnostic_context typedef.
6633 * lto-opts.c: Include diagnostic.h.
6634 (lto_reissue_options): Pass global_dc to set_option. Pass
6635 DK_UNSPECIFIED not 0.
6636 * plugin.c (plugins_internal_error_function): Declare using
6637 diagnostic_context typedef.
6638 * plugin.h (struct diagnostic_context): Don't declare here.
6639 (plugins_internal_error_function): Declare using
6640 diagnostic_context typedef.
6641
6642 2010-10-05 Olivier Hainque <hainque@adacore.com>
6643 Nicolas Roche <roche@adacore.com>
6644
6645 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
6646 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
6647
6648 2010-10-05 Ira Rosen <irar@il.ibm.com>
6649
6650 PR tree-optimization/45752
6651 * tree-vect-slp.c (vect_get_mask_element): Remove static
6652 variables, make them function arguments.
6653 (vect_transform_slp_perm_load): Pass new arguments to
6654 vect_get_mask_element.
6655
6656 2010-10-05 Richard Guenther <rguenther@suse.de>
6657
6658 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
6659 (gimple_mod_pow2): Likewise.
6660 (gimple_mod_subtract): Likewise.
6661 (gimple_ic): Likewise.
6662 (gimple_stringop_fixed_value): Likewise.
6663 * tree-profile.c (tree_init_edge_profiler): Mark profile
6664 functions nothrow and leaf.
6665 (add_abnormal_goto_call_edges): Remove.
6666 (tree_gen_edge_profiler): Work on SSA form.
6667 (tree_gen_ic_profiler): Likewise. Simplify.
6668 (do_tree_profiling): Update SSA form.
6669 (pass_tree_profile): Remove.
6670 (do_tree_profiling): Likewise.
6671 (gate_tree_profile_ipa): New function.
6672 (pass_ipa_tree_profile): New.
6673 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
6674 state of instrumented functions.
6675 * passes.c (init_optimization_passes): Remove early non-SSA
6676 inlining. Move profiling after early optimizations.
6677 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
6678 (pass_ipa_early_inline): Likewise.
6679 * tree-pass.h (pass_ipa_early_inline): Remove.
6680 (pass_tree_profile): Likewise.
6681 (pass_ipa_tree_profile): Declare.
6682
6683 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6684 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
6685
6686 * config/s390/s390.c (z196_cost): New.
6687 (s390_handle_arch_option): Add -march=z196.
6688 (s390_option_override): Use the new cost function and use the z10
6689 defaults also for z196.
6690 (legitimate_reload_constant_p): Adjust comment.
6691 (legitimate_reload_fp_constant_p): New function.
6692 (s390_preferred_reload_class): Distingiush between FP and Int constants.
6693 (preferred_la_operand_p): Avoid la with index on z196.
6694 (s390_adjust_priority): Trigger also for z196.
6695 (s390_issue_rate): Issue rate for z196 is 3.
6696 (s390_z10_fix_long_loop_prediction): Rename to ...
6697 (s390_fix_long_loop_prediction): ... this.
6698 (s390_reorg): Apply the z10 adjustments also for z196.
6699 (s390_loop_unroll_adjust): Do this also for z196.
6700 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
6701 (enum processor_flags): Add PF_Z196.
6702 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
6703 (TARGET_CPU_Z196, TARGET_Z196): New macros.
6704 * config.gcc: Enable z196 for --with-arch.
6705 * config/s390/2817.md: New file.
6706 * config/s390/2084.md: New type for multiply and add.
6707 * config/s390/2097.md: Likewise.
6708 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
6709 (UNSPECV_ATOMIC_OP): New constants.
6710 (fmadddf, fmaddsf): New values for type attribute.
6711 (z196prop): New insn attribute.
6712 (cpu, cpu_facility): Add z196.
6713 (ATOMIC_Z196): New code iterator.
6714 (noxa): New code attribute.
6715 (gk): New mode attribute.
6716 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
6717 Support load zero for fp constants.
6718 (fixuns_truncdddi2, fixuns_trunctddi2)
6719 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
6720 for z196.
6721 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
6722 (popcounthi2, popcountqi2): New expander.
6723 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
6724 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
6725 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
6726 insn definition.
6727 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
6728 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
6729 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
6730 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
6731 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
6732 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
6733 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
6734 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
6735 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
6736 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
6737 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
6738 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
6739 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
6740 Support new z196 instructions.
6741
6742 2010-10-05 Richard Guenther <rguenther@suse.de>
6743
6744 PR middle-end/45877
6745 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
6746 case where gimplification optimizes away the stmt.
6747
6748 2010-10-04 Jakub Jelinek <jakub@redhat.com>
6749
6750 PR debug/45849
6751 * var-tracking.c (strip_pointer_flags): New function.
6752 (emit_note_insn_var_location): If rtx_equal_p check failed,
6753 retry on locations simplified with simplify_replace_fn_rtx
6754 and strip_pointer_flags as its callback.
6755
6756 2010-10-04 Jan Hubicka <jh@suse.cz>
6757
6758 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
6759 (can_refer_decl_in_current_unit_p): ... this one; reverse return
6760 value; handle comdats too.
6761 (canonicalize_constructor_val): Use it; handle function_decls
6762 correctly.
6763 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6764 * gimple.c (get_base_address): Accept all kinds of decls.
6765
6766 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6767
6768 * flags.h (g_switch_value, g_switch_set): Remove.
6769 * opts.c (g_switch_value, g_switch_set): Remove.
6770 * config/g.opt (G): Add Var(g_switch_value).
6771 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
6772 (alpha_option_override): Check global_options_set.x_g_switch_value
6773 instead of g_switch_set.
6774 (alpha_in_small_data_p): Remove cast in comparison with
6775 g_switch_value.
6776 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6777 g_switch_value to unsigned HOST_WIDE_INT.
6778 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
6779 with g_switch_value.
6780 (frv_handle_option): Don't handle -G here.
6781 (frv_option_override): Check global_options_set.x_g_switch_value
6782 instead of g_switch_set. Don't modify g_switch_set.
6783 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
6784 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
6785 g_switch_value to unsigned HOST_WIDE_INT.
6786 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
6787 (ia64_option_override): Check global_options_set.x_g_switch_value
6788 instead of g_switch_set.
6789 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
6790 Remove.
6791 (lm32_in_small_data_p): Remove cast in comparison with
6792 g_switch_value.
6793 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
6794 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
6795 HOST_WIDE_INT.
6796 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
6797 (m32r_init): Check global_options_set.x_g_switch_value instead of
6798 g_switch_set.
6799 (m32r_in_small_data_p): Remove cast in comparison with
6800 g_switch_value.
6801 (m32r_file_start): Format g_switch_value with %d.
6802 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
6803 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
6804 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
6805 handle -G here.
6806 (microblaze_option_override): Check
6807 global_options_set.x_g_switch_value instead of g_switch_set.
6808 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
6809 (mips_option_override): Check global_options_set.x_g_switch_value
6810 instead of g_switch_set.
6811 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
6812 (rs6000_file_start): Format g_switch_value with %d.
6813 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
6814 comparisons with g_switch_value.
6815 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6816 global_options_set.x_g_switch_value instead of g_switch_set.
6817 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6818 global_options_set.x_g_switch_value instead of g_switch_set.
6819 * config/score/score.c (score_handle_option): Don't handle -G here.
6820 * config/score/score3.c (score3_option_override): Check
6821 global_options_set.x_g_switch_value instead of g_switch_set.
6822 * config/score/score7.c (score7_option_override): Check
6823 global_options_set.x_g_switch_value instead of g_switch_set.
6824
6825 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6826
6827 * common.opt (fira-coalesce): Remove.
6828
6829 * doc/invoke.texi (flag_ira_coalesce): Remove.
6830
6831 * ira-color.c (allocno_coalesced_p): Move before
6832 copy_freq_compare_func.
6833 processed_coalesced_allocno_bitmap): Ditto.
6834 (update_conflict_hard_regno_costs): Don't use
6835 ALLOCNO_FIRST_COALESCED_ALLOCNO.
6836 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
6837 (assign_hard_reg): Assume no coalesced allocnos.
6838 (get_coalesced_allocnos_attributes): Remove.
6839 (bucket_allocno_compare_func): Assume no coalesced allocnos.
6840 (push_allocno_to_stack): Ditto.
6841 (remove_allocno_from_bucket_and_push): Use
6842 ira_print_expanded_allocno instead of print_coalesced_allocno.
6843 (push_allocnos_to_stack): Assume uncoalesced allocnos.
6844 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
6845 all_conflicting_hard_regs.
6846 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
6847 (setup_allocno_left_conflicts_size): Ditto.
6848 (put_allocno_into_bucket): Ditto.
6849 (copy_freq_compare_func): Remove.
6850 (copy_freq_compare_func, merge_allocnos): Move before
6851 coalesced_pseudo_reg_freq_compare.
6852 coalesced_allocno_conflict_p): Ditto.
6853 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
6854 parameter. Assume it true.
6855 (color_allocnos): Assume uncoalesced allocnos. Use
6856 ira_print_expanded_allocno instead of print_coalesced_allocno.
6857 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
6858 parameter.
6859
6860 * ira.c: Remove comment about coalescing.
6861
6862 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6863
6864 * config/mips/mips.h (target_flags_explicit): Declare for
6865 GENERATOR_FILE.
6866
6867 2010-10-04 Andi Kleen <ak@linux.intel.com>
6868
6869 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
6870 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
6871
6872 2010-10-04 Matthias Klose <doko@ubuntu.com>
6873
6874 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
6875 multilib osdirname if it exists.
6876 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
6877
6878 2010-10-04 Jakub Jelinek <jakub@redhat.com>
6879
6880 PR middle-end/45876
6881 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
6882 arg0's type or its unsigned counterpart as utype. Convert
6883 arg1 to utype unconditionally.
6884
6885 2010-10-04 Julian Brown <julian@codesourcery.com>
6886
6887 * expr.c (expand_assignment): Add assertion to prevent emitting
6888 null rtx for movmisalign pattern.
6889 (expand_expr_real_1): Likewise.
6890 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
6891 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
6892 (arm_vector_alignment_reachable): New.
6893 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
6894 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
6895 (arm_print_operand): Include alignment qualifier in %A.
6896 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
6897 (movmisalign<mode>): New expander.
6898 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
6899 insn patterns.
6900
6901 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6902
6903 * optc-gen.awk: Define global_options_set. Don't define
6904 target_flags_explicit.
6905 * opth-gen.awk: Declare global_options_set. Define
6906 target_flags_explicit as macro.
6907 * opts-common.c (handle_option): Take opts_set and generated_p
6908 parameters.
6909 (handle_generated_option, read_cmdline_option, set_option): Take
6910 opts_set parameter.
6911 (set_option): Use opts_set instead of hardcoding target_flags and
6912 target_flags_explicit.
6913 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
6914 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
6915 flag_value_profile_transformations_set, flag_peel_loops_set,
6916 flag_branch_probabilities_set, flag_inline_functions_set,
6917 flag_ipa_cp_set, flag_ipa_cp_clone_set,
6918 flag_predictive_commoning_set, flag_unswitch_loops_set,
6919 flag_gcse_after_reload_set): Remove.
6920 (common_handle_option, lang_handle_option, target_handle_option):
6921 Take opts_set parameter. Assert that it is &global_options_set.
6922 (common_handle_option): Don't set _set variables. Check opts_set
6923 instead of such variables.
6924 (enable_warning_as_error): Pass &global_options_set to
6925 handle_generated_option.
6926 * opts.h (cl_option_handler_func.handler, set_option,
6927 handle_option, handle_generated_option, read_cmdline_option): Add
6928 opts_set parameters.
6929 (handle_option): Add generated_p parameter.
6930 * config/i386/i386.c (ix86_function_specific_save,
6931 ix86_function_specific_restore): Updat for renaming of
6932 target_flags_explicit field.
6933 * config/i386/i386.opt (target_flags_explicit): Rename to
6934 ix86_target_flags_explicit.
6935 * config/ia64/ia64.c (ia64_override_options_after_change): Check
6936 global_options_set.x_flag_selective_scheduling and
6937 global_options_set.x_flag_selective_scheduling2, not
6938 sel_sched_switch_set.
6939 * flags.h (sel_sched_switch_set,
6940 flag_speculative_prefetching_set): Remove.
6941 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
6942 that it is &global_options_set.
6943 (process_command): Pass &global_options_set to read_cmdline_option.
6944 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
6945 set_option.
6946 * toplev.c (target_flags_explicit): Remove.
6947
6948 2010-10-04 Jan Hubicka <jh@suse.cz>
6949
6950 PR middle-end/45871
6951 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
6952 use get_ref_base_and_offset to handle references.
6953 (fold_const_aggregate_ref): Update.
6954
6955 2010-10-04 Martin Jambor <mjambor@suse.cz>
6956
6957 PR tree-optimization/45572
6958 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
6959 ipa_check_create_node_params.
6960 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
6961
6962 2010-10-04 Yao Qi <yao@codesourcery.com>
6963
6964 * doc/passes.texi: Clean up.
6965
6966 2010-10-03 Ian Lance Taylor <iant@google.com>
6967
6968 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
6969 referring to a field using a typedef name.
6970 (find_anonymous_field_with_type): New static function.
6971 (convert_to_anonymous_field): New static function.
6972 (convert_for_assignment): If -fplan9-extensions, permit converting
6973 pointer to struct to pointer to anonymous field.
6974 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
6975 (is_duplicate_field): New static function.
6976 (detect_field_duplicates_hash): If -fplan9-extensions, check for
6977 typedef names duplicating field names.
6978 (detect_field_duplicates): Likewise.
6979 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
6980 (C Dialect Options): Document -fplan9-extensions.
6981 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
6982
6983 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
6984
6985 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
6986 revision 164914.
6987 (vect_create_data_ref_ptr): Likewise.
6988 * tree-vect-stmts.c (vectorizable_store): Likewise.
6989 (perm_mask_for_reverse): Likewise.
6990 (reverse_vec_elements): Likewise.
6991 (vectorizable_load): Likewise.
6992
6993 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6994
6995 * cppbuiltin.c: New file.
6996 * cppbuiltin.h: New file.
6997 * Makefile.in: Take into account cppbuiltin.{h,c}.
6998
6999 2010-10-03 Andi Kleen <ak@linux.intel.com>
7000
7001 * lto-cgraph.c (input_cgraph): Check for missing sections.
7002
7003 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
7004
7005 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
7006 to nonimmediate_operand. Force operand 2 to register when allowed.
7007 (*<shiftrt_insn><mode>3_mask): Ditto.
7008 (*<rotate_insn><mode>3_mask): Ditto.
7009
7010 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
7011
7012 PR tree-optimization/45720
7013 PR tree-optimization/45764
7014 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7015 Don't accept backwards consecutive accesses.
7016 (vect_create_data_ref_ptr): Disallow negative steps.
7017
7018 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
7019 (perm_mask_for_reverse): Removed.
7020 (reverse_vec_elements): Likewise.
7021 (vectorizable_load): Don't handle negative steps.
7022
7023 2010-10-02 Jan Hubicka <jh@suse.cz>
7024
7025 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
7026 call destination is known.
7027
7028 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7029
7030 PR target/45820
7031 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
7032 earlier.
7033
7034 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7035
7036 * doc/install.texi (Configuration): Document build_configargs,
7037 host_configargs, target_configargs.
7038
7039 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
7040
7041 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
7042 (*<shiftrt_insn><mode>3_mask): Ditto.
7043 (*<rotate_insn><mode>3_mask): Ditto.
7044
7045 2010-10-01 Steve Ellcey <sje@cup.hp.com>
7046
7047 PR tree-optimization/44716
7048 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7049 (HOT_TEXT_SECTION_NAME): Define.
7050
7051 2010-10-01 Nick Clifton <nickc@redhat.com>
7052
7053 * common.opt: Add -fcombine-stack-adjustments.
7054 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
7055 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
7056 flag_combine_stack_adjustments.
7057 * doc/invoke.texi: Document the new option.
7058
7059 2010-10-01 Richard Guenther <rguenther@suse.de>
7060
7061 PR tree-optimization/45854
7062 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
7063
7064 2010-10-01 Anthony Green <green@moxielogic.com>
7065
7066 * config.gcc: Fix moxie-*-rtems* configuration.
7067
7068 2010-10-01 Richard Guenther <rguenther@suse.de>
7069
7070 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
7071 (gen_decl_die): Likewise.
7072
7073 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7074
7075 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
7076 to the function code for SPU MD builtins.
7077 (spu_expand_builtin): Update.
7078 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
7079
7080 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7081
7082 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
7083 sjlj_except_unwind_info.
7084
7085 2010-10-01 Tristan Gingold <gingold@adacore.com>
7086
7087 * configure.ac: Define the nop insn for avr*-*-*
7088 * configure: Regenerate.
7089
7090 2010-10-01 Alan Modra <amodra@gmail.com>
7091
7092 PR target/45807
7093 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
7094 extend toc_restore_insn.
7095
7096 2010-09-30 Richard Guenther <rguenther@suse.de>
7097
7098 PR tree-optimization/43959
7099 * function.c (gimplify_parameters): Use create_tmp_reg instead of
7100 create_tmp_var.
7101
7102 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
7103
7104 * config/sh/sh.c (sh_expand_prologue): Set
7105 current_function_static_stack_size.
7106
7107 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7108
7109 * configure.ac: Check for Solaris 8 ld with .hidden support.
7110 * configure: Regenerate.
7111
7112 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7113
7114 PR middle-end/45758
7115 * graphite.c (graphite_initialize): Call scev_reset.
7116
7117 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7118
7119 * sese.h (scev_analyzable_p): Return false for real or floating
7120 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
7121
7122 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7123
7124 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
7125 and ps.
7126 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
7127 domain.
7128 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
7129 Do not allocate ub_expr, it is passed in initialized.
7130
7131 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7132
7133 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
7134 (build_cloog_prog): Dump CLooG input file when
7135 flag_graphite_dump_cloog is set. This is disabled on trunk.
7136 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
7137
7138 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7139
7140 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
7141 verify_dominators for CDI_POST_DOMINATORS.
7142 * sese.h: Remove comment about CDI_POST_DOMINATORS.
7143 (recompute_all_dominators): Remove call to free_dominance_info
7144 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
7145 for CDI_POST_DOMINATORS.
7146
7147 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7148
7149 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
7150 over pbb_dim_iter_domain.
7151
7152 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7153
7154 * graphite-flattening.c: Fix comments.
7155
7156 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7157
7158 * Makefile.in (OBJS-common): Add graphite-flattening.o.
7159 (graphite-flattening.o): New rule.
7160 * common.opt (floop-flatten): New flag.
7161 * doc/invoke.texi (-floop-flatten): Documented.
7162 * graphite-flattening.c: New.
7163 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
7164 * graphite-poly.h (flatten_all_loops): Declared.
7165 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
7166 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
7167 is set, also set flag_graphite.
7168
7169 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7170
7171 * graphite-poly.c (cloog_checksum): New.
7172 * graphite-poly.h (cloog_checksum): Declared.
7173
7174 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7175
7176 * graphite-poly.c (pbb_number_of_iterations): Removed.
7177 (pbb_number_of_iterations_at_time): Correctly compute the number
7178 of iterations in the transformed loop.
7179 * graphite-poly.h (pbb_number_of_iterations): Removed.
7180
7181 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7182
7183 * graphite-poly.h (lst_update_scattering_seq): Removed.
7184 (lst_update_scattering): Correctly handle outermost loop dewey
7185 renumbering.
7186
7187 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7188
7189 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
7190 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
7191 * graphite-poly.h (lst_niter_for_loop): New.
7192
7193 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7194
7195 * graphite-poly.c (apply_poly_transforms): Do not abort when the
7196 transform read from disk is not legal. Call fatal_error instead.
7197
7198 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7199
7200 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
7201 (print_scop_header): Removed. Inlined in the only call place...
7202 (print_scop): ... here.
7203
7204 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7205
7206 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
7207
7208 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7209
7210 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
7211
7212 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7213
7214 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
7215 (dot_deps_stmt): Same.
7216 * graphite-poly.c (dot_lst): Same.
7217
7218 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7219
7220 * graphite-blocking.c (scop_do_strip_mine): Do not call
7221 graphite_legal_transform.
7222 (scop_do_block): Same.
7223
7224 2010-09-30 Vladimir Kargov <kargov@gmail.com>
7225
7226 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
7227 description.
7228
7229 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7230
7231 * tree-scalar-evolution.c (instantiate_array_ref): New.
7232 (instantiate_scev_r): Also handle ARRAY_REFs.
7233
7234 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7235
7236 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7237 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
7238 RESULT_DECL, and FIELD_DECL. Return false for an
7239 SSA_NAME_IS_DEFAULT_DEF.
7240 (compute_scalar_evolution_in_loop): Do not further analyze the
7241 scalar evolution when no_evolution_in_loop_p returns true.
7242
7243 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7244
7245 * tree-chrec.h (evolution_function_is_affine_p): Do not check
7246 whether CHREC_LEFT is invariant. A function is affine when
7247 CHREC_RIGHT is invariant.
7248
7249 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7250
7251 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
7252 is_gimple_reg.
7253 (rewrite_degenerate_phi): Same.
7254 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
7255
7256 2010-09-30 Vladimir Kargov <kargov@gmail.com>
7257
7258 * graphite-scop-detection.c (graphite_can_represent_scev,
7259 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
7260 graphite_can_represent_loop): Remove outermost_loop.
7261
7262 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7263
7264 PR middle-end/45229
7265 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
7266 handle GIMPLE_CALLs with no LHS.
7267
7268 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
7269
7270 * graphite-poly.c (init_graphite_out_file): New.
7271 (init_graphite_in_file): New.
7272 (apply_poly_transforms): Updated to enable reading and writing of
7273 multiple scop files.
7274
7275 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
7276
7277 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
7278 redundant checks.
7279
7280 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7281
7282 * graphite-clast-to-gimple.c (precision_for_value): Adjust
7283 computation of precision by 1.
7284
7285 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
7286
7287 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
7288 (openscop_read_polyhedron_matrix): New.
7289 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
7290 (openscop_read_N_int): Same.
7291 * graphite-poly.c (openscop_read_N_int): New.
7292 (openscop_read_one_int): New.
7293 (openscop_read_N_string): New.
7294 (openscop_read_one_string): New.
7295 (openscop_read_powerset_matrix): New.
7296 (graphite_read_transforms): Remove.
7297 (graphite_read_scatt): New.
7298 (graphite_read_scop_file): New.
7299 (apply_poly_transforms): Updated to call graphite_read_scop_file.
7300
7301 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7302
7303 * graphite-poly.c: Change include order.
7304
7305 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7306
7307 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
7308 (cloog_matrix_nrows): New.
7309
7310 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
7311
7312 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
7313 from matrix lines.
7314 * graphite-poly.c (openscop_print_scattering_function_1): Same.
7315 (print_scattering_function_1): Same.
7316 (openscop_print_pbb_domain): Same.
7317 (openscop_print_scop_context): Same.
7318 (print_scop_context): Same.
7319
7320 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
7321
7322 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
7323 (openscop_print_pdr_polyhedron): Print pph.
7324
7325 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7326
7327 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
7328 priority signed types.
7329
7330 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7331
7332 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
7333 the call to lang_hooks.types.type_for_size. Call
7334 build_nonstandard_integer_type.
7335
7336 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
7337
7338 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
7339 (openscop_print_polyhedron_matrix): New.
7340 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
7341 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
7342 (openscop_print_pdr_powerset): New.
7343 (openscop_print_powerset_matrix): New.
7344 (openscop_print_scattering_function_1): New.
7345 (print_scattering_function): Add support for scattering names and
7346 OpenScop format.
7347 (graphite_write_transforms): Remove.
7348 (print_pdr_access_layout): Updated to support OpenScop format.
7349 (print_pdr): Same.
7350 (openscop_print_pbb_domain): New.
7351 (print_pbb_body): Added a parameter to allow indicating that pbb_body
7352 is not provided.
7353 (print_pbb): Updated to call the new print_pbb_body.
7354 (openscop_print_scop_context): New.
7355 (print_scop_header): New.
7356 (print_scop): Updated to call print_scop_header.
7357 * graphite-poly.h: Document OpenScop format.
7358
7359 2010-09-30 Anatoly Sokolov <aesok@post.ru>
7360
7361 * config/cris/m32c.c (cris_memory_move_cost): New.
7362 (cris_register_move_cost): Make static. Change arguments type from
7363 enum reg_class to reg_class_t.
7364 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7365 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7366 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
7367
7368 2010-09-30 Jakub Jelinek <jakub@redhat.com>
7369
7370 PR target/45843
7371 * config/i386/i386.c (ix86_gimplify_va_arg): Use
7372 INTVAL (XEXP (slot, 1)) as prev_size.
7373
7374 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7375
7376 PR target/45837
7377 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
7378 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
7379 defined.
7380 * config/rs6000/option-defaults.h (toplevel): Change #if
7381 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
7382 global option changes.
7383
7384 2010-09-30 Jakub Jelinek <jakub@redhat.com>
7385
7386 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
7387
7388 PR tree-optimization/31261
7389 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
7390 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
7391
7392 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7393
7394 PR bootstrap/45796
7395 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
7396 special-casing for generators and turn into ...
7397 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
7398 rule, for better error messages in case of toplevel dependency errors.
7399 (genprog): Add hooks, rename to ...
7400 (genprogerr): ... this, and let genprog also contain check,
7401 checksum, condmd.
7402 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
7403 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
7404 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
7405
7406 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
7407 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7408
7409 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
7410 for GMP, MPFR and MPC.
7411
7412 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7413
7414 * config/sparc/sparc.opt (mimpure-text): Move ...
7415 * config/sol2.opt: ... here. Correct description.
7416 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
7417 * doc/invoke.texi (Option Summary, SPARC Options): Move
7418 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
7419 (Option Summary, Solaris 2 Options): ... here.
7420 (Submodel Options, Solaris 2 Options): New menu entry.
7421 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
7422 (Solaris 2 Options): ... here.
7423
7424 2010-09-30 Michael Eager <eager@eagercon.com>
7425
7426 * extend.texi (interrupt_handler): Add MicroBlaze to list.
7427 (save_volatiles): Describe option for MicroBlaze.
7428 * invoke.texi: Add MicroBlaze Options.
7429 * contrib.texi: Add acknowledgment.
7430 * md.texi: Add MicroBlaze d and z constraints.
7431 * install.texi: Add microblaze-*-elf.
7432 * configure.ac: Add microblaze-*-* to target list.
7433 * configure: Regenerate.
7434 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
7435 * config/microblaze/microblaze-protos.h: New.
7436 * config/microblaze/crti.s: New.
7437 * config/microblaze/predicates.md: New.
7438 * config/microblaze/linux.h: New.
7439 * config/microblaze/microblaze.md: New.
7440 * config/microblaze/constraints.md: New.
7441 * config/microblaze/crtn.s: New.
7442 * config/microblaze/microblaze.opt: New.
7443 * config/microblaze/microblaze-c.c: New.
7444 * config/microblaze/t-microblaze: New.
7445 * config/microblaze/microblaze.c: New.
7446 * config/microblaze/microblaze.h: New.
7447
7448 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
7449
7450 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
7451 parse @optional/@required and set the flags as appropriate.
7452
7453 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
7454
7455 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
7456
7457 2010-09-30 Joseph Myers <joseph@codesourcery.com>
7458
7459 * opt-functions.awk (static_var): Update comment.
7460 (var_ref): Return offsetof expression or -1, not variable address.
7461 * optc-gen.awk: Generate structure field initializers instead of
7462 static variables. Expect -1 for missing variables instead of null
7463 pointer. Add gcc_options parameters to generated functions.
7464 * opth-gen.awk: Generate structure fields for static variables.
7465 Add gcc_options parameters to generated functions.
7466 * common.opt (optimize, optimize_size): Add variables.
7467 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
7468 &global_options to cl_target_option_restore.
7469 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
7470 &global_options to cl_optimization_restore, cl_target_option_save
7471 and cl_target_option_restore.
7472 (ix86_set_current_function): Pass &global_options to
7473 cl_target_option_restore.
7474 * config/pdp11/pdp11.h (optimize): Remove.
7475 * config/rs6000/rs6000.h (optimize): Remove.
7476 * config/sh/sh.h (optimize): Remove.
7477 * config/xtensa/xtensa.h (optimize): Remove.
7478 * coretypes.h (struct gcc_options): Declare.
7479 * diagnostic.c (diagnostic_initialize): Initialize
7480 context->option_state.
7481 (diagnostic_report_diagnostic): Pass option_state to
7482 option_enabled hook.
7483 * diagnostic.h (diagnostic_context.option_enabled): Add void *
7484 parameter.
7485 (diagnostic_context.option_state): New field.
7486 * final.c (final_start_function, final, final_scan_insn): Rename
7487 optimize parameter to optimize_p.
7488 * flags.h (optimize, optimize_size): Remove.
7489 * function.c (invoke_set_current_function_hook): Pass
7490 &global_options to cl_optimization_restore.
7491 * gcc.c (driver_handle_option): Take gcc_options parameter.
7492 Assert that it is &global_options.
7493 (process_command): Pass &global_options to read_cmdline_option.
7494 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
7495 option_enabled.
7496 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
7497 &global_options to set_option.
7498 * opts-common.c (handle_option, handle_generated_option,
7499 read_cmdline_option, set_option): Take explicit gcc_options
7500 parameters. Use option_flag_var.
7501 (option_flag_var): New.
7502 * opts.c (common_handle_option, lang_handle_option,
7503 target_handle_option): Take gcc_options parameter. Assert that it
7504 is &global_options.
7505 (read_cmdline_options): Pass &global_options to read_cmdline_option.
7506 (print_filtered_help): Use option_flag_var. Pass &global_options
7507 to option_enabled.
7508 (common_handle_option): Use option_flag_var.
7509 (option_enabled): Take opts parameter. Use option_flag_var.
7510 (get_option_state): Take gcc_options parameter. Use
7511 option_flag_var. Pass gcc_options parameter to option_enabled.
7512 (enable_warning_as_error): Pass &global_options to
7513 handle_generated_option.
7514 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
7515 (cl_option_handler_func.handler): Take gcc_options parameter.
7516 (option_enabled, get_option_state, set_option, handle_option,
7517 handle_generated_option, read_cmdline_option): Take gcc_options
7518 parameters.
7519 * toplev.c (optimize, optimize_size): Remove.
7520 (print_switch_values): Pass &global_options to option_enabled.
7521 (option_affects_pch_p): Use option_flag_var. Pass &global_options
7522 to get_option_state.
7523 (general_init): Initialize global_dc->option_state.
7524 * tree.c (build_optimization_node): Pass &global_options to
7525 cl_optimization_save.
7526 (build_target_option_node): Pass &global_options to
7527 cl_target_option_save.
7528
7529 2010-09-30 Martin Jambor <mjambor@suse.cz>
7530
7531 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
7532 zero sized bit-fields.
7533
7534 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
7535
7536 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
7537 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
7538 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
7539 (c_parser_objc_class_declaration): Same change.
7540 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
7541 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7542 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
7543 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
7544 and RID_AT_PUBLIC instead of RID_PUBLIC.
7545 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
7546 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7547
7548 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
7549
7550 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
7551 Add links to current providers of packages for Solaris and IRIX.
7552
7553 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7554
7555 Merge from 'apple/trunk' branch on FSF servers.
7556 * c-parser.c: Applied change originally in c-parse.in.
7557
7558 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
7559
7560 Radar 4281748
7561 * c-decl.c (start_decl): Check for redeclaration of class name.
7562 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
7563
7564 2010-09-29 Steve Ellcey <sje@cup.hp.com>
7565
7566 * config/ia64/ia64.c (ia64_builtin_decl): New.
7567 (TARGET_BUILTIN_DECL): Define.
7568 (ia64_builtins): New.
7569 (ia64_init_builtins): Save decls in ia64_builtins.
7570
7571 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
7572
7573 PR target/40457
7574 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
7575 (move2add_use_add3_insn): Likewise.
7576 (reload_cse_move2add): Likewise.
7577 * rtlanal.c (get_full_rtx_cost): New function.
7578 * rtl.h (struct full_rtx_costs): New.
7579 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
7580 costs_add_n_insns): New inline functions.
7581 (get_full_rtx_cost): Declare.
7582
7583 PR c/45054
7584 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
7585 invariants. Check for reg_equiv_invariant.
7586 (reload): Assert that spilled_pseudos is empty when returning.
7587
7588 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
7589
7590 * config/i386/mingw32.h (TARGET_64BIT): replaced by
7591 TARGET_64BIT_DEFAULT in #if check.
7592
7593 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
7594
7595 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
7596
7597 2010-09-29 Mike Stump <mikestump@comcast.net>
7598
7599 * config/darwin.h (flag_mkernel): Remove.
7600 (flag_apple_kext): Likewise.
7601
7602 2010-09-29 Joseph Myers <joseph@codesourcery.com>
7603 Jack Howarth <howarth@bromo.med.uc.edu>
7604
7605 * config/darwin.opt (undefined): Add.
7606
7607 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
7608
7609 PR testsuite/45664
7610 * configure.ac: Add --enable-indirect-function option.
7611 * config.gcc: Add default_gnu_indirect_function.
7612 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
7613 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
7614 * varasm.c (do_assemble_alias): Adjust for macro name change.
7615 * configure: Rebuilt.
7616 * doc/install.texi: Document --enable-indirect-function.
7617
7618 2010-09-29 Joseph Myers <joseph@codesourcery.com>
7619
7620 * doc/options.texi (Variable, Var, Init): Update documentation
7621 without reference to VarExists.
7622 (VarExists): Remove.
7623 * common.opt, config/i386/i386.opt, config/linux.opt,
7624 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
7625 Don't use VarExists.
7626
7627 2010-09-29 Joseph Myers <joseph@codesourcery.com>
7628
7629 * optc-gen.awk: Generate global_options initializer instead of
7630 individual variables. Add x_ prefix to names of structure members.
7631 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
7632 names of structure members.
7633 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7634 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
7635 * doc/tm.texi: Regenerate.
7636 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7637 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7638 * c-parser.c (disable_extension_diagnostics,
7639 restore_extension_diagnostics): Update names of cpp_options members.
7640 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7641 * common.opt (fcompare-debug-second): Don't use Var.
7642 * config/alpha/alpha.h (target_flags): Remove.
7643 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7644 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7645 * config/bfin/bfin.h (target_flags): Remove.
7646 * config/cris/cris.h (target_flags): Remove.
7647 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
7648 cl_target_option members.
7649 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
7650 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
7651 ix86_can_inline_p): Update names of cl_target_option members.
7652 * config/i386/i386.h (ix86_isa_flags): Remove.
7653 * config/lm32/lm32.h (target_flags): Remove.
7654 * config/mcore/mcore.h (mcore_stack_increment): Remove.
7655 * config/mcore/mcore.md (addsi3): Remove extern declaration of
7656 flag_omit_frame_pointer.
7657 * config/mep/mep.h (target_flags): Remove.
7658 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7659 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7660 * config/mmix/mmix.h (target_flags): Remove.
7661 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
7662 flag_expensive_optimizations): Remove.
7663 * config/s390/s390.h (flag_pic): Remove.
7664 * config/score/score-conv.h (target_flags): Remove.
7665 * config/sh/sh.h (sh_fixed_range_str): Remove.
7666 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
7667 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7668 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7669 * diagnostic.c (diagnostic_initialize): Update names of
7670 diagnostic_context members.
7671 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
7672 warn_system_headers.
7673 (diagnostic_report_warnings_p): Update for new names.
7674 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7675 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
7676 HARD_FRAME_POINTER_IS_ARG_POINTER.
7677 * flags.h (flag_compare_debug): Declare.
7678 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7679 * opts.c (flag_compare_debug): Define.
7680 (common_handle_option): Update names of diagnostic_context
7681 members. Handle -fcompare-debug-second.
7682 (fast_math_flags_struct_set_p): Update names of cl_optimization
7683 members.
7684 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7685 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7686 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7687 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7688 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7689 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7690 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
7691 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7692 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7693
7694 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
7695
7696 * config/picochip/picochip.c (picochip_output_internal_label):
7697 This function can now be called for debug CFI labels, which can come
7698 in the middle of a vliw instruction. Postpone until end of vliw.
7699
7700 2010-09-29 Richard Guenther <rguenther@suse.de>
7701
7702 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
7703 (DECL_FILE_SCOPE_P): Use it.
7704 (TYPE_FILE_SCOPE_P): New macro.
7705
7706 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7707
7708 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
7709 a CPP_NAME which is a reserved word, clearly separate cases for
7710 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
7711
7712 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7713
7714 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
7715 token->value with the canonical spelling. Do exactly like C and
7716 C++ and leave it as it is.
7717
7718 2010-09-28 Richard Henderson <rth@redhat.com>
7719
7720 * config/alpha/alpha.c (alpha_builtins): New.
7721 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
7722 (alpha_builtin_function): New.
7723 (alpha_add_builtins, alpha_init_builtins): Use it.
7724
7725 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
7726
7727 * doc/standards.texi (Standards): Expanded the section on
7728 Objective-C and Objective-C++.
7729
7730 2010-09-28 DJ Delorie <dj@redhat.com>
7731
7732 PR target/45800
7733 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
7734 volatile MEMs.
7735
7736 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7737
7738 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
7739 attributes on methods.
7740 (c_parser_objc_method_definition): Handle attributes.
7741 (c_parser_objc_methodproto): Likewise.
7742 (c_parser_objc_maybe_method_attributes): New.
7743 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
7744 missing definition, similar to that in ObjC++.
7745
7746 2010-09-28 Richard Henderson <rth@redhat.com>
7747
7748 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
7749 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7750 (CONFIG_SJLJ_EXCEPTIONS): Remove.
7751 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
7752 (STACK_CHECK_PROTECT): Likewise.
7753 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
7754 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
7755 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
7756 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
7757 (dwarf2out_assembly_start): Likewise.
7758 * except.c (init_eh): Use targetm.except_unwind_info.
7759 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
7760 (output_one_function_exception_table): Likewise.
7761 * final.c: Unconditionally include dwarf2out.h.
7762 (final_start_function): Unconditionally call dwarf2out routines.
7763 (final_end_function, final_scan_insn): Likewise.
7764 * function.c (expand_function_end): Use targetm.except_unwind_info.
7765 * opts.c (decode_options): Use targetm.except_unwind_info.
7766 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
7767 * target.def (debug_unwind_info, except_unwind_info): New.
7768 * target.h (enum unwind_info_type): New.
7769 * targhooks.c (default_debug_unwind_info): New.
7770 (default_except_unwind_info): New.
7771 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
7772 * targhooks.h: Declare them.
7773 * tree-tailcall.c: Include "target.h"
7774 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
7775 * Makefile.in (tree-tailcall.o): Update.
7776 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
7777 (lhd_gcc_personality): Likewise.
7778
7779 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
7780 (TARGET_EXCEPT_UNWIND_INFO): New.
7781 (DWARF2_UNWIND_INFO): Update.
7782 (TARGET_DEBUG_UNWIND_INFO): New.
7783 * doc/tm.texi: Rebuild.
7784
7785 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
7786 targetm.except_unwind_info.
7787
7788 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
7789 (arm_except_unwind_info): New.
7790 (arm_compute_func_type): Use it.
7791 (arm_expand_prologue, thumb_pushpop): Likewise.
7792 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
7793 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
7794 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
7795 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
7796 (DWARF2_UNWIND_INFO): Remove.
7797 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7798 (ARM_EABI_UNWIND_TABLES): Remove.
7799
7800 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
7801 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
7802 (ia64_except_unwind_info): New.
7803 (ia64_output_function_prologue): Use it.
7804 (ia64_add_bundle_selector_before): Likewise.
7805 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
7806 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
7807 (TARGET_UNWIND_INFO): Remove.
7808
7809 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
7810
7811 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
7812
7813 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
7814 (c_parser_objc_protocol_definition): Likewise.
7815 (c_parser_external_declaration): Provide dummy attribute arguments.
7816 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
7817 (c_parser_objc_class_definition): Handle attributes.
7818 (c_parser_objc_protocol_definition): Likewise.
7819
7820 2010-09-28 Tobias Burnus <burnus@net-b.de>
7821
7822 PR fortran/40569
7823 PR fortran/40568
7824 * toplev.h (save_decoded_options, save_decoded_options_count):
7825 New global variables.
7826 * toplev.c (save_decoded_options, save_decoded_options_count):
7827 Export variables.
7828
7829 2010-09-28 Ian Lance Taylor <iant@google.com>
7830
7831 * config/i386/i386.c (ix86_supports_split_stack): Test
7832 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
7833
7834 2010-09-28 Ian Lance Taylor <iant@google.com>
7835
7836 PR target/45815
7837 * opts.c (decode_options): Don't test whether the target supports
7838 split stack if flag_split_stack == 0.
7839
7840 2010-09-28 Jan Hubicka <jh@suse.cz>
7841
7842 * builtin-attrs.def (ATTR_LEAF): New attribute.
7843 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
7844 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
7845 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
7846 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
7847 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
7848 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
7849 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
7850 * sync-builtins.def: Annotate all builtins by leaf.
7851 * omp-builtins.def: Annotate all builtins by leaf.
7852 * builtins.def: Annotate relevant builtins with leaf attribute.
7853 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7854 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
7855 leaf.
7856
7857 2010-09-28 Jan Hubicka <jh@suse.cz>
7858
7859 * tree-ssa-ccp.c (fold_ctor_reference): New function.
7860 (fold_const_aggregate_ref): Use it.
7861 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
7862 into external static.
7863
7864 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7865
7866 PR target/44452
7867 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
7868 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
7869 (ix86_solaris_return_in_memory): Remove.
7870 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
7871 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7872 (TARGET_SUBTARGET_DEFAULT): Redefine.
7873 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
7874 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7875 (TARGET_SUBTARGET_DEFAULT): Redefine.
7876 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
7877 -mvect8-ret-in-mem.
7878 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
7879
7880 2010-09-29 Alan Modra <amodra@gmail.com>
7881
7882 PR target/45807
7883 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
7884 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
7885 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
7886 Delete.
7887 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
7888 (rs6000_emit_prologue): Don't just create frame save info for r2,
7889 actually save r2.
7890
7891 2010-09-28 Richard Henderson <rth@redhat.com>
7892
7893 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
7894 when 8 bytes are requested.
7895
7896 2010-09-28 Tristan Gingold <gingold@adacore.com>
7897
7898 * config/avr/avr.c (expand_prologue): Set
7899 current_function_static_stack_size.
7900
7901 2010-09-28 Tristan Gingold <gingold@adacore.com>
7902
7903 * config/alpha/alpha.md: Change the initial condition of the
7904 probing loop.
7905
7906 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
7907
7908 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
7909 Split from *avx_<maxmin:code><mode>3.
7910 (*avx_<smaxmin:code><mode>3): Ditto.
7911 * config/i386/i386.md (maxmin): Remove code iterator.
7912
7913 2010-09-27 Ian Lance Taylor <iant@google.com>
7914
7915 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
7916 requires assembler support for CFI directives.
7917
7918 2010-09-27 Richard Henderson <rth@redhat.com>
7919
7920 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
7921
7922 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
7923
7924 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
7925 that AFTER is not in the range FROM..TO, inclusive.
7926
7927 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
7928 Bernd Schmidt <bernds@codesourcery.com>
7929
7930 PR rtl-optimization/45792
7931 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
7932 If not all insns are to be merged, for each edge, stash the
7933 next candidate after the to-be-merged insns before doing the
7934 merge, and use them for the retry at the new insertion point.
7935 Handle CC0 targets when retrying.
7936
7937 2010-09-27 Ian Lance Taylor <iant@google.com>
7938
7939 * common.opt (fsplit-stack): New option.
7940 * opts.c (decode_options): Set flag_split_stack to final value.
7941 * target.def (supports_split_stack): New hook.
7942 * gcc.c (STACK_SPLIT_SPEC): Define.
7943 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
7944 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
7945 (Code Gen Options): Document -fsplit-stack.
7946 * doc/extend.texi (Function Attributes): Mention no_split_stack.
7947 (Function Attributes): Document no_split_stack.
7948 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
7949 TARGET_SUPPORTS_SPLIT_STACK.
7950 * doc/tm.texi: Rebuild.
7951 * function.c (thread_prologue_and_epilogue_insns): If
7952 flag_split_stack, add split stack prologue.
7953 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
7954 * varasm.c (saw_no_split_stack): New static variable.
7955 (assemble_start_function): Set saw_no_split_stack if the function
7956 has the no_split_stack attribute.
7957 (file_end_indicate_split_stack): New function.
7958 * output.h (file_end_indicate_split_stack): Declare.
7959 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
7960 and function.
7961 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
7962 routines.
7963 * config/i386/i386.c (ix86_option_override_internal): Don't set
7964 expand_builtin_va_start to NULL if -fsplit-stack.
7965 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
7966 -fsplit-stack.
7967 (ix86_va_start): If -fsplit-stack, get overflow pointer from
7968 scratch register set by prologue.
7969 (ix86_code_end): If -fsplit-stack, call
7970 file_end_indicate_split_stack.
7971 (ix86_supports_split_stack): New static function.
7972 (SPLIT_STACK_AVAILABLE): Define.
7973 (split_stack_prologue_scratch_regno): New static function.
7974 (split_stack_fn): New static variable.
7975 (ix86_expand_split_stack_prologue): New function.
7976 (ix86_live_on_entry): New static function.
7977 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
7978 (output_pic_addr_const): Likewise.
7979 (i386_asm_output_addr_const_extra): Likewise.
7980 (ix86_expand_call): Change return type to rtx. Return the new
7981 call instruction.
7982 (TARGET_SUPPORTS_SPLIT_STACK): Define.
7983 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7984 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
7985 (split_stack_prologue, split_stack_return): New insns.
7986 (split_stack_space_check): New insn.
7987 * config/i386/i386.h (struct machine_function): Add
7988 split_stack_varargs_pointer field.
7989 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
7990 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7991 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7992 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7993 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
7994 Declare.
7995 (ix86_expand_call): Update declaration.
7996
7997 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
7998
7999 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
8000 code. Added byref, which was missing in the list of codes.
8001 Explain that enumeration values are encoded as the integer type
8002 that the compiler uses to store them. Explain and make examples
8003 of how 'const' interacts with pointers, and the complication of
8004 the encoding of 'const char *'.
8005 (Legacy type encoding): New subsection, explaining that GCC emits
8006 incorrect type encodings for the NeXT runtime for compatibility
8007 reasons.
8008 (@@encode): New subsection, explaining @encode and particularly
8009 that protocol qualifiers are not recognized inside an @encode()
8010 expression.
8011 (Method signatures): New subsection, explaining how method
8012 signatures are encoded.
8013
8014 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8015
8016 Merge from 'apple/trunk' branch on FSF servers. Removed small
8017 change in build_conditional_expr that had been added when fixing
8018 PR objc/27377 and which did the same check in a less complete way.
8019
8020 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
8021
8022 Radar 4229905
8023 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
8024 looking for objective-c common pointer types.
8025
8026 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8027
8028 Radar 4154928
8029 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
8030 use their ObjC common type.
8031
8032 2010-09-27 Richard Guenther <rguenther@suse.de>
8033
8034 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
8035
8036 2010-09-27 Jie Zhang <jie@codesourcery.com>
8037
8038 * print-tree.c (print_node): Print in-constant-pool.
8039
8040 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
8041
8042 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
8043 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
8044 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
8045 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
8046
8047 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
8048
8049 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
8050 from pro_epilogue_adjust_stack_<mode>_{1,2}.
8051 (pro_epilogue_adjust_stack_<mode>_add): Rename from
8052 pro_epilogue_adjust_stack_<mode>_3.
8053 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
8054 renamed pro_epilogue_adjust_stack_{si,di}_add.
8055 (ix86_expand_prologue): Use indirect functions. Update for renamed
8056 pro_epilogue_adjust_stack_{si,di}_sub.
8057
8058 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
8059
8060 * config/i386/i386.md (movmsk_df): New insn.
8061 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
8062 sequence for TARGET_SSE_MATH.
8063
8064 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
8065
8066 * config/mips/mips.c (mips_builtin_decls): Declare.
8067 (mips_init_builtins): Store function declarations in
8068 mips_builtin_decls.
8069 (mips_builtin_decl): New function.
8070 (TARGET_BUILTIN_DECL): Define.
8071
8072 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
8073 Richard Henderson <rth@redhat.com>
8074
8075 * config/i386/cygwin.asm: Include auto-host.h.
8076 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
8077 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
8078 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
8079 alignment code from the 64-bit path. Use gas local labels.
8080 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
8081 from _di_2. Remove the useless constant integer argument.
8082 (pro_epilogue_adjust_stack_<mode>_3): New.
8083 (allocate_stack_worker_probe_<mode>): Macroize from
8084 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
8085 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
8086 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
8087 (__chkstk_ms): New function.
8088 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
8089 * config/i386/t-interix: Likewise.
8090 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
8091 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
8092 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
8093 * configure, config.in: Rebuild.
8094
8095 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
8096
8097 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
8098 statements because of the return slot optimization.
8099
8100 2010-09-25 Anatoly Sokolov <aesok@post.ru>
8101
8102 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
8103 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
8104 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8105 (class_likely_spilled_p): Rename to...
8106 (avr_class_likely_spilled_p): ...this. Make static. Change argument
8107 type to reg_class_t.
8108
8109 2010-09-24 Jan Hubicka <jh@suse.cz>
8110
8111 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
8112 (lto_symtab_resolve_symbols): Set it.
8113 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
8114 store resolution field in cgraph/varpool.
8115 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
8116 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
8117 (cgraph_dump_node): Drop used_from_object_file.
8118 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
8119 (cgraph_function_body_availability): Use decl_replaceable_p.
8120 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
8121 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
8122 cgraph_used_from_object_file_p.
8123 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
8124 cgraph_used_from_object_file_p.
8125 (resolution_used_from_other_file_p): New functoin.
8126 (cgraph_used_from_object_file_p): New predicate.
8127 * cgraph.h: Include plugin-api.h
8128 (struct cgraph_local_info): Remove used_from_object_file.
8129 (struct cgraph_node): Add resolution field.
8130 (struct varpool_node): Likewise; remove used_from_object_file;
8131 reove const_value_known.
8132 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
8133 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
8134 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8135 varpool_used_from_object_file_p): Declare.
8136 (varpool_get_node, varpool_extra_name_alias): Update prototype.
8137 * tree.h (DECL_REPLACEABLE_P): Remove.
8138 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
8139 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
8140 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8141 input_overwrite_node, input_node, input_varpool_node): Stream
8142 resolution.
8143 * expr.c (expand_expr_real_1): Use const_value_known_p
8144 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
8145 const_value_known.
8146 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
8147 (function_and_variable_visibility): Set resolution for local vars
8148 and functions; use varpool_used_from_object_file_p.
8149 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
8150 static functions.
8151 (default_binds_local_p_1): Use resolutoin info.
8152 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
8153 * varpool.c (varpool_get_node): Constify.
8154 (const_value_known_p): Do not use vnode->const_value_known;
8155 use decl_replaceable_p.
8156 (varpool_finalize_decl): Do not set const_value_known.
8157 (cgraph_variable_initializer_availability): Use decl_replaceable_p
8158 (varpool_extra_name_alias): Return new node.
8159 (varpool_used_from_object_file_p): New function.
8160
8161 2010-09-24 Richard Henderson <rth@redhat.com>
8162
8163 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
8164 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
8165 (do_spill): Use REG_CFA_OFFSET.
8166 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
8167 as appropriate.
8168 (ia64_expand_epilogue): Likewise.
8169 (process_set): Split into ...
8170 (process_cfa_adjust_cfa): this,
8171 (process_cfa_register): this,
8172 (process_cfa_offset): and this new function.
8173 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
8174 instead of REG_FRAME_RELATED_EXPR.
8175
8176 2010-09-24 Olivier Hainque <hainque@adacore.com>
8177
8178 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
8179
8180 2010-09-24 Jan Hubicka <jh@suse.cz>
8181
8182 * doc/extend.texi: (attribute leaf): Document.
8183 * tree.c (local_define_builtin): Handle ECF_LEAF.
8184 (build_common_builtin_nodes): Set ECF_LEAF where needed.
8185 * tree.h (ECF_LEAF): New.
8186 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
8187 overwrittable and unavailable functions.
8188 (ipa_init): Put all_module_statics into optimization_summary_obstack.
8189 (copy_global_bitmap): Do not copy all_module_statics.
8190 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
8191 (propagate): Handle overwritable and unavailable leaf functions;
8192 initialize global info for overwritable and unavailable leaf functions;
8193 do not free all module statics.
8194 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
8195 local statics.
8196 * calls.c (flags_from_decl_or_type): Handle leaf.
8197 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
8198 abnormal gotos.
8199
8200 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
8201
8202 * gengtype.c: Reindented.
8203 * gengtype.h: Reindented.
8204 * gengtype-parse.c: Reindented.
8205
8206 2010-09-24 Jan Hubicka <jh@suse.cz>
8207
8208 PR tree-optimization/45738
8209 PR tree-optimization/45741
8210 * expr.c (string_constant): Allow CONST_DECL too;
8211 check that DECL_INITIAL is set.
8212 * varpool.c (const_value_known_p): Only look into VAR_DECL
8213 and CONST_DECL.
8214
8215 2010-09-24 Joseph Myers <joseph@codesourcery.com>
8216
8217 * common.opt (undef): New.
8218
8219 2010-09-24 Jakub Jelinek <jakub@redhat.com>
8220
8221 PR middle-end/45234
8222 * rtl.h (enum global_rtl_index): Add
8223 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
8224 (LAST_VIRTUAL_POINTER_REGISTER): Define.
8225 (virtual_preferred_stack_boundary_rtx,
8226 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
8227 (LAST_VIRTUAL_REGISTER): Increase by one.
8228 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
8229 instead of LAST_VIRTUAL_REGISTER.
8230 * function.c (instantiate_new_reg): Handle
8231 virtual_preferred_stack_boundary_rtx.
8232 * emit-rtl.c (init_virtual_regs): Handle
8233 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
8234 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
8235 * explow.c (round_push): If crtl->preferred_stack_boundary
8236 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
8237 virtual_preferred_stack_boundary_rtx alignment instead of
8238 crtl->preferred_stack_boundary alignment.
8239 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
8240 macros. Never decrease crtl->preferred_stack_boundary,
8241 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
8242 instead of PREFERRED_STACK_BOUNDARY. Don't modify
8243 stack_pointer_delta in dynamic allocation, even when size
8244 is constant.
8245 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
8246 macro.
8247 * print-rtl.c (print_rtx): Handle
8248 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
8249 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
8250 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
8251 * config/frv/frv.c (frv_emit_movsi): Likewise.
8252 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
8253 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
8254 Likewise.
8255
8256 Revert:
8257 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
8258
8259 PR middle-end/45234
8260 * calls.c (expand_call): Make sure that all variable sized
8261 adjustments are multiple of preferred stack boundary after
8262 stack alignment.
8263
8264 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
8265 Dominique Dhumieres <dominiq@lps.ens.fr>
8266
8267 PR bootstrap/45751
8268 * config/darwin-driver.c (darwin_default_min_version):
8269 Adjust size passed to memcpy in two places.
8270
8271 2010-09-24 Richard Guenther <rguenther@suse.de>
8272
8273 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
8274 Make sure to not call set_type_context with error_mark_node.
8275 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
8276
8277 2010-09-24 Richard Guenther <rguenther@suse.de>
8278
8279 * Makefile.in (OBJS-onestep): Remove.
8280 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
8281 (libbackend.a): Remove onestep support.
8282 (libbackend.o): Remove.
8283 * configure.ac (--enable-intermodule): Remove.
8284 * configure: Regenerate.
8285
8286 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
8287
8288 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
8289 reaching the end of a block if it occurs at a DEBUG_INSN.
8290
8291 2010-09-09 Tristan Gingold <gingold@adacore.com>
8292
8293 PR target/44242
8294 * config/vms/vms-crt0-64.c: Removed.
8295 * config/vms/vms-crt0.c: Removed.
8296 * config/vms/vms-psxcrt0-64.c: Removed.
8297 * config/vms/vms-psxcrt0.c: Removed.
8298 * config/vms/vms-ucrt0.c: New file.
8299 * config/vms/t-vms64: Removed.
8300 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
8301 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
8302 * config.gcc (alpha-dec-vms): Use t-vms.
8303
8304 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
8305
8306 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
8307 underfull hbox in DVI output.
8308 (-fobjc-class-cxx-cdtors): Same change.
8309 (-fobjc-exceptions): Tidied up documentation. Explain what the
8310 option does, but moved the (lenghty) description of the exception
8311 syntax into objc.texi.
8312 (-fobjc-gc): Explain that the option is not useful with the GNU
8313 runtime.
8314 (-fzero-link): Explain that the GNU runtime always works in
8315 "zero-link" mode.
8316 * doc/objc.texi: All sections: simplified @node declarations
8317 removing specification of next, previous, up node.
8318 (Objective-C): Updated introduction.
8319 (Garbage Collection): Updated. The bohem-gc library is now
8320 included in gcc itself. Mention that this section only applies to
8321 the GNU Objective-C runtime.
8322 (compatibility_alias): Small tidy up.
8323 (Exceptions): New section mostly containing text previously in the
8324 description of the -fobjc-exception command-line option.
8325 (Synchronization): Same.
8326
8327 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
8328
8329 * config/i386/i386.md (ix86_code_end): Move the initialization of
8330 xops array near the consumer. Use AX_REG and SP_REG instead of
8331 numerical constants.
8332
8333 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
8334
8335 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
8336 method [methodname]' for an Objective-C method instead of the less
8337 satisfactory 'too many arguments to function' (with no method name).
8338
8339 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
8340
8341 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
8342 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
8343 (execute_update_addresses_taken): Remove parameter. Execute the
8344 optimization unconditionally.
8345 * passes.c (execute_function_todo): Call execute_update_addresses_taken
8346 unconditionally if TODO_rebuild_alias is set, else only when optimizing
8347 if TODO_update_address_taken is set.
8348
8349 2010-09-23 Anatoly Sokolov <aesok@post.ru>
8350
8351 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8352 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
8353 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8354 (arm_output_addr_const_extra): Make static.
8355
8356 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
8357
8358 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
8359 define as unspec_volatile.
8360 ("nops"): Define as unspec_volatile. Use fputs to write to
8361 asm_out_file directly. Output NOPs on separate lines using while loop.
8362 * config/i386/i386.c (ix86_code_end): Use fputs to write to
8363 asm_out_file directly. Output NOPs on separate lines using while loop.
8364
8365 2010-09-23 Richard Guenther <rguenther@suse.de>
8366
8367 PR tree-optimization/45565
8368 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8369 Make sure to adjust the fndecl before replacing the stmt.
8370
8371 2010-09-23 Richard Guenther <rguenther@suse.de>
8372
8373 PR middle-end/45750
8374 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
8375 gimplifying MEM_REF.
8376
8377 2010-09-23 Alan Modra <amodra@gmail.com>
8378
8379 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
8380 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
8381
8382 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
8383
8384 PR rtl-optimization/44374
8385 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
8386 * df-core.c (df_set_bb_dirty): Set it.
8387 * ifcvt.c (find_memory): Remove function.
8388 (dead_or_predicable): Use can_move_insns_across.
8389 * df.h (can_move_insns_across): Declare function.
8390 * cfgcleanup.c (block_was_dirty): New static variable.
8391 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
8392 than df_get_bb_dirty.
8393 (try_head_merge_bb): New static function.
8394 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
8395 is set.
8396 * df-problems.c: Include "target.h"
8397 (df_simulate_find_uses): New static function.
8398 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
8399 (find_memory, find_memory_store): New static functions.
8400 (can_move_insns_across): New function.
8401 * Makefile.in (df-problems.o): Update dependencies.
8402
8403 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
8404
8405 PR java/44095
8406 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
8407 is specified and the suffix of the file isn't ".c".
8408 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8409
8410 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8411
8412 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
8413 * doc/cppopts.texi: Fix markup of index entry.
8414 * doc/extend.texi (Constructing Calls): Fix markup of
8415 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
8416 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
8417 (Vague Linkage, C++ Attributes): Fix markup of index entries and
8418 keywords.
8419 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
8420 avoid long lines.
8421 (C Dialect Options, C++ Dialect Options, Warning Options)
8422 (Debugging Options, Spec Files, Darwin Options)
8423 (i386 and x86-64 Options, MIPS Options)
8424 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
8425 index entries, avoid abbreviations, allow URLs to wrap, avoid
8426 long lines, avoid overlong pages from long @itemx lists.
8427 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
8428 * doc/standards.texi (Standards): Likewise.
8429 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
8430
8431 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8432
8433 * opts-common.c (prune_options): Make static. Work with decoded
8434 options.
8435 (decode_cmdline_options_to_array): Call prune_options. Don't
8436 resize option array here.
8437 * opts.h (prune_options): Remove prototype.
8438 * gcc.c (process_command): Take decoded options; don't call
8439 decode_cmdline_options_to_array here. Use decoded options for argv[0].
8440 (main): Call decode_cmdline_options_to_array here instead of
8441 prune_options. Update call to process_command.
8442 * config/darwin-driver.c: Include opts.h.
8443 (darwin_default_min_version): Work with decoded options. Don't
8444 handle -b or -V here.
8445 * config/darwin.h (darwin_default_min_version): Update prototype.
8446 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
8447 darwin_default_min_version.
8448 * config/i386/cygwin.h (mingw_scan): Update prototype.
8449 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
8450 * config/i386/cygwin1.c: Include opts.h.
8451 (mingw_scan): Work with decoded options.
8452 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
8453 * config/t-darwin (darwin-driver.o): Update dependencies.
8454
8455 2010-09-22 Joseph Myers <joseph@codesourcery.com>
8456
8457 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
8458 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
8459 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
8460 -force-link, -force-link=, -language, -language=,
8461 -library-directory, -library-directory=, -no-canonical-prefixes,
8462 -no-standard-libraries, -no-warnings, -optimize, -output,
8463 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
8464 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
8465 -print-file-name=, -print-libgcc-file-name,
8466 -print-multi-directory, -print-multi-lib,
8467 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
8468 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
8469 -profile, -save-temps, -shared, -specs, -specs=, -static,
8470 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
8471 symbolic): New.
8472 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
8473 * gcc.c (A Short Introduction to Adding a Command-Line Option):
8474 Remove comment.
8475 (cc1_options): Correct specs for passing down --help,
8476 --target-help and --help=*. Add spec for passing down --version.
8477 (struct option_map, option_map, target_option_translations,
8478 translate_options): Remove.
8479 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
8480 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
8481 OPT_fhelp_ and OPT_ftarget_help.
8482 (process_command): Don't call translate_options. Call
8483 decode_cmdline_options_to_array before checking for
8484 -no-canonical-prefixes using decoded options.
8485 * opts-common.c (tm.h): Update comment on #include.
8486 (find_opt): Allow abbreviations of long options.
8487 (struct option_map, option_map): New.
8488 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
8489 and -mno handling.
8490 (target_option_translations): New.
8491 (decode_cmdline_options_to_array): Handle
8492 TARGET_OPTION_TRANSLATE_TABLE in driver.
8493 * opts.c (common_handle_option): Don't handle OPT_fhelp,
8494 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
8495
8496 2010-09-22 Richard Guenther <rguenther@suse.de>
8497
8498 * tree-inline.c (optimize_inline_calls): Schedule cleanups
8499 only if we inlined something. Block compaction and conditional
8500 folding are done by cfg cleanup. Schedule update-address-taken.
8501 (tree_function_versioning): Remove redundant call to number_blocks.
8502 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
8503 folding is done by cfg cleanup.
8504 * passes.c (init_optimization_passes): Remove update-address-taken
8505 pass after IPA inlining.
8506
8507 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8508
8509 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
8510 to update conditions. Fix reg_mode[] check.
8511
8512 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
8513
8514 * config/picochip/picochip.md (movhicc): Use expand to check whether
8515 movhicc is available and split it after reload.
8516
8517 2010-09-22 Richard Guenther <rguenther@suse.de>
8518
8519 * tree-ssanames.c (release_dead_ssa_names): Do not remove
8520 callee edges here.
8521 * passes.c (init_optimization_passes): Remove early CFG cleanup.
8522 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
8523 (pass_cleanup_cfg): Likewise.
8524 (execute_fixup_cfg): Cleanup.
8525 * tree-pass.h (pass_cleanup_cfg): Remove.
8526
8527 2010-09-22 Martin Jambor <mjambor@suse.cz>
8528
8529 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
8530 builtins if it is true.
8531 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
8532 parameter.
8533
8534 2010-09-22 Martin Jambor <mjambor@suse.cz>
8535
8536 * tree-sra.c (struct access): New field grp_no_warning.
8537 (create_access_replacement): Set TREE_NO_WARNING according to
8538 grp_no_warning.
8539 (create_artificial_child_access): Use build_ref_for_model and set
8540 grp_no_warning if build_user_friendly_ref_for_offset fails.
8541 (propagate_subaccesses_across_link): Likewise.
8542
8543 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
8544
8545 PR target/35664
8546 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
8547 ('f'): Likewise.
8548
8549 2010-09-22 Tristan Gingold <gingold@adacore.com>
8550
8551 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
8552
8553 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
8554
8555 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
8556 * config/i386/i386.c (decide_alg): Update for rename.
8557
8558 2010-09-22 Jakub Jelinek <jakub@redhat.com>
8559
8560 PR rtl-optimization/45739
8561 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
8562 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
8563
8564 2010-09-21 Anatoly Sokolov <aesok@post.ru>
8565
8566 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
8567 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
8568 Remove.
8569 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
8570 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8571
8572 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8573
8574 PR objc/23710
8575 * c-parser.c (c_parser_objc_method_definition): Check the return
8576 value of objc_start_method_definition and if false is returned,
8577 parse the method definition but emit no code.
8578
8579 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
8580
8581 PR objc/25965
8582 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
8583 call objc_get_interface_ivars ().
8584
8585 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
8586
8587 PR target/45694
8588 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
8589 static chain-register is used for 64-bit.
8590
8591 2010-09-21 Richard Guenther <rguenther@suse.de>
8592
8593 * dwarf2out.c (is_cu_die): New function.
8594 (add_pubtype): Use it.
8595 (gen_subprogram_die): Likewise.
8596 (gen_struct_or_union_type_die): Likewise.
8597 (dwarf2out_finish): Likewise.
8598 (comp_unit_die): Rename to ...
8599 (single_comp_unit_die): ... this.
8600 (comp_unit_die): New function lazily constructing and
8601 returning single_comp_unit_die.
8602 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
8603 base_type_die, subrange_type_die, modified_type_die,
8604 lower_bound_default, add_bound_info, add_prototyped_attribute,
8605 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
8606 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
8607 force_decl_die, gen_namespace_die, dwarf2out_decl,
8608 dwarf2out_start_source_file, dwarf2out_end_source_file,
8609 prune_unused_types, dwarf2out_finish): Use it.
8610 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
8611 the global list of translation-unit decls.
8612 (dwarf2out_init): Do not create single_comp_unit_die here.
8613 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
8614
8615 2010-09-21 Richard Guenther <rguenther@suse.de>
8616
8617 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
8618 for bool for C++.
8619
8620 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
8621
8622 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
8623 (qhs_extenddi_cstr): Likewise.
8624 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
8625 them for the source operand.
8626
8627 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
8628
8629 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
8630 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
8631 (ix86_split_ashr): Ditto.
8632 (ix86_split_lshr): Ditto.
8633
8634 2010-09-21 Richard Guenther <rguenther@suse.de>
8635
8636 PR tree-optimization/45580
8637 * tree-ssa-propagate.c (substitute_and_fold): Always replace
8638 regular uses.
8639 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
8640 virtuals fold the call into a regular indirect one.
8641
8642 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
8643
8644 PR rtl-optimization/42775
8645 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
8646 scheduling is enabled.
8647
8648 2010-09-20 Jakub Jelinek <jakub@redhat.com>
8649
8650 PR rtl-optimization/45728
8651 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
8652 gen_lowpart_common first and if that fails, force_reg first
8653 before calling gen_lowpart.
8654
8655 PR middle-end/45678
8656 * cfgexpand.c (expand_one_stack_var_at): Use
8657 crtl->max_used_stack_slot_alignment as max_align, instead
8658 of maximum of that and PREFERRED_STACK_BOUNDARY.
8659 Don't call update_stack_alignment.
8660
8661 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
8662
8663 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
8664 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
8665 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
8666 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
8667 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
8668 (build_nonstandard_integer_type): Likewise.
8669 (build_range_type_1): New function, built from...
8670 (build_range_type): ...this. Call build_range_type_1.
8671 (build_nonshared_range_type): New function.
8672 (build_array_type_1): New function, built from...
8673 (build_array_type: ...this. Call build_array_type_1.
8674 (build_nonshared_array_type): New function.
8675 * tree.h (build_nonshared_range_type): Declare.
8676 (build_nonshared_array_type): Likewise.
8677
8678 2010-09-20 Anatoly Sokolov <aesok@post.ru>
8679
8680 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
8681 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8682 (arm_class_likely_spilled_p): New function.
8683
8684 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
8685
8686 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
8687 indirect functions.
8688 (ix86_split_ashl): Ditto.
8689 (ix86_split_ashr): Ditto.
8690 (ix86_split_lshr): Ditto.
8691 (ix86_adjust_counter): Ditto.
8692
8693 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
8694
8695 * c-family/c-common.h (constant_string_class): Documented with
8696 comment identical to the one already in c-common.c.
8697
8698 2010-09-20 Jakub Jelinek <jakub@redhat.com>
8699
8700 * dwarf2out.c (any_cfis_emitted): New static variable.
8701 (add_fde_cfi): Set it.
8702 (dwarf2out_frame_debug): Clear it before processing,
8703 if it is set afterwards, flush any queued reg saves.
8704
8705 PR debug/45124
8706 * dwarf2out.c (add_accessibility_attribute): Assume
8707 DW_ACCESS_private as the default for dwarf_version > 2
8708 and DW_TAG_class_type parent.
8709 (gen_inheritance_die): Assume DW_ACCESS_public as the default
8710 for dwarf_version > 2 and parent other than DW_TAG_class_type.
8711
8712 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
8713
8714 PR target/45726
8715 * arm.md (arm_movt): Only enable on machines with MOVT.
8716
8717 2010-09-20 Jie Zhang <jie@codesourcery.com>
8718
8719 * config/arm/arm.c (arm_address_offset_is_imm): New.
8720 (arm_early_store_addr_dep): New.
8721 (arm_early_load_addr_dep): New.
8722 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
8723 (arm_early_load_addr_dep): Declare.
8724 (arm_address_offset_is_imm): Declare.
8725 * config/arm/cortex-m4.md: New file.
8726 * config/arm/cortex-m4-fpu.md: New file.
8727 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
8728 (attr generic_sched): Exclude cortexm4.
8729 (attr generic_vfp): Exclude cortexm4.
8730
8731 2010-09-20 Richard Guenther <rguenther@suse.de>
8732
8733 PR middle-end/45704
8734 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
8735
8736 2010-09-20 Jan Hubicka <jh@suse.cz>
8737
8738 PR tree-optimize/45605
8739 * cgraph.h (const_value_known_p): Declare.
8740 (varpool_decide_const_value_known): Remove.
8741 * tree-ssa-ccp.c (get_base_constructor): Use it.
8742 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
8743 * expr.c (string_constant): Likewise.
8744 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
8745 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8746 function_and_variable_visibility): Likewise.
8747 * gimplify.c (gimplify_call_expr): Likewise.
8748 * gimple-fold.c (get_symbol_constant_value): Likewise.
8749 * varpool.c (varpool_decide_const_value_known): Replace by...
8750 (const_value_known_p): ... this one; handle other kinds of DECLs
8751 too and work for automatic vars.
8752 (varpool_finalize_decl): Use const_value_known_p.
8753
8754 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
8755
8756 PR target/45726
8757 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
8758
8759 2010-09-20 Richard Guenther <rguenther@suse.de>
8760
8761 PR tree-optimization/45705
8762 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
8763
8764 2010-09-20 Jakub Jelinek <jakub@redhat.com>
8765
8766 PR rtl-optimization/45695
8767 * combine.c (try_combine): When splitting a two set pattern,
8768 make sure the pattern which will be put into i2 doesn't use REGs
8769 or MEMs set by insns in between i2 and i3.
8770
8771 2010-09-19 Jan Hubicka <jh@suse.cz>
8772
8773 PR lto/44246
8774 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
8775 processing same node twice.
8776
8777 2010-09-19 Anatoly Sokolov <aesok@post.ru>
8778
8779 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
8780 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8781 (bfin_class_likely_spilled_p): New function
8782
8783 2010-09-19 Ira Rosen <irar@il.ibm.com>
8784
8785 PR tree-optimization/45714
8786 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
8787 created in vectorizable_call instead of the original statement in
8788 def stmt updates.
8789
8790 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
8791
8792 * config/i386/i386-protos.h (split_double_mode): New prototype.
8793 (split_di, split_ti): Remove prototypes.
8794 * config/i386/i386.c (split_double_mode): New function.
8795 (split_di, split_ti): Remove.
8796 (ix86_expand_branch): Use split_double_mode.
8797 (ix86_split_to_parts): Ditto.
8798 (ix86_split_ashl): Ditto.
8799 (ix86_split_ashr): Ditto.
8800 (ix86_split_lshr): Ditto.
8801 (ix86_force_to_memory): Ditto.
8802 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
8803
8804 2010-09-18 Jan Hubicka <jh@suse.cz>
8805
8806 PR tree-optimization/45453
8807 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
8808 virtual functions are reachable.
8809 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
8810 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
8811 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
8812 when modifying function.
8813
8814 2010-09-18 Jan Hubicka <jh@suse.cz>
8815
8816 PR tree-optimization/45605
8817 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
8818 * gimple-fold.c (static_object_in_other_unit_p): New function.
8819 (canonicalize_constructor_val): Use it.
8820 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
8821 returning NULL.
8822 (gimple_fold_obj_type_ref_known_binfo): Use
8823 static_object_in_other_unit_p.
8824
8825 2010-09-18 Richard Guenther <rguenther@suse.de>
8826
8827 PR tree-optimization/45709
8828 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
8829 insertions until after all PHI nodes of the block are processed.
8830
8831 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
8832
8833 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
8834
8835 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
8836
8837 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
8838
8839 2010-09-18 Richard Guenther <rguenther@suse.de>
8840
8841 PR tree-optimization/45709
8842 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
8843
8844 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
8845
8846 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
8847 (dot_deps_stmt): Same.
8848 * graphite-poly.c (dot_lst): Same.
8849 * graphite-scop-detection.c (dot_all_scops): Same.
8850 (dot_scop): Same.
8851
8852 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
8853
8854 Revert:
8855 2009-12-16 Ben Elliston <bje@au.ibm.com>
8856
8857 * tree-data-ref.c (dot_rdg_1): Added back.
8858 (dot_rdg): Same. Added "#if 0" around system call.
8859
8860 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
8861 Richard Henderson <rth@redhat.com>
8862
8863 * config/i386/i386.c (initial_ix86_tune_features): Add
8864 X86_TUNE_PAD_SHORT_FUNCTION.
8865 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
8866 (ix86_count_insn): New.
8867 (ix86_pad_short_function): Likewise.
8868 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
8869
8870 * config/i386/i386.h (ix86_tune_indices): Add
8871 X86_TUNE_PAD_SHORT_FUNCTION.
8872 (TARGET_PAD_SHORT_FUNCTION): New.
8873
8874 * config/i386/i386.md (UNSPEC_NOPS): New.
8875 (nops): Likewise.
8876
8877 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
8878
8879 PR middle-end/45234
8880 * calls.c (expand_call): Make sure that all variable sized
8881 adjustments are multiple of preferred stack boundary after
8882 stack alignment.
8883
8884 2010-09-17 DJ Delorie <dj@redhat.com>
8885
8886 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
8887 passed an invalid value, print an error instead of ICEing.
8888 (valid_psw_flag): New.
8889 (rx_expand_builtin): Call it for setpsw/clrpsw.
8890 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
8891
8892 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
8893 (bitclr_in_memory): Likewise.
8894 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
8895
8896 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
8897
8898 PR middle-end/45678
8899 * cfgexpand.c (update_stack_alignment): New.
8900 (get_decl_align_unit): Use it.
8901 (expand_one_stack_var_at): Call update_stack_alignment.
8902
8903 2010-09-17 Richard Guenther <rguenther@suse.de>
8904
8905 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
8906 Properly copy the read string.
8907
8908 2010-09-17 Joseph Myers <joseph@codesourcery.com>
8909
8910 * doc/options.texi (Variable): Document.
8911 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
8912 generate target_flags declarations explicitly. Don't define
8913 VarExists variables for the driver.
8914 * common.opt (target_flags): New Variable record.
8915 (flag_dump_unnumbered, flag_dump_unnumbered_links,
8916 flag_var_tracking, flag_var_tracking_assignments,
8917 flag_var_tracking_assignments_toggle): Don't mark variables with
8918 VarExists.
8919 * config/i386/i386.c (ix86_isa_flags): Don't define here.
8920 * config/i386/i386.opt (ix86_isa_flags): Define here.
8921 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
8922 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
8923 VarExists.
8924 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
8925 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
8926 Only define for generator programs.
8927 * rtlanal.c (target_flags): Remove.
8928 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
8929 flag_var_tracking_assignments_toggle): Remove.
8930
8931 2010-09-17 Michael Matz <matz@suse.de>
8932
8933 PR tree-optimization/43432
8934 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8935 Accept backwards consecutive accesses.
8936 (vect_create_data_ref_ptr): If step is negative generate
8937 decreasing IVs.
8938 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
8939 (perm_mask_for_reverse, reverse_vec_elements): New functions.
8940 (vectorizable_load): Handle loads with negative steps when easily
8941 possible.
8942
8943 2010-09-03 Jan Hubicka <jh@suse.cz>
8944
8945 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
8946
8947 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
8948
8949 * config/v850/v850.c (v850_function_value_regno_p): Make static.
8950 Adjust comments. Declare.
8951 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8952 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
8953
8954 2010-09-17 Richard Guenther <rguenther@suse.de>
8955
8956 * common.opt (combine): Remove.
8957 * gcc.c (default_compilers): Remove specs testing combine.
8958 The C compilers no longer can combine.
8959 (option_map): Remove -combine.
8960 (display_help): Remove -combine.
8961 (driver_handle_option): Remove OPT_combine handling.
8962 (compile_input_file_p): Remove.
8963 (do_spec): Remove code concerning combine.
8964 (main): Likewise.
8965 * doc/invoke.texi: Remove traces of -combine.
8966 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
8967
8968 2010-09-17 Richard Guenther <rguenther@suse.de>
8969
8970 PR middle-end/45678
8971 * builtins.c (fold_builtin_memory_op): Always properly adjust
8972 alignment of memory accesses.
8973
8974 2010-09-16 Jan Hubicka <jh@suse.cz>
8975
8976 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
8977 processing clone.
8978
8979 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
8980
8981 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
8982
8983 * config/i386/i386.c (predict_jump): Add prototype.
8984 (flag_opts): Add -m8bit-idiv.
8985 (ix86_split_idivmod): New.
8986
8987 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
8988 Add 2 splitters for SI/DI mode divide.
8989 (divmod<mode>4_1): New pattern.
8990 (udivmod<mode>4_1): Likewise.
8991 (testdi_ccno_1): Likewise.
8992
8993 * config/i386/i386.opt (m8bit-idiv): New.
8994
8995 * doc/invoke.texi: Document -m8bit-idiv.
8996
8997 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
8998
8999 PR bootstrap/45680
9000 * config/i386/i386.c (min_insn_size): Moved out of the
9001 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
9002
9003 2010-09-16 Jan Hubicka <jh@suse.cz>
9004
9005 * lto-cgraph.c (lto_output_node): Fix handling of clones.
9006 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
9007 unreachable clones with reachable clones.
9008 * tree-inline.c (copy_bb): Fix sanity checking when producing
9009 unreachable clone.
9010
9011 2010-09-16 Anatoly Sokolov <aesok@post.ru>
9012
9013 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
9014 (TARGET_MEMORY_MOVE_COST): Define.
9015 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
9016
9017 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
9018
9019 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
9020 maybe_tidy_empty_bb.
9021
9022 Revert:
9023 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
9024 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9025
9026 2010-09-16 Joseph Myers <joseph@codesourcery.com>
9027
9028 * target.def (target_option.optimization): New hook.
9029 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
9030 TARGET_OPTION_OPTIMIZATION hook.
9031 * doc/tm.texi: Regenerate.
9032 * hooks.c (hook_void_int_int): New.
9033 * hooks.h (hook_void_int_int): Declare.
9034 * opts.c: Don't include tm_p.h.
9035 (decode_options): Use targetm.target_option.optimization instead
9036 of OPTIMIZATION_OPTIONS.
9037 * system.h (OPTIMIZATION_OPTIONS): Poison.
9038 * config/arm/arm-protos.h (arm_optimization_options): Remove.
9039 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
9040 (arm_optimization_options): Rename to arm_option_optimization.
9041 Make static.
9042 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
9043 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
9044 (cris_option_optimization): New.
9045 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
9046 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
9047 (crx_option_optimization): New.
9048 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
9049 * config/frv/frv-protos.h (frv_optimization_options): Remove.
9050 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
9051 (frv_optimization_options): Rename to frv_option_optimization.
9052 Make static.
9053 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
9054 * config/h8300/h8300.c (h8300_option_optimization): New.
9055 (TARGET_OPTION_OPTIMIZATION): Define.
9056 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
9057 * config/i386/i386-protos.h (optimization_options): Remove.
9058 * config/i386/i386.c (optimization_options): Rename to
9059 ix86_option_optimization. Make static.
9060 (TARGET_OPTION_OPTIMIZATION): Define.
9061 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
9062 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
9063 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
9064 (ia64_optimization_options): Rename to ia64_option_optimization.
9065 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
9066 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
9067 commented-out definition.
9068 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
9069 instead of OPTIMIZATION_OPTIONS.
9070 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
9071 (m32r_option_optimization): New.
9072 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
9073 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
9074 Remove.
9075 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
9076 (mcore_option_optimization): New.
9077 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
9078 * config/mep/mep-protos.h (mep_optimization_options): Remove.
9079 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
9080 (mep_optimization_options): Rename to mep_option_optimization.
9081 Make static. Take unused level and size parameters.
9082 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
9083 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
9084 (mmix_option_optimization): New.
9085 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
9086 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
9087 (pdp11_option_optimization): New.
9088 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
9089 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
9090 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
9091 (optimization_options): Rename to rs6000_option_optimization.
9092 Make static.
9093 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
9094 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
9095 * config/rx/rx.c (rx_set_optimization_options): Rename to
9096 rx_option_optimization. Make static. Take unused level and size
9097 parameters.
9098 (TARGET_OPTION_OPTIMIZATION): Define.
9099 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
9100 * config/s390/s390-protos.h (optimization_options): Remove.
9101 * config/s390/s390.c (optimization_options): Rename to
9102 s390_option_optimization. Make static. Don't mark size parameter
9103 unused.
9104 (TARGET_OPTION_OPTIMIZATION): Define.
9105 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
9106 * config/sh/sh-protos.h (sh_optimization_options): Remove.
9107 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
9108 (sh_optimization_options): Rename to sh_option_optimization. Make
9109 static. Don't mark parameters unused.
9110 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
9111 * config/spu/spu-protos.h (spu_optimization_options): Remove.
9112 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
9113 (spu_optimization_options): Rename to spu_option_optimization.
9114 Make static.
9115 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
9116 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
9117 (v850_option_optimization): New.
9118 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
9119 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
9120 (xtensa_option_optimization): New.
9121 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
9122
9123 2010-09-16 Joseph Myers <joseph@codesourcery.com>
9124
9125 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
9126 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
9127 * doc/tm.texi: Regenerate.
9128 * system.h (OVERRIDE_OPTIONS): Poison.
9129 * target.def (override): Default to hook_void_void.
9130 * targhooks.c (default_target_option_override): Remove.
9131 * genmodes.c, machmode.def: Update comments mentioning
9132 OVERRIDE_OPTIONS.
9133 * config/alpha/alpha-modes.def: Update comment mentioning
9134 alpha_override_options.
9135 * config/alpha/alpha-protos.h (override_options): Remove.
9136 * config/alpha/alpha.c (override_options): Rename to
9137 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
9138 (TARGET_OPTION_OVERRIDE): Define.
9139 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
9140 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
9141 of OVERRIDE_OPTIONS.
9142 * config/arc/arc-protos.h (arc_init): Remove.
9143 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
9144 (arc_init): Rename to arc_option_override. Make static.
9145 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
9146 (OVERRIDE_OPTIONS): Remove.
9147 * config/arm/arm-protos.h (arm_override_options): Remove.
9148 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
9149 (arm_override_options): Rename to arm_option_override. Make
9150 static. Call SUBTARGET_OVERRIDE_OPTIONS.
9151 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
9152 * config/arm/arm.md: Update comment referring to arm_override_options.
9153 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9154 instead of OVERRIDE_OPTIONS.
9155 * config/avr/avr-protos.h (avr_override_options): Remove.
9156 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
9157 (avr_override_options): Rename to avr_option_override. Make static.
9158 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
9159 * config/bfin/bfin-protos.h (override_options): Remove (twice).
9160 * config/bfin/bfin.c (override_options): Rename to
9161 bfin_option_override. Make static.
9162 (TARGET_OPTION_OVERRIDE): Define.
9163 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
9164 * config/cris/cris-protos.h (cris_override_options): Remove.
9165 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
9166 (cris_override_options): Rename to cris_option_override. Make static.
9167 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
9168 * config/frv/frv-protos.h (frv_override_options): Remove.
9169 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
9170 (frv_override_options): Rename to frv_option_override. Make static.
9171 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
9172 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
9173 * config/h8300/h8300.c (h8300_init_once): Rename to
9174 h8300_option_override. Make static.
9175 (TARGET_OPTION_OVERRIDE): Define.
9176 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
9177 * config/i386/i386-protos.h (override_options): Remove.
9178 * config/i386/i386.c (override_options): Rename to
9179 ix86_option_override_internal. Make static. Comments referring
9180 to this function and callers changed.
9181 (ix86_option_override): New.
9182 (TARGET_OPTION_OVERRIDE): Define.
9183 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
9184 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
9185 * config/ia64/ia64.c (ia64_file_start): Update comment referring
9186 to ia64_override_options.
9187 * config/iq2000/iq2000-protos.h (override_options): Remove.
9188 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
9189 (override_options): Rename to iq2000_option_override. Make static.
9190 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
9191 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
9192 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
9193 (lm32_override_options): Rename to lm32_option_override. Make static.
9194 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
9195 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
9196 (m32r_option_override): New.
9197 (m32r_init): Update comment.
9198 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
9199 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
9200 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
9201 (m68hc11_override_options): Rename to m68hc11_option_override.
9202 Make static. Return void.
9203 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
9204 * config/m68k/m68k-protos.h (override_options): Remove.
9205 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
9206 (override_options): Rename to m68k_option_override. Make static.
9207 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
9208 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
9209 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
9210 (mcore_override_options): Rename to mcore_option_override. Make
9211 static.
9212 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
9213 * config/mep/mep-protos.h (mep_override_options): Remove.
9214 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
9215 (mep_override_options): Rename to mep_option_override. Make static.
9216 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
9217 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
9218 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
9219 (mmix_override_options): Rename to mmix_option_override. Make static.
9220 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
9221 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
9222 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
9223 (mn10300_override_options): Rename to mn10300_option_override.
9224 Make static.
9225 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
9226 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
9227 * config/moxie/moxie.c (moxie_override_options): Rename to
9228 moxie_option_override. Make static.
9229 (TARGET_OPTION_OVERRIDE): Define.
9230 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
9231 * config/picochip/picochip-protos.h (picochip_override_options):
9232 Remove. Update comment referring to picochip_override_options.
9233 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
9234 (picochip_override_options): Rename to picochip_option_override.
9235 Make static. Update comment and definition of
9236 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
9237 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
9238 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9239 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9240 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9241 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9242 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9243 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
9244 instead of OVERRIDE_OPTIONS.
9245 * config/rs6000/rs6000-modes.def: Update comment referring to
9246 rs6000_override_options.
9247 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
9248 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
9249 (rs6000_override_options): Rename to
9250 rs6000_option_override_internal. Make static. Commented
9251 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
9252 (rs6000_option_override): New.
9253 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
9254 instead of OVERRIDE_OPTIONS.
9255 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9256 * config/s390/s390-protos.h (override_options): Remove.
9257 * config/s390/s390.c (override_options): Rename to
9258 s390_option_override. Make static.
9259 (TARGET_OPTION_OVERRIDE): Define.
9260 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
9261 * config/score/score-protos.h (score_override_options): Remove.
9262 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
9263 (score_override_options): Rename to score_option_override. Make
9264 static.
9265 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
9266 Update comment referring to override_options.
9267 * config/score/score3.c (score3_override_options): Rename to
9268 score3_option_override.
9269 * config/score/score3.h (score3_override_options): Rename to
9270 score3_option_override.
9271 * config/score/score7.c (score7_override_options): Rename to
9272 score7_option_override.
9273 * config/score/score7.h (score7_override_options): Rename to
9274 score7_option_override.
9275 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
9276 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
9277 (sparc_override_options): Rename to sparc_option_override. Make
9278 static. Call SUBTARGET_OVERRIDE_OPTIONS.
9279 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
9280 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9281 instead of OVERRIDE_OPTIONS.
9282 * config/spu/spu-protos.h (spu_override_options): Remove.
9283 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
9284 (spu_override_options): Rename to spu_option_override. Make
9285 static.
9286 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
9287 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
9288 OVERRIDE_OPTIONS.
9289 * config/vax/vax-protos.h (override_options): Remove.
9290 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
9291 (override_options): Rename to vax_option_override. Make static.
9292 Call SUBTARGET_OVERRIDE_OPTIONS.
9293 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
9294 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
9295 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
9296 * config/xtensa/xtensa-protos.h (override_options): Remove.
9297 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
9298 (override_options): Rename to xtensa_option_override. Make static.
9299 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
9300
9301 2010-09-16 Richard Guenther <rguenther@suse.de>
9302
9303 PR tree-optimization/45623
9304 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
9305 (get_constraint_for_component_ref): If computing a constraint
9306 for the rhs handle type punning through unions.
9307 (get_constraint_for_address_of): Adjust.
9308 (get_constraint_for_1): Likewise.
9309 (get_constraint_for): Likewise.
9310 (get_constraint_for_rhs): New function.
9311 (do_structure_copy): Adjust.
9312 (make_constraint_to): Likewise.
9313 (handle_const_call): Likewise.
9314 (find_func_aliases): Likewise.
9315 (process_ipa_clobber): Likewise.
9316 (create_variable_info_for): Likewise.
9317
9318 2010-09-16 Ira Rosen <irar@il.ibm.com>
9319
9320 * tree-vectorizer.c: Fix documentation.
9321 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
9322 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
9323 is_pattern_stmt_p, is_loop_header_bb_p,
9324 stmt_vinfo_set_inside_of_loop_cost,
9325 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
9326 known_alignment_for_access_p): Likewise.
9327 * tree-vect-loop.c: Fix documentation.
9328 (vect_get_cost): Start function name from new line.
9329 * tree-vect-data-refs.c: Fix documentation.
9330 * tree-vect_stmts.c: Likewise.
9331 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
9332 (vectorizable_store): Free vec_oprnds if allocated.
9333 (vectorizable_condition): Initialize several variables to avoid
9334 warnings.
9335 * tree-vect-slp.c: Fix documentation.
9336
9337 2010-09-16 Richard Guenther <rguenther@suse.de>
9338
9339 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
9340 is TS_TRANSLATION_UNIT_DECL.
9341 (initialize_tree_contains_struct): Adjust.
9342 (all_translation_units): New global vector.
9343 (build_translation_unit_decl): New function.
9344 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
9345 (struct tree_translation_unit_decl): New.
9346 (all_translation_units): Declare.
9347 (union tree_node): Add translation_unit_decl member.
9348 (build_translation_unit_decl): Declare.
9349 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
9350 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
9351 New function.
9352 (pack_value_fields): Call it.
9353 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
9354 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
9355 (lto_output_tree_pointers): Call it.
9356 * lto-streamer-in.c (lto_input_tree_ref): Handle references
9357 to TRANSLATION_UNIT_DECL.
9358 (unpack_ts_translation_unit_decl_value_fields): New function.
9359 (unpack_value_fields): Call it.
9360 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
9361 (lto_input_tree_pointers): Call it.
9362 * lto-streamer.c (check_handled_ts_structures): Adjust.
9363 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
9364 * c-decl.c (all_translation_units): Remove.
9365 (pop_scope): Use build_translation_unit_decl.
9366 (collect_all_refs): Adjust.
9367 (for_each_global_decl): Likewise.
9368 (c_write_global_declarations): Likewise.
9369
9370 2010-09-16 Jakub Jelinek <jakub@redhat.com>
9371
9372 PR bootstrap/45686
9373 * fold-const.c (fold_checksum_tree): Change slot from const void **
9374 to void **, use CONST_CAST_TREE to store into *slot.
9375
9376 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
9377
9378 * config/i386/i386.md: Remove unneeded empty conditions and
9379 preparation statements from expanders.
9380 * config/i386/mmx.md: Ditto.
9381 * config/i386/sse.md: Ditto.
9382
9383 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
9384
9385 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
9386
9387 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
9388
9389 PR rtl-optimization/45593
9390 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
9391 insns that were in delay slots as stand-alone insns.
9392
9393 2010-09-15 Ian Lance Taylor <iant@google.com>
9394
9395 * incpath.c (remove_duplicates): If name is not a directory, issue
9396 a warning rather than an error.
9397
9398 2010-09-15 Martin Jambor <mjambor@suse.cz>
9399
9400 PR middle-end/45644
9401 * tree-sra.c (create_access): Check for bit-fields directly.
9402
9403 2010-09-15 Jakub Jelinek <jakub@redhat.com>
9404
9405 PR tree-optimization/45633
9406 * tree-cfg.c (verify_gimple_assign_binary): Allow
9407 MINUS_EXPR with lhs and rhs1 pointer vector and
9408 rhs2 sizetype vector.
9409 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
9410 or vector pointer use TER to optimize pointer subtraction.
9411
9412 2010-09-15 Jie Zhang <jie@codesourcery.com>
9413
9414 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
9415 fcmpd to fcmps.
9416
9417 2010-09-15 Ian Lance Taylor <iant@google.com>
9418
9419 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
9420
9421 2010-09-15 Ian Lance Taylor <iant@google.com>
9422
9423 * function.c (get_arg_pointer_save_area): Set
9424 arg_pointer_save_area_init to true.
9425
9426 2010-09-15 Martin Jambor <mjambor@suse.cz>
9427
9428 * tree-sra.c (generate_subtree_copies): Updated comment.
9429 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
9430 obtained from the statement iterator instead.
9431 (load_assign_lhs_subreplacements): Removed parameters lhs and
9432 right_offset, which is obtained from top_racc instead. Parameter lacc
9433 is now expected to be the root of the processed tree rather than root's
9434 first child. Updated all callers.
9435
9436 2010-09-15 Joseph Myers <joseph@codesourcery.com>
9437
9438 * config/pdp11/pdp11.c (register_move_cost): Rename to
9439 pdp11_register_move_cost.
9440 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
9441 pdp11_register_move_cost.
9442 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
9443 pdp11_register_move_cost instead of register_move_cost.
9444
9445 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
9446
9447 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
9448 pattern for vmovn. Expansion in case of non
9449 -mvectorize-with-neon-quad.
9450 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
9451 non- -mvectorize-with-neon-quad case.
9452 (move_lo_quad_<mode>): New expansion to vmov into low part.
9453 (move_hi_quad_<mode>): New expansion to vmov into high part.
9454 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
9455 (move_lo_quad_v4sf): Likewise.
9456 (move_lo_quad_v8hi): Likewise.
9457 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
9458 low part.
9459 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
9460 high part.
9461 * config/arm/iterators.md (ANY128): New mode iterator.
9462 (V_narrow_pack): New mode attribute.
9463 (V_HALF): Add attribute.
9464 (V_DOUBLE): Add attribute.
9465 (V_mode_nunits): Add attribute.
9466
9467 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
9468
9469 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
9470 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
9471
9472 2010-09-15 Olivier Hainque <hainque@adacore.com>
9473 Jose Ruiz <ruiz@adacore.com>
9474
9475 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
9476 * config/alpha/osf5-unwind.h: New file.
9477
9478 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
9479
9480 PR bootstrap/45672
9481 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
9482 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9483 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9484
9485 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9486
9487 * c-lang.h (struct lang_type): Add variable_size GTY option.
9488
9489 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
9490
9491 PR bootstrap/45672
9492 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9493
9494 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
9495
9496 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
9497 result isn't used in memory address.
9498
9499 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
9500
9501 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
9502 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
9503 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9504 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9505 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9506 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9507
9508 * target.def: Add units_per_simd_word to vectorize.
9509
9510 * targhooks.c (default_units_per_simd_word): New.
9511 * targhooks.h (default_units_per_simd_word): Likewise.
9512 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
9513 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9514 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
9515 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9516 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9517 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9518 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9519 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9520
9521 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
9522 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
9523
9524 * tree-vect-stmts.c: Don't include "tm_p.h".
9525 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
9526 with targetm.vectorize.units_per_simd_word.
9527
9528 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
9529
9530 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
9531
9532 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
9533 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9534
9535 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
9536 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
9537
9538 * doc/tm.texi: Regenerated.
9539
9540 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
9541
9542 * tree-vect-stmts.c: Include "tm_p.h".
9543
9544 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
9545 out of RTX_CODE.
9546
9547 2010-09-14 Martin Jambor <mjambor@suse.cz>
9548
9549 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
9550 location of generated statement. Changed all callers.
9551 (build_ref_for_model): New parameter loc which used to set location of
9552 all generated expressions. Changed all callers.
9553 (generate_subtree_copies): Likewise.
9554 (init_subtree_with_zero): Likewise.
9555 (sra_modify_expr): Set locations of all generated statements and
9556 expressions to the location the original statement.
9557 (handle_unscalarized_data_in_subtree): Likewise.
9558 (load_assign_lhs_subreplacements): Likewise.
9559 (sra_modify_constructor_assign): Likewise.
9560 (sra_modify_assign): Likewise.
9561
9562 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
9563
9564 PR target/45277
9565 PR target/45363
9566 PR target/45407
9567 * doc/install.texi (sparc*-*-*): New section.
9568 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
9569
9570 2010-09-14 Jakub Jelinek <jakub@redhat.com>
9571
9572 PR middle-end/45567
9573 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
9574 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
9575 (expand_builtin): Adjust caller.
9576 (expand_builtin_unop): Only use subtarget if it has the right mode.
9577
9578 2010-09-14 Tristan Gingold <gingold@adacore.com>
9579
9580 * configure.ac (plugins): Fix typos.
9581 * configure: Regenerate.
9582
9583 2010-09-14 Jakub Jelinek <jakub@redhat.com>
9584
9585 PR debug/45660
9586 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
9587 gen_type_die for function/method return type.
9588
9589 2010-09-14 Ira Rosen <irar@il.ibm.com>
9590
9591 PR tree-optimization/45470
9592 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9593 can throw an exception.
9594 * tree-vect-stmts.c (vectorizable_call): Likewise.
9595
9596 2010-09-14 DJ Delorie <dj@redhat.com>
9597
9598 PR target/44749
9599 * config/mep/mep-protos.h (mep_save_register_info,
9600 mep_reinit_regs, mep_init_regs): Declare.
9601
9602 * config/mep/mep.c: Move all target definitions to the end of the
9603 file to avoid the need for duplicate declarations.
9604 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
9605 (mep_reorg_erepeat): Remove unused variables.
9606 (mep_expand_builtin): Likewise.
9607
9608 * config/mep/mep-pragma.c: Don't include rtl.h.
9609 (INVALID_REGNUM): New.
9610 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
9611 functions.
9612 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
9613 Avoid enum/integer math.
9614
9615 2010-09-13 Joseph Myers <joseph@codesourcery.com>
9616
9617 PR target/44749
9618 * config/mep/t-mep (GTM_H): Add insn-constants.h.
9619 * config/mep/mep.c (mep_conditional_register_usage): Take no
9620 parameters.
9621 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
9622 prototype.
9623 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
9624 call to mep_conditional_register_usage.
9625
9626 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
9627
9628 PR debug/43937
9629 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
9630 the DECL as well.
9631
9632 2010-09-13 Jakub Jelinek <jakub@redhat.com>
9633
9634 PR rtl-optimization/45617
9635 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
9636 even if low N bits of X aren't known to be zero.
9637
9638 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
9639
9640 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
9641
9642 * config/i386/i386.c (initial_ix86_tune_features): Add
9643 X86_TUNE_VECTORIZE_DOUBLE.
9644 (ix86_units_per_simd_word): New.
9645
9646 * config/i386/i386.h (ix86_tune_indices): Add
9647 X86_TUNE_VECTORIZE_DOUBLE.
9648 (TARGET_VECTORIZE_DOUBLE): New.
9649 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
9650
9651 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
9652
9653 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
9654 (new_temp_expr_table): Allocate call_cnt vector.
9655 (free_temp_expr_table): Free it.
9656 (process_replaceable): Add call_cnt parm and set in vector.
9657 (find_replaceable_in_bb): Skip replacement if def/use span a call.
9658 (debug_ter): Dump call_cnt value, remove stderr uses.
9659
9660 2010-09-13 Jan Hubicka <jh@suse.cz>
9661
9662 * tree.c (build_zero_cst): New.
9663 * tree.h (build_zero_cst): Declare.
9664 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
9665 (get_base_constructor): Break out from ...
9666 (fold_const_aggregate_ref): Here; handle empty constructors.
9667
9668 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9669
9670 * config/arm/arm.md: (define_attr "conds"): Update comment.
9671 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
9672 conds attribute to clob.
9673 (arm_sync_compare_and_swapsi): Likewise.
9674 (arm_sync_compare_and_swap<mode>): Likewise.
9675 (arm_sync_lock_test_and_setsi): Likewise.
9676 (arm_sync_lock_test_and_set<mode>): Likewise.
9677 (arm_sync_new_<sync_optab>si): Likewise.
9678 (arm_sync_new_nandsi): Likewise.
9679 (arm_sync_new_<sync_optab><mode>): Likewise.
9680 (arm_sync_new_nand<mode>): Likewise.
9681 (arm_sync_old_<sync_optab>si): Likewise.
9682 (arm_sync_old_nandsi): Likewise.
9683 (arm_sync_old_<sync_optab><mode>): Likewise.
9684 (arm_sync_old_nand<mode>): Likewise.
9685
9686 2010-09-13 Olivier Hainque <hainque@adacore.com>
9687
9688 * fwprop.c (forward_propagate_and_simplify): Only attach a
9689 REG_EQUAL note to an insn if the destination is a register.
9690 * gcse.c (try_replace_reg): Likewise.
9691
9692 2010-09-13 Richard Guenther <rguenther@suse.de>
9693
9694 PR tree-optimization/45611
9695 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
9696 (copy_ref_info): Likewise.
9697
9698 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
9699
9700 PR debug/45604
9701 PR debug/45419
9702 PR debug/45408
9703 * tree-pretty-print.c (dump_generic_node): Disregard top-level
9704 types of MEM_REF pointer types to the same type.
9705
9706 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
9707
9708 PR rtl-optimization/41087
9709 * ifcvt.c (noce_get_condition): Don't allow conditions with
9710 side-effects.
9711
9712 2010-09-12 Anatoly Sokolov <aesok@post.ru>
9713
9714 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9715 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
9716 * config/frv/frv.c (frv_register_move_cost): Make static. Change
9717 arguments type to reg_class_t. Add mode argument.
9718 (frv_memory_move_cost): New.
9719 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
9720
9721 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
9722
9723 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
9724 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
9725
9726 2010-09-10 Jan Hubicka <jh@suse.cz>
9727
9728 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
9729
9730 2010-09-10 Richard Guenther <rguenther@suse.de>
9731
9732 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
9733 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
9734 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
9735 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
9736 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
9737
9738 2010-09-10 Richard Guenther <rguenther@suse.de>
9739
9740 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
9741 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
9742 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
9743 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
9744
9745 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
9746
9747 PR middle-end/45634
9748 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
9749 of string folding is of integral type.
9750
9751 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
9752
9753 * doc/invoke.texi (-x): Fix typo.
9754
9755 2010-09-10 Richard Guenther <rguenther@suse.de>
9756
9757 PR debug/44115
9758 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
9759 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9760 Output DECL_DEBUG_EXPR.
9761 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9762 Input DECL_DEBUG_EXPR.
9763
9764 2010-09-10 Richard Guenther <rguenther@suse.de>
9765
9766 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
9767 (build_index_type): Implement in terms of build_range_type.
9768 (build_range_type): Do not allow NULL_TREE type, improve
9769 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
9770 if we didn't hash.
9771 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
9772 create a distinct copy of the type.
9773
9774 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
9775
9776 * configure: Regenerated.
9777 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
9778
9779 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9780
9781 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
9782 * config/arm/cortex-a9-neon.md: New and partially generated.
9783 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
9784
9785 2010-09-10 Richard Guenther <rguenther@suse.de>
9786
9787 * tree.h (build_index_2_type): Remove.
9788 * tree.c (build_index_2_type): Remove.
9789
9790 2010-09-10 Jakub Jelinek <jakub@redhat.com>
9791
9792 PR bootstrap/45630
9793 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
9794 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
9795 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
9796
9797 2010-09-10 Martin Jambor <mjambor@suse.cz>
9798
9799 PR tree-optimization/44972
9800 * tree-sra.c: Include toplev.h.
9801 (build_ref_for_offset): Entirely reimplemented.
9802 (build_ref_for_model): New function.
9803 (build_user_friendly_ref_for_offset): New function.
9804 (analyze_access_subtree): Removed build_ref_for_offset check.
9805 (propagate_subaccesses_across_link): Likewise.
9806 (create_artificial_child_access): Use
9807 build_user_friendly_ref_for_offset.
9808 (propagate_subaccesses_across_link): Likewise.
9809 (ref_expr_for_all_replacements_p): Removed.
9810 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
9811 (sra_modify_expr): Use build_ref_for_model.
9812 (load_assign_lhs_subreplacements): Likewise.
9813 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
9814 checks for return values of build_ref_for_offset.
9815 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
9816 build_ref_for_offset.
9817 * ipa-prop.h: Include gimple.h
9818 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
9819 (ipa_analyze_indirect_call_uses): Update comment.
9820 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
9821 (IPA_PROP_H): Likewise.
9822
9823 2010-09-10 Martin Jambor <mjambor@suse.cz>
9824
9825 PR tree-optimization/44972
9826 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
9827 calling build_ref_for_offset.
9828
9829 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9830
9831 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
9832 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
9833 * config/arm/arm-tune.md: Regenerate.
9834 * doc/invoke.texi (ARM Options): Document it.
9835
9836 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
9837
9838 * config/i386/i386.c: Include sched-int.h.
9839 (TARGET_SCHED_DISPATCH): Defined.
9840 (TARGET_SCHED_DISPATCH_DO): Defined.
9841 (DISPATCH_WINDOW_SIZE): Defined.
9842 (MAX_DISPATCH_WINDOWS): Defined.
9843 (MAX_INSN): Defined.
9844 (MAX_IMM): Defined.
9845 (MAX_IMM_SIZE): Defined.
9846 (MAX_IMM_32): Defined.
9847 (MAX_IMM_64): Defined.
9848 (MAX_LOAD): Defined.
9849 (MAX_STORE): Defined.
9850 (BIG): Defined.
9851 (dispatch_group): New.
9852 (num_allowable_groups): New.
9853 (group_name): New.
9854 (sched_insn_info_s): New.
9855 (dispatch_windows_s): New.
9856 (imm_info_s): New.
9857 (dispatch_window_list): New.
9858 (dispatch_window_list1): New.
9859 (get_mem_group): New.
9860 (is_cmp): New.
9861 (dispatch_violation): New.
9862 (is_branch): New.
9863 (is_prefetch): New.
9864 (init_window): New.
9865 (allocate_window): New.
9866 (init_dispatch_sched): New.
9867 (is_end_basic_block): New.
9868 (process_end_window): New.
9869 (allocate_next_window): New.
9870 (find_constant_1): New.
9871 (find_constant): New.
9872 (get_num_immediates): New.
9873 (has_immediate): New.
9874 (get_insn_path): New.
9875 (get_insn_group): New.
9876 (count_num_restricted): New.
9877 (fits_dispatch_window): New.
9878 (add_insn_window): New.
9879 (add_to_dispatch_window): New.
9880 (debug_dispatch_window_file): New.
9881 (debug_dispatch_window): New.
9882 (debug_insn_dispatch_info_file): New.
9883 (debug_ready_dispatch): New.
9884 (do_dispatch): New.
9885 (has_dispatch): New.
9886 * config/i386/i386.h (debug_ready_dispatch): Declared.
9887 (debug_dispatch_window): Declared.
9888 * config/i386/i386.opt (mdispatch-scheduler): New flag.
9889 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
9890 (TARGET_SCHED_DISPATCH_DO): New.
9891 * doc/tm.texi: Regererated.
9892 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
9893 ready_remove_first_dispatch
9894 (schedule_block): Call targetm.sched.dispatch and
9895 targetm.sched.dispatch_do.
9896 (sched_init): Call targetm.sched.dispatch and
9897 targetm.sched.dispatch_do.
9898 (ready_remove_first_dispatch): New.
9899 (number_in_ready): New.
9900 (get_ready_element): New.
9901 * hooks.c (hook_bool_rtx_int_false): New.
9902 (hook_void_rtx_int): New.
9903 * hooks.h (hook_bool_rtx_int_false): Declared.
9904 (hook_void_rtx_int): Declared.
9905 * sched-int.h (IS_DISPATCH_ON): Defined.
9906 (IS_CMP): Defined.
9907 (DISPATCH_VIOLATION): Defined.
9908 (FITS_DISPATCH_WINDOW): Defined.
9909 (DISPATCH_INIT): Defined.
9910 (ADD_TO_DISPATCH_WINDOW): Defined.
9911 (get_ready_element): Declared.
9912 (number_in_ready): Declared.
9913 * target.def (dispatch): Defined.
9914 (dispatch_do): Defined.
9915
9916 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
9917
9918 PR middle-end/45312
9919 * reload1.c (merge_assigned_reloads): Remove.
9920 (reload_as_needed): Don't call it.
9921
9922 2010-09-09 Anatoly Sokolov <aesok@post.ru>
9923
9924 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
9925 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9926 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9927
9928 2010-09-09 Matthias Klose <doko@ubuntu.com>
9929
9930 PR bootstrap/43847
9931 * configure.ac (--enable-plugin): Enhance for cross builds.
9932 * configure: Regenerate.
9933
9934 2010-09-09 Jan Hubicka <jh@suse.cz>
9935
9936 PR tree-optimization/45598
9937 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
9938 string folding is of integral type.
9939
9940 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
9941
9942 * configure.ac (gnu_indirect_function): New test.
9943 * configure: Rebuilt.
9944 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
9945 * defaults.h (IFUNC_ASM_TYPE): Provide default.
9946
9947 * doc/extend.texi (Function Attributes): Document ifunc.
9948 * varasm.c (do_assemble_alias): Deal with ifuncs too.
9949
9950 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
9951
9952 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
9953 epilogue instruction move.
9954
9955 2010-09-09 Jan Hubicka <jh@suse.cz>
9956
9957 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
9958 command line to allow more partitions than input files.
9959
9960 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
9961
9962 PR middle-end/44554
9963 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
9964
9965 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
9966
9967 PR middle-end/40386
9968 * ira.c (pseudo_for_reload_consideration_p): Don't use
9969 flag_ira_share_spill_slots.
9970
9971 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9972
9973 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
9974 point zero operands that fit into a single GPR.
9975 (s390_preferred_reload_class): Ensure we only return general-purpose
9976 register classes.
9977 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
9978 floating-point zero operands into GPRs.
9979 ("*mov<mode>_64"): Likewise.
9980 ("mov<mode>"): Likewise using lhi.
9981
9982 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9983
9984 * config/s390/s390.c (s390_symref_operand_p): Return false for
9985 literal pool references.
9986 (s390_check_qrst_address): Update caller.
9987
9988 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
9989
9990 * config/i386/predicates.md (ext_register_operand): Check that
9991 SUBREG_REG is really a register before looking for REGNO.
9992 (reg_not_xmm0_operand): Handle SUBREGs correctly.
9993 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
9994
9995 2010-09-09 Jakub Jelinek <jakub@redhat.com>
9996
9997 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
9998 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
9999 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
10000 * print-rtl.c (print_rtx): Likewise.
10001 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10002 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
10003 for ADDR_EXPR with non-addressable object.
10004 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
10005 (struct dw_val_struct): Add v.val_decl_ref.
10006 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
10007 Handle DW_OP_GNU_implicit_pointer.
10008 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
10009 (get_ref_die_offset_label): New function.
10010 (implicit_ptr_descriptor): New function.
10011 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
10012 (loc_descriptor): Likewise.
10013 (gen_variable_die): Put even definitions into decl_die_table.
10014 (resolve_addr_in_expr): Resolve still unresolved
10015 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
10016 return false.
10017 (dwarf2out_finish): Call output_location_lists after outputting
10018 .debug_info and .debug_abbrev instead of before.
10019
10020 2010-09-09 Roland McGrath <roland@redhat.com>
10021
10022 * dwarf2out.c (DWARF_REF_SIZE): Define.
10023 (size_of_loc_descr): Use it for DW_OP_call_ref.
10024
10025 2010-09-09 Alan Modra <amodra@gmail.com>
10026
10027 * doc/invoke.text: Reinstate mcmodel=medium.
10028 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10029 CMODEL_MEDIUM as default.
10030 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
10031 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
10032 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
10033 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
10034
10035 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10036
10037 PR target/45250
10038 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
10039 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
10040 (builtin_longjmp): Likewise.
10041 (allocate_stack): Use hard_frame_pointer_rtx instead of
10042 frame_pointer_rtx.
10043 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
10044 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
10045 (pa_can_eliminate): Likewise.
10046 (TARGET_INTERNAL_ARG_POINTER): Define.
10047 (TARGET_CAN_ELIMINATE): Define.
10048 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
10049 pointer.
10050 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
10051 (pa_internal_arg_pointer, pa_can_eliminate,
10052 pa_initial_elimination_offset): New.
10053 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
10054 (HARD_FRAME_POINTER_REGNUM): Set to register three.
10055 (INITIAL_FRAME_POINTER_OFFSET): Delete.
10056 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
10057 Define.
10058 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
10059 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
10060 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
10061 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
10062 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
10063 new soft frame pointer.
10064 * config/pa/pa64-regs.h: Likewise.
10065
10066 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
10067
10068 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
10069 numerical constant.
10070 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
10071
10072 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
10073
10074 PR debug/45531
10075 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
10076
10077 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
10078
10079 PR debug/45419
10080 PR debug/45408
10081 * tree-pretty-print.c (dump_generic_node): Disregard top-level
10082 qualifiers in otherwise equal MEM_REF pointer types.
10083 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
10084 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
10085
10086 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10087
10088 PR target/44392
10089 * config/arm/arm.md (bswapsi2): Handle condition correctly
10090 for armv6 and optimize_size.
10091
10092 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10093
10094 PR other/18555
10095 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
10096
10097 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
10098
10099 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
10100 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
10101 ix86_expand_strlen, legitimate_pic_address_disp_p,
10102 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
10103 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
10104 ix86_check_movabs, ix86_secondary_memory_needed): Change function
10105 prototype to bool.
10106 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
10107 return_in_memory_ms_64, ix86_check_movabs,
10108 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
10109 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
10110 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
10111 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
10112 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
10113 ix86_secondary_memory_needed): Change to bool. Return
10114 "true" and "false" values.
10115 * config/i386/i386.md: Return "true" and "false" values.
10116
10117 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10118
10119 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10120 run_expensive_tests.
10121
10122 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10123
10124 * toplev.c (output_stack_usage): Use lbasename instead of basename.
10125
10126 2010-09-08 Martin Jambor <mjambor@suse.cz>
10127
10128 PR other/45443
10129 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
10130 at -O3.
10131
10132 2010-09-08 Richard Guenther <rguenther@suse.de>
10133
10134 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
10135 (visit): Adjust.
10136 (iterative_hash_gimple_type): Likewise.
10137 (gimple_type_hash): Likewise.
10138 (gimple_register_type): Likewise.
10139 (print_gimple_types_stats): Likewise.
10140 (free_gimple_type_tables): Likewise.
10141
10142 2010-09-08 Michael Matz <matz@suse.de>
10143
10144 PR tree-optimization/43430
10145 * tree-vect-stmts.c (vectorizable_condition): Support multiple
10146 copies for conditional statements if it's not part of a reduction.
10147
10148 2010-09-08 Michael Matz <matz@suse.de>
10149
10150 PR tree-optimization/33244
10151 * tree-ssa-sink.c (statement_sink_location): Don't sink into
10152 empty loop latches.
10153
10154 2010-09-08 Richard Guenther <rguenther@suse.de>
10155
10156 PR tree-optimization/45578
10157 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
10158 Be more careful when transfering alignment information to
10159 the new induction variable.
10160 (copy_ref_info): Likewise.
10161
10162 2010-09-08 Richard Guenther <rguenther@suse.de>
10163
10164 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
10165 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
10166
10167 2010-09-08 Arnaud Charlet <charlet@adacore.com>
10168
10169 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
10170 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
10171
10172 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
10173
10174 PR doc/45587
10175 * doc/md.texi: Fixed modes on several standard pattern names.
10176
10177 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
10178
10179 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
10180 (ashl<mode>3): ...this.
10181 (loongson_psra<V_suffix>): Rename to...
10182 (ashr<mode>3): ...this.
10183 (loongson_psrl<V_suffix>): Rename to...
10184 (lshr<mode>3): ...this.
10185 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
10186 (CODE_FOR_loongson_psllw): Define.
10187 (CODE_FOR_loongson_psrlh): Define.
10188 (CODE_FOR_loongson_psrlw): Define.
10189 (CODE_FOR_loongson_psrah): Define.
10190 (CODE_FOR_loongson_psraw): Define.
10191
10192 2010-09-07 Richard Henderson <rth@redhat.com>
10193
10194 * tree-vect-data-refs.c: Include tm_p.h.
10195 * Makefile.in (tree-vect-data-refs.o): Update deps.
10196 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
10197 Move delarations outside #ifdef RTX_CODE.
10198
10199 2010-09-07 Richard Henderson <rth@redhat.com>
10200
10201 * final.c (rest_of_handle_final): Unconditionally do
10202 output_function_exception_table before assemble_end_function.
10203
10204 2010-09-07 Jan Hubicka <jh@suse.cz>
10205
10206 * tree-inline.c (tree_inlinable_function_p): Do not test
10207 DECL_REPLACEABLE_P.
10208 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
10209 update_callee_keys, cgraph_decide_inlining): Test function availability.
10210 * cif-code.def (OVERWRITABLE): New code.
10211
10212 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
10213 Jack Howarth <howarth@bromo.med.uc.edu>
10214
10215 PR target/36502
10216 PR target/42313
10217 PR target/44651
10218 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
10219 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
10220 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
10221 MAX macro.
10222
10223 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
10224
10225 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
10226 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
10227
10228 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
10229
10230 * config.gcc: Don't append t-android for Android targets.
10231
10232 * config/t-android: Removed.
10233
10234 2010-09-07 Richard Henderson <rth@redhat.com>
10235
10236 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
10237 * doc/tm.texi.in: Add doc marker.
10238 * doc/tm.texi: Rebuild.
10239 * except.c (switch_to_exception_section): Always build.
10240 (output_one_function_exception_table): Move section switch,
10241 personality output, and label output ...
10242 (output_function_exception_table): ... here. Use the new
10243 personality hook.
10244
10245 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
10246 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
10247 TARGET_ASM_INIT_SECTIONS): New.
10248 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
10249 make static.
10250 (TARGET_ASM_UNWIND_EMIT): Update to match.
10251 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
10252
10253 * config/arm/arm.c (arm_asm_emit_except_personality): New.
10254 (arm_asm_init_sections): New.
10255 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
10256
10257 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10258
10259 * config/arm/arm.md: Remove unused variable.
10260
10261 2010-09-07 Anatoly Sokolov <aesok@post.ru>
10262
10263 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10264 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
10265 (m32r_memory_move_cost): New function.
10266
10267 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
10268
10269 * config.gcc: Append t-android for Android targets.
10270
10271 * config/t-android: New.
10272
10273 2010-09-07 Richard Henderson <rth@redhat.com>
10274
10275 * target.def (unwind_emit_before_insn): New hook.
10276 * doc/tm.texi.in: Add @hook marker for it.
10277 * doc/tm.texi: Rebuild.
10278 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
10279
10280 2010-09-07 Martin Jambor <mjambor@suse.cz>
10281
10282 PR fortran/43665
10283 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
10284 are any type attributes.
10285
10286 2010-09-07 Jan Hubicka <jh@suse.cz>
10287
10288 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
10289 array_ref_low_bound in string access folding.
10290
10291 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
10292
10293 PR target/45206
10294 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
10295 eh_return fixup sequence.
10296
10297 2010-09-07 Jan Hubicka <jh@suse.cz>
10298
10299 * gimple-fold.c (maybe_fold_reference): Verify that operand is
10300 gimple_min_invariant.
10301
10302 2010-09-07 Richard Guenther <rguenther@suse.de>
10303
10304 PR middle-end/45569
10305 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
10306 nor CONSTRUCTOR can trap.
10307 * tree-complex.c (update_complex_assignment): Update EH info.
10308
10309 2010-09-07 Richard Guenther <rguenther@suse.de>
10310
10311 PR middle-end/45569
10312 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
10313 * passes.c (execute_function_todo): Do not verify anything if
10314 we saw errors.
10315
10316 2010-09-07 Richard Guenther <rguenther@suse.de>
10317
10318 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
10319
10320 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
10321
10322 PR target/43137
10323 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
10324 New define_mode_attrs.
10325 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
10326 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
10327 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
10328 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
10329 Remove pool_range attribute.
10330 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
10331 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
10332 pool_range and neg_pool_range attributes.
10333 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
10334 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
10335 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
10336
10337 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
10338
10339 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
10340 check glibc.
10341
10342 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
10343
10344 PR target/22152
10345 * config/i386/mmx.md (*mov<mode>_internal_rex64,
10346 *mov<mode>_internal_avx, *mov<mode>_internal,
10347 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
10348 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
10349
10350 2010-09-06 Mark Mitchell <mark@codesourcery.com>
10351
10352 * c-typeck.c (do_warn_double_promotion): Remove.
10353 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
10354 Objective-C++ too.
10355
10356 2010-09-06 Anatoly Sokolov <aesok@post.ru>
10357
10358 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
10359 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
10360 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
10361 argument type to reg_class_t. Change result type to bool.
10362 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10363
10364 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
10365
10366 PR libobjc/19850
10367 * gthr-posix.h (__gthread_objc_thread_detach): Use
10368 _objc_thread_attribs when detaching a thread.
10369 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
10370
10371 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
10372
10373 PR target/45524
10374 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
10375 * configure: Regenerated.
10376
10377 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10378
10379 * combine.c (try_combine): Set subst_low_luid to i0.
10380
10381 2010-09-06 Richard Guenther <rguenther@suse.de>
10382
10383 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
10384 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
10385 (build_aligned_type): Declare.
10386 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
10387 (check_aligned_type): New function.
10388 (build_aligned_type): Likewise.
10389 * expr.c (expand_assignment): Handle misaligned stores via
10390 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
10391 (expand_expr_real_1): Likewise.
10392 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
10393 * tree-vect-stmts.c (vectorizable_store): Do not build
10394 MISALIGNED_INDIRECT_REF but initialize alignment information.
10395 (vectorizable_load): Likewise.
10396 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
10397 handling.
10398 * cfgexpand.c (expand_debug_expr): Likewise.
10399 * dwarf2out.c (loc_list_from_tree): Likewise.
10400 * fold-const.c (maybe_lvalue_p): Likewise.
10401 (operand_equal_p): Likewise.
10402 (build_fold_addr_expr_with_type_loc): Likewise.
10403 * gimplify.c (gimplify_addr_expr): Likewise.
10404 (gimplify_expr): Likewise.
10405 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10406 (verify_gimple_assign_single): Likewise.
10407 * tree-dump.c (dequeue_and_dump): Likewise.
10408 (tree_could_trap_p): Likewise.
10409 * tree-predcom.c (ref_at_iteration): Likewise.
10410 * tree-pretty-print.c (dump_generic_node): Likewise.
10411 (op_code_prio): Likewise.
10412 (op_symbol_code): Likewise.
10413 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10414 * tree-ssa-loop-im.c (for_each_index): Likewise.
10415 (gen_lsm_tmp_name): Likewise.
10416 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10417 (find_interesting_uses_address): Likewise.
10418 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10419 * tree-ssa-operands.c (get_expr_operands): Likewise.
10420 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10421 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10422 (ao_ref_init_from_vn_reference): Likewise.
10423 * tree.c (staticp): Likewise.
10424 (build1_stat): Likewise.
10425 (reference_alias_ptr_type): Likewise.
10426 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10427 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
10428 MISALIGNED_INDIRECT_REF handling.
10429
10430 2010-09-06 Richard Guenther <rguenther@suse.de>
10431
10432 PR tree-optimization/45534
10433 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
10434 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
10435 on the target.
10436 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
10437 valid on the target.
10438
10439 2010-09-06 Andreas Schwab <schwab@redhat.com>
10440
10441 * configure.ac: Quote argument of AC_MSG_WARN.
10442 * configure: Regenerate.
10443
10444 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
10445
10446 * sel-sched.c (move_cond_jump): Correct arguments to
10447 maybe_tidy_empty_bb.
10448 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10449
10450 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
10451
10452 PR rtl-optimization/44919
10453 * sel-sched.c (move_cond_jump): Remove assert, check that
10454 the several blocks case can only happen with mutually exclusive
10455 insns instead. Rewrite the movement code to support moving through
10456 several basic blocks.
10457
10458 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
10459
10460 * config/i386/i386.md (iptrsize): New mode attribute.
10461 (tp_seg): Ditto.
10462 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
10463 mode iterator.
10464 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
10465 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
10466 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
10467 (stack_tls_protect_set_<mode>): Ditto from
10468 stack_tls_protect_set_{si,di}. Use %@ to output segment register
10469 of thread base pointer load.
10470 (stack_tls_protect_test_<mode>): Ditto from
10471 stack_tls_protect_test_{si,di}. Use %@ to output segment register
10472 of thread base pointer load.
10473 (stack_protect_set): Rewrite using indirect functions.
10474 (stack_protect_test): Ditto.
10475 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
10476 (ix86_print_operand): Handle '@'.
10477
10478 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
10479
10480 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
10481 MINUS_EXPR.
10482
10483 2010-09-05 Mark Mitchell <mark@codesourcery.com>
10484
10485 * doc/invoke.texi: Document -Wdouble-promotion.
10486 * c-typeck.c (convert_arguments): Check for implicit conversions
10487 from float to double.
10488 (do_warn_double_promotion): New function.
10489 (build_conditional_expr): Use it.
10490 (build_binary_op): Likewise.
10491
10492 2010-09-05 Richard Guenther <rguenther@suse.de>
10493
10494 PR tree-optimization/45535
10495 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
10496 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
10497 dereferencing it.
10498 (indirect_refs_may_alias_p): Likewise.
10499
10500 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
10501
10502 * config/sh/sh.c (sh_option_override): Make static.
10503 Adjust comments. Declare.
10504 (sh_function_value_regno_p): Likewise.
10505 (sh_register_move_cost): Modify the arguments, make static.
10506 Adjust comments. Declare.
10507 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
10508 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10509 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
10510 REGISTER_MOVE_COST): Delete.
10511 * config/sh/sh-protos.h (sh_override_options): Delete.
10512 (sh_register_move_cost): Delete.
10513 (sh_function_value_regno_p): Delete.
10514
10515 2010-09-04 Anatoly Sokolov <aesok@post.ru>
10516
10517 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
10518 m32r_function_value_regno_p): New functions.
10519 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10520 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
10521 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
10522 FUNCTION_VALUE_REGNO_P): Remove.
10523
10524 2010-09-04 Jan Hubicka <jh@suse.cz>
10525
10526 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
10527 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
10528 fold_read_from_constant_string.
10529
10530 * gimple.h (canonicalize_constructor_val): Declare.
10531 * gimple-fold.c (canonicalize_constructor_val): New function.
10532 (get_symbol_constant_value):Use it.
10533 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10534
10535 2010-09-04 Jan Hubicka <jh@suse.cz>
10536
10537 * tree-switch-conversion.c (build_one_array): Set constructor to be
10538 static.
10539 * varpool.c (varpool_finalize_decl): Compute const_value_known.
10540
10541 2010-09-04 Richard Guenther <rguenther@suse.de>
10542
10543 PR bootstrap/45519
10544 * tree-flow.h (force_gimple_operand_1): Declare.
10545 (force_gimple_operand_gsi_1): Likewise.
10546 * gimplify.c (force_gimple_operand_1): New worker taking a
10547 gimple predicate for ...
10548 (force_gimple_operand): ... which now wraps it.
10549 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
10550 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
10551 last change.
10552 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
10553 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
10554 (create_mem_ref): Likewise.
10555
10556 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
10557
10558 * config/i386/predicates.md (sse_reg_operand): New predicate.
10559 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
10560 predicate for operand 1.
10561 (XFmode push splitter): Use fp_register_operand predicate
10562 for operand 1.
10563 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
10564 (SF-DF float_extend push splitter): Add reload_completed insn
10565 predicate.
10566 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
10567 MODEF mode macro. Add reload_completed insn predicate.
10568
10569 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
10570
10571 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
10572 (struct df_extract_ref): Remove.
10573 (union df_ref_d): Remove extract_ref member.
10574 (df_ref_create): Remove last three arguments.
10575 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
10576 * df-scan.c (df_ref_record): Remove last three arguments, do not
10577 pass them to df_ref_create_structure.
10578 (df_uses_record): Remove first and last three arguments. Replace
10579 first argument with DF_REF_REGULAR, adjust calls to remove the
10580 width, offset and mode. Always call recursively on the second
10581 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
10582 (df_ref_create_structure): Remove first argument.
10583 (struct df_scan_problem_data): Remove ref_extract_pool.
10584 (df_scan_free_internal): Do not free it.
10585 (df_scan_alloc): Do not allocate it.
10586 (df_ref_create): Remove last three arguments, do not pass them to
10587 df_ref_create_structure.
10588 (df_free_ref): Remove DF_REF_EXTRACT case.
10589 (df_notes_rescan): Adjust call to df_uses_record.
10590 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
10591 Remove DF_REF_EXTRACT case.
10592 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
10593 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
10594 and SUBREG definitions.
10595 (df_get_conditional_uses): Remove references to width/offset/mode,
10596 adjust call to df_ref_create_structure.
10597 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10598 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
10599 calls to df_uses_record and df_ref_record.
10600 * fwprop.c (update_df): Remove references to width/offset/mode,
10601 adjust call to df_ref_create.
10602
10603 2010-09-03 Jan Hubicka <jh@suse.cz>
10604
10605 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
10606 (build_cdtor_fns): Update use of build_cdtor.
10607
10608 2010-09-03 Joseph Myers <joseph@codesourcery.com>
10609
10610 * doc/options.texi (SeparateAlias): Document.
10611 * opt-functions.awk (switch_flags): Handle SeparateAlias.
10612 * opth-gen.awk: Generate enumeration names for options marked
10613 SeparateAlias, but not for those marked Ignore.
10614 * opts-common.c (generate_canonical_option): Don't output separate
10615 argument for options marked CL_SEPARATE_ALIAS.
10616 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
10617 * opts.h (CL_SEPARATE_ALIAS): New.
10618 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10619 CL_COMMON): Adjust definitions.
10620 * config/i386/darwin.opt, config/mips/sde.opt: New.
10621 * common.opt (fdump-final-insns): New.
10622 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10623 i386/darwin.opt.
10624 (mips*-sde-elf*): Add mips/sde.opt.
10625 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
10626 -mno-data-in-code and -mcode-xonly here.
10627 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
10628 * gcc.c (option_map): Add "j" to --dump entry.
10629 (translate_options): Don't translate -d to -foutput-class-dir= here.
10630
10631 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
10632
10633 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
10634 DR_IS_WRITE.
10635 (compute_all_dependences): Same.
10636 (create_rdg_edge_for_ddr): Same.
10637 * tree-data-ref.h (DR_IS_WRITE): New.
10638 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
10639 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
10640 (write_memrefs_written_at_least_once): Same.
10641 * tree-predcom.c (suitable_component_p): Same.
10642 (determine_roots_comp): Same.
10643 (execute_load_motion): Same.
10644 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
10645 (vect_enhance_data_refs_alignment): Same.
10646 (vect_analyze_group_access): Same.
10647
10648 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
10649
10650 PR testsuite/42843
10651 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
10652 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
10653
10654 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
10655
10656 * dwarf2out.c (file scope): Remove #if0'd code.
10657 (gen_subprogram_die): Same.
10658
10659 2010-09-03 Jakub Jelinek <jakub@redhat.com>
10660
10661 PR middle-end/45484
10662 * dwarf2out.c (flush_queued_reg_saves): Rename to...
10663 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
10664 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
10665 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
10666 * config/i386/i386.c (output_set_got): Call it.
10667
10668 2010-09-03 Michael Matz <matz@suse.de>
10669
10670 PR middle-end/45415
10671 * tree-sra.c (sra_modify_assign): If we modify the statement,
10672 say so.
10673
10674 * tree-ssa.c (verify_ssa): Check number of operands and links
10675 per statement to agree.
10676
10677 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
10678 Iain Sandoe <iains@gcc.gnu.org>
10679
10680 PR target/45476
10681 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
10682 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
10683 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10684
10685 2010-09-03 Richard Guenther <rguenther@suse.de>
10686
10687 * lto-streamer-out.c (output_function): Output function
10688 start and end loci.
10689 * lto-streamer-in.c (input_function): Input function start
10690 and end loci.
10691
10692 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10693
10694 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
10695 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
10696 * configure: Regenerate.
10697 * aclocal.m4: Regenerate.
10698
10699 2010-09-03 Jan Hubicka <jh@suse.cz>
10700
10701 PR lto/44812
10702 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
10703 on functions/variables in other partition.
10704
10705 2010-09-03 Jan Hubicka <jh@suse.cz>
10706
10707 * cgraph.h (struct varpool_node): Add const_value_known.
10708 (varpool_decide_const_value_known): Declare.
10709 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
10710 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
10711 (input_varpool_node): Restore const_value_known.
10712 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
10713 initializer folding.
10714 * ipa.c (ipa_discover_readonly_nonaddressable_var,
10715 function_and_variable_visibility): Compute const_value_known.
10716 * gimple-fold.c (get_symbol_constant_value): Use varpool for
10717 initializer folding.
10718 * varpool.c (varpool_decide_const_value_known): New function.
10719
10720 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
10721
10722 * config/i386/i386.md: Remove empty preparation statements
10723 from splitters.
10724
10725 2010-09-03 Jan Hubicka <jh@suse.cz>
10726
10727 * passes.c (rest_of_decl_compilation): Do not add local vars into
10728 varpool.
10729 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
10730 static or extern vars are in varpool.
10731 (varpool_finalize_decl): Sanity check that only static vars are
10732 finalized.
10733
10734 2010-09-03 Jakub Jelinek <jakub@redhat.com>
10735
10736 PR debug/45500
10737 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
10738 not just generic vectors with BLKmode.
10739
10740 2010-09-03 Richard Guenther <rguenther@suse.de>
10741
10742 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
10743 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
10744 * tree.h (TMR_SYMBOL): Remove.
10745 (TMR_BASE, TMR_OFFSET): Adjust.
10746 (TMR_INDEX2): New.
10747 * alias.c (ao_ref_from_mem): Use TMR_BASE.
10748 * builtins.c (get_object_alignment): Merge TMR_BASE and
10749 TMR_SYMBOL handling.
10750 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
10751 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
10752 handling. Also allow TARGET_MEM_REF as base address.
10753 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
10754 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
10755 base. Gimplify TMR_INDEX2.
10756 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
10757 * tree-dfa.c (get_ref_base_and_extent): Likewise.
10758 (get_addr_base_and_unit_offset): Likewise.
10759 * tree-eh.c (tree_could_trap_p): Likewise.
10760 * tree-pretty-print.c (dump_generic_node): Likewise.
10761 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
10762 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
10763 base to index2.
10764 (get_address_description): Reconstruct addres description
10765 from merged TMR_BASE and TMR_INDEX2.
10766 (maybe_fold_tmr): Fold propagated addresses.
10767 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
10768 MEM_REF and TARGET_MEM_REF paths.
10769 (indirect_refs_may_alias_p): Likewise.
10770 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
10771 instead of TMR_SYMBOL.
10772 * tree-ssa-operands.c (get_tmr_operands): Simplify.
10773 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
10774 according to changes ...
10775 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
10776 Split TARGET_MEM_REF into two fields plus the base.
10777 * tree.c (mem_ref_offset): Simplify.
10778 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
10779 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10780 Strip NOPs when folding MEM_REF addresses.
10781 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
10782 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
10783 (fold_gimple_assign): ... not here.
10784
10785 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
10786
10787 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
10788 * config/mips/mips.c (mips_shift_truncation_mask): New function.
10789 (TARGET_SHIFT_TRUNCATION_MASK): Define.
10790
10791 2010-09-02 Richard Henderson <rth@redhat.com>
10792
10793 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
10794 instead of readelf in the test.
10795 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
10796 in the .debug_frame section for coff targets.
10797 * configure: Rebuild.
10798
10799 2010-09-02 Anatoly Sokolov <aesok@post.ru>
10800
10801 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
10802 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
10803 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10804 (m32c_class_likely_spilled_p): Make static. Change argument type to
10805 reg_class_t. Change result type to bool.
10806
10807 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10808
10809 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
10810 to convert (double)(long) into a single FRIZ instruction or not
10811 when -ffast-math is used.
10812
10813 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
10814 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
10815 or FRIZ instruction if -ffast-math.
10816 * config/rs6000/rs6000.md (friz): Ditto.
10817
10818 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
10819
10820 2010-09-02 Joseph Myers <joseph@codesourcery.com>
10821
10822 * opth-gen.awk (quote, comma): Remove unused variables.
10823
10824 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
10825
10826 * arm.c (arm_override_options): Correct fall-back code to use
10827 SUBTARGET_CPU_DEFAULT.
10828
10829 2010-09-02 Julian Brown <julian@codesourcery.com>
10830
10831 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
10832 unspecs.
10833 (vcond<mode>, vcondu<mode>): New expanders.
10834 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
10835 comparisons with zero.
10836 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
10837 * config/arm/constraints.md (Dz): New constraint.
10838
10839 2010-09-02 Anatoly Sokolov <aesok@post.ru>
10840
10841 * target.def (class_likely_spilled_p): New hook.
10842 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
10843 * doc/tm.texi: Regenerate.
10844 * targhooks.c (default_class_likely_spilled_p): New function.
10845 * targhooks.h (default_class_likely_spilled_p): Declare.
10846 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
10847 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
10848 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
10849 Use fixed_reg_set instead of fixed_regs.
10850 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10851 * calls.c (avoid_likely_spilled_reg): Ditto.
10852 * ira-conflicts.c (ira_build_conflicts): Ditto.
10853 * ira.c (update_equiv_regs): Ditto.
10854 * mode-switching.c (create_pre_exit): Ditto.
10855 * regmove.c (find_matches): Ditto.
10856 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10857 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
10858 (small_register_class_p): New inline function.
10859 (push_secondary_reload, find_reusable_reload, find_reloads): Use
10860 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
10861
10862 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
10863 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
10864 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10865
10866 2010-09-02 Richard Guenther <rguenther@suse.de>
10867
10868 PR tree-optimization/44937
10869 PR tree-optimization/45412
10870 * ipa-split.c (split_function): Properly remove PHI nodes.
10871
10872 2010-09-02 Joseph Myers <joseph@codesourcery.com>
10873
10874 * opts.h (struct cl_option): Add warn_message field.
10875 (struct cl_decoded_option): Add warn_message field.
10876 * doc/options.texi (Ignore, Warn): Document.
10877 * opt-functions.awk (needs_state_p): Don't consider aliases or
10878 ignored options to need state saved.
10879 * optc-gen.awk: Handle Warn and Ignore.
10880 * opth-gen.awk: Output OPT_SPECIAL_ignore.
10881 * opts-common.c (decode_cmdline_option): Set warn_message field.
10882 Handle ignored options.
10883 (decode_cmdline_options_to_array, generate_option,
10884 generate_option_input_file): Set warn_message field.
10885 (read_cmdline_option): Generate warnings from warn_message field.
10886 Handle ignored options.
10887 * common.opt (Wunreachable-code, fargument-alias,
10888 fargument-noalias, fargument-noalias-global,
10889 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
10890 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
10891 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
10892 ftree-salias): Mark Ignore.
10893 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
10894 -mintel-syntax and -mno-intel-syntax here.
10895 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
10896 using Warn.
10897 * opts.c (common_handle_option): Don't handle options marked as
10898 ignored.
10899 (enable_warning_as_error): Handle ignored options.
10900
10901 2010-09-02 Joseph Myers <joseph@codesourcery.com>
10902
10903 PR driver/44076
10904 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
10905 alias_target fields.
10906 * opt-functions.awk (opt_sanitized_name): Don't handle
10907 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
10908 * optc-gen.awk: Generate alias fields.
10909 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
10910 Don't generate such constants for aliases.
10911 * opts-common.c (generate_canonical_option): New.
10912 (decode_cmdline_option): Handle aliases. Use
10913 generate_canonical_option for known options instead of copying the
10914 input option text.
10915 * doc/options.texi (Alias): Document.
10916 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
10917 fstack-check, specs): Mark as aliases.
10918 * gcc.c (driver_handle_option): Canonicalize -L options to joined
10919 arguments.
10920 (driver_handle_option): Don't handle OPT_specs.
10921 * opts.c (common_handle_option): Don't handle options marked as
10922 aliases.
10923 (enable_warning_as_error): Handle aliases.
10924 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
10925 OPT_Wlarger_than_eq.
10926 * tree-optimize.c (tree_rest_of_compilation): Use
10927 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
10928
10929 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
10930
10931 * config/i386/i386.md (nonmemory_operand): New mode attribute.
10932 (push memory peephole2): Macroize peepholes using SWI mode iterator.
10933 (move immediate to memory peephole2): Macroize peepholes using
10934 SWI124 mode iterator.
10935 (non-pairable NOT peephole2): Macroize peepholes using SWI124
10936 mode iterator.
10937 (simple lea add peephole2): Macroize peepholes using SWI48
10938 mode iterator.
10939 (simple lea mult peephole2): Ditto.
10940 (imul by 3,5,9 to lea peephole2): Ditto.
10941 (mov $-1, reg peephole2): Macroize peepholes using SWI248
10942 mode iterator.
10943 (imul $32bit_imm,mem,reg peephole2): Ditto.
10944 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
10945
10946 2010-09-02 Ian Bolton <ian.bolton@arm.com>
10947
10948 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
10949
10950 2010-09-02 Olivier Hainque <hainque@adacore.com>
10951
10952 PR middle-end/44763
10953 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
10954 (allocno_priority_compare_func): Use it instead of a straight
10955 difference computation over priorities.
10956
10957 2010-09-02 Andi Kleen <ak@linux.intel.com>
10958
10959 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
10960
10961 2010-09-02 Ira Rosen <irar@il.ibm.com>
10962
10963 * tree-vectorizer.h (get_later_stmt): New function.
10964 (vect_analyze_data_ref_dependences): Add argument.
10965 * tree-vect-loop.c (vect_analyze_loop): Update call to
10966 vect_analyze_data_ref_dependences.
10967 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
10968 New function.
10969 (vect_analyze_data_ref_dependence): Add argument for basic block
10970 dependencies. Check dependencies in basic block vectorization.
10971 (vect_analyze_data_ref_dependences): Add argument and update call to
10972 vect_analyze_data_ref_dependences.
10973 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
10974 (vect_bb_vectorizable_with_dependencies): New.
10975 (vect_slp_analyze_bb): Check dependencies in basic block.
10976 (vect_schedule_slp_instance): Insert stores before the last store in
10977 SLP instance.
10978
10979 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
10980
10981 PR target/45476
10982 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
10983 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10984
10985 2010-09-01 Jakub Jelinek <jakub@redhat.com>
10986
10987 PR middle-end/45458
10988 * bb-reorder.c (add_labels_and_missing_jumps): Treat
10989 bbs ending with throwing insns like blocks ending with a call.
10990 (fix_up_fall_thru_edges): Likewise.
10991
10992 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
10993
10994 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
10995 (m32c_function_arg_advance): Delete.
10996 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10997 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
10998 comments. Take a const_tree and a bool. Declare.
10999 (m32c_function_arg_advance): Likewise.
11000 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11001
11002 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11003
11004 PR target/45476
11005 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
11006 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
11007 * config/i386/mingw32.h: ... here.
11008
11009 2010-09-01 Andi Kleen <ak@linux.intel.com>
11010
11011 PR lto/45475
11012 * lto-streamer-in.c (lto_input_ts_target_option): Add.
11013 (lto_input_tree_pointers): Call lto_input_ts_target_option.
11014 * lto-streamer-out (lto_output_ts_target_option): Add.
11015 (lto_output_tree_pointers): Call lto_output_ts_target_option.
11016
11017 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
11018
11019 PR/target 45452
11020 * config/i386/cygwin.h: Change order of specified import libraries.
11021 * config/i386/mingw32.h: Likewise.
11022 * config/i386/t-cygwin: Likewise.
11023 * config/i386/t-mingw32: Likewise.
11024 * config/i386/t-mingw-w32: Likewise.
11025 * config/i386/t-mingw-w64: Likewise.
11026
11027 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11028
11029 * config/arm/neon-schedgen.ml (core): New type.
11030 (allCores): List of supported cores.
11031 (availability_table): Add supported cores.
11032 (collate_bypasses): Accept core as a parameter.
11033 (worst_case_latencies_and_bypasses): Accept core as a parameter.
11034 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
11035 and coreStr to get tune attribute and prefix for functional units.
11036 (emit_bypasses): Accept core name and use it.
11037 (calculate_per_core_availability_table): New.
11038 (filter_core): New.
11039 (calculate_core_availability_table): New.
11040 (main): Use calculate_core_availablity_table.
11041 * config/arm/cortex-a8-neon.md: Update copyright year.
11042 Regenerated from ml file and merged in.
11043 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
11044 cortex_a8_neon_mrc.
11045
11046 2010-09-01 Ian Bolton <ian.bolton@arm.com>
11047
11048 * Makefile.in (tree-switch-conversion.o): Update dependencies.
11049
11050 2010-09-01 Richard Guenther <rguenther@suse.de>
11051
11052 * alias.c (ao_ref_from_mem): Adjust.
11053 * builtins.c (get_object_alignment): Likewise.
11054 * cfgexpand.c (expand_debug_expr): Likewise.
11055 * gimple.c (get_base_address): Likewise.
11056 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11057 (get_addr_base_and_unit_offset): Likewise. Fix for
11058 both TMR_SYMBOL and TMR_BASE being set.
11059 * tree-eh.c (tree_could_trap_p): Likewise.
11060 * gimplify.c (gimplify_expr): Do not attempt to gimplify
11061 TMR_SYMBOL. Always gimplify TMR_BASE.
11062 * tree-cfg.c (verify_types_in_gimple_reference): Verify
11063 TMR_BASE if there is a TMR_SYMBOL.
11064 * tree-pretty-print.c (dump_generic_node): Adjust.
11065 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
11066 (tree_mem_ref_addr): Likewise.
11067 (create_mem_ref_raw): Likewise.
11068 (move_fixed_address_to_symbol): Likewise.
11069 (create_mem_ref): Likewise.
11070 (dump_mem_address): Likewise.
11071 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
11072 Fix for both TMR_SYMBOL and TMR_BASE being set.
11073 (indirect_refs_may_alias_p): Likewise.
11074 * tree-ssa-operands.c (get_tmr_operands): Adjust.
11075 * tree.def (TARGET_MEM_REF): Adjust documentation.
11076
11077 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11078
11079 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
11080 Rename from X86_TUNE_ADD_ESP_4.
11081 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
11082 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
11083 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
11084 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
11085 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
11086 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
11087 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
11088 * config/i386/i386.c (initial_ix86_tune_features)
11089 <X86_TUNE_SINGLE_POP>: Invert members.
11090 <X86_TUNE_DOUBLE_POP>: Ditto.
11091 <X86_TUNE_SINGLE_PUSH>: Ditto.
11092 <X86_TUNE_DOUBLE_PUSH>: Ditto.
11093 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
11094 No longer exported.
11095 (push peephole2 patterns): Macroize peepholes using P mode iterator.
11096 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
11097 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
11098 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
11099
11100 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
11101
11102 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
11103 a volatile LHS if the constructor has only one element.
11104
11105 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
11106
11107 PR bootstrap/45321
11108 * tree.c (stdarg_p): Make fntype parameter const.
11109 * tree.h (stdarg_p): Likewise.
11110 (function_args_iterator): Remove unused fntype field.
11111 (function_args_iter_init): Do not initialize fntype
11112 field. Make fntype parameter const.
11113
11114 2010-09-01 Richard Guenther <rguenther@suse.de>
11115
11116 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
11117 estimate.
11118 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
11119 (execute_vrp): Compute number of iteration estimates.
11120 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
11121 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
11122 * tree-data-ref.c (estimated_loop_iterations): Adjust.
11123 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
11124 Infer loop bounds from undefined behavior based on a new parameter.
11125 (estimate_numbers_of_iterations): Likewise.
11126 (scev_probably_wraps_p): Adjust.
11127 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
11128
11129 2010-09-01 Nick Clifton <nickc@redhat.com>
11130
11131 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
11132 where appropriate.
11133 (xstormy16_legitimate_address_p): Use true and false instead of 1
11134 and 0.
11135 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
11136 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
11137 magic constant 2.
11138 (xstormy16_expand_call): Fix comment at start of function.
11139
11140 2010-09-01 Nick Clifton <nickc@redhat.com>
11141
11142 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
11143 when pushing accumulator register.
11144 (rx_get_stack_layout): Always save call clobbered registers inside
11145 interrupt handlers.
11146 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
11147
11148 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
11149
11150 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
11151 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11152
11153 * libgcc-std.ver (GCC_4.6.0): Define version.
11154
11155 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
11156
11157 * tree-nested.c (convert_all_function_calls): Iterate until after the
11158 sum of static chains in the nest doesn't change.
11159
11160 2010-08-31 Anatoly Sokolov <aesok@post.ru>
11161
11162 * config/m32c/m32c.c (classes_intersect): Remove.
11163 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
11164 reg_classes_intersect_p instead of classes_intersect.
11165 (class_can_hold_mode): Change arguments type from enum reg_class to
11166 reg_class_t. Use reg_class_contents instead of class_contents.
11167 (m32c_register_move_cost): Make static. Change arguments type from
11168 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
11169 classes_intersect. Use reg_class_contents instead of class_contents.
11170 (m32c_memory_move_cost): Make static. Change arguments type from
11171 enum reg_class to reg_class_t.
11172 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11173 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11174 * config/m32c/m32c-protos.h (m32c_register_move_cost,
11175 m32c_memory_move_cost): Remove.
11176
11177 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11178
11179 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
11180 (arm_function_arg): Delete.
11181 (arm_needs_doubleword_align): Take a const_tree.
11182 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11183 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
11184 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
11185 (arm_function_arg): Make static. Take a const_tree and a bool.
11186 (arm_function_arg_advance): Likewise.
11187 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11188
11189 2010-08-31 Andi Kleen <ak@linux.intel.com>
11190
11191 * common.opt (fwhopr=): Update for -fwhopr=jobserver
11192 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
11193 * lto-wrapper.c (run_gcc): Add jobserver mode.
11194 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
11195 argument.
11196
11197 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
11198
11199 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
11200 (popsi1): Ditto.
11201 (*popdi1_epilogue): Ditto.
11202 (*popsi1_epilogue): Ditto.
11203 (popsi, popdi peephole2 patterns): Update peepholes for changed
11204 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
11205
11206 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
11207 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
11208
11209 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
11210 (override_options): Do not initialize removed ix86_gen_pop1.
11211 (gen_pop): New static function.
11212 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
11213 (release_scratch_register_on_entry): Ditto.
11214 (ix86_restore_reg_using_pop): Ditto.
11215 (ix86_expand_epilogue): Ditto.
11216
11217 2010-08-31 Jakub Jelinek <jakub@redhat.com>
11218
11219 PR middle-end/45461
11220 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
11221
11222 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11223
11224 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
11225 semicolons.
11226
11227 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11228
11229 * doc/extend.texi: Fix documentation of the return value of
11230 __builtin_choose_expr.
11231
11232 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11233
11234 * config/v850/v850-protos.h (function_arg): Delete.
11235 * config/v850/v850.h (FUNCTION_ARG): Delete.
11236 (FUNCTION_ARG_ADVANCE): Move code to...
11237 * config/v850/v850.c (v850_function_arg_advance): ...here.
11238 (v850_function_arg): Make static. Take a const_tree and a bool.
11239 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11240
11241 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11242
11243 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
11244 these...
11245 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
11246 ...and these...
11247 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
11248 ..to here..
11249 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
11250 ...and here.
11251 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11252
11253 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
11254
11255 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
11256 Delete.
11257 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11258 * config/rx/rx.c (rx_function_arg_size): Make static.
11259 (rx_function_arg): Likewise.
11260 (rx_function_arg_advance): New function.
11261 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11262
11263 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
11264
11265 * config/arm/arm.c (arm_override_options): Remove superfluous test.
11266 Fix indentation.
11267
11268 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
11269
11270 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
11271 (dwarf2out_decl) <CONST_DECL>: Likewise.
11272
11273 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
11274
11275 Stack usage support
11276 * common.opt (-fstack-usage): New option.
11277 * doc/invoke.texi (Debugging options): Document it.
11278 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
11279 allocate_dynamic_stack_space.
11280 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
11281 and propagate it to allocate_dynamic_stack_space.
11282 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
11283 * calls.c (initialize_argument_information): Pass TRUE as 4th
11284 argument to allocate_dynamic_stack_space.
11285 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
11286 to 1 when pushing a variable-sized argument onto the stack. Pass
11287 TRUE as 4th argument to allocate_dynamic_stack_space.
11288 Update current_function_pushed_stack_size.
11289 (emit_library_call_value_1): Likewise.
11290 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
11291 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
11292 attempt to find an upper bound. Remove redundant code for the
11293 SETJMP_VIA_SAVE_AREA case.
11294 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
11295 * function.h (struct stack_usage): New structure.
11296 (current_function_static_stack_size): New macro.
11297 (current_function_dynamic_stack_size): Likewise.
11298 (current_function_pushed_stack_size): Likewise.
11299 (current_function_dynamic_alloc_count): Likewise.
11300 (current_function_has_unbounded_dynamic_stack_size): Likewise.
11301 (current_function_allocates_dynamic_stack_space): Likewise.
11302 (struct function): Add new field 'su'.
11303 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
11304 add the value of the dynamic offset to the dynamic stack usage.
11305 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
11306 for variable-sized objects.
11307 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
11308 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
11309 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
11310 BUILT_IN_ALLOCA for variable-sized objects.
11311 * output.h (output_stack_usage): Declare.
11312 * toplev.c (stack_usage_file): New file pointer.
11313 (output_stack_usage): New function.
11314 (open_auxiliary_file): Likewise.
11315 (lang_dependent_init): Open file if flag_stack_usage is set.
11316 (finalize): Close file if stack_usage_file is not null.
11317 * tree.h (ALLOCA_FOR_VAR_P): New macro.
11318 * config/alpha/alpha.c (compute_frame_size): New function.
11319 (alpha_expand_prologue): Use it.
11320 (alpha_start_function): Likewise.
11321 (alpha_expand_epilogue): Likewise. Set stack usage info.
11322 * config/i386/i386.c (ix86_expand_prologue): Likewise.
11323 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11324 * config/mips/mips.c (mips_expand_prologue): Likewise.
11325 * config/pa/pa.c (hppa_expand_prologue): Likewise.
11326 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11327 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11328
11329 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
11330
11331 PR tree-optimization/45427
11332 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
11333 Handle the case that the exit is never taken correctly.
11334 (number_of_iterations_ne): Pass exit_must_be_taken to
11335 number_of_iterations_ne_max.
11336
11337 2010-08-30 Catherine Moore <clm@codesourcery.com>
11338
11339 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
11340 Infer -mdspr2 for the the 74K.
11341
11342 2010-08-30 Jakub Jelinek <jakub@redhat.com>
11343
11344 PR debug/45419
11345 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
11346
11347 PR middle-end/45423
11348 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
11349 and TRUTH_{AND,OR,XOR}_EXPR.
11350 * c-parser.c (c_parser_omp_atomic): Handle boolean
11351 {PRE,POST}_{INC,DEC}REMENT.
11352
11353 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
11354
11355 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
11356 (function_arg): Delete.
11357 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11358 (FUNCTION_INCOMING_ARG): Delete.
11359 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
11360 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
11361 and a bool.
11362 (function_arg): Rename to...
11363 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
11364 a bool.
11365 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
11366 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11367 (TARGET_FUNCTION_INCOMING_ARG): Define.
11368
11369 2010-08-30 Richard Guenther <rguenther@suse.de>
11370
11371 PR tree-optimization/21602
11372 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
11373 using points-to information.
11374
11375 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
11376
11377 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
11378
11379 2010-08-30 Richard Guenther <rguenther@suse.de>
11380
11381 PR tree-optimization/45449
11382 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
11383 variables.
11384
11385 2010-08-30 Joseph Myers <joseph@codesourcery.com>
11386
11387 * opts.h (CL_ERR_NEGATIVE): Define.
11388 * opts.c (unknown_option_callback): Don't postpone warnings for
11389 options marked with CL_ERR_NEGATIVE.
11390 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
11391 for negative versions of CL_REJECT_NEGATIVE options.
11392
11393 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
11394
11395 * config/i386/i386.md (zero_extendsidi2_1): Rename from
11396 zero_extendsidi2_32.
11397 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
11398 using SWI12 mode iterator.
11399 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
11400 to define_insn_and_split pattern.
11401 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
11402 using SWI24 mode iterator.
11403 (*zero_extendqi<mode>2_and): Macroize insn from
11404 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
11405 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
11406 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
11407 SWI24 mode iterator.
11408 (*zero_extendqi<mode>2_movzbl): Ditto from
11409 *zero_extendqi{hi,si}2_movzbl.
11410 (extendsidi2_1): Rename from extendsidi2_32.
11411 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
11412 SWI12 mode iterator.
11413
11414 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
11415
11416 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
11417 general purpose registers.
11418 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
11419 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
11420 with general purpose registers and memory operands. Add associated
11421 CCImode post-reload splitter.
11422 * config/ia64/div.md: Change BImode to CCImode throughout.
11423
11424 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
11425
11426 * config/ia64/ia64.md (cstorebi4): Fix thinko.
11427
11428 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
11429
11430 * config/picochip/picochip.c (reorder_var_tracking_notes): This
11431 function was dropping debug insns which caused PR45299.
11432
11433 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
11434
11435 * config/i386/sse.md (extsuffix): New code attribute.
11436 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
11437 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
11438 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
11439 and sse4_1_zero_extendv4qiv4si2.
11440 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
11441 and sse4_1_zero_extendv2qiv2di2.
11442 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
11443 and sse4_1_zero_extendv4hiv4si2.
11444 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
11445 and sse4_1_zero_extendv2hiv2di2.
11446 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
11447 and sse4_1_zero_extendv2siv2di2
11448
11449 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
11450 using any_extend code iterator.
11451 (*avx_<s>mulv8hi3_highpart): Macroize insn from
11452 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
11453 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
11454
11455 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
11456 gen_sse4_1_sign_extend* functions.
11457 (struct builtin_description bdesc_args): Ditto.
11458
11459 2010-08-27 Xinliang David Li <davidxl@google.com>
11460
11461 PR/45422
11462 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
11463 (iv_ca_set_no_cp): Update used inv expr count.
11464 (iv_ca_set_cp): Ditto.
11465 (iv_ca_new): Initialize new member.
11466 (iv_ca_free): Free memory.
11467
11468 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
11469
11470 * config/sh/sh-protos.h (sh_function_arg): Delete.
11471 (sh_function_arg_advance): Delete.
11472 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11473 (PASS_IN_REG_P): Eliminate cast.
11474 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
11475 const_tree and a bool.
11476 (sh_function_arg): Likewise.
11477 (sh_output_mi_thunk): Call sh_function_arg_advance) and
11478 sh_function_arg.
11479 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11480
11481 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
11482 Kaz Kojima <kkojima@gcc.gnu.org>
11483
11484 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
11485 when possible.
11486 (sh_expand_epilogue): Likewise.
11487 * config/sh/sh.md (movml_push_banked): New insn.
11488 (movml_pop_banked): Likewise.
11489
11490 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
11491
11492 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
11493 gen_regexp_oneof, gen_regexp_sequence): Use the string found
11494 in vector element 0 rather than the original string when there's
11495 only one element.
11496 (gen_regexp): Remove extra semicolon.
11497
11498 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
11499 thumb2_movsf_vfp): Set attribute "insn".
11500 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
11501 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
11502 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
11503 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
11504 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
11505 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
11506 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
11507 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
11508 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
11509 if_not_arith, if_arith_not, cond_move_not): Likewise.
11510
11511 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11512
11513 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
11514 New declaration.
11515 (rs6000_allocate_stack_temp): Ditto.
11516 (rs6000_expand_convert_si_to_sfdf): Ditto.
11517
11518 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
11519 line. Update the options set if power6 or power7 server/embedded
11520 type options are used. If we give a warning for no vsx under
11521 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
11522 (rs6000_allocate_stack_temp): New function to allocate a stack
11523 tempoary and adjust the address so it meets either REG+OFFSET or
11524 REG+REG addressing requirements.
11525 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
11526 that they can be used with the LFIWAX/LFIWZX instrucitons.
11527 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
11528 converting signed/unsigned SImode to either SFmode/DFmode.
11529
11530 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
11531 whether certain instructions can be generated.
11532 (TARGET_FCTIDZ): Ditto.
11533 (TARGET_STFIWX): Ditto.
11534 (TARGET_LFIWAX): Ditto.
11535 (TARGET_LFIWZX): Ditto.
11536 (TARGET_FCFIDS): Ditto.
11537 (TARGET_FCFIDU): Ditto.
11538 (TARGET_FCFIDUS): Ditto.
11539 (TARGET_FCTIDUZ): Ditto.
11540 (TARGET_FCTIWUZ): Ditto.
11541
11542 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
11543 (UNSPEC_FCTID): Ditto.
11544 (UNSPEC_LFIWAX): Ditto.
11545 (UNSPEC_LFIWZX): Ditto.
11546 (UNSPEC_FCTIWUZ): Ditto.
11547 (rreg): Use correct constraints.
11548 (SI_CONVERT_FP): New mode attribute for floating point conversion
11549 tests.
11550 (E500_CONVERT): Ditto.
11551 (lfiwax): New insns for converting from integer to floating point
11552 utilizing newer instructions. Attempt to optimize conversions
11553 that come from memory so that we don't load the value into a GPR,
11554 spill it to the stack and reload it into a FPR.
11555 (floatsi<mode>2_lfiwax): Ditto.
11556 (floatsi<mode>2_lfiwax_mem): Ditto.
11557 (floatsi<mode>2_lfiwax_mem2): Ditto.
11558 (lfiwzx): Ditto.
11559 (floatunssi<mode>2_lfiwzx): Ditto.
11560 (floatunssi<mode>2_lfiwzx_mem): Ditto.
11561 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
11562 (floatdidf2_mem): Ditto.
11563 (floatunsdidf2_fcfidu): Ditto.
11564 (floatunsdidf2_mem): Ditto.
11565 (floatunsdisf2): Ditto.
11566 (floatunsdisf2_fcfidus): Ditto.
11567 (floatunsdisf2_mem): Ditto.
11568 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
11569 Use FCFID on 32-bit hosts that support it.
11570 (floatsidf2_internal): Ditto.
11571 (floatunssisf2): Ditto.
11572 (floatunssidf2): Ditto.
11573 (floatunssidf2_internal): Ditto.
11574 (floatsisf2): Ditto.
11575 (floatdidf2): Ditto.
11576 (floatdidf2_fpr): Ditto.
11577 (floatunsdidf2): Ditto.
11578 (floatdisf2): Ditto.
11579 (floatdisf2_fcfids): Ditto.
11580 (floatdisf2_internal1): Ditto.
11581 (fixuns_truncsfsi2): Delete, merge into common pattern for both
11582 SF/DF. Add power7 support.
11583 (fix_truncsfsi2): Ditto.
11584 (fixuns_truncdfsi2): Ditto.
11585 (fixuns_truncdfdi2): Ditto.
11586 (fix_truncdfsi2): Ditto.
11587 (fix_truncdfsi2_internal): Ditto.
11588 (fix_truncdfsi2_internal_gfxopt): Ditto.
11589 (fix_truncdfsi2_mfpgpr): Ditto.
11590 (fctiwz): Ditto.
11591 (btruncdf2): Ditto.
11592 (btruncdf2_fpr): Ditto.
11593 (btructsf2): Ditto.
11594 (ceildf2): Ditto.
11595 (ceildf2_fpr): Ditto.
11596 (ceilsf2): Ditto.
11597 (floordf2): Ditto.
11598 (floordf2_fpr): Ditto.
11599 (floorsf2): Ditto.
11600 (rounddf2): Ditto.
11601 (rounddf2_fpr): Ditto.
11602 (roundsf2): Ditto.
11603 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
11604 (fix_trunc<mode>di2): Ditto.
11605 (fixuns_trunc<mode>si2): Ditto.
11606 (fixuns_trunc<mode>di2): Ditto.
11607 (fctiwz_<mode>): Ditto.
11608 (btrunc<mode>2): Ditto.
11609 (btrunc<mode>2_fpr): Ditto.
11610 (ceil<mode>2): Ditto.
11611 (ceil<mode>2_fpr): Ditto.
11612 (floor<mode>2): Ditto.
11613 (float<mode>2_fpr): Ditto.
11614 (round<mode>2): Ditto.
11615 (round<mode>2_fpr): Ditto.
11616 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
11617 (fixuns_trunc<mode>si2_stfiwx): Ditto.
11618 (fix_truncdfsi2_internal): Ditto.
11619 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
11620 converted value on stack, loaded into GPR, and then stored into
11621 the final destination.
11622 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
11623 FCTIDZ.
11624 (lrint<mode>di2): New insn, provide the lrint builtin functions.
11625 (ftruncdf2): Delete, unused.
11626 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
11627
11628 * config/rs6000/vsx.md (toplevel): Update copyright year.
11629 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
11630 (VSr3): Ditto.
11631
11632 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
11633 Jeremie Salvucci <jeremie.salvucci@free.fr>
11634
11635 * gengtype.c (output_type_enum): Test the right union member.
11636
11637 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
11638
11639 PR target/41484
11640 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
11641 operands for operand 1.
11642 (sse4_1_extendv4qiv4si2): Ditto.
11643 (sse4_1_extendv2qiv2di2): Ditto.
11644 (sse4_1_extendv4hiv4si2): Ditto.
11645 (sse4_1_extendv2hiv2di2): Ditto.
11646 (sse4_1_extendv2siv2di2): Ditto.
11647 (sse4_1_zero_extendv8qiv8hi2): Ditto.
11648 (sse4_1_zero_extendv4qiv4si2): Ditto.
11649 (sse4_1_zero_extendv2qiv2di2): Ditto.
11650 (sse4_1_zero_extendv4hiv4si2): Ditto.
11651 (sse4_1_zero_extendv2hiv2di2): Ditto.
11652 (sse4_1_zero_extendv2siv2di2): Ditto.
11653 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
11654 (*sse4_1_extendv4qiv4si2): Ditto.
11655 (*sse4_1_extendv2qiv2di2): Ditto.
11656 (*sse4_1_extendv4hiv4si2): Ditto.
11657 (*sse4_1_extendv2hiv2di2): Ditto.
11658 (*sse4_1_extendv2siv2di2): Ditto.
11659 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
11660 (*sse4_1_zero_extendv4qiv4si2): Ditto.
11661 (*sse4_1_zero_extendv2qiv2di2): Ditto.
11662 (*sse4_1_zero_extendv4hiv4si2): Ditto.
11663 (*sse4_1_zero_extendv2hiv2di2): Ditto.
11664 (*sse4_1_zero_extendv2siv2di2): Ditto.
11665
11666 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
11667
11668 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
11669 (mips_function_arg): Delete.
11670 (mips_function_arg_boundary): Take a const_tree.
11671 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
11672 (mips_arg_info): Likewise.
11673 (mips_setup_incoming_varargs): Call mips_function_arg_advance
11674 instead of FUNCTION_ARG_ADVANCE.
11675 (mips_function_arg_advance): Adjust prototype. Make static.
11676 (mips_function_arg): Likewise.
11677 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11678 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
11679
11680 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
11681
11682 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11683 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
11684 (function_arg): Delete.
11685 (function_arg_boundary): Take a const_tree.
11686 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
11687 (rs6000_spe_function_arg): Likewise.
11688 (rs6000_parm_start): Likewise.
11689 (rs6000_arg_size): Likewise.
11690 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
11691 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
11692 (rs6000_mixed_function_arg): Likewise.
11693 (function_arg): Rename to...
11694 (rs6000_function_arg): ...this.
11695 (function_arg_advance): Rename to...
11696 (rs6000_function_arg_advance_1): ...this
11697 (rs6000_function_arg_advance): New function. Call it.
11698 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
11699 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
11700 (rs6000_function_value): Likewise.
11701 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11702
11703 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11704
11705 * config/arm/arm.md (enabled): Test the value of arch_enabled
11706 rather than just using it.
11707
11708 2010-08-27 Olivier Hainque <hainque@adacore.com>
11709 Eric Botcazou <ebotcazou@adacore.com>
11710
11711 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
11712 cover all the possible offsets from this base.
11713 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
11714
11715 2010-08-26 Jakub Jelinek <jakub@redhat.com>
11716
11717 PR tree-optimization/44485
11718 * calls.c (flags_from_decl_or_type): For const or pure
11719 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
11720 together with ECF_CONST resp. ECF_PURE.
11721 * builtins.c (expand_builtin): Use flags_from_decl_or_type
11722 instead of querying flags directly.
11723 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
11724 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
11725
11726 2010-08-26 Richard Guenther <rguenther@suse.de>
11727
11728 PR tree-optimization/45255
11729 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
11730 and externals are also invariant.
11731
11732 2010-08-25 Jakub Jelinek <jakub@redhat.com>
11733
11734 PR rtl-optimization/44858
11735 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
11736 newi2pat, make sure they don't affect newpat.
11737
11738 PR rtl-optimization/45400
11739 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
11740 SUBREG_REG if both modes are of MODE_INT class.
11741
11742 2010-08-25 Julian Brown <julian@codesourcery.com>
11743
11744 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
11745 * config/arm/arm.md (generic_sched): No for Cortex-A5.
11746 (generic_vfp): Likewise.
11747 (cortex-a5.md): Include.
11748 * config/arm/cortex-a5.md: New.
11749
11750 2010-08-25 Richard Guenther <rguenther@suse.de>
11751
11752 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
11753 * gimple.c (gimple_get_alias_set): Remove special handling
11754 for pointers.
11755
11756 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
11757
11758 PR middle-end/45355
11759 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
11760 dead_or_set_p when computing i0_feeds_i2_n.
11761
11762 * combine.c (find_split_point): Undo canonicalization of multiply-add
11763 to (minus x (mult)) when it seems likely that this will increase the
11764 chances of a split.
11765
11766 2010-08-25 Richard Guenther <rguenther@suse.de>
11767
11768 PR lto/44562
11769 * lto-streamer.c (lto_record_common_node): Do not mess with
11770 TYPE_CANONICAL when not in lto.
11771 * gimple.c (gimple_register_type): Likewise.
11772
11773 2010-08-25 Richard Guenther <rguenther@suse.de>
11774
11775 PR tree-optimization/45316
11776 * tree-ssa-pre.c (eliminate): Properly clean EH info.
11777
11778 2010-08-25 Richard Guenther <rguenther@suse.de>
11779
11780 PR tree-optimization/45393
11781 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
11782 and clean EH info. Avoid SSA update.
11783 (execute_cse_sincos): Cleanup the CFG if it has changed.
11784
11785 2010-08-25 Richard Guenther <rguenther@suse.de>
11786
11787 PR middle-end/45379
11788 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
11789 TARGET_MEM_REF in alignment computation.
11790
11791 2010-08-25 Jakub Jelinek <jakub@redhat.com>
11792
11793 PR tree-optimization/45059
11794 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
11795 type conversions from newop{1,2}. Assert t is a comparison and
11796 newop{1,2} after the stripping are gimple vals.
11797
11798 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
11799
11800 * config/arm/iterators.md (VU, SE, V_widen_l): New.
11801 (V_unpack, US): New.
11802 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
11803 (vec_unpack<US>_lo_<mode>): Likewise.
11804 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
11805 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11806 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
11807 (vec_widen_<US>mult_hi_<mode>): Likewise.
11808 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
11809 (neon_vec_<US>mult_hi_<mode>"): Likewise.
11810 (neon_unpack<US>_<mode>): Widening move intermediate step for
11811 vectorizing without -mvectorize-with-neon-quad.
11812 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
11813 for vectorizing without -mvectorize-with-neon-quad.
11814 * config/arm/predicates.md (vect_par_constant_high): Check for
11815 high-half lanes of a vector.
11816 (vect_par_constant_low): Check for low-half lanes of a vector.
11817
11818 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
11819
11820 * tree-if-conv.c (struct ifc_dr): New.
11821 (IFC_DR): New.
11822 (DR_WRITTEN_AT_LEAST_ONCE): New.
11823 (DR_RW_UNCONDITIONALLY): New.
11824 (memref_read_or_written_unconditionally): Use the cached values
11825 when possible.
11826 (write_memref_written_at_least_once): Same.
11827 (if_convertible_loop_p): Initialize and free DR->aux fields.
11828
11829 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
11830
11831 * gimple.c (gimple_could_trap_p_1): Not static anymore.
11832 Pass an extra bool parameter include_mem.
11833 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
11834 (gimple_assign_rhs_could_trap_p): Same.
11835 * gimple.h (gimple_could_trap_p_1): Declared.
11836 * tree-data-ref.h (same_data_refs_base_objects): New.
11837 (same_data_refs): New.
11838 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
11839 (write_memrefs_written_at_least_once): New.
11840 (ifcvt_memrefs_wont_trap): New.
11841 (operations_could_trap): New.
11842 (ifcvt_could_trap_p): New.
11843 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
11844 Gets a vector of data refs.
11845 (if_convertible_stmt_p): Same.
11846 (if_convertible_loop_p_1): New.
11847 (if_convertible_loop_p): Call if_convertible_loop_p_1.
11848
11849 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
11850
11851 * common.opt (ftree-loop-if-convert-stores): New flag.
11852 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
11853 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
11854 the created statement before GSI.
11855 (if_convertible_phi_p): Allow virtual phi nodes when
11856 flag_loop_if_convert_stores is set.
11857 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
11858 Do not handle types that do not match is_gimple_reg_type.
11859 Remove loop and bb parameters. Call gimple_could_trap_p instead of
11860 when flag_loop_if_convert_stores is set, as LHS can contain
11861 memory refs.
11862 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
11863 to if_convertible_gimple_assign_stmt_p.
11864 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
11865 (replace_phi_with_cond_gimple_assign_stmt): Renamed
11866 predicate_scalar_phi. Do not handle virtual phi nodes.
11867 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
11868 Call predicate_scalar_phi.
11869 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
11870 just after the labels for flag_loop_if_convert_stores, otherwise
11871 insert the predicate in the end of the BB.
11872 (predicate_mem_writes): New.
11873 (combine_blocks): Call predicate_all_scalar_phis. When
11874 flag_loop_if_convert_stores is set, call predicate_mem_writes.
11875 (tree_if_conversion): Call mark_sym_for_renaming when
11876 flag_loop_if_convert_stores is set.
11877 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
11878 flag_loop_if_convert_stores is set.
11879
11880 2010-08-24 Anatoly Sokolov <aesok@post.ru>
11881
11882 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
11883 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
11884 (pa_function_value): Make static.
11885 (override_options): Rename to...
11886 (pa_option_override): ...this. Make static.
11887 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
11888 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
11889 TARGET_OPTION_OVERRIDE): Define.
11890 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
11891 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
11892 Remove.
11893 * config/pa/pa-protos.h (override_options): Remove.
11894
11895 2010-08-24 Richard Guenther <rguenther@suse.de>
11896
11897 PR middle-end/45379
11898 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
11899 if addr->index is NULL or zero.
11900 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
11901 TARGET_MEM_REF more properly.
11902 (indirect_ref_may_alias_decl_p): Likewise.
11903 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
11904 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
11905
11906 2010-08-23 Anatoly Sokolov <aesok@post.ru>
11907
11908 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
11909 (m32c_override_options): Rename to...
11910 (m32c_option_override): ...this. Make static.
11911 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
11912 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
11913 Remove.
11914 * config/m32c/m32c-protos.h (m32c_override_options,
11915 m32c_function_value_regno_p): Remove.
11916
11917 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
11918
11919 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
11920 Fix a typo in a previous commit.
11921
11922 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
11923
11924 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
11925 Pre-initialize innerloop_iters to one.
11926
11927 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
11928
11929 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
11930 existing static function global.
11931
11932 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
11933 is changed to global.
11934
11935 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
11936 may_be_nonaddressable_p on base, and don't collect this reference
11937 if the address of the base could not be taken.
11938
11939 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11940
11941 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
11942 enable the compiler to autovectorize mathmetical functions for
11943 power7 using the Mathematical Acceleration Subsystem library.
11944
11945 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
11946 handle which vector math library we have.
11947 (rs6000_override_options): Add -mveclibabi=mass support.
11948 (rs6000_builtin_vectorized_libmass): New function to handle auto
11949 vectorizing math functions that are in the MASS library.
11950 (rs6000_builtin_vectorized_function): Call it.
11951
11952 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11953 -mveclibabi=mass.
11954
11955 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11956
11957 PR boehm-gc/34544
11958 * gthr-posix.h (__gthread_active_init): Delete.
11959 (__gthread_active_p): Do activity check here.
11960 Don't include errno.h on hppa-hpux. Update comment.
11961 * gthr-posix95.h (__gthread_active_init): Delete.
11962 (__gthread_active_p): Do activity check here.
11963 Don't include errno.h on hppa-hpux. Update comment.
11964 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
11965 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
11966 add -lpthread when -mt or -pthread is specified.
11967 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
11968 (LINK_GCC_C_SEQUENCE_SPEC): Define.
11969 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
11970 (stublib.c, pthread_default_stacksize_np-stub.o,
11971 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
11972 $(T)libgcc_stub.a): Add methods.
11973 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
11974 (stublib.c, pthread_default_stacksize_np-stub.o,
11975 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
11976 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11977 pthread_mutex_unlock): New stubs.
11978
11979 2010-08-22 Joseph Myers <joseph@codesourcery.com>
11980
11981 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
11982 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
11983 options.
11984 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
11985 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
11986 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
11987 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
11988 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
11989 "-l".
11990 * cppspec.c: Include opts.h.
11991 (lang_specific_driver): Use cl_decoded_option structures.
11992 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
11993 * doc/tm.texi: Regenerate.
11994 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
11995 (driver_handle_option): Allow driver options needing no special
11996 processing.
11997 (process_command): Decode options before call to
11998 lang_specific_driver. Pass decoded options to
11999 lang_specific_driver.
12000 * gcc.h (lang_specific_driver): Update prototype.
12001 * gccspec.c: Include opts.h.
12002 (lang_specific_driver): Use cl_decoded_option structures.
12003 * opts-common.c (option_ok_for_language, generate_option,
12004 generate_option_input_file): New.
12005 (decode_cmdline_option): Use option_ok_for_language.
12006 (decode_cmdline_options_to_array): Use generate_option_input_file.
12007 (handle_generated_option): Use generate_option.
12008 * opts.h (generate_option, generate_option_input_file): Declare.
12009
12010 2010-08-22 Anatoly Sokolov <aesok@post.ru>
12011
12012 * config/mips/mips.c (mips_override_options): Rename to...
12013 (mips_option_override): ...this. Make static.
12014 (TARGET_OPTION_OVERRIDE): Define.
12015 (mips_in_small_data_p): Update comment.
12016 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
12017 (FIXED_REGISTERS): Update comment.
12018 * config/mips/mips-protos.h (mips_override_options): Remove.
12019
12020 2010-08-21 Olivier Hainque <hainque@adacore.com>
12021
12022 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
12023
12024 2010-08-21 Olivier Hainque <hainque@adacore.com>
12025
12026 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
12027 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
12028
12029 2010-08-20 Jan Hubicka <jh@suse.cz>
12030
12031 * tree-pass.h (pass_ipa_cdtor_merge): New function.
12032 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
12033 heap allocated.
12034 (record_cdtor_fn): Move to ipa.c; do not test for
12035 have_ctors_dtors.
12036 (build_cdtor): Move to ipa.c; add code avoiding construction
12037 when target have ctors/dtors and there is only one ctor/dtor at given
12038 priority.
12039 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
12040 sort; reverse order of constructors.
12041 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
12042 (cgraph_finalize_function): Do not call record_cdtor_fn.
12043 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
12044 (cgraph_build_static_cdtor): Move to ipa.c.
12045 * ipa.c: Include target.h and tree-iterator.h.
12046 (cgraph_build_static_cdtor, static_ctors, static_dtors,
12047 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
12048 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
12049 pass_ipa_cdtor_merge): New.
12050 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
12051 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
12052 bounds access.
12053
12054 2010-08-20 Jan Hubicka <jh@suse.cz>
12055
12056 PR c++/45307
12057 PR c++/17736
12058 * cgraph.h (cgraph_only_called_directly_p,
12059 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
12060 static cdtors.
12061 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
12062 are not needed.
12063 (cgraph_finalize_function): Static cdtors are reachable.
12064 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
12065
12066 2010-08-20 Jan Hubicka <jh@suse.cz>
12067
12068 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
12069 flag_wpa.
12070 * lto-streamer-out.c (lto_output): Likewise.
12071 * passes.c (ipa_write_optimization_summaries): Initialize statement
12072 uids.
12073
12074 2010-08-20 Olivier Hainque <hainque@adacore.com>
12075
12076 * tree.h (alias_diag_flags): New enum.
12077 (alias_pair): Add an 'emitted_diags' field.
12078 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
12079 (assemble_alias): Initialize emitted_diags of new pairs.
12080
12081 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
12082
12083 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12084 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12085 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12086 (STACK_CHECK_PROTECT): Define.
12087 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
12088 (output_probe_stack_range): Likewise.
12089 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
12090 builtin stack checking is enabled.
12091 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
12092 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12093 (probe_stack_range): New insn.
12094
12095 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
12096
12097 PR target/45336
12098 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
12099 short first.
12100
12101 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
12102 char first.
12103
12104 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12105
12106 PR target/45336
12107 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
12108 to cover zero extension into 64-bit register.
12109 (*sse2_pextrw): Likewise.
12110 (*sse4_1_pextrd_zext): New insn.
12111
12112 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
12113
12114 revert r163410, partially revert r163267.
12115 * config/rs6000/darwin.h (LIB_SPEC): Remove.
12116 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
12117 Darwin versions.
12118
12119 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12120
12121 PR middle-end/44974
12122 * builtins.c (expand_builtin): Don't optimize away
12123 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
12124
12125 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
12126
12127 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
12128 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
12129 alternative 1 of operand 2.
12130
12131 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12132 Paolo Bonzini <bonzini@gnu.org>
12133
12134 * simplify-rtx.c (simplify_unary_operation_1): Optimize
12135 (sign_extend (zero_extend (...)) and
12136 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
12137
12138 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12139
12140 PR rtl-optimization/45353
12141 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
12142 after bb_note is a BARRIER.
12143
12144 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
12145
12146 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
12147 linking libgcc.a.
12148
12149 2010-08-20 Jakub Jelinek <jakub@redhat.com>
12150 Michael Matz <matz@suse.de>
12151
12152 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
12153
12154 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12155
12156 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
12157 (ggc_mark_roots): ...here.
12158
12159 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
12160
12161 * vec.h (FOR_EACH_VEC_ELT): Define.
12162 * c-decl.c: Use it.
12163 * cfgloop.c: Likewise.
12164 * cfgloopmanip.c: Likewise.
12165 * cgraph.c: Likewise.
12166 * cgraphunit.c: Likewise.
12167 * combine.c: Likewise.
12168 * config/bfin/bfin.c: Likewise.
12169 * config/mips/mips.c: Likewise.
12170 * config/rs6000/rs6000.c: Likewise.
12171 * dbxout.c: Likewise.
12172 * df-scan.c: Likewise.
12173 * dominance.c: Likewise.
12174 * dse.c: Likewise.
12175 * dwarf2out.c: Likewise.
12176 * except.c: Likewise.
12177 * expr.c: Likewise.
12178 * function.c: Likewise.
12179 * gcse.c: Likewise.
12180 * genattr.c: Likewise.
12181 * ggc-common.c: Likewise.
12182 * gimplify.c: Likewise.
12183 * graphite-blocking.c: Likewise.
12184 * graphite-clast-to-gimple.c: Likewise.
12185 * graphite-dependences.c: Likewise.
12186 * graphite-interchange.c: Likewise.
12187 * graphite-poly.c: Likewise.
12188 * graphite-scop-detection.c: Likewise.
12189 * graphite-sese-to-poly.c: Likewise.
12190 * graphite.c: Likewise.
12191 * haifa-sched.c: Likewise.
12192 * ifcvt.c: Likewise.
12193 * implicit-zee.c: Likewise.
12194 * ipa-prop.c: Likewise.
12195 * ipa-struct-reorg.c: Likewise.
12196 * ipa.c: Likewise.
12197 * ira-build.c: Likewise.
12198 * ira-color.c: Likewise.
12199 * ira-emit.c: Likewise.
12200 * lambda-code.c: Likewise.
12201 * loop-invariant.c: Likewise.
12202 * loop-unroll.c: Likewise.
12203 * lower-subreg.c: Likewise.
12204 * lto-cgraph.c: Likewise.
12205 * lto-opts.c: Likewise.
12206 * lto-streamer-in.c: Likewise.
12207 * lto-streamer-out.c: Likewise.
12208 * lto-streamer.c: Likewise.
12209 * lto-symtab.c: Likewise.
12210 * matrix-reorg.c: Likewise.
12211 * opts.c: Likewise.
12212 * predict.c: Likewise.
12213 * print-tree.c: Likewise.
12214 * sdbout.c: Likewise.
12215 * sel-sched-dump.c: Likewise.
12216 * sel-sched-ir.c: Likewise.
12217 * sel-sched.c: Likewise.
12218 * sese.c: Likewise.
12219 * stor-layout.c: Likewise.
12220 * tree-cfg.c: Likewise.
12221 * tree-cfgcleanup.c: Likewise.
12222 * tree-chrec.c: Likewise.
12223 * tree-data-ref.c: Likewise.
12224 * tree-emutls.c: Likewise.
12225 * tree-inline.c: Likewise.
12226 * tree-into-ssa.c: Likewise.
12227 * tree-loop-distribution.c: Likewise.
12228 * tree-loop-linear.c: Likewise.
12229 * tree-mudflap.c: Likewise.
12230 * tree-outof-ssa.c: Likewise.
12231 * tree-parloops.c: Likewise.
12232 * tree-predcom.c: Likewise.
12233 * tree-pretty-print.c: Likewise.
12234 * tree-scalar-evolution.c: Likewise.
12235 * tree-ssa-live.c: Likewise.
12236 * tree-ssa-loop-im.c: Likewise.
12237 * tree-ssa-loop-ivcanon.c: Likewise.
12238 * tree-ssa-loop-ivopts.c: Likewise.
12239 * tree-ssa-loop-manip.c: Likewise.
12240 * tree-ssa-loop-niter.c: Likewise.
12241 * tree-ssa-loop-prefetch.c: Likewise.
12242 * tree-ssa-phiprop.c: Likewise.
12243 * tree-ssa-pre.c: Likewise.
12244 * tree-ssa-reassoc.c: Likewise.
12245 * tree-ssa-sccvn.c: Likewise.
12246 * tree-ssa-structalias.c: Likewise.
12247 * tree-ssa.c: Likewise.
12248 * tree-vect-data-refs.c: Likewise.
12249 * tree-vect-loop-manip.c: Likewise.
12250 * tree-vect-loop.c: Likewise.
12251 * tree-vect-patterns.c: Likewise.
12252 * tree-vect-slp.c: Likewise.
12253 * tree-vect-stmts.c: Likewise.
12254 * tree-vrp.c: Likewise.
12255 * tree.c: Likewise.
12256 * value-prof.c: Likewise.
12257 * var-tracking.c: Likewise.
12258 * varasm.c: Likewise.
12259 * vmsdbgout.c: Likewise.
12260
12261 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
12262 Richard Guenther <richard.guenther@gmail.com>
12263
12264 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
12265 copy the src value and return a copy.
12266 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
12267 (C++ Volatiles): Adjust to describe C++ semantics only.
12268
12269 2010-08-20 Joseph Myers <joseph@codesourcery.com>
12270
12271 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
12272 be zero or nonzero.
12273 * doc/tm.texi: Regenerate.
12274 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
12275 * df-scan.c (df_get_exit_block_use_set), reginfo.c
12276 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
12277 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
12278 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
12279 to 1.
12280
12281 2010-08-20 Olivier Hainque <hainque@adacore.com>
12282
12283 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
12284 an extra nop past a sibling call at the very end.
12285
12286 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
12287
12288 PR bootstrap/45350
12289 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
12290 a comment.
12291
12292 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
12293
12294 * target.def (function_arg, function_incoming_arg): Remove const
12295 qualifier on CUMULATIVE_ARGS parameter.
12296 * targhooks.h (default_function_arg, default_function_incoming_arg):
12297 Likewise.
12298 * targhooks.c (default_function_arg, default_function_incoming_arg):
12299 Likewise.
12300 * config/i386/i386.c (ix86_function_arg): Likewise.
12301
12302 2010-08-19 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR target/45336
12305 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
12306 SIGN_EXTENDs or ZERO_EXTENDs.
12307
12308 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
12309
12310 PR target/42172
12311 * combine.c (combine_validate_cost): New arg I0. All callers changed.
12312 Take its cost into account if nonnull.
12313 (insn_a_feeds_b): New static function.
12314 (combine_instructions): Look for four-insn combinations.
12315 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
12316 them into account when computing all_adjacent and looking for other
12317 uses.
12318 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
12319 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
12320 (try_combine): New arg I0. Handle four-insn combinations.
12321 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
12322 like ELIM_I1.
12323
12324 2010-08-19 Jason Merrill <jason@redhat.com>
12325
12326 PR c++/45307
12327 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
12328 if ctor is empty.
12329 (gimplify_modify_expr_rhs): Adjust.
12330
12331 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
12332
12333 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
12334 bitmap_bit_p.
12335 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
12336 * dominance.c (iterate_fix_dominators): Likewise.
12337 * dse.c (set_usage_bits): Likewise.
12338 (set_position_unneeded, record_store): Likewise.
12339 * gimple-fold.c (get_maxval_strlen): Likewise.
12340 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
12341 * ipa-inline.c (update_caller_keys): Likewise.
12342 * ipa-split.c (verify_non_ssa_vars): Likewise.
12343 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
12344 (close_type_exposed_parameter, close_type_full_escape): Likewise.
12345 (close_addressof_down): Likewise.
12346 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
12347 (setup_allocno_left_conflicts_size): Likewise.
12348 (ira_reassign_conflict_allocnos): Likewise.
12349 (ira_reassign_pseudos): Likewise.
12350 * ira-emit.c (change_loop): Likewise.
12351 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
12352 * lto-streamer-out.c (write_symbol): Likewise.
12353 * predict.c (expr_expected_value_1): Likewise.
12354 * regstat.c (regstat_bb_compute_ri): Likewise.
12355 * sel-sched.c (create_block_for_bookkeeping): Likewise.
12356 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
12357 * stmt.c (expand_case): Likewise.
12358 * tree-eh.c (emit_eh_dispatch): Likewise.
12359 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
12360 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
12361 Likewise.
12362 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
12363 (rdg_build_components): Likewise.
12364 * tree-object-size.c (collect_object_sizes_for): Likewise.
12365 * tree-sra.c (convert_callers): Likewise.
12366 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
12367 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
12368 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
12369
12370 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
12371
12372 * config/i386/i386.md (*lea_1): Use P mode iterator.
12373 (lea add splitter): Also handle DImode operands.
12374 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
12375 predicate. Do not use ix86_lea_for_add_ok.
12376 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
12377 (lea ashift splitter): Also handle DImode operands.
12378 (DImode lea ashift splitter): Remove splitter.
12379
12380 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
12381
12382 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
12383 ix86_binary_operator_ok.
12384
12385 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
12386
12387 PR rtl-optimization/44691
12388 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
12389 is not a register.
12390
12391 2010-08-19 Ian Bolton <ian.bolton@arm.com>
12392
12393 PR target/45070
12394 * config/arm/arm.c (arm_output_epilogue): Ensure that return
12395 value of size 1-3 is handled correctly.
12396
12397 2010-08-19 Ian Bolton <ian.bolton@arm.com>
12398
12399 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
12400 type for the conditional has wide enough range.
12401
12402 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
12403
12404 PR target/45327
12405 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
12406 ix86_binary_operator_ok.
12407
12408 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
12409
12410 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
12411 <default>: Swap operands 1 and 2 for alternative 2 to use existing
12412 code to output insn mnemonic. Fix comment.
12413 (*addsi_1_zext): Add r-r-0 alternative 1.
12414 <TYPE_LEA>: Split insn to lea.
12415 <default>: Handle alternative 1.
12416 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
12417 multi-level if_then_else RTX to set "type" attribute.
12418 <default>: Handle alternative 2.
12419 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
12420 Use cond RTX instead of multi-level if_then_else RTX to set
12421 "type" attribute.
12422 <default>: Handle alternatives 2 and 4.
12423 (lea splitters): Update calls to ix86_lea_for_add_ok.
12424
12425 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
12426 argument.
12427 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
12428
12429 2010-08-18 Richard Guenther <rguenther@suse.de>
12430
12431 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
12432 use operand helpers.
12433
12434 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
12435
12436 PR middle-end/45292
12437 * optabs.c (expand_bool_compare_and_swap): Expand pending
12438 pops before trying the optab.
12439
12440 2010-08-18 Yao Qi <yao@codesourcery.com>
12441
12442 PR target/45094
12443 * config/arm/arm.c (output_move_double): Fix typo generating
12444 instructions ('ldr'->'str').
12445
12446 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12447
12448 PR rtl-optimization/42575
12449 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
12450 live ranges.
12451
12452 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
12453
12454 * config/arm/arm-protos.h (arm_expand_sync): New.
12455 (arm_output_memory_barrier, arm_output_sync_insn): New.
12456 (arm_sync_loop_insns): New.
12457 * config/arm/arm.c (FL_ARCH7): New.
12458 (FL_FOR_ARCH7): Include FL_ARCH7.
12459 (arm_arch7): New.
12460 (arm_print_operand): Support %C markup.
12461 (arm_legitimize_sync_memory): New.
12462 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
12463 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
12464 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
12465 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
12466 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
12467 (arm_process_output_sync_insn, arm_output_sync_insn): New.
12468 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
12469 * config/arm/arm.h (struct arm_sync_generator): New.
12470 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
12471 (TARGET_HAVE_MEMORY_BARRIER): New.
12472 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
12473 * config/arm/arm.md: Include sync.md.
12474 (UNSPEC_MEMORY_BARRIER): New.
12475 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
12476 (VUNSPEC_SYNC_OP):New.
12477 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
12478 (sync_result, sync_memory, sync_required_value): New attributes.
12479 (sync_new_value, sync_t1, sync_t2): Likewise.
12480 (sync_release_barrier, sync_op): Likewise.
12481 (length): Add logic to length attribute defintion to call
12482 arm_sync_loop_insns when appropriate.
12483 * config/arm/sync.md: New file.
12484
12485 2010-08-17 Jakub Jelinek <jakub@redhat.com>
12486
12487 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
12488 ENABLE_TREE_CHECKING.
12489 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
12490 and GCC >= 4.3.
12491
12492 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
12493
12494 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
12495 or optimizing for size, always avoid lea if possible.
12496
12497 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
12498
12499 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
12500
12501 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
12502 Dunmmy function with NULL return unless the target is
12503 OSX >= 10.6 (Darwin10).
12504
12505 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
12506
12507 * gcc.c (spec_function): Add remove-outfile.
12508 (remove_outfile_spec_function): New function.
12509 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
12510 * invoke.texi (replace-outfile): Document.
12511
12512 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
12513
12514 PR target/45296
12515 * reginfo.c (globalize_reg): Reject stack registers.
12516
12517 2010-08-17 Richard Guenther <rguenther@suse.de>
12518
12519 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
12520 list of conditional equivalences.
12521 (free_all_edge_infos): Adjust.
12522 (record_equivalences_from_incoming_edge): Likewise.
12523 (record_cond): Likewise.
12524 (build_and_record_new_cond): Likewise.
12525 (record_conditions): Likewise.
12526 (dom_opt_leave_block): Likewise.
12527
12528 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
12529
12530 * doc/invoke.texi (ms-extension): Add documentation.
12531
12532 2010-08-17 Richard Guenther <rguenther@suse.de>
12533
12534 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
12535
12536 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
12537
12538 PR c/40563
12539 * c-decl.c (diagnose_uninitialized_cst_member): New function.
12540 (finish_decl): Use it to issue a -Wc++-compat warning about
12541 uninitialized const field in struct or union.
12542
12543 (finish_struct): Use strip_array_types.
12544
12545 2010-08-17 Jakub Jelinek <jakub@redhat.com>
12546
12547 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
12548 functions.
12549 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
12550 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
12551 call block_nreverse here.
12552 (blocks_nreverse): Rename decl temporary to block.
12553
12554 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
12555
12556 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
12557 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
12558 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
12559 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
12560 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
12561 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
12562 thumb2_iorsi3): Delete.
12563 (orsi_notsi_si): No longer a named pattern.
12564 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
12565 * config/arm/predicates.md (shift_amount_operand): New.
12566 (mult_operator): New.
12567 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
12568 attr enabled): New.
12569 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
12570 arch matches t2.
12571 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
12572 (not_shiftsi_compare0): Likewise, renamed from
12573 arm_notsi_shiftsi_compare0.
12574 (not_shiftsi_compare0_scratch): Likweise, renamed from
12575 arm_notsi_shiftsi_compare0_scratch.
12576 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
12577 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
12578 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
12579 so that the register alternative is disabled when the shift_operator
12580 is MULT. Use "M" as the constraint for constants.
12581 (arith_shiftsi splitter): Enable for TARGET_32BIT.
12582 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
12583 constraint for constants.
12584 (arith_shiftsi_compare0_scratch): Likewise.
12585 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
12586 Handle Thumb2 alternative.
12587
12588 2010-08-16 Joseph Myers <joseph@codesourcery.com>
12589
12590 * doc/options.texi (NoDriverArg): Document.
12591 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
12592 -MDX and -MMDX.
12593 * opt-functions.awk (switch_flags): Handle NoDriverArg.
12594 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
12595 marking for CL_NO_DRIVER_ARG options when in the driver.
12596 * opts.h (CL_NO_DRIVER_ARG): Define.
12597 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12598 CL_COMMON): Update values.
12599
12600 2010-08-16 Joseph Myers <joseph@codesourcery.com>
12601
12602 * common.opt: Add driver options.
12603 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
12604 * doc/options.texi (Driver, RejectDriver): Document.
12605 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
12606 print_prog_name, print_multi_directory, print_sysroot,
12607 print_multi_os_directory, print_multi_lib,
12608 print_sysroot_headers_suffix, report_times, combine_flag,
12609 use_pipes, wrapper_string): Remove.
12610 (save_switch, driver_unknown_option_callback,
12611 driver_wrong_lang_callback, driver_post_handling_callback,
12612 driver_handle_option): New.
12613 (spec_lang, last_language_n_infiles): Make file-scope static
12614 instead of local to process_command.
12615 (process_command): Use decode_cmdline_options_to_array and
12616 read_cmdline_option for option processing. Compute have_c in
12617 prescan of decoded options.
12618 * opt-functions.awk (switch_flags): Handle Driver and
12619 RejectDriver.
12620 (var_type, var_type_struct): Handle Separate options as generating
12621 const char * variables.
12622 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
12623 CL_TARGET to be passed by caller if required.
12624 (decode_cmdline_options_to_array): Update comment.
12625 * opts.c (complain_wrong_lang): Handle options only valid for the
12626 driver.
12627 (decode_options): Update call to decode_cmdline_options_to_array.
12628 (print_filtered_help): Ignore driver-only options.
12629 (print_specific_help): Ignore CL_DRIVER.
12630 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
12631 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
12632 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
12633 Update values.
12634
12635 2010-08-16 Richard Guenther <rguenther@suse.de>
12636
12637 * tree-cfg.c (verify_types_in_gimple_reference): Verify
12638 TARGET_MEM_REF a bit.
12639 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
12640 (create_mem_ref_raw): Always create TMR_OFFSET, store the
12641 alias pointer type via it.
12642 (copy_mem_ref_info): Adjust.
12643 (maybe_fold_tmr): Likewise.
12644 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
12645 (reference_alias_ptr_type): Likewise.
12646 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
12647 adjust documentation of TMR_OFFSET operand.
12648 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
12649 use the alias pointer type.
12650 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
12651 initialize mem attrs but the TMR itself.
12652 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
12653 similar to MEM_REF.
12654 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
12655 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
12656 (unshare_and_remove_ssa_names): Likewise.
12657 (copy_ref_info): Adjust.
12658 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
12659 TARGET_MEM_REF case.
12660 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
12661 at TMR_ORIGINAL.
12662 * tree.h (TMR_ORIGINAL): Remove.
12663 * gimple.c (get_base_address): For TARGET_MEM_REF with a
12664 symbol return that.
12665 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
12666 with a symbol.
12667 (get_addr_base_and_unit_offset): Likewise.
12668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
12669 TARGET_MEM_REFs.
12670 (indirect_ref_may_alias_decl_p): Likewise.
12671 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
12672
12673 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
12674
12675 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
12676 with GCC version 4.6, the default setting (when not optimizing
12677 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
12678 been changed to -fomit-frame-pointer.
12679
12680 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
12681
12682 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
12683 Darwin10. Do not link libgcc.a for Darwin >= 9.
12684
12685 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
12686
12687 * doc/invoke.texi (Warning Options): Fix terminology and markup
12688 in the description of how unknown warning options are handled.
12689
12690 2010-08-15 Ira Rosen <irar@il.ibm.com>
12691
12692 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
12693 in basic blocks.
12694 (vect_supportable_dr_alignment): Check alignment for basic blocks.
12695 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
12696 data references.
12697 (vect_bb_vectorization_profitable_p): New function.
12698 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
12699 check if it's worthwhile to vectorize the basic block.
12700
12701 2010-08-14 Anatoly Sokolov <aesok@post.ru>
12702
12703 * reload.h (register_move_cost, memory_move_secondary_cost,
12704 secondary_reload_class): Adjust prototype.
12705 * rtl.h (reg_class_subset_p): Adjust prototype.
12706 * reload.c (secondary_reload_class): Change arguments type from
12707 enum reg_class to reg_class_t. Change result type to reg_class_t.
12708 * reginfo.c (register_move_cost, reg_class_subset_p): Change
12709 arguments type from enum reg_class to reg_class_t.
12710 (memory_move_secondary_cost): Change arguments type from
12711 enum reg_class to reg_class_t. Change type of saved_flags to
12712 reg_class_t.
12713
12714 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12715 Remove macros.
12716 (mips_cost): Remove.
12717 (struct mips_rtx_cost_data): Moved to mips.c.
12718 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
12719 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
12720 (mips_cost): Make static.
12721 (mips_canonicalize_move_class): Change argument type to reg_class_t.
12722 Change result type to reg_class_t.
12723 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
12724 type from enum reg_class to reg_class_t.
12725 (mips_register_move_cost): Make static. Change arguments
12726 type from enum reg_class to reg_class_t.
12727 (mips_memory_move_cost): New function.
12728 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12729
12730 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
12731
12732 PR rtl-optimization/43358
12733 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
12734 of a single hard register, using simplify_subreg_regno to decide
12735 what that register should be.
12736
12737 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
12738
12739 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
12740 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
12741 (loongson_pmull<V_suffix>): Rename to...
12742 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
12743
12744 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
12745
12746 * configure.ac: Enable -fomit-frame-pointer on darwin
12747 which support dwarf2.
12748 * config/i386/i386.c (override_options): Same.
12749
12750 2010-08-13 Jie Zhang <jie@codesourcery.com>
12751
12752 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
12753
12754 2010-08-12 Joseph Myers <joseph@codesourcery.com>
12755
12756 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
12757 -MMD.
12758
12759 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
12760
12761 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
12762 up dot_prod pattern searching if a stmt is outside the loop.
12763
12764 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
12765 Uros Bizjak <ubizjak@gmail.com>
12766
12767 * config.gcc: Handle --enable-frame-pointer.
12768
12769 * configure.ac: Add --enable-frame-pointer.
12770 * configure: Regenerated.
12771
12772 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
12773 (override_options): If not configured with --enable-frame-pointer,
12774 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
12775 optimizing for size), -fasynchronous-unwind-tables and
12776 -maccumulate-outgoing-args by default.
12777
12778 2010-08-12 Jakub Jelinek <jakub@redhat.com>
12779
12780 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
12781
12782 PR middle-end/45262
12783 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
12784 -a overflows. Normalize the range.
12785
12786 2010-08-12 Richard Guenther <rguenther@suse.de>
12787
12788 PR tree-optimization/45232
12789 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
12790 for types with undefined overflow.
12791 (reassociate_bb): Allow re-associating of bit and min/max
12792 operations for types with undefined overflow.
12793 * tree-ssa-forwprop.c (associate_plusminus): New function.
12794 (tree_ssa_forward_propagate_single_use_vars): Call it.
12795
12796 2010-08-12 Richard Guenther <rguenther@suse.de>
12797
12798 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
12799 * tree-ssa-alias.c (get_ptr_info): Move ...
12800 * tree-ssanames.c (get_ptr_info): ... here. Initialize
12801 align and misalign fields conservatively.
12802 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
12803 derive alignment information.
12804 (evaluate_stmt): Derive alignment information from memory
12805 allocation functions.
12806 * tree.h (get_pointer_alignment): Make unsigned.
12807 * builtins.c (get_object_alignment): Use alignment information we
12808 have computed for pointers.
12809 (get_pointer_alignment): Likewise. Make conservative, return
12810 and unsigned value.
12811 (expand_builtin_strlen): Adjust.
12812 (expand_builtin_memcmp): Likewise.
12813 (expand_builtin_strcmp): Likewise.
12814 (expand_builtin_strncmp): Likewise.
12815 (get_builtin_sync_mem): Use at least mode alignment.
12816 (fold_builtin_memset): Adjust.
12817 (fold_builtin_memory_op): Likewise.
12818 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
12819 information also dump pointer alignment knowledge.
12820 (dump_gimple_stmt): Likewise.
12821
12822 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
12823
12824 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
12825 (EMPTY_FIELD_BOUNDARY): Remove.
12826 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
12827
12828 2010-08-12 Jakub Jelinek <jakub@redhat.com>
12829
12830 PR debug/45259
12831 * caller-save.c (save_call_clobbered_regs): Only swap notes with
12832 DEBUG_INSNs if n_regs_saved.
12833
12834 2010-08-12 Wei Guozhi <carrot@google.com>
12835
12836 PR target/44999
12837 * config/arm/arm.md (andsi3): Change to zero extension if possible.
12838 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
12839
12840 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
12841
12842 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
12843
12844 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
12845
12846 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
12847
12848 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
12849 the case removed in the previous patch, when the only phi argument
12850 is defined in the same loop as the phi node itself. Handle it
12851 separately from the invariant case by both propagating it outside
12852 the region and replacing the phi node with an assign.
12853
12854 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
12855
12856 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
12857 constant phi nodes with one argument are is_gimple_min_invariant
12858 and SSA_NAME_IS_DEFAULT_DEF.
12859
12860 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12861
12862 * graphite-cloog-util.c (oppose_constraint):
12863 Extend loop counter's value range (CLOOG_ORG).
12864 (cloog_matrix_to_ppl_constraint): Same.
12865 (new_Constraint_System_from_Cloog_matrix): Same.
12866 * graphite-cloog-compat.h (matrix_num_type): New.
12867
12868 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12869
12870 * graphite.c (graphite_initialize): Do not initialize
12871 CLooG and initialize the Parma Polyhedra Library
12872 manually when using CLOOG_ORG.
12873 (graphite_finalize): Do not finalize CLooG and finalize
12874 the Parma Polyhedra Library manually when using CLOOG_ORG.
12875 * graphite-cloog-compat.h (cloog_initialize): Hide function
12876 when using CLOOG_ORG.
12877 (cloog_finalize): Same.
12878
12879 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12880
12881 * graphite-clast-to-gimple.c (free_scattering): Change
12882 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
12883 (CLOOG_ORG).
12884 (build_cloog_prog): Same.
12885 * graphite-cloog-compat.h (cloog_domain): Removed.
12886 (cloog_scattering): New.
12887 (cloog_set_domain): Removed.
12888 (cloog_set_scattering): New.
12889 (cloog_next_domain): Removed.
12890 (cloog_next_scattering): New.
12891 (cloog_set_next_domain): Removed.
12892 (cloog_set_next_scattering): New.
12893 (CloogScatteringList): New.
12894 (CloogScattering): New.
12895 (cloog_scattering_free): New.
12896 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
12897 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
12898 New.
12899
12900 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12901
12902 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
12903 CloogState.
12904 (set_cloog_options): Same.
12905 (print_clast_stmt): Same.
12906 (scop_to_clast): Same.
12907 (print_generated_program): Same.
12908 (gloog): Same.
12909 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
12910 (scop_to_clast): Extend with CloogState.
12911 * graphite-cloog-util.c: Include graphite-cloog-compat.h
12912 (new_Cloog_Domain_from_ppl_Polyhedron):
12913 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
12914 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
12915 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12916 * graphite-cloog-util.h (build_cloog_prog): Same.
12917 * graphite-cloog-copat.h (build_cloog_prog): New.
12918 (CloogState): New.
12919 (cloog_state_malloc): New.
12920 (cloog_state_free): New.
12921 (cloog_loop_malloc): New.
12922 (cloog_options_malloc): New.
12923 (cloog_statement_alloc): New.
12924 (cloog_domain_from_cloog_matrix): New.
12925 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
12926 (new_Cloog_Domain_from_ppl_Polyhedron): New.
12927
12928 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12929
12930 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
12931 type of NAME now depends on used CLooG version.
12932 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
12933 (gcc_type_for_clast_expr): Same.
12934 (print_clast_stmt): Replace pprint with clast_pprint.
12935 * graphite-cloog-compat.h: Provide compatibility macros for
12936 CLooG Legacy.
12937 (clast_name_p): New.
12938 (clast_expr_term): New.
12939 (clast_expr_red): New.
12940 (clast_expr_bin): New.
12941 (clast_pprint): New.
12942
12943 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12944
12945 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
12946 compatible to newer CLooG releases (CLOOG_ORG).
12947 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
12948 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
12949 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
12950 (build_cloog_prog) : New.
12951 (cloog_program_extract_scalars): New.
12952 (cloog_program_scatter): New.
12953
12954 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12955
12956 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
12957 conditionally (CLOOG_ORG).
12958 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
12959 (cloog_statement_usr): New.
12960 (cloog_domain): Same.
12961 (cloog_set_domain): Same.
12962 (cloog_next_domain): Same.
12963 (cloog_set_next_domain): Same.
12964 (cloog_program_nb_scattdims): Same.
12965 (cloog_program_set_nb_scattdims): Same.
12966 (cloog_program_names): Same.
12967 (cloog_program_set_names): Same.
12968 (cloog_program_set_context): Same.
12969 (cloog_program_set_loop): Same.
12970 (cloog_program_blocklist): Same.
12971 (cloog_program_set_blocklist): Same.
12972 (cloog_program_scaldims): Same.
12973 (cloog_program_set_scaldims): Same.
12974 (cloog_names_nb_parameters): Same.
12975 (cloog_names_set_nb_parameters): Same.
12976 (cloog_names_parameters): Same.
12977 (cloog_names_set_parameters): Same.
12978 (cloog_names_set_nb_iterators): Same.
12979 (cloog_names_set_iterators): Same.
12980 (cloog_names_set_nb_scattering): Same.
12981 (cloog_names_set_scattering): Same.
12982 (cloog_statement_set_usr): Same.
12983 (cloog_loop_set_next): Same.
12984 (cloog_loop_set_domain): Same.
12985 (cloog_loop_set_block): Same.
12986 (cloog_block_list_next): Same.
12987 (cloog_block_list_set_next):
12988 (cloog_block_list_set_block): Same.
12989
12990 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
12991
12992 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
12993 a bool.
12994 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
12995 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
12996 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
12997 when something has been changed.
12998 (rewrite_commutative_reductions_out_of_ssa): Same.
12999
13000 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13001
13002 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
13003 handle the case when def is in the sese region.
13004 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
13005 for invariant expressions.
13006 (rewrite_cross_bb_phi_deps): Removed.
13007 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
13008 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
13009 rewrite_cross_bb_phi_deps.
13010
13011 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13012
13013 * graphite-sese-to-poly.c
13014 (rewrite_commutative_reductions_out_of_ssa_loop): Call
13015 scev_analyzable_p only on is_gimple_reg
13016
13017 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13018
13019 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
13020 (rewrite_close_phi_out_of_ssa): Propagate constant values or
13021 parametric expressions outside the scop region.
13022 (rewrite_cross_bb_scalar_deps): Same.
13023 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
13024
13025 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13026
13027 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
13028 SSA_NAME_DEF_STMT only on SSA_NAMEs.
13029
13030 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13031
13032 * tree-scalar-evolution.c (instantiate_scev_name): Do not
13033 instantiate default definitions.
13034
13035 2010-08-11 Vladimir Kargov <kargov@gmail.com>
13036 Sebastian Pop <sebastian.pop@amd.com>
13037
13038 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
13039 (loop_exits_from_bb_p): New.
13040 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
13041 (loop_exits_from_bb_p): Declared.
13042 * graphite-scop-detection.c (scopdet_basic_block_info): Call
13043 loop_exits_to_bb_p.
13044
13045 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13046
13047 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
13048 extra parameter for the region. Call scev_analyzable_p.
13049 (rewrite_reductions_out_of_ssa): Update call to
13050 rewrite_close_phi_out_of_ssa.
13051 (rewrite_cross_bb_phi_deps): Same.
13052 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
13053 parameter for the region. Call scev_analyzable_p.
13054 (rewrite_commutative_reductions_out_of_ssa): Update call to
13055 rewrite_commutative_reductions_out_of_ssa_loop.
13056
13057 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13058
13059 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
13060
13061 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13062
13063 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
13064 SSA scalar phi nodes that can be scev_analyzable_p.
13065
13066 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13067
13068 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
13069 handle SSA_NAME_IS_DEFAULT_DEF.
13070
13071 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13072
13073 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
13074
13075 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13076
13077 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
13078 case non close-phi nodes with one argument.
13079
13080 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13081
13082 * sese.h (scev_analyzable_p): Scevs could be expressions without
13083 chrecs and still be scev_analyzable_p.
13084
13085 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13086
13087 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13088
13089 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13090
13091 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
13092 * cfgloop.h (struct loop): Remove single_iv field.
13093 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
13094 (scop_canonicalize_loops): Removed.
13095 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
13096 over all the loop phi nodes in loop->header.
13097 (build_poly_scop): Remove use of scop_canonicalize_loops.
13098
13099 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13100
13101 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
13102 handle GIMPLE_CALL.
13103
13104 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13105
13106 * tree-chrec.c (chrec_apply): Should only apply to the specified
13107 variable. Also handle multivariate chains of recurrences that
13108 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
13109
13110 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13111
13112 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
13113 (debug_clast_name_indexes_1): Removed.
13114 (debug_clast_name_indexes): Removed.
13115 (pbb_to_depth_to_oldiv): Removed.
13116 (build_iv_mapping): Replace the use of rename_map with iv_map.
13117 (translate_clast_user): Remove uses of rename_map. Allocate and
13118 free iv_map.
13119 (translate_clast_for_loop): Remove uses of rename_map.
13120 (translate_clast_for): Same.
13121 (translate_clast_guard): Same.
13122 (translate_clast): Same.
13123 (gloog): Same.
13124 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
13125 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
13126 * sese.c (set_rename): Now static.
13127 (rename_variables_in_stmt): Removed.
13128 (rename_uses): New.
13129 (is_parameter): Removed.
13130 (is_iv): Removed.
13131 (expand_scalar_variables_call): Removed.
13132 (expand_scalar_variables_ssa_name): Removed.
13133 (expand_scalar_variables_expr): Removed.
13134 (expand_scalar_variables_stmt): Removed.
13135 (expand_scalar_variables): Removed.
13136 (rename_variables): Removed.
13137 (remove_condition): Removed.
13138 (get_true_edge_from_guard_bb): Removed.
13139 (get_false_edge_from_guard_bb): Removed.
13140 (struct igp): Removed.
13141 (default_before_guard): Removed.
13142 (convert_for_phi_arg): Removed.
13143 (add_guard_exit_phis): Removed.
13144 (insert_guard_phis): Removed.
13145 (graphite_copy_stmts_from_block): Now also uses iv_map and a
13146 region. Do not copy conditions. Do not copy induction variables.
13147 Call rename_uses.
13148 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
13149 the translated statement. Use the iv_map for the induction
13150 variable renaming.
13151 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13152 (set_rename): Removed declaration.
13153 (scev_analyzable_p): ...here.
13154 * tree-chrec.c (chrec_apply_map): New.
13155 * tree-chrec.h (chrec_apply_map): Declared.
13156
13157 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13158
13159 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
13160 insert_loop_close_phis.
13161 * sese.c (name_defined_in_loop_p): Removed.
13162 (expr_defined_in_loop_p): Removed.
13163 (alive_after_loop): Removed.
13164 (close_phi_not_yet_inserted_p): Removed.
13165 (struct alep): Removed.
13166 (add_loop_exit_phis): Removed.
13167 (insert_loop_close_phis): Removed.
13168
13169 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13170
13171 * graphite-cloog-util.c
13172 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
13173 * graphite-poly.c
13174 (psct_scattering_dim_for_loop_depth): Same.
13175
13176 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13177
13178 * graphite-cloog-util.h: Added cloog.h.
13179 * graphite-blocking.c: Removed cloog.h.
13180 * graphite-dependences.c: Same.
13181 * graphite-interchange.c: Same.
13182 * graphite-poly.c: Same.
13183 * graphite-ppl.c: Same.
13184 * graphite-scop-detection.c: Same.
13185 * graphite-sese-to-poly.c:
13186 Removed cloog.h.
13187 Removed graphite-clast-to-gimple.h.
13188 (check_poly_representation): Removed (unused).
13189 * graphite-sese-to-poly.h
13190 (check_poly_representation): Removed (unused).
13191
13192 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13193
13194 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
13195 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
13196 (graphite-cloog-util.o): New.
13197 (graphite-ppl.o): Added graphite-cloog-util.h.
13198 * graphite-clast-to-gimple.c:
13199 Added graphite-cloog-util.h to include statements.
13200 * graphite-cloog-util.c: New.
13201 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
13202 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13203 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13204 (new_C_Polyhedron_from_Cloog_Matrix): Same.
13205 (insert_constraint_into_matrix): Same.
13206 (ppl_Constrain_System_number_of_constraints): Same.
13207 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
13208 (oppose_constraint): Same.
13209 (cloog_matrix_to_ppl_constraint): Same.
13210 (new_Constraint_System_from_Cloog_Matrix): Same.
13211 * graphite-cloog-util.h: New.
13212 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
13213 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13214 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13215 (new_C_Polyhedron_from_Cloog_Matrix): Same.
13216 (insert_constraint_into_matrix): Same.
13217 * graphite-ppl.c:
13218 Added graphite-cloog-util.h to include statements.
13219 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
13220 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13221 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13222 (new_C_Polyhedron_from_Cloog_Matrix): Same.
13223 (insert_constraint_into_matrix): Same.
13224 (ppl_Constrain_System_number_of_constraints): Same.
13225 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
13226 (oppose_constraint): Same.
13227 (cloog_matrix_to_ppl_constraint): Same.
13228 (new_Constraint_System_from_Cloog_Matrix): Same.
13229 * graphite-ppl.h:
13230 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
13231 graphite-cloog-util.h.
13232 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
13233 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13234 (new_C_Polyhedron_from_Cloog_Matrix): Same.
13235 (insert_constraint_into_matrix): Same.
13236
13237 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13238
13239 * graphite-clast-to-gimple.c
13240 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
13241 (precision_for_interval): Same.
13242 (gcc_type_for_interval): Same.
13243 (compute_type_for_level): Same.
13244 * graphite-interchange.c
13245 (lst_interchange_profitable_p): Same.
13246 * graphite-poly.c
13247 (psct_scattering_dim_for_loop_depth): Same.
13248 * graphite-ppl.c
13249 (ppl_max_for_le_pointset): Same.
13250 (ppl_min_for_le_pointset): Same.
13251
13252 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13253
13254 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
13255 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
13256
13257 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13258
13259 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
13260 rewrite_close_phi_out_of_ssa.
13261
13262 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13263
13264 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
13265
13266 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13267
13268 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
13269 rename_map.
13270 * sese.c (debug_rename_map): Same.
13271 (get_rename): Same.
13272 (set_rename): Same.
13273 (rename_variables_in_stmt): Same.
13274 (expand_scalar_variables_call): Same.
13275 (expand_scalar_variables_ssa_name): Same.
13276 (expand_scalar_variables_expr): Same.
13277 (expand_scalar_variables_stmt): Same.
13278 (expand_scalar_variables): Same.
13279 (rename_variables): Same.
13280 (graphite_copy_stmts_from_block): Same.
13281 (copy_bb_and_scalar_dependences): Same.
13282
13283 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13284
13285 * graphite-clast-to-gimple.c (copy_renames): Removed.
13286 (translate_clast_for): Do not call copy_renames.
13287 (translate_clast_guard): Same.
13288
13289 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13290
13291 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
13292 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
13293 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
13294 before rewrite_cross_bb_scalar_deps.
13295
13296 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13297
13298 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
13299 Early return in when flag_associative_math is not set.
13300
13301 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13302
13303 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
13304 of SSA copies on edges except for loop->latch.
13305
13306 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13307
13308 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
13309 Split out of rewrite_reductions_out_of_ssa.
13310 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
13311 Declared.
13312 * graphite.c (graphite_transform_loops): Call it.
13313
13314 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13315
13316 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
13317
13318 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
13319
13320 * dbgcnt.def (graphite_scop): New counter.
13321 * graphite.c: Include dbgcnt.h.
13322 (graphite_transform_loops): Use new counter to limit transformations.
13323 * Makefile.in (graphite.o): Depend on DBGCNT_H.
13324
13325 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13326
13327 * passes.c (init_optimization_passes): Add pass_graphite.
13328 Schedule a pass_copy_prop before pass_graphite_transforms.
13329 * timevar.def (TV_GRAPHITE): Declared.
13330 * tree-pass.h (pass_graphite): Declared.
13331 * tree-ssa-loop.c (pass_graphite): New.
13332
13333 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13334
13335 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
13336 Remove calls to rename_nb_iterations and rename_sese_parameters.
13337 * graphite-clast-to-gimple.h (gloog): Update declaration.
13338 * graphite.c (graphite_transform_loops): Update call to gloog.
13339 * sese.c (rename_variables_in_expr): Removed.
13340 (rename_nb_iterations): Removed.
13341 (rename_sese_parameters): Removed.
13342 * sese.h (rename_nb_iterations): Removed.
13343 (rename_sese_parameters): Removed.
13344
13345 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13346
13347 * graphite-clast-to-gimple.c (gloog): Remove call to
13348 sese_adjust_liveout_phis.
13349 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
13350 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
13351 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
13352 rewrite_phi_out_of_ssa.
13353 * sese.c (get_vdef_before_sese): Removed.
13354 (sese_adjust_vphi): Removed.
13355 (sese_adjust_liveout_phis): Removed.
13356 * sese.h (sese_adjust_liveout_phis): Removed.
13357
13358 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13359
13360 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
13361 argument for the place after which to insert the out of SSA copy.
13362 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
13363 (rewrite_phi_out_of_ssa): Same.
13364 (rewrite_cross_bb_scalar_deps): Same.
13365 (insert_copyout): Removed.
13366 (insert_copyin): Removed.
13367 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
13368 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
13369 insert_copyin.
13370
13371 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13372
13373 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
13374 (rewrite_reductions_out_of_ssa): Same.
13375 (rewrite_commutative_reductions_out_of_ssa): Same.
13376 (build_poly_scop): Do not call these functions.
13377 * graphite-sese-to-poly.h (build_poly_scop): Declared.
13378 (rewrite_reductions_out_of_ssa): Declared.
13379 (rewrite_commutative_reductions_out_of_ssa): Declared.
13380 * graphite.c (graphite_transform_loops): Call on every scop
13381 rewrite_commutative_reductions_out_of_ssa before calling
13382 rewrite_reductions_out_of_ssa and build_scop_bbs.
13383
13384 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13385
13386 * graphite-dependences.c (dot_deps): Make system call to dotty run
13387 in background.
13388 (dot_deps_stmt): Same.
13389 * graphite-poly.c (dot_lst): Same.
13390
13391 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
13392
13393 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
13394 phi_arg_in_outermost_loop.
13395 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
13396 (remove_invariant_phi): Same.
13397
13398 2010-08-11 Anatoly Sokolov <aesok@post.ru>
13399
13400 * target.def (output_addr_const_extra): New hook.
13401 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
13402 * doc/tm.texi: Regenerate.
13403 * targhooks.c (default_asm_output_addr_const_extra): New function.
13404 * targhooks.h (default_asm_output_addr_const_extra): Declare.
13405 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
13406 target hook.
13407
13408 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13409 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
13410 * config/i386/i386.h (output_addr_const_extra): Rename to...
13411 (i386_asm_output_addr_const_extra): ...this. Make static.
13412 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13413
13414 2010-08-11 Richard Henderson <rth@redhat.com>
13415
13416 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
13417
13418 2010-08-11 Nick Clifton <nickc@redhat.com>
13419
13420 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
13421 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
13422 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13423 stormy16-lib2-cmpsi.c.
13424
13425 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
13426 -O2.
13427
13428 2010-08-11 Joseph Myers <joseph@codesourcery.com>
13429
13430 * opts.h (struct cl_option_handler_func): Make handler take
13431 cl_decoded_option structure as parameter, not individual elements.
13432 (struct cl_option_handlers): Make callbacks take cl_decoded_option
13433 structure as parameter, not individual elements.
13434 (handle_option): Take cl_decoded_option structure as parameter,
13435 not individual elements.
13436 (handle_generated_option): Declare.
13437 * opts-common.c (handle_option): Take cl_decoded_option structure
13438 as parameter, not individual elements. Update calls to callback
13439 and handler functions.
13440 (handle_generated_option): New.
13441 (read_cmdline_option): Update calls to callback functions and
13442 handle_option.
13443 * opts.c (common_handle_option, complain_wrong_lang,
13444 unknown_option_callback, post_handling_callback,
13445 lang_handle_option, target_handle_option): Take cl_decoded_option
13446 structure as parameter, not individual elements.
13447 (lang_handle_option, target_handle_option, common_handle_option):
13448 Assert option has at most one argument.
13449 (enable_warning_as_error): Call handle_generated_option instead of
13450 handle_option. Do not pass -Werror argument as argument of
13451 generated option.
13452
13453 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13454
13455 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13456 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13457 (SUBWORD_BOOL_CAS): Likewise.
13458 (SUBWORD_SYNC_OP): Likewise.
13459 (SUBWORD_TEST_AND_SET): Likewise.
13460 (FETCH_AND_OP_WORD): Parenthesise INF_OP
13461 (SUBWORD_SYNC_OP): Likewise.
13462 (OP_AND_FETCH_WORD): Likewise.
13463
13464 2010-08-10 Xinliang David Li <davidxl@google.com>
13465
13466 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
13467 compute max/min offset in address.
13468
13469 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
13470
13471 * ira-live.c: Include sbitmap.h.
13472 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
13473 Compress live ranges even more.
13474
13475 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
13476
13477 * coverage.c (ctr_labels): Delete.
13478
13479 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
13480
13481 PR bootstrap/45177
13482 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
13483 test here from arm_gen_load_multiple_1.
13484 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
13485 multiple_operation_profitable_p.
13486
13487 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
13488
13489 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
13490 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
13491
13492 2010-08-10 Richard Henderson <rth@redhat.com>
13493
13494 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
13495 after saving registers. Assert that SSE registers are only saved
13496 with a sufficiently aligned frame.
13497 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
13498 remove stack_realign_fp handling.
13499 (ix86_expand_prologue): Save int registers before stack_realign_fp,
13500 and do not mark the stack alignment as frame related.
13501 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
13502
13503 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
13504 saves when re-aligning the stack.
13505
13506 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
13507
13508 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
13509 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
13510 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
13511
13512 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
13513
13514 * dwarf2out.c (struct die_struct): Move die_tag to the end.
13515
13516 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
13517
13518 * config/arm/iterators.md: New file.
13519 * config/arm/arm.md: Include iterators.md.
13520 (QHSI): Move to new file.
13521 (LTUGEU, cnb, optab, ior_xor): Likewise.
13522 * config/arm/iwmmxt.md (VMMX): Move to new file.
13523 (VSHFT, MMX_char): Likewise.
13524 * config/arm/neon.md (VD): Move to new file.
13525 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
13526 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
13527 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
13528 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
13529 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
13530 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
13531 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
13532 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
13533 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
13534 (Is_d_reg, V_mode_nunits): Likewise.
13535 * config/arm/vec-common.md (VALL): Move to new file.
13536 (VALLW, VINT, VINTW): Likewise.
13537
13538 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
13539
13540 PR middle-end/45182
13541 * combine.c (make_compound_operation): Don't try to convert
13542 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
13543
13544 2010-08-10 Richard Guenther <rguenther@suse.de>
13545
13546 * tree.h (get_object_alignment): Adjust prototype.
13547 * builtins.c (get_object_alignment): Return unsigned int,
13548 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
13549 and TARGET_MEM_REF properly.
13550 (get_pointer_alignment): Adjust.
13551 * emit-rtl.c (get_mem_align_offset): Adjust comment.
13552 (set_mem_attributes_minus_bitpos): Adjust.
13553 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
13554
13555 2010-08-10 Richard Guenther <rguenther@suse.de>
13556
13557 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
13558 (copy_prop_visit_assignment): Simplify.
13559 (copy_prop_visit_stmt): Also visit assignments from
13560 constants.
13561 (copy_prop_visit_phi_node): Use operand_equal_p.
13562
13563 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
13564
13565 * ipa-split.c (find_split_points): Free stack.
13566
13567 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
13568
13569 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
13570 * tree.c (tree_node_kind): Delete corresponding entries.
13571
13572 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
13573
13574 * alias.c (may_alias_p): Remove unused ret.
13575
13576 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
13577
13578 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
13579 alias_sets_conflict_p.
13580 (walk_mems_1): Moved from alias.c.
13581 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
13582 in alias.c.
13583 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
13584 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
13585 * alias.c (walk_mems_2): Moved to ddg.c.
13586 (walk_mems_1): Ditto.
13587 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
13588 to ddg.c.
13589 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
13590 disambiguation.
13591 *(may_alias_p): New function to check whether two memory expression
13592 may alias or not. Currently used in buidling inter-iteration memory
13593 dependence.
13594 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
13595 (insn_alias_sets_conflict_p): Removed
13596 *rtl.h (may_alias_p): New function prototype.
13597
13598 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
13599
13600 * tree.c (nreverse): Assert that we don't have a BLOCK.
13601
13602 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
13603
13604 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
13605 * config/arm/arm.c (arm_get_pcs_model): Likewise.
13606 * config/avr/avr.c (init_cumulative_args): Likewise.
13607 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13608 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13609 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
13610 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13611 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13612 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13613 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13614 * dwarf2out.c (gen_subprogram_die): Likewise.
13615 * function.c (allocate_struct_function): Likewise.
13616 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
13617 (deserves_ellipsis): Delete.
13618
13619 2010-08-09 Richard Guenther <rguenther@suse.de>
13620
13621 * tree-ssa-copy.c (cached_last_copy_of): Remove.
13622 (valueize_val): New function.
13623 (get_last_copy_of): Remove.
13624 (set_copy_of_val): Simplify.
13625 (dump_copy_of): Likewise.
13626 (copy_prop_visit_cond_stmt): Use valueize_val.
13627 (copy_prop_visit_phi_node): Properly handle unvisited names.
13628 Drop code managing copy-of chains.
13629 (init_copy_prop): Adjust.
13630 (fini_copy_prop): Likewise.
13631 (execute_copy_prop): Remove obsolete comment.
13632
13633 2010-08-09 Richard Guenther <rguenther@suse.de>
13634
13635 PR middle-end/44632
13636 * function.c (gimplify_parameters): Do not clear addressable
13637 bit of the original parameter.
13638
13639 2010-08-09 Richard Guenther <rguenther@suse.de>
13640
13641 PR middle-end/45212
13642 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
13643 alignment from MEM_REF offset only if we took it from the
13644 base object.
13645
13646 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
13647
13648 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
13649
13650 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
13651
13652 * c-tree.h (build_arg_info): Declare.
13653 * c-decl.c (build_arg_info): Define.
13654 (get_parm_info): Call it. Delete initialization code.
13655 * c-parser.c (c_parser_parms_declarator): Likewise.
13656 (c_parser_parms_list_declaractor): Likewise.
13657
13658 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
13659
13660 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
13661 (struct c_arg_info): Change type of tags field.
13662 * c-decl.c (grokdeclarator): Update for changed type of tags field.
13663 (get_parm_info): Likewise.
13664 (store_parm_decls_newstyle): Likewise.
13665
13666 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
13667
13668 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
13669 (branch_island_list): Delete.
13670 (branch_islands): Declare.
13671 (add_compiler_branch_island): Adjust for branch_islands instead of
13672 branch_island_list.
13673 (macho_branch_islands): Likewise.
13674 (no_previous_def): Likewise.
13675 (get_prev_label): Likewise.
13676
13677 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13678
13679 PR boehm-gc/34544
13680 * gthr-posix.h (__gthread_start): Delete.
13681 (__gthread_active_init): Use pthread_default_stacksize_np instead of
13682 pthread_create to determine if hpux pthreads are active.
13683 * gthr-posix95.h (__gthread_start): Delete.
13684 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
13685
13686 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
13687
13688 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
13689 _WIN64 not expanded.
13690
13691 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
13692 H.J. Lu <hongjiu.lu@intel.com>
13693
13694 PR target/45213
13695 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
13696 to output 32bit SFmode immediate as 8 byte sign extended value.
13697
13698 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13699
13700 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13701 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13702 (SUBWORD_BOOL_CAS): Likewise.
13703 (SUBWORD_SYNC_OP): Likewise.
13704 (SUBWORD_TEST_AND_SET): Likewise.
13705 (FETCH_AND_OP_WORD): Parenthesise INF_OP
13706 (SUBWORD_SYNC_OP): Likewise.
13707 (OP_AND_FETCH_WORD): Likewise.
13708
13709 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13710
13711 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
13712 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
13713 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
13714 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
13715 generic part.
13716 (cortex_a9_sched_adjust_cost): New function.
13717 (xscale_sched_adjust_cost): New function.
13718 * config/arm/arm-protos.h (struct tune_params): New field
13719 sched_adjust_cost.
13720 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
13721
13722 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
13723
13724 PR target/44942
13725 * config/sparc/sparc.c (function_arg_advance): Always take into account
13726 the padding, if any.
13727
13728 2010-08-06 Richard Guenther <rguenther@suse.de>
13729
13730 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
13731 (dump_lattice_value): Dump it.
13732 (get_default_value): Adjust.
13733 (get_constant_value): Likewise.
13734 (set_value_varying): Likewise.
13735 (set_lattice_value): Make sure to not go up the lattice
13736 with bitwise constant values.
13737 (get_value_for_expr): Handle ADDR_EXPRs.
13738 (value_to_double_int): New function.
13739 (get_value_from_alignment): Likewise.
13740 (do_dbg_cnt): Adjust.
13741 (ccp_lattice_meet): Handle partially constant values.
13742 (bit_value_unop_1): New function.
13743 (bit_value_binop_1): Likewise.
13744 (bit_value_unop): Likewise.
13745 (bit_value_binop): Likewise.
13746 (evaluate_stmt): Track partially constant values if
13747 flag_tree_bit_ccp is set.
13748 (ccp_fold_stmt): Dump if we folded a predicate.
13749 (ccp_visit_stmt): Adjust.
13750 * common.opt (ftree-bit-ccp): New flag.
13751 * doc/invoke.texi (ftree-bit-ccp): Document.
13752 * opts.c (decode_options): Enable bit-CCP at -O1.
13753
13754 2010-08-06 Alan Modra <amodra@gmail.com>
13755
13756 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
13757 and -mrelocatable-lib description.
13758
13759 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
13760
13761 From Martin Thuresson <martint@google.com>
13762 * postreload.c (reload_cse_simplify_operands): Use
13763 SET_REGNO_RAW instead of SET_REGNO.
13764 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
13765 SET_REGNO.
13766 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
13767 instead of SET_REGNO.
13768 * rtl.h (SET_REGNO_RAW): New macro.
13769
13770 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
13771
13772 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
13773 computations. Fix formatting issues.
13774 (num_sign_bit_copies1): Likewise.
13775 (canonicalize_condition): Likewise.
13776
13777 2010-08-05 Richard Henderson <rth@redhat.com>
13778
13779 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
13780 (floor_log2): Use clz_hwi.
13781 (exact_log2): Use ctz_hwi.
13782 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
13783 * builtins.c (fold_builtin_bitop): Use them.
13784 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13785 * combine.c (get_pos_from_mask): Use ctz_hwi.
13786 * double-int.c (double_int_ctz): Likewise.
13787 * explow.c (force_reg): Likewise.
13788 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
13789
13790 2010-08-05 Richard Henderson <rth@redhat.com>
13791
13792 PR target/45189
13793 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
13794 the alignment constant is properly sign-extended.
13795
13796 2010-08-05 Richard Guenther <rguenther@suse.de>
13797
13798 * expr.c (store_expr): Use emit_block_move only if both
13799 source and target are MEMs. Use store_bit_field if only
13800 the target is a MEM.
13801
13802 2010-08-05 Richard Henderson <rth@redhat.com>
13803
13804 PR debug/45188
13805 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
13806 (INCOMING_RETURN_ADDR_RTX): Likewise.
13807 (dwarf2out_do_frame): Remove conditional compilation.
13808 (dwarf2out_frame_init): Likewise.
13809
13810 2010-08-05 Nicolas Setton <setton@adacore.com>
13811
13812 * gcov.c (flag_display_progress): New static variable.
13813 (main): Display progress info on standard output if requested.
13814 (options): Add -d/--display-progress.
13815 (print_usage): Print them.
13816 (process_args): Handle them.
13817 * doc/gcov.texi: Document them.
13818
13819 2010-08-05 Martin Jambor <mjambor@suse.cz>
13820
13821 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
13822 (ipcp_insert_stage): Redirect only edges not flagged with
13823 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
13824 discovered constants.
13825
13826 2010-08-05 Martin Jambor <mjambor@suse.cz>
13827
13828 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
13829 (struct ipa_param_descriptor): New fields types and
13830 cannot_devirtualize.
13831 (ipa_param_cannot_devirtualize_p): New function.
13832 (ipa_param_types_vec_empty): Likewise.
13833 (ipa_make_edge_direct_to_target): Declare.
13834 * ipa-cp.c: Fixed first stage driver name in initial comment,
13835 described devirtualization there too.
13836 (ipcp_analyze_node): Call ipa_analyze_params_uses.
13837 (ipcp_print_all_lattices): Print devirtualization info.
13838 (ipa_set_param_cannot_devirtualize): New function.
13839 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
13840 lattice to BOTTOM.
13841 (ipcp_init_stage): Merged into...
13842 (ipcp_generate_summary): ...its caller.
13843 (ipcp_change_tops_to_bottom): Also process type lists.
13844 (ipcp_add_param_type): New function.
13845 (ipcp_copy_types): Likewise.
13846 (ipcp_propagate_types): Likewise.
13847 (ipcp_propagate_stage): Also propagate types.
13848 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
13849 Also return true if propagated types require it.
13850 (ipcp_update_callgraph): Dump redirection info.
13851 (ipcp_process_devirtualization_opportunities): New function.
13852 (ipcp_const_param_count): Include known type information.
13853 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
13854 on new node. Fixed formatting.
13855 * ipa-prop.c (make_edge_direct_to_target): Renamed to
13856 ipa_make_edge_direct_to_target and changed all callers. Made
13857 externally visible.
13858 (ipa_node_duplication_hook): Duplicate types vector.
13859 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
13860 redirect outgoing calls for which we can't get a decl from the
13861 statement. Check that we can get a decl from the call statement.
13862 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13863 ipa_analyze_params_uses only when ipa-cp is disabled.
13864 * tree-inline.c (get_indirect_callee_fndecl): Removed.
13865 (expand_call_inline): Do not call get_indirect_callee_fndecl.
13866 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
13867 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
13868
13869 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
13870
13871 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
13872 temporary. Emit move from temporary to accum, so REG_EQUAL note will
13873 be attached to this insn in correct mode.
13874
13875 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
13876
13877 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
13878 using REGNO of base_reg directly.
13879
13880 2010-08-05 Jie Zhang <jie@codesourcery.com>
13881
13882 PR tree-optimization/45144
13883 * tree-sra.c (type_consists_of_records_p): Return false
13884 if the record contains bit-field.
13885
13886 2010-08-04 Richard Henderson <rth@redhat.com>
13887
13888 * config/i386/i386.c (struct ix86_frame): Remove padding and
13889 to_allocate members.
13890 (ix86_compute_frame_layout): Don't store them.
13891 (ix86_can_use_return_insn_p): Use a more direct and more obviously
13892 correct condition for the position of the stack pointer.
13893 (ix86_expand_prologue): Compute remaining stack allocation based
13894 on the ultimate stack pointer offset.
13895 (ix86_expand_epilogue): Use more obvious expressions testing for
13896 the stack pointer already pointing to the saved registers.
13897
13898 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
13899 duplication deconstructing the frame pointer. Simplify
13900 deallocation of the local stack frame.
13901
13902 * reg-notes.def (CFA_EXPRESSION): New.
13903 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13904 (dwarf2out_frame_debug_cfa_expression): New.
13905 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
13906
13907 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
13908 * config/i386/i386.c (ix86_expand_prologue): Set it.
13909 (ix86_expand_epilogue): Clear it.
13910 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
13911 context, add REG_CFA_EXPRESSION notes.
13912
13913 * config/i386/i386.h (struct machine_frame_state): Rename from
13914 machine_cfa_state. Add members tracking SP and FP regardless
13915 of the current CFA register.
13916 (ix86_cfa_state): Remove.
13917 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
13918 and sse_reg_save_offset members.
13919 (ix86_compute_frame_layout): Set them.
13920 (gen_push): Increment sp_offset too.
13921 (choose_baseaddr_len, choose_baseaddr): New.
13922 (ix86_emit_save_reg_using_mov): New.
13923 (ix86_emit_save_regs_using_mov): Use it.
13924 (ix86_emit_save_sse_regs_using_mov): Likewise.
13925 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
13926 compare vs the saved red_zone_offset.
13927 (pro_epilogue_adjust_stack): Adjust sp_offset.
13928 (ix86_adjust_stack_and_probe): Likewise.
13929 (ix86_expand_prologue): Set up, use, and validate the new
13930 frame_state_info members. Use gen_frame_mem.
13931 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
13932 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
13933 new frame_state_info members.
13934 (ix86_emit_leave): Likewise.
13935 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
13936 out-of-range stack pointer offsets here.
13937 (ix86_emit_restore_sse_regs_using_mov): Likewise.
13938 (ix86_expand_epilogue): Use and validate the new frame_state_info
13939 members. Break up and simplify the logic selecting the
13940 restore_regs_via_mov code path. Ensure that there will be no
13941 out-of-range stack pointer offsets.
13942
13943 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
13944
13945 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
13946 argument name to reflect the expected tree; fix indentation.
13947 (ix86_asm_output_function_label): Output the entire 32-bit
13948 ms_hook here as bytes ...
13949 (ix86_expand_prologue): ... not here as insns. Attach the
13950 unwind info for the ms_hook to a blockage insn.
13951 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
13952 (ix86_ms_bitfield_layout_p): Fix indentation.
13953 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
13954
13955 * config/i386/i386.c (ix86_using_red_zone): New.
13956 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
13957 ix86_expand_prologue, ix86_force_to_memory): Use it.
13958
13959 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
13960 saving the int registers.
13961
13962 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
13963 and DWARF2_UNWIND_INFO conditional compilation.
13964
13965 2010-08-04 Richard Henderson <rth@redhat.com>
13966
13967 PR debug/45171
13968 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
13969 an is_naming_typedef_decl.
13970
13971 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
13972
13973 PR rtl-optimization/45162
13974 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
13975 * dce.c (word_dce_process_block): Likewise.
13976
13977 2010-08-04 Steve Ellcey <sje@cup.hp.com>
13978
13979 PR target/44583
13980 * config/ia64/constraints.md (Z): New.
13981 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
13982 (xfreg_or_signed_fp01_operand): New.
13983 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
13984 with fr_reg_or_signed_fp01_operand and constraint G with Z.
13985 (subsf3): Ditto.
13986 (*maddsf4): Ditto.
13987 (*msubsf4): Ditto.
13988 (adddf3): Ditto.
13989 (adddf3_trunc): Ditto.
13990 (subdf3): Ditto.
13991 (*subdf3_trunc): Ditto.
13992 (*madddf4): Ditto.
13993 (*madddf4_trunc): Ditto.
13994 (*msubdf4): Ditto.
13995 (*msubdf4_trunc): Ditto.
13996 (addxf3): Replace xfreg_or_fp01_operand with
13997 xfreg_or_signed_fp01_operand and constraint G with Z.
13998 (*addxf3_truncsf): Ditto.
13999 (*addxf3_truncdf): Ditto.
14000 (subxf3): Ditto.
14001 (*subxf3_truncsf): Ditto.
14002 (*subxf3_truncdf): Ditto.
14003 (*maddxf4): Ditto.
14004 (*maddxf4_truncsf): Ditto.
14005 (*maddxf4_truncdf): Ditto.
14006 (*msubxf4): Ditto.
14007 (*msubxf4_truncsf): Ditto.
14008 (*msubxf4_truncdf): Ditto.
14009
14010 2010-08-04 Richard Guenther <rguenther@suse.de>
14011
14012 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
14013 if either alias-set is zero.
14014
14015 2010-08-04 Richard Guenther <rguenther@suse.de>
14016
14017 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
14018 * tree-ssa-ccp.c: ... here.
14019 * tree-ssa-copy.c: ... and here.
14020 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
14021 value_range_t): Move ...
14022 * tree-vrp.c: ... here.
14023 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
14024 (substitute_and_fold): Adjust prototype.
14025 * tree-ssa-propagate.c (replace_uses_in): Adjust.
14026 (replace_phi_args_in): Likewise.
14027 (substitute_and_fold): Take callback to query lattice instead
14028 of pointer to lattice. Replace SSA name defs with lattice
14029 values first.
14030 * tree-ssa-ccp.c (ccp_finalize): Adjust.
14031 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
14032 (get_value): New function.
14033 (fini_copy_prop): Adjust.
14034 * tree-vrp.c (vrp_finalize): Adjust.
14035
14036 2010-08-04 Richard Guenther <rguenther@suse.de>
14037
14038 PR middle-end/45176
14039 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
14040 points-to set for original MEM_REF.
14041
14042 2010-08-04 Richard Guenther <rguenther@suse.de>
14043
14044 * tree-ssa-ccp.c (get_constant_value): New function.
14045 (get_rhs_assign_op_for_ccp): Remove.
14046 (valueize_op): New function.
14047 (ccp_fold): Use get_constant_value and valueize_op.
14048 (fold_const_aggregate_ref): Likewise.
14049 (ccp_fold_stmt): Likewise.
14050 (visit_assignment): Simplify.
14051
14052 2010-08-04 Richard Guenther <rguenther@suse.de>
14053
14054 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
14055 * double-int.h (double_int_ctz): Declare.
14056 * double-int.c (double_int_ctz): New function.
14057
14058 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
14059
14060 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
14061 Define.
14062 picochip_expand_movmemhi : Expand movmem pattern.
14063 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
14064 Declare.
14065 * config/picochip/picochip.md (movmemhi) : New pattern.
14066
14067 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
14068
14069 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
14070
14071 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
14072
14073 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
14074 NEG as operand of a MULT by merging it with the other operand.
14075 * combine.c (make_compound_operation): Use trunc_int_for_mode when
14076 generating a MULT with constant. Canonicalize PLUS and MINUS involving
14077 MULT.
14078 * config/arm/constraints.md (M): Examine only 32 bits of a
14079 HOST_WIDE_INT.
14080 * config/arm/predicates.md (power_of_two_operand): Likewise.
14081
14082 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14083
14084 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
14085 non-NOTE insns.
14086
14087 2010-08-03 Jan Hubicka <jh@suse.cz>
14088
14089 * ipa-split.c (struct split_point): Add split_part_set_retval.
14090 (find_retval): Forward declare.
14091 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
14092 (consider_split): Compute current->split_part_set_retval.
14093 (visit_bb): Do not look into return value.
14094 (split_function): Handle !split_part_set_retval
14095
14096 2010-08-03 Martin Jambor <mjambor@suse.cz>
14097
14098 * tree-sra.c (completely_scalarize_record): New parameter REF, create
14099 its own access->expr intead of using build_ref_for_offset.
14100
14101 2010-08-03 Joseph Myers <joseph@codesourcery.com>
14102
14103 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
14104 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
14105 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
14106 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
14107 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
14108 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
14109 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
14110 DEFAULT_SWITCH_TAKES_ARG.
14111 * config/rx/rx.opt (-patch=): Remove option.
14112 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
14113 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
14114 * doc/invoke.texi (RX Options): Remove -patch=.
14115 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
14116 (option_map): Remove --profile-blocks, --quiet and --silent.
14117
14118 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
14119
14120 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
14121 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
14122 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
14123 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14124 Update calls to ix86_expand_compare and ix86_expand_branch.
14125 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
14126 ix86_expand_compare.
14127 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
14128 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
14129 Make static.
14130 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
14131 and ix86_compare_op1. Update calls to ix86_expand_compare.
14132 (ix86_expand_int_movcc): Ditto.
14133 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
14134 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
14135 (ix86_expand_setcc): Ditto.
14136 (ix86_expand_compare): Remove prototype.
14137 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
14138 ix86_compare_op0 and ix86_compare_op1. Update calls
14139 to ix86_expand_branch to directly pass operands[1] and operands[2].
14140 (cbranchxf4): Ditto.
14141 (cbranch<MODEF:mode>4): Ditto.
14142 (cbranchcc4): Ditto.
14143 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
14144 Update calls to ix86_expand_setcc to directly pass operands[2] and
14145 operands[3].
14146 (cstorexf4): Ditto.
14147 (cstore<MODEF:mode>4): Ditto.
14148 (cstorecc4): Ditto.
14149
14150 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
14151
14152 PR target/45063
14153 * caller-save.c (save_call_clobbered_regs): Remove regs from
14154 hard_regs_saved when they are set.
14155
14156 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14157
14158 PR target/41089
14159 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14160 as volatile.
14161
14162 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
14163
14164 * common.opt (ftree-loop-distribute-patterns): New.
14165 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
14166 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
14167 at -O3.
14168 * tree-data-ref.c (stores_zero_from_loop): New.
14169 * tree-data-ref.h (stores_zero_from_loop): Declared.
14170 * tree-loop-distribution.c (tree_loop_distribution): Call
14171 stores_zero_from_loop.
14172 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
14173
14174 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
14175
14176 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
14177 into account.
14178
14179 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
14180 * config/arm/arm.c (thumb1_code): New variable.
14181 (arm_override_options): Set it.
14182 (thumb1_final_prescan_insn): Keep track of condition code status.
14183 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
14184 jumps that depend on them.
14185 * config/arm/arm.h (thumb1_code): Declare variable.
14186 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
14187 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
14188 thumb1_cc_mode.
14189 (CC_STATUS_INIT): New macro.
14190 * config/arm/constraints.md (Pd): New constraint.
14191 * config/arm/predicates.md (noov_comparison_operator): New predicate.
14192 * config/arm/arm.md (is_thumb1): New define_attr.
14193 (conds): Set default to "clob" when generating Thumb1 code.
14194 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
14195 code are set. Use two-operand assembly syntax.
14196 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
14197 pattern.
14198 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
14199 codes are set. Use two-operand assembly syntax.
14200 (zero_extendhisi splitter): Remove constraints.
14201 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
14202 thumb1_movsf_insn): Set conds attribute as appropriate.
14203 (cbranchsi4_insn): Use condition code status from struct
14204 machine_function to determine whether the comparison can be eliminated.
14205 Discourage the alternative using high registers.
14206 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
14207 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
14208 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
14209 subsi3_cbranch): Delete.
14210 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
14211 one subtract and one cbranch insn.
14212
14213 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
14214 thumb2_movdf_soft_insn): Delete patterns.
14215 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
14216 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
14217 (pool_range, neg_pool_range): Use them to define defaults.
14218 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
14219 and allow for TARGET_32BIT.
14220
14221 PR target/40457
14222 * config/arm/arm.h (arm_regs_in_sequence): Declare.
14223 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
14224 load_multiple_sequence, store_multiple_sequence): Delete
14225 declarations.
14226 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
14227 declarations.
14228 * config/arm/ldmstm.md: New file.
14229 * config/arm/arm.c (arm_regs_in_sequence): New array.
14230 (load_multiple_sequence): Now static. New args SAVED_ORDER,
14231 CHECK_REGS. All callers changed.
14232 If SAVED_ORDER is nonnull, copy the computed order into it.
14233 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
14234 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
14235 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
14236 If SAVED_ORDER is nonnull, copy the computed order into it.
14237 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
14238 like REGS. Handle Thumb mode.
14239 (arm_gen_load_multiple_1): New function, broken out of
14240 arm_gen_load_multiple.
14241 (arm_gen_store_multiple_1): New function, broken out of
14242 arm_gen_store_multiple.
14243 (arm_gen_multiple_op): New function, with code from
14244 arm_gen_load_multiple and arm_gen_store_multiple moved here.
14245 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
14246 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
14247 changed.
14248 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
14249 * config/arm/predicates.md (commutative_binary_operator): New.
14250 (load_multiple_operation, store_multiple_operation): Handle more
14251 variants of these patterns with different starting offsets. Handle
14252 Thumb-1.
14253 * config/arm/arm.md: Include "ldmstm.md".
14254 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
14255 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
14256 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
14257 peepholes): Delete.
14258 * config/arm/ldmstm.md: New file.
14259 * config/arm/arm-ldmstm.ml: New file.
14260
14261 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
14262 if statement which adds extra costs to frame-related expressions.
14263
14264 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14265
14266 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
14267
14268 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
14269
14270 PR target/45142
14271 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
14272 alternative 2.
14273 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
14274 split V4SI operands.
14275
14276 2010-08-01 Anatoly Sokolov <aesok@post.ru>
14277
14278 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14279 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
14280 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
14281 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14282
14283 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
14284
14285 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
14286 LOCAL_INCLUDE_DIR.
14287
14288 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
14289
14290 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
14291 used in the call to optab_for_tree_code. Fix the second
14292 is_widening_mult_p call. Check that both unwidened operands
14293 have the same sign.
14294
14295 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
14296
14297 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
14298
14299 2010-07-31 Anatoly Sokolov <aesok@post.ru>
14300
14301 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14302
14303 2010-07-30 DJ Delorie <dj@redhat.com>
14304
14305 * config/rx/predicates.md (rx_constshift_operand): New.
14306 * config/rx/rx.md (zs_cond): New.
14307 (cbranchsi4): Remove mode.
14308 (*cbranchsi4_<code>): Likewise.
14309 (*tstbranchsi4_<code>): New.
14310 (*tstbranchsi4r_<code>): New.
14311 (*tstbranchsi4m_eq): New.
14312 (*tstbranchsi4m_ne): New.
14313 (cbranchsf4): Remove mode.
14314 (*cbranchsf4_<code>): Likewise.
14315
14316 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
14317
14318 * rtlanal.c (simplify_subreg_regno): Don't treat
14319 HARD_FRAME_POINTER_REGNUM specially.
14320
14321 2010-07-30 Joseph Myers <joseph@codesourcery.com>
14322
14323 * common.opt (-G): Don't define option here.
14324 * config/g.opt: New.
14325 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
14326 rs6000/powerpc and score targets.
14327 * opts.c (common_handle_option): Don't handle -G here.
14328 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
14329 * config/frv/frv.c (frv_handle_option): Handle -G.
14330 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
14331 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
14332 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
14333 * config/mips/mips.c (mips_handle_option): Handle -G.
14334 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
14335 * config/score/score.c (score_handle_option): Handle -G.
14336
14337 2010-07-30 Anatoly Sokolov <aesok@post.ru>
14338
14339 * config/mmix/mmix.c: Include basic-block.h.
14340
14341 2010-07-30 Jakub Jelinek <jakub@redhat.com>
14342
14343 PR debug/45055
14344 PR rtl-optimization/45137
14345 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
14346 prototypes.
14347 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
14348 New functions.
14349 * combine.c (next_nonnote_nondebug_insn): Removed.
14350 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
14351 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
14352 * sched-deps.c (sched_analyze_insn): Likewise.
14353 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
14354 * rtlanal.c (canonicalize_condition): Likewise.
14355 * postreload.c (reload_combine_recognize_pattern): Likewise.
14356 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
14357
14358 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
14359
14360 * config/i386/i386.md (int_cond): Remove code iterator.
14361 (fp_cond): Ditto.
14362 (cbranch<mode>4): Use ordered_comparison_operator predicate
14363 for operator0.
14364 (cstore<mode>4): Ditto for operator1.
14365 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
14366 (add<mode>cc): ditto.
14367
14368 2010-07-30 Richard Guenther <rguenther@suse.de>
14369
14370 PR middle-end/45141
14371 * expr.c (expand_expr_real_1): Check for not handled base address.
14372
14373 2010-07-30 Richard Guenther <rguenther@suse.de>
14374
14375 * ipa-prop.c (ipa_modify_formal_parameters): Use
14376 build_distinct_type_copy.
14377
14378 2010-07-30 Anthony Green <green@moxielogic.com>
14379
14380 * config/moxie/rtems.h: New file.
14381 * config.gcc: Add moxie-rtems support.
14382
14383 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
14384
14385 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
14386 df flags as in run_fast_df_dce.
14387
14388 2010-07-29 Jakub Jelinek <jakub@redhat.com>
14389
14390 Revert:
14391 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
14392
14393 * rtl.def (NOTE): Swap operands 4 and 5.
14394 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
14395 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
14396 Adjust accordingly.
14397 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
14398
14399 2010-07-29 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR debug/45110
14402 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
14403 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
14404 (gen_subprogram_die): Likewise. Remove it when removing declaration's
14405 formal parameters.
14406 (gen_decl_die): Change return type to dw_die_ref, return what
14407 gen_formal_parameter_die returned.
14408
14409 2010-07-29 Martin Jambor <mjambor@suse.cz>
14410
14411 * dbgcnt.def (eipa_sra): New counter.
14412 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
14413
14414 2010-07-29 Xinliang David Li <davidxl@google.com>
14415
14416 PR bootstrap/45119
14417 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
14418 in revision 162652.
14419
14420 2010-07-29 Richard Guenther <rguenther@suse.de>
14421
14422 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
14423 (TV_TREE_STORE_CCP): Likewise.
14424 (TV_TREE_REDPHI): Likewise.
14425
14426 2010-07-29 Richard Guenther <rguenther@suse.de>
14427
14428 * double-int.h (double_int_and_not): New function.
14429 * combine.c (try_combine): Use it.
14430 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
14431
14432 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
14433
14434 PR rtl-optimization/42575
14435 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
14436 Argument AU removed. All callers changed. Ignore artificial refs.
14437 Use return value of df_word_lr_simulate_defs to decide whether an insn
14438 is necessary.
14439 (fast_dce): Rename arg to WORD_LEVEL.
14440 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
14441 static.
14442 (pass_fast_rtl_byte_dce): Delete.
14443 * dce.h (run_word_dce): Declare.
14444 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
14445 All callers changed. Simplify code to only deal with two-word regs.
14446 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
14447 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
14448 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
14449 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
14450 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
14451 (df_word_lr_mark_ref): Declare.
14452 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
14453 df_word_lr_simulate_uses): Declare or rename from byte variants.
14454 (df_byte_lr_simulate_artificial_refs_at_top,
14455 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14456 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
14457 declarations.
14458 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
14459 (enum df_mm): Delete.
14460 * df-byte-scan.c: Delete file.
14461 * df-problems.c (df_word_lr_problem_data): Renamed from
14462 df_byte_lr_problem_data, all members deleted except for
14463 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
14464 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
14465 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14466 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
14467 df_byte_lr_confluence_0): Delete functions.
14468 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
14469 callers changed.
14470 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
14471 Don't initialize members that were deleted, don't try to discover data
14472 about registers. Ignore hard regs.
14473 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
14474 (df_word_lr_mark_ref): New function.
14475 (df_word_lr_bb_local_compute): Renamed from
14476 df_byte_bb_lr_local_compute; all callers changed. Use
14477 df_word_lr_mark_ref. Assert that artificial refs don't include
14478 pseudos. Ignore hard registers.
14479 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
14480 Assert that exit block uses don't contain pseudos.
14481 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
14482 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
14483 callers changed. Ignore hard regs.
14484 (df_word_lr_transfer_function): Renamed from
14485 df_byte_lr_transfer_function; all callers changed.
14486 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
14487 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
14488 changed.
14489 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
14490 callers changed.
14491 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
14492 confluence operator 0 set to NULL.
14493 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
14494 callers changed.
14495 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
14496 Return bool, true if bitmap changed or insn otherwise necessary.
14497 All callers changed. Simplify using df_word_lr_mark_ref.
14498 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
14499 all callers changed. Simplify using df_word_lr_mark_ref.
14500 * lower-subreg.c: Include "dce.h"
14501 (decompose_multiword_subregs): Call run_word_dce if df available.
14502 * Makefile.in (lower-subreg.o): Adjust dependencies.
14503 (df-byte-scan.o): Delete.
14504 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
14505
14506 2010-07-29 Richard Guenther <rguenther@suse.de>
14507
14508 * tree.c (build_vector): Assert that the vector constant
14509 has enough elements.
14510 (build_vector_from_ctor): Pad with trailing zeros.
14511
14512 2010-07-29 Richard Guenther <rguenther@suse.de>
14513
14514 PR tree-optimization/45120
14515 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14516 Handle offset in DEREFs properly.
14517 (get_constraint_for_1): Handle MEM_REF offset properly.
14518
14519 2010-07-29 Richard Guenther <rguenther@suse.de>
14520
14521 PR middle-end/45034
14522 * convert.c (convert_to_integer): Always use an unsigned
14523 type for narrowed negate and bitwise not.
14524
14525 2010-07-29 Ira Rosen <irar@il.ibm.com>
14526
14527 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
14528 to outer loop when creating reduction epilogue for double reduction,
14529 and switch back to the inner loop when updating the phi nodes.
14530 Update uses of outer loop exit phi nodes in double reduction (instead
14531 of uses of reduction).
14532
14533 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
14534
14535 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
14536 popcount on power7 and parity on power6 systems.
14537 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
14538 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
14539 instructions.
14540
14541 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
14542 (UNSPEC_PARITY): Ditto.
14543 (SFDF): New iterator for SF/DF.
14544 (rreg2): New mode attribute for floating register constraint.
14545 (TARGET_FLOAT): New mode attribute for whether single/double float
14546 is supported.
14547 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
14548 pattern.
14549 (parity<mode>2_cmpb): New insn for parity on power6 and newer
14550 machines.
14551 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
14552 pattern. Add support for fcpsgn instruction added in power6.
14553 (copysignsf3): Delete.
14554 (copysigndf3): Delete.
14555 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
14556 instead of if_then_else in RTL to avoid problems with -0.
14557
14558 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
14559 of if_then_else to mirror scalar code.
14560 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
14561 rs6000.md.
14562
14563 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
14564 instead of if_then_else.
14565
14566 2010-07-28 Xinliang David Li <davidxl@google.com>
14567
14568 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
14569 (dump_cand): Dump var_before/after.
14570 (htab_inv_expr_eq): New function.
14571 (htab_inv_expr_hash): New function.
14572 (tree_ssa_iv_optimize_init): Support pseudo invariants.
14573 (add_candidate_1): consider base type precision.
14574 (set_use_iv_cost): New parameter.
14575 (adjust_setup_cost): Use profile information.
14576 (get_address_cost): Do not hard code width in computing address
14577 offset limits.
14578 (compare_aff_trees): New function.
14579 (get_loop_invariant_expr_id): New function.
14580 (get_computation_cost_at): New parameter and use profile information.
14581 (get_computation_cost): New parameter.
14582 (determine_use_iv_cost_generic): Pass new parameter.
14583 (determine_use_iv_cost_address): Ditto.
14584 (determine_use_iv_cost_condition): Ditto.
14585 (autoinc_possible_for_pair): Ditto.
14586 (determine_use_iv_costs): More dumps.
14587 (iv_ca_get_num_inv_exprs): New function.
14588 (iv_ca_recount_cost): Consider loop invariants in register pressure
14589 cost.
14590 (iv_ca_add_use): New parameter.
14591 (iv_ca_dump): Better dumping.
14592 (iv_ca_extend): New parameter.
14593 (try_add_cand_for): Attempt to get better partial solution.
14594 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
14595 (create_new-ivs): More dumps.
14596 (rewrite_use_compare): Ditto.
14597 (free_loop_data): More cleanup.
14598 (treee_ssa_iv_optimize_finalize): Ditto.
14599
14600 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
14601
14602 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
14603 * config/i386/i386.c (ix86_profile_before_prologue): New.
14604 (override_options): Add special handling for -mfentry.
14605 (ix86_function_regparm): Likewise.
14606 (ix86_function_sseregparm): Likewise.
14607 (ix86_frame_pointer_required): Likewise.
14608 (ix86_expand_prologue): Check for ms_hook_prologue.
14609 (x86_function_profiler): Adjust mcount output.
14610 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
14611 * config/i386/i386.opt (mfentry): New.
14612 * doc/invoke.texi (mfentry): Add documentation.
14613 * doc/tm.texi: Regenerated..
14614 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
14615 * final.c (final_start_function): Replace macro
14616 PROFILE_BEFORE_PROLOGUE by target hook.
14617 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14618 * target.def (profile_before_prologue): New hook.
14619 * targhooks.c (default_profile_before_prologue): New.
14620 * targhooks.h (default_profile_before_prologue): New.
14621
14622 2010-07-28 Jakub Jelinek <jakub@redhat.com>
14623
14624 PR debug/45105
14625 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
14626
14627 PR debug/45103
14628 * dwarf2out.c (dwarf2out_var_location): Always consider
14629 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
14630
14631 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
14632
14633 PR rtl-optimization/45107
14634 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
14635
14636 2010-07-28 Richard Guenther <rguenther@suse.de>
14637
14638 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
14639 (set_lattice_value): Do not query an old default value.
14640 (get_value_for_expr): New function. Properly canonicalize
14641 float values.
14642 (ccp_visit_phi_node): Use it.
14643
14644 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
14645
14646 * config/arm/arm.c (arm_pcs_default): Remove static.
14647 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
14648 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
14649 (arm_pcs_default): Declare.
14650
14651 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
14652
14653 * config/rs6000/rs6000.c (rs6000_override_options):
14654 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
14655 ... to darwin_rs6000_override_options.
14656 (rs6000_return_in_memory): Update preceding comment for darwin
14657 64 bit ABI. Use TARGET_MACHO inline.
14658 (rs6000_darwin64_struct_check_p): New.
14659 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
14660 (function_arg): Likewise.
14661 (rs6000_arg_partial_bytes): Likewise.
14662 (rs6000_function_value): Likewise.
14663
14664 2010-07-28 Andi Kleen <ak@linux.intel.com>
14665
14666 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
14667
14668 2010-07-28 Richard Guenther <rguenther@suse.de>
14669
14670 PR middle-end/44903
14671 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
14672 targets try harder to not generate unaligned accesses.
14673
14674 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
14675
14676 PR rtl-optimization/45101
14677 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
14678 for gcse-las.
14679
14680 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
14681
14682 PR tree-optimization/44885
14683 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
14684 with non-aliased component.
14685
14686 2010-07-28 Joseph Myers <joseph@codesourcery.com>
14687
14688 * config/darwin-driver.c (SWITCH_TAKES_ARG,
14689 WORD_SWITCH_TAKES_ARG): Remove.
14690 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
14691 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
14692 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
14693 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
14694 definitions from gcc.c.
14695 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
14696 defaults.h.
14697 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
14698 Move to defaults.h.
14699 * opts-common.c: Include tm.h.
14700 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
14701 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
14702 Handle more than one argument. Set canonical_option_num_elements.
14703 (decode_cmdline_options_to_array): Set
14704 canonical_option_num_elements and trailing elements of
14705 canonical_option.
14706 * opts.h (struct cl_decoded_option): Allow four elements in
14707 canonical_option. Add field canonical_option_num_elements.
14708 * Makefile.in (opts-common.o): Update dependencies.
14709
14710 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
14711
14712 PR middle-end/44790
14713 PR middle-end/44993
14714 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
14715 sure the base has address_mode before adding the offset.
14716
14717 2010-07-27 Xinliang David Li <davidxl@google.com>
14718
14719 * tree-flow.h (create_mem_ref): Add one new parameter.
14720 * tree-ssa-address.c (create_mem_ref): New parameter.
14721 (addr_to_parts): Ditto.
14722 (move_variant_to_index): New function.
14723 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
14724
14725 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
14726
14727 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
14728 4 and 5.
14729 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
14730 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
14731 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
14732 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
14733 CODE_LABELs and NOTEs.
14734 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
14735 * combine.c (try_combine): Likewise.
14736 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14737 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
14738
14739 2010-07-27 Joseph Myers <joseph@codesourcery.com>
14740
14741 * coretypes.h (struct cl_option_handlers): Declare.
14742 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
14743 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
14744 * langhooks-def.h (lhd_handle_option): Declare.
14745 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
14746 * langhooks.c (lhd_handle_option): New.
14747 * langhooks.h (struct lang_hooks): Update prototype and return
14748 value type of handle_option hook.
14749 * optc-gen.awk: Generate target_flags_explicit definition for the
14750 driver.
14751 * opts-common.c: Include diagnostic.h.
14752 (handle_option): Move from opts.c. Update prototype and return
14753 value type. Use handlers structure.
14754 (read_cmdline_option): Move from opts.c. Update prototype. Use
14755 handlers structure.
14756 (set_option): Move from opts.c.
14757 * opts.c (common_handle_option): Update prototype and return value
14758 type. Update calls to handle_option and enable_warning_as_error.
14759 (unknown_option_callback, post_handling_callback,
14760 lang_handle_option, target_handle_option): New.
14761 (handle_option, read_cmdline_option): Move to opts-common.c.
14762 (read_cmdline_options): Update prototype. Update call to
14763 read_cmdline_option.
14764 (decode_options): Initialize and use handlers structure.
14765 (set_option): Move to opts-common.c.
14766 (enable_warning_as_error): Update prototype. Update call to
14767 handle_option.
14768 * opts.h (struct cl_option_handler_func, struct
14769 cl_option_handlers): New.
14770 (handle_option, enable_warning_as_error): Update prototypes.
14771 (read_cmdline_option): Declare.
14772 * Makefile.in (opts-common.o): Update dependencies.
14773
14774 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14775
14776 * config/arm/arm.c (params.h): Include.
14777 (arm_override_options): Tune gcse-unrestricted-cost.
14778 * config/arm/t-arm (arm.o): Define dependencies.
14779
14780 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14781
14782 PR target/42495
14783 PR middle-end/42574
14784 * basic-block.h (get_dominated_to_depth): Declare.
14785 * dominance.c (get_dominated_to_depth): New function, use
14786 get_all_dominated_blocks as a base.
14787 (get_all_dominated_blocks): Use get_dominated_to_depth.
14788
14789 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
14790 (hoist_exprs): Remove.
14791 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
14792 (compute_code_hoist_vbeinout): Add debug print outs.
14793 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
14794
14795 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
14796 quadratic behavior.
14797 * params.h (MAX_HOIST_DEPTH): New macro.
14798 * doc/invoke.texi (max-hoist-depth): Document.
14799
14800 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14801
14802 PR rtl-optimization/40956
14803 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
14804 constants.
14805
14806 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14807
14808 PR target/42495
14809 PR middle-end/42574
14810 * config/arm/arm.c (legitimize_pic_address): Use
14811 gen_calculate_pic_address pattern to emit calculation of PIC address.
14812 (will_be_in_index_register): New function.
14813 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
14814 (thumb1_legitimate_address_p): Use it provided !strict_p.
14815 * config/arm/arm.md (calculate_pic_address): New expand and split.
14816
14817 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14818
14819 PR target/42495
14820 PR middle-end/42574
14821 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
14822 * config/arm/arm.md (define_split "J", define_split "K"): Make
14823 IRA/reload friendly.
14824
14825 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14826
14827 * gcse.c (insert_insn_end_basic_block): Update signature, remove
14828 unused checks.
14829 (pre_edge_insert, hoist_code): Update.
14830
14831 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14832
14833 PR target/42495
14834 PR middle-end/42574
14835 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
14836
14837 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14838
14839 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
14840
14841 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14842
14843 PR rtl-optimization/40956
14844 PR target/42495
14845 PR middle-end/42574
14846 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
14847 for hoisting.
14848 (hoist_code): Count occurences in current block too.
14849
14850 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14851
14852 * gcse.c (struct expr:max_distance): New field.
14853 (doing_code_hoisting_p): New static variable.
14854 (want_to_gcse_p): Change signature. Allow constrained hoisting of
14855 simple expressions, don't change behavior for PRE. Set max_distance.
14856 (insert_expr_in_table): Set new max_distance field.
14857 (hash_scan_set): Update.
14858 (hoist_expr_reaches_here_p): Stop search after max_distance
14859 instructions.
14860 (find_occr_in_bb): New static function. Use it in ...
14861 (hoist_code): Calculate sizes of basic block before any changes are
14862 done. Pass max_distance to hoist_expr_reaches_here_p.
14863 (one_code_hoisting_pass): Set doing_code_hoisting_p.
14864
14865 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
14866 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
14867 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
14868 macros.
14869 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
14870 Document.
14871
14872 2010-07-27 Jeff Law <law@redhat.com>
14873 Maxim Kuvyrkov <maxim@codesourcery.com>
14874
14875 * gcse.c (compute_transpout, transpout): Remove, move logic
14876 to prune_expressions.
14877 (compute_pre_data): Move pruning of trapping expressions ...
14878 (prune_expressions): ... here. New static function.
14879 (compute_code_hoist_data): Use it.
14880 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
14881
14882 2010-07-27 Xinliang David Li <davidxl@google.com>
14883
14884 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
14885 (rewrite_use_address): Adjust iv update position when needed.
14886
14887 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14888
14889 * dbgcnt.def (hoist_insn): New debug counter.
14890 * gcse.c (hoist_code): Use it.
14891
14892 2010-07-27 Xinliang David Li <davidxl@google.com>
14893
14894 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
14895 (niter_for_single_dom_exit): Passes additional parameter.
14896 (iv_period): Fix comments.
14897 (may_eliminate_iv): Handles multiple exit loops properly.
14898 (free_tree_niter_desc): New function.
14899 (free_loop_data): Frees up loop iteration descriptors.
14900
14901 2010-07-27 Jakub Jelinek <jakub@redhat.com>
14902
14903 PR target/44542
14904 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
14905 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
14906 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
14907 (expand_one_var): Don't consider DECL_ALIGN for variables for
14908 which expand_one_stack_var_at has been already called.
14909
14910 PR testsuite/44701
14911 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
14912 constraints on IA-64.
14913
14914 2010-07-27 Jie Zhang <jie@codesourcery.com>
14915
14916 PR target/44290
14917 Revert:
14918 2010-07-23 Jie Zhang <jie@codesourcery.com>
14919
14920 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14921 false if ! tree_versionable_function_p.
14922
14923 2010-07-27 Jakub Jelinek <jakub@redhat.com>
14924
14925 * dwarf2out.c (add_data_member_location_attribute): Use
14926 add_AT_unsigned instead of add_AT_int if offset is non-negative.
14927
14928 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
14929
14930 * postreload.c (try_replace_in_use): New static function.
14931 (reload_combine_recognize_const_pattern): Use it here. Allow
14932 substituting into a final add insn, and substituting into a memory
14933 reference in an insn that sets the reg.
14934
14935 2010-07-27 Joseph Myers <joseph@codesourcery.com>
14936
14937 * common.opt (o): Add MissingArgError.
14938 * doc/options.texi (MissingArgError): Document.
14939 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
14940 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
14941 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14942 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
14943 * langhooks.h (struct lang_hooks): Remove missing_argument.
14944 * optc-gen.awk: Handle MissingArgError and output new structure
14945 field initializers.
14946 * opts.c (read_cmdline_option): Use missing_argument_error field
14947 instead of missing_argument langhook.
14948 * opts.h (struct cl_option): Add missing_argument_error field.
14949 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
14950
14951 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
14952
14953 PR target/29090
14954 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
14955 Darwin64 ABI, for zero-sized objects.
14956
14957 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
14958
14959 PR target/35491
14960 PR target/29090
14961
14962 Merge from Apple local 4.2.1.
14963 2005-05-11 Stan Shebs <shebs@apple.com>
14964 Fix 64-bit varargs for Darwin (Radar 4028089).
14965 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
14966 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
14967 Add argument, add case for 8-byte register half-filled with a float.
14968 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
14969 single-precision floats specially.
14970
14971 2010-07-27 Ira Rosen <irar@il.ibm.com>
14972
14973 PR tree-optimization/44152
14974 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
14975 complex numbers for further check.
14976 (vect_supported_load_permutation_p): Check nodes with
14977 complex numbers.
14978
14979 2010-07-27 Joseph Myers <joseph@codesourcery.com>
14980
14981 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
14982 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
14983 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
14984 (LANG_HOOKS_INITIALIZER): Add new hooks.
14985 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
14986 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
14987 and complain_wrong_lang_p. Update init_options prototype.
14988 * c-objc-common.c (c_initialize_diagnostics): First call
14989 c_common_initialize_diagnostics.
14990 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
14991 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
14992 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
14993 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
14994 (hook_uint_void_0): New.
14995 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
14996 (hook_uint_void_0): New.
14997 * opts-common.c (decode_cmdline_option,
14998 decode_cmdline_options_to_array): Also fill in canonical_option field.
14999 * opts.c (complain_wrong_lang): Use langhook to determine whether
15000 to complain instead of special-casing LTO.
15001 (decode_options): Separate lang_mask determination with
15002 option_lang_mask hook from call of init_options hook.
15003 * opts.h (struct cl_decoded_option): Add canonical_option.
15004
15005 2010-07-27 Jakub Jelinek <jakub@redhat.com>
15006
15007 PR tree-optimization/45083
15008 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
15009
15010 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15011
15012 * postreload.c (reload_combine_recognize_const_pattern): Move test
15013 for limiting the insn movement to the right scope.
15014
15015 PR rtl-optimization/45051
15016 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
15017 than reg_mentioned_p.
15018
15019 2010-07-26 Richard Henderson <rth@redhat.com>
15020
15021 PR target/44132
15022 * tree-emutls.c: New file.
15023 * Makefile.in (OBJS-common): Add it.
15024 * tree-pass.h (pass_ipa_lower_emutls): Declare.
15025 * passes.c (init_optimization_passes): Add it.
15026
15027 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
15028 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
15029 * expr.c (emutls_var_address): Delete.
15030 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
15031 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
15032 (emutls_finish): Delete.
15033 * toplev.c (compile_file): Don't call it.
15034 * tree.h (emutls_decl): Delete.
15035 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
15036 (emutls_finish, emutls_finalize_control_var): Delete.
15037 (emutls_object_type): Move to tree-emutls.c.
15038 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
15039 default_emutls_var_fields, get_emutls_object_type,
15040 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
15041 default_emutls_var_init): Likewise.
15042 (get_variable_section): Don't special case emutls.
15043 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
15044 default_elf_select_section, default_unique_section,
15045 default_encode_section_info): Likewise.
15046 * varpool.c (decide_is_variable_needed): Likewise.
15047 * gimple-iterator.c (update_call_edge_frequencies): New
15048 (gsi_insert_on_edge_immediate): Use it.
15049 (gsi_insert_seq_on_edge_immediate): Likewise.
15050 (gsi_commit_one_edge_insert): Likewise.
15051
15052 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
15053 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
15054 (x86_64_elf_unique_section): Likewise.
15055
15056 2010-07-26 Jan Hubicka <jh@suse.cz>
15057
15058 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
15059 GTY((skip)).
15060
15061 2010-07-26 Anatoly Sokolov <aesok@post.ru>
15062
15063 * target.def (output_source_filename): New hook.
15064 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
15065 * doc/tm.texi: Regenerate.
15066 * toplev.c (output_file_directive) Remove function.
15067 * toplev.h (output_file_directive) Remove.
15068 * output.h (default_asm_output_source_filename,
15069 output_file_directive): Declare.
15070 * varasm.h (default_asm_output_source_filename,
15071 output_file_directive): New functions.
15072
15073 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15074 * config/mips/mips-protos.h (mips_output_filename): Remove.
15075 * config/mips/mips.c (mips_output_filename): Make Static.
15076 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15077
15078 2010-07-26 Richard Guenther <rguenther@suse.de>
15079
15080 PR tree-optimization/43784
15081 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
15082 if the destination is used by the call.
15083
15084 2010-07-26 Richard Guenther <rguenther@suse.de>
15085
15086 PR middle-end/45073
15087 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
15088 SSA updating on being in SSA form.
15089
15090 2010-07-26 Richard Guenther <rguenther@suse.de>
15091
15092 PR middle-end/45056
15093 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
15094
15095 2010-07-26 Richard Guenther <rguenther@suse.de>
15096
15097 PR tree-optimization/45071
15098 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
15099 adjust op->opcode.
15100
15101 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
15102
15103 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
15104 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
15105 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
15106 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
15107 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
15108 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
15109 save_r31, return_r31, save_interrupt, return_interrupt,
15110 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
15111 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
15112 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
15113 new ABI requirements.
15114 (save_r6_r9, L_callt_save_r6_r9): Remove.
15115 * config/v850/predicates.md (even_reg_operand, disp23_operand,
15116 const_float_1_operand const_float_0_operand): New Predicates.
15117 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
15118 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
15119 * config/v850/t-v850: Update multilibs for new target variants.
15120 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
15121 * config/v850/t-v850e: Likewise.
15122 * config/v850/v850.c (v850_issue_rate): New.
15123 (v850_strict_argument_naming): New.
15124 (function_arg): Modify to generate a different ABI.
15125 (print_operand): Update case 'z' to support float modes.
15126 (output_move_single): Modify to generate appropriate and better
15127 assembly.
15128 (v850_float_z_comparison_operator, v850_select_cc_mode,
15129 v850_float_nz_comparison_operator, v850_gen_float_compare,
15130 v850_gen_compare): New functions to support comparison of float values.
15131 (ep_memory_offset): Add support for V850E2 targets.
15132 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
15133 (INTERRUPT_REGPARM_NUM): Remove.
15134 (compute_register_save_size): Add extra case to save/restore long call.
15135 (use_prolog_function): New function to support prologue.
15136 (expand_prologue): Add support for V850E2 targets and modified
15137 as per the current ABI requirements.
15138 (expand_epilogue): Likewise.
15139 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
15140 (construct_save_jarl): Likewise.
15141 (construct_dispose_instruction): Update as per the current ABI
15142 requirements.
15143 (construct_prepare_instruction): Likewise.
15144 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
15145 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
15146 (CPP_SPEC): Updated to support v850e2 targets.
15147 (STRICT_ALIGNMENT): Modified.
15148 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
15149 (FIXED_REGISTERS): Likewise.
15150 (CALL_USED_REGISTERS): Likewise.
15151 (CONDITIONAL_REGISTER_USAGE): Updated.
15152 (HARD_REGNO_MODE_OK): Updated.
15153 (reg_class): Updated to add even registers.
15154 (REG_CLASS_NAMES): Likewise.
15155 (REG_CLASS_CONTENTS): Likewise.
15156 (REGNO_REG_CLASS): Updated for CC registers.
15157 (REG_CLASS_FROM_LETTER): Added support for even registers.
15158 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
15159 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
15160 ARG_POINTER_REGNUM): Updated.
15161 (FUNCTION_ARG_ADVANCE): Define.
15162 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
15163 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
15164 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
15165 (GO_IF_LEGITIMATE_ADDRESS): Updated.
15166 (SELECT_CC_MODE): Define.
15167 (REGISTER_NAMES): Updated to add psw and fcc registers.
15168 (ADDITIONAL_REGISTER_NAMES): Updated.
15169 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
15170 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
15171 * config/v850/v850.md (define_constants): Define new constants.
15172 (type): Update store,bit1,macc,div,fpu and single attributes.
15173 (cpu): New attribute.
15174 (cc): Add set_z attribute.
15175 (unsign23byte_load, sign23byte_load, unsign23hword_load,
15176 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
15177 23word_store): New instructions for 23-bit displacement load and store.
15178 (movqi_internal, movhi_internal): Update the attributes.
15179 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
15180 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
15181 the attributes.
15182 (v850_tst1): Modified using CC_REGNUM.
15183 (tstsi): Remove.
15184 (cmpsi): Modified as define_expand from define_insn.
15185 (cmpsi_insn, cmpsf, cmpdf): New instructions.
15186 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
15187 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
15188 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
15189 one_cmplsi2): Clobber the CC_REGNUM register.
15190 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
15191 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
15192 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
15193 (setf_insn, set_z_insn, set_nz_insn): New instructions for
15194 v850e2v3 target.
15195 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
15196 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
15197 targets.
15198 (sasf_1, sasf_2): Remove.
15199 (sasf): New instruction.
15200 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
15201 targets. CC_REGNUM register is clobbered and attributes are
15202 updated.
15203 (branch_z_normal, branch_z_invert, branch_nz_normal,
15204 branch_nz_invert): New branch related instructions.
15205 (jump): Updated the attributes.
15206 (switch): Update to support new targets. CC_REGNUM register is
15207 clobbered and attributes are updated.
15208 (call_internal_short, call_internal_long, call_value_internal_short,
15209 call_value_internal_long): Updated the attributes.
15210 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
15211 clobbered and attributes are updated.
15212 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
15213 Update to support new targets. CC_REGNUM register is clobbered.
15214 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
15215 instructions.
15216 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
15217 are updated.
15218 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
15219 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
15220 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
15221 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
15222 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
15223 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
15224 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
15225 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
15226 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
15227 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
15228 point instructions defined for V850e2v3 target.
15229 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
15230 Add support for V850E2 targets and CC_REGNUM register is clobbered.
15231 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
15232 support for new targets.
15233 * config/v850/v850-modes.def: New file.
15234 * config/v850/v850.opt(mstrict-align): Remove.
15235 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
15236 mv850e2v3): New command line options for V850.
15237 * config.gcc: Update the newly added files.
15238 * doc/invoke.texi: Update the newly added command line options for
15239 V850 target.
15240
15241 2010-07-26 Richard Guenther <rguenther@suse.de>
15242
15243 PR tree-optimization/45052
15244 * ipa-pure-const.c (check_stmt): Check volatileness.
15245
15246 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
15247
15248 PR target/44707
15249 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
15250 * config/sparc/sparc.c: Include reload.h.
15251 (legitimize_tls_address): Rename into...
15252 (sparc_legitimize_tls_address): ...this.
15253 (legitimize_pic_address): Rename into...
15254 (sparc_legitimize_pic_address): ...this.
15255 (sparc_expand_move): Adjust to above renaming.
15256 (sparc_tls_referenced_p): Likewise.
15257 (sparc_legitimize_tls_address): Likewise.
15258 (sparc_legitimize_pic_address): Likewise.
15259 (sparc_legitimize_address): Likewise.
15260 (sparc_output_mi_thunk): Likewise.
15261 (sparc_legitimize_reload_address): New global function. Recognize
15262 (lo_sum (high ...) ...) patterns generated by earlier passes.
15263 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
15264
15265 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
15266
15267 PR target/44484
15268 * config/sparc/predicates.md (memory_reg_operand): Delete.
15269 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
15270 (*sync_compare_and_swap): Encode the address form in the pattern.
15271 (*sync_compare_and_swapdi_v8plus): Likewise.
15272
15273 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
15274
15275 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
15276 Streamline paragraph on compatibility with the system compiler.
15277
15278 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
15279
15280 PR middle-end/45035
15281 * alias.c (true_dependence_1): Fix thinko in merge of old
15282 true_dependence and canon_true_dependence.
15283
15284 2010-07-23 Jan Hubicka <jh@suse.cz>
15285
15286 * lto-streamer-out.c (write_symbol): Fix visibilities of external
15287 references.
15288
15289 2010-07-23 Le-Chun Wu <lcwu@google.com>
15290
15291 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
15292 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
15293 and an unnecessary assignment.
15294 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
15295 self-assign warning.
15296 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
15297 unnecessary self-init.
15298
15299 2010-07-23 Richard Guenther <rguenther@suse.de>
15300
15301 PR lto/43071
15302 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
15303 for -flto and -fwhopr.
15304
15305 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
15306
15307 PR target/41943
15308 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
15309 (stmp-int-hdrs): Prefix/postfix headers by include_next.
15310 * config.gcc (user_headers_inc_next_pre): New.
15311 (user_headers_inc_next_post): Likewise.
15312 (*-w64-mingw*): Use for float.h post-fixing, and for
15313 stddef.h/stdarg.h pre-fixing by include_next.
15314 * configure.ac (user_headers_inc_next_post): New.
15315 (user_headers_inc_next_pre): New.
15316 * configure: Regenerated.
15317
15318 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15319
15320 * configure.ac: Don't disable TLS on Solaris 8/9 by default
15321 Set tga_func for Solaris 2/x86 resp. SPARC.
15322 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
15323 (LIB_THREAD_LDFLAGS_SPEC): Define.
15324 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
15325 * configure: Regenerate.
15326 * config.in: Regenerate.
15327 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
15328 -pthread, -threads, LIB_TLS_SPEC with -pthread.
15329 * doc/install.texi (Specific, *-*-solaris2*): Document use of
15330 alternate thread libraries on Solaris 8.
15331 Document TLS patch requirements.
15332 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
15333 Document tls.
15334
15335 PR target/18788
15336 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
15337 -shared.
15338
15339 2010-07-23 Jakub Jelinek <jakub@redhat.com>
15340
15341 * tree.h (struct tree_base): Add nameless_flag bitfield.
15342 (TYPE_NAMELESS, DECL_NAMELESS): Define.
15343 * omp-low.c (create_omp_child_function, scan_omp_parallel,
15344 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
15345 DECL_ARTIFICIAL where needed.
15346 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
15347 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
15348 has DECL_NAMELESS set.
15349
15350 2010-07-23 Martin Jambor <mjambor@suse.cz>
15351
15352 PR tree-optimization/44915
15353 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
15354 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
15355 (analyze_function): Likewise.
15356
15357 2010-07-23 Martin Jambor <mjambor@suse.cz>
15358
15359 PR tree-optimization/44914
15360 * tree-sra.c (sra_modify_function_body): Return true if CFG was
15361 changed, add purging dead eh edges.
15362 (ipa_sra_modify_function_body): Return true if CFG was changed,
15363 simplify purging dead eh edges.
15364 (modify_function): Return true if CFG was changed.
15365 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
15366 was changed.
15367 (ipa_early_sra): Likewise.
15368
15369 2010-07-23 Jie Zhang <jie@codesourcery.com>
15370
15371 PR target/44290
15372 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
15373 if "naked".
15374 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15375 false if ! tree_versionable_function_p.
15376
15377 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
15378
15379 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
15380 * ipa-pure-const.c (special_builtlin_state): Remove
15381 BUILT_IN_ARGS_INFO case.
15382 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15383 * builtins.c (expand_builtin): Likewise.
15384 (expand_builtin_args_info): Remove.
15385 * doc/tm.texi (__builtin_args_info): Remove.
15386 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
15387 * doc/tm.text.in: Likewise.
15388
15389 2010-07-23 Richard Guenther <rguenther@suse.de>
15390
15391 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
15392 (lto_symtab_merge_decls_2): Likewise.
15393 * tree-ssa.c (useless_type_conversion_p): Likewise.
15394 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15395 * gimple.c (gtc_visited2, gtc_ob2): Remove.
15396 (struct type_pair_d): Make same_p an array indexed by mode.
15397 Update comment.
15398 (lookup_type_pair): Update initialization.
15399 (struct sccs): Adjust same_p type.
15400 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
15401 Adjust.
15402 (print_gimple_types_stats): Likewise.
15403 * gimple.h (enum gtc_mode): New.
15404 (gimple_types_compatible_p): Adjust prototype.
15405
15406 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
15407
15408 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
15409 again after processing insn.
15410
15411 2010-07-23 Jie Zhang <jie@codesourcery.com>
15412
15413 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
15414 proper words when !tree_versionable_function_p.
15415
15416 2010-07-23 Richard Guenther <rguenther@suse.de>
15417
15418 PR tree-optimization/45037
15419 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
15420
15421 2010-07-23 Jie Zhang <jie@codesourcery.com>
15422
15423 * doc/extend.texi: Remove IP2K from the description of naked attribute.
15424 Add MCORE instead.
15425
15426 2010-07-10 Andi Kleen <ak@linux.intel.com>
15427
15428 PR lto/44992
15429 * lto-opts.c (lto_write_options): Add NULL file_data argument to
15430 lto_get_section_name.
15431 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15432 * lto-streamer-out.c (produce_asm): Likewise.
15433 (copy_function): Likewise.
15434 (produce_symtab): Likewise.
15435 (produce_asm_for_decls): Likewise.
15436 * lto-streamer.c (lto_get_section_name): Add file_data argument.
15437 Rewrite to add random postfix to LTO sections.
15438 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
15439 (lto_get_section_name): Add file_data argument to prototype.
15440
15441 2010-07-10 Andi Kleen <ak@linux.intel.com>
15442
15443 * lto-section-in.c (lto_section_name): Synchronize names
15444 with lto_get_section_name.
15445
15446 2010-07-10 Andi Kleen <ak@linux.intel.com>
15447
15448 * lto-opts.c (lto_read_file_options): Check for missing section.
15449
15450 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
15451
15452 * ira.c (check_allocation): Correctly handle the case where an allocno
15453 with two objects was allocated to a single reg.
15454
15455 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
15456
15457 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
15458 (is_widening_mult_p): Likewise.
15459 (convert_to_widen): Use them.
15460 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
15461 well as integer ones.
15462
15463 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
15464
15465 * alias.c (true_dependence_1): New function, merged version of
15466 true_dependence and canon_true_dependence.
15467 (true_dependence): Simplify.
15468 (canon_true_dependence): Simplify.
15469
15470 2010-07-22 Richard Henderson <rth@redhat.com>
15471
15472 PR target/45027
15473 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
15474 of V4SFmode for the SSE saves; increase stack alignment if needed.
15475 (ix86_gimplify_va_arg): Don't increase stack alignment here.
15476
15477 2010-07-22 Jakub Jelinek <jakub@redhat.com>
15478
15479 PR bootstrap/45028
15480 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
15481 call cprop_find_used_regs again via note_uses.
15482
15483 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
15484
15485 * alias.c (get_alias_set): Fix formatting issues.
15486
15487 2010-07-22 Steve Ellcey <sje@cup.hp.com>
15488
15489 PR middle-end/44878
15490 * stmt.c (expand_value_return): Call promote_function_mode with
15491 a for_return argument of 2 when returning by reference.
15492
15493 2010-07-22 Dodji Seketeli <dodji@redhat.com>
15494
15495 PR debug/45024
15496 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
15497 unit DIE if we can find the scope DIE.
15498
15499 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
15500
15501 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
15502 changed. Initialize OBJECT_SUBWORD.
15503 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
15504 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
15505 all callers changed.
15506 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
15507 (finish_allocno): Likewise.
15508 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
15509 (remove_low_level_allocnos): Likewise.
15510 (update_bad_spill_attribute): Likewise.
15511 (setup_min_max_allocno_live_range_point): Likewise.
15512 (sort_conflict_id_map): Likewise.
15513 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
15514 (ior_hard_reg_conflicts): New function.
15515 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
15516 (compress_conflict_vecs): Iterate over objects, not allocnos.
15517 (ira_add_live_range_to_object): New function.
15518 (object_range_compare_func): Renamed from allocno_range_compare_func.
15519 All callers changed.
15520 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
15521 subobjects, widen the min/max range of the lowest-order object to
15522 potentially include all other such low-order objects.
15523 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
15524 (check_allocation): Likewise. Use more fine-grained tests for register
15525 conflicts.
15526 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
15527 allocno subobjects.
15528 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
15529 choices about which bits to set in each set. Don't use
15530 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
15531 using the multiple sets we computed.
15532 (push_allocno_to_stack): Iterate over allocno subobjects.
15533 (all_conflicting_hard_regs_coalesced): New static function.
15534 (setup_allocno_available_regs_num): Use it.
15535 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
15536 subobjects.
15537 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
15538 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15539 by ALLOCNO_NUM_OBJECTS.
15540 (calculate_spill_cost): Likewise.
15541 (color_pass): Express if statement in a more normal way.
15542 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
15543 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
15544 (setup_slot_coalesced_allocno_live_ranges): Likewise.
15545 (allocno_reload_assign): Likewise.
15546 (ira_reassign_pseudos): Likewise.
15547 (fast_allocation): Likewise.
15548 * ira-conflicts.c (build_conflict_bit_table): Likewise.
15549 (print_allocno_conflicts): Likewise.
15550 (ira_build_conflicts): Likewise.
15551 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
15552 callers changed. Test subword 0 of each allocno for conflicts.
15553 (build_object_conflicts): Renamed from build_allocno_conflicts. All
15554 callers changed. Iterate over allocno subobjects.
15555 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
15556 * ira-int.h (struct ira_allocno): New member: num_objects.
15557 Rename object to objects and change it into an array.
15558 (ALLOCNO_OBJECT): Add new argument N.
15559 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
15560 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
15561 (ior_hard_reg_conflicts): Declare.
15562 (ira_add_live_range_to_object): Declare.
15563 (ira_allocno_object_iterator): New.
15564 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
15565 (FOR_EACH_ALLOCNO_OBJECT): New macro.
15566 * ira-lives.c (objects_live): Renamed from allocnos_live; all
15567 uses changed.
15568 (allocnos_processed): New sparseset.
15569 (make_object_born): Renamed from make_allocno_born; take an
15570 ira_object_t argument. All callers changed.
15571 (make_object_dead): Renamed from make_allocno_dead; take an
15572 ira_object_t argument. All callers changed.
15573 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
15574 All callers changed.
15575 (mark_pseudo_regno_live): Iterate over allocno subobjects.
15576 (mark_pseudo_regno_dead): Likewise.
15577 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
15578 functions.
15579 (mark_ref_live): Detect subword accesses and call
15580 mark_pseudo_regno_subword_live as appropriate.
15581 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
15582 (process_bb_nodes_live): Deal with object-related updates first; set
15583 and test bits in allocnos_processed to avoid computing allocno
15584 statistics more than once.
15585 (create_start_finish_chains): Iterate over objects, not allocnos.
15586 (print_object_live_ranges): New function.
15587 (print_allocno_live_ranges): Use it.
15588 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
15589 and objects_live.
15590
15591 2010-07-22 Richard Guenther <rguenther@suse.de>
15592
15593 PR lto/42451
15594 * gimple.c (gtc_next_dfs_num): New global.
15595 (struct sccs): Make value a union, add integer same_p member.
15596 (gtc_visit): New function.
15597 (gimple_types_compatible_p_1): New function, split out from ...
15598 (gimple_types_compatible_p): ... here. Start a DFS walk here.
15599 (iterative_hash_gimple_type): Adjust for sccs change.
15600
15601 2010-07-22 Martin Jambor <mjambor@suse.cz>
15602
15603 PR tree-optimization/44891
15604 * tree-sra.c: Include gimple-pretty-print.h.
15605 (replace_uses_with_default_def_ssa_name): Renamed to
15606 get_repl_default_def_ssa_name, return the new SSA name instead of
15607 replacing the old one.
15608 (sra_modify_assign): Dump a message when removing a load, if the LHS
15609 is an SSA_NAME, do not do any propagation, just set the RHS to a
15610 default definition SSA NAME, type convert if necessary.
15611 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
15612
15613 2010-07-22 Richard Guenther <rguenther@suse.de>
15614
15615 PR tree-optimization/45017
15616 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
15617 TYPE_PRECISION of integral types in addition to size.
15618
15619 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15620
15621 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
15622 when no C library is specified.
15623
15624 2010-07-22 Martin Jambor <mjambor@suse.cz>
15625
15626 * ipa-prop.h (struct ipa_node_params): Updated comment.
15627 (struct ipa_edge_args): Likewise.
15628 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
15629
15630 2010-07-22 Martin Jambor <mjambor@suse.cz>
15631
15632 * cgraphunit.c (verify_edge_count_and_frequency): New function.
15633 (verify_cgraph_node): Verify frequencies of indirect edges.
15634 * tree-inline.c (tree_function_versioning): Update frequencies of
15635 indirect edges.
15636
15637 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15638
15639 PR target/43698
15640 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
15641 Set *arm_rev to be predicable.
15642
15643 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
15644
15645 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
15646 (LINK_COMMAND_SPEC_A): New.
15647 (DSYMUTIL): New.
15648 (DSYMUTIL_SPEC): New.
15649 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
15650 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
15651
15652 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
15653
15654 * calls.c (load_register_parameters): Move check for zero
15655 sized items so that only the call to
15656 mem_overlaps_already_clobbered_arg_p () is protected.
15657
15658 2010-07-22 Jan Hubicka <jh@suse.cz>
15659
15660 * ipa-pure-const.c (varying_state): Break out from ...
15661 (get_function_state): ... here; always return varying_state
15662 when state would be NULL otherwise.
15663 (remove_node_data): Do not free varying state.
15664
15665 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
15666
15667 PR bootstrap/44970
15668 PR middle-end/45009
15669 * postreload.c: Include "target.h".
15670 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
15671 into account.
15672 (fixup_debug_insns): Don't copy the rtx.
15673 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
15674 Don't copy when replacing. Call fixup_debug_insns in the case where
15675 we merged one add with another.
15676 (reload_combine_recognize_pattern): Fail if there aren't any uses.
15677 Try harder to determine whether we're picking a valid index register.
15678 Don't set store_ruid for an insn we're going to scan in the
15679 next iteration.
15680 (reload_combine): Remove unused code.
15681 (reload_combine_note_use): When updating use information for
15682 an old insn, ignore a use that occurs after store_ruid.
15683 * Makefile.in (postreload.o): Update dependencies.
15684
15685 * function.c (record_hard_reg_sets): Restrict the previous change
15686 to cases where the incoming nominal mode is the same as the
15687 incoming promoted mode and everything happens in MODE_INT.
15688
15689 2010-07-21 Jakub Jelinek <jakub@redhat.com>
15690
15691 PR debug/45015
15692 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
15693 ASM_OPERANDS_OUTPUT_IDX.
15694 (adjust_insn): For inline asm with multiple sets ensure first
15695 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
15696 the insn.
15697
15698 2010-07-21 Richard Henderson <rth@redhat.com>
15699
15700 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
15701 comparison for avoiding xmm register saves. Emit the xmm register
15702 saves explicitly.
15703 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
15704 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
15705 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
15706 Remove patterns and the associated splitters.
15707
15708 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
15709
15710 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
15711 and imagine parts of a complex, so that they can have the same
15712 base and fall into the same group.
15713
15714 2010-07-21 Richard Guenther <rguenther@suse.de>
15715
15716 PR lto/45018
15717 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
15718 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
15719 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
15720
15721 2010-07-21 Martin Jambor <mjambor@suse.cz>
15722
15723 PR tree-optimization/44900
15724 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
15725 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
15726
15727 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
15728
15729 PR middle-end/44738
15730 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
15731
15732 2010-07-21 Richard Guenther <rguenther@suse.de>
15733
15734 PR middle-end/45013
15735 * tree-ssa.c (useless_type_conversion_p): Dispatch to
15736 gimple_types_compatible_p only when in lto.
15737 * gimple.c (gimple_types_compatible_p): Use canonical types
15738 to speed up comparison.
15739
15740 2010-07-21 Richard Guenther <rguenther@suse.de>
15741
15742 * tree-flow.h (referenced_var): Move define ...
15743 * tree-flow-inline.h (referenced_var): ... here as an inline
15744 function. Assert here ...
15745 * tree-dfa.c (referenced_var_lookup): ... instead of here.
15746 * tree-ssa.c (maybe_optimize_var): Check if the variable
15747 is in referenced vars.
15748 (execute_update_addresses_taken): Remove old broken check.
15749 * gimple-pretty-print.c (pp_points_to_solution): Use
15750 referenced_var_lookup.
15751 * tree-into-ssa.c (dump_decl_set): Likewise.
15752
15753 2010-07-21 Jakub Jelinek <jakub@redhat.com>
15754
15755 PR debug/45003
15756 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
15757 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
15758 ZERO_EXTEND here.
15759
15760 2010-07-20 Richard Henderson <rth@redhat.com>
15761
15762 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
15763
15764 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
15765
15766 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
15767 computing the sum of the stack pointer and a large constant.
15768 * config/arm/constraints.md (M): Remove superfluous parentheses.
15769 (Pc): New constraint.
15770
15771 2010-07-20 Jakub Jelinek <jakub@redhat.com>
15772
15773 PR debug/45006
15774 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
15775 operand's type if exp is tcc_unary class tree.
15776
15777 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
15778
15779 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
15780 Reverse sense of if_then_else condition.
15781
15782 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
15783
15784 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
15785 * config/rs6000/rs6000.c (rs6000_override_options): Set
15786 rs6000_block_move_inline_limit appropriately.
15787 (expand_block_move): Use rs6000_block_move_inline_limit.
15788 * doc/invoke.texi (mblock-move-inline-limit): Document.
15789
15790 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
15791
15792 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
15793 FROM and TO. All callers changed. Don't look for tracked uses,
15794 just scan the RTL for DEBUG_INSNs and substitute.
15795 (reload_combine_recognize_pattern): Call fixup_debug_insns.
15796 (reload_combine): Ignore DEBUG_INSNs.
15797
15798 2010-07-20 Jakub Jelinek <jakub@redhat.com>
15799
15800 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
15801 depth to 8 from 5.
15802
15803 PR debug/45003
15804 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
15805 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
15806 instead of the result's type.
15807
15808 2010-07-20 Richard Guenther <rguenther@suse.de>
15809
15810 PR tree-optimization/44977
15811 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
15812 SSA form.
15813
15814 2010-07-20 Richard Guenther <rguenther@suse.de>
15815
15816 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
15817 (lto_symtab_merge_decls_2): Likewise.
15818 * gimple.h (gimple_types_compatible_p): Declare.
15819 * gimple.c (gimple_queue_type_fixup): Remove.
15820 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
15821 (gimple_compatible_complete_and_incomplete_type_p): New function.
15822 (gimple_types_compatible_p): Adjust.
15823 (gimple_register_type): Remove type fixup code.
15824 (print_gimple_types_stats): Adjust.
15825 (free_gimple_type_tables): Likewise.
15826 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
15827 * tree-ssa.c (useless_type_conversion_p): Likewise.
15828
15829 2010-07-20 Richard Guenther <rguenther@suse.de>
15830
15831 PR middle-end/44971
15832 PR middle-end/44988
15833 * tree-ssa.c (maybe_optimize_var): New function split out from ...
15834 (execute_update_addresses_taken): ... here.
15835 (non_rewritable_mem_ref_base): Likewise.
15836 (execute_update_addresses_taken): Do not iterate over all referenced
15837 vars but just all local decls and parms.
15838 Properly check call and asm arguments and rewrite call arguments.
15839
15840 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
15841
15842 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
15843 to top level.
15844 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
15845 definitions ...
15846 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
15847 New macro.
15848 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
15849
15850 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
15851
15852 * gengtype.c (start_root_entry): New function, split out from
15853 write_root. Check whether V is null and raise an error if so.
15854 (write_field_root): Check for V being null. Don't raise an error here;
15855 set V to null instead.
15856 (write_root): Update comment above function. Use start_root_entry.
15857
15858 2010-07-19 Xinliang David Li <davidxl@google.com>
15859
15860 PR testsuite/44932
15861 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
15862 def edges.
15863 (find_uninit_use): Add dump.
15864 (is_use_properly_guarded): Ditto.
15865 (warn_uninitialized_phi): Ditto.
15866 (execute_late_warn_uninitialized): Ditto.
15867
15868 2010-07-19 Richard Guenther <rguenther@suse.de>
15869
15870 PR middle-end/44941
15871 * expr.c (emit_block_move_hints): Move zero size check first.
15872 Move asserts to more useful places.
15873 * calls.c (load_register_parameters): Check for zero size.
15874
15875 2010-07-19 Richard Henderson <rth@redhat.com>
15876
15877 * tree-optimize.c (execute_all_early_local_passes): New. Change
15878 cgraph_state here ...
15879 (execute_early_local_optimizations): ... not here. Remove.
15880 (pass_early_local_passes, pass_all_early_optimizations): Update.
15881
15882 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
15883
15884 * postreload.c (reload_combine_closest_single_use): Ignore the
15885 number of uses for DEBUG_INSNs.
15886 (fixup_debug_insns): New static function.
15887 (reload_combine_recognize_const_pattern): Use it. Don't let the
15888 main loop be affected by DEBUG_INSNs.
15889 Really disallow moving adds past a jump insn.
15890 (reload_combine_recognize_pattern): Don't update use_ruid here.
15891 (reload_combine_note_use): Do it here.
15892 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
15893
15894 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
15895
15896 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
15897 of a loop.
15898 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
15899
15900 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
15901
15902 * config/i386/darwin.h: Define darwin_emit_branch_islands.
15903 (TARGET_MACHO_BRANCH_ISLANDS): New.
15904 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
15905 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
15906 default value.
15907 * config/i386/i386.c (output_pic_addr_const): Do not emit
15908 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
15909 (x86_output_mi_thunk): Adjust symbol creation.
15910 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
15911 Remove out of date comment.
15912 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
15913 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15914 (DARWIN_GENERATE_ISLANDS): Ditto.
15915 (output_call): Do not emit branch islands unless
15916 darwin_emit_branch_islands is set.
15917 * config/darwin.c: Declare darwin_emit_branch_islands.
15918 (machopic_indirect_data_reference): Do not emit unless
15919 darwin_emit_branch_islands is set.
15920 (darwin_override_options): Set darwin_emit_branch_islands
15921 where it is needed.
15922 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15923
15924 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15925
15926 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15927 sse_runtime, sse2_runtime.
15928
15929 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
15930
15931 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
15932 low half of a single-register SCmode return value before ORing
15933 it with the high half.
15934 * config/mips/mips16.S (MERGE_GPRf): Likewise.
15935
15936 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15937
15938 PR target/44805
15939 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
15940 on all targets.
15941
15942 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
15943
15944 PR target/42235
15945 * postreload.c (reload_cse_move2add): Return bool, true if anything.
15946 changed. All callers changed.
15947 (move2add_use_add2_insn): Likewise.
15948 (move2add_use_add3_insn): Likewise.
15949 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
15950 reload_combine.
15951 (RELOAD_COMBINE_MAX_USES): Bump to 16.
15952 (last_jump_ruid): New static variable.
15953 (struct reg_use): New members CONTAINING_MEM and RUID.
15954 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
15955 (reload_combine_split_one_ruid, reload_combine_split_ruids,
15956 reload_combine_purge_insn_uses, reload_combine_closest_single_use
15957 reload_combine_purge_reg_uses_after_ruid,
15958 reload_combine_recognize_const_pattern): New static functions.
15959 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
15960 is true for our reg and that we have available index regs.
15961 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
15962 callers changed. Use them to initialize fields in struct reg_use.
15963 (reload_combine): Initialize last_jump_ruid. Be careful when to
15964 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
15965 Call reload_combine_recognize_const_pattern.
15966 (reload_combine_note_store): Update REAL_STORE_RUID field.
15967
15968 2010-07-16 Jason Merrill <jason@redhat.com>
15969
15970 * Makefile.in (opts-common.o): Depend on options.h.
15971
15972 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
15973
15974 * tree.c (build_common_builtin_nodes): Use build_function_type_list
15975 instead of build_function_type.
15976 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
15977 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
15978
15979 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
15980
15981 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
15982 do all the work.
15983 (rs6000_emit_int_cmove): Use function pointers for insn generation.
15984 Don't force values into registers unnecessarily.
15985 (output_isel): Assert that we're not given conditions we can't handle.
15986 Delete corresponding code.
15987 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
15988 scc_comparison_operator constraint. Permit 0 for the consequent
15989 operand. Permit any GPR for the alternative operand.
15990 (isel_unsigned_<mode>): Likewise.
15991
15992 2010-07-16 Jakub Jelinek <jakub@redhat.com>
15993
15994 PR target/44942
15995 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
15996 argument to const_tree.
15997 * config/i386/i386.c (function_arg_advance): If padding needs to be
15998 inserted before argument, increment cum->words by number of padding
15999 words as well.
16000 (contains_aligned_value_p): Change argument to const_tree.
16001 (ix86_function_arg_boundary): Change second argument to const_tree.
16002
16003 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
16004
16005 PR target/42235
16006 * function.c (record_hard_reg_sets): New static function.
16007 (assign_parm_setup_reg): If an optab for extending exists and the
16008 generated code clobbbers no hard regs, emit the insn directly and
16009 create a REG_EQUIV note.
16010
16011 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16012
16013 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
16014 TREE_CHAIN.
16015 * c-typeck.c (push_init_level): Likewise.
16016 (process_init_element): Likewise.
16017
16018 2010-07-15 Anatoly Sokolov <aesok@post.ru>
16019
16020 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
16021 (integer_three_node): Add.
16022 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
16023 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
16024 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
16025 of call build_int_cst.
16026 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
16027 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
16028 (find_interesting_uses_address): Ditto.
16029 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
16030 * tree-eh.c (lower_eh_constructs_2): Ditto.
16031 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
16032 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
16033 * expmed.c (expand_divmod): Ditto.
16034 * tree-mudflap.c (mx_register_decls): Ditto.
16035 * varasm.c (array_size_for_constructor): Ditto.
16036 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
16037 * c-parser.c (c_parser_postfix_expression): Ditto.
16038
16039 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
16040
16041 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
16042 New static variables.
16043 (reload_combine_recognize_pattern): New static function, broken out
16044 of reload_combine.
16045 (reload_combine): Use it. Only initialize first_index_reg and
16046 last_index_reg once.
16047
16048 2010-07-15 Richard Henderson <rth@redhat.com>
16049
16050 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
16051 when done.
16052
16053 2010-07-15 Jan Hubicka <jh@suse.cz>
16054
16055 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
16056 comdats for broken gold.
16057 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
16058
16059 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16060
16061 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
16062
16063 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
16064
16065 * tree.h (DECL_CHAIN): Define.
16066 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
16067 * c-decl.c: Likewise.
16068 * c-parser.c: Likewise.
16069 * c-typeck.c: Likewise.
16070 * cfgexpand.c: Likewise.
16071 * cgraph.c: Likewise.
16072 * cgraphunit.c: Likewise.
16073 * combine.c: Likewise.
16074 * config/alpha/alpha.c: Likewise.
16075 * config/arm/arm.c: Likewise.
16076 * config/frv/frv.c: Likewise.
16077 * config/i386/i386.c: Likewise.
16078 * config/i386/winnt-cxx.c: Likewise.
16079 * config/ia64/ia64.c: Likewise.
16080 * config/iq2000/iq2000.c: Likewise.
16081 * config/mep/mep.c: Likewise.
16082 * config/mips/mips.c: Likewise.
16083 * config/pa/som.h: Likewise.
16084 * config/rs6000/rs6000.c: Likewise.
16085 * config/s390/s390.c: Likewise.
16086 * config/sh/sh.c: Likewise.
16087 * config/sh/symbian-cxx.c: Likewise.
16088 * config/sparc/sparc.c: Likewise.
16089 * config/spu/spu.c: Likewise.
16090 * config/stormy16/stormy16.c: Likewise.
16091 * config/vxworks.c: Likewise.
16092 * config/xtensa/xtensa.c: Likewise.
16093 * coverage.c: Likewise.
16094 * dbxout.c: Likewise.
16095 * dwarf2out.c: Likewise.
16096 * emit-rtl.c: Likewise.
16097 * expr.c: Likewise.
16098 * function.c: Likewise.
16099 * gimple-low.c: Likewise.
16100 * gimple-pretty-print.c: Likewise.
16101 * gimplify.c: Likewise.
16102 * integrate.c: Likewise.
16103 * ipa-inline.c: Likewise.
16104 * ipa-prop.c: Likewise.
16105 * ipa-split.c: Likewise.
16106 * ipa-struct-reorg.c: Likewise.
16107 * ipa-type-escape.c: Likewise.
16108 * langhooks.c: Likewise.
16109 * lto-cgraph.c: Likewise.
16110 * omp-low.c: Likewise.
16111 * stor-layout.c: Likewise.
16112 * tree-cfg.c: Likewise.
16113 * tree-complex.c: Likewise.
16114 * tree-dfa.c: Likewise.
16115 * tree-dump.c: Likewise.
16116 * tree-inline.c: Likewise.
16117 * tree-mudflap.c: Likewise.
16118 * tree-nested.c: Likewise.
16119 * tree-object-size.c: Likewise.
16120 * tree-pretty-print.c: Likewise.
16121 * tree-sra.c: Likewise.
16122 * tree-ssa-live.c: Likewise.
16123 * tree-ssa-loop-niter.c: Likewise.
16124 * tree-ssa-math-opts.c: Likewise.
16125 * tree-ssa-reassoc.c: Likewise.
16126 * tree-ssa-sccvn.c: Likewise.
16127 * tree-ssa-structalias.c: Likewise.
16128 * tree-tailcall.c: Likewise.
16129 * tree-vrp.c: Likewise.
16130 * tree.c: Likewise.
16131 * var-tracking.c: Likewise.
16132 * varasm.c: Likewise.
16133
16134 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16135
16136 PR target/44877
16137 * config/spu/spu.c (spu_expand_builtin_1): Allow references
16138 (as well as pointers) as argument to mask_for_load builtins.
16139
16140 2010-07-15 Richard Guenther <rguenther@suse.de>
16141
16142 PR tree-optimization/44946
16143 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
16144 with accessing only padding properly.
16145
16146 2010-07-15 Jan Hubicka <jh@suse.cz>
16147
16148 * ipa.c (function_and_variable_visibility): Variables marked as used
16149 should not be localized.
16150
16151 2010-07-15 Jan Hubicka <jh@suse.cz>
16152
16153 * cgraph.c: Include lto-streamer.h
16154 (change_decl_assembler_name): Work when assembler name hash is at place.
16155 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
16156 be sure to rename it to avoid name clash.
16157 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
16158 Localize hidden symbols only when locally defined.
16159
16160 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
16161
16162 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
16163
16164 2010-07-15 Magnus Granberg <zorry@gentoo.org>
16165 Kevin F. Quinn <kevquinn@gentoo.org>
16166
16167 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
16168 * common.opt: Add -Wtrampolines.
16169 * doc/invoke.texi: Add -Wtrampolines.
16170
16171 2010-07-15 Jie Zhang <jie@codesourcery.com>
16172
16173 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
16174 cortex_a8_issue_ls.
16175
16176 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
16177
16178 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
16179 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
16180
16181 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16182
16183 * config/spu/spu.c (reg_names): Remove prototype.
16184 (call_used_regs): Likewise.
16185
16186 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
16187
16188 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
16189 "unused" with attribute "used".
16190 (__JCR_END__): Likewise.
16191 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
16192 "used" attribute.
16193 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
16194
16195 2010-07-14 Richard Guenther <rguenther@suse.de>
16196
16197 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
16198 (maybe_fixup_decls): Likewise.
16199 (input_gimple_stmt): Do not fixup anything.
16200 * lto-streamer-out.c (output_gimple_stmt): Make sure all
16201 non-automatic variable uses are wrapped inside a MEM_REF.
16202
16203 2010-07-14 Richard Henderson <rth@redhat.com>
16204
16205 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
16206 for functions.
16207 * varasm.c (assemble_variable): Remove early exit for functions;
16208 assert that we're given a variable.
16209
16210 2010-07-14 Jie Zhang <jie@codesourcery.com>
16211
16212 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
16213 cortex_a8_default when neon_type is not none.
16214
16215 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
16216
16217 * lower-subreg.c (subreg_context): New static bitmap.
16218 (decompose_multiword_subregs): Allocate and free it.
16219 (find_decomposable_subregs): Set a bit in it for a register that
16220 occurs in a subreg that changes mode but not size.
16221 (can_decompose_p): Test it instead of non_decomposable_context.
16222
16223 2010-07-14 Richard Guenther <rguenther@suse.de>
16224
16225 PR tree-optimization/44824
16226 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
16227 is_gimple_mem_ref_addr.
16228 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
16229 non-decl_address_invariant_p addresses.
16230
16231 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
16232
16233 * reload.c (find_reloads): Revert code to penalize small register
16234 classes that was brought in with the IRA merge.
16235
16236 2010-07-14 Richard Guenther <rguenther@suse.de>
16237
16238 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
16239 as base of ARRAY_REFs.
16240
16241 2010-07-14 Richard Guenther <rguenther@suse.de>
16242
16243 PR middle-end/44930
16244 * tree-pretty-print.c (do_niy): Do not print a newline.
16245
16246 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
16247
16248 * ira-int.h (struct ira_object): New.
16249 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
16250 (struct ira_allocno): Remove members min, max,
16251 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
16252 conflict_allocnos_num and conflict_vec_p. Add new member object.
16253 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
16254 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
16255 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
16256 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
16257 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
16258 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
16259 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
16260 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
16261 an ira_object_t rather than ira_allocno_t. All uses changed.
16262 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16263 contains a vector of ira_object_t; all uses changed.
16264 (ira_objects_num): Declare variable.
16265 (ira_create_allocno_object): Declare function.
16266 (ira_conflict_vector_profitable_p): Adjust prototype.
16267 (ira_allocate_conflict_vec): Renamed from
16268 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
16269 (ira_allocate_object_conflicts): Renamed from
16270 ira_allocate_allocno_conflicts; first arg now ira_object_t.
16271 (struct ira_object_iterator): New.
16272 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
16273 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
16274 to conflict_vec_p. All uses changed.
16275 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
16276 Changed to take into account that conflicts are now tracked for
16277 objects.
16278 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
16279 Args changed to accept ira_object_t. All uses changed.
16280 (allocnos_conflict_p): New static function.
16281 (collected_conflict_objects): Renamed from collected_allocno_objects;
16282 now a vector of ira_object_t. All uses changed.
16283 (build_conflict_bit_table): Changed to take into account that
16284 conflicts are now tracked for objects.
16285 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
16286 (print_allocno_conflicts, ira_build_conflicts): Likewise.
16287 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
16288 setup_allocno_left_conflicts_size, allocno_reload_assign,
16289 fast_allocation): Likewise.
16290 * ira-lives.c (make_hard_regno_born, make_allocno_born)
16291 process_single_reg_class_operands, process_bb_node_lives): Likewise.
16292 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
16293 Likewise.
16294 * ira-build.c (ira_objects_num): New variable.
16295 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16296 contains a vector of ira_object_t; all uses changed.
16297 (ira_object_id_map_vec): Corresponding change.
16298 (object_pool): New static variable.
16299 (initiate_allocnos): Initialize it.
16300 (finish_allocnos): Free it.
16301 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
16302 New functions.
16303 (ira_create_allocno): Don't set members that were removed.
16304 (ira_set_allocno_cover_class): Don't change conflict hard regs.
16305 (merge_hard_reg_conflicts): Changed to take into account that
16306 conflicts are now tracked for objects.
16307 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
16308 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
16309 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
16310 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
16311 setup_min_max_conflict_allocno_ids, ): Likewise.
16312 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
16313 to ira_object_t; all callers changed.
16314 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
16315 to ira_object_t, all callers changed.
16316 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
16317 to ira_object_t, all callers changed.
16318 (conflict_check, curr_conflict_check_tick): Renamed from
16319 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
16320 changed.
16321 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
16322 arg changed to ira_object_t, all callers changed.
16323 (create_cap_allocno): Call ira_create_allocno_object.
16324 (finish_allocno): Free the corresponding object.
16325 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
16326 callers changed. Adjusted for dealing with objects.
16327 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
16328 dealing with objects.
16329 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
16330
16331 * ira-int.h (struct live_range): Rename allocno member to object
16332 and change type to ira_object_t.
16333 (struct ira_object): New member live_ranges.
16334 (struct ira_allocno): Remove member live_ranges.
16335 (ALLOCNO_LIVE_RANGES): Remove.
16336 (OBJECT_LIVE_RANGES): New macro.
16337 (ira_create_live_range, ira_copy_live_range_list,
16338 ira_merge_live_range_list, ira_live_ranges_intersect_p,
16339 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
16340 * ira-build.c (ira_create_object): Initialize live ranges here.
16341 (ira_create_allocno): Not here.
16342 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
16343 changed to ira_object_t, all callers changed.
16344 (copy_live_range): Rename from copy_allocno_live_range, all callers
16345 changed.
16346 (ira_copy_live_range_list): Rename from
16347 ira_copy_allocno_live_range_list, all callers changed.
16348 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
16349 all callers changed.
16350 (ira_live_ranges_intersect_p): Rename from
16351 ira_allocno_live_ranges_intersect_p, all callers changed.
16352 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
16353 callers changed.
16354 (ira_finish_live_range_list): Rename from
16355 ira_finish_allocno_live_range_list, all callers changed.
16356 (change_object_in_range_list): Rename from change_allocno_in_range_list,
16357 last arg changed to ira_object_t, all callers changed.
16358 (finish_allocno): Changed to expect live ranges in the allocno's object.
16359 (move_allocno_live_ranges, copy_allocno_live_ranges,
16360 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
16361 ira_flattening, ira_build): Likewise.
16362 * ira-color.c (allocnos_have_intersected_live_ranges_p,
16363 slot_coalesced_allocno_live_ranges_intersect,
16364 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
16365 * ira-conflicts.c (build_conflict_bit_table): Likewise.
16366 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
16367 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
16368 make_allocno_dead, create_start_finish_chains,
16369 remove_some_program_points_and_update_live_ranges,
16370 ira_debug_live_range_list): Likewise.
16371
16372 * ira-int.h (ira_object_conflict_iterator): Rename from
16373 ira_allocno_conflict_iterator.
16374 (ira_object_conflict_iter_init): Rename from
16375 ira_allocno_conflict_iter_init, second arg changed to
16376 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
16377 FOR_EACH_ALLOCNO_CONFLICT.
16378 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
16379 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
16380 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
16381 * ira-conflicts.c (print_allocno_conflicts): Likewise.
16382
16383 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
16384
16385 PR other/44874
16386 * tree-dump.c (dump_options): Add enumerate_locals entry.
16387 Add TDF_NOID exclusion to all entry.
16388 * tree-dump.h (dump_enumerated_decls): Declare.
16389 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
16390 Don't display type uid.
16391 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
16392 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
16393 * tree-ssa-live.c: Include gimple.h.
16394 (numbered_tree_d): New struct.
16395 (numbered_tree): New typedef.
16396 (DEF_VEC_O (numbered_tree): New.
16397 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
16398 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
16399 (dump_enumerated_decls): Likewise.
16400 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
16401 debug info and flag_dump_final_insns, call dump_enumerated_decls.
16402 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
16403 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
16404
16405 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
16406
16407 * expmed.h (MAX_BITS_PER_WORD): Move to...
16408 * defaults.h (MAX_BITS_PER_WORD): ...here.
16409
16410 2010-07-13 DJ Delorie <dj@redhat.com>
16411
16412 * config/h8300/h8300.c (h8300_init_once): Default to
16413 -fstrict_volatile_bitfields.
16414
16415 * config/sh/sh.c (sh_override_options): Default to
16416 -fstrict_volatile_bitfields.
16417
16418 * config/rx/rx.c (rx_option_override): New.
16419
16420 * config/m32c/m32c.c (m32c_override_options): Default to
16421 -fstrict_volatile_bitfields.
16422
16423 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
16424
16425 * tree.h (build_function_call_expr): Delete.
16426 (build_call_expr_loc_array): New function.
16427 (build_call_expr_loc_vec): New function.
16428 * tree-flow.h (struct omp_region): Change type of ws_args field
16429 to a VEC.
16430 * builtins.c (build_function_call_expr): Delete.
16431 (build_call_expr_loc_array): New function.
16432 (build_call_expr_loc): Call it. Use XALLOCAVEC.
16433 (build_call_expr): Likewise.
16434 (build_call_expr_loc_vec): New function.
16435 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
16436 build_function_call_expr.
16437 * expr.c (emutls_var_address): Likewise.
16438 * varasm.c (emutls_common_1): Likewise.
16439 * omp-low.c (expand_omp_atomic_mutex): Likewise.
16440 (expand_omp_taskreg): Adjust for new type of region->ws_args.
16441 (get_ws_args_for): Return a VEC instead of a tree.
16442 (expand_parallel_call): Call build_call_expr_loc_vec instead of
16443 build_function_call_expr.
16444 * stor-layout.c (self_referential_size): Likewise.
16445
16446 2010-07-13 Jakub Jelinek <jakub@redhat.com>
16447
16448 PR testsuite/44701
16449 * recog.c (constrain_operands): Allow side-effects in memory
16450 operands if either < or > constraint is used, rather than if
16451 both < and > is used.
16452
16453 2010-07-13 Richard Guenther <rguenther@suse.de>
16454
16455 PR middle-end/44911
16456 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
16457 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
16458 without name.
16459
16460 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
16461
16462 PR target/44761
16463 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
16464 to variable emited.
16465 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
16466 * config/sh/sh.md (symGOT_load): Likewise.
16467 (symDTPOFF2reg): Likewise.
16468 (symTPOFF2reg): Likewise.
16469
16470 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16471
16472 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
16473 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
16474
16475 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16476
16477 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
16478 explanation.
16479 Find ucontext_t * on Solaris 11.
16480 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
16481 Handle new Solaris 11 __sighndlr patterns.
16482
16483 2010-07-13 Jakub Jelinek <jakub@redhat.com>
16484
16485 PR debug/44901
16486 * vec.h (VEC_block_remove): Fix comment.
16487 * tree-ssa-live.c (remove_unused_locals): Don't use
16488 VEC_unordered_remove on local_decls, instead replace a single
16489 vector element in each iteration if at least one element had
16490 to be removed and VEC_truncate at the end.
16491 * omp-low.c (expand_omp_taskreg): Likewise.
16492
16493 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
16494
16495 * c-decl.c (finish_function): Fix typo in comment.
16496
16497 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
16498
16499 PR bootstrap/44921
16500 * postreload.c (move2add_use_add3_insn): Silence gcc warning
16501 on min_regno.
16502
16503 2010-07-12 Jakub Jelinek <jakub@redhat.com>
16504
16505 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
16506 (simplify_stmt_using_ranges): Use it.
16507
16508 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16509
16510 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
16511 member. Do not mark as GTY(()).
16512 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
16513 (spu_builtin_decls): New static variable.
16514 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
16515 (spu_init_builtins): Likewise.
16516 (spu_builtin_mul_widen_even): Likewise.
16517 (spu_builtin_mul_widen_odd): Likewise.
16518 (spu_builtin_mask_for_load): Likewise.
16519 (spu_builtin_vec_perm): Likewise.
16520 * config/spu/spu-c.c: Include "target.h".
16521 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
16522 of using spu_builtins[].fndecl.
16523
16524 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16525
16526 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
16527 imply -minterlink-mips16.
16528
16529 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16530
16531 * config/mips/mips.h (mips16_globals): Declare.
16532 (SWITCHABLE_TARGET): Define.
16533 * config/mips/mips.c: Include target-globals.h.
16534 (mips16_globals): New variable.
16535 (mips_set_mips16_mode): Use save_target_globals and
16536 restore_target_globals instead of target_reinit.
16537
16538 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16539
16540 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
16541 to say that the function can be called more than once.
16542 * target-globals.c (save_target_globals): Call init_reg_sets.
16543
16544 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16545
16546 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
16547 * bb-reorder.h: New file.
16548 * bb-reorder.c (default_target_bb_reorder): New variable.
16549 (this_target_bb_reorder): New conditional variable.
16550 (uncond_jump_length): Redefine as a macro.
16551 * target-globals.h (this_target_bb_reorder): Declare.
16552 (target_globals): Add a bb_reorder field.
16553 (restore_target_globals): Copy the bb_reorder field to
16554 this_target_bb-reorder.
16555 * target-globals.c: Include bb-reorder.h.
16556 (default_target_globals): Initialize the bb_reorder field.
16557 (save_target_globals): Likewise.
16558
16559 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16560
16561 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
16562 * gcse.h: New file.
16563 * gcse.c: Include gcse.h.
16564 (default_target_gcse): New variable.
16565 (this_target_gcse): New conditional variable.
16566 (can_copy): Redefine as a macro.
16567 (can_copy_init_p): New macro.
16568 (can_copy_p): Remove can_copy_init_p.
16569 * target-globals.h (this_target_gcse): Declare.
16570 (target_globals): Add a gcse field.
16571 (restore_target_globals): Copy the gcse field to this_target_gcse.
16572 * target-globals.c: Include gcse.h.
16573 (default_target_globals): Initialize the gcse field.
16574 (save_target_globals): Likewise.
16575
16576 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16577
16578 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
16579 and x_ira_prohibited_mode_move_regs_initialized_p.
16580 (ira_prohibited_mode_move_regs): Redefine as a macro.
16581 * ira.c (ira_prohibited_mode_move_regs): Delete.
16582 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
16583
16584 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16585
16586 * reload.h (target_reload): Add x_cached_reg_save_code and
16587 x_cached_reg_restore_code.
16588 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
16589 Redefine as macros.
16590
16591 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16592
16593 * Makefile.in (target-globals.o): Depend on builtins.h.
16594 * builtins.h: New file.
16595 * builtins.c: Include builtins.h.
16596 (default_target_builtins): New variable.
16597 (this_target_builtins): New conditional variable.
16598 (apply_args_mode, apply_result_mode): Redefine as macros.
16599 * target-globals.h (this_target_builtins): Declare.
16600 (target_globals): Add a builtins field.
16601 (restore_target_globals): Copy the builtins field to
16602 this_target_builtins.
16603 * target-globals.c: Include builtins.h.
16604 (default_target_globals): Initialize the builtins field.
16605 (save_target_globals): Likewise.
16606
16607 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16608
16609 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
16610 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
16611 from expmed.c.
16612 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
16613 (alg_hash, alg_hash_used_p): New macros.
16614 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
16615 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
16616 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
16617
16618 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16619
16620 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
16621 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
16622 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
16623 (this_op_costs, costs_classes): Redefine as macros.
16624 (record_reg_classes): Don't take op_costs as a parameter.
16625 (record_operand_costs): Likewise. Update calls to record_reg_classes.
16626 (scan_one_insn): Update call to record_operand_costs.
16627
16628 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16629
16630 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
16631 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
16632 (target_ira_int): New structure.
16633 (default_target_ira_int): Declare.
16634 (this_target_ira_int): Declare as a variable or define as a macro.
16635 (ira_reg_mode_hard_regset, ira_register_move_cost)
16636 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
16637 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
16638 (prohibited_class_mode_regs, ira_important_classes_num)
16639 (ira_important_classes, ira_reg_class_intersect)
16640 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
16641 (ira_reg_class_union): Redefine as macros.
16642 * ira.h (target_ira): New structure.
16643 (default_target_ira): Declare.
16644 (this_target_ira): Declare as a variable or define as a macro.
16645 (ira_available_class_regs, ira_hard_regno_cover_class)
16646 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
16647 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
16648 (ira_class_hard_regs_num): Redefine as macros.
16649 * ira.c (default_target_ira, default_target_ira_int): New variables.
16650 (this_target_ira, this_target_ira_int): New conditional variables.
16651 (ira_reg_mode_hard_regset, ira_memory_move_cost)
16652 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
16653 (ira_class_subset_p): Delete.
16654 (no_unit_alloc_regs): Redefine as a macro.
16655 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
16656 (ira_class_hard_regs_num, ira_class_hard_reg_index)
16657 (ira_available_class_regs): Delete.
16658 (alloc_reg_class_subclasses): Redefine as a macro.
16659 (ira_reg_class_cover_size, ira_reg_class_cover)
16660 (ira_important_classes_num, ira_important_classes)
16661 (ira_important_class_nums, ira_class_translate): Delete.
16662 (cover_class_order): Document the variable's lifetime.
16663 (reorder_important_classes): Don't set ira_important_class_nums.
16664 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
16665 (ira_reg_class_super_classes, ira_reg_class_union)
16666 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
16667 Delete.
16668 (setup_reg_class_nregs): Don't set ira_max_regs.
16669 (prohibited_class_mode_regs): Delete.
16670 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
16671 (target_globals): Add ira and ira_int fields.
16672 (restore_target_globals): Copy the ira field to this_target_ira
16673 and the ira_int field to this_target_ira_int.
16674 * target-globals.c: Include ira-int.h.
16675 (default_target_globals): Initialize the ira and ira_int fields.
16676 (save_target_globals): Likewise.
16677
16678 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16679
16680 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
16681 * cfgloop.h (target_cfgloop): New structure.
16682 (default_target_cfgloop): Declare.
16683 (this_target_cfgloop): Declare as a variable or define as a macro.
16684 (target_avail_regs, target_clobbered_regs, target_res_regs)
16685 (target_reg_cost, target_spill_cost): Redefine as macros.
16686 * cfgloopanal.c (default_target_cfgloop): New variable.
16687 (this_target_cfgloop): New conditional variable.
16688 (target_avail_regs, target_clobbered_regs, target_res_regs)
16689 (target_reg_cost, target_spill_cost): Delete.
16690 * target-globals.h (this_target_cfgloop): Declare.
16691 (target_globals): Add a cfgloop field.
16692 (restore_target_globals): Copy the cfgloop field to
16693 this_target_cfgloop.
16694 * target-globals.c: Include cfgloop.h.
16695 (default_target_globals): Initialize the cfgloop field.
16696 (save_target_globals): Likewise.
16697
16698 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16699
16700 * regs.h (target_regs): Add x_direct_load, x_direct_store and
16701 x_float_extend_from_mem.
16702 (direct_load, direct_store, float_extend_from_mem): New macros.
16703 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
16704
16705 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16706
16707 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
16708 (target-globals.o): Depend on $(LIBFUNCS_H).
16709 * libfuncs.h: Include hashtab.h.
16710 (libfunc_entry): Moved from optabs.c.
16711 (target_libfuncs): New structure.
16712 (default_target_libfuncs): Declare.
16713 (this_target_libfuncs): Declare as a variable or define as a macro.
16714 (libfunc_table): Redefine as a macro.
16715 * optabs.c (default_target_libfuncs): New variable.
16716 (this_target_libfuncs): New conditional variable.
16717 (libfunc_table): Delete.
16718 (libfunc_entry): Moved to optabs.h.
16719 (libfunc_hash): Redefine as a macro.
16720 (hash_libfunc, eq_libfunc): Fix comments.
16721 (init_optabs): Use libfunc_hash to detect cases where the function
16722 has already been called. Clear the hash table instead of
16723 recreating it.
16724 * target-globals.h (this_target_libfuncs): Declare.
16725 (target_globals): Add a libfuncs field.
16726 (restore_target_globals): Copy the libfuncs field to
16727 this_target_libfuncs.
16728 * target-globals.c: Include libfuncs.h.
16729 (default_target_globals): Initialize the libfuncs field.
16730 (save_target_globals): Likewise.
16731
16732 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16733
16734 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
16735 in all dependency lists.
16736
16737 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16738
16739 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
16740 * optabs.h (target_optabs): New structure.
16741 (default_target_optabs): Declare.
16742 (this_target_optabs): Declare as a variable or define as a macro.
16743 (optab_table, convert_optab_table, direct_optab_table): Redefine
16744 as macros.
16745 * optabs.c (default_target_optabs): New variable.
16746 (this_target_optabs): New conditional variable.
16747 (optab_table, convert_optab_table, direct_optab_table): Delete.
16748 * target-globals.h (this_target_optabs): Declare.
16749 (target_globals): Add a optabs field.
16750 (restore_target_globals): Copy the optabs field to
16751 this_target_optabs.
16752 * target-globals.c: Include expr.h and optabs.h.
16753 (default_target_globals): Initialize the optabs field.
16754 (save_target_globals): Likewise.
16755
16756 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16757
16758 * flags.h (target_flagstate): Add x_flag_excess_precision.
16759 (flag_excess_precision): Redefine as a macro.
16760 * toplev.c (flag_excess_precision): Delete.
16761
16762 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16763
16764 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
16765 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
16766 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
16767 (no_caller_save_reg_set): Redefine as a macro.
16768 * reload.h (target_reload): Add x_caller_save_initialized_p and
16769 x_regno_save_mode.
16770 (caller_save_initialized_p): Redefine as a macro.
16771 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
16772 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
16773 (regno_save_mode): Redefine as a macro.
16774
16775 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16776
16777 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
16778 * expmed.h: New file.
16779 * expmed.c (default_target_costs): New variable.
16780 (this_target_costs): New conditional variable.
16781 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
16782 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
16783 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
16784 * target-globals.h (this_target_expmed): Declare.
16785 (target_globals): Add a expmed field.
16786 (restore_target_globals): Copy the expmed field to
16787 this_target_expmed.
16788 * target-globals.c: Include expmed.h.
16789 (default_target_globals): Initialize the expmed field.
16790 (save_target_globals): Likewise.
16791
16792 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16793
16794 * Makefile.in (target-globals.o): Depend on reload.h.
16795 * reload.h (target_reload): New structure.
16796 (default_target_reload): Declare.
16797 (this_target_reload): Declare as a variable or define as a macro.
16798 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
16799 * reload1.c (default_target_reload): New variable
16800 (this_target_reload): New conditional variable.
16801 (indirect_symref_ok, double_reg_address_ok): Delete.
16802 (spill_indirect_levels): Redefine as a macro.
16803 * target-globals.h (this_target_reload): Declare.
16804 (target_globals): Add a reload field.
16805 (restore_target_globals): Copy the reload field to
16806 this_target_reload.
16807 * target-globals.c: Include hard-reg-set.h.
16808 (default_target_globals): Initialize the reload field.
16809 (save_target_globals): Likewise.
16810
16811 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16812
16813 * rtl.h (target_rtl): Add x_static_reg_base_value.
16814 * alias.c (static_reg_base_value): Redefine as a macro.
16815
16816 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16817
16818 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
16819 (GTFILES): Remove reginfo.c.
16820 * rtl.h (target_rtl): Add x_top_of_stack.
16821 (top_of_stack): New macro.
16822 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
16823 (top_of_stack): Delete.
16824
16825 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16826
16827 * regs.h (target_regs): Add x_hard_regs_of_mode,
16828 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
16829 x_may_move_out_cost and x_last_mode_for_init_move_cost.
16830 (have_regs_of_mode, contains_reg_of_mode, move_cost)
16831 (may_move_in_cost, may_move_out_cost): Redefine as macros.
16832 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
16833 (may_move_in_cost, may_move_out_cost): Delete.
16834 (last_mode_for_init_move_cost): Redefine as a macro.
16835
16836 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16837
16838 * hard-reg-set.h (target_hard_regs): New structure.
16839 (default_target_hard_regs): Declare.
16840 (this_target_hard_regs): Declare as a variable or define as a macro.
16841 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
16842 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
16843 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
16844 (reg_class_size, reg_class_subclasses, reg_class_subunion)
16845 (reg_class_superunion, reg_names): Redefine as macros.
16846 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
16847 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
16848 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
16849 (reg_class_contents, reg_class_size, reg_class_subclasses)
16850 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
16851 (default_target_hard_regs): New variable
16852 (this_target_hard_regs, initial_call_really_used_regs)
16853 (initial_reg_alloc_order): New conditional variables.
16854 (initial_reg_names): New variable.
16855 (init_reg_sets): Assert that initial_call_really_used_regs,
16856 initial_reg_alloc_order and initial_reg_names
16857 are all the same size as their variable counterparts. Use them to
16858 initialize those counterparts.
16859 * target-globals.h (this_target_hard_regs): Declare.
16860 (target_globals): Add a hard_regs field.
16861 (restore_target_globals): Copy the hard_regs field to
16862 this_target_hard_regs.
16863 * target-globals.c: Include hard-reg-set.h.
16864 (default_target_globals): Initialize the hard_regs field.
16865 (save_target_globals): Likewise.
16866
16867 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16868
16869 * Makefile.in (target-globals.o): Depend on $(RTL_H).
16870 * rtl.h (target_rtl): New structure.
16871 (default_target_rtl): Declare.
16872 (this_target_rtl): Declare as a variable or define as a macro.
16873 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
16874 Redefine as macros.
16875 * emit-rtl.c (default_target_rtl): New variable.
16876 (this_target_rtl): New conditional variable.
16877 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
16878 (return_address_pointer_rtx): Delete.
16879 (initial_regno_reg_rtx): New macro.
16880 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
16881 (init_emit_regs): Likewise.
16882 * target-globals.h (this_target_rtl): Declare.
16883 (target_globals): Add a rtl field.
16884 (restore_target_globals): Copy the rtl field to this_target_rtl.
16885 * target-globals.c: Include rtl.h.
16886 (default_target_globals): Initialize the rtl field.
16887 (save_target_globals): Likewise.
16888
16889 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16890
16891 * Makefile.in (target-globals.o): Depend on $(REGS_H).
16892 * regs.h (target_reg_modes): New structure.
16893 (default_target_reg_modes): Declare.
16894 (this_target_reg_modes): Declare as a variable or define as a macro.
16895 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
16896 * reginfo.c (default_target_reg_modes): New variable.
16897 (this_target_reg_modes): New conditional variable.
16898 (hard_regno_nregs, reg_raw_mode): Delete.
16899 * target-globals.h (this_target_regs): Declare.
16900 (target_globals): Add a regs field.
16901 (restore_target_globals): Copy the regs field to this_target_regs.
16902 * target-globals.c: Include regs.h.
16903 (default_target_globals): Initialize the regs field.
16904 (save_target_globals): Likewise.
16905
16906 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
16907
16908 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
16909 * doc/tm.texi: Regenerate.
16910 * Makefile.in (OBJS-common): Add target-globals.o.
16911 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
16912 and target-globals.h.
16913 (target-globals.o): New rule.
16914 (GTFILES): Include $(srcdir)/target-globals.h.
16915 * defaults.h (SWITCHABLE_TARGET): Define.
16916 * gengtype.c (open_base_files): Add target-globals.h to the
16917 list of includes.
16918 * target-globals.h: New file.
16919 * target-globals.c: Likewise.
16920
16921 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
16922 * flags.h (target_flag_state): New structure.
16923 (default_target_flag_state): Declare.
16924 (this_target_flag_state): Declare as a variable or define as a macro.
16925 (align_loops_log): Redefine as a macro.
16926 (align_loops_max_skip, align_jumps_log): Likewise.
16927 (align_jumps_max_skip, align_labels_log): Likewise.
16928 (align_labels_max_skip, align_functions_log): Likewise.
16929 * toplev.c (default_target_flag_state): New variable.
16930 (this_target_flag_state): New conditional variable.
16931 (align_loops_log): Delete.
16932 (align_loops_max_skip, align_jumps_log): Likewise.
16933 (align_jumps_max_skip, align_labels_log): Likewise.
16934 (align_labels_max_skip, align_functions_log): Likewise.
16935 * target-globals.h (this_target_flag_state): Declare.
16936 (target_globals): Add a flag_state field.
16937 (restore_target_globals): Copy the flag_state field to
16938 this_target_flag_state.
16939 * target-globals.c: Include flags.h.
16940 (default_target_globals): Initialize the flag_state field.
16941 (save_target_globals): Likewise.
16942
16943 2010-07-12 Jie Zhang <jie@codesourcery.com>
16944
16945 * postreload.c (reg_symbol_ref[]): New.
16946 (move2add_use_add2_insn): New.
16947 (move2add_use_add3_insn): New.
16948 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
16949 (move2add_note_store): Likewise.
16950
16951 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
16952
16953 PR rtl-optimization/44752
16954 * genautomata.c (main): Don't emit an empty file even if there
16955 is no automaton.
16956
16957 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16958
16959 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
16960 ix86_solaris_return_in_memory.
16961 * config/i386-protos.h: Reflect this.
16962 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16963 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16964 Move ...
16965 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
16966
16967 2010-07-12 Jie Zhang <jie@codesourcery.com>
16968
16969 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
16970 align the stack when it's going to be saved.
16971
16972 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16973
16974 PR pch/14940
16975 * config/host-solaris.c (mmap_fixed): New function.
16976 (sol_gt_pch_get_address): Use it.
16977 (sol_gt_pch_use_address): Likewise.
16978
16979 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16980
16981 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16982 pentiumpro on Solaris 8 and 9/x86.
16983 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
16984 Document SSE/SSE2 support.
16985 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
16986
16987 2010-07-12 Andi Kleen <ak@linux.intel.com>
16988
16989 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
16990 instead of gcc_assert to print better error message for multiple
16991 prevailing defs.
16992
16993 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
16994
16995 * config/i386/i386.c (ix86_asm_output_function_label): Change format
16996 string placeholder from 0x%x to %#x.
16997 (ix86_code_end): Use putc to output '\n'.
16998 (ix86_print_operand) <case ';'>: Use putc to output ';'.
16999
17000 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
17001
17002 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
17003 in directive -export.
17004
17005 2010-07-10 Anatoly Sokolov <aesok@post.ru>
17006
17007 * reginfo.h (reg_classes_intersect_p): Change arguments type to
17008 reg_class_t.
17009 * rtl.h (reg_classes_intersect_p): Adjust prototype.
17010
17011 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17012 Remove macros.
17013 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
17014 rs6000_memory_move_cost): Remove
17015 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
17016 TARGET_MEMORY_MOVE_COST): Define.
17017 (rs6000_register_move_cost): Make static. Change arguments type from
17018 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
17019 (rs6000_memory_move_cost): Make static. Change arguments type from
17020 'enum reg_class' to reg_class_t.
17021
17022 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
17023
17024 PR middle-end/42505
17025 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
17026 lookup code into....
17027 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
17028 new functions.
17029 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
17030 * cfgloopanal.c (target_clobbered_regs): Define.
17031 (init_set_costs): Initialize target_clobbered_regs.
17032 (estimate_reg_pressure_cost): Add call_p argument. When true,
17033 adjust the number of available registers to exclude the
17034 call-clobbered registers.
17035 * cfgloop.h (target_clobbered_regs): Declare.
17036 (estimate_reg_pressure_cost): Adjust declaration.
17037 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
17038 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
17039 (determine_set_costs): Dump target_clobbered_regs.
17040 (loop_body_includes_call): New function.
17041 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
17042 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
17043 call_p flag through.
17044 (best_gain_for_invariant): Likewise.
17045 (find_invariants_to_move): Likewise.
17046 (move_single_loop_invariants): Likewise, using already-computed
17047 has_call field.
17048
17049 2010-07-10 Richard Guenther <rguenther@suse.de>
17050 Joern Rennecke <joern.rennecke@embecosm.com>
17051
17052 PR debug/44832
17053 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
17054 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
17055 unless they have DECL_IGNORED_P set.
17056
17057 2010-07-10 Richard Guenther <rguenther@suse.de>
17058
17059 PR lto/44889
17060 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
17061 helper function.
17062 (gimple_types_compatible_p): Similar to pointed-to
17063 types allow and merge a mix of complete and incomplete aggregate.
17064 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
17065 (iterative_hash_gimple_type): Adjust for that.
17066
17067 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
17068
17069 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
17070
17071 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
17072
17073 PR objc/44140
17074 * config/darwin.c (output_objc_section_asm_op): Save and restore
17075 section when outputting ObjC section list.
17076
17077 2010-07-09 Jan Hubicka <jh@suse.cz>
17078
17079 * lto-streamer-out.c (produce_symtab): Do not write alias
17080 cgraph/varpool nodes.
17081
17082 2010-07-09 Jan Hubicka <jh@suse.cz>
17083
17084 * tree-inline.c (declare_return_variable): Fix ICE while
17085 inlining DECL_BY_VALUE function not in SSA form
17086
17087 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
17088
17089 PR tree-optimization/44576
17090 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
17091 New. Pull out from is_loop_prefetching_profitable to implement
17092 the trip count to ahead ratio heuristic.
17093 (mem_ref_count_reasonable_p): New. Pull out from
17094 is_loop_prefetching_profitable to implement the instruction to
17095 memory reference ratio heuristic. Also consider not reasonable if
17096 the memory reference count is above a threshold (to avoid
17097 explosive compilation time.
17098 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
17099 is_loop_prefetching_profitable to implement the instruction to
17100 prefetch ratio heuristic.
17101 (is_loop_prefetching_profitable): Removed.
17102 (loop_prefetch_arrays): Distribute the cost analysis across the
17103 function to allow early exit of the prefetch analysis.
17104 is_loop_prefetching_profitable is splitted into three functions,
17105 with each one called as early as possible.
17106 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
17107 number of memory references in a loop is considered too many.
17108
17109 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
17110
17111 * reload.c (find_reloads): Don't clear badop if we have a winreg
17112 alternative, but not win, and the class only has fixed regs.
17113 * hard-reg-set.h (class_only_fixed_regs): Declare.
17114 * reginfo.c (class_only_fixed_regs): New array.
17115 (init_reg_sets_1): Initialize it.
17116 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
17117 discourage alternatives using the stack pointer.
17118
17119 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
17120
17121 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
17122
17123 * config/arm/arm.md (cbranchqi4): Fix array size.
17124 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
17125 calculating length.
17126
17127 2010-07-09 Richard Guenther <rguenther@suse.de>
17128
17129 * gimple.c (struct type_fixup_s): New struct and VEC type.
17130 (gimple_register_type_fixups): New static global.
17131 (gimple_queue_type_fixup): New function.
17132 (gimple_types_compatible_p): Queue type fixups instead of
17133 applying them here.
17134 (gimple_register_type): Apply queued fixups for the
17135 canonical type. Empty the type fixup queue.
17136
17137 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17138
17139 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
17140 * configure: Regenerate.
17141 * config.in: Ditto.
17142
17143 2010-07-09 Jakub Jelinek <jakub@redhat.com>
17144 Denys Vlasenko <dvlasenk@redhat.com>
17145 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17146
17147 PR tree-optimization/28632
17148 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
17149 (extract_range_from_binary_expr): Further optimize
17150 BIT_AND_EXPR and BIT_IOR_EXPR.
17151
17152 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
17153
17154 * tree-if-conv.c (fold_or_predicates): New.
17155 (add_to_predicate_list): Call it.
17156
17157 2010-07-09 Richard Guenther <rguenther@suse.de>
17158
17159 PR middle-end/44890
17160 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
17161 if base is a pointer.
17162 * tree-cfg.c (verify_expr): Update MEM_REF checking.
17163
17164 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17165
17166 PR target/44877
17167 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
17168 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
17169 builtin mask for load/store builtins.
17170
17171 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17172
17173 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
17174 for "lock addl".
17175 * configure: Regenerate.
17176 * config/i386/i386.c (ix86_print_operand) <case ';'>:
17177 Remove TARGET_MACHO.
17178
17179 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
17180
17181 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
17182 default ISA flags.
17183 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
17184
17185 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
17186
17187 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
17188
17189 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
17190
17191 * config/picochip/picochip.md (commsTestPort): Emit more
17192 efficient sequence for tstport instruction.
17193
17194 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
17195
17196 * config/i386/i386.c (ix86_veclib_handler): Make static.
17197
17198 2010-07-09 Richard Guenther <rguenther@suse.de>
17199
17200 PR tree-optimization/44852
17201 * tree-ssa-alias.c: Include toplev.h for exact_log2.
17202 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
17203 in MEM_REF.
17204 (indirect_refs_may_alias_p): Likewise.
17205 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
17206
17207 2010-07-09 Richard Guenther <rguenther@suse.de>
17208
17209 PR tree-optimization/44882
17210 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
17211 sets do conflict.
17212 (vectorizable_load): Likewise.
17213
17214 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
17215
17216 PR target/40657
17217 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
17218 All callers changed.
17219 Handle the case when we're called for the epilogue.
17220 (thumb_unexpanded_epilogue): Use it.
17221 (thumb1_expand_epilogue): Likewise.
17222
17223 2010-07-09 Jakub Jelinek <jakub@redhat.com>
17224
17225 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
17226 both ranges are range_int_cst_p with non-negative minimum,
17227 try harder to derive smaller range.
17228
17229 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17230
17231 * genrecog.c: Include diagnostic-core.h before toplev.h.
17232 * genoutput.c: Likewise.
17233 * genextract.c: Likewise.
17234 * genautomata.c: Likewise.
17235 * genemit.c: Likewise.
17236 * genpeep.c: Likewise.
17237 * genattrtab.c: Likewise.
17238 * genconditions.c: Likewise.
17239 * genpreds.c: Likewise.
17240
17241 2010-07-08 Andi Kleen <ak@linux.intel.com>
17242
17243 * lto-section-in.c (lto_section_name): Add missing comma.
17244
17245 2010-07-08 Anatoly Sokolov <aesok@post.ru>
17246
17247 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
17248 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
17249 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
17250 (ia64_override_options): Rename to...
17251 (ia64_option_override): ... this one. Make static.
17252
17253 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
17254
17255 PR middle-end/44843
17256 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
17257 pointed-to type of the offset in a MEM_REF to compute the alignment.
17258
17259 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
17260
17261 * final.c (final_scan_insn): Replace
17262 TARGET_UNWIND_INFO macro check by unwind_emit
17263 hook NULL check.
17264 * targhooks.c (default_unwind_emit): Removed.
17265 * targhooks.h (default_unwind_emit): Likewise.
17266 * target.def (unwind_emit): Set default value to NULL.
17267
17268 * config/i386/i386-protos.h (ix86_asm_output_function_label):
17269 New prototype.
17270 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
17271 for NULL fntype argument and allow 64-bit targets.
17272 (ix86_asm_output_function_label): New function.
17273 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
17274 (ix86_handle_fndecl_attribute): Likewise.
17275 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
17276 * doc/doc/tm.texi: Regenerated.
17277 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
17278 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
17279 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
17280 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
17281 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17282 * config/elfos.h: Likewise.
17283 * config/i386/cygming.h: Likewise.
17284 * config/netbsd-aout.h: Likewise.
17285 * config/openbsd.h: Likewise.
17286 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
17287 by ix86_asm_output_function_label function call.
17288 * varasm.c (assemble_start_function): Use
17289 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17290
17291 2010-07-08 Jan Hubicka <jh@suse.cz>
17292
17293 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
17294 New function.
17295 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
17296 Declare.
17297 * ipa-cp.c (ipcp_estimate_growth): Use it.
17298 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
17299 Likewise.
17300
17301 2010-07-08 Jan Hubicka <jh@suse.cz>
17302
17303 * tree-inline.c (declare_return_variable): Allocate annotation for new
17304 temporary.
17305
17306 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
17307
17308 PR tree-optimization/44710
17309 * tree-if-conv.c (parse_predicate): New.
17310 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
17311 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
17312
17313 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
17314
17315 * common.opt (ftree-loop-if-convert): New flag.
17316 * doc/invoke.texi (ftree-loop-if-convert): Documented.
17317 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
17318 when flag_tree_loop_if_convert is set.
17319
17320 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
17321
17322 * config/i386/i386.c: Use short syntax for function calls
17323 through function pointers.
17324 * config/i386/i386.md: Ditto.
17325
17326 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
17327
17328 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
17329
17330 2010-07-08 Richard Guenther <rguenther@suse.de>
17331
17332 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
17333 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
17334
17335 2010-07-08 Jakub Jelinek <jakub@redhat.com>
17336
17337 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
17338 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
17339 (loc_list_from_tree): Likewise.
17340 (output_loc_operands): Handle outputting DW_OP_const[48]u
17341 with loc->dtprel set.
17342 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
17343
17344 2010-07-08 Jan Hubicka <jh@suse.cz>
17345
17346 * ipa.c: Include pointer-set.h
17347 (cgraph_externally_visible_p): New attribute ALIASED;
17348 when in LTO, hidden symbols are local unless they are aliased.
17349 (function_and_variable_visibility): Compute aliased nodes;
17350 handle LTO and hidden symbol on functions and vars.
17351 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
17352 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
17353
17354 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
17355
17356 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17357 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17358 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17359 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17360 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17361 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
17362 (ix86_gen_probe_stack_range): Likewise.
17363 (override_options): Set them.
17364 (ix86_target_stack_probe): New function.
17365 (ix86_compute_frame_layout): Force use of push instructions to
17366 save registers if stack checking with probes is enabled.
17367 (get_scratch_register_on_entry): New function.
17368 (release_scratch_register_on_entry): Likewise.
17369 (ix86_adjust_stack_and_probe): Likewise.
17370 (output_adjust_stack_and_probe): Likewise.
17371 (ix86_emit_probe_stack_range): Likewise.
17372 (output_probe_stack_range): Likewise.
17373 (ix86_expand_prologue): Emit stack checking code if static built-in
17374 stack checking is enabled.
17375 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
17376 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
17377 (output_adjust_stack_and_probe): Likewise.
17378 (output_probe_stack_range): Likewise.
17379 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17380 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
17381 TARGET_STACK_PROBE.
17382 (allocate_stack_worker_64): Likewise.
17383 (allocate_stack): Likewise.
17384 (adjust_stack_and_probe): New insn.
17385 (probe_stack_range): Likewise.
17386
17387 2010-07-08 Richard Guenther <rguenther@suse.de>
17388
17389 PR tree-optimization/44831
17390 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
17391 a MEM_REF preserving TBAA info of the original dereference.
17392 Dereference the original pointer if the address is not invariant.
17393 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
17394 at least one invariant address that we are going to dereference.
17395
17396 2010-07-08 Richard Guenther <rguenther@suse.de>
17397
17398 PR tree-optimization/44861
17399 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
17400 information when building MEM_REFs.
17401 (vectorizable_load): Likewise.
17402 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
17403
17404 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
17405
17406 * config/sol2-c.c: Do not include diagnostic-core.h.
17407
17408 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17409
17410 PR bootstrap/44768
17411 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
17412 with respect to current_function_decl. Pass decl of the function.
17413 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
17414 * ipa-inline.c (compute_inline_parameters): Pass decl to
17415 estimated_stack_frame_size.
17416
17417 2010-07-08 Richard Guenther <rguenther@suse.de>
17418
17419 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17420 New function.
17421 (valueize_refs): Call it.
17422
17423 2010-07-08 Richard Guenther <rguenther@suse.de>
17424
17425 PR rtl-optimization/44838
17426 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
17427 SSA form do not use pointer equivalence.
17428
17429 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
17430
17431 * dwarf2out.c (AT_linkage_name): Delete.
17432 (add_linkage_attr): New function.
17433 (add_linkage_name): Call it to emit the linkage attribute.
17434 (dwarf2out_finish): Likewise.
17435 (move_linkage_attr): Explicitly accept both attribute variants.
17436
17437 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17438
17439 * toplev.h: Do not include diagnostic-core.h.
17440 Include diagnostic-core.h in every file that includes toplev.h.
17441 * c-tree.h: Do not include toplev.h.
17442 * pretty-print.h: Update comment.
17443 * Makefile.in: Update dependencies.
17444 * alias.c: Include diagnostic-core.h in every file that includes
17445 toplev.h.
17446 * attribs.c: Likewise.
17447 * auto-inc-dec.c: Likewise.
17448 * bb-reorder.c: Likewise.
17449 * bt-load.c: Likewise.
17450 * caller-save.c: Likewise.
17451 * calls.c: Likewise.
17452 * cfg.c: Likewise.
17453 * cfganal.c: Likewise.
17454 * cfgbuild.c: Likewise.
17455 * cfgcleanup.c: Likewise.
17456 * cfghooks.c: Likewise.
17457 * cfgloop.c: Likewise.
17458 * combine.c: Likewise.
17459 * config/alpha/alpha.c: Likewise.
17460 * config/arc/arc.c: Likewise.
17461 * config/arm/arm.c: Likewise.
17462 * config/arm/pe.c: Likewise.
17463 * config/avr/avr.c: Likewise.
17464 * config/bfin/bfin.c: Likewise.
17465 * config/cris/cris.c: Likewise.
17466 * config/crx/crx.c: Likewise.
17467 * config/darwin-c.c: Likewise.
17468 * config/darwin.c: Likewise.
17469 * config/fr30/fr30.c: Likewise.
17470 * config/frv/frv.c: Likewise.
17471 * config/h8300/h8300.c: Likewise.
17472 * config/host-darwin.c: Likewise.
17473 * config/i386/i386.c: Likewise.
17474 * config/i386/netware.c: Likewise.
17475 * config/i386/nwld.c: Likewise.
17476 * config/i386/winnt-cxx.c: Likewise.
17477 * config/i386/winnt-stubs.c: Likewise.
17478 * config/i386/winnt.c: Likewise.
17479 * config/ia64/ia64-c.c: Likewise.
17480 * config/ia64/ia64.c: Likewise.
17481 * config/iq2000/iq2000.c: Likewise.
17482 * config/lm32/lm32.c: Likewise.
17483 * config/m32c/m32c-pragma.c: Likewise.
17484 * config/m32c/m32c.c: Likewise.
17485 * config/m32r/m32r.c: Likewise.
17486 * config/m68hc11/m68hc11.c: Likewise.
17487 * config/m68k/m68k.c: Likewise.
17488 * config/mcore/mcore.c: Likewise.
17489 * config/mep/mep-pragma.c: Likewise.
17490 * config/mep/mep.c: Likewise.
17491 * config/mmix/mmix.c: Likewise.
17492 * config/mn10300/mn10300.c: Likewise.
17493 * config/moxie/moxie.c: Likewise.
17494 * config/pa/pa.c: Likewise.
17495 * config/pdp11/pdp11.c: Likewise.
17496 * config/picochip/picochip.c: Likewise.
17497 * config/rs6000/rs6000-c.c: Likewise.
17498 * config/rs6000/rs6000.c: Likewise.
17499 * config/rx/rx.c: Likewise.
17500 * config/s390/s390.c: Likewise.
17501 * config/score/score.c: Likewise.
17502 * config/score/score3.c: Likewise.
17503 * config/score/score7.c: Likewise.
17504 * config/sh/sh.c: Likewise.
17505 * config/sh/symbian-base.c: Likewise.
17506 * config/sh/symbian-c.c: Likewise.
17507 * config/sh/symbian-cxx.c: Likewise.
17508 * config/sol2-c.c: Likewise.
17509 * config/sol2.c: Likewise.
17510 * config/sparc/sparc.c: Likewise.
17511 * config/spu/spu.c: Likewise.
17512 * config/stormy16/stormy16.c: Likewise.
17513 * config/v850/v850-c.c: Likewise.
17514 * config/v850/v850.c: Likewise.
17515 * config/vax/vax.c: Likewise.
17516 * config/vxworks.c: Likewise.
17517 * config/xtensa/xtensa.c: Likewise.
17518 * convert.c: Likewise.
17519 * cse.c: Likewise.
17520 * cselib.c: Likewise.
17521 * dbgcnt.c: Likewise.
17522 * dbxout.c: Likewise.
17523 * ddg.c: Likewise.
17524 * dominance.c: Likewise.
17525 * emit-rtl.c: Likewise.
17526 * explow.c: Likewise.
17527 * expmed.c: Likewise.
17528 * fixed-value.c: Likewise.
17529 * fold-const.c: Likewise.
17530 * fwprop.c: Likewise.
17531 * gcse.c: Likewise.
17532 * ggc-common.c: Likewise.
17533 * ggc-page.c: Likewise.
17534 * ggc-zone.c: Likewise.
17535 * gimple-low.c: Likewise.
17536 * gimplify.c: Likewise.
17537 * graph.c: Likewise.
17538 * haifa-sched.c: Likewise.
17539 * ifcvt.c: Likewise.
17540 * implicit-zee.c: Likewise.
17541 * integrate.c: Likewise.
17542 * ira-build.c: Likewise.
17543 * ira-color.c: Likewise.
17544 * ira-conflicts.c: Likewise.
17545 * ira-costs.c: Likewise.
17546 * ira-lives.c: Likewise.
17547 * ira.c: Likewise.
17548 * lists.c: Likewise.
17549 * loop-doloop.c: Likewise.
17550 * loop-iv.c: Likewise.
17551 * lto-opts.c: Likewise.
17552 * lto-symtab.c: Likewise.
17553 * main.c: Likewise.
17554 * modulo-sched.c: Likewise.
17555 * optabs.c: Likewise.
17556 * params.c: Likewise.
17557 * plugin.c: Likewise.
17558 * postreload-gcse.c: Likewise.
17559 * postreload.c: Likewise.
17560 * predict.c: Likewise.
17561 * profile.c: Likewise.
17562 * real.c: Likewise.
17563 * regcprop.c: Likewise.
17564 * reginfo.c: Likewise.
17565 * regmove.c: Likewise.
17566 * reorg.c: Likewise.
17567 * resource.c: Likewise.
17568 * rtl.c: Likewise.
17569 * rtlanal.c: Likewise.
17570 * sched-deps.c: Likewise.
17571 * sched-ebb.c: Likewise.
17572 * sched-rgn.c: Likewise.
17573 * sdbout.c: Likewise.
17574 * sel-sched-dump.c: Likewise.
17575 * sel-sched-ir.c: Likewise.
17576 * simplify-rtx.c: Likewise.
17577 * stmt.c: Likewise.
17578 * stor-layout.c: Likewise.
17579 * store-motion.c: Likewise.
17580 * targhooks.c: Likewise.
17581 * tree-cfg.c: Likewise.
17582 * tree-cfgcleanup.c: Likewise.
17583 * tree-dump.c: Likewise.
17584 * tree-eh.c: Likewise.
17585 * tree-inline.c: Likewise.
17586 * tree-nomudflap.c: Likewise.
17587 * tree-object-size.c: Likewise.
17588 * tree-optimize.c: Likewise.
17589 * tree-outof-ssa.c: Likewise.
17590 * tree-phinodes.c: Likewise.
17591 * tree-profile.c: Likewise.
17592 * tree-ssa-ccp.c: Likewise.
17593 * tree-ssa-coalesce.c: Likewise.
17594 * tree-ssa-live.c: Likewise.
17595 * tree-ssa-loop-niter.c: Likewise.
17596 * tree-ssa-loop-prefetch.c: Likewise.
17597 * tree-ssa-loop.c: Likewise.
17598 * tree-ssa-structalias.c: Likewise.
17599 * tree-ssa-uninit.c: Likewise.
17600 * tree-ssa.c: Likewise.
17601 * tree-vect-data-refs.c: Likewise.
17602 * tree-vect-loop-manip.c: Likewise.
17603 * tree-vect-loop.c: Likewise.
17604 * tree-vect-patterns.c: Likewise.
17605 * tree-vect-stmts.c: Likewise.
17606 * tree-vrp.c: Likewise.
17607 * varasm.c: Likewise.
17608 * vec.c: Likewise.
17609 * web.c: Likewise.
17610 * xcoffout.c: Likewise.
17611
17612 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
17613
17614 * gengtype.c (write_field_root): New function.
17615 (write_root): Use it.
17616
17617 2010-07-07 Wei Guozhi <carrot@google.com>
17618
17619 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17620 of lowest bits to lshift/compare): Add a missing line.
17621
17622 2010-07-07 Wei Guozhi <carrot@google.com>
17623
17624 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17625 of lowest bits to lshift/compare): New.
17626
17627 2010-07-07 Tom Tromey <tromey@redhat.com>
17628
17629 * doc/tm.texi: Update.
17630 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
17631 Add @hook.
17632 * target.def (want_debug_pub_sections): New hook.
17633 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
17634 * dwarf2out.c (add_pubname_string): Check
17635 targetm.want_debug_pub_sections.
17636 (add_pubname): Likewise.
17637 (add_pubtype): Likewise.
17638
17639 2010-07-07 Jie Zhang <jie@codesourcery.com>
17640
17641 * genautomata.c (output_automata_list_min_issue_delay_code):
17642 Correctly decompress min_issue_delay.
17643
17644 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
17645
17646 PR rtl-optimization/44404
17647 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
17648 possible, use reg_overlap_mentioned_p instead.
17649
17650 2010-07-07 Duncan Sands <baldrick@free.fr>
17651
17652 PR middle-end/41355
17653 * tree.c (build_function_type_skip_args): Copy the original type using
17654 build_distinct_type_copy rather than copy_node.
17655
17656 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
17657
17658 PR target/44850
17659 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
17660 revision 161876.
17661 (ix86_expand_prologue): Likewise.
17662 (ix86_handle_fndecl_attribute): Likewise.
17663 (ix86_asm_declare_function_name): Likewise.
17664 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17665 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17666 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
17667 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
17668 * doc/extend.texi: Likewise.
17669
17670 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
17671
17672 PR target/44844
17673 * config/i386/i386.md (rdrand<mode>): Changed to expand to
17674 retry if the carry flag isn't valid.
17675 (rdrand<mode>_1): New.
17676
17677 2010-07-07 Richard Guenther <rguenther@suse.de>
17678
17679 PR middle-end/44790
17680 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
17681 for expanding the constant offset for MEM_REFs.
17682
17683 2010-07-07 Richard Guenther <rguenther@suse.de>
17684
17685 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
17686 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
17687 * gimple.h (is_gimple_operand): Remove.
17688 * gimple.c (is_gimple_operand): Likewise.
17689 (walk_gimple_op): Fix wi->val_only setting for calls.
17690 * tree-cfg.c (verify_gimple_call): Fix argument validation.
17691 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
17692 invalid gimple calls.
17693
17694 2010-07-06 Jan Hubicka <jh@suse.cz>
17695
17696 * lto-cgraph.c (output_cgraph): Add missing declaration.
17697
17698 2010-07-06 Jan Hubicka <jh@suse.cz>
17699
17700 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
17701 partition.
17702
17703 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
17704
17705 * doc/gimple.texi (GIMPLE_DEBUG): Document.
17706 * doc/rtl.texi (Debug Information): New node.
17707 (NOTE_INSN_VAR_LOCATION): Document.
17708 (debug_insn): Likewise.
17709 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
17710
17711 2010-07-07 Jan Hubicka <jh@suse.cz>
17712
17713 With parts by Richard Guenther.
17714
17715 PR middle-end/44813
17716 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
17717 for functions passed by reference.
17718 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
17719 in memory when passed by reference.
17720 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
17721 beggining.
17722 * ipa-split.c (split_function): Cleanup way return value is passed;
17723 handle SSA DECL_BY_REFERENCE retvals.
17724 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
17725 DECL_BY_REFERENCE is set.
17726 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
17727 find_what_p_points_to): Handle RESULT_DECL.
17728 * tree-inline.c (declare_return_variable): Get new entry_block argument;
17729 when passing by reference ensure that RESULT_DECL is gimple_val.
17730 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
17731 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
17732
17733 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
17734
17735 PR rtl-optimization/44787
17736 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
17737 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
17738
17739 2010-07-06 Jan Hubicka <jh@suse.cz>
17740
17741 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
17742 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
17743 with body can prevail.
17744 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
17745 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
17746 * cgraph.c (cgraph_get_node_or_alias): New function.
17747 * cgraph.h (cgraph_get_node_or_alias): Declare.
17748
17749 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
17750
17751 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
17752 support.
17753 (ix86_expand_prologue): Likewise.
17754 (ix86_handle_fndecl_attribute): Likewise.
17755 (ix86_asm_declare_function_name): New function for
17756 ASM_DECLARE_FUNCTION_NAME.
17757 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
17758 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
17759 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
17760 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
17761 * doc/extend.texi: Adjust documentation about ms_hook_prologue
17762 attribute.
17763
17764 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
17765
17766 * config/i386/i386.md (immediate_operand): New mode attribute.
17767
17768 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
17769 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
17770 using P mode iterator.
17771 (pro_epilogue_adjust_stack_di_2): Rename from
17772 pro_epilogue_adjust_stack_rex64_2.
17773
17774 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
17775
17776 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
17777
17778 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
17779 through gen_mov_insv_1 function pointer.
17780 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
17781 gen_truncxf<mode>2 through gen_truncxf function pointer.
17782 (remainder<mode>3): Ditto.
17783 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
17784 (allocate_stack): Call gen_allocate_stack_worker_64 or
17785 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
17786 function pointer.
17787 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
17788 function pointer.
17789
17790 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
17791
17792 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
17793 operand constraint instead of <r><i>m.
17794
17795 2010-07-06 Richard Guenther <rguenther@suse.de>
17796
17797 PR middle-end/44828
17798 * convert.c (convert_to_integer): Watch out for overflowing
17799 MULT_EXPR as well.
17800
17801 2010-07-05 Jan Hubicka <jh@suse.cz>
17802
17803 * lto-streamer.c (write_symbol_vec): Rename to ...
17804 (write_symbol) ... this one; write only symbol given and when
17805 present in cache. Sanity check that what is defined is present
17806 in cgraph/varpool with body/finalized decl.
17807 (write_symbols_of_kind): Remove.
17808 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
17809 pairs to produce symtab.
17810 (produce_asm_for_decls): Update call of produce_symtab; don't do so
17811 when doing WPA streaming.
17812
17813 2010-07-05 Jan Hubicka <jh@suse.cz>
17814
17815 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
17816 function is still available to fold into.
17817
17818 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
17819
17820 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
17821 * function.h (struct_function): Change type of local_decls field
17822 to a VEC.
17823 (add_local_decl): New function.
17824 (FOR_EACH_LOCAL_DECL): New macro.
17825 * cfgexpand.c (init_vars_expansion): Adjust for new type of
17826 cfun->local_decls.
17827 (estimated_stack_frame_size): Likewise.
17828 (expand_used_vars): Likewise.
17829 * cgraphbuild.c (build_cgraph_edges): Likewise.
17830 * function.c (instantiate_decls_1): Likewise.
17831 * ipa-struct-reorg.c (build_data_structure): Likewise.
17832 * ipa-type-escape.c (analyze_function): Likewise.
17833 * lto-streamer-in.c (input_function): Likewise.
17834 * lto-streamer-out.c (output_function): Likewise.
17835 * tree-ssa-live.c (remove_unused_locals): Likewise.
17836 * tree.c (free_lang_data_in_decl): Likewise.
17837 (find_decls_types_in_node): Likewise.
17838 * omp-low.c (remove_exit_barrier): Likewise.
17839 (expand_omp_taskreg): Likewise.
17840 (list2chain): Rename to...
17841 (vec2chain): ...this. Adjust.
17842 * cgraphunit.c (assemble_thunk): Call add_local_decl.
17843 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
17844 * gimple-low.c (record_vars_into): Likewise.
17845 * tree-inline.c (remap_decls): Likewise.
17846 (declare_return_variable): Likewise.
17847 (declare_inline_vars): Likewise.
17848 (copy_forbidden): Adjust for new type of cfun->local_decls.
17849 (add_local_variables): New function.
17850 (expand_call_inline): Call it.
17851 (tree_function_versioning): Likewise.
17852
17853 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
17854
17855 AVX Programming Reference (June, 2010)
17856 * config/i386/cpuid.h (bit_F16C): New.
17857 (bit_RDRND): Likewise.
17858 (bit_FSGSBASE): Likewise.
17859
17860 * config/i386/i386-builtin-types.def: Add
17861 "DEF_FUNCTION_TYPE (UINT16)", function types for
17862 float16 <-> float conversions and
17863 "DEF_FUNCTION_TYPE (VOID, UINT64)".
17864
17865 * config/i386/i386-c.c (ix86_target_macros_internal): Support
17866 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
17867 OPTION_MASK_ISA_F16C.
17868
17869 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
17870 (OPTION_MASK_ISA_RDRND_SET): Likewise.
17871 (OPTION_MASK_ISA_F16C_SET): Likewise.
17872 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
17873 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
17874 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
17875 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
17876 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
17877 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
17878 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
17879 (override_options): Handle them.
17880 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
17881 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
17882 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
17883 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
17884 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
17885 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
17886 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
17887 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
17888 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
17889 (bdesc_args): Likewise.
17890 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
17891 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
17892 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
17893 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
17894 Handle non-memory store.
17895
17896 * config/i386/i386.h (TARGET_FSGSBASE): New.
17897 (TARGET_RDRND): Likewise.
17898 (TARGET_F12C): Likewise.
17899
17900 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
17901 (UNSPEC_VCVTPS2PH): Likewise.
17902 (UNSPECV_RDFSBASE): Likewise.
17903 (UNSPECV_RDGSBASE): Likewise.
17904 (UNSPECV_WRFSBASE): Likewise.
17905 (UNSPECV_WRGSBASE): Likewise.
17906 (UNSPECV_RDRAND): Likewise.
17907 (rdfsbase<mode>): Likewise.
17908 (rdgsbase<mode>): Likewise.
17909 (wrfsbase<mode>): Likewise.
17910 (wrgsbase<mode>): Likewise.
17911 (rdrand<mode>): Likewise.
17912
17913 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
17914
17915 * config/i386/immintrin.h (_rdrand_u16): New.
17916 (_rdrand_u32): Likewise.
17917 (_readfsbase_u32): Likewise.
17918 (_readfsbase_u64): Likewise.
17919 (_readgsbase_u32): Likewise.
17920 (_readgsbase_u64): Likewise.
17921 (_writefsbase_u32): Likewise.
17922 (_writefsbase_u64): Likewise.
17923 (_writegsbase_u32): Likewise.
17924 (_writegsbase_u64): Likewise.
17925 (_rdrand_u64): Likewise.
17926 (_cvtsh_ss): Likewise.
17927 (_mm_cvtph_ps): Likewise.
17928 (_mm256_cvtph_ps): Likewise.
17929 (_cvtss_sh): Likewise.
17930 (_mm_cvtps_ph): Likewise.
17931 (_mm256_cvtps_ph): Likewise.
17932
17933 * config/i386/sse.md (vcvtph2ps): New.
17934 (*vcvtph2ps_load): Likewise.
17935 (vcvtph2ps256): Likewise.
17936 (vcvtps2ph): Likewise.
17937 (*vcvtps2ph): Likewise.
17938 (*vcvtps2ph_store): Likewise.
17939 (vcvtps2ph256): Likewise.
17940
17941 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
17942
17943 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
17944
17945 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
17946
17947 PR bootstrap/44512
17948 * genenums.c (main): Output include of insn-constants.h
17949 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
17950
17951 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
17952
17953 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
17954 (override_options): Initialize it.
17955 (ix86_expand_prologue): Use it.
17956
17957 2010-07-05 Jakub Jelinek <jakub@redhat.com>
17958
17959 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
17960
17961 2010-07-05 Anatoly Sokolov <aesok@post.ru>
17962
17963 * double-int.h (fit_double_type): Remove declaration.
17964 * double-int.c (fit_double_type): Remove function.
17965 * tree.h (int_fits_type_p): Adjust prototype.
17966 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
17967 instead of fit_double_type.
17968 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
17969 instead of fit_double_type and build_int_cst_wide.
17970 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
17971 instead of fit_double_type and build_int_cst_wide.
17972 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
17973 of fit_double_type.
17974
17975 2010-07-05 Jan Hubicka <jh@suse.cz>
17976
17977 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
17978 in_other_partition.
17979 * lto-cgraph.c (referenced_from_other_partition_p,
17980 reachable_from_other_partition_p): Use in_other_partition flags.
17981 (output_node, output_varpool_node): COMDAT nodes always have private
17982 copies and thus are never used from other partition.
17983
17984 2010-07-05 Anatoly Sokolov <aesok@post.ru>
17985
17986 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17987 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
17988 * config/ia64/ia64.c Include reload.h.
17989 (ia64_memory_move_cost): New function.
17990 (TARGET_MEMORY_MOVE_COST): Define.
17991 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
17992 memory_move_cost.
17993
17994 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
17995
17996 PR middle-end/42505
17997 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
17998 comments about cost model.
17999 (try_add_cand_for): Add second strategy for choosing initial set
18000 based on original IVs, controlled by ORIGINALP argument.
18001 (get_initial_solution): Add ORIGINALP argument.
18002 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
18003 (find_optimal_iv_set): Try two different strategies for choosing
18004 the IV set, and return the one with lower cost.
18005
18006 2010-07-05 Richard Guenther <rguenther@suse.de>
18007
18008 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
18009
18010 2010-07-05 Richard Guenther <rguenther@suse.de>
18011
18012 * tree.c (reference_alias_ptr_type): New function.
18013 * tree.h (reference_alias_ptr_type): Declare.
18014 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
18015 allow non-TARGET_MEM_REF new refs.
18016 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
18017 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
18018 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
18019 (create_mem_ref): Get alias pointer type. Adjust calls to
18020 create_mem_ref_raw.
18021 (maybe_fold_tmr): Likewise.
18022 * tree-flow.h (create_mem_ref): Adjust prototype.
18023
18024 2010-07-05 Jakub Jelinek <jakub@redhat.com>
18025
18026 PR c++/44808
18027 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
18028 *from_p is VAR_DECL.
18029
18030 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18031
18032 * tree.h (build_call_list): Remove.
18033 * tree.c (build_call_list): Remove.
18034
18035 2010-07-05 Richard Guenther <rguenther@suse.de>
18036
18037 * double-int.h (double_int_sub): Declare.
18038 * double-int.c (double_int_sub): New function.
18039 * dwarf2out.c (field_byte_offset): Use it.
18040 * fixed-value.c (do_fixed_add): Likewise.
18041 (do_fixed_multiply): Likewise.
18042 (do_fixed_divide): Likewise.
18043 * tree-predcom.c (add_ref_to_chain): Likewise.
18044 (determine_roots_comp): Likewise.
18045 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18046
18047 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
18048
18049 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
18050 implementations.
18051
18052 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
18053
18054 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
18055 * arm-modes.def (CC_NOTB): Don't define.
18056 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
18057 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
18058 (LTUGEU): New code_iterator.
18059 (cnb, optab): New corresponding code_attrs.
18060 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
18061 to canonical form. Operands 1 and 2 are commutative. Parametrize
18062 using LTUGEU.
18063 (addsi3_carryin_shift_<optab>): Likewise.
18064 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
18065 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
18066 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
18067 (subsi3_compare): Renamed from subsi3_compare0_c.
18068 Change CC_NOTB to CC.
18069 (arm_subsi3_insn): Allow constants for operand 0.
18070 (compare_scc peephole for eq case): New.
18071 (compare_scc splitters): Change CC_NOTB to CC.
18072
18073 2010-07-05 Richard Guenther <rguenther@suse.de>
18074
18075 * tree-ssa-loop-im.c (for_each_index): Do not handle
18076 ALIGN_INDIRECT_REF.
18077 (gen_lsm_tmp_name): Likewise.
18078 * tree-dump.c (dequeue_and_dump): Likewise.
18079 * tree-pretty-print.c (dump_generic_node): Likewise.
18080 (op_code_prio): Likewise.
18081 (op_symbol_code): Likewise.
18082 * tree.c (staticp): Likewise.
18083 (build1_stat): Likewise.
18084 * tree.h (INDIRECT_REF_P): Likewise.
18085 * fold-const.c (maybe_lvalue_p): Likewise.
18086 (operand_equal_p): Likewise.
18087 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18088 (ao_ref_init_from_vn_reference): Likewise.
18089 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
18090 (find_interesting_uses_address): Likewise.
18091 * dwarf2out.c (loc_list_from_tree): Likewise.
18092 * gimplify.c (gimplify_expr): Likewise.
18093 * tree-eh.c (tree_could_trap_p): Likewise.
18094 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18095 * cfgexpand.c (expand_debug_expr): Likewise.
18096 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18097 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
18098 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
18099 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
18100 * tree-ssa-operands.c (get_expr_operands): Likewise.
18101 * expr.c (safe_from_p): Likewise.
18102 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
18103 * tree-vect-data-refs.c (vect_setup_realignment): Build
18104 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
18105 * tree-vect-stmts.c (vectorizable_load): Likewise.
18106 * tree.def (ALIGN_INDIRECT_REF): Remove.
18107
18108 2010-07-05 Richard Guenther <rguenther@suse.de>
18109
18110 PR tree-optimization/44784
18111 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
18112 for inserted stmts.
18113 (find_or_generate_expression): Fix SCCVN insertion check.
18114
18115 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
18116
18117 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
18118 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
18119 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
18120 directives.
18121
18122 2010-07-05 Ira Rosen <irar@il.ibm.com>
18123
18124 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
18125 statements that are not vectorized.
18126 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
18127 in INSIDE_COST.
18128
18129 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
18130
18131 PR bootstrap/44820
18132 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
18133
18134 2010-07-05 Richard Guenther <rguenther@suse.de>
18135
18136 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
18137 RESULT_DECLs properly.
18138
18139 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
18140
18141 PR rtl-optimization/44695
18142 * config/i386/i386.md (extract_code): Removed.
18143 (<u>divmodqi4): Likewise.
18144 (divmodqi4): New.
18145 (udivmodqi4): Likewise.
18146 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
18147 (udivmodhiqi3): Likewise.
18148
18149 2010-07-04 Jan Hubicka <jh@suse.cz>
18150
18151 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
18152
18153 2010-07-04 Jan Hubicka <jh@suse.cz>
18154
18155 * cgraphunit.c (init_cgraph): Only initialize dump file if it
18156 is not already initialized.
18157
18158 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
18159
18160 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
18161 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
18162 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
18163 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
18164 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
18165 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
18166 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
18167 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
18168 (sync_new_nand_optab): Redefine as macros.
18169 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
18170 Delete.
18171 (direct_optab_index): New enum.
18172 (direct_optab_d): New structure.
18173 (direct_optab): New typedef.
18174 (direct_optab_table): Declare.
18175 (direct_optab_handler, set_direct_optab_handler): New functions.
18176 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
18177 (sync_lock_release_optab): New macros.
18178 * optabs.c (direct_optab_table): New variable.
18179 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
18180 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
18181 cmpstr_optab and cmpstrn_optab.
18182 (emit_conditional_move): Likewise for movcc_optab.
18183 (can_conditionally_move_p): Likewise for movcc_gen_code.
18184 (init_insn_codes): Clear direct_optab_table.
18185 (init_optabs): Don't initialize the new "direct optabs" here.
18186 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
18187 vcond_gen_code.
18188 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
18189 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
18190 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
18191 (expand_sync_operation): Likewise other sync_*_optabs.
18192 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
18193 to sync_compare_and_swap_optab.
18194 (expand_sync_lock_test_and_set): Use direct_optab_handler for
18195 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
18196 to the names of both.
18197 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
18198 cmpstr_optab and cmpstrn_optab.
18199 (expand_builtin_lock_release): Likewise sync_lock_release.
18200 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
18201 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
18202 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
18203 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
18204 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
18205 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
18206 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
18207 (sync_lock_test_and_set, sync_lock_release): Delete.
18208 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
18209 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
18210 * genopinit.c (optabs): Use set_direct_optab_handler for the new
18211 macro optabs.
18212 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
18213 the "optab" local variable. Use direct_optab_handler for optab and
18214 sync_compare_and_swap_optab.
18215 * reload1.c (reload_in_optab, reload_out_optab): Delete.
18216 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
18217 reload_in_optab and reload_out_optab.
18218 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
18219 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
18220 * config/pa/pa.c (pa_secondary_reload): Likewise.
18221 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
18222 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
18223 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
18224 (VMSupportsCS8_builtin): Likewise.
18225
18226 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
18227
18228 * optabs.h (optab_handlers): Change type of insn_code to int.
18229 (optab_handler, set_optab_handler, convert_optab_handler)
18230 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
18231 CODE_FOR_nothing".
18232 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
18233 (init_insn_codes): Zero both the above arrays.
18234 (init_optabs): Never call init_insn_codes first time around.
18235
18236 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
18237
18238 * optabs.h (optab_handler, convert_optab_handler): Turn into
18239 inline functions that return an insn code.
18240 (set_optab_handler, set_convert_optab_handler): New functions.
18241 * builtins.c: Replace optab_handler(X)->insn_code with
18242 optab_handler or set_optab_handler thoughout. Likewise
18243 convert_optab_handler(X)->insn_code with convert_optab_handler
18244 and set_convert_optab_handler.
18245 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
18246 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
18247 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
18248 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18249 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
18250 config/spu/spu.c: Likewise.
18251
18252 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
18253
18254 PR target/44531
18255 * config.gcc (sh*-*-*): Use regular expressions instead of
18256 the 'i' modifier for sed substitutions.
18257
18258 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
18259
18260 * gimple.c (gimple_body): Comments added.
18261
18262 2010-07-04 Richard Guenther <rguenther@suse.de>
18263
18264 PR middle-end/44809
18265 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
18266 of an INDIRECT_REF.
18267
18268 2010-07-04 Richard Guenther <rguenther@suse.de>
18269
18270 PR tree-optimization/44479
18271 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
18272 extra SSA name copy statements which preserves points-to
18273 information.
18274 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18275 Copy points-to information for all pointers. Properly handle
18276 MEM_REFs.
18277 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
18278 copy statements.
18279 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
18280 dependency.
18281
18282 2010-07-04 Richard Guenther <rguenther@suse.de>
18283
18284 PR middle-end/44785
18285 * tree-inline.c (initialize_inlined_parameters): Do not
18286 re-use pointer-map slot over remap_type call.
18287
18288 2010-07-04 Richard Guenther <rguenther@suse.de>
18289
18290 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
18291
18292 2010-07-04 Richard Guenther <rguenther@suse.de>
18293
18294 PR tree-optimization/44656
18295 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
18296 again after value-replacing in the defintions lhs.
18297
18298 2010-07-04 Ira Rosen <irar@il.ibm.com>
18299 Revital Eres <eres@il.ibm.com>
18300
18301 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
18302 Document new arguments.
18303 * doc/tm.texi: Regenerate.
18304 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
18305 Handle unaligned store.
18306 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
18307 * target.def (builtin_vectorization_cost): Add new arguments.
18308 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
18309 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
18310 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
18311 (vect_vfa_segment_size): Fix indentation.
18312 * tree-vectorizer.h (struct _vect_peel_info): New.
18313 (struct _vect_peel_extended_info): New.
18314 (struct _loop_vec_info): Add new field for peeling hash table and a
18315 macro for its access.
18316 (VECT_MAX_COST): Define.
18317 (vect_get_load_cost): Declare.
18318 (vect_get_store_cost, vect_get_known_peeling_cost,
18319 vect_get_single_scalar_iteraion_cost): Likewise.
18320 (vect_supportable_dr_alignment): Add new argument.
18321 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
18322 field.
18323 (destroy_loop_vec_info): Free peeling hash table.
18324 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
18325 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
18326 vect_analyze_slp. Fix indentation.
18327 (vect_get_single_scalar_iteraion_cost): New function.
18328 (vect_get_known_peeling_cost): Likewise.
18329 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
18330 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
18331 statement. Move outside cost calculation inside unknown peeling case.
18332 Call vect_get_known_peeling_cost for known amount of peeling.
18333 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
18334 reference to the print message of forced alignment.
18335 (vect_verify_datarefs_alignment): Update call to
18336 vect_supportable_dr_alignment.
18337 (vect_get_data_access_cost): New function.
18338 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
18339 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
18340 vect_peeling_hash_choose_best_peeling): Likewise.
18341 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
18342 to store all the accesses in the loop and find best possible access to
18343 align using peeling for known alignment case. For unknown alignment
18344 check if stores are preferred or if peeling is worthy.
18345 (vect_find_same_alignment_drs): Analyze pairs of loads too.
18346 (vect_supportable_dr_alignment): Add new argument and check aligned
18347 accesses according to it.
18348 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
18349 (cost_for_stmt): Call vect_get_stmt_cost.
18350 (vect_model_simple_cost): Likewise.
18351 (vect_model_store_cost): Call vect_get_stmt_cost. Call
18352 vect_get_store_cost to calculate the cost of the statement.
18353 (vect_get_store_cost): New function.
18354 (vect_model_load_cost): Call vect_get_stmt_cost. Call
18355 vect_get_load_cost to calculate the cost of the statement.
18356 (vect_get_load_cost): New function.
18357 (vectorizable_store): Update call to vect_supportable_dr_alignment.
18358 (vectorizable_load): Likewise.
18359 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
18360 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
18361 arguments. Handle unaligned store.
18362 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
18363 (rs6000_builtin_support_vector_misalignment): Return true for word and
18364 double word alignments for VSX.
18365 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
18366 vect_supportable_dr_alignment and builtin_vectorization_cost.
18367
18368 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18369
18370 PR target/44597
18371 * config/pa/predicates.md (prefetch_cc_operand): Remove.
18372 (prefetch_nocc_operand): Likewise.
18373 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
18374 (prefetch_20): New insn.
18375 (prefetch_cc): Remove.
18376 (prefetch_nocc): Likewise.
18377
18378 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
18379
18380 * expr.c (vector_mode_valid_p): Move to c-common.c.
18381 * expr.h (vector_mode_valid_p): Do not declare here.
18382 * system.h: Poison GCC_EXPR_H in front-ends.
18383 * Makefile.in: Update dependencies.
18384
18385 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18386
18387 PR target/44705
18388 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
18389
18390 2010-07-03 Jan Hubicka <jh@suse.cz>
18391
18392 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
18393 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
18394 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
18395 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
18396 Likewise.
18397
18398 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
18399 Update timevars.V
18400 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
18401 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
18402 TV_IPA_LTO_DECL_OUT): New.
18403 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
18404
18405 2010-07-03 Jan Hubicka <jh@suse.cz>
18406
18407 * ipa-inline.c (update_edge_key): Break out from ...
18408 update_callers_keys): ... here;
18409 (update_callee_keys): Update only the edges from caller to callee.
18410 (update_all_calle_keys): Do what update_calle_keys did.
18411 (decide_inlining_of_small_functions): Avoid recomputing of all
18412 callees when badness increase.
18413
18414 2010-07-03 Jie Zhang <jie@codesourcery.com>
18415
18416 * config/arm/arm.c (arm_attr_length_move_neon): New.
18417 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
18418 * config/arm/neon.md (define_mode_attr V_slen): Remove.
18419 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
18420 to compute length attribute.
18421
18422 2010-07-03 Jie Zhang <jie@codesourcery.com>
18423
18424 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
18425 as predicate for operand 1 and remove its constraint.
18426 * config/arm/predicates.md (vfp_register_operand): New.
18427 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
18428 (*push_fp_multi): Likewise.
18429
18430 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
18431
18432 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
18433
18434 2010-07-03 Jan Hubicka <jh@suse.cz>
18435
18436 * config/i386/i386.c (override_options): Revert accidental commit.
18437
18438 2010-07-02 Le-Chun Wu <lcwu@google.com>
18439
18440 PR c++/44128
18441 * doc/invoke.texi: Update documentation of -Wshadow.
18442
18443 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18444 Julian Brown <julian@codesourcery.com>
18445 Sandra Loosemore <sandra@codesourcery.com>
18446
18447 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
18448 comparisons. Adjust to take both operands.
18449 (arm_select_cc_mode): Handle DImode comparisons.
18450 (arm_gen_compare_reg): Generate a scratch register for DImode
18451 comparisons which require one. Use xor for Thumb equality checks.
18452 (arm_const_double_by_immediates): New.
18453 (arm_print_operand): Allow 'Q' and 'R' for constants.
18454 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
18455 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
18456 arm_canonicalize_comparison.
18457 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
18458 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
18459 prototype.
18460 (arm_const_double_by_immediates): Declare.
18461 * config/arm/constraints.md (Di): New constraint.
18462 * config/arm/predicates.md (arm_immediate_di_operand)
18463 (arm_di_operand, cmpdi_operand): New.
18464 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
18465 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
18466 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
18467 (cstoredi4): Handle non-Cirrus also.
18468
18469 2010-07-02 Julian Brown <julian@codesourcery.com>
18470 Sandra Loosemore <sandra@codesourcery.com>
18471
18472 PR target/43703
18473 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
18474 (smax<mode>3): Disable for NEON float modes when
18475 flag_unsafe_math_optimizations is false.
18476 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
18477 (*mul<mode>3_neon)
18478 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
18479 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
18480 for NEON float modes when flag_unsafe_math_optimizations is false.
18481 (quad_halves_<code>v4sf): Only enable if
18482 flag_unsafe_math_optimizations is true.
18483 * doc/invoke.texi (ARM Options): Add note about floating point
18484 vectorization requiring -funsafe-math-optimizations.
18485
18486 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
18487 Julian Brown <julian@codesourcery.com>
18488
18489 * config/arm/neon.md (UNSPEC_VABA): Delete.
18490 (UNSPEC_VABAL): Delete.
18491 (UNSPEC_VABS): Delete.
18492 (UNSPEC_VMUL_N): Delete.
18493 (adddi3_neon): New.
18494 (subdi3_neon): New.
18495 (mul<mode>3add<mode>_neon): Make the pattern named.
18496 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18497 (neon_vadd<mode>): Replace with define_expand, and move the remaining
18498 unspec parts...
18499 (neon_vadd<mode>_unspec): ...to this.
18500 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
18501 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
18502 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
18503 (neon_vaba<mode>): Rewrite in terms of vabd.
18504 (neon_vabal<mode>): Rewrite in terms of vabdl.
18505 (neon_vabs<mode>): Rewrite without unspec.
18506 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
18507 (*arm_subdi3): Likewise.
18508 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
18509 No_op attribute to disable assembly output checks.
18510 * config/arm/arm_neon.h: Regenerated.
18511 * doc/arm-neon-intrinsics.texi: Regenerated.
18512
18513 2010-07-02 Jan Hubicka <jh@suse.cz>
18514
18515 * ipa-split.c (split_function): For aggregate values, set the return
18516 slot optimization bit. When passing DECL_BY_REFERENCE, produce
18517 *<retval> = fncall.part ().
18518 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
18519
18520 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
18521
18522 * config/arm/neon.md (UNSPEC_VAND): Delete.
18523 (UNSPEC_VBIC): Delete.
18524 (UNSPEC_VCLZ): Delete.
18525 (UNSPEC_VCNT): Delete.
18526 (UNSPEC_VEOR): Delete.
18527 (UNSPEC_VORN): Delete.
18528 (UNSPEC_VORR): Delete.
18529 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
18530 core registers too.
18531 (anddi3_neon): Likewise.
18532 (orndi3_neon): Likewise.
18533 (bicdi3_neon): Likewise.
18534 (xordi3_neon): Likewise.
18535 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
18536 rid of unspec and handle unused operand.
18537 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
18538 * config/arm/predicates.md (imm_for_neon_logic_operand):
18539 Require TARGET_NEON.
18540 (imm_for_neon_inv_logic_operand): Likewise.
18541 * config/arm/arm.md (define_split for logical_binary_operator):
18542 Disable for NEON registers.
18543 (anddi3): Add new define_expand, and rename the insn. Disable
18544 this insn for NEON, where anddi3_neon now applies.
18545 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
18546 (iordi3): As for anddi3.
18547 (xordi3): Likewise.
18548 * config/arm/neon.ml (Vand): Split DImode variants and mark them
18549 as No_op to disable testing for exact instruction match.
18550 (Vorr): Likewise.
18551 (Veor): Likewise.
18552 (Vbic): Likewise.
18553 (Vorn): Likewise.
18554 * config/arm/arm_neon.h: Regenerated.
18555 * doc/arm-neon-intrinsics.texi: Regenerated.
18556
18557 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
18558
18559 * expr.h (emit_stack_probe): Declare.
18560 * explow.c (emit_stack_probe): Make global.
18561 (anti_adjust_stack_and_probe): Fix comments.
18562 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18563 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18564 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18565 * config/sparc/sparc.c: Include except.h.
18566 (sparc_emit_probe_stack_range): New function.
18567 (output_probe_stack_range): Likewise.
18568 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
18569 built-in stack checking is enabled.
18570 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
18571 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18572 (probe_stack_range): New insn.
18573
18574 2010-07-02 Richard Guenther <rguenther@suse.de>
18575
18576 PR target/43958
18577 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
18578 for argument alignment.
18579
18580 2010-07-02 Jan Hubicka <jh@suse.cz>
18581
18582 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
18583 walk backwards from entry_bb to check only those basic block of header
18584 that might lead to execution of split part.
18585 (consider_split) ... here.
18586 (find_return_bb): Allow assignment in return BB.
18587 (find_retval): New.
18588 (split_function): Fix name of cloned function; take care of updating
18589 return value in return_bb containing move.
18590
18591 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
18592
18593 PR target/44771
18594 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
18595 used variable insn.
18596
18597 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
18598
18599 * implicit-zee.c (combine_reaching_defs): Fix long lines.
18600 (is_set_with_extension_DI): Delete.
18601 (struct zero_extend_info): New structure.
18602 (add_removable_zero_extend): New function.
18603 (find_removable_zero_extends): Use note_stores to find SETs.
18604 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
18605
18606 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
18607
18608 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
18609 is_miss_rate_acceptable. Pull total_positions computation
18610 out of the loops. Early return if miss_positions exceeds
18611 the acceptable threshold.
18612 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
18613 is_miss_rate_acceptable after renaming of compute_miss_rate.
18614
18615 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
18616
18617 PR middle-end/44576
18618 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
18619 of 1000) for miss rate if the address diference is greater than or
18620 equal to the cache line size (the two reference will never hit the
18621 same cache line).
18622
18623 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
18624
18625 PR target/42835
18626 * config/arm/arm-modes.def (CC_NOTB): New mode.
18627 * config/arm/arm.c (get_arm_condition_code): Handle it.
18628 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
18629 * config/arm/arm.md (subsi3_compare0_c): New pattern.
18630 (compare_scc): Now a define_and_split. Add a number of extra
18631 splitters before it.
18632
18633 PR target/42172
18634 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
18635 and ZERO_EXTEND.
18636 (arm_rtx_costs_1): Likewise.
18637 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
18638 * config/arm/arm.md (is_arch6): New attribute.
18639 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
18640 extendqisi2): Tighten the code somewhat, avoiding invalid
18641 RTL to occur in the expander patterns.
18642 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
18643 (thumb1_zero_extendhisi2_v6): Delete.
18644 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
18645 (thumb1_extendhisi2_v6): Delete.
18646 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
18647 (thumb1_extendqisi2_v6): Delete.
18648 (zero_extendhisi2 for register input splitter): New.
18649 (zero_extendqisi2 for register input splitter): New.
18650 (thumb1_extendhisi2 for register input splitter): New.
18651 (extendhisi2 for register input splitter): New.
18652 (extendqisi2 for register input splitter): New.
18653 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
18654 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
18655 and add support for a register alternative requiring a split.
18656 (thumb1_zero_extendqisi2): Likewise.
18657 (arm_zero_extendqisi2): Likewise.
18658 (arm_extendhisi2): Likewise.
18659 (arm_extendqisi2): Likewise.
18660
18661 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
18662
18663 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
18664 instead of an unspec.
18665 (neon_expand_vector_init): Likewise.
18666 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
18667 (UNSPEC_VDUP_LANE): Delete.
18668 (UNSPEC VDUP_N): Delete.
18669 (UNSPEC_VGET_HIGH): Delete.
18670 (UNSPEC_VGET_LANE): Delete.
18671 (UNSPEC_VGET_LOW): Delete.
18672 (UNSPEC_VMVN): Delete.
18673 (UNSPEC_VSET_LANE): Delete.
18674 (V_double_vector_mode): New.
18675 (vec_set<mode>_internal): Make code emitted match that for the
18676 corresponding intrinsics.
18677 (vec_setv2di_internal): Likewise.
18678 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
18679 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
18680 (neon_vset_lane<mode>): Combine double and quad patterns and
18681 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
18682 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
18683 (neon_vdup_n<mode>): Rewrite RTL without unspec.
18684 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
18685 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
18686 with neon_vdup_lanev2di, adjusting the pattern from the latter
18687 to be predicable for consistency.
18688 (neon_vdup_lane<mode>_internal): New.
18689 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
18690 to avoid using an unspec.
18691 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
18692 (neon_vdup_lanev2di): Turn into a define_expand.
18693 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
18694 (neon_vget_high<mode>): Replace with....
18695 (neon_vget_highv16qi): New pattern using canonical RTL.
18696 (neon_vget_highv8hi): Likewise.
18697 (neon_vget_highv4si): Likewise.
18698 (neon_vget_highv4sf): Likewise.
18699 (neon_vget_highv2di): Likewise.
18700 (neon_vget_low<mode>): Replace with....
18701 (neon_vget_lowv16qi): New pattern using canonical RTL.
18702 (neon_vget_lowv8hi): Likewise.
18703 (neon_vget_lowv4si): Likewise.
18704 (neon_vget_lowv4sf): Likewise.
18705 (neon_vget_lowv2di): Likewise.
18706
18707 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
18708 test for this emitting vmov.
18709 (Vset_lane): Likewise.
18710 (Vdup_n): Likewise.
18711 (Vmov_n): Likewise.
18712
18713 * doc/arm-neon-intrinsics.texi: Regenerated.
18714
18715 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
18716
18717 * config/arm/neon.md (vec_extractv2di): Correct error in register
18718 numbering to reconcile with neon_vget_lanev2di.
18719
18720 2010-07-02 Richard Guenther <rguenther@suse.de>
18721
18722 * tree-ssa-structalias.c (pt_solution_set_var): New function.
18723 * tree-ssa-alias.h (pt_solution_set_var): Declare.
18724 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
18725 points-to information.
18726
18727 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
18728
18729 * config/s390/s390.c (override_options): Adopt prefetching
18730 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
18731
18732 2010-07-02 Jan Hubicka <jh@suse.cz>
18733
18734 * df-problems.c (df_kill_notes): Do not collect dead notes.
18735 (df_set_note): Just call add_reg_note.
18736 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
18737 df_create_unused_note): Do not deal with lists of old notes.
18738 (df_note_bb_compute): Likewise.
18739
18740 2010-07-02 Richard Guenther <rguenther@suse.de>
18741
18742 * tree-ssa-structalias.c (find_func_aliases): Handle
18743 pointer alignment via BIT_AND_EXPR.
18744 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
18745
18746 2010-07-02 Richard Guenther <rguenther@suse.de>
18747
18748 * tree-data-ref.c (initialize_data_dependence_relation): Handle
18749 mismatching number of dimensions properly.
18750
18751 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18752
18753 PR target/44707
18754 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
18755 (lo_sum (high ...) ...) patterns generated by earlier passes.
18756
18757 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18758
18759 * doc/install.texi (Prerequisites): Document Perl requirement on
18760 Solaris 2.
18761 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
18762
18763 2010-07-02 Richard Guenther <rguenther@suse.de>
18764
18765 PR middle-end/44777
18766 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
18767
18768 2010-07-02 Jan Hubicka <jh@suse.cz>
18769
18770 PR middle-end/44706
18771 * predict.c (predict_paths_for_bb): Handle case when control dependence
18772 BB has only abnormal edges.
18773
18774 2010-07-02 Richard Guenther <rguenther@suse.de>
18775
18776 PR tree-optimization/44748
18777 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
18778 the embedded conversion in MEM_REFs.
18779
18780 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
18781
18782 * reload.c: Include toplev.h.
18783 * recog.c: Likewise.
18784 * Makefile.in: Adjust dependencies.
18785
18786 2010-07-01 Jakub Jelinek <jakub@redhat.com>
18787
18788 PR debug/44694
18789 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
18790 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
18791
18792 2010-07-01 Richard Guenther <rguenther@suse.de>
18793
18794 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
18795 types for offsets.
18796
18797 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
18798
18799 PR target/44732
18800 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
18801 Fix argument types.
18802
18803 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
18804
18805 PR target/44727
18806 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18807 Make sure operand 0 dies.
18808
18809 2010-07-01 Richard Guenther <rguenther@suse.de>
18810
18811 PR middle-end/42834
18812 PR middle-end/44468
18813 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
18814 * doc/generic.texi (References to storage): Document MEM_REF.
18815 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
18816 (print_call_name): Likewise.
18817 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
18818 (build_simple_mem_ref_loc): New function.
18819 (mem_ref_offset): Likewise.
18820 * tree.h (build_simple_mem_ref_loc): Declare.
18821 (build_simple_mem_ref): Define.
18822 (mem_ref_offset): Declare.
18823 * fold-const.c: Include tree-flow.h.
18824 (operand_equal_p): Handle MEM_REF.
18825 (build_fold_addr_expr_with_type_loc): Likewise.
18826 (fold_comparison): Likewise.
18827 (fold_unary_loc): Fold
18828 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
18829 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
18830 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
18831 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
18832 (ptr_deref_may_alias_ref_p_1): Likewise.
18833 (ao_ref_base_alias_set): Properly differentiate base object for
18834 offset and TBAA.
18835 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
18836 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
18837 (indirect_refs_may_alias_p): Likewise.
18838 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
18839 chasing code.
18840 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
18841 (call_may_clobber_ref_p_1): Likewise.
18842 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
18843 * expr.c (expand_assignment): Handle MEM_REF.
18844 (store_expr): Handle MEM_REFs from STRING_CSTs.
18845 (store_field): If expanding a MEM_REF of a non-addressable
18846 decl use bitfield operations.
18847 (get_inner_reference): Handle MEM_REF.
18848 (expand_expr_addr_expr_1): Likewise.
18849 (expand_expr_real_1): Likewise.
18850 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
18851 * alias.c (ao_ref_from_mem): Handle MEM_REF.
18852 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
18853 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
18854 (dr_analyze_indices): Likewise.
18855 (dr_analyze_alias): Likewise.
18856 (object_address_invariant_in_loop_p): Likewise.
18857 * gimplify.c (mark_addressable): Handle MEM_REF.
18858 (gimplify_cond_expr): Build MEM_REFs.
18859 (gimplify_modify_expr_to_memcpy): Likewise.
18860 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
18861 (gimple_fold_indirect_ref): Adjust.
18862 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
18863 * tree.def (MEM_REF): New tree code.
18864 * tree-dfa.c: Include toplev.h.
18865 (get_ref_base_and_extent): Handle MEM_REF.
18866 (get_addr_base_and_unit_offset): New function.
18867 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
18868 * gimple-fold.c (may_propagate_address_into_dereference): Handle
18869 MEM_REF.
18870 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
18871 accesses if the array has just one dimension. Remove always true
18872 parameter. Do not require type compatibility here.
18873 (maybe_fold_offset_to_component_ref): Remove.
18874 (maybe_fold_stmt_indirect): Remove.
18875 (maybe_fold_reference): Remove INDIRECT_REF handling.
18876 Fold back to non-MEM_REF.
18877 (maybe_fold_offset_to_address): Simplify. Deal with type
18878 mismatches here.
18879 (maybe_fold_reference): Likewise.
18880 (maybe_fold_stmt_addition): Likewise. Also handle
18881 &ARRAY + I in addition to &ARRAY[0] + I.
18882 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
18883 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
18884 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
18885 * tree-ssa.c (useless_type_conversion_p): Make most pointer
18886 conversions useless.
18887 (warn_uninitialized_var): Handle MEM_REF.
18888 (maybe_rewrite_mem_ref_base): New function.
18889 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
18890 to SSA form.
18891 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
18892 INDIRECT_REF handling.
18893 (copy_tree_body_r): Handle MEM_REF.
18894 * gimple.c (is_gimple_addressable): Adjust.
18895 (is_gimple_address): Likewise.
18896 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
18897 invariant base are invariant.
18898 (is_gimple_min_lval): Adjust.
18899 (is_gimple_mem_ref_addr): New function.
18900 (get_base_address): Handle MEM_REF.
18901 (count_ptr_derefs): Likewise.
18902 (get_base_loadstore): Likewise.
18903 * gimple.h (is_gimple_mem_ref_addr): Declare.
18904 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
18905 * tree-cfg.c (verify_address): New function, split out from ...
18906 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
18907 the address operand of MEM_REFs. Verify MEM_REFs. Reject
18908 INDIRECT_REFs.
18909 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
18910 INDIRECT_REF. Allow conversions.
18911 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
18912 a register does not change its size.
18913 (verify_types_in_gimple_reference): Verify MEM_REF.
18914 (verify_gimple_assign_single): Disallow INDIRECT_REF.
18915 Handle MEM_REF.
18916 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
18917 New.
18918 (mark_address_taken): Handle MEM_REF.
18919 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
18920 (get_asm_expr_operands): Pass opf_not_non_addressable.
18921 (get_expr_operands): Handle opf_[not_]non_addressable.
18922 Handle MEM_REF. Remove INDIRECT_REF handling.
18923 * tree-vrp.c (check_array_ref): Handle MEM_REF.
18924 (search_for_addr_array): Likewise.
18925 (check_array_bounds): Likewise.
18926 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
18927 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
18928 (ref_always_accessed_p): Likewise.
18929 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
18930 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
18931 Handle MEM_REF.
18932 * cgraphbuild.c (mark_load): Properly check for NULL result
18933 from get_base_address.
18934 (mark_store): Likewise.
18935 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
18936 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
18937 handling for MEM_REF.
18938 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
18939 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
18940 * builtins.c (stabilize_va_list_loc): Use the function ABI
18941 valist type if we couldn't canonicalize the argument type.
18942 Always dereference with the canonical va-list type.
18943 (maybe_emit_free_warning): Handle MEM_REF.
18944 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
18945 memmove to memcpy.
18946 * builtins.c (fold_builtin_memory_op): Use ref-all types
18947 for all memcpy foldings.
18948 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
18949 (build_outer_var_ref): Likewise.
18950 (scan_omp_1_op): Likewise.
18951 (lower_rec_input_clauses): Likewise.
18952 (lower_lastprivate_clauses): Likewise.
18953 (lower_reduction_clauses): Likewise.
18954 (lower_copyprivate_clauses): Likewise.
18955 (expand_omp_atomic_pipeline): Likewise.
18956 (expand_omp_atomic_mutex): Likewise.
18957 (create_task_copyfn): Likewise.
18958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
18959 Remove old union trick. Initialize constant offsets.
18960 (ao_ref_init_from_vn_reference): Likewise. Do not handle
18961 INDIRECT_REF. Init base_alias_set properly.
18962 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
18963 (vn_reference_fold_indirect): Adjust for MEM_REFs.
18964 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
18965 for ARRAY_REFs.
18966 (may_insert): Remove.
18967 (visit_reference_op_load): Do not test may_insert.
18968 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
18969 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
18970 a field to store the constant offset this op applies.
18971 (run_scc_vn): Adjust prototype.
18972 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
18973 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
18974 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
18975 bother about volatile qualifiers on pointers.
18976 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
18977 * tree-ssa-loop-ivopts.c
18978 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
18979 (strip_offset_1): Likewise.
18980 (find_interesting_uses_address): Replace INDIRECT_REF handling with
18981 MEM_REF handling.
18982 (get_computation_cost_at): Likewise.
18983 * ipa-pure-const.c (check_op): Handle MEM_REF.
18984 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
18985 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
18986 and constants.
18987 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
18988 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
18989 (eliminate_local_variables_1): Likewise.
18990 (create_call_for_reduction_1): Likewise.
18991 (create_loads_for_reductions): Likewise.
18992 (create_loads_and_stores_for_name): Likewise.
18993 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
18994 (ssa_accessed_in_tree): Handle MEM_REF.
18995 (ssa_accessed_in_assign_rhs): Likewise.
18996 (update_type_size): Likewise.
18997 (analyze_accesses_for_call_stmt): Likewise.
18998 (analyze_accesses_for_assign_stmt): Likewise.
18999 (transform_access_sites): Likewise.
19000 (transform_allocation_sites): Likewise.
19001 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
19002 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
19003 not handle INDIRECT_REF.
19004 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
19005 (cond_store_replacement): Likewise.
19006 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
19007 MEM_REF, no not handle INDIRECT_REFs.
19008 (insert_into_preds_of_block): Properly initialize avail.
19009 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
19010 for ARRAY_REFs. Properly handle reference lookups that
19011 require a bit re-interpretation.
19012 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
19013 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
19014 (build_ref_for_offset_1): Remove.
19015 (build_ref_for_offset): Build MEM_REFs.
19016 (gate_intra_sra): Disable for now.
19017 (sra_ipa_modify_expr): Handle MEM_REF.
19018 (ipa_early_sra_gate): Disable for now.
19019 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
19020 MEM_REF handling.
19021 (disqualify_base_of_expr): Likewise.
19022 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
19023 MEM_REF handling.
19024 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
19025 Use mem_ref_offset. Remove bogus folding.
19026 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
19027 (make_fancy_name_1): Add support for MEM_REF.
19028 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
19029 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
19030 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
19031 (compute_complex_ancestor_jump_func): Likewise.
19032 (ipa_analyze_virtual_call_uses): Likewise.
19033 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
19034 INDIRECT_REF folding with more generalized MEM_REF folding.
19035 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
19036 (forward_propagate_addr_into_variable_array_index): Also handle
19037 &ARRAY + I in addition to &ARRAY[0] + I.
19038 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
19039 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
19040 creates assignments with overlap.
19041 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
19042 (get_frame_field): Likewise.
19043 (get_nonlocal_debug_decl): Likewise.
19044 (convert_nonlocal_reference_op): Likewise.
19045 (struct nesting_info): Add mem_refs pointer-set.
19046 (create_nesting_tree): Allocate it.
19047 (convert_local_reference_op): Insert to be folded mem-refs.
19048 (fold_mem_refs): New function.
19049 (finalize_nesting_tree_1): Perform defered folding of mem-refs
19050 (free_nesting_tree): Free the pointer-set.
19051 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
19052 (vectorizable_load): Likewise.
19053 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
19054 (propagate_with_phi): Likewise.
19055 * tree-object-size.c (addr_object_size): Handle MEM_REFs
19056 instead of INDIRECT_REFs.
19057 (compute_object_offset): Handle MEM_REF.
19058 (plus_stmt_object_size): Handle MEM_REF.
19059 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
19060 for &MEM_REF.
19061 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
19062 (symbol_marked_for_renaming): Likewise.
19063 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
19064 (fold-const.o): Add $(TREE_FLOW_H).
19065 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
19066 (find_func_clobbers): Likewise.
19067 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
19068 (decompose_access): Likewise.
19069 (replace_field_acc): Likewise.
19070 (replace_field_access_stmt): Likewise.
19071 (insert_new_var_in_stmt): Likewise.
19072 (get_stmt_accesses): Likewise.
19073 (reorg_structs_drive): Disable.
19074 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
19075 (ix86_canonical_va_list_type): Likewise.
19076
19077 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
19078
19079 PR other/44566
19080 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
19081 * target.def (struct gcc_target): Replace enum reg_class with
19082 reg_class_t in hook argument / return types.
19083 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
19084 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
19085 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
19086 * targhooks.h (default_branch_target_register_class): Likewise.
19087 (default_ira_cover_classes, default_secondary_reload): Likewise.
19088 (default_memory_move_cost, default_register_move_cost): Likewise.
19089 * targhooks.c (default_branch_target_register_class): Likewise.
19090 (default_ira_cover_classes, default_secondary_reload): Likewise.
19091 (default_memory_move_cost, default_register_move_cost): Likewise.
19092 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
19093 * bt-load.c (branch_target_load_optimize): Likewise.
19094 * ira.c (setup_cover_and_important_classes): Likewise.
19095 * ira-costs.c (copy_cost): Likewise.
19096 * reload1.c (emit_input_reload_insns): Likewise.
19097 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19098 * config/frv/frv.c (frv_secondary_reload): Likewise.
19099 * config/s390/s390.c (s390_secondary_reload): Likewise.
19100 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
19101 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
19102 (ix86_register_move_cost): Likewise.
19103 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
19104 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
19105 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
19106 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
19107 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
19108 (rs6000_ira_cover_classes): Likewise.
19109 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
19110 * config/picochip/picochip-protos.h (picochip_secondary_reload):
19111 Likewise.
19112 * config/pa/pa.c (pa_secondary_reload): Likewise.
19113 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
19114 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
19115 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
19116 * doc/tm.texi: Regenerate.
19117
19118 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
19119
19120 PR bootstrrap/44726
19121 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
19122 use.
19123 (build_alias_set_optimal_p): Likewise.
19124 (build_base_obj_set_for_drs): Likewise.
19125
19126 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
19127
19128 * target.def: Remove comment about licensing problems of function
19129 declarations.
19130
19131 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
19132 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
19133 * doc/tm.texi: Regenerate.
19134
19135 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
19136 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
19137
19138 * target.def (enum_va_list_p): Use DEFHOOK.
19139 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
19140 Rename ptype to ptree.
19141 * doc/tm.texi: Regenerate.
19142
19143 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
19144 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
19145 * doc/tm.texi: Regenerate.
19146
19147 * target.def (memory_move_cost): Use DEFHOOK.
19148 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
19149 Rename regclass AKA class to rclass.
19150 * doc/tm.texi: Regenerate.
19151
19152 * target.def (pragma_parse): Use DEFHOOK.
19153 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
19154 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
19155 * doc/tm.texi: Regenerate.
19156
19157 * target.def (pass_by_reference): Use DEFHOOK.
19158 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
19159 * doc/tm.texi: Regenerate.
19160
19161 * target.def (resolve_overloaded_builtin): Rename params to arglist.
19162 Use DEFHOOK.
19163 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
19164 * doc/tm.texi: Regenerate.
19165
19166 * target.def (return_pops_args): Use DEFHOOK.
19167 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
19168 Rename stack-size to size.
19169 * doc/tm.texi: Regenerate.
19170
19171 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
19172 last-sched_cycle to last_clock, cur_cycle to clock.
19173 * doc/tm.texi.in: Use @hook.
19174 * doc/tm.texi: Regenerate.
19175
19176 * target.def (print_operand, print_operand_address): Update comment.
19177 (print_operand_punct_valid_p): Likewise.
19178
19179 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
19180
19181 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
19182 to rtl.h.
19183 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
19184 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
19185 * rtl-error.h: New.
19186 * regrename.c: Do not include toplev.h. Include rtl-error.h.
19187 * rtl-error.c: Likewise.
19188 * reload.c: Likewise.
19189 * recog.c: Likewise.
19190 * sel-sched.c: Likewise.
19191 * function.c: Likewise.
19192 * reg-stack.c: Likewise.
19193 * cfgrtl.c: Likewise.
19194 * reload1.c: Likewise.
19195 * final.c: Include rtl-error.
19196 * Makefile.in: Adjust dependencies.
19197
19198 2010-06-30 Jan Hubicka <jh@suse.cz>
19199
19200 PR middle-end/PR44706
19201 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
19202 to return the value.
19203
19204 2010-06-30 Michael Matz <matz@suse.de>
19205
19206 PR bootstrap/44699
19207 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
19208 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
19209 a gimple reg, attach the original VDEF to the last store in the
19210 sequence.
19211
19212 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
19213
19214 PR other/44034
19215 * config/darwin.c (darwin_override_options): Use renamed
19216 targetm.asm_out.emit_unwind_label.
19217
19218 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
19219
19220 PR tree-optimization/39799
19221 * tree-inline.c (remap_ssa_name): Initialize variable only if
19222 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19223
19224 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
19225
19226 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
19227
19228 2010-06-30 Richard Guenther <rguenther@suse.de>
19229
19230 PR target/44722
19231 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
19232 against oscillation with reverse peephole2.
19233
19234 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
19235
19236 PR target/44721
19237 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19238 Fix last commit.
19239
19240 2010-06-30 Nick Clifton <nickc@redhat.com>
19241
19242 * config/rx/rx-modes.def: New file.
19243 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
19244 (CC_REGNUM): Define.
19245 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
19246 register.
19247 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
19248 (SELECT_CC_MODE): Define.
19249 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
19250 (reg:CC CC_REG) instead of (cc0).
19251 (attr "cc"): Delete.
19252 (cbranchsi4): Do not split compare and branch here. Instead move
19253 it to...
19254 (cbranchsi4_<code>): ... here. New patterns.
19255 (cmpsi): Call rx-compare_redundant to find out if it is necessary
19256 to emit the compare instruction.
19257 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
19258 cc_status flags.
19259 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
19260 FIRST_PSEUDO_REGNUM.
19261 (rx_expand_prologue, rx_expand_epilogue): Likewise.
19262 (rx_notice_update_cc): Delete.
19263 (rx_cc_modes_compatible): New function.
19264 (flags_needed_for_conditional): New function.
19265 (flags_from_mode): New function.
19266 (rx_compare_redundant): New function - scans backwards through
19267 insn list to find out if condition flags are already set correctly.
19268 (TARGET_CC_MODES_COMPATIBLE): Define.
19269 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
19270
19271 * config/rx/rx.h (BRANCH_COST): Define.
19272 (REGISTER_MOVE_COST): Define.
19273 * config/rx/predicates (rx_source_operand): Allow all constant types.
19274 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
19275 (tstsi4): New pattern.
19276 * config/rx/rx.c (rx_memory_move_cost): Define.
19277 (TARGET_MEMORY_MOVE_COST): Define.
19278
19279 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
19280
19281 * tree.h (block_may_fallthru): Declare here.
19282 * tree-flow.h (block_may_fallthru): Do not declare here.
19283 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
19284 bitmap.h
19285 * Makefile.in (c-typeck.o): Update dependencies.
19286
19287 2010-06-30 Jakub Jelinek <jakub@redhat.com>
19288
19289 PR debug/44694
19290 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
19291 * cselib.c (cfa_base_preserved_regno): New static variable.
19292 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
19293 of REGNO (cfa_base_preserved_val->locs->loc).
19294 (cselib_preserve_cfa_base_value): Add regno argument, set
19295 cfa_base_preserved_regno to it.
19296 (cselib_invalidate_regno): Allow removal of registers other than
19297 cfa_base_preserved_regno from cfa_base_preserved_val.
19298 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
19299 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
19300 of MEM addresses, if not on LHS.
19301 (reverse_op): Don't add reverse ops for cfa_base_rtx.
19302 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
19303
19304 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
19305
19306 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
19307 static variables.
19308 (peep2_buf_position): New static function.
19309 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
19310 peephole2_optimize): Use it.
19311 (peep2_attempt, peep2_update_life): New static functions, broken out
19312 of peephole2_optimize.
19313 (peep2_fill_buffer): New static function.
19314 (peephole2_optimize): Change the main loop to try to fill the buffer
19315 with the maximum number of insns before matching them against
19316 peepholes. Use a forward scan. Remove special case for targets with
19317 conditional execution.
19318 * genrecog.c (change_state): Delete dead code.
19319 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19320 Rewrite so as not to expect the second insn to have had a peephole
19321 applied yet.
19322
19323 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
19324
19325 * genhooks.c (emit_findices): Cast field precision to int.
19326 (emit_documentation): Likewise.
19327
19328 2010-06-29 Jakub Jelinek <jakub@redhat.com>
19329
19330 PR tree-optimization/43801
19331 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
19332 if old_decl was DECL_ONE_ONLY.
19333
19334 PR debug/44668
19335 * dwarf2out.c (add_accessibility_attribute): New function.
19336 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
19337 instead of adding DW_AT_accessibility manually.
19338 (gen_enumeration_type_die, gen_struct_or_union_type_die,
19339 gen_typedef_die): Use it.
19340
19341 2010-06-29 Douglas B Rupp <rupp@gnat.com>
19342
19343 * vmsdbgout.c (full_name): Just output the file name if not native.
19344
19345 2010-06-29 Douglas B Rupp <rupp@gnat.com>
19346
19347 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
19348 (funcnam_table): New static table.
19349 (funcnum_table): New static table.
19350 (write_rtnbeg): Write value saved in funcnum_table.
19351 (write_rtnend): Write value saved in funcnum_table.
19352 (vmsdbgout_begin_function): Save current function info in
19353 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
19354 (vmsdbgout_finish): Iterate over funcnum_table.
19355
19356 2010-06-29 Douglas B Rupp <rupp@gnat.com>
19357
19358 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
19359 (vmsdbgout_type_decl): Declare
19360 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
19361 (FUNC_EPILOGUE_LABEL): New macro
19362 (vmsdbgout_begin_epilogue): New function.
19363 (vmsdbgout_type_decl): New function.
19364
19365 2010-06-29 Douglas B Rupp <rupp@gnat.com>
19366
19367 * vmsdbg.h: Update copyright.
19368
19369 2010-06-29 Douglas B Rupp <rupp@gnat.com>
19370
19371 * vmsdbg.h (DST_K_TBG): New DST constant.
19372 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
19373 (write_modbeg): Cast module_language to avoid warning.
19374 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
19375
19376 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
19377
19378 PR other/44034
19379 * target.def, doc/tm.texi.in, genhooks.c: New files.
19380 * target.h: Instead of defining individual hook members,
19381 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
19382 include target.def.
19383 * target-def.h: Instead of defining individual hook initializers,
19384 include target-hooks-def.h.
19385 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
19386 targetm.live_on_entry -> targetm.extra_live_on_entry
19387 targetm.sched.md_finish ->targetm.sched.finish
19388 targetm.sched.md_init -> targetm.sched.init
19389 targetm.sched.md_init_global -> targetm.sched.init_global
19390 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
19391 targetm.asm_out.except_table_label ->
19392 targetm.asm_out.emit_except_table_label
19393 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
19394 targetm.target_help -> targetm.help
19395 targetm.vectorize.builtin_support_vector_misalignment ->
19396 targetm.vectorize.support_vector_misalignment
19397 targetm.file_start_app_off -> targetm.asm_file_start_app_off
19398 targetm.file_start_file_directive ->
19399 targetm.asm_file_start_file_directive
19400 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
19401 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
19402 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
19403 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
19404 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
19405 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
19406 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
19407 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
19408 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
19409 * Makefile.in (TARGET_H): Depend on target.def.
19410 (TARGET_DEF_H): Depend on target-hooks-def.h.
19411 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
19412 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
19413 * doc/tm.texi: Regenerate.
19414
19415 * Makefile.in (s-tm-texi): Remove stray tab / rule.
19416
19417 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
19418 (targetm.sched.init): Likewise.
19419
19420 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
19421
19422 PR bootstrap/44713
19423 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
19424 (function_arg_advance_32): Const-ify TYPE parameter.
19425 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
19426 (ix86_function_arg_advance): Change type of NAMED to bool.
19427 (function_arg_32): Const-ify CUM and TYPE parameters.
19428 (function_arg_64): Likewise. Change type of NAMED to bool.
19429 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
19430 to bool.
19431 (ix86_function_arg): Change type of NAMED to bool.
19432 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
19433 last argument as a bool.
19434
19435 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
19436
19437 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
19438 (OVERRIDE_OPTIONS): Add note of obsolescence.
19439 Replace references with references to TARGET_OPTION_OVERRIDE.
19440 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
19441 the macro).
19442 * targhooks.c (default_target_option_override): New function.
19443 * targhooks.h (default_target_option_override): Declare.
19444 * target.h (struct gcc_target): Add override member to
19445 target_option member.
19446 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
19447 targetm.target_option.override call.
19448 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
19449 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
19450
19451 2010-06-29 Jan Hubicka <jh@suse.cz>
19452
19453 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
19454
19455 2010-06-29 Jan Hubicka <jh@suse.cz>
19456
19457 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
19458 unreachable.
19459 (rebuild_frequencies): New function.
19460 * predict.h (rebuild_frequencies): Declare.
19461 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
19462 entry block and edge reaching new_entry.
19463 (tree_function_versioning): When doing partial cloning, rebuild
19464 frequencies when done.
19465 * passes.c (execute_function_todo): Use rebild_frequencies.
19466
19467 2010-06-29 Richard Guenther <rguenther@suse.de>
19468
19469 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
19470 * tree-flow.h (enum noalias_state): Remove.
19471 (struct var_ann_d): Remove noalias_state member.
19472
19473 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
19474
19475 PR target/43902
19476 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
19477 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
19478 (maddhidi4): Likewise.
19479
19480 Revert parts of the change for PR25130.
19481 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19482 MEM_ALIAS_SET.
19483
19484 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
19485
19486 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
19487 targetm.calls.function_incoming_arg, and
19488 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
19489 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
19490 * target.h (struct gcc_target): Add function_arg_advance,
19491 function_arg, and function_incoming_arg fields.
19492 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
19493 (TARGET_FUNCTION_INCOMING_ARG): Define.
19494 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
19495 and TARGET_FUNCTION_INCOMING_ARG.
19496 * targhooks.h (default_function_arg_advance): Declare.
19497 (default_function_arg, default_function_incoming_arg): Declare.
19498 * targhooks.c (default_function_arg_advance): New function.
19499 (default_function_arg, default_function_incoming_arg): New function.
19500 * config/i386/i386.c (function_arg_advance): Rename to...
19501 (ix86_function_arg_advance): ...this. Make static.
19502 (function_arg): Rename to...
19503 (ix86_function_arg): ...this. Make static.
19504 (TARGET_FUNCTION_ARG_ADVANCE): Define.
19505 (TARGET_FUNCTION_ARG): Define.
19506 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
19507 (FUNCTION_ARG): Delete.
19508 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
19509 (function_arg): Delete prototype.
19510
19511 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
19512
19513 * reginfo.c (init_reg_sets_1): Adjust comments.
19514 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
19515 * calls.c (prepare_call_address): Likewise.
19516 (emit_call_1): Use targetm.calls.return_pops_args.
19517 (expand_call): Likewise.
19518 * function.c (assign_parms): Likewise.
19519 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
19520 * target.h (struct gcc_target) [struct calls]: Add
19521 return_pops_args field.
19522 * targhooks.h (default_return_pops_args): Declare.
19523 * targhooks.c (default_return_pops_args): Define.
19524 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
19525 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
19526 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
19527 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
19528 documentation.
19529 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
19530 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
19531 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
19532 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
19533 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
19534 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
19535 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
19536 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
19537 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
19538 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
19539 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
19540 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
19541 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
19542 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
19543 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
19544 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
19545 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
19546 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
19547 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
19548 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
19549 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
19550 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
19551 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
19552 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
19553 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
19554 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
19555 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
19556 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
19557 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
19558 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
19559 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
19560 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
19561 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
19562 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
19563 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
19564 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
19565 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
19566 * config/i386/i386.c (ix86_return_pops_args): Make static.
19567 Constify arguments.
19568 (TARGET_RETURN_POPS_ARGS): Define.
19569 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
19570 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
19571 (TARGET_RETURN_POPS_ARGS): Define.
19572 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
19573 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
19574 (TARGET_RETURN_POPS_ARGS): Define.
19575
19576 2010-06-29 Richard Guenther <rguenther@suse.de>
19577
19578 PR middle-end/44667
19579 * tree-inline.c (initialize_inlined_parameters): Make sure
19580 to remap the inlined parameter variable substitutions types.
19581
19582 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
19583
19584 PR rtl-optimization/44659
19585 * combine.c (make_compound_operation) <SUBREG>: Do not return the
19586 result of force_to_mode if it partially re-expanded the compound.
19587
19588 2010-06-28 Jan Hubicka <jh@suse.cz>
19589
19590 PR middle-end/44671
19591 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
19592 RESULT_DECL.
19593
19594 2010-06-28 Anatoly Sokolov <aesok@post.ru>
19595
19596 * double-int.h (force_fit_type_double): Remove declaration.
19597 * double-int.c (force_fit_type_double): Move to tree.c.
19598 * tree.h (force_fit_type_double): Declare.
19599 * tree.h (force_fit_type_double): Moved from double-int.c. Use
19600 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
19601 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
19602 * convert.c (convert_to_pointer): Adjust call to
19603 force_fit_type_double.
19604 * tree-vrp.c (extract_range_from_assert,
19605 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
19606 * fold-const.c: Update comment.
19607 (int_const_binop, fold_convert_const_int_from_int,
19608 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
19609 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
19610 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
19611 round_up_loc): Adjust call to force_fit_type_double.
19612
19613 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19614
19615 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
19616
19617 2010-06-28 Martin Jambor <mjambor@suse.cz>
19618
19619 * tree-sra.c (convert_callers): New parameter, change fndecls of
19620 recursive calls.
19621 (modify_function): Pass the old decl to convert_callers.
19622
19623 2010-06-28 Martin Jambor <mjambor@suse.cz>
19624
19625 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
19626 ipa_check_create_node_params and ipa_initialize_node_params with
19627 checking asserts they are not necessary.
19628
19629 2010-06-28 Jan Hubicka <jh@suse.cz>
19630
19631 PR tree-optimization/44687
19632 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
19633
19634 2010-06-28 Martin Jambor <mjambor@suse.cz>
19635
19636 PR c++/44535
19637 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
19638 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
19639 instead of BINFO_BASE_BINFO.
19640
19641 2010-06-28 Michael Matz <matz@suse.de>
19642
19643 PR middle-end/44592
19644 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
19645 proper VDEF chain for intermediate stores in the sequence.
19646
19647 2010-06-28 Jan Hubicka <jh@suse.cz>
19648
19649 PR tree-optimization/44357
19650 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
19651 uninlinable functions.
19652
19653 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19654
19655 * config.gcc (powerpc*-*-*): Handle titan.
19656 * config/rs6000/rs6000.c (titan_cost): New costs.
19657 (rs6000_override_options): Add "titan" to processor_target_table.
19658 Add Titan to branch alignment logic.
19659 Correctly set rs6000_cost for titan.
19660 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
19661 * config/rs6000/titan.md: New file.
19662 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
19663
19664 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
19665
19666 * tree-browser.c (TB_history_stack): Convert to a VEC.
19667 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
19668 (TB_history_prev): Likewise.
19669
19670 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
19671
19672 * vec.h (vec_heap_free): Add parentheses around free.
19673
19674 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
19675
19676 * system.h: Poison GCC_EXCEPT_H for front-end files.
19677
19678 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
19679 langhook.
19680 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
19681 Define to NULL by default.
19682 * except.h: Define GCC_EXCEPT_H.
19683 (doing_eh): Remove prototype.
19684 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
19685 (lang_protect_cleanup_actions): Remove.
19686 * except.c (lang_protect_cleanup_actions): Remove.
19687 (doing_eh): Remove.
19688 (gen_eh_region): Don't check doing_eh here.
19689 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
19690 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
19691 instead of lang_protect_cleanup_actions.
19692 * omp-low.c (maybe_catch_exception): Likewise.
19693 * Makefile.in: Update dependencies.
19694
19695 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
19696
19697 * cgraph.h (struct varpool_node): new used_from_object_file flag.
19698 (struct cgraph_local_info): new used_from_object_file flag.
19699 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
19700 (cgraph_clone_node): initialize used_from_object_file.
19701 (cgraph_create_virtual_clone): initialize used_from_object_file.
19702 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
19703 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
19704 when compiling with -fwhole-program.
19705 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
19706 internal resolver.
19707 * ipa.c (function_and_variable_visibility): Set externally_visible
19708 flag of varpool_node if used_from_object_file flag is set.
19709 (cgraph_externally_visible_p): check used_from_object_file flag.
19710 * doc/invoke.texi (-fwhole-program option): Change description of
19711 externally_visible attribute accordingly.
19712 * doc/extend.texi (externally_visible): Ditto.
19713
19714 2010-06-27 Jan Hubicka <jh@suse.cz>
19715
19716 * params.def (max-inline-insns-auto): Default to 40.
19717 * doc/invoke.texi (max-inline-insns-auto): Document the change.
19718
19719 2010-06-27 Jan Hubicka <jh@suse.cz>
19720
19721 PR middle-end/44671
19722 PR middle-end/44686
19723 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
19724 signature change.
19725 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
19726 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
19727
19728 2010-06-27 Anatoly Sokolov <aesok@post.ru>
19729
19730 * target.h (struct gcc_target): Add register_move_cost field.
19731 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
19732 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
19733 * targhooks.c (default_register_move_cost): New function.
19734 * targhooks.h (default_register_move_cost): Declare function.
19735 * defaults.h (REGISTER_MOVE_COST): Delete.
19736 * ira-int.h (ira_register_move_cost): Update comment.
19737 * ira.c (ira_register_move_cost): Update comment.
19738 * reload.h (register_move_cost): Declare.
19739 * reginfo.c (register_move_cost): New function.
19740 (move_cost): Update comment.
19741 (init_move_cost, memory_move_secondary_cost): Replace
19742 REGISTER_MOVE_COST with register_move_cost.
19743 * postreload.c (reload_cse_simplify_set): (Ditto.).
19744 * reload.c (find_valid_class, find_reloads): (Ditto.).
19745 * reload1.c (choose_reload_regs): (Ditto.).
19746 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
19747 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
19748 * doc/md.texi (can_create_pseudo_p): Update documentation.
19749
19750 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19751 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19752 * config/i386/i386.h (ix86_memory_move_cost): Make static.
19753 (TARGET_MEMORY_MOVE_COST): Define.
19754
19755 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19756 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
19757 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
19758 (TARGET_MEMORY_MOVE_COST): Define.
19759
19760 2010-06-27 Richard Guenther <rguenther@suse.de>
19761
19762 PR tree-optimization/44683
19763 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
19764 false edge from the inverted condition.
19765
19766 2010-06-27 Richard Guenther <rguenther@suse.de>
19767
19768 PR middle-end/44684
19769 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
19770 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
19771 for register LHS. Or non-store assignments.
19772
19773 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
19774
19775 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
19776 (sparc_emit_set_const64): Likewise. Remove disabled code.
19777 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
19778 (sparc_emit_set_const64): Likewise.
19779
19780 2010-06-26 Catherine Moore <clm@codesourcery.com>
19781
19782 * config/mips/mips.md (alu_type): New attribute.
19783 (type): Infer type from alu_type.
19784 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
19785 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
19786 *subsi3_extended, negsi2, negdi2, *low<mode>,
19787 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
19788 xor<mode>3, *nor<mode>3,
19789 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
19790 *zero_extendhi_truncqi): Set alu_type instead of type.
19791
19792 2010-06-26 Douglas B Rupp <rupp@gnat.com>
19793
19794 * config/alpha/alpha.c (alpha_need_linkage): Adjust
19795 splay_tree_new_ggc call.
19796 (alpha_use_linkage): Likewise.
19797
19798 2010-06-26 Joseph Myers <joseph@codesourcery.com>
19799
19800 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
19801 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
19802 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
19803 (static_specs): Remove switches_need_spaces.
19804 (process_command, do_self_spec): Hardcode handling "-o" instead of
19805 checking switches_need_spaces.
19806 * system.h (SWITCHES_NEED_SPACES): Poison.
19807
19808 2010-06-26 Richard Guenther <rguenther@suse.de>
19809
19810 PR tree-optimization/44393
19811 * tree-loop-distribution.c (generate_loops_for_partition): Fix
19812 stmt removal and VOP renaming.
19813 (generate_memset_zero): Remove redundant stmt updating.
19814 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
19815 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
19816
19817 2010-06-26 Jan Hubicka <jh@suse.cz>
19818
19819 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
19820 edges comming from header are equivalent.
19821 (visit_bb): Handle PHIs correctly.
19822 * tree-inline.c (copy_phis_for_bb): Be able to copy
19823 PHI from entry edge.
19824 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
19825
19826 2010-06-26 Richard Guenther <rguenther@suse.de>
19827
19828 PR middle-end/44674
19829 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
19830 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
19831
19832 2010-06-26 Joseph Myers <joseph@codesourcery.com>
19833
19834 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
19835 add_infile, alloc_switch): New.
19836 (process_command): Remove variable lang_n_infiles. Process
19837 options in a single pass. Use new functions for allocating
19838 infiles and switches arrays. Properly skip operands of
19839 -Xpreprocessor and -Xassembler.
19840
19841 2010-06-26 Jan Hubicka <jh@suse.cz>
19842
19843 PR middle-end/44671
19844 * cgraphunit.c (cgraph_function_versioning): Remove wrong
19845 cgraph_make_decl_local call; fix typo copying RTL data.
19846
19847 2010-06-25 DJ Delorie <dj@redhat.com>
19848
19849 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
19850 (m32c_output_aligned_common): Likewise.
19851 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19852 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
19853 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
19854 (m32c_register_pragmas): Register it.
19855 * config/m32c/m32c.c (m32c_get_pragma_address): New.
19856 (m32c_insert_attributes): Set #pragma address decls volatile.
19857 (pragma_entry_eq): New.
19858 (pragma_entry_hash): New.
19859 (m32c_note_pragma_address): New.
19860 (m32c_get_pragma_address): New.
19861 (m32c_output_aligned_common): New.
19862 * doc/extend.texi: Document the new pragma.
19863
19864 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
19865 also.
19866 * config/m32c/predicates.md (m32c_any_operand): Check the code
19867 instead of memory_operand so as to allow matching volatile MEMs.
19868 (m32c_nonimmediate_operand): Likewise.
19869 (mra_operand): Allow volatiles.
19870
19871 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
19872
19873 PR debug/44610
19874 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
19875 address if the offset is unknown.
19876
19877 2010-06-25 Douglas B Rupp <rupp@gnat.com>
19878
19879 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
19880 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
19881 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
19882 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
19883 to ia64_start_function. Invoke it.
19884 * config/ia64/ia64.c (ia64_start_function): Call new function
19885 dwarf2out_vms_debug_main_pointer.
19886
19887 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
19888
19889 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
19890 statements computing the true predicate.
19891
19892 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
19893
19894 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
19895 to boolean_true_node.
19896 (reset_bb_predicate): New.
19897 (predicate_bbs): Call reset_bb_predicate.
19898
19899 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
19900
19901 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
19902 (tree_if_conversion): Returns true when something has been changed.
19903 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
19904 changed something.
19905
19906 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
19907
19908 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
19909 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
19910 * tree-if-conv.c: Include dbgcnt.h.
19911 (tree_if_conversion): Use if_conversion_tree to count the number of
19912 if-convertible loops.
19913
19914 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
19915
19916 * common.opt (fprefetch-loop-arrays): Re-define
19917 -fprefetch-loop-arrays as a tri-state option with the initial
19918 value of -1.
19919 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
19920 pass only when flag_prefetch_loop_arrays > 0.
19921 * toplev.c (process_options): Note that, with tri-states,
19922 flag_prefetch_loop_arrays>0 means prefetching is enabled.
19923 * config/i386/i386.c (override_options): Enable prefetching at -O3
19924 for a set of CPUs that sw prefetching is helpful.
19925 (software_prefetching_beneficial_p): New. Return TRUE if software
19926 prefetching is beneficial for the given CPU.
19927
19928 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
19929
19930 PR rtl-optimization/44326
19931 * implicit-zee.c (find_removable_zero_extends): Replace
19932 INSN_P with NONDEBUG_INSN_P.
19933
19934 2010-06-25 Martin Jambor <mjambor@suse.cz>
19935
19936 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
19937 (struct ipa_node_params): Removed the modification_analysis_done flag.
19938 (ipa_is_param_modified): Removed.
19939 (ipa_analyze_node): Declare.
19940 (ipa_compute_jump_functions): Remove declaration.
19941 (ipa_count_arguments): Likewise.
19942 (ipa_detect_param_modifications): Likewise.
19943 (ipa_analyze_params_uses): Likewise.
19944 * ipa-prop.c (struct param_analysis_info): New type.
19945 (visit_store_addr_for_mod_analysis): Removed.
19946 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
19947 moved down in the file.
19948 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
19949 (ipa_count_arguments): Made static.
19950 (mark_modified): New function.
19951 (is_parm_modified_before_call): New function.
19952 (compute_pass_through_member_ptrs): New parameter parms_info, call
19953 is_parm_modified_before_call instead of ipa_is_param_modified.
19954 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
19955 it to compute_pass_through_member_ptrs.
19956 (ipa_compute_jump_functions): New parameter parms_info, pass it to
19957 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
19958 on the callee if it is analyzed. Made static.
19959 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
19960 is_parm_modified_before_call instead of ipa_is_param_modified.
19961 (ipa_analyze_call_uses): New parameter parms_info, pass it to
19962 ipa_analyze_indirect_call_uses.
19963 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
19964 ipa_analyze_call_uses.
19965 (ipa_analyze_params_uses): New parameter parms_info, pass it to
19966 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
19967 (ipa_analyze_node): New function.
19968 (ipa_print_node_params): Do not dump the modified flag.
19969 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
19970 it. Do not stream the modified parameter flag.
19971 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
19972 it. Do not stream the modified parameter flag.
19973 * ipa-cp.c (ipcp_analyze_node): Removed.
19974 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
19975 with only a call to ipa_analyze_node.
19976 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
19977 node with only a call to ipa_analyze_node.
19978
19979 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
19980
19981 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
19982
19983 2010-06-25 Jan Hubicka <jh@suse.cz>
19984
19985 * tree-pass.h (pass_split_functions): Declare.
19986 * opts.c (decode_options): Enable function splitting at -O2
19987 * timevar.def (TV_IPA_FNSPLIT): New macro.
19988 * ipa-split.c: New file.
19989 * common.opt (-fpartial-inlining): New flag.
19990 * Makefile.in (ipa-split.o): New object file.
19991 * passes.c (init_optimization_passes): Add ipa-split.
19992 * params.def (partial-inlining-entry-probability): New parameters.
19993 * doc/invoke.texi (-fpartial-inlining): New.
19994
19995 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
19996
19997 PR 44665
19998 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
19999 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
20000 (gimplify_expr): Likewise.
20001
20002 2010-06-25 Martin Jambor <mjambor@suse.cz>
20003
20004 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
20005 statements instead of bailing out on them.
20006 (ipa_analyze_indirect_call_uses): Do not require that loads from the
20007 parameter are in the same BB as the condition. Update comments.
20008
20009 2010-06-25 Jakub Jelinek <jakub@redhat.com>
20010
20011 PR middle-end/43866
20012 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
20013 true or always false, return NULL_TREE.
20014 (tree_unswitch_single_loop): Optimize conditions even when reaching
20015 max-unswitch-level parameter. If num > 0, optimize first all conditions
20016 using entry checks, then do still reachable block discovery and consider
20017 only conditions in still reachable basic blocks in the loop.
20018
20019 PR tree-optimization/44539
20020 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
20021 the call doesn't have LHS, but has VDEF.
20022
20023 2010-06-25 Joseph Myers <joseph@codesourcery.com>
20024
20025 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
20026 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
20027 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
20028 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
20029 * system.h (MODIFY_TARGET_NAME): Poison.
20030
20031 2010-06-25 Alan Modra <amodra@gmail.com>
20032
20033 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
20034 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
20035 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
20036 CMODEL_LARGE as default.
20037 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
20038 (offsettable_ok_by_alignment): Delete.
20039 (rs6000_emit_move): Remove mcmodel=medium optimization.
20040
20041 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
20042
20043 With large parts from Jim Wilson:
20044 PR target/43902
20045 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
20046 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20047 * optabs.c (optab_for_tree_code): Likewise.
20048 (expand_widen_pattern_expr): Likewise.
20049 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
20050 out of execute_optimize_widening_mul.
20051 (convert_plusminus_to_widen): New function.
20052 (execute_optimize_widening_mul): Use the two new functions.
20053 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
20054 Remove code to generate widening multiply-accumulate. Add support
20055 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
20056 * gimple-pretty-print.c (dump_ternary_rhs): New function.
20057 (dump_gimple_assign): Call it when appropriate.
20058 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
20059 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
20060 (expand_gimple_stmt_1): Likewise.
20061 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
20062 WIDEN_MULT_MINUS_EXPR.
20063 * tree-ssa-operands.c (get_expr_operands): Likewise.
20064 * tree-inline.c (estimate_operator_cost): Likewise.
20065 * gimple.c (extract_ops_from_tree_1): Renamed from
20066 extract_ops_from_tree. Add new arg for a third operand; fill it.
20067 (gimple_build_assign_stat): Support operations with three operands.
20068 (gimple_build_assign_with_ops_stat): Likewise.
20069 (gimple_assign_set_rhs_from_tree): Likewise.
20070 (gimple_assign_set_rhs_with_ops_1): Renamed from
20071 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
20072 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
20073 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
20074 WIDEN_MULT_MINUS_EXPR.
20075 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
20076 (extract_ops_from_tree_1): Adjust declaration.
20077 (gimple_assign_set_rhs_with_ops_1): Likewise.
20078 (gimple_build_assign_with_ops): Pass NULL for last operand.
20079 (gimple_build_assign_with_ops3): New macro.
20080 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
20081 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
20082 functions.
20083 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
20084 (verify_gimple_assign): Call it.
20085 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
20086 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
20087 functions for dealing with three-operand statements.
20088 * tree.c (commutative_ternary_tree_code): New function.
20089 * tree.h (commutative_ternary_tree_code): Declare it.
20090 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
20091 ternary statements.
20092 (gimple_assign_nonzero_warnv_p): Likewise.
20093 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
20094 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
20095 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
20096 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
20097 (struct hashtable_expr): New member ternary in the union.
20098 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
20099 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
20100 (iterative_hash_hashable_expr): Likewise.
20101 (print_expr_hash_elt): Handle EXPR_TERNARY.
20102 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
20103 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
20104 statements. Handle GIMPLE_TERNARY_RHS.
20105
20106 2010-06-25 Jan Hubicka <jh@suse.cz>
20107
20108 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
20109
20110 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
20111
20112 PR c/44517
20113 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
20114 parameters are not good.
20115 (c_parser_parameter_declaration): Error unknown type name if the type
20116 name can't start declaration specifiers.
20117
20118 2010-06-25 Joseph Myers <joseph@codesourcery.com>
20119
20120 * gcc.c (translate_options): Don't mention +e in comment.
20121 (process_command): Don't handle +e specially.
20122
20123 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
20124
20125 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
20126
20127 * ira-build.c (merge_hard_reg_conflicts): New function.
20128 (create_cap_allocno, copy_info_to_removed_store_destinations,
20129 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
20130 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
20131 (remove_unnecessary_allocnos, remove_low_level_allocnos)
20132 copy_nifo_to_removed_store_destination): Use them.
20133 * ira-lives.c (make_hard_regno_born): New function, split out of
20134 make_regno_born.
20135 (make_allocno_born): Likewise.
20136 (make_hard_regno_dead): New function, split out of make_regno_dead.
20137 (make_allocno_dead): Likewise.
20138 (inc_register_pressure): New function, split out of set_allocno_live.
20139 (dec_register_pressure): New function, split out of clear_allocno_live.
20140 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
20141 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
20142 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
20143 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
20144 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
20145 mark_pseudo_regno_live.
20146 (process_bb_node_lives): Use mark_pseudo_regno_live,
20147 make_hard_regno_born and make_allocno_dead.
20148 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
20149 set_allocno_live, clear_allocno_live): Delete functions.
20150
20151 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
20152 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
20153 functions.
20154 (ira_flattening): Use ira_parent_allocno.
20155 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
20156 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
20157
20158 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
20159 statement.
20160
20161 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
20162 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
20163 minmax_set_iter_cond, minmax_set_iter_next,
20164 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
20165 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
20166 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
20167 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
20168 uses changed.
20169
20170 * ira-int.h (struct live_range, live_range_t): Renamed from struct
20171 ira_allocno_live_range and allocno_live_range_t; all uses changed.
20172 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
20173 All uses changed.
20174
20175 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
20176
20177 * thumb2.md (thumb2_tlobits_cbranch): Delete.
20178 (peephole2 to convert zero_extract/compare of single bit to
20179 lshift/compare): New.
20180
20181 2010-06-24 Anatoly Sokolov <aesok@post.ru>
20182
20183 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
20184 recursive call and call to 'int_const_binop'.
20185 (build_range_check, fold_cond_expr_with_comparison, unextend,
20186 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
20187 multiple_of_p): Adjust call to const_binop.
20188
20189 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
20190
20191 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
20192 determine size of XFmode operand.
20193 (XFmode extended DFmode push splitter): Ditto.
20194 (XFmode extended SFmode push splitter): Ditto.
20195
20196 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
20197
20198 PR target/44588
20199 * config/i386/i386.md (extract_code): New.
20200 (<u>divmodqi4): Likewise.
20201 (divmodhiqi3): Likewise.
20202 (udivmodhiqi3): Likewise.
20203 (<u>divqi3): Remvoved.
20204
20205 2010-06-24 Jakub Jelinek <jakub@redhat.com>
20206
20207 PR middle-end/44492
20208 * recog.h (struct recog_data): Add is_asm field.
20209 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
20210 present in constraints of inline-asm operand and memory operand
20211 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
20212 (extract_insn): Initialize recog_data.is_asm.
20213 * doc/md.texi (Constraints): Document operand side-effect rules.
20214
20215 2010-06-24 Andi Kleen <ak@linux.intel.com>
20216
20217 * c-parser.c (c_parser_conditional_expression): Call
20218 warn_for_omitted_condop.
20219 * doc/invoke.texi: Document omitted condop warning.
20220
20221 2010-06-24 Nick Clifton<nickc@redhat.com>
20222
20223 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
20224 insn in the sequence is a jump insn before setting its label.
20225
20226 2010-06-24 Alan Modra <amodra@gmail.com>
20227
20228 * collect2.c (main): Match exactly --version and --help.
20229
20230 2010-06-24 DJ Delorie <dj@redhat.com>
20231
20232 * config/m32c/m32c-pragma.c: Don't include rtl.h.
20233
20234 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
20235
20236 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
20237 using X87MODEF mode iterator.
20238 (pushsf splitter): Macroize splitter using P mode iterator.
20239 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
20240 mode iterator.
20241
20242 (*movxf_internal): Rename from *movxf_integer.
20243 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
20244 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
20245 (*movdf_internal): Rename from *movdf_integer.
20246 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
20247 (*movsf_internal): Rename from *movdf_1.
20248
20249 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
20250
20251 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
20252 (const_gimple_seq_node): Removed typedefs.
20253
20254 * gimple.h (gimple_seq_node_d, gimple_seq_node)
20255 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
20256
20257 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
20258
20259 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
20260 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
20261 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
20262 and CODE_FOR_vec_extract_lo_v4df.
20263
20264 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
20265 Changed to define_insn_and_split.
20266 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
20267 (vec_extract_lo_v16hi): Likewise.
20268 (vec_extract_lo_v32qi): Likewise.
20269 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
20270 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
20271
20272 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
20273
20274 PR target/44640
20275 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
20276 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
20277 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
20278 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
20279 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
20280
20281 PR target/44640
20282 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
20283
20284 PR other/44644
20285 * df-core.c (struct df): Rename to df_d.
20286 * df.h (struct df): Likewise.
20287 * dse.h (struct df): Remove forward declaration.
20288 * recog.h (struct insn_data): Rename to:
20289 (struct_insn_data_d). Adjusted all users.
20290
20291 2010-06-23 Arnaud Charlet <charlet@adacore.com
20292
20293 PR ada/22220
20294 * doc/install.texi: Update requirements to build GNAT.
20295
20296 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
20297
20298 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
20299 enum type.
20300 (m68k_sched_attr_opx_type): Remove unreachable return.
20301 (m68k_sched_attr_opy_type): Likewise.
20302 (m68k_sched_attr_size): Likewise.
20303 (sched_get_opxy_mem_type): Likewise.
20304 (m68k_sched_attr_op_mem): Likewise.
20305
20306 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
20307
20308 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
20309 new statement and adjust VDEF only if necessary. Remove superfluous
20310 call to maybe_clean_or_replace_eh_stmt.
20311 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
20312 copy the flags.
20313 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
20314 * tree-inline.c (copy_bb): ...and not there.
20315
20316 2010-06-22 Cary Coutant <ccoutant@google.com>
20317
20318 * dwarf2out.c (is_nested_in_subprogram): New function.
20319 (should_move_die_to_comdat): Use it.
20320 (copy_ancestor_tree): Don't mark DIEs here.
20321 (copy_decls_walk): Start walk from root of newly-added tree;
20322 mark DIEs here instead.
20323
20324 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
20325
20326 * config/i386/i386.md (unit): Also check sseishft1.
20327
20328 2010-06-22 Jan Hubicka <jh@suse.cz>
20329
20330 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
20331 enabled.
20332
20333 2010-06-22 Jan Hubicka <jh@suse.cz>
20334
20335 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
20336 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
20337 Return true if something changed.
20338 * df.h (df_confluence_function_n): Return bool.
20339 * df-core.c (df_worklist_propagate_forward,
20340 df_worklist_propagate_backward): Track changes and ages.
20341 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
20342 track ages.
20343 * dse.c (dse_confluence_n): Return always true.
20344
20345 2010-06-22 Jan Hubicka <jh@suse.cz>
20346
20347 * bitmap.c (bitmap_clear_bit): Micro optimize.
20348
20349 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
20350
20351 * config/i386/i386.md (SWI1248x): New mode iterator.
20352 (SWI48x): Ditto.
20353 (SWI12): Ditto.
20354 (SWI24): Ditto.
20355
20356 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
20357 SWI1248x mode iterator.
20358 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
20359 using SWI124 mode iterator.
20360 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
20361 mode iterator.
20362 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
20363 *pushdi2_prologue_rex64 using P mode iterator.
20364 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
20365 using SWI48 mode iterator.
20366 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
20367 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
20368 using SWI1248x mode iterator.
20369 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
20370 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
20371 SWI48 mode iterator.
20372 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
20373 iterator.
20374 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
20375 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
20376 SWI12 mode iterator.
20377 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
20378 SWI12 mode iterator.
20379 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
20380 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
20381 SWI24 mode iterator.
20382 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
20383 SWI48 mode iterator.
20384 (mov<mode>_insn_1): New expander.
20385 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
20386 using SWI48x mode iterator.
20387
20388 (*movoi_internal_avx): Rename from *movoi_internal.
20389 (*movti_internal_rex64): Rename from *movti_rex64.
20390 (*movti_internal_sse): Rename from *movti_sse.
20391 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
20392 (*movdi_internal): Rename from *movdi_2.
20393 (*movsi_internal): Rename from *movsi_1.
20394 (*movhi_internal): Rename from *movhi_1.
20395 (*movqi_internal): Rename from *movqi_1.
20396
20397 (insv): Update the call to gen_movsi_insv_1 for rename.
20398 * config/i386/i386.c (promote_duplicated_reg): Ditto.
20399
20400 2010-06-22 Jan Hubicka <jh@suse.cz>
20401
20402 * passes.c (execute_function_todo): Move call of statistics_fini_pass
20403 to ...
20404 (execute_todo) ... this one.
20405
20406 2010-06-22 Alan Modra <amodra@gmail.com>
20407
20408 PR target/44364
20409 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
20410 * caller-save.c (insert_restore, insert_save): Use non-validate
20411 form of adjust_address.
20412
20413 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20414
20415 PR target/39690
20416 * config/pa/pa.c (override_options): Disable
20417 -freorder-blocks-and-partition.
20418
20419 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
20420
20421 PR target/44615
20422 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
20423
20424 * config/i386/i386.md (type): Add sseishft1
20425
20426 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
20427 (ppro_insn_load): Likewise.
20428 (ppro_insn_store): Likewise.
20429 (ppro_insn_both): Likewise.
20430
20431 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
20432 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
20433 for type.
20434 (*vec_extractv2di_1_avx): Likewise.
20435 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
20436 type. Remove atom_unit.
20437 (*vec_extractv2di_1_sse2): Likewise.
20438
20439 2010-06-21 DJ Delorie <dj@redhat.com>
20440
20441 * diagnostic.h (diagnostic_classification_change_t): New.
20442 (diagnostic_context): Add history and push/pop list.
20443 (diagnostic_push_diagnostics): Declare.
20444 (diagnostic_pop_diagnostics): Declare.
20445 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
20446 from pragmas in a history chain instead of the global table.
20447 (diagnostic_push_diagnostics): New.
20448 (diagnostic_pop_diagnostics): New.
20449 (diagnostic_report_diagnostic): Scan history chain to find state
20450 of diagnostics as of the diagnostic location.
20451 * opts.c (set_option): Pass UNKNOWN_LOCATION to
20452 diagnostic_classify_diagnostic.
20453 (enable_warning_as_error): Likewise.
20454 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
20455 use in the history chain.
20456 * doc/extend.texi: Document pragma GCC diagnostic changes.
20457
20458 2010-06-21 Jakub Jelinek <jakub@redhat.com>
20459
20460 * dwarf2out.c (add_linkage_name): New function. Don't add
20461 anything to DW_TAG_member DIEs.
20462 (add_name_and_src_coords_attributes): Use it.
20463 (gen_variable_die): Call it for C++ static data members if
20464 specification is DW_TAG_member.
20465
20466 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
20467 C++ char16_t and char32_t.
20468
20469 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
20470 * genattrtab.c: Include vecprim.h.
20471 (cached_attrs, cached_attr_count, attrs_seen_once,
20472 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
20473 attrs_cached_after): New variables.
20474 (find_attrs_to_cache): New function.
20475 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
20476 (write_test_expr): Add attrs_cached argument, return it too,
20477 attempt to cache non-const attributes used more than once in
20478 a single case handling.
20479 (write_attr_get): Use find_attrs_to_cache, for caching candidates
20480 emit cached_* variables. Adjust write_attr_set callers.
20481 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
20482 to find attributes that should be cached in this block. Adjust
20483 write_test_expr callers.
20484 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
20485 callers.
20486 (make_automaton_attrs): Adjust write_test_expr caller.
20487
20488 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
20489 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
20490 (make_automaton_attrs): If find_tune_attr returns non-NULL,
20491 write separate internal_dfa_insn_code_* and insn_default_latency_*
20492 functions for each attribute's value and emit init_sched_attrs
20493 function and function pointers.
20494 * genattr.c (const_attrs, reservations): New variables.
20495 (gen_attr): Add const attributes to const_attrs vector.
20496 (check_tune_attr, find_tune_attr): New functions.
20497 (main): Add reservations to reservations vector. If find_tune_attr
20498 returns true, add prototype for init_sched_attrs and make
20499 internal_dfa_insn_code and insn_default_latency function pointers,
20500 otherwise define init_sched_attrs as dummy macro.
20501 * cfgexpand.c: Include insn-attr.h.
20502 (gimple_expand_cfg): Call init_sched_attrs.
20503
20504 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
20505
20506 PR target/44575
20507 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
20508 va_arg from a set of register save slots into a temporary,
20509 if the container is bigger than type size, do the copying
20510 using smaller mode or using memcpy.
20511
20512 PR bootstrap/44426
20513 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
20514 prototype.
20515 (sel_print_to_dot): Remove macro.
20516 (sel_print): Likewise. New prototype.
20517 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
20518 (sel_print): New function.
20519
20520 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20521
20522 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
20523 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
20524
20525 2010-06-21 Nick Clifton <nickc@redhat.com>
20526
20527 * config/rx/rx.h (PTRDIFF_TYPE): Define.
20528 (SMALL_REGISTER_CLASS): Define (to zero).
20529 (PRINT_OPERAND): Delete.
20530 (PRINT_OPERAND_ADDRESS): Delete.
20531 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
20532 (rx_print_operand_address): Delete prototype.
20533 * config/rx/rx.c (rx_print_operand): Make static.
20534 Allow %H and %L to handle CONST_DOUBLEs.
20535 (rx_print_operand_address): Make static.
20536 (rx_gen_move_template): Rename local variable 'template' to
20537 out_template.
20538 (rx_function_arg): Do not pass unknown sized objects in registers.
20539 (TARGET_PRINT_OPERAND): Define.
20540 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20541
20542 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
20543
20544 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
20545
20546 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
20547
20548 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
20549 stack-alignment for simple leaf-functions.
20550
20551 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
20552
20553 * doc/install.texi: Document bootstrap-lto.
20554
20555 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
20556
20557 PR debug/44248
20558 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
20559 (input_function): Drop them here, if VTA is disabled.
20560
20561 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
20562
20563 PR target/44546
20564 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
20565 New predicate.
20566 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
20567 ix86_swapped_fp_comparsion_operator instead of
20568 ix86_fp_comparison_operator.
20569
20570 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
20571 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
20572 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
20573 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
20574 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
20575 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
20576
20577 2010-06-20 Joseph Myers <joseph@codesourcery.com>
20578
20579 PR other/32998
20580 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
20581 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
20582 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
20583 (decode_cmdline_option): Update for this return value. Set
20584 orig_option_with_args_text field. Set arg field for unknown
20585 options. Make static.
20586 (decode_cmdline_options_to_array): New.
20587 (prune_options): Update handling of find_opt return value.
20588 * opts.c (read_cmdline_option): Take decoded option. Return void.
20589 (read_cmdline_options): Take decoded options.
20590 (decode_options): Add parameters for decoded options. Use
20591 decode_cmdline_options_to_array. Use decoded options for -O
20592 scan. Use integral_argument for -O parameters. Update call to
20593 read_cmdline_options.
20594 (enable_warning_as_error): Update handling of find_opt return value.
20595 * opts.h: Update comment on unknown options.
20596 (struct cl_decoded_option): Update comments on opt_index and arg.
20597 Add orig_option_with_args_text.
20598 (decode_cmdline_option): Remove.
20599 (decode_cmdline_options_to_array): Declare.
20600 (decode_options): Update prototype.
20601 * toplev.c (save_argv): Remove.
20602 (save_decoded_options, save_decoded_options_count): New.
20603 (read_integral_parameter): Remove.
20604 (print_switch_values): Use decoded options.
20605 (toplev_main): Don't set save_argv. Update call to decode_options.
20606 * toplev.h (read_integral_parameter): Remove.
20607 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
20608
20609 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
20610
20611 PR target/44072
20612 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
20613 immediate.
20614 * constraints.md (Pw, Px): New constraints.
20615 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
20616
20617 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
20618
20619 * config/i386/sse.md (fma4modesuffixf4): Removed.
20620 (ssemodesuffixf2s): Likewise.
20621 (ssemodesuffixf4): Likewise.
20622 (ssemodesuffixf2c): Likewise.
20623 (ssescalarmodesuffix2s): Likewise.
20624 (avxmodesuffixf2c): Likewise.
20625 (ssemodesuffix): New.
20626 (ssescalarmodesuffix): Likewise.
20627 Update patterns with ssemodesuffix and ssescalarmodesuffix.
20628
20629 2010-06-19 Philip Herron <herron.philip@googlemail.com>
20630
20631 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
20632
20633 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
20634
20635 * stor-layout.c (debug_rli): Remove unused local variables.
20636
20637 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
20638
20639 PR rtl-optimization/40900
20640 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
20641 original expression for later reuse.
20642 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
20643 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
20644
20645 2010-06-18 Anatoly Sokolov <aesok@post.ru>
20646
20647 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
20648 double_int_fits_in_uhwi_p): Implement as static inline.
20649 (double_int_xor): New inline function.
20650 (double_int_lrotate, double_int_rrotate, double_int_max,
20651 double_int_umax, double_int_smax, double_int_min, double_int_umin,
20652 double_int_smin): Declare.
20653 (lrotate_double, rrotate_double): Remove declaration.
20654 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
20655 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
20656 (double_int_lrotate, double_int_rrotate, double_int_max,
20657 double_int_umax, double_int_smax, double_int_min, double_int_umin,
20658 double_int_smin): New function.
20659 * fold-const.c (int_const_binop): Clean up, use double_int_*
20660 functions.
20661 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
20662 double_int_* and immed_double_int_const functions.
20663
20664 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
20665
20666 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
20667 * function.c (types_used_by_cur_var_decl): Likewise.
20668 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
20669
20670 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
20671
20672 * tree.h (record_layout_info): Change type of pending_statics field
20673 to a VEC.
20674 * stor-layout.c (start_record_layout): Store NULL into
20675 pending_statics.
20676 (debug_rli): Call debug_vec_tree instead of debug_tree.
20677 (place_field): Likewise.
20678 (finish_record_layout): Likewise.
20679
20680 2010-06-18 Alan Modra <amodra@gmail.com>
20681
20682 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
20683
20684 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20685
20686 PR target/43740
20687 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
20688 for SET source operand from SET destination operand.
20689
20690 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
20691
20692 PR rtl-optimization/39871
20693 * reload1.c (init_eliminable_invariants): For flag_pic, disable
20694 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
20695 (function_invariant_p): Rule out a plus of frame or arg pointer with
20696 a SYMBOL_REF.
20697 * ira.c (find_reg_equiv_invariant_const): Likewise.
20698
20699 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
20700
20701 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
20702 print_operand_address and puts to output the operand for CONST.
20703
20704 2010-06-17 Jakub Jelinek <jakub@redhat.com>
20705
20706 PR debug/44572
20707 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
20708 hook.
20709
20710 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20711
20712 * v850-protos.h (print_operand): Delete.
20713 (print_operand_address): Delete.
20714 * v850.h (PRINT_OPERAND): Delete.
20715 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20716 (PRINT_OPERAND_ADDRESS): Delete.
20717 * v850.c (print_operand_address): Rename to...
20718 (v850_print_operand_address): ...this. Make static. Call
20719 v850_print_operand.
20720 (print_operand): Rename to...
20721 (v850_print_operand): ...this. Make static. Call
20722 v850_print_operand_address.
20723 (v850_print_operand_punct_valid_p): New function.
20724 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20725 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20726
20727 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20728
20729 * config/sh/sh-protos.h (print_operand): Delete.
20730 (print_operand_address): Delete.
20731 * config/sh/sh.h (PRINT_OPERAND): Delete.
20732 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20733 (PRINT_OPERAND_ADDRESS): Delete.
20734 * config/sh/sh.c (sh_print_operand_address): Make static.
20735 (sh_print_operand): Make static. Call sh_print_operand_address
20736 and sh_print_operand.
20737 (sh_print_operand_punct_valid_p): New function.
20738 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20739 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20740
20741 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20742
20743 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
20744 (mcore_print_operand_address): Delete.
20745 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
20746 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20747 (PRINT_OPERAND_ADDRESS): Delete.
20748 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
20749 (mcore_print_operand): Make static.
20750 (mcore_print_operand_punct_valid_p): New function.
20751 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
20752 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20753
20754 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20755
20756 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
20757 (print_operand_address): Delete.
20758 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
20759 (PRINT_OPERAND_ADDRESS): Delete.
20760 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
20761 static.
20762 (m68hc11_print_operand): Make static.
20763 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20764
20765 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20766
20767 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
20768 (m32r_print_operand_address): Delete.
20769 * config/m32r/m32r.h (m32r_punct_chars): Delete.
20770 (PRINT_OPERAND): Delete.
20771 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20772 (PRINT_OPERAND_ADDRESS): Delete.
20773 * config/m32r/m32r.c (m32r_punct_chars): Make static.
20774 (m32r_print_operand_address): Make static.
20775 (m32r_print_operand): Make static.
20776 (m32r_print_operand_punct_valid_p): New function.
20777 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20778 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20779
20780 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20781
20782 * config/iq2000/iq2000-protos.h (print_operand): Delete.
20783 (print_operand_address): Delete.
20784 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
20785 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20786 (PRINT_OPERAND_ADDRESS): Delete.
20787 (iq2000_print_operand_punct): Delete.
20788 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
20789 (iq2000_print_operand_address): Make static.
20790 (iq2000_print_operand): Make static.
20791 (iq2000_print_operand_punct_valid_p): New function.
20792 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20793 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20794
20795 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20796
20797 * config/frv/frv-protos.h (frv_print_operand): Delete.
20798 (frv_print_operand_address): Delete.
20799 * config/frv/frv.h (PRINT_OPERAND): Delete.
20800 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20801 (PRINT_OPERAND_ADDRESS): Delete.
20802 * config/frv/frv.c (frv_print_operand_address): Make static.
20803 (frv_print_operand): Make static.
20804 (frv_print_operand_punct_valid_p): New function.
20805 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20806 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20807
20808 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
20809
20810 * tree.h (vec_member): Declare.
20811 * tree.c (vec_member): Define.
20812
20813 2010-06-17 Richard Guenther <rguenther@suse.de>
20814
20815 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
20816 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
20817
20818 2010-06-17 Richard Guenther <rguenther@suse.de>
20819
20820 * tree-inline.c (declare_return_variable): Remove bogus code.
20821
20822 2010-06-17 Richard Guenther <rguenther@suse.de>
20823
20824 * gimplify.c (gimplify_bind_expr): Always promote complex
20825 and vector variables to registers if possible.
20826
20827 2010-06-17 Richard Guenther <rguenther@suse.de>
20828
20829 * expr.c (get_inner_reference): Use double_int for bit_offset
20830 calculation.
20831
20832 2010-06-16 DJ Delorie <dj@redhat.com>
20833
20834 * common.opt (-fstrict-volatile-bitfields): new.
20835 * doc/invoke.texi: Document it.
20836 * fold-const.c (optimize_bit_field_compare): For volatile
20837 bitfields, use the field's type to determine the mode, not the
20838 field's size.
20839 * expr.c (expand_assignment): Likewise.
20840 (get_inner_reference): Likewise.
20841 (expand_expr_real_1): Likewise.
20842 * expmed.c (store_fixed_bit_field): Likewise.
20843 (extract_bit_field_1): Likewise.
20844 (extract_fixed_bit_field): Likewise.
20845
20846 2010-06-16 Richard Guenther <rguenther@suse.de>
20847
20848 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
20849
20850 2010-06-16 Douglas B Rupp <rupp@gnat.com>
20851
20852 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
20853 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
20854 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
20855 * debug.c: Likewise.
20856 * sdbout.c: Likewise.
20857 * vmsdbgout.c: Likewise.
20858 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
20859 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
20860 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
20861 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
20862 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
20863 * dwarf2out.c (dw_fde_struct): New fields
20864 dw_fde_vms_{end,begin}_prologue.
20865 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
20866 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
20867 (dwarf2out_vms_end_prologue): New function.
20868 (dwarf2out_vms_begin_epilogue): New function.
20869 (dw_val_struct): New value dw_val_class_vms_delta.
20870 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
20871 begin_epilogue for VMS.
20872 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
20873 new static functions.
20874 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
20875 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
20876 static functions.
20877 (print_die): New case dw_val_class_vms_delta.
20878 (attr_checksum): Likewise.
20879 (same_dw_val_p: Likewise.
20880 (size_of_die): Likewise.
20881 (value_format): Likewise.
20882 (output_die): Likewise.
20883 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
20884 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
20885 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
20886 dwarf2out_cfi_begin_epilogue
20887 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
20888
20889 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
20890
20891 * config/cris/cris-protos.h (cris_print_operand): Delete.
20892 (cris_print_operand_address): Delete.
20893 * config/cris/cris.h (PRINT_OPERAND): Delete.
20894 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20895 (PRINT_OPERAND_ADDRESS): Delete.
20896 * config/cris/cris.c (cris_print_operand_address): Make static.
20897 (cris_print_operand): Make static.
20898 (cris_print_operand_punct_valid_p): New function.
20899 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20900 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20901
20902 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
20903
20904 * config/arm/arm-protos.h (arm_print_operand): Delete.
20905 (arm_print_operand_address): Delete.
20906 * config/arm/arm.h (PRINT_OPERAND): Delete.
20907 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20908 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
20909 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
20910 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
20911 (arm_print_operand): Make static.
20912 (arm_print_operand_punct_valid_p): New function.
20913 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20914 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20915
20916 2010-06-16 Nick Clifton <nickc@redhat.com>
20917
20918 * config/rx/constraints.md (NEGint4): New constraint.
20919 * config/rx/rx.md (attr cc): Add set_zsc.
20920 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
20921 initialised.
20922 (cmpsf): Likewise.
20923 (call_internal): Clobber the cc0 register.
20924 (call_value_internal): Likewise.
20925 (cstoresi4): Likewise.
20926 (movsieq): Likewise.
20927 (movsine): Likewise.
20928 (addsi3): Add alternative to handle small negative constants.
20929 (sunsi3): Likewise.
20930 (addsi3): Do not set the O bit in the cc0 register.
20931 (adddi3): Likewise.
20932 (subsi3): Likewise.
20933 (subdi3): Likewise.
20934 (andsi3): Reorder alternatives to prefer shorter forms.
20935 (mulsi3): Likewise.
20936 (iorsi3): Likewise.
20937 (negsi2): Note that the cc0 flags are set.
20938 (rotlsi3): Note that only the Z and S bits are set in cc0.
20939 (lshrsi3): Likewise.
20940 (ashlsi3): Likewise.
20941 (subsf3): Use %Q for the MEM operand.
20942 (fix_truncsfsi2): Likewise.
20943 (floatsisf2): Likewise.
20944 (bitset): Remove early clobber from destination.
20945 (bitset_in_memory): Likewise.
20946 (lrintsf2): Clobber the cc0 register.
20947 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
20948 (rx_print_operand): Handle %N.
20949
20950 2010-06-16 Jan Hubicka <jh@suse.cz>
20951
20952 * df-core.c (df_compact_blocks): Free problem_temps vector.
20953
20954 2010-06-16 Martin Jambor <mjambor@suse.cz>
20955
20956 PR tree-optimization/43905
20957 * tree-sra.c: Include tree-inline.h.
20958 (create_abstract_origin): Removed.
20959 (modify_function): Version the call graph node instead of creating
20960 abstract origins and dealing with same_body aliases.
20961 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
20962 function is versionable.
20963 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
20964
20965 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
20966
20967 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
20968 (CHOOSE_DYNAMIC_LINKER): Update.
20969
20970 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
20971
20972 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
20973 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
20974 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
20975 *prefetch_3dnow_rex.
20976
20977 2010-06-15 Anatoly Sokolov <aesok@post.ru>
20978
20979 * target.h (struct asm_out):Add declare_constant_name field.
20980 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20981 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
20982 * output.h (default_asm_declare_constant_name): Declare.
20983 (assemble_label): Update prototype.
20984 * varasm.c (assemble_constant_contents): Use
20985 targetm.asm_out.declare_constant_name target hook.
20986 (assemble_label): Add 'file' argument.
20987 (default_asm_declare_constant_name): New function.
20988 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
20989 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
20990 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
20991
20992 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
20993 * config/darwin.c (darwin_asm_declare_constant_name): New function.
20994 (machopic_output_indirection): Update assemble_label argument list.
20995 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
20996 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20997
20998 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
20999
21000 PR middle-end/44391
21001 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21002 size_one_node for pointer types. Do not call gmp_cst_to_tree.
21003
21004 2010-06-15 Richard Guenther <rguenther@suse.de>
21005
21006 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
21007
21008 2010-06-15 Paul Brook <paul@codesourcery.com>
21009
21010 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
21011 hard-float ABI.
21012
21013 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
21014
21015 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
21016 don't get a vector type for output.
21017
21018 2010-06-15 Jakub Jelinek <jakub@redhat.com>
21019
21020 PR fortran/44536
21021 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
21022 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
21023 (LANG_HOOKS_DECLS): Add it.
21024 * gimplify.c (omp_notice_variable): Call
21025 lang_hooks.decls.omp_report_decl.
21026
21027 2010-06-15 Martin Jambor <mjambor@suse.cz>
21028
21029 PR lto/44464
21030 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
21031 on the newly dead SSA name.
21032
21033 2010-06-15 Alan Modra <amodra@gmail.com>
21034
21035 * doc/invoke.texi: Add mcmodel to powerpc options.
21036 * configure.ac: Add HAVE_LD_LARGE_TOC test.
21037 * configure: Regenerate.
21038 * config.in: Regenerate.
21039 * config/rs6000/linux64.opt (mcmodel): New.
21040 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
21041 (TARGET_CMODEL, SET_CMODEL): Define.
21042 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
21043 select CMODEL_MEDIUM default.
21044 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
21045 (TARGET_CMODEL): Define default.
21046 * config/rs6000/rs6000.c (cmodel): New variable.
21047 (rs6000_explicit_options): Add cmodel field.
21048 (rs6000_handle_option): Handle -mcmodel.
21049 (create_TOC_reference): Add largetoc_reg param. Generate high,
21050 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
21051 (rs6000_delegitimize_address): Recognise new toc reference rtl
21052 and minimal-toc rtl.
21053 (rs6000_legitimize_reload_address): Handle new toc references.
21054 (print_operand_address): Handle legitimate_constant_pool_address_p
21055 match before lo_sum.
21056 (rs6000_eliminate_indexed_memrefs): Tidy.
21057 (rs6000_emit_move): Tweak threshold for inlining constants.
21058 Keep rs6000_emit_allocate_stack large stack frame offsets
21059 loaded into r0 inline.
21060 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
21061 (tocrel_base, tocrel_offset): New variables.
21062 (toc_relative_expr_p): Set them here.
21063 (print_operand_address): Skip over any offset on constant pool address.
21064 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
21065 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
21066 (offsettable_ok_by_alignment): New function.
21067 (rs6000_emit_move): Address suitably aligned local symbol_refs
21068 relative to the toc pointer for -mcmodel=medium.
21069 (legitimate_constant_pool_address_p): Make param const_rtx. Add
21070 strict param. Allow lo_sum version of addressing. Verify reg
21071 used for -mminimal-toc and -mcmodel != small. Update all callers.
21072 * config/rs6000/constraints.md: Update for above change.
21073 * config/rs6000/predicates.md: Likewise.
21074 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
21075 code.
21076 (tls_gd): Split for -mcmodel=medium/large.
21077 (tls_gd_high, tls_gd_low): New.
21078 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
21079 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
21080 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
21081 (largetoc_high, largetoc_low): New.
21082 (cmptf_internal2): Add clobber.
21083 * config/rs6000/rs6000-protos.h: Update.
21084
21085 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
21086
21087 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
21088 true if no prefetch is going to be generated for a given group.
21089 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
21090 estimate the prefetch_count.
21091 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
21092 prefetch count by considering the unroll_factor and prefetch_mod
21093 for is_loop_prefetching_profitable.
21094
21095 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
21096
21097 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
21098 anything if the argument is not a MEM.
21099
21100 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
21101
21102 PR debug/43650
21103 PR debug/44181
21104 PR debug/44247
21105 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
21106 debug stmts.
21107 (canonicalize_loop_ivs): Likewise.
21108
21109 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
21110
21111 PR debug/43656
21112 * haifa-sched.c (setup_insn_reg_pressure_info,
21113 update_register_pressure): Reject debug insns.
21114 (ready_sort): Don't setup reg pressure for debug insns.
21115 (schedule_insn): Don't update reg pressure for debug insns.
21116
21117 2010-06-14 Richard Guenther <rguenther@suse.de>
21118
21119 * lto-streamer.c (cached_bp): Remove.
21120 (bitpack_delete): Likewise.
21121 (bitpack_create): Likewise.
21122 (bp_get_next_word): Likewise.
21123 (bp_pack_value, bp_unpack_value): Move ...
21124 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
21125 Re-implement.
21126 (struct bitpack_d): Likewise.
21127 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
21128 New inline functions.
21129 * lto-streamer-out.c (lto_output_bitpack): Remove.
21130 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
21131 (pack_value_fields): Adjust.
21132 (lto_write_tree): Likewise.
21133 (output_gimple_stmt): Likewise.
21134 (output_function): Likewise.
21135 * lto-streamer-in.c (input_gimple_stmt): Adjust.
21136 (input_function): Likewise.
21137 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
21138 (lto_input_bitpack): Remove.
21139 (lto_materialize_tree): Adjust.
21140 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
21141 * lto-cgraph.c (lto_output_edge): Adjust.
21142 (lto_output_node): Likewise.
21143 (lto_output_varpool_node): Likewise.
21144 (lto_output_ref): Likewise.
21145 (input_node): Likewise.
21146 (input_varpool_node): Likewise.
21147 (input_ref): Likewise.
21148 (input_edge): Likewise.
21149 (output_node_opt_summary): Likewise.
21150 (input_node_opt_summary): Likewise.
21151 * ipa-pure-const.c (pure_const_write_summary): Likewise.
21152 (pure_const_read_summary): Likewise.
21153 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
21154 (ipa_read_indirect_edge_info): Likewise.
21155 (ipa_write_node_info): Likewise.
21156 (ipa_read_node_info): Likewise.
21157
21158 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
21159
21160 PR target/44534
21161 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
21162 (vec_extract_lo_v16hi): Likewise.
21163 (vec_extract_lo_v32qi): Likewise.
21164
21165 2010-06-14 Jakub Jelinek <jakub@redhat.com>
21166
21167 PR bootstrap/44426
21168 * tree.h (build_call_expr): Don't define as vararg macro, instead
21169 add a prototype.
21170 * builtins.c (build_call_nofold): Remove.
21171 (expand_builtin_int_roundingfn, expand_builtin_pow,
21172 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
21173 expand_builtin_memset_args, expand_builtin_strcmp,
21174 expand_builtin_strncmp, expand_builtin_memory_chk): Use
21175 build_call_nofold_loc instead of build_call_nofold.
21176 (build_call_expr): New function.
21177
21178 PR tree-optimization/44508
21179 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
21180 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
21181 don't eliminate trivially dead stmts.
21182 * tree-vrp.c (vrp_finalize): Pass false as last argument
21183 to substitute_and_fold.
21184 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
21185 to substitute_and_fold.
21186 * tree-ssa-ccp.c (ccp_finalize): Likewise.
21187
21188 PR bootstrap/44509
21189 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
21190
21191 2010-06-14 Ira Rosen <irar@il.ibm.com>
21192
21193 PR tree-optimization/44507
21194 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
21195 to build initial vector for BIT_AND_EXPR.
21196 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
21197
21198 2010-06-14 Jakub Jelinek <jakub@redhat.com>
21199
21200 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
21201 adjust z10prop set_attr.
21202
21203 2010-06-13 Jan Hubicka <jh@suse.cz>
21204
21205 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
21206 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
21207 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
21208 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
21209 datastructure checks into checking asserts.
21210 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
21211 * tree-ssa-sccvn.c (VN_INFO): Likewise.
21212 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
21213 df_ref_create_structure): Likewise.
21214 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
21215 pool_free): Use gcc_checking_assert.
21216 * alias.c (get_alias_set): Likewise.
21217 * var-tracking.c (variable_htab_free, shared_hash_copy,
21218 canonicalize_values_mark, variable_merge_over_cur): Likewise.
21219 * lto-streamer.c (bp_unpack_value): Likewise.
21220
21221 2010-06-13 Richard Guenther <rguenther@suse.de>
21222
21223 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
21224 Do not stream but initialize TYPE_CANONICAL to NULL.
21225 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
21226 * gimple.c (gimple_types_compatible_p): Disregard
21227 TYPE_STRUCTURAL_EQUALITY_P.
21228 (gimple_register_type): Use TYPE_CANONICAL as cache.
21229 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
21230 before registering common types.
21231 * config/i386/i386.c (ix86_function_arg_boundary): Do not
21232 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
21233 * tree.h (TYPE_CANONICAL): Clarify documentation.
21234
21235 2010-06-13 Anatoly Sokolov <aesok@post.ru>
21236
21237 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21238 LIBCALL_VALUE): Remove macros.
21239 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
21240 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21241 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21242 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
21243 (ia64_function_value): Make static. Handle receiving the function
21244 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
21245
21246 2010-06-12 Jan Hubicka <jh@suse.cz>
21247
21248 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
21249 at correct place.
21250
21251 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
21252
21253 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
21254
21255 2010-06-12 Jan Hubicka <jh@suse.cz>
21256
21257 * df-core.c (df_clear_bb_info): New function.
21258 (df_set_blocks): bb_info is always allocated.
21259 (df_get_bb_info): Use block_info_elt_size.
21260 (df_set_bb_info): Likewise.
21261 (df_compact_blocks): Update for new block_info.
21262 (grow_bb_info): New function.
21263 * df-problems.c (df_grow_bb_info): Move to df-core.c
21264 (df_rd_set_bb_info): Remove.
21265 (df_rd_free_bb_info): Do not free block pool.
21266 (df_rd_alloc): Do not create pool, use check for
21267 obstack presence instead of NULL pointer for new blocks.
21268 (df_rd_free): DO not free alloc pool; clear block_info.
21269 (problem_RD): Add size of block info structure.
21270 (df_lr_set_bb_info): Remove.
21271 (df_lr_free_bb_info): Do not free block pool.
21272 (df_lr_alloc): Do not create pool, use check for
21273 obstack presence instead of NULL pointer for new blocks.
21274 (df_lr_free): DO not free alloc pool; clear block_info.
21275 (problem_LR): Add size of block info structure.
21276 (df_live_set_bb_info): Remove.
21277 (df_live_free_bb_info): Do not free block pool.
21278 (df_live_alloc): Do not create pool, use check for
21279 obstack presence instead of NULL pointer for new blocks.
21280 (df_live_free): DO not free alloc pool; clear block_info.
21281 (problem_LIVE): Add size of block info structure.
21282 (problem_CHAIN): Add size of block info structure.
21283 (df_byte_lr_set_bb_info): Remove.
21284 (df_byte_lr_free_bb_info): Do not free block pool.
21285 (df_byte_lr_alloc): Do not create pool, use check for
21286 obstack presence instead of NULL pointer for new blocks.
21287 (df_byte_lr_free): DO not free alloc pool; clear block_info.
21288 (problem_BYTE_LR): Add size of block info structure.
21289 (problem_NOTE): Add size of block info structure.
21290 (df_byte_MD_set_bb_info): Remove.
21291 (df_byte_MD_free_bb_info): Do not free block pool.
21292 (df_byte_MD_alloc): Do not create pool, use check for
21293 obstack presence instead of NULL pointer for new blocks.
21294 (df_byte_MD_free): DO not free alloc pool; clear block_info.
21295 (problem_BD): Add size of block info structure.
21296 * df-scan.c (df_scan_free_internal): Free block pool.
21297 (df_scan_set_bb_info): Remove.
21298 (df_scan_free_bb_info): Check for artificial_defs instead
21299 of bb_info being non-NULL.
21300 (df_scan_alloc): DO not create df_scan_block pool.
21301 (problem_SCAN): Set size of block info.
21302 (df_bb_refs_record): Do not allocate bb_info.
21303 * df.h (df_problem): Add block_info_elt_size.
21304 (struct dataflow): Change block_info to void *.
21305 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
21306 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
21307 in-line structures.
21308
21309 2010-06-12 Jan Hubicka <jh@suse.cz>
21310
21311 PR tree-optimize/44485
21312 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
21313 containing use of return value of noreturn function.
21314
21315 2010-06-12 Anatoly Sokolov <aesok@post.ru>
21316
21317 * targhooks.c (default_function_value): Don't use
21318 FUNCTION_OUTGOING_VALUE.
21319 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
21320 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
21321
21322 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
21323
21324 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
21325 Add crtfastmath.o to extra_parts.
21326 * config/mips/crtfastmath.c: New.
21327 * config/mips/linux.h (ENDFILE_SPEC): New.
21328
21329 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
21330
21331 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
21332 old_type in parameter.
21333 (gcc_type_for_value): Update call to gcc_type_for_interval.
21334 (compute_type_for_level_1): Renamed compute_type_for_level.
21335 Update call to gcc_type_for_interval.
21336
21337 2010-06-11 Joseph Myers <joseph@codesourcery.com>
21338
21339 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
21340 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
21341
21342 2010-06-11 Joseph Myers <joseph@codesourcery.com>
21343
21344 * opts-common.c: Include options.h.
21345 (integral_argument): Move from opts.c.
21346 (decode_cmdline_option): New. Based on read_cmdline_option.
21347 * opts.c (integral_argument): Move to opts-common.c.
21348 (read_cmdline_option): Move most contents to
21349 decode_cmdline_option. Use %qs in diagnostics.
21350 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
21351 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
21352 decode_cmdline_option): New.
21353
21354 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
21355
21356 PR target/44481
21357 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
21358 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
21359 (partiysi2_cmp): Ditto.
21360 (*partiyhi2_cmp): Ditto.
21361 (*parityqi2_cmp): Remove.
21362
21363 2010-06-11 Jan Hubicka <jh@suse.cz>
21364
21365 * bitmap.h (bmp_iter_next_bit): New.
21366 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
21367
21368 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
21369 Eric Botcazou <ebotcazou@adacore.com>
21370
21371 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
21372 computed cost.
21373
21374 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
21375
21376 * config/i386/i386.md (unspec): New define_c_enum.
21377 (unspecv): Ditto.
21378
21379 2010-06-10 Jakub Jelinek <jakub@redhat.com>
21380
21381 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
21382
21383 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
21384
21385 PR middle-end/44483
21386 * tree-if-conv.c (bb_predicate_s): New struct.
21387 (bb_predicate_p): New.
21388 (bb_has_predicate): New.
21389 (bb_predicate): New.
21390 (set_bb_predicate): New.
21391 (bb_predicate_gimplified_stmts): New.
21392 (set_bb_predicate_gimplified_stmts): New.
21393 (add_bb_predicate_gimplified_stmts): New.
21394 (init_bb_predicate): New.
21395 (free_bb_predicate): New.
21396 (is_predicated): Use bb_predicate.
21397 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
21398 (predicate_bbs): Same. Gimplify the condition of the basic blocks
21399 before processing their successors.
21400 (clean_predicate_lists): Removed.
21401 (find_phi_replacement_condition): Use bb_predicate.
21402 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
21403 computations.
21404 (insert_gimplified_predicates): New.
21405 (combine_blocks): Call insert_gimplified_predicates.
21406 (tree_if_conversion): Call free_bb_predicate instead of
21407 clean_predicate_lists.
21408
21409 2010-10-11 Paul Brook <paul@codesourcery.com>
21410
21411 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
21412 * config/arm/arm.c (all_architectures): Change v7e-m default to
21413 cortexm4.
21414 * config/arm/arm-cores.def: Add cortex-m4.
21415 * config/arm/arm-tune.md: Regenerate.
21416
21417 2010-06-11 Jan Hubicka <jh@suse.cz>
21418
21419 * ipa-pure-const.c (special_builtlin_state): New function.
21420 (check_call): Use it instead of special casign BUILT_IN_RETURN.
21421 (propagate_pure_const): Use it.
21422
21423 2010-06-11 Jan Hubicka <jh@suse.cz>
21424
21425 * df-problems.c (df_live_scratch): Convert to bitmap_head.
21426 (df_live_alloc): Initialize df_live_scratch when initializing
21427 problem_data.
21428 (df_live_transfer_function): Update uses of df_live_scratch.
21429 (df_live_free): Free problem_data; clear df_live_scratch before
21430 releasing the obstack.
21431 (df_md_free): Free problem data.
21432
21433 2010-06-11 Jan Hubicka <jh@suse.cz>
21434
21435 * doc/invoke.texi (Wsuggest-attribute): Document.
21436 (Wmissing-noreturn): Remove.
21437 * ipa-pure-const.c (warn_function_noreturn): New function.
21438 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
21439 warn_missing_noreturn.
21440 * common.opt (Wsuggest-attribute=noreturn): New.
21441 * tree-flow.h (warn_function_noreturn): Declare.
21442 * tree-cfg.c (execute_warn_function_noreturn): Use
21443 warn_function_noreturn.
21444 (gate_warn_function_noreturn): New.
21445 (pass_warn_function_noreturn): Update.
21446
21447 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
21448
21449 * c-typeck.c (handle_warn_cast_qual): Add loc
21450 parameter. Improve warning message.
21451 (build_c_cast): Pass location to handle_warn_cast_qual.
21452
21453 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
21454
21455 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
21456 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
21457 insn mnemonic.
21458 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
21459
21460 2010-06-10 Dodji Seketeli <dodji@redhat.com>
21461
21462 Fix bootstap on mips
21463 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
21464 be naming typedefs.
21465
21466 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
21467
21468 * system.h (helper_const_non_const_cast): New inline for
21469 gcc version <= 4.0.
21470 (CONST_CAST2): For gcc version <= 4.0 use
21471 new helper to do const/non-const casting.
21472
21473 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21474
21475 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
21476 * Makefile.in (OBJS-common): Include insn-enums.o.
21477 (insn-enums.o): New rule.
21478 (simple_generated_c): Add insn-enums.c.
21479 (build/genenums.o): New rule.
21480 (genprogmd): Add "enums".
21481 * genconstants.c (print_enum_type): Declare a C string array
21482 for each enum.
21483 * genenums.c: New file.
21484 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
21485 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
21486 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
21487
21488 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21489
21490 * doc/md.texi (define_enum_attr): Document.
21491 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
21492 * read-md.h (lookup_enum_type): Declare.
21493 * read-md.c (lookup_enum_type): New function.
21494 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
21495 * genattrtab.c (attr_desc): Add an enum_name field.
21496 (evaluate_eq_attr): Take the associated attribute as argument.
21497 Get the enum prefix from the enum_name field, if defined.
21498 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
21499 (simplify_test_exp): Pass attr to evaluate_eq_attr.
21500 (add_attr_value): New function, split out from...
21501 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
21502 (write_test_expr): Pass attr to evaluate_eq_attr.
21503 (write_attr_get): Use the enum_name as the enum tag, if defined.
21504 (write_attr_valueq): Use the enum_name as a prefix, if defined.
21505 (find_attr): Initialize enum_name.
21506 (main): Handle DEFINE_ENUM_ATTR.
21507 * gensupport.c (process_rtx): Likewise.
21508 * config/mips/mips.h (mips_tune_attr): Delete.
21509 * config/mips/mips.md (cpu): Use define_attr_enum.
21510
21511 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21512
21513 * doc/md.texi (define_c_enum, define_enum): Document.
21514 * read-md.h (md_constant): Add a parent_enum field.
21515 (enum_value, enum_type): New structures.
21516 (upcase_string, traverse_enum_types): Declare.
21517 * read-md.c (enum_types): New variable.
21518 (upcase_string, add_constant): New functions.
21519 (handle_constants): Don't create the hash table here.
21520 Use add_constant.
21521 (traverse_md_constants): Don't check for a null md_constants.
21522 (decimal_string, handle_enum, traverse_enum_types): New functions.
21523 (read_md_files): Initialize md_constants and md_enums.
21524 * genconstants.c (print_md_constant): Ignore info argument.
21525 Only print constants that belong to no enum.
21526 (print_enum_type): New function.
21527 (main): Don't pass stdout to print_md_constant. Call print_enum_type
21528 for each defined enum type.
21529 * config/mips/mips.md (processor): New define_enum.
21530 (unspec): New define_c_enum.
21531 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
21532 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
21533 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
21534 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
21535 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
21536 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
21537 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
21538 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
21539 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
21540 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
21541 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
21542 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
21543 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
21544 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
21545 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
21546 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
21547 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
21548 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
21549 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
21550 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
21551 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
21552 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
21553 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21554 (UNSPEC_RDDSP): Move to mips-dsp.md.
21555 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
21556 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
21557 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
21558 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
21559 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
21560 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
21561 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
21562 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
21563 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
21564 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
21565 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
21566 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
21567 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
21568 Moved to mips-dspr2.md.
21569 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
21570 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
21571 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
21572 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
21573 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
21574 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
21575 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21576 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21577 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21578 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21579 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21580 UNSPEC_LOONGSON_PSADBH)
21581 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21582 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21583 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
21584 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21585 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21586 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21587 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
21588 (cpu): Update comment.
21589 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
21590 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
21591 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
21592 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
21593 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
21594 UNSPEC_LOONGSON_PCMPEQ)
21595 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
21596 UNSPEC_LOONGSON_PINSR_0)
21597 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21598 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21599 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21600 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21601 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21602 UNSPEC_LOONGSON_PSADBH)
21603 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21604 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21605 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
21606 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21607 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21608 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21609 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
21610 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
21611 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
21612 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
21613 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
21614 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
21615 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
21616 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
21617 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
21618 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
21619 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
21620 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
21621 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
21622 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
21623 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
21624 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
21625 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
21626 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
21627 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
21628 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
21629 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21630 (UNSPEC_RDDSP): Moved from mips.md.
21631 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
21632 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
21633 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
21634 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
21635 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
21636 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
21637 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
21638 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
21639 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
21640 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
21641 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
21642 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
21643 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
21644 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
21645 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
21646 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
21647 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
21648 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
21649 (UNSPEC_SCC): Moved from mips.md.
21650 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
21651 "processor_type" to "processor".
21652 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
21653 * config/mips/mips.h (processor_type): Delete.
21654 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
21655 "processor_type" to "processor".
21656
21657 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21658
21659 * configure.ac (tm_include_list): Add insn-constants.h.
21660 * configure: Regenerate.
21661 * Makefile.in (GTM_H): Move insn-constants.h here from...
21662 (TM_H): ...here.
21663 * mkconfig.sh: Remove special handling for insn-constants.h.
21664
21665 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21666
21667 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
21668 (BUILD_MD): ...this new variable.
21669 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
21670 that include the old contents of simple_generated_h and
21671 simple_generated_c.
21672 (simple_generated_h, simple_generated_c): Include them. Add
21673 insn-constants.h.
21674 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
21675 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
21676 Remove these dependencies from the main rule and include
21677 insn-conditions.md in the command line only if it appears
21678 in the dependency list.
21679 (insn-constants.h, s-constants): Delete.
21680 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
21681 or gensupport.h.
21682 (build/genmddeps.o): Likewise.
21683 (genprogrtl): New variable that contains everything from genprogmd
21684 except mddeps and constants.
21685 (genprogmd): Redefine in terms of genprogrtl. Make these programs
21686 depend on $(BUILD_MD)
21687 (genprog): New variable. Make these programs depend on
21688 $(BUILD_ERRORS).
21689 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
21690 (main): Use read_md_files instead of init_rtx_reader_args.
21691 * genconstants.c: As for genmddeps.c.
21692 * read-md.h (read_skip_construct): Declare.
21693 * read-md.c (read_skip_construct): New function.
21694 (handle_file): Allow a null handle_directive, skipping the
21695 construct if so.
21696 (parse_include): Update the comment accordingly.
21697
21698 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21699
21700 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
21701 * genmddeps.c: Include read-md.h.
21702 (main): Call init_rtx_reader_args instead of init_md_reader_args.
21703 * genattr.c (main): Likewise.
21704 * genattrtab.c (main): Likewise.
21705 * genautomata.c (main): Likewise.
21706 * gencodes.c (main): Likewise.
21707 * genconditions.c (main): Likewise.
21708 * genconfig.c (main): Likewise.
21709 * genconstants.c (main): Likewise.
21710 * genemit.c (main): Likewise.
21711 * genextract.c (main): Likewise.
21712 * genflags.c (main): Likewise.
21713 * genopinit.c (main): Likewise.
21714 * genoutput.c (main): Likewise.
21715 * genpeep.c (main): Likewise.
21716 * genrecog.c (main): Likewise.
21717 * genpreds.c (main): Likewise.
21718 * gensupport.h (in_fname): Move to read-md.h.
21719 (init_md_reader_args_cb): Rename to...
21720 (init_rtx_reader_args_cb): ...this and return a bool.
21721 (init_md_reader_args): Rename to...
21722 (init_rtx_reader_args): ...this and return a bool.
21723 (include_callback): Move to read-md.h.
21724 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
21725 (file_name_list, first_dir_md_include): Move to read-md.c
21726 (first_bracket_include): Delete unused variable.
21727 (last_dir_md_include): Move to read-md.c.
21728 (process_include): Delete, moving code to read-md.c:handle_include.
21729 (process_rtx): Don't handle INCLUDE.
21730 (save_string): Delete.
21731 (rtx_handle_directive): New function.
21732 (init_md_reader_args_cb): Rename to...
21733 (init_rtx_reader_args_cb): ...this and return a boolean success value.
21734 Use read_md_args.
21735 (init_md_reader_args): Rename to...
21736 (init_rtx_reader_args): ...this and return a boolean success value.
21737 * rtl.def (INCLUDE): Delete.
21738 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
21739 argument.
21740 * read-rtl.c (read_conditions): Don't gobble ')' here.
21741 (read_mapping): Likewise.
21742 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
21743 Handle top-level non-rtx constructs here rather than in read_rtx_1.
21744 Store the whole queue in *X. Remove call to init_md_reader.
21745 (read_rtx_1): Rename to...
21746 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
21747 Don't handle top-level non-rtx constructs here. Don't handle (nil)
21748 here.
21749 (read_nested_rtx): New function. Handle (nil) here rather than
21750 in read_rtx_code.
21751 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
21752 gobble ')' here.
21753 * read-md.h (directive_handler_t): New type.
21754 (in_fname, include_callback): Moved from read-md.h.
21755 (read_constants, init_md_reader): Delete.
21756 (read_md_files): Declare.
21757 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
21758 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
21759 from gensupport.c.
21760 (read_constants): Rename to...
21761 (handle_constants): ...this. Don't gobble ')' here.
21762 (handle_include, handle_file, handle_toplevel_file)
21763 (parse_include): New functions, mostly taken from gensupport.c.
21764 (init_md_reader): Subsume into...
21765 (read_md_files): ...this new function.
21766
21767 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21768
21769 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
21770 (unread_char): Decrement read_md_lineno after putting back '\n'.
21771 * read-md.c (fatal_with_file_and_line): Push back any characters
21772 that we decide not to add to the context.
21773 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
21774 fatal_expected_char in cases where '/' ends a line (for example).
21775 (read_name): Don't increment read_md_lineno here.
21776 (read_escape): Likewise.
21777 (read_quoted_string): Likewise.
21778 (read_braced_string): Likewise.
21779
21780 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21781
21782 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
21783 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
21784 * genconstants.c: Include read-md.h.
21785 * read-rtl.c (md_constants): Move to read-md.c.
21786 (md_name): Move to read-md.h.
21787 (initialize_iterators): Use leading_string_hash instead of def_hash
21788 and leading_string_eq_p instead of def_name_eq_p.
21789 (read_name): Move to read-md.c.
21790 (def_hash, def_name_eq_p): Delete.
21791 (read_constants, traverse_md_constants): Move to read-md.c.
21792 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
21793 * read-md.h: Include hashtab.h.
21794 (md_name): Moved from read-rtl.c.
21795 (md_constant): Moved from read-md.h.
21796 (leading_string_hash, leading_string_eq_p, read_name)
21797 (read_constants, traverse_md_constants): Declare.
21798 * read-md.c (md_constants): Moved from read-rtl.c.
21799 (leading_string_hash, leading_string_eq_p): New functions.
21800 (read_name, read_constants, traverse_md_constants): Moved from
21801 read-rtl.c.
21802
21803 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21804
21805 * read-rtl.c (md_name): New structure.
21806 (read_name): Take an md_name instead of a buffer pointer.
21807 Use the "string" field instead of strcpy when expanding constants.
21808 (read_constants): Remove the tmp_char argument. Update the calls
21809 to read_name, using two local name buffers instead of the tmp_char
21810 argument. Merge the constant-creation code.
21811 (read_conditions): Remove the tmp_char argument. Update the calls
21812 to read_name, using a local name buffer instead of the tmp_char
21813 argument.
21814 (read_mapping): Replace tmp_char variable with a local name buffer.
21815 Update the calls to read_name.
21816 (read_rtx_1): Likewise. Update the calls to read_constants and
21817 read_conditions.
21818
21819 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21820
21821 * Makefile.in (build/read-md.o): Depend on errors.h.
21822 * read-md.h (error_with_line): Declare.
21823 * read-md.c: Include errors.h.
21824 (message_with_line_1): New function, extracted from...
21825 (message_with_line): ...here.
21826 (error_with_line): New function.
21827 * genattrtab.c: If a call to message_with_line is followed by
21828 "have_error = 1;", replace both statements with a call to
21829 error_with_line.
21830 * genoutput.c: Likewise.
21831 * genpreds.c: Likewise.
21832 * genrecog.c: If a call to message_with_line is followed by
21833 "error_count++;", replace both statements with a call to
21834 error_with_line.
21835 (errorcount): Delete.
21836 (main): Don't check it.
21837 * gensupport.c: If a call to message_with_line is followed by
21838 "errors = 1;", replace both statements with a call to error_with_line.
21839 (errors): Delete.
21840 (process_define_cond_exec): Check have_error instead of errors.
21841 (init_md_reader_args_cb): Likewise. Don't set errors.
21842
21843 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21844
21845 * read-md.h (read_md_file): Declare.
21846 (read_char, unread_char): New functions.
21847 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21848 (read_quoted_string, read_string): Remove FILE * argument.
21849 * read-md.c (read_md_file): New variable.
21850 (read_md_filename, read_md_lineno): Update comments and remove
21851 unnecessary initialization.
21852 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21853 (read_escape, read_quoted_string, read_braced_string, read_string):
21854 Remove FILE * argument. Update calls accordingly, using read_char
21855 and unread_char instead of getc and ungetc.
21856 * rtl.h (read_rtx): Remove FILE * argument.
21857 * read-rtl.c (iterator_group): Remove FILE * argument from
21858 "find_builtin".
21859 (iterator_traverse_data): Remove "infile" field.
21860 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
21861 (add_mapping, read_name, read_constants, read_conditions)
21862 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
21863 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
21864 Remove file arguments from all calls, using read_char and unread_char
21865 instead of getc and ungetc.
21866 * gensupport.c (process_include): Preserve read_md_file around
21867 the include. Set read_md_file to the handle of the included file.
21868 Update call to read_rtx.
21869 (init_md_reader_args_cb): Set read_md_file to the handle of the file
21870 and remove local FILE *. Update calls to read_rtx.
21871
21872 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21873
21874 * read-md.h (read_rtx_lineno): Rename to...
21875 (read_md_lineno): ...this.
21876 (read_rtx_filename): Rename to...
21877 (read_md_filename): ...this.
21878 (copy_rtx_ptr_loc): Rename to...
21879 (copy_md_ptr_loc): ...this.
21880 (print_rtx_ptr_loc): Rename to...
21881 (print_md_ptr_loc): ...this.
21882 * read-md.c: Likewise. Update references after renaming.
21883 (string_obstack): Replace RTL with MD in comment.
21884 (set_rtx_ptr_loc): Rename to...
21885 (set_md_ptr_loc): ...this.
21886 (get_rtx_ptr_loc): Rename to...
21887 (get_md_ptr_loc): ...this.
21888 * genconditions.c: Update references after renaming.
21889 * genemit.c: Likewise.
21890 * genoutput.c: Likewise.
21891 * genpreds.c: Likewise.
21892 * gensupport.c: Likewise.
21893 * read-rtl.c: Likewise.
21894
21895 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
21896
21897 * Makefile.in (READ_MD_H): New variable.
21898 (BUILD_RTL): Add build/read-md.o.
21899 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
21900 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
21901 (build/genattrtab.o, build/genconditions.o build/genemit.o)
21902 (build/genextract.o, build/genflags.o, build/genoutput.o)
21903 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
21904 (build/read-md.o): New rule.
21905 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
21906 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
21907 * coretypes.h: ...here.
21908 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
21909 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
21910 * genattr.c: Include read-md.h.
21911 * genattrtab.c: Likewise.
21912 * genconditions.c: Likewise.
21913 * genemit.c: Likewise.
21914 * genextract.c: Likewise.
21915 * genflags.c: Likewise.
21916 * genoutput.c: Likewise.
21917 * genpreds.c: Likewise.
21918 * genrecog.c: Likewise.
21919 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
21920 (join_c_conditions, print_c_condition, read_rtx_filename)
21921 (read_rtx_lineno): Move to read-md.h.
21922 * read-rtl.c: Include read-md.h.
21923 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
21924 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
21925 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
21926 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
21927 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
21928 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
21929 (read_braced_string, read_string): Move to read-md.c.
21930 (read_rtx): Move some initialization to init_md_reader and call
21931 init_md_reader here.
21932 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
21933 Move to read-md.h.
21934 * gensupport.c: Include read-md.h.
21935 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
21936 * read-md.h, read-md.c: New files.
21937
21938 2010-06-10 Anatoly Sokolov <aesok@post.ru>
21939
21940 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21941 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21942 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
21943 * config/moxie/moxie.c (moxie_function_value): Make static.
21944 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
21945 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21946
21947 2010-06-10 Martin Jambor <mjambor@suse.cz>
21948
21949 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
21950 * dbgcnt.def (tree_sra): New counter.
21951 * tree-sra.c: Include dbgcnt.h.
21952 (gate_intra_sra): Check tree_sra debug counter.
21953
21954 2010-06-10 Martin Jambor <mjambor@suse.cz>
21955
21956 PR tree-optimization/44258
21957 * tree-sra.c (build_access_subtree): Return false iff there is a
21958 partial overlap.
21959 (build_access_trees): Likewise.
21960 (analyze_all_variable_accesses): Disqualify candidates if
21961 build_access_trees returns true for them.
21962
21963 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
21964
21965 PR debug/41371
21966 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
21967 tail-recurse into canonical node. Fast-forward over
21968 non-canonical VALUEs.
21969
21970 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
21971
21972 PR boostrap/44470
21973 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
21974 (*addsi_1_zext) <TYPE_LEA>: Likewise.
21975 (add lea splitter): Likewise.
21976 (add_zext lea splitter): Likewise.
21977
21978 2010-06-10 Joseph Myers <joseph@codesourcery.com>
21979
21980 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
21981
21982 2010-06-10 Jan Hubicka <jh@suse.cz>
21983
21984 * df-problems.c (df_live_problem_data): Add live_bitmaps.
21985 (df_live_alloc): Initialize problem data and live_osbtacks.
21986 (df_live_finalize): Remove obstack, problem data; do not
21987 clear all bitmaps.
21988 (df_live_top_dump, df_live_bottom_dump): Do not dump old
21989 data when not allocated.
21990 (df_live_verify_solution_start): Do not allocate problem data.
21991 (df_live_verify_solution_end): Check if out is allocated.
21992 (struct df_md_problem_data): New structure.
21993 (df_md_alloc): Allocate problem data.
21994 (df_md_free): Free problem data; do not clear bitmaps.
21995
21996 2010-06-10 Jan Beulich <jbeulich@novell.com>
21997
21998 PR bootstrap/37304
21999 * configure.ac: Replace $() with ${} when intending to expand
22000 variables rather than invoking commands.
22001 * configure: Re-generate.
22002
22003 2010-06-10 Jan Hubicka <jh@suse.cz>
22004
22005 PR rtl-optimization/44460
22006 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
22007 TYPE_NEEDS_CONSTRUCTING sanity check.
22008
22009 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
22010
22011 * doc/include/fdl.texi: Move to GFDL version 1.3.
22012
22013 * doc/cpp.texi: Move to GFDL version 1.3.
22014 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
22015 * doc/gccint.texi: Move to GFDL version 1.3.
22016 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
22017 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
22018 * doc/invoke.texi: Move to GFDL version 1.3.
22019
22020 2010-06-09 Jan Hubicka <jh@suse.cz>
22021
22022 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
22023 Break out from ...
22024 (propagate) ... here; swap the order.
22025
22026 2010-06-09 Jan Hubicka <jh@suse.cz>
22027
22028 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
22029 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
22030 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
22031 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
22032
22033 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22034
22035 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
22036 Do not the gather memory reference in the outer loop if the step
22037 is not a constant.
22038
22039 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
22040
22041 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
22042 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
22043 8 to 4. Minor change of the related comments.
22044
22045 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22046
22047 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
22048 the scev analysis when the variable is not used outside the loop
22049 in a close phi node: call compute_overall_effect_of_inner_loop.
22050
22051 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22052
22053 * graphite-sese-to-poly.c (single_pred_cond): Renamed
22054 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
22055 (build_sese_conditions_before): Renamed call to single_pred_cond.
22056 (build_sese_conditions_after): Same.
22057
22058 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
22059
22060 * graphite-poly.h: Fix comments and indentation.
22061 * graphite-sese-to-poly.c: Same.
22062 (build_sese_conditions_before): Compute stmt and gbb only when needed.
22063 * tree-chrec.c: Fix comments and indentation.
22064 (tree-ssa-loop-niter.c): Same.
22065
22066 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
22067
22068 PR rtl-optimization/42461
22069 * dce.c (deletable_insn_p): Return true for const or pure calls again.
22070 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
22071
22072 2010-06-09 Jan Hubicka <jh@suse.cz>
22073
22074 * bitmap.c (bitmap_and): Walk array forward.
22075 (bitmap_and_compl_into): Likewise.
22076 (bitmap_xor): Likewise.
22077 (bitmap_xor_into): Likewise.
22078 (bitmap_equal_p): Likewise.
22079 (bitmap_intersect_p): Likewise.
22080 (bitmap_intersect_compl_p): Likewise.
22081 (bitmap_ior_and_into): Likewise.
22082 (bitmap_elt_copy): Likewise.
22083 (bitmap_and_compl): Likewise.
22084 (bitmap_elt_ior): Likewise.
22085
22086 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
22087
22088 * opts-common.c (prune_options): Ensure replacement argv array
22089 is correctly terminated by a NULL entry.
22090
22091 2010-06-09 Jan Hubicka <jh@suse.cz>
22092
22093 * cgraph.h (varpool_first_static_initializer,
22094 varpool_next_static_initializer): Make checking only when
22095 checking enabled.
22096 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
22097 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
22098 gcc_assert to gcc_checking_assert.
22099 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
22100 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
22101 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
22102 op_iter_init_phiuse, op_iter_init_phidef,
22103 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
22104 gcc_checking_assert.
22105 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
22106 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
22107 partition_is_global, live_on_entry, live_on_exit,
22108 live_merge_and_clear): Likewise.
22109 * system.h (gcc_checking_assert): New macro.
22110 * gimple.h (set_bb_seq): Use gcc_checking_assert.
22111
22112 2010-06-09 Jason Merrill <jason@redhat.com>
22113
22114 * Makefile.in (TAGS): Collect tags info from c-family.
22115
22116 2010-06-09 Jan Hubicka <jh@suse.cz>
22117
22118 * gimple.h (gcc_gimple_checking_assert): New macro.
22119 (gimple_set_def_ops, gimple_set_use_ops,
22120 gimple_set_vuse, gimple_set_vdef,
22121 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
22122 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
22123 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
22124 gimple_asm_output_op, gimple_asm_output_op_ptr,
22125 gimple_asm_set_output_op, gimple_asm_clobber_op,
22126 gimple_asm_set_clobber_op, gimple_asm_label_op,
22127 gimple_asm_set_label_op, gimple_try_set_kind,
22128 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
22129 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
22130 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
22131 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
22132 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
22133 gimple_omp_for_set_initial, gimple_omp_for_final,
22134 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
22135 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
22136 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
22137 conditional with ENABLE_GIMPLE_CHECKING.
22138 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
22139
22140 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
22141
22142 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
22143 (get_computation_cost_at): Use it.
22144 (determine_use_iv_cost_condition): Likewise.
22145 (determine_iv_cost): Likewise.
22146
22147 2010-06-09 Richard Guenther <rguenther@suse.de>
22148
22149 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
22150 replace constants.
22151
22152 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
22153
22154 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
22155
22156 2010-06-09 Martin Jambor <mjambor@suse.cz>
22157
22158 PR tree-optimization/44423
22159 * tree-sra.c (dump_access): Dump also grp_assignment_read.
22160 (analyze_access_subtree): Pass negative allow_replacements to children
22161 if the current type is scalar.
22162
22163 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
22164
22165 PR testsuite/42843
22166 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
22167 * doc/plugins.texi (Plugin license check): Update information
22168 on type of plugin_is_GPL_compatible.
22169 * Makefile.in (PLUGINCC): Define as $(COMPILER).
22170 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
22171
22172 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
22173
22174 * config/arm/arm.c (thumb2_reorg): New function.
22175 (arm_reorg): Call it.
22176 * config/arm/thumb2.md (define_peephole2 for flag clobbering
22177 arithmetic operations): Delete.
22178
22179 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
22180
22181 PR target/44067
22182 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
22183 e500v2 target.
22184
22185 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
22186
22187 PR plugins/44459
22188 * gcc-plugin.h: Encapsulate all declarations in extern "C".
22189
22190 2010-06-08 Jan Hubicka <jh@suse.cz>
22191
22192 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
22193 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
22194
22195 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
22196
22197 PR tree-optimization/39874
22198 PR middle-end/28685
22199 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
22200 Declare.
22201 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
22202 same_bool_result_p): New.
22203 (and_var_with_comparison, and_var_with_comparison_1,
22204 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
22205 (or_var_with_comparison, or_var_with_comparison_1,
22206 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
22207 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
22208 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
22209 of combine_comparisons.
22210 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
22211
22212 2010-06-08 Anatoly Sokolov <aesok@post.ru>
22213
22214 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22215 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22216 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
22217 pdp11_function_value_regno_p): New functions.
22218 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22219 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22220
22221 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
22222
22223 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
22224 Thumb-2 in the MINUS case.
22225
22226 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22227
22228 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
22229
22230 * doc/gty.texi (GTY Options): Document typed GC allocation and
22231 variable_size GTY option.
22232
22233 * ggc-internal.h: New.
22234
22235 * ggc.h: Update copyright year.
22236 (digit_string): Move to stringpool.c.
22237 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
22238 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
22239 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
22240 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
22241 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
22242 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
22243 (ggc_force_collect, ggc_get_size, ggc_statistics)
22244 (ggc_print_common_statistics): Move to ggc-internal.h.
22245 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
22246 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
22247 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
22248 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
22249 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
22250 (ggc_alloc_zone_pass_stat): Remove.
22251 (ggc_internal_alloc_stat, ggc_internal_alloc)
22252 (ggc_internal_cleared_alloc_stat): New.
22253 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
22254 (ggc_internal_vec_alloc_stat)
22255 (ggc_internal_cleared_vec_alloc_stat)
22256 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
22257 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
22258 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
22259 (ggc_cleared_alloc_ptr_array_two_args): New.
22260 (htab_create_ggc, splay_tree_new_ggc): Redefine.
22261 (ggc_splay_alloc): Change the type of the first argument to
22262 enum gt_types_enum.
22263 (ggc_alloc_string): Make macro.
22264 (ggc_alloc_string_stat): New.
22265 (ggc_strdup): Redefine.
22266 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
22267 (ggc_alloc_rtvec_sized): New.
22268 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
22269 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
22270 (ggc_internal_cleared_alloc_zone_stat)
22271 (ggc_internal_zone_alloc_stat)
22272 (ggc_internal_zone_cleared_alloc_stat)
22273 (ggc_internal_zone_vec_alloc_stat)
22274 (ggc_alloc_zone_rtx_def_stat)
22275 (ggc_alloc_zone_tree_node_stat)
22276 (ggc_alloc_zone_cleared_tree_node_stat)
22277 (ggc_alloc_cleared_gimple_statement_d_stat): New.
22278
22279 * ggc-common.c: Include ggc-internal.h.
22280 (ggc_internal_cleared_alloc_stat): Rename from
22281 ggc_alloc_cleared_stat.
22282 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
22283 (ggc_calloc): Remove.
22284 (ggc_cleared_alloc_htab_ignore_args): New.
22285 (ggc_cleared_alloc_ptr_array_two_args): New.
22286 (ggc_splay_alloc): Add obj_type parameter.
22287 (init_ggc_heuristics): Formatting fixes.
22288
22289 * ggc-none.c: Update copyright year.
22290 (ggc_alloc_stat): Rename to ggc_alloc_stat.
22291 (ggc_alloc_cleared_stat): Rename to
22292 ggc_internal_cleared_alloc_stat.
22293 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22294
22295 * ggc-page.c: Update copyright year. Include ggc-internal.h.
22296 Remove references to ggc_alloc in comments.
22297 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
22298 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
22299 (new_ggc_zone, destroy_ggc_zone): Remove.
22300 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22301
22302 * ggc-zone.c: Include ggc-internal.h. Remove references to
22303 ggc_alloc in comments.
22304 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
22305 (ggc_internal_alloc_zone_pass_stat): New.
22306 (ggc_internal_cleared_alloc_zone_stat): New.
22307 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
22308 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
22309 (new_ggc_zone, destroy_ggc_zone): Remove.
22310
22311 * stringpool.c: Update copyright year. Include ggc-internal.h
22312 (digit_vector): Make static.
22313 (digit_string): Moved from ggc.h.
22314 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
22315 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
22316
22317 * Makefile.in (GGC_INTERNAL_H): New.
22318 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
22319 $(GGC_INTERNAL_H) to dependencies.
22320
22321 * gentype.c: Update copyright year.
22322 (walk_type): Accept variable_size GTY option.
22323 (USED_BY_TYPED_GC_P): New macro.
22324 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
22325 whitespace at the end of strings.
22326 (get_type_specifier, variable_size_p): New functions.
22327 (alloc_quantity, alloc_zone): New enums.
22328 (write_typed_alloc_def): New function.
22329 (write_typed_struct_alloc_def): Likewise.
22330 (write_typed_typed_typedef_alloc_def): Likewise.
22331 (write_typed_alloc_defns): Likewise.
22332 (output_typename, write_splay_tree_allocator_def): Likewise.
22333 (write_splay_tree_allocators): Likewise.
22334 (main): Call write_typed_alloc_defns and
22335 write_splay_tree_allocators.
22336
22337 * lto-streamer.h (lto_file_decl_data_ptr): New.
22338
22339 * passes.c (order): Define using cgraph_node_ptr.
22340
22341 * strinpool.c (struct string_pool_data): Declare nested_ptr using
22342 ht_identifier_ptr.
22343
22344 * gimple.h (union gimple_statement_d): Likewise.
22345
22346 * rtl.h (struct rtx_def): Likewise.
22347 (struct rtvec_def): Likewise.
22348
22349 * tree.h (union tree_node): Likewise.
22350
22351 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
22352
22353 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
22354
22355 * tree-scalar-evolution.c (scev_initialize): Likewise.
22356
22357 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
22358
22359 * dwarf2asm.c (dw2_force_const_mem): Likewise.
22360
22361 * omp-low.c (lower_omp_critical): Likewise.
22362
22363 * bitmap.h (struct bitmap_head_def): Update comment to not
22364 reference ggc_alloc.
22365
22366 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
22367
22368 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
22369
22370 * ipa-prop.c (duplicate_ggc_array): Rename to
22371 duplicate_ipa_jump_func_array. Use typed GC allocation.
22372 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
22373
22374 * gimple.c (gimple_alloc_stat): Use
22375 ggc_alloc_cleared_gimple_statement_d_stat.
22376
22377 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
22378
22379 * tree.c (make_node_stat): Use
22380 ggc_alloc_zone_cleared_tree_node_stat.
22381 (make_tree_vec_stat): Likewise.
22382 (build_vl_exp_stat): Likewise.
22383 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
22384 (make_tree_binfo_stat): Likewise.
22385 (tree_cons_stat): Likewise.
22386
22387 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
22388 (shallow_copy_rtx_stat): Likewise.
22389 (make_node_stat): Likewise.
22390
22391 * lto-symtab.c: Fix comment.
22392
22393 * tree-cfg.c (create_bb): Update comment to not reference
22394 ggc_alloc_cleared.
22395 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
22396
22397 * varpool.c (varpool_node): Use typed GC allocation.
22398 (varpool_extra_name_alias): Likewise.
22399
22400 * varasm.c (emutls_decl): Likewise.
22401 (get_unnamed_section): Likewise.
22402 (get_noswitch_section): Likewise.
22403 (get_section): Likewise.
22404 (get_block_for_section): Likewise.
22405 (build_constant_desc): Likewise.
22406 (create_constant_pool): Likewise.
22407 (force_const_mem): Likewise.
22408
22409 * tree.c (build_vl_exp_stat): Likewise.
22410 (build_real): Likewise.
22411 (build_string): Likewise.
22412 (decl_debug_expr_insert): Likewise.
22413 (decl_value_expr_insert): Likewise.
22414 (type_hash_add): Likewise.
22415 (build_omp_clause): Likewise.
22416
22417 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
22418
22419 * tree-ssa.c (init_tree_ssa): Likewise.
22420
22421 * tree-ssa-structalias.c (heapvar_insert): Likewise.
22422
22423 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22424
22425 * tree-ssa-loop-niter.c (record_estimate): Likewise.
22426
22427 * tree-ssa-alias.c (get_ptr_info): Likewise.
22428
22429 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22430
22431 * tree-phinodes.c (allocate_phi_node): Likewise.
22432
22433 * tree-iterator.c (tsi_link_before): Likewise.
22434 (tsi_link_after): Likewise.
22435
22436 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22437
22438 * tree-dfa.c (create_var_ann): Likewise.
22439
22440 * tree-cfg.c (create_bb): Likewise.
22441
22442 * toplev.c (alloc_for_identifier_to_locale): Likewise.
22443 (general_init): Likewise.
22444
22445 * stringpool.c (stringpool_ggc_alloc): Likewise.
22446 (gt_pch_save_stringpool): Likewise.
22447
22448 * sese.c (if_region_set_false_region): Likewise.
22449
22450 * passes.c (do_per_function_toporder): Likewise.
22451
22452 * optabs.c (set_optab_libfunc): Likewise.
22453 (set_conv_libfunc): Likewise.
22454
22455 * lto-symtab.c (lto_symtab_register_decl): Likewise.
22456
22457 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22458 (input_eh_region): Likewise.
22459 (input_eh_lp): Likewise.
22460 (make_new_block): Likewise.
22461 (unpack_ts_real_cst_value_fields): Likewise.
22462
22463 * lto-section-in.c (lto_new_in_decl_state): Likewise.
22464
22465 * lto-cgraph.c (input_node_opt_summary): Likewise.
22466
22467 * loop-init.c (loop_optimizer_init): Likewise.
22468
22469 * lambda.h (lambda_vector_new): Likewise.
22470
22471 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
22472
22473 * ira.c (update_equiv_regs): Likewise.
22474
22475 * ipa.c (cgraph_node_set_new): Likewise.
22476 (cgraph_node_set_add): Likewise.
22477 (varpool_node_set_new): Likewise.
22478 (varpool_node_set_add): Likewise.
22479
22480 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
22481 (duplicate_ipa_jump_func_array): Likewise.
22482 (ipa_read_node_info): Likewise.
22483
22484 * ipa-cp.c (ipcp_create_replace_map): Likewise.
22485
22486 * integrate.c (get_hard_reg_initial_val): Likewise.
22487
22488 * gimple.c (gimple_alloc_stat): Likewise.
22489 (gimple_build_omp_for): Likewise.
22490 (gimple_seq_alloc): Likewise.
22491 (gimple_copy): Likewise.
22492
22493 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
22494 (gsi_insert_after_without_update): Likewise.
22495
22496 * function.c (add_frame_space): Likewise.
22497 (insert_temp_slot_address): Likewise.
22498 (assign_stack_temp_for_type): Likewise.
22499 (allocate_struct_function): Likewise.
22500 (types_used_by_var_decl_insert): Likewise.
22501
22502 * except.c (init_eh_for_function): Likewise.
22503 (gen_eh_region): Likewise.
22504 (gen_eh_region_catch): Likewise.
22505 (gen_eh_landing_pad): Likewise.
22506 (add_call_site): Likewise.
22507
22508 * emit-rtl.c (get_mem_attrs): Likewise.
22509 (get_reg_attrs): Likewise.
22510 (start_sequence): Likewise.
22511 (init_emit): Likewise.
22512
22513 * dwarf2out.c (new_cfi): Likewise.
22514 (queue_reg_save): Likewise.
22515 (dwarf2out_frame_init): Likewise.
22516 (new_loc_descr): Likewise.
22517 (find_AT_string): Likewise.
22518 (new_die): Likewise.
22519 (add_var_loc_to_decl): Likewise.
22520 (clone_die): Likewise.
22521 (clone_as_declaration): Likewise.
22522 (break_out_comdat_types): Likewise.
22523 (new_loc_list): Likewise.
22524 (loc_descriptor): Likewise.
22525 (add_loc_descr_to_each): Likewise.
22526 (add_const_value_attribute): Likewise.
22527 (tree_add_const_value_attribute): Likewise.
22528 (add_comp_dir_attribute): Likewise.
22529 (add_name_and_src_coords_attributes): Likewise.
22530 (lookup_filename): Likewise.
22531 (store_vcall_insn): Likewise.
22532 (dwarf2out_init): Likewise.
22533
22534 * dbxout.c (dbxout_init): Likewise.
22535
22536 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22537
22538 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22539
22540 * config/score/score7.c (score7_output_external): Likewise.
22541
22542 * config/score/score3.c (score3_output_external): Likewise.
22543
22544 * config/s390/s390.c (s390_init_machine_status): Likewise.
22545
22546 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22547 (rs6000_init_machine_status): Likewise.
22548 (output_toc): Likewise.
22549
22550 * config/pa/pa.c (pa_init_machine_status): Likewise.
22551 (get_deferred_plabel): Likewise.
22552
22553 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22554
22555 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22556
22557 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22558
22559 * config/mep/mep.c (mep_init_machine_status): Likewise.
22560 (mep_note_pragma_flag): Likewise.
22561
22562 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22563
22564 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22565
22566 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22567
22568 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22569 (i386_pe_maybe_record_exported_symbol): Likewise.
22570
22571 * config/i386/i386.c (get_dllimport_decl): Likewise.
22572 (ix86_init_machine_status): Likewise.
22573 (assign_386_stack_local): Likewise.
22574
22575 * config/frv/frv.c (frv_init_machine_status): Likewise.
22576
22577 * config/darwin.c (machopic_indirection_name): Likewise.
22578
22579 * config/cris/cris.c (cris_init_machine_status): Likewise.
22580
22581 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22582
22583 * config/avr/avr.c (avr_init_machine_status): Likewise.
22584
22585 * config/arm/arm.c (arm_init_machine_status): Likewise.
22586
22587 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22588 (alpha_need_linkage): Likewise.
22589 (alpha_use_linkage): Likewise.
22590
22591 * cgraph.c (cgraph_allocate_node): Likewise.
22592 (cgraph_create_edge_1): Likewise.
22593 (cgraph_create_indirect_edge): Likewise.
22594 (cgraph_add_asm_node): Likewise.
22595
22596 * cfgrtl.c (init_rtl_bb_info): Likewise.
22597
22598 * cfgloop.c (alloc_loop): Likewise.
22599 (rescan_loop_exit): Likewise.
22600
22601 * cfg.c (init_flow): Likewise.
22602 (alloc_block): Likewise.
22603 (unchecked_make_edge): Likewise.
22604
22605 * c-parser.c (c_parse_init): Likewise.
22606 (c_parse_file): Likewise.
22607
22608 * c-decl.c (bind): Likewise.
22609 (record_inline_static): Likewise.
22610 (push_scope): Likewise.
22611 (make_label): Likewise.
22612 (lookup_label_for_goto): Likewise.
22613 (finish_struct): Likewise.
22614 (finish_enum): Likewise.
22615 (c_push_function_context): Likewise.
22616
22617 * bitmap.c (bitmap_element_allocate): Likewise.
22618 (bitmap_gc_alloc_stat): Likewise.
22619
22620 * alias.c (record_alias_subset): Likewise.
22621 (init_alias_analysis): Likewise.
22622
22623 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
22624
22625 * fold-const.c (fold_comparison): Remove redundant parenthesis.
22626 * tree-inline.c (expand_call_inline): Pass translated return value of
22627 cgraph_inline_failed_string to diagnostic function.
22628
22629 2010-06-08 Andrew Pinski <pinskia@gmail.com>
22630 Shujing Zhao <pearly.zhao@oracle.com>
22631
22632 PR c/37724
22633 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
22634 implicit bad conversions is initialization.
22635 (error_init): Use gmsgid instead of msgid for argument name and change
22636 the call for error.
22637 (pedwarn_init): Use gmsgid instead of msgid for argument name and
22638 change the call for pedwarn.
22639 (warning_init): Use gmsgid instead of msgid for argument name and
22640 change the call for warning.
22641
22642 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
22643
22644 * config/mips/mips-protos.h (mips_print_operand): Delete.
22645 (mips_print_operand_address): Delete.
22646 * config/mips/mips.h (mips_print_operand_punct): Delete.
22647 (PRINT_OPERAND): Delete.
22648 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22649 (PRINT_OPERAND_ADDRESS): Delete.
22650 * config/mips/mips.c (mips_print_operand_punct): Make static.
22651 (mips_print_operand_address): Make static.
22652 (mips_print_operand): Make static. Call
22653 mips_print_operand_punct_valid_p.
22654 (mips_print_operand_punct_valid_p): New function.
22655 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22656 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22657
22658 2010-06-07 Jan Hubicka <jh@suse.cz>
22659
22660 PR middle-end/44454
22661 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
22662 are allocated.
22663
22664 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
22665
22666 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
22667 name of RECORD.
22668
22669 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22670
22671 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22672 attributes): Document gas.
22673
22674 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
22675
22676 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
22677 <TYPE_LEA>: Split instruction.
22678 <default>: Remove alternative 2 handling.
22679 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
22680 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
22681 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
22682
22683 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
22684 (ashift_zext lea splitter): Use DImode for multiplication.
22685
22686 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
22687 to generate addition.
22688
22689 2010-06-07 Joseph Myers <joseph@codesourcery.com>
22690
22691 * common.opt (fira-verbose): Use Var.
22692 (fpcc-struct-return): Use Init instead of VarExists.
22693 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
22694 toplev.c.
22695 * flags.h (flag_signed_char, flag_short_enums,
22696 flag_pcc_struct_return, flag_ira_verbose,
22697 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
22698 * toplev.c (flag_detailed_statistics, flag_signed_char,
22699 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
22700 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
22701 * toplev.h (flag_crossjumping, flag_if_conversion,
22702 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
22703 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
22704 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
22705 flag_cprop_registers, time_report, flag_ira_loop_pressure,
22706 flag_ira_coalesce, flag_ira_move_spills,
22707 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
22708
22709 2010-06-07 Jan Hubicka <jh@suse.cz>
22710
22711 * df-core.c (df_analyze_problem): Do verification after allocation.
22712
22713 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
22714 (df_lr_alloc): Initialize problem data; move bitmaps to
22715 lr_bitmaps obstack.
22716 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
22717 (df_lr_verify_solution_start): Do not initialize problem data;
22718 allocate bitmaps in lr_bitmaps.
22719 (df_lr_verify_solution_end): Do not free problem data.
22720
22721 2010-06-07 Jan Hubicka <jh@suse.cz>
22722
22723 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
22724 if caller is noreturn.
22725 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
22726 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
22727 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
22728 * ipa-pure-const.c (check_decl): Add IPA parameter.
22729 (state_from_flags): New function.
22730 (better_state, worse_state): New functions.
22731 (check_call): When in IPA mode, do not care about callees.
22732 (check_load, check_store): Update.
22733 (check_ipa_load, check_ipa_store): New.
22734 (check_stmt): When in IPA mode, use IPA checkers.
22735 (analyze_function): Use state_from_flags.
22736 (propagate): Check indirect edges and references.
22737
22738 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
22739
22740 PR rtl-optimization/44404
22741 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
22742 of count_occurrences to see if it's safe to modify mem_insn.
22743
22744 2010-06-07 Richard Guenther <rguenther@suse.de>
22745
22746 * gimplify.c (gimplify_cleanup_point_expr): For empty body
22747 and EH-only cleanup drop the cleanup instead of inserting it
22748 unconditionally.
22749
22750 2010-06-07 Ira Rosen <irar@il.ibm.com>
22751
22752 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
22753 documentation.
22754 * targhooks.c (default_builtin_vectorization_cost): New function.
22755 * targhooks.h (default_builtin_vectorization_cost): Declare.
22756 * target.h (enum vect_cost_for_stmt): Define.
22757 (builtin_vectorization_cost): Change argument and comment.
22758 * tree-vectorizer.h: Remove cost model macros.
22759 * tree-vect-loop.c: Include target.h.
22760 (vect_get_cost): New function.
22761 (vect_estimate_min_profitable_iters): Replace cost model macros with
22762 calls to vect_get_cost.
22763 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
22764 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
22765 default implementation.
22766 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
22767 calls to target hook builtin_vectorization_cost.
22768 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
22769 Likewise.
22770 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
22771 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
22772 implementation to return costs.
22773 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22774 * config/spu/spu.h: Remove vectorizer cost model macros.
22775 * config/i386/i386.h: Likewise.
22776 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
22777 a call to target hook builtin_vectorization_cost.
22778
22779 2010-06-06 Sriraman Tallam <tmsriram@google.com>
22780
22781 PR target/44319
22782 * config/i386/i386.c (override_options): Turn zee pass on for level 2
22783 and above and defer till target is known.
22784 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
22785 turn off otherwise.
22786
22787 2010-05-25 Jan Hubicka <jh@suse.cz>
22788
22789 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
22790 (df_compact_blocks): Likewise.
22791 * df.h (struct df): Turn hardware_regs_used,
22792 regular_block_artificial_uses, eh_block_artificial_uses,
22793 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
22794 bitmap_head.
22795 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
22796 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
22797 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
22798 df_scan_blocks, df_insn_delete, df_insn_rescan,
22799 df_insn_rescan_debug_internal, df_insn_rescan_all,
22800 df_process_deferred_rescans, df_process_deferred_rescans,
22801 df_notes_rescan, df_get_call_refs, df_get_call_refs,
22802 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
22803 df_record_entry_block_defs, df_record_exit_block_uses,
22804 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
22805 df_scan_verify): Update.
22806
22807 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22808
22809 PR c++/44188
22810 * c-common.c (is_typedef_decl): Move this definition ...
22811 * tree.c (is_typedef_decl): ... here.
22812 (typdef_variant_p): Move definition here from cp/tree.c.
22813 * c-common.h (is_typedef_decl): Move this declaration ...
22814 * tree.h (is_typedef_decl): ... here.
22815 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22816 * dwarf2out.c (is_naming_typedef_decl): New function.
22817 (gen_tagged_type_die): Split out of ...
22818 (gen_type_die_with_usage): ... this function. When an anonymous
22819 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22820 is emitted for the typedef.
22821 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22822 anonymous tagged types.
22823
22824 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
22825
22826 PR c/20000
22827 * c-decl.c (grokdeclarator): Delete warning.
22828
22829 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
22830
22831 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
22832 newly built CALL_EXPR.
22833 * tree-profile.c (tree_profiling): Don't profile functions produced
22834 for built-in stuff.
22835
22836 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
22837
22838 PR bootstrap/44427
22839 PR bootstrap/44428
22840 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
22841 endianness-independent.
22842
22843 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
22844
22845 * c-common.c: Move to c-family/.
22846 * c-common.def: Likewise.
22847 * c-common.h: Likewise.
22848 * c-cppbuiltin.c: Likewise.
22849 * c-dump.c: Likewise.
22850 * c-format.c: Likewise.
22851 * c-format.h : Likewise.
22852 * c-gimplify.c: Likewise.
22853 * c-lex.c: Likewise.
22854 * c-omp.c: Likewise.
22855 * c.opt: Likewise.
22856 * c-opts.c: Likewise.
22857 * c-pch.c: Likewise.
22858 * c-ppoutput.c: Likewise.
22859 * c-pragma.c: Likewise.
22860 * c-pragma.h: Likewise.
22861 * c-pretty-print.c: Likewise.
22862 * c-pretty-print.h: Likewise.
22863 * c-semantics.c: Likewise.
22864 * stub-objc.c: Likewise.
22865
22866 * gengtype.c (get_file_langdir): Special-case files in c-family/.
22867 (get_output_file_with_visibility): Fix name for c-common.h.
22868 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
22869
22870 * c-tree.h: Update include path for moved files.
22871 * c-lang.c: Likewise.
22872 * c-lang.h: Likewise.
22873 * c-parser.c: Likewise.
22874 * c-convert.c: Likewise.
22875 * c-decl.c: Likewise.
22876 * c-objc-common.c: Likewise.
22877 * configure.ac: Make sure c-family/ exists in the build directory.
22878 * configure: Regenerate.
22879 * Makefile.in: Update paths for moved files. Regroup files per
22880 location and update dependencies. Move generated_files down after
22881 ALL_GTFILES_H.
22882
22883 * config/spu/spu-c.c: Update paths for moved files.
22884 * config/mep/mep-pragma.c: Likewise.
22885 * config/darwin-c.c: Likewise.
22886 * config/i386/msformat-c.c: Likewise.
22887 * config/i386/i386-c.c: Likewise.
22888 * config/avr/avr-c.c: Likewise.
22889 * config/sol2-c.c: Likewise.
22890 * config/ia64/ia64-c.c: Likewise.
22891 * config/rs6000/rs6000-c.c: Likewise.
22892 * config/arm/arm.c: Likewise.
22893 * config/arm/arm-c.c: Likewise.
22894 * config/h8300/h8300.c: Likewise.
22895 * config/v850/v850-c.c: Likewise.
22896
22897 * config/t-darwin: Fix dependencies for moved files.
22898 * config/t-sol2: Fix dependencies for moved files.
22899 * config/mep/t-mep: Fix dependencies for moved files.
22900 * config/ia64/t-ia64: Fix dependencies for moved files.
22901 * config/rs6000/t-rs6000: Fix dependencies for moved files.
22902 * config/v850/t-v850: Fix dependencies for moved files.
22903 * config/v850/t-v850e: Fix dependencies for moved files.
22904
22905 * config/m32c/m32c-pragma.c
22906
22907 * po/exgettext: Look in c-family/ also.
22908
22909 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
22910
22911 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
22912 (mark_control_dependent_edges_necessary): Call it instead of marking
22913 the last statement manually.
22914 (propagate_necessity): Likewise.
22915
22916 2010-06-05 Jan Hubicka <jh@suse.cz>
22917
22918 * basic-block.h (compute_dominance_frontiers): Updated.
22919 (compute_idf): Likewise.
22920
22921 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
22922 for dominance frontiers.
22923 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
22924 (insert_updated_phi_nodes_for): Likewise.
22925 (update_ssa): Likewise.
22926 * cfganal.c (compute_dominance_frontiers_1): Likewise.
22927 (compute_dominance_frontiers): Likewise.
22928 (compute_idf): Likewise.
22929 * df-problems.c (df_md_local_compute): Likewise.
22930
22931 2010-06-05 Anatoly Sokolov <aesok@post.ru>
22932
22933 * target.h (struct gcc_target): Add memory_move_cost field.
22934 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
22935 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
22936 * targhooks.c (default_memory_move_cost): New function.
22937 * targhooks.h (default_memory_move_cost): Declare function.
22938 * reload.h (memory_move_cost): Declare.
22939 (memory_move_secondary_cost): Change type of 'in' argument to bool.
22940 * reginfo.c (memory_move_cost): New function.
22941 (memory_move_secondary_cost): Change type of 'in' argument to bool.
22942 * ira.h (ira_memory_move_cost): Update comment.
22943 * ira.c (ira_memory_move_cost): Update comment.
22944 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
22945 with memory_move_cost.
22946 * postreload.c (reload_cse_simplify_set): (Ditto.).
22947 * reload1.c (choose_reload_regs): (Ditto.).
22948 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
22949 (MEMORY_MOVE_COST): Revise documentation.
22950
22951 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22952 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22953 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
22954 type of 'in' argument to bool.
22955 (TARGET_MEMORY_MOVE_COST): Define.
22956
22957 2010-06-05 Jan Hubicka <jh@suse.cz>
22958
22959 * ipa-pure-const.c (propagate): Fix typo in handling of functions
22960 that cannot return. Be more careful when merging the results with
22961 previously known ones.
22962
22963 2010-06-05 Matthias Klose <doko@ubuntu.com>
22964
22965 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
22966 function to add the -iplugindir option.
22967 (find_plugindir_spec_function): Add new declaration and function.
22968 (static_spec_func): Use it for "find-plugindir".
22969
22970 2010-06-05 Jakub Jelinek <jakub@redhat.com>
22971
22972 PR c++/44361
22973 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
22974 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
22975 statement expression.
22976
22977 2010-06-05 Jan Hubicka <jh@suse.cz>
22978
22979 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
22980 (df_rd_problem_data): Convert sparse_invalidated_by_call,
22981 dense_invalidated_by_call to bitmap head.
22982 (df_rd_alloc, df_rd_bb_local_compute_process_def,
22983 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
22984 df_rd_start_dump, df_lr_verify_transfer_functions,
22985 df_live_verify_transfer_functions, df_chain_create_bb,
22986 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
22987 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
22988 df_simulate_one_insn_forwards, df_md_alloc,
22989 df_md_bb_local_compute_process_def,
22990 df_md_bb_local_compute_process_def, df_md_local_compute,
22991 df_md_transfer_function df_md_free): Update.
22992
22993 2010-06-05 Joseph Myers <joseph@codesourcery.com>
22994
22995 PR c/44322
22996 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
22997 target type for ADDR_EXPR; require no changes to qualifiers except
22998 for function types.
22999 * c-tree.h (c_build_type_variant): Remove.
23000
23001 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23002
23003 * genautomata.c (get_excl_set): Do work per element, not per char.
23004 (check_presence_pattern_sets): Similar.
23005 (check_absence_pattern_sets): Similar.
23006
23007 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
23008
23009 * genautomata.c (curr_state_pass_num): Delete.
23010 (min_issue_delay_pass_states): Delete.
23011 (min_issue_delay): Delete.
23012 (initiate_min_issue_delay_pass_states): Delete.
23013 (output_min_issue_delay_table): Compute min_issue_delay_vect
23014 using a breadth-first search variant.
23015 (output_tables): Don't call initiate_min_issue_delay_pass_states.
23016
23017 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
23018
23019 PR boostrap/44421
23020 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
23021 (df_byte_lr_bb_local_compute): Likewise.
23022
23023 2010-06-03 Jason Merrill <jason@redhat.com>
23024
23025 Implement noexcept operator (5.3.7)
23026 * c-common.c (c_common_reswords): Add noexcept.
23027 * c-common.h (enum rid): Add RID_NOEXCEPT.
23028
23029 2010-06-04 Joseph Myers <joseph@codesourcery.com>
23030
23031 * config/darwin-driver.c (darwin_default_min_version): Use
23032 GCC-specific formats in diagnostics.
23033 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
23034 diagnostics.
23035 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
23036 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
23037 eval_spec_function, handle_braces, process_brace_body, main,
23038 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
23039 getenv_spec_function, compare_version_strings,
23040 version_compare_spec_function): Use GCC-specific formats in
23041 diagnostics.
23042
23043 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23044
23045 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
23046 that operand 0 and operand 1 are equal.
23047 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
23048 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
23049 and operand 1 are equal.
23050 <default>: Ditto. Remove ??? comment.
23051 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
23052 and operand 1 are equal.
23053 <default>: Ditto. Remove ??? comment.
23054 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
23055 are equal.
23056 (*add<mode>_4) <default>: Ditto.
23057 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
23058
23059 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
23060
23061 * config/i386/i386-protos.h (ix86_print_operand): Declare.
23062 * config/i386/i386.c (ix86_print_operand): Make non-static.
23063 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
23064 * output.h (output_operand): Declare.
23065 * final.c (output_operand): Make non-static.
23066
23067 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
23068
23069 PR rtl-optimization/44013
23070 * sched-deps.c (add_dependence_list_and_free): Don't free lists
23071 when processing debug insns.
23072
23073 PR debug/41371
23074 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
23075 recursing. Check that recursion is bounded. Rename inner var
23076 to avoid hiding incoming argument.
23077
23078 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23079
23080 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
23081 operands[2] == 255.
23082 (*addqi_3): Ditto.
23083 (*addqi_4): Ditto.
23084 (*addqi_5): Ditto.
23085 (*addqi_ext_1_rex64): Ditto.
23086 (*addqi_ext_1): Ditto.
23087
23088 (*addqi_4): Check for incdec_operand in QImode.
23089
23090 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
23091 using SWI mode iterator.
23092 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
23093 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
23094 mode iterator.
23095 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
23096 using SWI mode iterator.
23097
23098 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
23099
23100 PR c/25880
23101 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
23102 * c-format.c (gcc_diag_flag_specs): Add hash.
23103 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
23104 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
23105 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
23106 pp_c_cv_qualifiers. Handle qualifiers spelling here.
23107 (pp_c_type_qualifier_list): Call the function above.
23108 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
23109 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
23110 (WARN_FOR_QUALIFIERS): New macro.
23111 (convert_for_assignment): Use it.
23112
23113 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
23114
23115 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
23116
23117 2010-06-04 Jan Hubicka <jh@suse.cz>
23118
23119 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
23120 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
23121 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
23122 DF_BYTE_LR_OUT): Update for embedded bitmaps.
23123 * fwprop.c (single_def_use_enter_block): Likewise.
23124 * ddg.c (create_ddg_dep_from_intra_loop_link,
23125 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
23126 * loop-iv.c (latch_dominating_def): Likewise.
23127 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
23128 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
23129 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
23130 df_rd_transfer_function, df_rd_top_dump,
23131 df_rd_bottom_dump): Update.
23132 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
23133 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
23134 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
23135 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
23136 df_lr_verify_solution_start, df_lr_verify_solution_end,
23137 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
23138 df_live_free_bb_info, df_live_alloc, df_live_reset,
23139 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
23140 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
23141 df_live_verify_solution_start, df_live_verify_solution_end,
23142 df_live_verify_transfer_functions, df_chain_create_bb,
23143 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
23144 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23145 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
23146 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
23147 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
23148 df_byte_lr_transfer_function, df_byte_lr_top_dump,
23149 df_byte_lr_bottom_dump, df_create_unused_note,
23150 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
23151 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
23152 df_md_transfer_function, df_md_init, df_md_confluence_0,
23153 df_md_confluence_n,
23154 df_md_top_dump, df_md_bottom_dump): Update.
23155 (struct df_lr_problem_data): Embedd bitmap headers.
23156
23157 2010-06-04 Jan Hubicka <jh@suse.cz>
23158
23159 * dce.c (dce_process_block): Do not re-scan already marked
23160 instructions.
23161
23162 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
23163
23164 PR rtl-optimization/39871
23165 PR rtl-optimization/40615
23166 PR rtl-optimization/42500
23167 PR rtl-optimization/42502
23168 * ira.c (init_reg_equiv_memory_loc: New function.
23169 (ira): Call it twice.
23170 * reload.h (calculate_elim_costs_all_insns): Declare.
23171 * ira-costs.c: Include "reload.h".
23172 (regno_equiv_gains): New static variable.
23173 (init_costs): Allocate it.
23174 (finish_costs): Free it.
23175 (ira_costs): Call calculate_elim_costs_all_insns.
23176 (find_costs_and_classes): Take estimated elimination costs
23177 into account.
23178 (ira_adjust_equiv_reg_cost): New function.
23179 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
23180 * reload1.c (init_eliminable_invariants, free_reg_equiv,
23181 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
23182 (elim_bb): New static variable.
23183 (reload): Move code out of here into init_eliminable_invariants and
23184 free_reg_equiv. Call them.
23185 (calculate_elim_costs_all_insns): New function.
23186 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
23187 all callers changed. If FOR_COSTS is true, don't call alter_reg,
23188 but call note_reg_elim_costly if we turned a valid memory address
23189 into an invalid one.
23190 * Makefile.in (ira-costs.o): Depend on reload.h.
23191
23192 2010-06-04 Julian Brown <julian@codesourcery.com>
23193
23194 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
23195 for pool ranges.
23196
23197 2010-06-04 Richard Guenther <rguenther@suse.de>
23198
23199 PR lto/41584
23200 * cgraph.h (struct varpool_node): Add lto_file_data field.
23201 * lto-cgraph.c (input_varpool_node): Initialize it.
23202
23203 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
23204
23205 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
23206 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
23207 predicate in "type" attribute calculation.
23208 (*addsi_1_zext): Ditto.
23209 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
23210 (*addsi_2_zext): Ditto.
23211 (*add<mode>_3): Ditto.
23212 (*addsi_3_zext): Ditto.
23213 (*add<mode>_5): Ditto.
23214
23215 2010-06-03 Jan Hubicka <jh@suse.cz>
23216
23217 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
23218 of bitmap_bit_p.
23219 * cfganal.c (compute_dominance_frontiers_1): Likewise.
23220
23221 2010-06-03 Jan Hubicka <jh@suse.cz>
23222
23223 * df-problems.c (df_create_unused_note, df_note_bb_compute):
23224 micro-optimize the checks when to add new note.
23225
23226 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
23227
23228 * final.c (output_asm_insn): Call
23229 targetm.asm_out.print_operand_punct_valid_p. Update comments.
23230 (output_operand): Call targetm.asm_out.print_operand. Update comments.
23231 (output_address): Call targetm.asm_out.print_operand_address.
23232 Update comments.
23233 * target.h (struct gcc_target): Add print_operand,
23234 print_operand_address, and print_operand_punct_valid_p fields.
23235 * targhooks.h (default_print_operand): Declare.
23236 (default_print_operand_address): Declare.
23237 (default_print_operand_punct_valid_p): Declare.
23238 * targhooks.c (default_print_operand): Define.
23239 (default_print_operand_address): Define.
23240 (default_print_operand_punct_valid_p): Define.
23241 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
23242 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
23243 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
23244 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
23245 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
23246 * vmsdbgout.c (addr_const_to_string): Update comment.
23247 * config/i386/i386.c (print_operand): Rename to...
23248 (ix86_print_operand): ...this. Make static.
23249 (print_operand_address): Rename to...
23250 (ix86_print_operand_address): ...this. Make static. Call
23251 ix86_print_operand instead of PRINT_OPERAND.
23252 (ix86_print_operand_punct_valid_p): New function.
23253 (TARGET_PRINT_OPERAND): Define.
23254 (TARGET_PRINT_OPERAND_ADDRESS): Define.
23255 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23256 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
23257 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23258 (PRINT_OPERAND): Delete.
23259 (PRINT_OPERAND_ADDRESS): Delete.
23260 * config/i386/i386-protos.h (print_operand): Delete prototype.
23261 (print_operand_address): Delete prototype.
23262
23263 2010-06-03 Richard Guenther <rguenther@suse.de>
23264
23265 PR tree-optimization/44403
23266 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23267 Preserve pointer qualifiers.
23268 (vect_create_data_ref_ptr): Likewise.
23269
23270 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
23271
23272 PR c++/44294
23273 * defaults.h (MAX_FIXED_MODE_SIZE): New.
23274
23275 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
23276
23277 2010-06-03 Jakub Jelinek <jakub@redhat.com>
23278
23279 PR debug/44375
23280 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
23281 return false if merging the bbs would lead to goto_locus
23282 location being lost from the IL.
23283
23284 2010-06-03 Jan Hubicka <jh@suse.cz>
23285 Jakub Jelinek <jakub@redhat.com>
23286
23287 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
23288 set->regs[i] is NULL or has just one entry.
23289
23290 2010-06-03 Jan Hubicka <jh@suse.cz>
23291
23292 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
23293 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
23294
23295 2010-06-03 Paul Brook <paul@codesourcery.com>
23296
23297 * config/arm/arm.c (FL_TUNE): Define.
23298 (arm_default_cpu, arm_cpu_select): Remove.
23299 (all_cores): Populate core field.
23300 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
23301 (arm_find_cpu): New function.
23302 (arm_handle_option): Lookup cpu/architecture names.
23303 (arm_override_options): Cleanup mcpu/march/mtune handling.
23304 (arm_file_start): Ditto.
23305
23306 2010-06-03 Alan Modra <amodra@gmail.com>
23307
23308 PR target/44169
23309 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
23310 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
23311 rtx to gen_load_toc_v4_PIC_1b. Tidy.
23312 (rs6000_emit_load_toc_table): Likewise.
23313
23314 2010-06-02 Jan Hubicka <jh@suse.cz>
23315
23316 * passes.c (init_optimization_passes): Put ipa reference
23317 after ipa pure-const.
23318
23319 2010-06-02 Jan Hubicka <jh@suse.cz>
23320
23321 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
23322 calls_read_all and calls_write_all.
23323 (get_reference_optimization_summary): Fix formatting.
23324 (is_proper_for_analysis): Check that decl is not readonly.
23325 (propagate_bits): Check CONST/PURE/noreturn flags.
23326 (ipa_init): Move all_module_statics to optimization_summary_obstack.
23327 (analyze_function): Ignore indirect edges.
23328 (copy_global_bitmap): For all module statics, do nothing.
23329 (generate_summary): Do not print calls_read_all/calls_write_all.
23330 (read_write_all_from_decl): Take node as argument; check
23331 cgraph_node_cannot_return.
23332 (propagate): Reorganize read_all/write_all computation;
23333 check indirect edges; check ecf flags; use all_module_statics
23334 in the results; do not free all_module_statics.
23335 (stream_out_bitmap): Handle all_module_statics.
23336 (ipa_reference_write_optimization_summary): Likewise; use
23337 varpool/cgraph encoders to get boundaries.
23338 (ipa_reference_read_optimization_summary): Read in all_module_statics;
23339 use it when possible.
23340
23341 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23342
23343 PR target/44218
23344 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
23345 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
23346
23347 * doc/extend.texi (powerpc builtins): Document vec_recip,
23348 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
23349
23350 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
23351 (rs6000_emit_swrsqrt): Ditto.
23352 (rs6000_emit_swdivsf): Delete.
23353 (rs6000_emit_swdivdf): Ditto.
23354 (rs6000_emit_swrsqrtsf): Ditto.
23355
23356 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
23357 describe the reciprocal estimate support for each type.
23358 (recip_options): Map -mrecip=<opt> into option bits.
23359 (gen_2arg_fn_t): New typedef for binary rtx gen function.
23360 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
23361 reciprocal estimate instructions.
23362 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
23363 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
23364 Set up rs6000_recip_bits based on the -mrecip* options. Print the
23365 cost information if -mdebug=cost or -mdebug=reg.
23366 (rs6000_override_options): Set -mrecip-precision for power6, and
23367 power7 machines. If -mvsx or -mdfp, enable various options that
23368 came in previous instruction set ISAs, unless the option was
23369 explicitly disabled by the command line option. Parse
23370 -mrecip=<opt> options.
23371 (rs6000_builtin_vectorized_function): Add support for vectorizing
23372 the reciprocal estimate builtins and expansions.
23373 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
23374 (bdesc_2arg): Add reciprocal estimate builtins.
23375 (bdesc_1arg): Add reciprocal square root estimate builtins.
23376 (rs6000_expand_builtin): Rewrite to use a switch statement,
23377 instead of multiple if/then/elses. Add reciprocal estimate builtins.
23378 (rs6000_init_builtins): Create declarations for reciprocal
23379 estimate builtins.
23380 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
23381 sized, prefer traditional floating point registers, if integer
23382 vector types, prefer altivec registers. Don't actually look at
23383 the memory address any more.
23384 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
23385 builtins.
23386 (rs6000_load_constant_and_splat): New helper function to load up
23387 the constant for reciprocal estimate instructions.
23388 (rs6000_emit_madd): New helper function for generating
23389 multiply/add type instructions, based on the current switches.
23390 (rs6000_emit_msub): Ditto.
23391 (rs6000_emit_mnsub): Ditto.
23392 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
23393 replace a divide with a reciprocal estimate and fixup, adding
23394 support for machines with high precision and vectors.
23395 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
23396 low precision machines.
23397 (rs6000_emit_swdiv): New common function to be called to replace a
23398 division with reciprocal estimate and fixup.
23399 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
23400 for double and vector types. Add support for high precision machines.
23401
23402 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
23403 the reciprocal estimate instructions can be generated.
23404 (TARGET_FRE): Ditto.
23405 (TARGET_FRSQRTES): Ditto.
23406 (TARGET_FRSQRTE): Ditto.
23407 (RS6000_RECIP_*): New macros for reciprocal estimate support.
23408
23409 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
23410 square root estimate on vectors.
23411 (re<mode>2): New insn for reciprocal division estimate on vectors.
23412
23413 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
23414 New builtin.
23415 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
23416 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
23417 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
23418 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
23419 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
23420 (RS6000_BUILTIN_RSQRT): Ditto.
23421 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
23422 floating point builtin.
23423
23424 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23425 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
23426 __RECIP_PRECISION__ based on the command line switches.
23427 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
23428
23429 * config/rs6000/rs6000.opt (-mrecip): Document add support for
23430 replacing division instructions with reciprocal estimate and fixup.
23431 (-mrecip=<opt>): New option.
23432 (-mrecip-precision): Ditto.
23433
23434 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
23435 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
23436 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
23437 precision scalar.
23438
23439 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
23440 (UNSPEC_VREFP): Ditto.
23441 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
23442 conterparts with regard to support of -mno-fused-madd and -ffast-math.
23443 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
23444 reciprocal estimate instructions to be generated.
23445 (altivec_vrefp): Ditto.
23446
23447 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
23448 estimate support.
23449 (rreg): New mode attribute for reciprocal estimate support.
23450 (recip<mode>3): New insn for division using reciprocal estimate
23451 and fixup builtins.
23452 (divide define_split): New define_split to convert floating point
23453 division to use reciprocal estimate if the user used the
23454 appropriate options and the split is run when we can add new
23455 pseudo registers for the fixup.
23456 (rsqrt<mode>2): New insn for reciprocal square root support.
23457 (recipsf3): Move into recip<mode>3.
23458 (recipdf3): Ditto.
23459 (fres): Use TARGET_FRES.
23460 (rsqrtsf2): Move into rsqrt<mode>2.
23461 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
23462 (copysignsf3): Add support for VSX.
23463 (fred): Use TARGET_FRE.
23464 (fred_fpr): Ditto.
23465 (rsqrtdf_internal1): New function for frsqrte instruciton.
23466
23467 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
23468 (vec_rsqrt): Ditto.
23469
23470 2010-06-03 Richard Guenther <rguenther@suse.de>
23471
23472 PR middle-end/44291
23473 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
23474 (set_user_assembler_libfunc): Likewise.
23475
23476 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
23477
23478 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
23479 defaults.h.
23480 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
23481 to defaults.h
23482 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
23483 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
23484 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
23485 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
23486 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
23487 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
23488 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
23489 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
23490 * defaults.h: Updated for above mentioned changes.
23491
23492 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
23493
23494 * c-common.c: Remove header include of tm_p.h.
23495 * Makefile.in (c-common.o): Remove TM_P_H dependency.
23496
23497 2010-06-02 Jakub Jelinek <jakub@redhat.com>
23498
23499 * tree.h (struct tree_decl_map): New type.
23500 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
23501 (tree_decl_map_hash): New prototype.
23502 (debug_expr_for_decl, value_expr_for_decl): Change into
23503 tree_decl_map hashtab from tree_map.
23504 (init_ttree): Adjust initialization.
23505 (tree_decl_map_hash): New function.
23506 (decl_debug_expr_lookup, decl_debug_expr_insert,
23507 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
23508
23509 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23510
23511 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
23512 linker emulations.
23513 * configure: Regenerate.
23514 * config.in: Regenerate.
23515
23516 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
23517 (X86_64_EMULATION): Define.
23518 (TARGET_LD_EMULATION): Use them.
23519
23520 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
23521 (SPARC64_EMULATION): Define.
23522 (LINK_ARCH_SPEC): Use them.
23523
23524 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
23525
23526 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
23527 smallest_mode_for_size for computing the precision types of new
23528 graphite IVs. Do not call lang_hooks.types.type_for_size.
23529
23530 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
23531
23532 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
23533 information.
23534 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
23535
23536 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
23537
23538 PR middle-end/44363
23539 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
23540 return false instead.
23541
23542 2010-06-02 Jan Hubicka <jh@suse.cz>
23543
23544 PR middle-end/44295
23545 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
23546 create new cgraph node to check callee.
23547
23548 2010-06-02 Richard Guenther <rguenther@suse.de>
23549
23550 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
23551
23552 2010-06-02 Richard Guenther <rguenther@suse.de>
23553
23554 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
23555 (lto_wrapper_cleanup): ... this. Do not exit.
23556 (fatal): Adjust. Exit here.
23557 (fatal_perror): Likewise.
23558 (fatal_signal): New function.
23559 (main): Set up signal handlers to cleanup temporary files.
23560 * Makefile.in (lto-wrapper.o): Adjust dependencies.
23561
23562 2010-06-02 Richard Guenther <rguenther@suse.de>
23563
23564 PR tree-optimization/44377
23565 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
23566
23567 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23568
23569 * config/s390/2097.md (z10_fhex): Remove insn reservation.
23570 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
23571 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
23572 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
23573 instruction.
23574 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
23575
23576 2010-06-02 Jan Hubicka <jh@suse.cz>
23577
23578 * bitmap.c (bitmap_descriptor): Add search_iter.
23579 (bitmap_find_bit): Increment it.
23580 (print_statistics): Print it.
23581
23582 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
23583
23584 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
23585 instead of gimple_build_call_vec. Delete unnecessary local variable.
23586
23587 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
23588
23589 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
23590 change from yesterday.
23591
23592 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
23593
23594 * c-ada-spec.c: Clean up redundant includes.
23595
23596 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
23597
23598 * gimplify.c: Do not include except.h and optabs.h.
23599 (gimplify_body): Do not initialize RTL profiling.
23600 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
23601 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
23602 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
23603 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
23604 langhooks.h.
23605
23606 * tree-pretty-print.h: Include pretty-print.h.
23607 * gimple-pretty-print.h: Include pretty-print.h.
23608
23609 * tree-pretty-print.c: Do not include diagnostic.h.
23610 * tree-vrp.c: Likewise.
23611 * tree-tailcall.c: Likewise
23612 * tree-scalar-evolution.c: Likewise
23613 * tree-ssa-dse.c: Likewise
23614 * tree-chrec.c: Likewise
23615 * tree-ssa-sccvn.c: Likewise
23616 * tree-ssa-copyrename.c: Likewise
23617 * tree-nomudflap.c: Likewise
23618 * tree-call-cdce.c: Likewise
23619 * tree-stdarg.c: Likewise
23620 * tree-ssa-math-opts.c: Likewise
23621 * tree-nrv.c: Likewise
23622 * tree-ssa-sink.c: Likewise
23623 * tree-browser.c: Likewise
23624 * tree-ssa-loop-ivcanon.c: Likewise
23625 * tree-ssa-loop.c: Likewise
23626 * tree-parloops.c: Likewise
23627 * tree-ssa-address.c: Likewise
23628 * tree-ssa-ifcombine.c: Likewise
23629 * tree-if-conv.c: Likewise
23630 * tree-data-ref.c: Likewise
23631 * tree-affine.c: Likewise
23632 * tree-ssa-phiopt.c: Likewise
23633 * tree-ssa-coalesce.c: Likewise
23634 * tree-ssa-pre.c: Likewise
23635 * tree-ssa-live.c: Likewise
23636 * tree-predcom.c: Likewise
23637 * tree-ssa-forwprop.c: Likewise
23638 * tree-ssa-dce.c: Likewise
23639 * tree-ssa-ter.c: Likewise
23640 * tree-ssa-loop-prefetch.c: Likewise
23641 * tree-optimize.c: Likewise
23642 * tree-ssa-phiprop.c: Likewise
23643 * tree-object-size.c: Likewise
23644 * tree-outof-ssa.c: Likewise
23645 * tree-ssa-structalias.c: Likewise
23646 * tree-switch-conversion.c: Likewise
23647 * tree-ssa-reassoc.c: Likewise
23648 * tree-ssa-operands.c: Likewise
23649 * tree-vectorizer.c: Likewise
23650 * tree-vect-data-refs.c: Likewise
23651 * tree-vect-generic.c: Likewise
23652 * tree-vect-stmts.c: Likewise
23653 * tree-vect-patterns.c: Likewise
23654 * tree-vect-slp.c: Likewise
23655 * tree-vect-loop.c: Likewise
23656 * tree-ssa-loop-ivopts.c: Likewise
23657 * tree-ssa-loop-im.c: Likewise
23658 * tree-ssa-loop-niter.c: Likewise
23659 * tree-ssa-loop-unswitch.c: Likewise
23660 * tree-ssa-loop-manip.c: Likewise
23661 * tree-ssa-loop-ch.c: Likewise
23662 * tree-dump.c: Likewise
23663 * tree-complex.c: Likewise
23664
23665 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
23666 * tree-ssa-uninit.c: Likewise
23667 * tree-ssa-threadupdate.c: Likewise
23668 * tree-ssa-uncprop.c: Likewise
23669 * tree-ssa-ccp.c: Likewise
23670 * tree-ssa-dom.c: Likewise
23671 * tree-ssa-propagate.c: Likewise
23672 * tree-ssa-alias.c: Likewise
23673 * tree-dfa.c: Likewise
23674 * tree-cfgcleanup.c: Likewise
23675 * tree-sra.c: Likewise
23676 * tree-ssa-copy.c: Likewise
23677 * tree-ssa.c: Likewise
23678 * tree-profile.c: Likewise
23679 * tree-cfg.c: Likewise
23680 * tree-ssa-threadedge.c: Likewise
23681 * tree-vect-loop-manip.c: Likewise
23682
23683 * tree-inline.c: Do not include diagnostic.h and expr.h.
23684 Include rtl.h.
23685 (copy_decl_for_dup_finish): Do not use NULL_RTX.
23686
23687 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
23688 * tree-loop-distribution.c: Likewise.
23689
23690 2010-06-01 Jan Hubicka <jh@suse.cz>
23691
23692 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
23693
23694 2010-06-01 Jan Hubicka <jh@suse.cz>
23695
23696 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
23697 remove return value.
23698 (split_bbs_on_noreturn_calls) .... here.
23699 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
23700 * tree-flow.h (fixup_noreturn_call): New.
23701
23702 2010-06-01 Jan Hubicka <jh@suse.cz>
23703
23704 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
23705
23706 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
23707
23708 * tree.h (build_nt_call_list): Delete.
23709 * tree.c (build_nt_call_list): Delete.
23710
23711 2010-06-01 Jan Hubicka <jh@suse.cz>
23712
23713 * fwprop.c: Make emit-rtl.h include last.
23714 * rtlanal.c: Include emit-rtl.h.
23715 * genautomata.c: Output emit-rtl include into insn-automata.c
23716 * df-scan.c: Include emit-rtl.h.
23717 * haifa-sched.c: Indlude emit-rtl.h.
23718 * mode-switching.c: Indlude emit-rtl.h.
23719 * graph.c: Indlude emit-rtl.h.
23720 * sel-sched.c: Include emit-rtl.h.
23721 * sel-sched-ir.c: Include emit-rtl.h.
23722 * ira-build.c: Include emit-rtl.h.
23723 * emit-rtl.c (first_insn, last_insn): Remove defines.
23724 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
23725 Move to emit-rtl.h.
23726 (set_new_first_and_last_insn, get_last_insn_anywhere,
23727 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
23728 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
23729 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
23730 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
23731 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
23732 Use accessor functions.
23733 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23734 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23735 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23736 mem_expr_equal_p): Move here from rtl.h.
23737 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
23738 Move here from emit-rtl.c; make inline.
23739 * cfglayout.h: Include emit-rtl.h.
23740 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23741 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23742 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23743 mem_expr_equal_p, get_insns, set_first-insn,
23744 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
23745 * reg-stack.c: Include emit-rtl.h.
23746 * dce.c: Likewise.
23747
23748 2010-06-01 Jan Hubicka <jh@suse.cz>
23749
23750 * cgraph.h (tree_function_versioning): Update prototype.
23751 (cgraph_function_versioning): Update prototype.
23752 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
23753 bitmap.
23754 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
23755 (cgraph_materialize_clone, save_inline_function_body): Update use of
23756 tree_function_versioning.
23757 * tree-inline.c (copy_bb): Look for previous copied block to link
23758 after; fix debug output.
23759 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
23760 (copy_body): Likewise.
23761 (expand_call_inline): Update use of copy_body.
23762 (tree_function_versioning): Update use of copy body; accept
23763 blocks_to_copy and new_entry.
23764
23765 2010-06-01 Jan Hubicka <jh@suse.cz>
23766
23767 * gegenrtl.c: Remove unnecesary prototypes.
23768 (gendecl): Remove.
23769 (gendef): Produce static inline.
23770 (gencode): Remove.
23771 (main): Do not decode parameters; generate header only.
23772 * Makefile.in (genrtl.c): Remove.
23773
23774 2010-06-01 Jan Hubicka <jh@suse.cz>
23775
23776 * tree-switch-conversion.c (build_one_array): Make it readonly.
23777
23778 2010-06-01 Richard Guenther <rguenther@suse.de>
23779
23780 * optabs.c (init_optabs): Guard all accesses to reinit.
23781 * ipa-pure-const.c (propagate): Fix another typo.
23782 * opts.c (common_handle_option): Split assignment to bool.
23783 * c-opts.c (c_common_handle_option): Likewise.
23784
23785 2010-06-01 Arnaud Charlet <charlet@adacore.com>
23786 Matthew Gingell <gingell@adacore.com>
23787
23788 * doc/invoke.texi: Mention -fdump-ada-spec.
23789 * tree-dump.c (dump_files): Add ada-spec.
23790 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
23791 * tree-pass.h (tree_dump_index): Add TDI_ada.
23792 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
23793 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
23794 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
23795 * c-decl.c: Include c-ada-spec.h.
23796 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
23797 functions.
23798 (c_write_global_declarations): Add handling of -fdump-ada-spec.
23799 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
23800 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
23801 * c-ada-spec.h, c-ada-spec.c: New files.
23802
23803 2010-06-01 Richard Guenther <rguenther@suse.de>
23804
23805 PR lto/43853
23806 * ipa-pure-const.c (get_function_state): Hand back varying state
23807 if we do not have one.
23808 (has_function_state): New function.
23809 (duplicate_node_data): Adjust.
23810 (remove_node_data): Likewise.
23811 (pure_const_write_summary): Likewise.
23812 (propagate): Likewise. Fix typo.
23813
23814 2010-06-01 Jan Hubicka <jh@suse.cz>
23815
23816 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
23817 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
23818 (execute_all_ipa_transforms): Do not play with the states.
23819
23820 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
23821
23822 * config/arm/t-linux-androideabi: New.
23823 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
23824
23825 2010-06-01 Jan Hubicka <jh@suse.cz>
23826
23827 * tree-inline.c (estimate_num_insns): For stdarg functions look
23828 into call statement to count cost of argument passing.
23829
23830 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
23831
23832 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
23833 argument for fprintf.
23834 (ix86_output_addr_diff_elt): Likewise.
23835 (x86_function_profiler): Likewise.
23836 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
23837 (LPREFIX): Likewise.
23838 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
23839
23840 2010-05-31 Jakub Jelinek <jakub@redhat.com>
23841
23842 PR target/44338
23843 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
23844 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
23845 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
23846 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
23847 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
23848 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
23849 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
23850 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
23851 TARGET_FUSED_MADD.
23852
23853 2010-05-31 Jan Hubicka <jh@suse.cz>
23854
23855 * tree.h (tree_range_check_failed): Declare noreturn.
23856
23857 2010-05-31 Jan Hubicka <jh@suse.cz>
23858
23859 * gimple.c (gimple_call_builtin_p): New function.
23860 * gimple.h (gimple_call_builtin_p): Declare.
23861 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
23862 to exit.
23863 (execute_warn_function_return): BUILT_IN_RETURN is return.
23864 (split_critical_edges): Return edges are not critical.
23865 (is_ctrl_altering_stmt): Builtin_in_return is altering.
23866 (gimple_verify_flow_info): Handle built_in_return.
23867 (execute_warn_function_return): Handle built_in_return.
23868 * ipa-pure-const.c (check_call): Ignore builtin_return.
23869
23870 2010-05-31 Jakub Jelinek <jakub@redhat.com>
23871
23872 PR middle-end/44337
23873 * expr.c (expand_assignment): Don't store anything for out-of-bounds
23874 array accesses with non-MEM.
23875
23876 PR tree-optimization/44182
23877 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
23878 newly needs to end a bb is followed by debug stmts, instead return
23879 true from the function at the end.
23880 (maybe_move_debug_stmts_to_successors): New function.
23881 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
23882
23883 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
23884
23885 PR target/44161
23886 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
23887
23888 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
23889
23890 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
23891 for nested functions in non-optimized compilation.
23892
23893 2010-05-31 Richard Guenther <rguenther@suse.de>
23894
23895 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
23896
23897 2010-05-30 Jan Hubicka <jh@suse.cz>
23898
23899 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
23900
23901 2010-05-30 Richard Guenther <rguenther@suse.de>
23902
23903 PR lto/42975
23904 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
23905 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
23906 no longer needed.
23907
23908 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
23909
23910 * config/darwin.c (output_objc_section_asm_op): Add comment.
23911 (name_needs_quotes): Add '_' to list of valid comment chars.
23912 (machopic_output_function_base_name): Remove unneeded quotes.
23913 (darwin_encode_section_info): Adjust asm whitespace.
23914 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
23915 (ASM_OUTPUT_LOCAL): Ditto.
23916 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
23917 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
23918 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
23919
23920 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
23921
23922 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
23923 RS6000_OUTPUT_BASENAME unconditionally.
23924 (rs6000_output_function_epilogue): Likewise.
23925
23926 2010-05-30 Jan Hubicka <jh@suse.cz>
23927
23928 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
23929 nodes.
23930
23931 2010-05-30 Richard Guenther <rguenther@suse.de>
23932
23933 * tree-cfg.c (verify_gimple_assign_single): Implement
23934 verification for COND_EXPR rhs.
23935
23936 2010-05-30 Jan Hubicka <jh@suse.cz>
23937
23938 * cgraph.h (cgraph_dump_file): Declare.
23939 * cgraphunit.c (cgraph_dump_file): Export.
23940 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
23941
23942 2010-05-30 Jan Hubicka <jh@suse.cz>
23943
23944 * dwarf2out.c (reference_to_unused,
23945 premark_types_used_by_global_vars_helper): Avoid creation of new
23946 varpool nodes.
23947
23948 2010-05-30 Jan Hubicka <jh@suse.cz>
23949
23950 * cgraph.h (cgraph_node_cannot_return,
23951 cgraph_edge_cannot_lead_to_return): New functions.
23952 * cgraph.c (cgraph_node_cannot_return,
23953 cgraph_edge_cannot_lead_to_return): Use them.
23954 * ipa-pure-const.c (pure_const_names): New static var.
23955 (check_call): Handle calls not leading to return.
23956 (pure_const_read_summary): Dump info read.
23957 (propagate): Dump info about propagation process; ignore side effects
23958 of functions not leading to exit; fix handling of pure functions.
23959
23960 2010-05-30 Jan Hubicka <jh@suse.cz>
23961
23962 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
23963 for tail call epilogues.
23964
23965 2010-05-30 Jan Hubicka <jh@suse.cz>
23966
23967 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
23968 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
23969 dump files.
23970
23971 2010-05-29 Jan Hubicka <jh@suse.cz>
23972
23973 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
23974 node; remove references in node we no longer keep in cgrpah but need
23975 body of.
23976
23977 2010-05-29 Jan Hubicka <jh@suse.cz>
23978
23979 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
23980
23981 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23982
23983 PR target/44165
23984 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
23985
23986 2010-05-29 Jan Hubicka <jh@suse.cz>
23987
23988 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
23989 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
23990 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
23991 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
23992 debug_names_replaced_by, debug_update_ssa): Likewise.
23993 * sbitmap.c (debug_sbitmap): Likewise.
23994 * genrecog.c (debug_decision, debug_decision_list): Likewise.
23995 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
23996 debug_tree_chain): Likewise.
23997 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
23998 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
23999 * optabs.c (debug_optab_libfuncs): Likewise.
24000 (verify_loop_closed_ssa): Likewise.
24001 * value-prof.c (verify_histograms): Likewise.
24002 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
24003 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
24004 * cfghooks.c (verify_flow_info): Likewise.
24005 * fold-const.c (debug_fold_checksum): Likewise.
24006 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
24007 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
24008 Likewise.
24009 * omega.c (debug_omega_problem): Likewise.
24010 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
24011 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
24012 * dominance.c (verify_dominators, debug_dominance_info,
24013 debug_dominance_tree): Likewise.
24014 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
24015 * df_regno_debug, df_ref_debug,
24016 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
24017 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
24018 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
24019 * sel-sched.c (debug_state): Likewise.
24020 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
24021 Likewise.
24022 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
24023 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
24024 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
24025 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
24026 Likewise.
24027 * c-pretty-print.c (debug_c_tree): Likewise.
24028 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
24029 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
24030 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
24031 * ebitmap.c (debug_ebitmap): Likewise.
24032 * function.c (debug_find_var_in_block_tree): Likewise.
24033 * print-rtl.c (debug_rtx): Likewise.
24034 (debug_rtx_count): Likewise.
24035 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
24036 * stor-layout.c (debug_rli): Likewise.
24037 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
24038 * tree-data-ref.c (debug_data_references,
24039 debug_data_dependence_relations, debug_data_reference,
24040 debug_data_dependence_relation, debug_rdg_vertex,
24041 debug_rdg_component, debug_rdg): Likewise.
24042 * tree-affine.c (debug_aff): Likewise.
24043 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
24044 Likewise.
24045 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
24046 * emit-rtl.c (verify_rtl_sharing): Likewise.
24047 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
24048 debug_value_expressions): Likewise.
24049 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
24050 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
24051 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
24052 * cfglayout.c (verify_insn_chain): Likewise.
24053 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
24054 debug_clast_stmt, debug_generated_program): Likewise.
24055 * ggc-page.c (debug_print_page_list): Likewise.
24056 * tree-ssa-ter.c (debug_ter): Likewise.
24057 * graphite-dependences.c (debug_pddr): Likewise.
24058 * sched-deps.c (debug_ds): Likewise.
24059 * tree-ssa.c (verify_ssa): Likewise.
24060 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
24061 debug_scattering_functions, debug_iteration_domains, debug_pdr,
24062 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
24063 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
24064 * tree-inline.c (debug_find_tree): Likewise.
24065 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
24066 debug_ppl_powerset_matrix): Likewise.
24067 * var-tracking.c (debug_dv): Likewise.
24068 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
24069 * cfgloop.c (verify_loop_structure): Likewise.
24070 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
24071 * c-common.c (verify_sequence_points): Likewise.
24072 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
24073 debug_candidates, debug_rgn_dependencies): Likewise.
24074 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
24075 * debug_constraint_graph, debug_solution_for_var,
24076 debug_sa_points_to_info): Likewise.
24077 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
24078 Likewie.
24079 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
24080 debug_loops, debug_loop, debug_loop_num): Likewise.
24081 * passes.c (debug_pass): Likewise.
24082 (dump_properties): Likewise; add cfglayout property.
24083 (debug_properties): Likewise.
24084 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
24085 * varpool.c (debug_varpool): Likewise.
24086 * regcprop.c (debug_value_data): Likewise.
24087 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
24088 debug_immediate_uses_for): Likewise.
24089
24090 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
24091
24092 PR bootstrap/44315
24093 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
24094 Filter out insn-flags.h.
24095
24096 2010-05-29 Jan Hubicka <jh@suse.cz>
24097
24098 * cgraph.h (struct varpool_node_set_def,
24099 struct cgraph_node_set_def): Remove unused AUX pointer.
24100 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
24101 VEC_empty macro.
24102
24103 2010-05-29 Jan Hubicka <jh@suse.cz>
24104
24105 PR middle-end/44324
24106 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
24107
24108 2010-05-29 Richard Guenther <rguenther@suse.de>
24109
24110 * lto-streamer.c (cached_bp): New global variable.
24111 (bitpack_create): Return the cached bitpack, if available.
24112 (bitpack_delete): Clear and cache the bitpack, if appropriate.
24113 (bp_pack_value): Remove redundant asserts.
24114
24115 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
24116
24117 PR middle-end/44306
24118 * tree-if-conv.c (is_true_predicate): New.
24119 (is_predicated): Use is_true_predicate.
24120 (add_to_predicate_list): Same. Do not use unshare_expr.
24121 (add_to_dst_predicate_list): Same.
24122
24123 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
24124
24125 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
24126 field on edges.
24127 (predicate_bbs): Same.
24128 (clean_predicate_lists): Same.
24129 (find_phi_replacement_condition): Do not AND the predicate from
24130 edge->aux.
24131
24132 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
24133
24134 PR bootstrap/44315
24135 * Makefile.in (build/gencondmd.o): Add a missing `\'.
24136
24137 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24138
24139 PR target/44261
24140 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
24141 (negdf2): Adjust expander pattern and use negdf2_slow.
24142 (negsf2): Likewise.
24143
24144 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
24145
24146 * basic-block.h (struct control_flow_graph): Move last_label_uid field
24147 up.
24148 * df.h (struct df_base_ref): Move regno field up.
24149 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
24150 * expr.h (struct separate_ops): Move location field up.
24151 * optabs.h (struct optab_d): Move libcall_basename field down.
24152 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
24153 * config/i386/i386.h (struct machine_function): Convert call_abi field
24154 into a bitfield. Move cfa field to the end of the structure.
24155
24156 2010-05-29 Jan Hubicka <jh@suse.cz>
24157
24158 * varpool.c (varpool_get_node): Fix lookup.
24159
24160 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24161
24162 * config/spu/spu-protos.h: Do not include rtl.h. Protect
24163 RTL specific prototypes with #ifdef RTX_CODE.
24164 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
24165 * config/spu/t-spu-elf: Fix dependencies.
24166
24167 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
24168
24169 2010-05-29 Mike Stump <mikestump@comcast.net>
24170
24171 PR bootstrap/44315
24172 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
24173 TM_H when building to avoid dependency loops.
24174
24175 2010-05-29 Jan Hubicka <jh@suse.cz>
24176
24177 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
24178 refs and body; not the whole node for masters of materialized clones.
24179
24180 2010-05-29 Mike Stump <mikestump@comcast.net>
24181
24182 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
24183
24184 2010-05-29 Jan Hubicka <jh@suse.cz>
24185
24186 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
24187 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
24188 use of clone_function_name.
24189 * cgraph.h (cgraph_create_virtual_clone,
24190 cgraph_function_versioning): update prototypes.
24191 (clone_function_name): Declare.
24192 * ipa-cp.c (ipcp_insert_stage): Update call of
24193 cgraph_create_virtual_clone.
24194 * omp-low.c (create_omp_child_function_name): Use
24195 cgraph_create_virtual_clone.
24196 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
24197 (cgraph_function_versioning): Take SUFFIX argument; produce new name
24198 and make decl local.
24199
24200 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24201
24202 * vec.h: Include statistics.h
24203 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
24204 with VEC_H.
24205
24206 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24207
24208 * c-lex.c: Do not include c-tree.h.
24209 * c-pretty-print.c: Likewise.
24210 * c-opts.c: Likewise.
24211 * c-gimplify.c: Likewise.
24212 * c-common.c: Likewise.
24213 * c-dump.c: Likewise. Include c-common.h.
24214
24215 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24216
24217 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
24218 before including diagnostic-core.h.
24219 (c_cpp_error): New prototype moved from c-tree.h.
24220 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
24221 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
24222 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
24223 (c_cpp_error): Prototype moved to c-common.h.
24224 * Makefile.in: Update dependency for C_COMMON_H.
24225
24226 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
24227
24228 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
24229 * c-common.c (c_register_addr_space): Remove here.
24230 * c-decl.c (c_register_addr_space): Re-add here.
24231
24232 2010-05-28 Mike Stump <mikestump@comcast.net>
24233
24234 * config/darwin-c.c: Remove c-tree.h include.
24235
24236 2010-05-28 Joseph Myers <joseph@codesourcery.com>
24237
24238 * gcc.c: Include diagnostic.h.
24239 (error_count): Remove. All users changed to use errorcount.
24240 (programname): Remove. All users changed to use progname.
24241 (fancy_abort, internal_error, fatal_error, error, warning, inform,
24242 fnotice): Remove.
24243 (execute): Don't include "Internal error" and bug reporting
24244 information in argument of internal_error call.
24245 (process_command): Don't increment error_count after calling
24246 perror_with_name.
24247 (input_filename): Rename to gcc_input_filename. All users
24248 changed.
24249 (main): Call diagnostic_initialize. Register delete_temp_files
24250 with atexit. Use seen_error to test for errors.
24251 * gcc.h: Include diagnostic-core.h.
24252 (fatal_error, error, warning): Remove.
24253 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
24254 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
24255 (gcc.o): Update dependencies.
24256
24257 2010-05-28 Jeff Law <law@redhat.com>
24258
24259 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
24260 functions.
24261 * ira.h (ira_bad_reload_regno): Declare
24262 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
24263
24264 * ira-color.c (update_curr_costs): Free updated hard reg costs.
24265 (ira_reassign_conflict_allocnos): Remove bogus asserts.
24266 (allocno_reload_assign): Likewise.
24267
24268 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
24269
24270 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
24271 build1_stat.
24272
24273 2010-05-28 Richard Guenther <rguenther@suse.de>
24274
24275 PR lto/44312
24276 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
24277 Stream fixed-point constants mode.
24278 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
24279 and TYPE_PRECISION.
24280 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
24281 Stream fixed-point constants mode.
24282 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
24283 and TYPE_PRECISION.
24284
24285 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
24286
24287 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
24288 only place it was called from.
24289 (number_of_latch_executions): Do not return chrec_dont_know when the
24290 may_be_zero is a runtime condition: instead, return a COND_EXPR
24291 including the may_be_zero condition.
24292 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
24293 of nb_iterations.
24294 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
24295 COND_EXPRs.
24296
24297 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
24298
24299 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
24300 generate COND_EXPRs for degenerate_phi_result.
24301
24302 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
24303
24304 PR middle-end/44293
24305 * tree-if-conv.c (if_convertible_loop_p): Check the
24306 if-convertibility of phi nodes in non predicated BBs.
24307
24308 2010-05-28 Joseph Myers <joseph@codesourcery.com>
24309
24310 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
24311
24312 2010-05-28 Joseph Myers <joseph@codesourcery.com>
24313
24314 PR driver/15303
24315 * gcc.c (inform, warning, inform): New functions.
24316 (fatal_ice): Rename to internal_error; change cmsgid parameter to
24317 gmsgid. All callers changed.
24318 (notice): Rename to fnotice; add parameter fp. All callers changed.
24319 (fatal_error): Rename to fatal_signal. All users changed.
24320 (fatal): Rename to fatal_error; change cmsgid parameter to
24321 gmsgid. All callers changed.
24322 (process_command): Use warning instead of error for warnings.
24323 (end_going_arg): Don't use _() around argument of error.
24324 (do_spec_1): Use inform for message from %n specs. Use warning
24325 instead of error for warnings.
24326 (main): Use inform for comparison messages. Use warning for
24327 message about unused linker input.
24328 (error): Increment error_count. Print "error: ".
24329 * gcc.h (fatal): Change to fatal_error.
24330 (warning): Declare.
24331 * config/darwin-driver.c (darwin_default_min_version): Use warning
24332 instead of fprintf for warnings.
24333 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
24334
24335 2010-05-28 Julian Brown <julian@codesourcery.com>
24336
24337 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
24338 (*thumb2_addsi3_compare0_scratch): New.
24339 * config/arm/constraints.md (Pv): New.
24340 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
24341 for ARM mode only.
24342 (*addsi3_compare0_scratch): Likewise.
24343
24344 2010-05-28 Jan Hubicka <jh@suse.cz>
24345
24346 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
24347 check.
24348 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
24349 only on local statics.
24350
24351 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
24352
24353 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
24354
24355 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
24356
24357 PR bootstrap/44314
24358 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
24359 (OPTION_GLIBC): Define.
24360
24361 2010-05-28 Jakub Jelinek <jakub@redhat.com>
24362
24363 PR debug/41048
24364 * dwarf2out.c (double_int_type_size_in_bits): New function.
24365 (round_up_to_align): Change first argument and return value to
24366 double_int.
24367 (field_byte_offset): Work internally on double_ints.
24368
24369 PR target/43636
24370 * builtins.c (expand_movstr): Use a temporary pseudo instead
24371 of target even when target is not NULL and not const0_rtx, but
24372 fails movstr predicate.
24373 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
24374
24375 2010-05-28 Joseph Myers <joseph@codesourcery.com>
24376
24377 * final.c (rest_of_clean_state): Use %m in errors instead of
24378 strerror (errno).
24379 * gengtype.c (read_input_list, close_output_files): Use xstrerror
24380 instead of strerror.
24381 * toplev.c (process_options): Use %m in errors instead of strerror
24382 (errno).
24383 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
24384 (errno).
24385
24386 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
24387
24388 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
24389 (ix86_canonical_va_list_type): Make static. Add declaration.
24390 (ix86_enum_va_list): Make static. Reindent.
24391 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
24392 (ix86_canonical_va_list_type): Ditto.
24393 (ix86_enum_va_list): Ditto.
24394
24395 2010-05-28 Richard Guenther <rguenther@suse.de>
24396
24397 * lto-wrapper.c (run_gcc): With -save-temps generate a
24398 user-visible ltrans filename. Fixup ltrans unit numbering.
24399
24400 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
24401
24402 * c-common.c (c_common_nodes_and_builtins): Replace use
24403 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
24404 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
24405 to ix86_enum_va_list.
24406 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
24407 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
24408 (TARGET_ENUM_VA_LIST_P): Add hook description.
24409 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
24410 * target.h (gcc_target): Add enum_va_list hook.
24411
24412 PR bootstrap/44299
24413 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
24414 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
24415 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
24416
24417 2010-05-28 Alan Modra <amodra@gmail.com>
24418
24419 PR target/44266
24420 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
24421 emit_library_call machinery to set up __tls_get_addr calls.
24422
24423 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24424
24425 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
24426
24427 2010-05-28 Dodji Seketeli <dodji@redhat.com>
24428
24429 Revert fix for PR c++/44188
24430 * c-common.c (is_typedef_decl): Revert the moving of this
24431 definition ...
24432 * tree.c (is_typedef_decl): ... here.
24433 (typdef_variant_p): Revert the moving of this definition
24434 here from cp/tree.c.
24435 * c-common.h (is_typedef_decl): Revert the moving of this
24436 declaration ...
24437 * tree.h (is_typedef_decl): ... here.
24438 (typedef_variant_p): Revert the moving of this declaration here
24439 from cp/cp-tree.h
24440 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
24441 (gen_tagged_type_die): Revert the splitting out of ...
24442 (gen_type_die_with_usage): ... this function. Revert the anonymous
24443 tagged type handling.
24444 (gen_typedef_die): Revert emitting DW_TAG_typedef for
24445 typedefs naming anonymous tagged types.
24446
24447 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
24448
24449 * config/rs6000/rs6000-modes.def (PSImode): Delete.
24450
24451 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
24452
24453 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
24454 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
24455 throughout.
24456 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
24457 "xer" to "ca".
24458 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
24459 XER_REGS to CA_REGS throughout.
24460 * config/rs6000/rs6000.h: Same.
24461 (ADDITIONAL_REGISTER_NAMES): Add "xer".
24462 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
24463 that mode_iterator "P" is the size for arithmetic carries as well.
24464 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
24465
24466 2010-05-28 Jakub Jelinek <jakub@redhat.com>
24467
24468 PR bootstrap/44255
24469 * combine.c (struct rtx_subst_pair): Define unconditionally.
24470 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
24471 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
24472 Call make_compound_operation on pair->to.
24473 (propagate_for_debug): Don't call make_compound_operation here.
24474 Always use simplify_replace_fn_rtx.
24475
24476 2010-05-27 Sterling Augustine <sterling@tensilica.com>
24477
24478 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
24479 * config/xtensa/xtensa.c (override_options): Check
24480 TARGET_FORCE_NO_PIC and set flag_pic.
24481 * config/xtensa/xtensa.opt: Document -mforce-no-pic
24482
24483 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
24484
24485 PR bootstrap/44299
24486 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
24487 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
24488
24489 2010-05-27 Joseph Myers <joseph@codesourcery.com>
24490
24491 * diagnostic-core.h: New. Contents moved from diagnostic.h and
24492 toplev.h.
24493 * diagnostic.c: Don't include toplev.h.
24494 (progname): Define. Moved from toplev.c.
24495 (seen_error): New function.
24496 * diagnostic.h: Include diagnostic-core.h.
24497 (diagnostic_t, emit_diagnostic): Don't declare here.
24498 * toplev.c (progname): Move to toplev.c.
24499 (emit_debug_global_declarations, compile_file, finalize,
24500 do_compile, toplev_main): Use seen_error.
24501 * toplev.h: Include diagnostic-core.h.
24502 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
24503 internal_error, warning, warning_at, error, error_n, error_at,
24504 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
24505 verbatim, fnotice, progname): Move to diagnostic-core.h.
24506 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
24507 (expand_builtin_expect): Use seen_error.
24508 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
24509 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
24510 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
24511 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
24512 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
24513 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
24514 errorcount for errors.
24515 * c-opts.c (c_common_finish): Use seen_error.
24516 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24517 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
24518 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
24519 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
24520 (get_coverage_counts): Use seen_error.
24521 * dwarf2out.c (dwarf2out_finish): Use seen_error.
24522 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
24523 gimplify_body): Use seen_error.
24524 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
24525 * ipa-pure-const.c (gate_pure_const): Use seen_error.
24526 * ipa-reference.c (gate_reference): Use seen_error.
24527 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
24528 * lambda-code.c: Include diagnostic-core.h instead of
24529 diagnostic.h.
24530 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24531 * lto-compress.c: Include diagnostic-core.h instead of
24532 diagnostic.h.
24533 * lto-section-in.c: Include diagnostic-core.h instead of
24534 diagnostic.h.
24535 * lto-streamer-out.c: Include diagnostic-core.h instead of
24536 diagnostic.h.
24537 * lto-streamer.c: Include diagnostic-core.h instead of
24538 diagnostic.h.
24539 (gate_lto_out): Use seen_error.
24540 * matrix-reorg.c: Include diagnostic-core.h instead of
24541 diagnostic.h.
24542 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
24543 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
24544 (gate_expand_omp, lower_omp_1): Use seen_error.
24545 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
24546 (rest_of_decl_compilation, rest_of_type_compilation,
24547 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
24548 * tree-cfg.c (label_to_block_fn): Use seen_error.
24549 * tree-inline.c (optimize_inline_calls): Use seen_error.
24550 * tree-mudflap.c (mudflap_finish_file): Use
24551 seen_error.
24552 * tree-optimize.c (gate_all_optimizations,
24553 gate_all_early_local_passes, gate_all_early_optimizations): Use
24554 seen_error.
24555 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
24556 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
24557 (varpool_remove_unreferenced_decls,
24558 varpool_assemble_pending_decls): Use seen_error.
24559 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
24560 (TOPLEV_H, DIAGNOSTIC_H): Update.
24561 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
24562 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
24563 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
24564 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
24565 coverage.o, lambda-code.o): Update dependencies.
24566
24567 2010-05-25 Dodji Seketeli <dodji@redhat.com>
24568
24569 PR c++/44188
24570 * c-common.c (is_typedef_decl): Move this definition ...
24571 * tree.c (is_typedef_decl): ... here.
24572 (typdef_variant_p): Move definition here from cp/tree.c.
24573 * c-common.h (is_typedef_decl): Move this declaration ...
24574 * tree.h (is_typedef_decl): ... here.
24575 (typedef_variant_p): Move declaration here from cp/cp-tree.h
24576 * dwarf2out.c (is_naming_typedef_decl): New function.
24577 (gen_tagged_type_die): Split out of ...
24578 (gen_type_die_with_usage): ... this function. When an anonymous
24579 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24580 is emitted for the typedef.
24581 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24582 anonymous tagged types.
24583
24584 2010-05-27 Jason Merrill <jason@redhat.com>
24585
24586 * print-tree.c (debug_vec_tree): New fn.
24587 (print_vec_tree): New fn.
24588 * tree.h: Declare them.
24589 * gdbinit.in (pvt): New command.
24590
24591 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
24592
24593 * gdbinit.in (pdd): New command.
24594
24595 2010-05-27 Jan Hubicka <jh@suse.cz>
24596
24597 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
24598 (update_caller_keys): Return early if there are no callers;
24599 only update fibheap when decresing the key.
24600 (update_callee_keys): Avoid recursion.
24601 (decide_inlining_of_small_functions): When badness does not match;
24602 re-insert into fibheap.
24603
24604 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
24605
24606 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
24607 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
24608 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
24609 (ALL_HOST_OBJS): Now a union of the above two.
24610 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
24611 all files in ALL_HOST_FRONTEND_OBJS.
24612 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
24613
24614 * c-common.c: Pretend to be a backend file by undefining
24615 IN_GCC_FRONTEND (still need rtl.h here).
24616
24617 2010-05-27 Jan Hubicka <jh@suse.cz>
24618
24619 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
24620 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
24621
24622 2010-05-27 Jan Hubicka <jh@suse.cz>
24623
24624 * sched-ebb.c: Rename struct deps to struct deps_desc.
24625 * ddg.c: Likewise.
24626 * sel-sched-ir.c: Likewise.
24627 * sched-deps.c: Likewise.
24628 * sched-int.h: Likewise.
24629 * sched-rgn.c: Likewise.
24630
24631 2010-05-27 Jon Beniston <jon@beniston.com>
24632
24633 PR 43726
24634 * config/lm32/lm32.h: Remove definition of
24635 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
24636
24637 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
24638
24639 PR lto/44230
24640 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
24641
24642 2010-05-27 Richard Guenther <rguenther@suse.de>
24643
24644 PR tree-optimization/44284
24645 * tree-vect-stmts.c (vectorizable_assignment): Handle
24646 sign-changing conversions as simple copy.
24647
24648 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
24649
24650 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
24651 Bionic C library.
24652 (__gthread_active_p): Check for pthread_create if compiling against
24653 Bionic C library.
24654
24655 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
24656
24657 Support compilation for Android platform. Reimplement -mandroid.
24658
24659 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
24660 (*android*): Set ANDROID_DEFAULT.
24661 (arm*-*-linux*): Include linux-android.h.
24662 (arm*-*-eabi*): Don't include previous -mandroid implementation.
24663 * config/arm/eabi.h: Remove, move Android-specific parts ...
24664 * config/linux-android.h: ... here. New file.
24665 * config/arm/eabi.opt: Rename to ...
24666 * config/linux-android.opt: ... this.
24667 (mandroid): Allow -mno-android option. Initialize based on
24668 ANDROID_DEFAULT.
24669 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
24670 Move logic to corresponding LINUX_TARGET_* macros.
24671 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
24672 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
24673 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
24674 Android definitions.
24675 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
24676 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
24677 Document.
24678
24679 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
24680
24681 Add support for Bionic C library
24682
24683 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
24684 macro.
24685 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
24686 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
24687
24688 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
24689 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
24690 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
24691 to support multiple C libraries. Handle Bionic.
24692 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
24693 (BIONIC_DYNAMIC_LINKER64): Define.
24694 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
24695 Update.
24696 (TARGET_HAS_SINCOS): Enable for Bionic.
24697
24698 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
24699 the last option specified on command line take effect.
24700 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
24701 (mbionic): New.
24702 (mglibc, muclibc): Update.
24703
24704 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
24705 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
24706 DEFAULT_LIBC.
24707
24708 * doc/invoke.texi (-mglibc, -muclibc): Update.
24709 (-mbionic): Document.
24710
24711 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24712
24713 * c-common.h (c_register_addr_space): Add prototype.
24714 (ADDR_SPACE_KEYWORD): Remove.
24715 * c-common.c (c_register_addr_space): New function.
24716 (c_addr_space_name): Reimplement.
24717 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
24718
24719 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
24720 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
24721
24722 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
24723 Remove TARGET_ADDR_SPACE_KEYWORDS.
24724
24725 2010-05-27 Joseph Myers <joseph@codesourcery.com>
24726
24727 * input.c: New file.
24728 * input.h (main_input_filename): Move declaration to toplev.h.
24729 * toplev.c (input_location, line_table): Move to input.c
24730 * toplev.h (main_input_filename): Move declaration from input.h.
24731 * tree.c (expand_location): Move to input.c.
24732 * Makefile.in (OBJS-common): Add input.o.
24733 (input.o): Add dependencies.
24734
24735 2010-05-27 Richard Guenther <rguenther@suse.de>
24736
24737 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
24738 for non-existant files.
24739 (fork_execute): Mark args_name file as deleted.
24740
24741 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
24742
24743 PR bootstrp/44287
24744 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
24745 (narrow_signed_type): Likewise.
24746
24747 2010-05-26 Jan Hubicka <jh@suse.cz>
24748
24749 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
24750 edge only when checking is enabled; check using former_clone_of;
24751 check inline clones too.
24752 (cgraph_materialize_clone): Record former_clone_of pointer.
24753 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
24754 combining redirections; dump args_to_skip bitmap
24755 (cgraph_materialize_all_clones): Do no redirection here.
24756 * ipa-inline.c (inline_transform): Do redirection here.
24757 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
24758 cheking only).
24759
24760 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
24761
24762 * config/avr/avr-c.c: Do not include regs.h.
24763 Include cpplib.h for cpp_define and tree.h for c-common.h.
24764 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
24765 * config/avr/t-avr: Fix dependencies for avr-c.o.
24766
24767 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
24768
24769 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
24770 string instead of SYMBOL_REF rtx.
24771 * rtl.h (set_stack_check_libfunc): Move prototype from here...
24772 * libfuncs.h: ...to here. Adjust for explow.c change.
24773
24774 2010-05-26 Joseph Myers <joseph@codesourcery.com>
24775
24776 * pretty-print.c: Don't include ggc.h.
24777 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
24778 (identifier_to_locale): Use them for allocation.
24779 * pretty-print.h (identifier_to_locale_alloc,
24780 identifier_to_locale_free): Declare.
24781 * toplev.c (alloc_for_identifier_to_locale): New.
24782 (general_init): Set identifier_to_locale_alloc and
24783 identifier_to_locale_free.
24784 * Makefile.in (pretty-print.o): Update dependencies.
24785
24786 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
24787
24788 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
24789 pointer types if they have different alignment or mode.
24790
24791 2010-05-26 Anatoly Sokolov <aesok@post.ru>
24792
24793 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24794 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24795 * config/sparc/sparc-protos.h (function_value): Remove declaration.
24796 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
24797 sparc_function_value_regno_p): New functions.
24798 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24799 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24800 (function_value): Rename to...
24801 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
24802 argument to 'outgoing'.
24803 (function_arg_record_value, function_arg_union_value,
24804 function_arg_vector_value): Update comment.
24805
24806 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
24807
24808 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
24809 (fde_needed_for_eh_p): New predicate.
24810 (output_call_frame_info): Use it throughout to decide whether FDEs
24811 are needed for EH purpose.
24812 (dwarf2out_begin_prologue): Reorder assignments.
24813
24814 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24815
24816 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
24817 special case loop->header.
24818 (is_predicated): New.
24819 (if_convertible_loop_p): Call it.
24820
24821 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24822
24823 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
24824 iterator in parameter. Do not generate code during the analysis.
24825 (tree_if_convert_cond_stmt): Removed.
24826 (tree_if_convert_stmt): Removed.
24827 (predicate_bbs): New.
24828 (if_convertible_loop_p): Call predicate_bbs.
24829 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
24830 now contains all the analysis part.
24831
24832 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24833
24834 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
24835 statements in the analysis part.
24836 (tree_if_convert_stmt): Update comment.
24837 (remove_conditions_and_labels): New.
24838 (combine_blocks): Call remove_conditions_and_labels.
24839 (tree_if_conversion): Update comment.
24840
24841 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24842
24843 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
24844 than 2 predecessors or more than 2 successors.
24845
24846 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24847
24848 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
24849 of loops in which the data dependence analysis fails.
24850
24851 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24852
24853 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
24854 CDI_POST_DOMINATORS.
24855 (tree_if_conversion): Same.
24856
24857 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24858
24859 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
24860
24861 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
24862
24863 * tree-if-conv.c: Update copyright years. Fix comments.
24864 Fix indentation.
24865
24866 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
24867
24868 * builtin-types.def (BT_INT128): New primitive type.
24869 (BT_UINT128): Likewise.
24870 * c-common.c (c_common_r): Add __int128 keyword.
24871 (c_common_type_for_size): Handle __int128.
24872 (c_common_type_for_mode): Likewise.
24873 (c_common_signed_or_unsigned_type): Likewise.
24874 (c_common_nodes_and_builtins): Add builtin type
24875 if target supports 128-bit integer scalar.
24876 * c-common.h (enum rid): Add RID_INT128.
24877 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
24878 if target supports 128-bit integer scalar.
24879 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
24880 (finish_declspecs): Likewise.
24881 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
24882 (c_token_starts_declspecs): Likewise.
24883 (c_parser_declspecs): Likewise.
24884 (c_parser_attributes): Likewise.
24885 (c_parser_objc_selector): Likewise.
24886 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
24887 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
24888 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
24889 * tree.c (make_or_reuse_type): Likewise.
24890 (make_unsigned_type): Likewise.
24891 (build_common_tree_nodes_2): Likewise.
24892 * tree.h (enum integer_type_kind): Add itk_int128 and
24893 itk_unsigned_int128.
24894 (int128_integer_type_node): New define.
24895 (int128_unsigned_type_node): New define.
24896 * doc/extend.texi: Add documentation about __int128 type.
24897
24898 2010-05-26 Richard Guenther <rguenther@suse.de>
24899
24900 * tree-ssa-sccvn.c (copy_nary): Adjust.
24901 (copy_phis): Rename to ...
24902 (copy_phi): ... this. Adjust.
24903 (copy_references): Rename to ...
24904 (copy_reference): ... this. Adjust.
24905 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
24906 result into the valid table.
24907
24908 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
24909
24910 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
24911 insn-config.h, insn-codes.h, recog.h, and optabs.h.
24912
24913 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24914
24915 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
24916
24917 2010-05-26 Richard Guenther <rguenther@suse.de>
24918
24919 * opts.c (common_handle_option): Handle OPT_Ofast.
24920
24921 2010-05-26 Joseph Myers <joseph@codesourcery.com>
24922
24923 * diagnostic.c: Don't include opts.h.
24924 (permissive_error_option): Define.
24925 (diagnostic_initialize): Take n_opts parameter. Allocate memory
24926 for classify_diagnostic. Don't use memset for
24927 classify_diagnostic. Initialize new and recently added fields.
24928 (diagnostic_classify_diagnostic): Use context->n_opts instead of
24929 N_OPTS.
24930 (diagnostic_report_diagnostic): Pass context parameter to
24931 diagnostic_report_warnings_p. Use option_enabled and option_name
24932 hooks from context.
24933 (emit_diagnostic): Use permissive_error_option.
24934 (permerror): Likewise.
24935 * diagnostic.h: Don't include options.h.
24936 (struct diagnostic_context): Add n_opts, opt_permissive,
24937 inhibit_warnings, warn_system_headers, option_enabled and
24938 option_name fields. Change classify_diagnostic to a pointer.
24939 * opts-diagnostic.h: New file.
24940 * opts.c: Include opts-diagnostic.h.
24941 (common_handle_option): Set global_dc fields for -Wfatal-errors,
24942 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
24943 (option_name): New function.
24944 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
24945 (c_common_handle_option): Set global_dc->permissive for
24946 -fpermissive.
24947 * c-common.c (c_cpp_error): Save and restore
24948 global_dc->warn_system_headers, not variable warn_system_headers.
24949 * toplev.c: Include opts-diagnostic.h.
24950 (general_init): Update call to diagnostic_initialize. Set
24951 global_dc->show_column, global_dc->option_enabled and
24952 global_dc->option_name.
24953 (process_options): Don't set global_dc fields here.
24954 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
24955 (diagnostic.o, opts.o, toplev.o): Update dependencies.
24956
24957 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
24958
24959 * config/picochip/picochip.md (movsi): Split a movsi from a
24960 const after reload.
24961
24962 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24963
24964 * ggc-zone.c: Update copyright year.
24965 (poison_region): Mark memory for Valgrind as undefined before
24966 memset () call and inaccessible afterwards.
24967 (ggc_pch_total_size): Change type of i to int.
24968
24969 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24970
24971 * ggc-common.c (ggc_free_overhead): Allow empty slot.
24972
24973 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24974
24975 * ggc-common.c: Update copyright year.
24976 (ggc_rlimit_bound): Remove prototype. Compile only if
24977 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
24978 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
24979 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
24980 (ggc_min_heapsize_heuristic): Likewise.
24981
24982 2010-05-26 Richard Guenther <rguenther@suse.de>
24983
24984 PR rtl-optimization/44164
24985 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
24986 no-common access-path disambiguation.
24987 (indirect_ref_may_alias_decl_p): Adjust.
24988 (indirect_refs_may_alias_p): Likewise.
24989 (refs_may_alias_p_1): Likewise.
24990
24991 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
24992
24993 * c-typeck.c: Do not include expr.h.
24994
24995 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
24996
24997 * rtl.h (decl_default_tls_model): Move prototype from here...
24998 * output.h: ...to here.
24999 * c-decl.c: Do not include rtl.h.
25000 * c-pragma.c: Likewise.
25001 * c-parser.c: Likewise.
25002 * c-gimplify.c: Likewise. And also not hard-reg-set.
25003 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
25004 FIXME note for it. Add a FIXME note for expr.h.
25005 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
25006 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
25007 defined.
25008
25009 2010-05-26 Jakub Jelinek <jakub@redhat.com>
25010
25011 PR target/44199
25012 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
25013 or total_size is larger than red zone size for non-V4 ABI, emit a
25014 stack_tie resp. frame_tie insn before stack pointer restore.
25015 * config/rs6000/rs6000.md (frame_tie): New insn.
25016
25017 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
25018
25019 * function.h (struct function): Add can_throw_non_call_exceptions bit.
25020 * lto-streamer-in.c (input_function): Stream it in.
25021 * lto-streamer-out.c (output_function): Stream it out.
25022 * function.c (allocate_struct_function): Set it.
25023 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
25024 for flag_non_call_exceptions.
25025 * cfgbuild.c (control_flow_insn_p): Likewise.
25026 (make_edges): Likewise.
25027 * cfgexpand.c (expand_stack_alignment): Likewise.
25028 * combine.c (distribute_notes): Likewise.
25029 * cse.c (cse_extended_basic_block): Likewise.
25030 * except.c (insn_could_throw_p): Likewise.
25031 * gcse.c (simple_mem): Likewise.
25032 * ipa-pure-const.c (check_call): Likewise.
25033 (check_stmt ): Likewise.
25034 * lower-subreg.c (lower-subreg.c): Likewise.
25035 * optabs.c (emit_libcall_block): Likewise.
25036 (prepare_cmp_insn): Likewise.
25037 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
25038 * postreload.c (rest_of_handle_postreload): Likewise.
25039 * reload1.c (reload_as_needed): Likewise.
25040 (emit_input_reload_insns): Likewise.
25041 (emit_output_reload_insns): Likewise.
25042 (fixup_abnormal_edges): Likewise.
25043 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
25044 * store-motion.c (find_moveable_store): Likewise.
25045 * tree-eh.c (stmt_could_throw_p): Likewise.
25046 (tree_could_throw_p): Likewise.
25047 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25048 * config/arm/arm.c (arm_expand_prologue): Likewise.
25049 (thumb1_expand_prologue): Likewise.
25050 * config/rx/rx.md (cbranchsf4): Likewise.
25051 (cmpsf): Likewise.
25052 * config/s390/s390.c (s390_emit_prologue): Likewise.
25053 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
25054 (inline_forbidden_into_p): New predicate.
25055 (expand_call_inline): Use it to forbid inlining.
25056 (tree_can_inline_p): Likewise.
25057
25058 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25059
25060 * config/i386/i386-c.c: Do not include rtl.h.
25061 * config/i386/t-i386: Update dependencies.
25062
25063 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25064
25065 * attribs.c: Do not include rtl.h.
25066 * Makefile.in: Update dependencies.
25067
25068 2010-05-25 Anatoly Sokolov <aesok@post.ru>
25069
25070 * double-int.h (double_int_and): New.
25071 * combine.c (try_combine): Clean up, use double_int_* and
25072 immed_double_int_const functions.
25073
25074 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25075
25076 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
25077 stderr to /dev/null instead of grep -q.
25078 * configure: Regenerate.
25079
25080 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
25081
25082 * Makefile.in (EXCEPT_H): Fix typo.
25083
25084 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
25085
25086 * ira-build.c (update_conflict_hard_reg_costs): New.
25087 (ira_build): Call update_conflict_hard_reg_costs.
25088
25089 2010-05-25 Jakub Jelinek <jakub@redhat.com>
25090
25091 PR debug/41371
25092 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
25093 ENABLE_CHECKING.
25094 (intersect_loc_chains): Walk the s2var's loc_chain together
25095 with s1node chain as long as the locations are equal, don't
25096 call find_loc_in_1pdv in that case.
25097
25098 PR debug/42801
25099 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
25100 (copy_bind_expr): ... instead of here.
25101 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
25102 if the block hasn't been remapped.
25103 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
25104 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
25105
25106 2010-05-25 Richard Guenther <rguenther@suse.de>
25107
25108 PR middle-end/44069
25109 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
25110 out-of-bounds array accesses.
25111
25112 2010-05-25 Richard Guenther <rguenther@suse.de>
25113
25114 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
25115 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
25116 (run_gcc): Re-organize to make cleanup easier.
25117
25118 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25119
25120 * config/s390/s390.c (optimization_options): Fix and move the
25121 flag_prefetch_loop_arrays override ...
25122 (override_options): ... here.
25123
25124 2010-05-25 Joseph Myers <joseph@codesourcery.com>
25125
25126 * diagnostic.c: Don't include plugin.h.
25127 (diagnostic_report_diagnostic): Don't handle plugins specially
25128 here. Pass context to internal_error callback.
25129 * diagnostic.h (struct diagnostic_context): Add context parameter
25130 to internal_error callback.
25131 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
25132 * plugin.h (struct diagnostic_context): Declare.
25133 (warn_if_plugins, plugins_internal_error_function): Declare.
25134 * toplev.c (general_init): Set global_dc->internal_error.
25135 * Makefile.in (diagnostic.o): Update dependencies.
25136
25137 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
25138
25139 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
25140 * config/rs6000/t-darwin64: New.
25141 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
25142 build crt2.
25143
25144 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
25145
25146 PR 44203
25147 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
25148 match the original (and intended) behaviour before r159557. This
25149 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
25150 in two ways.
25151
25152 2010-05-25 Richard Guenther <rguenther@suse.de>
25153
25154 * doc/invoke.texi: Document -Ofast.
25155 * target.h (struct gcc_target): Add handle_ofast.
25156 * target-def.h (TARGET_HANDLE_OFAST): Add.
25157 (TARGET_INITIALIZER): Adjust.
25158 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
25159 * common.opt (Ofast): Add.
25160
25161 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
25162
25163 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
25164 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
25165
25166 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
25167
25168 PR target/43610
25169 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
25170 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
25171 false_rtx. Use false_rtx to compute the correct *ptest for reversed
25172 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
25173
25174 2010-05-25 Jakub Jelinek <jakub@redhat.com>
25175
25176 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
25177 DW_OP_minus with negated offset instead of DW_OP_plus.
25178 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
25179
25180 2010-05-25 Wei Guozhi <carrot@google.com>
25181
25182 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
25183 tst instruction and a new alternative.
25184 * config/arm/constraints.md (Pu): New constraint.
25185
25186 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
25187
25188 * function.c (assign_stack_local_1): Initialize variable
25189 to avoid warning when bootstrapping at -O3.
25190
25191 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
25192
25193 * configure.ac (all_lang_makefiles): Remove everything related to it.
25194 * configure: Regenerate.
25195 * Makefile.in: Fix reference to ada Make-lang.in.
25196 Remove support for LANG_MAKEFILES.
25197
25198 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
25199 Sandra Loosemore <sandra@codesourcery.com>
25200
25201 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
25202 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
25203 description. Add arm_neon_fp16_ok.
25204 (Add Options): Add arm_neon and arm_neon_fp16.
25205
25206 2010-05-24 Joseph Myers <joseph@codesourcery.com>
25207
25208 * diagnostic.c: Don't include flags.h.
25209 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
25210 context parameters. Check flags in the context passed as a parameter.
25211 (diagnostic_build_prefix): Add context parameter. Check
25212 show_column flag in context.
25213 (diagnostic_action_after_output): Check fatal_errors flag in context.
25214 (diagnostic_report_current_module): Check show_column flag in context.
25215 (default_diagnostic_starter): Update call to
25216 diagnostic_build_prefix.
25217 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
25218 (emit_diagnostic): Pass context to permissive_error_kind.
25219 (permerror): Pass context to permissive_error_kind.
25220 * diagnostic.h (struct diagnostic_context): Add show_column,
25221 pedantic_errors, permissive and fatal_errors fields.
25222 (diagnostic_build_prefix): Update prototype.
25223 * langhooks.c
25224 * toplev.c (process_options): Set flags in global_dc from
25225 flag_show_column, flag_pedantic_errors, flag_permissive,
25226 flag_fatal_errors.
25227 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
25228 to diagnostic_build_prefix.
25229 * Makefile.in (diagnostic.o): Update dependencies.
25230
25231 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
25232
25233 * config/i386/ia32intrin.h (__crc32q): Define only if
25234 __SSE4_2__ is defined.
25235
25236 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
25237
25238 PR target/44132
25239 PR middle-end/43602
25240 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
25241 DECL_VISIBILITY_SPECIFIED.
25242 (emutls_decl): Set DECL_PRESERVE_P and copy
25243 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
25244 (emutls_finalize_control_var): New callback.
25245 (emutls_finish): Finalize emutls control variables.
25246 * toplev.c (compile_file): Move the call to emutls_finish ()
25247 before varpool_assemble_pending_decls ().
25248
25249 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
25250
25251 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
25252 added to the preprocessor condition.
25253
25254 2010-05-24 Paul Brook <paul@codesourcery.com>
25255
25256 * gengtype-lex.l: Add HARD_REG_SET.
25257 * expr.c (expand_expr_real_1): Record writes to hard registers.
25258 * function.c (rtl_data): Add asm_clobbers.
25259 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
25260 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
25261 Use crtl->asm_clobbers.
25262
25263 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25264
25265 * doc/makefile.texi (Makefile): Mention stages 'profile'
25266 and 'feedback' for profiledbootstrap.
25267
25268 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
25269
25270 PR target/44245
25271 * config/i386/i386.c (def_builtin): Properly check
25272 OPTION_MASK_ISA_64BIT.
25273
25274 2010-05-23 Joseph Myers <joseph@codesourcery.com>
25275
25276 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
25277 typedefs with different but compatible types. Allow duplicate
25278 typedefs with the same type except for pedantic non-C1X, but give
25279 warning for variably modified types.
25280 * c-typeck.c (tagged_types_tu_compatible_p,
25281 function_types_compatible_p, type_lists_compatible_p,
25282 comptypes_internal): Add parameter different_types_p; set
25283 *different_types_p for different but compatible types. All
25284 callers changed.
25285 (comptypes_check_different_types): New.
25286 * c-tree.h (comptypes_check_different_types): Declare.
25287
25288 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
25289
25290 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
25291 * jump.c: Include basic-block.h.
25292 * profile.c: Likewise.
25293 * tree-profile.c: Likewise.
25294 * coverage.c: Likewise.
25295 * basic-block.h (optimize_function_for_size_p): Move to function.h.
25296 (optimize_function_for_speed_p): Likewise.
25297 * function.h (optimize_function_for_size_p,
25298 optimize_function_for_speed_p): Moved here from basic-block.h.
25299 * Makefile.in: Update dependencies.
25300
25301 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25302
25303 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
25304 before calling make; allow override through $MAKE.
25305 * doc/invoke.texi (Optimize Options): Document override.
25306
25307 2010-05-23 Anatoly Sokolov <aesok@post.ru>
25308
25309 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
25310 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25311 (rs6000_mode_dependent_address_ptr): Make static.
25312 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25313 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
25314 Remove.
25315
25316 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
25317
25318 PR target/43869
25319 * config/i386/i386.c: Make sure that the correct regparm is passed.
25320
25321 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
25322
25323 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
25324 * sbitmap.c: ...to here to internalize sbitmap element access.
25325 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
25326 Explain why basic-block.h is included.
25327 * function.h: Include tm.h for CUMULATIVE_ARGS.
25328 * Makefile.in: Update dependencies.
25329
25330 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
25331
25332 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
25333 New core types.
25334 * sbitmap.h (struct sbitmap_def): Do not typedef here.
25335 * sbitmap.c: Include sbitmap.h.
25336 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
25337 hard-reg-set.h. Split everything related to regsets out from here...
25338 * regset.h: ...to here. New file.
25339 * df.h: Include regset.h and sbitmap.h.
25340 * tree-flow.h: Likewise.
25341 * cfgloop.h: Likewise.
25342 * except.h: Do not include sbitmap.h. Include hashtab.h.
25343 * cgraph.h: Include vec.h and function.h.
25344 * reload.h (struct insn_chain): Change types of live_throughout
25345 and dead_or_set from regset_head to bitmap_head.
25346 (compute_use_by_pseudos): Be defined also if regset.h is not included.
25347 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
25348 spilled_regs from regset_head to bitmap_head to avoid dependency
25349 in regset.h.
25350 * sel-sched-ir.h: Include regset.h.
25351 * reload.c: Include df.h before reload.h.
25352 * caller-save.c: Likewise.
25353 * reload1.c: Likewise.
25354 * ira.c: Likewise.
25355 (mark_elimination): Update type of r to bitmap, consistent with
25356 DF_LR_IN.
25357 * dominance.c: Include bitmap.h.
25358 * modulo-sched.c: Include df.h.
25359 * cfganal.c: Include bitmap.h and sbitmap.h.
25360 * cfgbuild.c: Include sbitmap.h.
25361 * lcm.c: Include sbitmap.h.
25362 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
25363 * domwalk.c: Include sbitmap.h, exclude ggc.h.
25364 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
25365 * cselib.c: Include bitmap.h.
25366 * tree-optimize.c: Include regset.h.
25367 * stmt.c: Include bitmap.h.
25368 * Makefile.in: Update dependencies.
25369
25370 2010-05-22 Jan Hubicka <jh@suse.cz>
25371
25372 * cgraph.h (struct varpool_node): Add same_comdat_group.
25373 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
25374 pointer.
25375 (output_varpool): Update call of lto_output_varpool_node.
25376 (input_varpool): Read same_comdat_group pointer.
25377 (input_varpool_1): Fixup same_comdat_group pointer.
25378 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
25379 group is needed, all are.
25380 * varpool.c (varpool_remove_node): Remove node from same comdat group
25381 linklist too.
25382 (varpool_analyze_pending_decls): Walk same comdat groups.
25383
25384 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
25385
25386 * rtl.h (union rtunion_def): Remove rt_bit member.
25387 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
25388 * print-rtl (print_rtx): Do not print the member.
25389 * gengtype.c (adjust_field_rtx_def): Do not handle it.
25390 * gengenrtl.c (type_from_format): Likewise.
25391 (accessor_from_format): Likewise.
25392
25393 2010-05-22 Joseph Myers <joseph@codesourcery.com>
25394
25395 * dbgcnt.c: Include toplev.h instead of errors.h.
25396 * ira-emit.c: Don't include errors.h.
25397 * ira.c: Include toplev.h instead of errors.h.
25398 * lto-compress.c: Include toplev.h instead of errors.h.
25399 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
25400 ira.o, dbgcnt.o): Update dependencies.
25401
25402 2010-05-22 Richard Guenther <rguenther@suse.de>
25403
25404 * gimple.c (gimple_types_compatible_p): Check type qualifications
25405 before merging pointer to complete and pointer to incomplete type.
25406 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
25407 we use our own resolution algorithm. The gold linker plugin
25408 doesn't do the job we want it to do here.
25409
25410 2010-05-22 Anatoly Sokolov <aesok@post.ru>
25411
25412 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25413 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25414 (sparc_mode_dependent_address_p): New function.
25415
25416 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
25417
25418 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
25419
25420 * timevar.c: Do not include any core headers.
25421 (timevar_print): De-i18n-ize.
25422 (print_time): Likewise.
25423 * timevar.h (timevar_push, timevar_pop): Make inline functions.
25424
25425 2010-05-21 Joseph Myers <joseph@codesourcery.com>
25426
25427 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
25428 langhooks-def.h.
25429 (diagnostic_initialize): Initialize x_data not last_function.
25430 (diagnostic_report_current_function): Move to tree-diagnostic.c.
25431 (default_diagnostic_starter): Call
25432 diagnostic_report_current_module not
25433 diagnostic_report_current_function.
25434 (diagnostic_report_diagnostic): Initialize x_data not
25435 abstract_origin.
25436 (verbatim): Likewise.
25437 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
25438 x_data.
25439 (struct diagnostic_context): Change last_function to x_data.
25440 (diagnostic_auxiliary_data): Replace with
25441 diagnostic_context_auxiliary_data and
25442 diagnostic_info_auxiliary_data.
25443 (diagnostic_last_function_changed, diagnostic_set_last_function,
25444 diagnostic_report_current_function): Move to tree-diagnostic.h.
25445 (print_declaration, dump_generic_node, print_generic_stmt,
25446 print_generic_stmt_indented, print_generic_expr,
25447 print_generic_decl, debug_c_tree, dump_omp_clauses,
25448 print_call_name, debug_generic_expr, debug_generic_stmt,
25449 debug_tree_chain, default_tree_printer): Move to
25450 tree-pretty-print.h.
25451 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
25452 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
25453 gimple-pretty-print.h.
25454 * pretty-print.c: Don't include tree.h
25455 (pp_base_format): Don't handle %K here.
25456 (pp_base_tree_identifier): Move to tree-pretty-print.c.
25457 * pretty-print.h (text_info): Change abstract_origin to x_data.
25458 (pp_tree_identifier, pp_unsupported_tree,
25459 pp_base_tree_identifier): Move to tree-pretty-print.h.
25460 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
25461 tree-pretty-print.h: New files.
25462 * tree-pretty-print.c: Include tree-pretty-print.h.
25463 (percent_K_format): New. Moved from pretty-print.c.
25464 (pp_base_tree_identifier): Move from pretty-print.c.
25465 * c-objc-common.c: Include tree-pretty-print.h.
25466 (c_tree_printer): Handle %K here.
25467 * langhooks.c: Include tree-diagnostic.h.
25468 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
25469 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
25470 (default_tree_printer): Handle %K using percent_K_format.
25471 (general_init): Use default_tree_diagnostic_starter.
25472 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
25473 (free_lang_data): Use default_tree_diagnostic_starter.
25474 * c-pretty-print.c: Include tree-pretty-print.h.
25475 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25476 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25477 * dwarf2out.c: Include tree-pretty-print.h.
25478 * except.c: Include tree-pretty-print.h.
25479 * gimple-pretty-print.c: Include tree-pretty-print.h and
25480 gimple-pretty-print.h.
25481 * gimplify.c: Include tree-pretty-print.h.
25482 * graphite-poly.c: Include tree-pretty-print.h and
25483 gimple-pretty-print.h.
25484 * ipa-cp.c: Include tree-pretty-print.h.
25485 * ipa-inline.c: Include gimple-pretty-print.h.
25486 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25487 * ipa-pure-const.c: Include gimple-pretty-print.h.
25488 * ipa-struct-reorg.c: Include tree-pretty-print.h and
25489 gimple-pretty-print.h.
25490 * ipa-type-escape.c: Include tree-pretty-print.h.
25491 * print-rtl.c: Include tree-pretty-print.h.
25492 * print-tree.c: Include gimple-pretty-print.h.
25493 * sese.c: Include tree-pretty-print.h.
25494 * tree-affine.c: Include tree-pretty-print.h.
25495 * tree-browser.c: Include tree-pretty-print.h.
25496 * tree-call-cdce.c: Include gimple-pretty-print.h.
25497 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25498 * tree-chrec.c: Include tree-pretty-print.h.
25499 * tree-data-ref.c: Include tree-pretty-print.h and
25500 gimple-pretty-print.h.
25501 * tree-dfa.c: Include tree-pretty-print.h.
25502 * tree-if-conv.c: Include tree-pretty-print.h and
25503 gimple-pretty-print.h.
25504 * tree-inline.c: Include tree-pretty-print.h.
25505 * tree-into-ssa.c: Include tree-pretty-print.h and
25506 gimple-pretty-print.h.
25507 * tree-nrv.c: Include tree-pretty-print.h.
25508 * tree-object-size.c: Include tree-pretty-print.h and
25509 gimple-pretty-print.h.
25510 * tree-outof-ssa.c: Include tree-pretty-print.h and
25511 gimple-pretty-print.h.
25512 * tree-parloops.c: Include tree-pretty-print.h and
25513 gimple-pretty-print.h.
25514 * tree-predcom.c: Include tree-pretty-print.h and
25515 gimple-pretty-print.h.
25516 * tree-scalar-evolution.c: Include tree-pretty-print.h and
25517 gimple-pretty-print.h.
25518 * tree-sra.c: Include tree-pretty-print.h.
25519 * tree-ssa-address.c: Include tree-pretty-print.h.
25520 * tree-ssa-alias.c: Include tree-pretty-print.h.
25521 * tree-ssa-ccp.c: Include tree-pretty-print.h and
25522 gimple-pretty-print.h.
25523 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
25524 * tree-ssa-copy.c: Include tree-pretty-print.h and
25525 gimple-pretty-print.h.
25526 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
25527 * tree-ssa-dce.c: Include tree-pretty-print.h and
25528 gimple-pretty-print.h.
25529 * tree-ssa-dom.c: Include tree-pretty-print.h and
25530 gimple-pretty-print.h.
25531 * tree-ssa-dse.c: Include gimple-pretty-print.h.
25532 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
25533 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
25534 * tree-ssa-live.c: Include tree-pretty-print.h and
25535 gimple-pretty-print.h.
25536 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
25537 gimple-pretty-print.h.
25538 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
25539 gimple-pretty-print.h.
25540 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
25541 gimple-pretty-print.h.
25542 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
25543 gimple-pretty-print.h.
25544 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
25545 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
25546 * tree-ssa-operands.c: Include tree-pretty-print.h and
25547 gimple-pretty-print.h.
25548 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
25549 gimple-pretty-print.h.
25550 * tree-ssa-pre.c: Include tree-pretty-print.h and
25551 gimple-pretty-print.h.
25552 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
25553 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
25554 gimple-pretty-print.h.
25555 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
25556 gimple-pretty-print.h.
25557 * tree-ssa-sink.c: Include gimple-pretty-print.h.
25558 * tree-ssa-ter.c: Include tree-pretty-print.h and
25559 gimple-pretty-print.h.
25560 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
25561 * tree-ssa.c: Include tree-pretty-print.h and
25562 gimple-pretty-print.h.
25563 * tree-stdarg.c: Include gimple-pretty-print.h.
25564 * tree-switch-conversion.c: Include gimple-pretty-print.h.
25565 * tree-tailcall.c: Include tree-pretty-print.h and
25566 gimple-pretty-print.h.
25567 * tree-vect-data-refs.c: Include tree-pretty-print.h and
25568 gimple-pretty-print.h.
25569 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
25570 gimple-pretty-print.h.
25571 * tree-vect-loop.c: Include tree-pretty-print.h and
25572 gimple-pretty-print.h.
25573 * tree-vect-patterns.c: Include gimple-pretty-print.h.
25574 * tree-vect-slp.c: Include tree-pretty-print.h and
25575 gimple-pretty-print.h.
25576 * tree-vect-stmts.c: Include tree-pretty-print.h and
25577 gimple-pretty-print.h.
25578 * tree-vectorizer.c: Include tree-pretty-print.h.
25579 * tree-vrp.c: Include tree-pretty-print.h and
25580 gimple-pretty-print.h.
25581 * value-prof.c: Include tree-pretty-print.h and
25582 gimple-pretty-print.h.
25583 * var-tracking.c: Include tree-pretty-print.h.
25584 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
25585 (tree-diagnostic.o): New dependencies.
25586 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
25587 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
25588 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
25589 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
25590 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
25591 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
25592 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
25593 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
25594 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
25595 tree-ssa-address.o, tree-ssa-loop-niter.o,
25596 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
25597 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
25598 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
25599 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
25600 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
25601 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
25602 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
25603 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
25604 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
25605 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
25606 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
25607 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
25608 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
25609 tree-switch-conversion.o, var-tracking.o, value-prof.o,
25610 cfgexpand.o, pretty-print.o): Update dependencies.
25611
25612 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
25613
25614 * tree-ssa-structalias.c: Remove tm_p.h from include.
25615
25616 2010-05-21 Jeff Law <law@redhat.com>
25617
25618 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
25619
25620 2010-05-21 Jason Merrill <jason@redhat.com>
25621
25622 * tree-eh.c (cleanup_is_dead_in): New.
25623 (lower_try_finally): Don't generate a dead cleanup region.
25624 (lower_cleanup): Likewise.
25625
25626 2010-05-21 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR debug/44223
25629 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
25630 unchain each use from the cyclic next_regno_use chain first.
25631
25632 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
25633
25634 * real: Do not include gmp.h, mpfr.h, and mpc.h.
25635 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
25636 (real_value_negate, real_value_abs): New prototypes.
25637 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
25638 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
25639 new include file for interface between MPFR and REAL_VALUE_TYPE.
25640 * real.c: Include realmpfr.h.
25641 (real_arithmetic2): Remove legacy function.
25642 (real_value_negate): New.
25643 (real_value_abs): New.
25644 (mfpr_from_real, real_from_mpfr): Move from here...
25645 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
25646 * builtins.c: Include realmpfr.h.
25647 * fold-const.c: Include realmpfr.h.
25648 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
25649 (fold_negate_const): Likewise.
25650 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
25651 * toplev.c: Include realmpfr.h.
25652 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
25653 and real_value_negate.
25654 * fixed-value.c (check_real_for_fixed_mode): Likewise.
25655 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
25656 (vfp3_const_double_index): Likewise.
25657 (arm_print_operand): Likewise.
25658 * Makefile.in: Update dependencies.
25659
25660 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25661
25662 * config/s390/s390.c (override_options): Increase the default
25663 of max-completely-peel-times.
25664
25665 2010-05-21 Julian Brown <julian@codesourcery.com>
25666 Mark Mitchell <mark@codesourcery.com>
25667
25668 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
25669 sibling calls for Thumb-1.
25670 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
25671 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
25672 Thumb-2.
25673 (*call_insn, *call_value_insn): Don't use for Thumb-2.
25674 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
25675 for Thumb-2.
25676 (return): New expander.
25677 (*arm_return): New name for ARM return insn.
25678 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
25679
25680 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
25681
25682 * config.gcc (sparc64-*-rtems*): New target.
25683
25684 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
25685
25686 * tree.c (build_function_decl_skip_args): Fix grammar.
25687 (build_function_type_list_1): Fix typos, adjust formatting.
25688
25689 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
25690
25691 * tree.h: Include real.h and fixed-value.h as basic datatypes.
25692 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
25693 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
25694 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
25695 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
25696 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
25697 tree-pretty-print.c, tree-loop-distribution.c,
25698 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
25699 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
25700 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
25701 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
25702 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
25703 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
25704 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
25705 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
25706 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
25707 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
25708 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
25709 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
25710 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
25711 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
25712 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
25713 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
25714 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
25715 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
25716 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
25717 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
25718 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
25719 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
25720 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
25721 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
25722 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
25723 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
25724 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
25725 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
25726 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
25727 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
25728 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
25729 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
25730 config/score/score7.c, config/score/score.c, config/arm/arm.c,
25731 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
25732 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
25733 config/bfin/bfin.c: Clean up redundant includes.
25734 * Makefile.in: Update accordingly.
25735
25736 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
25737
25738 PR middle-end/44204
25739 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
25740 statement has no arguments.
25741
25742 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
25743
25744 PR/44139
25745 * varasm.c (emutls_decl): Merge attributes to new decl.
25746
25747 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
25748
25749 PR middle-end/44101
25750 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
25751 around the uniquized constructor if its type requires a conversion.
25752
25753 2010-05-21 Jakub Jelinek <jakub@redhat.com>
25754
25755 PR debug/44205
25756 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
25757 at -O0 goto_locus of any of the incoming edges differs from
25758 goto_locus of outgoing edge, or gimple_location of any of the
25759 labels differs.
25760
25761 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
25762
25763 * ira.c (ira_non_ordered_class_hard_regs): Define.
25764 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
25765 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
25766 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
25767 cost of unaligned hard regs when allocating multi-reg pseudos.
25768
25769 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
25770
25771 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
25772 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
25773 for TARGET_NO_FLOAT.
25774 * config/mips/mips.c (mips_file_start): Expand conditional expression
25775 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
25776 (mips_override_options): Move -mno-float override -msoft-float and
25777 -mhard-float.
25778 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
25779 Condition(TARGET_SUPPORTS_NO_FLOAT).
25780 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
25781 __mips_no_float here.
25782 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
25783 (TARGET_SUPPORTS_NO_FLOAT): Define.
25784 * config/mips/sdemtk.opt: Delete.
25785
25786 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
25787
25788 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
25789
25790 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
25791
25792 PR target/43733
25793 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
25794 * configure: Regenerate.
25795 * config.in: Regenerate.
25796 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
25797 instead of sahf only for 64bit targets.
25798
25799 2010-05-20 Jakub Jelinek <jakub@redhat.com>
25800
25801 PR debug/44178
25802 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
25803 setup_ref_regs for DEBUG_INSNs.
25804
25805 2010-05-20 Jan Hubicka <jh@suse.cz>
25806
25807 PR middle-end/44197
25808 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
25809
25810 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
25811
25812 PR bootstrap/43870
25813 * df-scan.c (df_ref_compare): Stabilize sort.
25814
25815 2010-05-20 Jakub Jelinek <jakub@redhat.com>
25816
25817 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
25818 argument. Don't use DW_OP_piece if offset is non-zero,
25819 put offset into second DW_OP_bit_piece argument.
25820 (dw_sra_loc_expr): Adjust callers. For memory expressions
25821 compute offset.
25822
25823 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
25824
25825 PR target/44202
25826 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
25827 settings for 16-bit-constant "addo" alternative.
25828
25829 2010-05-19 James E. Wilson <wilson@codesourcery.com>
25830
25831 * config/mips/mips-dsp.md (add<DSPV:mode>3,
25832 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
25833
25834 PR target/43764
25835 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
25836 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
25837 Use it.
25838
25839 2010-05-19 Joseph Myers <joseph@codesourcery.com>
25840
25841 * diagnostic.c (FLOAT, FFS): Don't undefine.
25842 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
25843 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
25844 include ordering.
25845
25846 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25847
25848 * combine.c (propagate_for_debug): Call make_compound_operation
25849 on the source value.
25850 (try_combine): When implementing a split chosen by find_split_point,
25851 either copy i2src or set it to null. Assert that i2src is not null
25852 before substituting into CALL_INSN_FUNCTION_USAGE.
25853
25854 2010-05-19 Anatoly Sokolov <aesok@post.ru>
25855
25856 * double-int.h (double_int_ior): New function.
25857 * tree.h (build_int_cst_wide_type): Remove.
25858 * tree.c (build_int_cst_wide_type): Remove.
25859 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
25860 of build_int_cst_wide_type.
25861 * stor-layout.c (set_sizetype): (Ditto.).
25862 * dojump.c (do_jump): Use build_int_cstu instead of
25863 build_int_cst_wide_type.
25864
25865 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
25866
25867 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
25868 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
25869 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
25870 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
25871 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
25872 propagate the 'data' argument to copy_tree_r.
25873 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
25874 Propagate 'data' argument to walk_tree.
25875 (copy_if_shared): New function.
25876 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
25877 (unmark_visited): New function.
25878 (unshare_body): Call copy_if_shared instead of doing it manually.
25879 (unvisit_body): Call unmark_visited instead of doing it manually.
25880
25881 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
25882
25883 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
25884 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
25885 * hooks.c: Likewise.
25886 * target-def.h (TARGET_FOLD_BUILTIN): Define to
25887 hook_tree_tree_int_treep_bool_null.
25888 * target.h (struct gcc_target): Update signature of fold_builtin
25889 field.
25890 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
25891 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
25892 instead of the call expression.
25893 (fold_builtin_call_array): Pass n and argarray directly.
25894 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
25895 consing a list.
25896 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
25897 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
25898 `i' and use it in place of `arity'.
25899 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
25900 Dereference `args' directly.
25901 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
25902
25903 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25904
25905 * doc/sourcebuild.texi (Effective-Target Keywords): Document
25906 3dnow, sse3, sse2.
25907 (Directives): Document optional dg-require-effective-target
25908 selector.
25909
25910 2010-05-19 Richard Guenther <rguenther@suse.de>
25911
25912 PR lto/44196
25913 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
25914
25915 2010-05-19 Richard Guenther <rguenther@suse.de>
25916
25917 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
25918 * common.opt (fwhopr=): New.
25919 * opts.c (common_handle_option): Handle OPT_fwhopr.
25920 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
25921 * collect2.c (main): Match -fwhopr*.
25922 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
25923 Execute ltrans stage in parallel when jobs is bigger than 1.
25924
25925 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25926
25927 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
25928 pentiumpro on Solaris 8/x86 with Sun as.
25929 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
25930 hidden alias bug.
25931 (gcc_cv_as_ix86_quad): Check for .quad directive.
25932 * configure: Regenerate.
25933 * config.in: Regenerate.
25934 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
25935
25936 2010-05-19 Martin Jambor <mjambor@suse.cz>
25937
25938 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
25939 also for indirect edges. Actual printing moved...
25940 (ipa_print_node_jump_functions_for_edge): ...here.
25941 (ipa_compute_jump_functions): Renamed to
25942 ipa_compute_jump_functions_for_edge and made static.
25943 (ipa_compute_jump_functions): New function.
25944 (make_edge_direct_to_target): Check if the number of arguments on
25945 the newly direct edge is the same as the number of parametrs of
25946 the callee.
25947 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
25948 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
25949 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
25950 analysis functions unconditionally, call the new
25951 ipa_analyze_params_uses on the node instead of every edge.
25952
25953 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
25954
25955 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
25956 to tree.
25957 (dump_mem_ref): Adopt debug code to handle a tree as step. This
25958 also checks for a constant int vs. non-constant but
25959 loop-invariant steps.
25960 (find_or_create_group): Change the sort algorithm to only consider
25961 steps that are constant ints.
25962 (idx_analyze_ref): Adopt code to handle a tree instead of a
25963 HOST_WIDE_INT for step.
25964 (gather_memory_references_ref): Handle tree instead of int and be
25965 prepared to see a NULL_TREE.
25966 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
25967 prefetches if the step cannot be calculated at compile time.
25968 (issue_prefetch_ref): Issue prefetches for non-constant but
25969 loop-invariant steps.
25970
25971 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
25972
25973 Revert:
25974 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
25975
25976 * tree.h (build_call_list): Remove.
25977 * tree.c (build_call_list): Remove.
25978
25979 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
25980
25981 * tree.h (build_call_list): Remove.
25982 * tree.c (build_call_list): Remove.
25983
25984 2010-05-18 Jan Hubicka <jh@suse.cz>
25985
25986 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
25987
25988 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
25989
25990 PR rtl-optimization/43332
25991 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
25992
25993 2010-05-18 Anatoly Sokolov <aesok@post.ru>
25994
25995 * tree.h (build_int_cstu): Implement as static inline.
25996 * tree.c (build_int_cstu): Remove function.
25997 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
25998 sign extended.
25999
26000 2010-05-18 Richard Guenther <rguenther@suse.de>
26001
26002 PR lto/44143
26003 * lto-wrapper.c (verbose): New variable. Initialize from -v.
26004 (debug): Initialize from -save-temps.
26005 (collect_execute): Print command-line when verbose.
26006 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
26007 for ltrans invocation. Produce -dumpbase flag again.
26008 (process_args): Remove.
26009 (main): Simplify.
26010 * collect2.c (maybe_run_lto_and_relink): Only pass object
26011 files to lto-wrapper.
26012 * gcc.c (LINK_COMMAND_SPEC): Likewise.
26013
26014 2010-05-18 Jan Hubicka <jh@suse.cz>
26015
26016 * opts.c (decode_options): Do not disable whopr at ipa_cp.
26017 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
26018
26019 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26020
26021 PR lto/44184
26022 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
26023 in a GIMPLE_ASM.
26024 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
26025 in a GIMPLE_ASM.
26026
26027 2010-05-18 Jakub Jelinek <jakub@redhat.com>
26028
26029 PR debug/41371
26030 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
26031 rtx_equal_p inline.
26032
26033 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
26034
26035 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
26036 lto-macho as lto_binary_reader.
26037
26038 * darwin.c (darwin_asm_named_section): Do not add assembler comment
26039 after .section directive; just print it before the directive instead.
26040
26041 2010-05-17 Jan Hubicka <jh@suse.cz>
26042
26043 * cgraph.c (cgraph_create_virtual_clone): Only check
26044 versionable_function_p when not in wpa and checking is enabled.
26045 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
26046 there are no more functions to materialize.
26047
26048 2010-05-17 Jan Hubicka <jh@suse.cz>
26049
26050 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
26051 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
26052 New functions.
26053 (output_cgraph): Call output_cgraph_opt_summary.
26054 (input_cgrpah): Call input_cgraph_opt_summary.
26055 (output_cgraph_opt_summary_p, output_node_opt_summary,
26056 input_node_opt_summary, input_cgraph_opt_section): New functions.
26057 * lto-section-in.c (lto_section_name): Add cgraphopt.
26058 * tree-inline.c (tree_function_versioning): Handle parm_num.
26059 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
26060 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
26061
26062 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
26063
26064 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
26065 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
26066 the insn to prefetch ratio heuristic to loops with known trip count.
26067
26068 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
26069
26070 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
26071 (schedule_prefetches): Do not generate a prefetch if the unroll factor
26072 is far from what is required by the prefetch.
26073
26074 2010-05-17 Jan Hubicka <jh@suse.cz>
26075
26076 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
26077 (ipcp_estimate_growth): Likewise.
26078 (ipcp_const_param_count): Likewise.
26079 (ipcp_insert_stage): Likewise.
26080 * ipa-prop.c (visit_load_for_mod_analysis): New function.
26081 (visit_store_addr_for_mod_analysis): Set used flag.
26082 (ipa_detect_param_modifications): Set used flag for SSE params;
26083 update use of walk_stmt_load_store_addr_ops.
26084 (ipa_print_node_params): Print used flag.
26085 (ipa_write_node_info): Stream used flag.
26086 (ipa_read_node_info): Likewise.
26087 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
26088 (ipa_is_param_used): New function.
26089 (lto_ipa_fixup_call_notes): Remove unused declaration.
26090
26091 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26092
26093 PR target/44074
26094 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
26095 * configure: Regenerate.
26096 * config.in: Regenerate.
26097 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
26098 !HAVE_AS_IX86_REP_LOCK_PREFIX.
26099 Don't emit whitespace.
26100 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
26101 (*rep_movsi): Likewise.
26102 (*rep_movsi_rex64): Likewise.
26103 (*rep_movqi): Likewise.
26104 (*rep_movqi_rex64): Likewise.
26105 (*rep_stosdi_rex64): Likewise.
26106 (*rep_stossi): Likewise.
26107 (*rep_stossi_rex64): Likewise.
26108 (*rep_stosqi): Likewise.
26109 (*rep_stosqi_rex64): Likewise.
26110 (*cmpstrnqi_nz_1): Use {%;} after repz.
26111 (*cmpstrnqi_nz_rex_1): Likewise.
26112 (*cmpstrnqi_1): Likewise.
26113 (*cmpstrnqi_rex_1): Likewise.
26114 (*strlenqi_1): Use {%;} after repnz.
26115 (*strlenqi_rex_1): Likewise.
26116 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
26117 (*sync_compare_and_swap<mode>): Likewise.
26118 (sync_double_compare_and_swap<mode>): Likewise.
26119 (*sync_double_compare_and_swapdi_pic): Likewise.
26120 (sync_old_add<mode>): Likewise.
26121 (sync_add<mode>): Likewise.
26122 (sync_sub<mode>): Likewise.
26123 (sync_<code><mode>): Likewise.
26124
26125 2010-05-17 Martin Jambor <mjambor@suse.cz>
26126
26127 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
26128 otr_token and polymorphic.
26129 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
26130 (cgraph_clone_edge): Copy the above fields.
26131 * tree.c (get_binfo_at_offset): New function.
26132 * tree.h (get_binfo_at_offset): Declare.
26133 * ipa-prop.h (enum jump_func_type): Added known_type jump function
26134 type, reordered items, updated comments.
26135 (union jump_func_value): Added base_type field, reordered fields.
26136 (enum ipa_lattice_type): Moved down in the file.
26137 (struct ipa_param_descriptor): New field polymorphic.
26138 (ipa_is_param_polymorphic): New function.
26139 * ipa-prop.c: Include gimple.h and gimple-fold.h.
26140 (ipa_print_node_jump_functions): Print known type jump functions.
26141 (compute_complex_pass_through): Renamed to...
26142 (compute_complex_assign_jump_func): this.
26143 (compute_complex_ancestor_jump_func): New function.
26144 (compute_known_type_jump_func): Likewise.
26145 (compute_scalar_jump_functions): Create known type and complex ancestor
26146 jump functions.
26147 (ipa_note_param_call): New parameter polymorphic, set the corresponding
26148 flag in the call note accordingly.
26149 (ipa_analyze_call_uses): Renamed to...
26150 (ipa_analyze_indirect_call_uses): this. New parameter target, define
26151 variable var only in the block where it is used.
26152 (ipa_analyze_virtual_call_uses): New function.
26153 (ipa_analyze_call_uses): Likewise.
26154 (combine_known_type_and_ancestor_jfs): Likewise.
26155 (update_jump_functions_after_inlining): Implemented handling of a
26156 number of new jump function types combination.
26157 (print_edge_addition_message): Removed.
26158 (make_edge_direct_to_target): New function.
26159 (try_make_edge_direct_simple_call): Likewise.
26160 (try_make_edge_direct_virtual_call): Likewise.
26161 (update_call_notes_after_inlining): Renamed to...
26162 (update_indirect_edges_after_inlining): this. Moved edge creation for
26163 indirect calls to try_make_edge_direct_simple_call, also calls
26164 try_make_edge_direct_virtual_call for virtual calls.
26165 (ipa_print_node_params): Changed the header message.
26166 (ipa_write_jump_function): Stream also known type jump functions.
26167 (ipa_read_jump_function): Likewise.
26168 (ipa_write_indirect_edge_info): Stream new fields in
26169 cgraph_indirect_call_info.
26170 (ipa_read_indirect_edge_info): Likewise.
26171 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
26172 GIMPLE_FOLD_H.
26173
26174 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26175
26176 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
26177
26178 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
26179
26180 * tree.h (CALL_EXPR_ARGS): Delete.
26181 (call_expr_arglist): Delete.
26182 * tree.c (call_expr_arglist): Delete.
26183 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
26184 targetm.fold_builtin.
26185 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
26186 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
26187 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
26188 arglist parameter. Use CALL_EXPR_ARG.
26189 (picochip_expand_builtin_3op): Likewise.
26190 (picochip_expand_builtin_2opvoid): Likewise.
26191 (picochip_expand_array_get): Likewise.
26192 (picochip_expand_array_put): Likewise.
26193 (picochip_expand_array_testport): Likewise.
26194 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
26195 rather than arglist.
26196 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
26197 CALL_EXPR_ARGS.
26198 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
26199 than TREE_VALUE and TREE_CHAIN.
26200 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
26201 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
26202 the arglist.
26203
26204 2010-05-17 Jakub Jelinek <jakub@redhat.com>
26205
26206 PR bootstrap/42347
26207 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
26208 to have no fallthru edge.
26209
26210 PR middle-end/44102
26211 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
26212 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
26213 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
26214 add BARRIER after previous bb if needed.
26215
26216 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
26217
26218 * tree.c (build_function_type_list_1): Remove bogus assert condition.
26219
26220 2010-05-17 Alan Modra <amodra@gmail.com>
26221
26222 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
26223 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
26224 with copy_reg rtx param.
26225 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
26226 Correct cases where code for ABI_V4 did not initialise the reg
26227 used to access frame. Also leave frame_reg_rtx as sp for large
26228 frames that save no regs.
26229
26230 2010-05-17 Martin Jambor <mjambor@suse.cz>
26231
26232 PR middle-end/44133
26233 * tree-sra.c (create_access_replacement): New parameter rename, mark
26234 the replaement for renaming only when it is true.
26235 (get_access_replacement): Pass true in the rename parameter of
26236 create_access_replacement.
26237 (get_unrenamed_access_replacement): New function.
26238 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
26239 replacement declaration from it.
26240
26241 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
26242
26243 * function.c (try_fit_stack_local, add_frame_space): New static
26244 functions.
26245 (assign_stack_local_1): Use them. Look for opportunities to use
26246 space previously wasted on alignment.
26247 * function.h (struct frame_space): New.
26248 (struct rtl_data): Add FRAME_SPACE_LIST member.
26249 * reload1.c (something_was_spilled): New static variable.
26250 (alter_reg): Set it.
26251 (reload): Test it in addition to testing if the frame size changed.
26252
26253 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
26254
26255 * config/s390/s390.c: Define sane prefetch settings and activate
26256 flag_prefetch_loop_arrays on -O3.
26257 * config/s390/s390.h: Declare that read can use write prefetch.
26258
26259 2010-05-17 Jakub Jelinek <jakub@redhat.com>
26260
26261 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
26262 build.
26263
26264 2010-05-16 Jan Hubicka <jh@suse.cz>
26265
26266 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
26267 function body; do not check stdarg field of struct function.
26268
26269 2010-05-16 Jan Hubicka <jh@suse.cz>
26270
26271 * cgraph.c (dump_cgraph_node): Dump versionable flag.
26272 * cgraph.h (cgraph_local_info): Add versionable flag.
26273 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
26274 (ipcp_versionable_function_p): Use it.
26275 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26276 versionable flag.
26277
26278 2010-05-16 Jan Hubicka <jh@suse.cz>
26279
26280 * cgraph.c (cgraph_clone_node): Take decl argument and insert
26281 clone into hash when it is different from orig.
26282 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
26283 * cgraph.h (cgraph_clone_node): Update prototype.
26284 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
26285 (lto_cgraph_encoder_delete): Delete body map.
26286 (lto_cgraph_encoder_size): Move to header.
26287 (lto_cgraph_encoder_encode_body_p,
26288 lto_set_cgraph_encoder_encode_body): New.
26289 (lto_output_node): Do not take written_decls argument; output clone_of
26290 pointer.
26291 (add_node_to): Add include_body_argument; call
26292 lto_set_cgraph_encoder_encode_body on master of the clone.
26293 (add_references): Update use of add_node_to.
26294 (compute_ltrans_boundary): Likewise.
26295 (output_cgraph): Do not create written_decls bitmap.
26296 (input_node): Take nodes argument; stream in clone_of correctly.
26297 (input_cgraph_1): Update use of input_node.
26298 * lto-streamer-out.c (lto_output): Use encoder info to decide
26299 what bodies to output.
26300 * ipa-inline.c (cgraph_clone_inlined_nodes,
26301 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
26302 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
26303 (lto_cgraph_encoder_size): Define here.
26304 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
26305 Declare.
26306
26307 2010-05-16 Richard Guenther <rguenther@suse.de>
26308
26309 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
26310 -fipa-type-escape.
26311 * ipa-type-escape.c (gate_type_escape_vars): Run when
26312 -fipa-struct-reorg runs.
26313 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
26314 * common.opt (fipa-type-escape): Remove.
26315
26316 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
26317
26318 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
26319 (decode_options): Likewise.
26320 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
26321
26322 2010-05-16 Jan Hubicka <jh@suse.cz>
26323
26324 * ipa.c (function_and_variable_visibility): Also bring local all
26325 aliases.
26326
26327 2010-05-16 Richard Guenther <rguenther@suse.de>
26328
26329 * alias.c (nonoverlapping_memrefs_p): Remove use of
26330 IPA type-escape information.
26331
26332 2010-05-16 Joseph Myers <joseph@codesourcery.com>
26333
26334 * c-common.c (c_common_reswords): Add _Static_assert for C.
26335 * c-parser.c (c_token_starts_declaration,
26336 c_parser_next_token_starts_declaration,
26337 c_parser_static_assert_declaration_no_semi,
26338 c_parser_static_assert_declaration): New.
26339 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
26340 Handle static assertions if static_assert_ok.
26341 (c_parser_external_declaration, c_parser_declaration_or_fndef,
26342 c_parser_compound_statement_nostart, c_parser_label,
26343 c_parser_for_statement, c_parser_objc_methodprotolist,
26344 c_parser_omp_for_loop): All callers of
26345 c_parser_declaration_or_fndef changed.
26346 (c_parser_struct_declaration): Handle static assertions.
26347 (c_parser_compound_statement_nostart): Use
26348 c_parser_next_token_starts_declaration and
26349 c_token_starts_declaration to detect start of declarations.
26350 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
26351 Likewise.
26352
26353 2010-05-16 Anatoly Sokolov <aesok@post.ru>
26354
26355 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26356 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26357 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26358 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26359 (mmix_function_outgoing_value): Rename to...
26360 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
26361 (mmix_function_value_regno_p): Make static.
26362 (mmix_libcall_value): New function.
26363 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
26364 mmix_function_value_regno_p): Remove declaration.
26365
26366 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
26367
26368 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
26369 BUILT_IN_ALLOCA if stack checking is enabled.
26370
26371 2010-05-16 Richard Guenther <rguenther@suse.de>
26372
26373 * var-tracking.c (vars_copy_1): Inline ...
26374 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
26375 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
26376 (variable_merge_over_cur): Adjust. Merge asserts.
26377 (variable_merge_over_src): Likewise.
26378 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
26379 (variable_post_merge_new_vals): Merge asserts.
26380 (variable_post_merge_perm_vals): Likewise.
26381 (find_mem_expr_in_1pdv): Likewise.
26382 (dataflow_set_different_value): Remove.
26383 (onepart_variable_different_p): Merge asserts.
26384 (variable_different_p): Likewise.
26385 (dataflow_set_different_1): Inline ...
26386 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
26387 (emit_notes_for_differences_1): Merge asserts.
26388
26389 2010-05-16 Richard Guenther <rguenther@suse.de>
26390
26391 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
26392 * optabs.c (libfunc_decl_hash): Likewise.
26393 * varasm.c (emutls_decl): Likewise.
26394
26395 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
26396
26397 * c-decl.c: Don't include gimple.h.
26398 (merge_decls): Do not copy gimple_body.
26399
26400 2010-05-15 Jason Merrill <jason@redhat.com>
26401
26402 * c.opt: Add -fnothrow-opt.
26403
26404 2010-05-15 Jan Hubicka <jh@suse.cz>
26405
26406 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
26407 analyzed.
26408 * passes.c (ipa_write_summaries): Write all analyzed nodes.
26409
26410 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
26411
26412 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
26413 * Makefile.in: Add it.
26414 Fix all other Makefile dependencies for changes below.
26415 * tree.h: Include it instead of defining VEC primitives here.
26416 * gimple.h: Likewise.
26417 * rtl.h: Likewise.
26418 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
26419 * except.h: Include vecir.h, break dependence on tree.h.
26420
26421 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
26422 Move from here...
26423 * tree-iterator.c: ...to here.
26424 * tree-iterator.h: Fix file introduction comment. Add extern markers.
26425
26426 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
26427 tm_p.h.
26428 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
26429 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
26430 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
26431 tree-mudflap.h, and target.h.
26432 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
26433 predict.h, tree-inline.h, gimple.h, and langhooks.h.
26434 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
26435 Add FIXME for why gimple.h is still included (should be unnecessary
26436 since GCC 4.5 gimplification unit-at-a-time).
26437 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
26438 * c-pragma.c: Add FIXME for why function.h needs to be included just
26439 for cfun, at front-end level.
26440 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
26441 Do not include ggc.h, but include vecprim.h for VEC(char).
26442 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
26443 Explain why target.h is included.
26444 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
26445 Explain why gimple.h is included.
26446 * c-ppoutput.c: Do not include tm.h.
26447 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
26448 * c-parses.c: Explain why rtl.h is included, and that this (and only
26449 this) is also why tm.h must be included.
26450 Do not include except.h.
26451 * c-lang.c: Do not include ggc.h.
26452
26453 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
26454
26455 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
26456
26457 2010-05-15 Joseph Myers <joseph@codesourcery.com>
26458
26459 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
26460 unions by default if those structs and unions have no tags. Do
26461 not condition anonymous struct and unions handling on flag_iso.
26462 Allow anonymous structs and unions for C1X.
26463 (finish_struct): Do not diagnose lack of named fields when
26464 anonymous structs and unions present for C1X. Accept flexible
26465 array members in structure with anonymous structs or unions but no
26466 directly named fields.
26467 * doc/extend.texi (Unnamed Fields): Update.
26468
26469 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
26470
26471 * gimple.h (compare_field_offset): Rename into...
26472 (gimple_compare_field_offset): ...this.
26473 * gimple.c (compare_field_offset): Rename into...
26474 (gimple_compare_field_offset): ...this. Compare the full access if
26475 the offset is self-referential.
26476 (gimple_types_compatible_p): Adjust for above renaming.
26477 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
26478 DECL_NONADDRESSABLE_P flag of fields before merging them.
26479
26480 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
26481
26482 * tree.h (ctor_to_list): Delete.
26483 * tree.c (ctor_to_list): Delete.
26484
26485 2010-05-15 Jan Hubicka <jh@suse.cz>
26486
26487 * ipa-reference.c: Include toplev.h
26488 (is_proper_for_analysis): Only add to all_module_statics
26489 if it is allocated.
26490 (write_node_summary_p, stream_out_bitmap,
26491 ipa_reference_write_optimization_summary,
26492 ipa_reference_read_optimization_summary): New.
26493 (struct ipa_opt_pass_d pass_ipa_reference): Add
26494 optimization summary streaming.
26495 * lto-cgraph.c (referenced_from_this_partition_p,
26496 reachable_from_this_partition_p): New functions.
26497 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
26498 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
26499 * opts.c (decode_options): Enable ipa_reference.
26500 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
26501 * lto-streamer.h (referenced_from_this_partition_p,
26502 reachable_from_this_partition_p): Declare.
26503
26504 2010-05-15 Richard Guenther <rguenther@suse.de>
26505
26506 PR tree-optimization/44038
26507 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
26508 taking the address of a V_C_E of a constant.
26509
26510 2010-05-14 Jan Hubicka <jh@suse.cz>
26511
26512 * tree.h (memory_identifier_string): Remove.
26513 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
26514 (ipa_reference_global_vars_info_d): Remove statics_not_read and
26515 statics_not_written.
26516 (ipa_reference_optimization_summary_d): New structure.
26517 (ipa_reference_optimization_summary_t): New type and vector.
26518 (ipa_reference_vars_info_d): Embedd structures instead of using
26519 pointers.
26520 (reference_vars_to_consider): Remove out of GGC space.
26521 (module_statics_escape): Remove.
26522 (global_info_obstack): Rename to ...
26523 (optimization_summary_obstack): ... this one.
26524 (initialization_status_t): Remove.
26525 (memory_identifier_string): Remove.
26526 (get_reference_vars_info): Fix indenting.
26527 (set_reference_vars_info): Likewise.
26528 (get_reference_optimization_summary): New.
26529 (set_reference_optimization_summary): New.
26530 (get_global_reference_vars_info): Remove.
26531 (ipa_reference_get_read_global): Remove.
26532 (ipa_reference_get_written_global): Remove.
26533 (ipa_reference_get_not_read_global): Update.
26534 (ipa_reference_get_not_written_global): Update.
26535 (is_proper_for_analysis): Outlaw addressable.
26536 (propagate_bits): Update for new datastructures.
26537 (analyze_variable): Remove.
26538 (init_function_info): Update for new datastructures.
26539 (clean_function_local_data): Remove.
26540 (clean_function): Remove.
26541 (copy_global_bitmap): Use optimizations_summary_obstack.
26542 (duplicate_node_data): Duplicate optimization summary only.
26543 (remove_node_data): Remove optimization summary only.
26544 (generate_summary): Do not analyze variables; do not compute
26545 module_statics_escape; do not prune solutions by it.
26546 (read_write_all_from_decl): Fix typos in comments.
26547 (propagate): Doscover readonly and nonaddressable first;
26548 update for new datastructures; share global bitmaps.
26549 * ipa-reference.h (ipa_reference_get_read_global,
26550 ipa_reference_get_written_global): Remove.
26551 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
26552 * Makefile.in: Remove ipa-refereference from GT files.
26553
26554 2010-05-14 Jakub Jelinek <jakub@redhat.com>
26555
26556 PR debug/44112
26557 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
26558 for all SYMBOL_REF_DECLs.
26559
26560 2010-05-14 Jan Hubicka <jh@suse.cz>
26561
26562 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
26563 (varpool_all_refs_explicit_p): New inline function.
26564 * ipa-reference.c: Update comment.
26565 (module_statics_written): Remove.
26566 (get_static_decl): Remove.
26567 (ipa_init): Do not initialize module_statics_written.
26568 (analyze_function): Likewise.
26569 (generate_summary): Likewise; do not compute module_statics_readonly
26570 and do not update variable flags.
26571 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
26572 * ipa.c: Inlucde flags.h
26573 (cgraph_local_node_p): New.
26574 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
26575 promote functions to local.
26576 (ipa_discover_readonly_nonaddressable_vars): New function.
26577 (function_and_variable_visibility): Use cgraph_local_node_p.
26578 * varpool.c (varpool_finalize_decl): Set force_output for
26579 DECL_PRESERVE_P vars.
26580
26581 2010-05-14 Jan Hubicka <jh@suse.cz>
26582
26583 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
26584
26585 2010-05-14 Richard Guenther <rguenther@suse.de>
26586
26587 PR tree-optimization/44119
26588 * tree-ssa-pre.c (eliminate): Properly mark replacement of
26589 a PHI node necessary.
26590
26591 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
26592
26593 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
26594
26595 2010-05-14 Jason Merrill <jason@redhat.com>
26596
26597 PR c++/44127
26598 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
26599 (gimple_call_set_nothrow): New.
26600 * gimple.c (gimple_build_call_from_tree): Call it.
26601 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
26602
26603 PR c++/44127
26604 * gimplify.c (gimplify_seq_add_stmt): No longer static.
26605 * gimple.h: Declare it.
26606 * gimple.c (gimple_build_eh_filter): No ops.
26607
26608 2010-05-14 Jan Hubicka <jh@suse.cz>
26609
26610 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
26611 nodes already in queue.
26612 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
26613 re-enqueueing node.
26614
26615 2010-05-14 Jakub Jelinek <jakub@redhat.com>
26616
26617 PR debug/44136
26618 * cfgexpand.c (expand_debug_expr): If non-memory op0
26619 has BLKmode, return NULL.
26620
26621 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
26622
26623 * config.gcc: Add support for --with-cpu option for bdver1.
26624 * config/i386/i386.h (TARGET_BDVER1): New macro.
26625 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
26626 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26627 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
26628 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26629 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
26630 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
26631 (processor_type): Add PROCESSOR_BDVER1.
26632 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
26633 processor_type in config/i386/i386.h.
26634 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
26635 movaps <reg, reg> instead of movapd <reg, reg> when replacing
26636 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
26637 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
26638 to emit packed xor instead of packed double/packed integer
26639 xor for SSE and AVX when moving a zero value.
26640 * config/i386/sse.md: Add check for
26641 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
26642 movapd/movdqa for SSE and AVX.
26643 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
26644 single logical operations i.e and, or and xor instead of packed double
26645 logical operations for SSE and AVX.
26646 * config/i386/i386-c.c (ix86_target_macros_internal):
26647 Add PROCESSOR_BDVER1.
26648 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
26649 (has_fma4, has_xop): New.
26650 * config/i386/i386.c (bdver1_cost): New variable.
26651 (m_BDVER1): New macro.
26652 (m_AMD_MULTIPLE): Add m_BDVER1.
26653 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
26654 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
26655 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
26656 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
26657 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
26658 x86_tune_sse_partial_reg_dependency,
26659 x86_tune_sse_unaligned_load_optimal,
26660 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
26661 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
26662 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
26663 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
26664 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
26665 Enable/disable for bdver1.
26666 (processor_target_table): Add bdver1_cost.
26667 (cpu_names): Add bdver1.
26668 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
26669 processor_alias_table.
26670 (ix86_expand_vector_move_misalign): Change.
26671 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
26672 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
26673 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
26674 of movupd/movdqu for SSE and AVX.
26675 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
26676 (ix86_tune_adjust_cost): Add code for bdver1.
26677 (standard_sse_constant_opcode): Add check for
26678 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
26679 of packed double xor for SSE and AVX.
26680
26681 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
26682
26683 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
26684 result to unsigned.
26685
26686 2010-05-14 Tristan Gingold <gingold@adacore.com>
26687
26688 * toplev.c (default_debug_hooks): Remove this variable.
26689 (process_options): Remove assignments to default_debug_hooks.
26690
26691 2010-05-14 Martin Jambor <mjambor@suse.cz>
26692
26693 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
26694 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
26695 * langhooks.h (struct lang_hooks_for_decls): Removed field
26696 fold_obj_type_ref.
26697 * tree.c (free_lang_data): Remove assignment to
26698 lang_hooks.fold_obj_type_ref.
26699 * tree.def (OBJ_TYPE_REF): Update comment.
26700
26701 2010-05-14 Richard Guenther <rguenther@suse.de>
26702
26703 PR tree-optimization/44124
26704 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
26705
26706 2010-05-14 Alan Modra <amodra@gmail.com>
26707
26708 PR target/44075
26709 * config/rs6000/rs6000.c (struct machine_function): Reorder
26710 fields for better packing. Add lr_save_state.
26711 (rs6000_ra_ever_killed): Return lr_save_state if set.
26712 (rs6000_emit_eh_reg_restore): Set lr_save_state.
26713
26714 2010-05-13 Jan Hubicka <jh@suse.cz>
26715
26716 * varpool.c (decide_is_variable_needed): Drop code checking
26717 TREE_SYMBOL_REFERENCED.
26718
26719 2010-05-13 Jan Hubicka <jh@suse.cz>
26720
26721 * final.c (output_addr_const): Do not call mark_decl_referenced.
26722 * cgraphunit.c (process_function_and_variable_attributes): Use
26723 mark_needed_node dirrectly.
26724 (assemble_thunk): Do not call mark_decl_referenced.
26725
26726 2010-05-13 Anatoly Sokolov <aesok@post.ru>
26727
26728 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
26729
26730 2010-05-13 Jeff Law <law@redhat.com>
26731
26732 * ira-conflicts.c (print_allocno_conflicts): New function broken out
26733 from...
26734 (print_conflicts): Call print_allocno_conflicts.
26735
26736 2010-05-13 Jakub Jelinek <jakub@redhat.com>
26737
26738 PR debug/44104
26739 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
26740 if it is NULL.
26741
26742 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
26743
26744 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
26745 t-mingw-w64 or t-mingw-w32 for multilib configuration.
26746 * config/i386/t-mingw-w32: New.
26747 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
26748
26749 2010-05-13 Martin Jambor <mjambor@suse.cz>
26750
26751 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
26752 gimple-fold.c).
26753 * gimple-fold.c (get_base_binfo_for_type): New function.
26754 (gimple_get_relevant_ref_binfo): Likewise.
26755 (gimple_fold_obj_type_ref_known_binfo): Likewise.
26756 (gimple_fold_obj_type_ref): Likewise.
26757 (fold_gimple_call): Simplify condition for folding virtual calls
26758 and call gimple_fold_obj_type_ref.
26759 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
26760 (gimple_fold_obj_type_ref_known_binfo): Likewise.
26761
26762 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
26763
26764 * config/rs6000/rs6000-protos.h
26765 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
26766 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
26767 (rs6000_debug_mode_dependent_address)
26768 (rs6000_mode_dependent_address_ptr): Likewise.
26769
26770 2010-05-13 Jakub Jelinek <jakub@redhat.com>
26771
26772 PR debug/43983
26773 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
26774 by SRA.
26775 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
26776 * tree-sra.c (create_access_replacement): Call unshare_expr before
26777 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
26778 * dwarf2out.c: Include tree-flow.h.
26779 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
26780 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
26781 Handle DW_OP_bit_piece.
26782 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
26783 construct_piece_list, adjust_piece_list): New functions.
26784 (add_var_loc_to_decl): Handle SRA optimized variables.
26785 Adjust for var_loc_note to loc field renaming.
26786 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
26787 in VAR_LOCATION note.
26788 (new_loc_descr_op_bit_piece): New function.
26789 (dw_sra_loc_expr): New function.
26790 (dw_loc_list): Use it. Don't handle the last range after the
26791 loop, handle it inside of the loop. Adjust for var_loc_note
26792 to loc field renaming.
26793 (add_location_or_const_value_attribute): Only special case
26794 single entry loc lists if loc is NOTE_P. Adjust for
26795 var_loc_note to loc field renaming.
26796 (dwarf2out_var_location): Don't set newloc->var_loc_note
26797 and newloc->next here.
26798
26799 2010-05-12 Jan Hubicka <jh@suse.cz>
26800
26801 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
26802 flag.
26803 * cgraph.h (cgraph_only_called_directly_p,
26804 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
26805 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
26806 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
26807 (assemble
26808 * ipa.c (cgraph_remove_unreachable_nodes): Use
26809 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
26810 flags.
26811 * tree-inline.c (copy_bb): Check address_taken flag.
26812 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
26813 externally_visible flag.
26814
26815 2010-05-12 Jason Merrill <jason@redhat.com>
26816
26817 PR bootstrap/44048
26818 PR target/44099
26819 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
26820 * sdbout.c (plain_type_1): Likewise.
26821 * dwarf2out.c (is_base_type): Likewise.
26822 (gen_type_die_with_usage): Likewise. Generate
26823 DW_TAG_unspecified_type for any LANG_TYPE.
26824
26825 2010-05-12 Jan Hubicka <jh@suse.cz>
26826
26827 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
26828 indrect edges too.
26829 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
26830 (cgraph_clone_edge): Update.
26831 (cgraph_node_remove_callees): Remove indirect calls too.
26832 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
26833 (cgraph_create_indirect_edge): Update prototype.
26834 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
26835 is_proper_for_analysis.
26836 (add_new_function, visited_nodes, function_insertion_hook_holder,
26837 get_local_reference_vars_info, mark_address_taken, mark_address,
26838 mark_load, mark_store, check_asm_memory_clobber, check_call,
26839 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
26840 (ipa_init): Do not initialize visited_nodes;
26841 function_insertion_hook_holder.
26842 (analyze_variable): Rewrite.
26843 (analyze_function): Rewrite.
26844 (copy_local_bitmap): Remove.
26845 (duplicate_node_dat): Do not duplicate local info.
26846 (generate_summary): Simplify to only walk cgraph.
26847 (write_node_summary_p, ipa_reference_write_summary,
26848 ipa_reference_read_summary): Remove.
26849 (propagate): Do not remove function insertion;
26850 generate summary.
26851 (pass_ipa_reference): NULLify summary handling fields.
26852 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
26853 (input_edge): Input ecf_flags.
26854 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
26855 (update_indirect_edges_after_inlining): Ignore edges with unknown
26856 param.
26857
26858 2010-05-12 Sriraman Tallam <tmsriram@google.com>
26859
26860 * implicit-zee.c: New file.
26861 * tree-pass.h (pass_implicit_zee): Declare.
26862 * passes.c (init_optimization_passes): Add zee pass.
26863 * common.opt (fzee): New flag.
26864 * timevar.def (TV_ZEE): Define.
26865 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
26866 and beyond.
26867 * Makefile.in (implicit-zee.o): Add new build file.
26868
26869 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
26870 Nathan Froyd <froydnj@codesourcery.com>
26871
26872 * c-common.c (sync_resolve_params): Remove write-only variable.
26873
26874 2010-05-12 Anatoly Sokolov <aesok@post.ru>
26875
26876 * target.h (struct gcc_target): Add mode_dependent_address_p field.
26877 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26878 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
26879 * targhooks.c (default_mode_dependent_address_p): New function.
26880 * targhooks.h (default_mode_dependent_address_p): Declare function.
26881 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26882 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
26883 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
26884 target hook. Change return type to bool.
26885 * recog.h (mode_dependent_address_p): Change return type to bool.
26886
26887 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
26888 Nathan Froyd <froydnj@codesourcery.com>
26889
26890 * tree-mudflap.c (build_function_type_0, build_function_type_1,
26891 build_function_type_2, build_function_type_3): Remove.
26892 (mudflap_init): Use build_function_type_list.
26893
26894 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
26895 Nathan Froyd <froydnj@codesourcery.com>
26896
26897 * coverage.c (build_fn_info_value): Call build_constructor instead of
26898 build_constructor_from_list.
26899 (build_ctr_info_value): Likewise.
26900 (build_gcov_info): Likewise.
26901
26902 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
26903
26904 * tree.c (build_constructor): Compute TREE_CONSTANT for the
26905 resultant constructor.
26906 (build_constructor_single): Don't set TREE_CONSTANT.
26907 (build_constructor_from_list): Don't compute TREE_CONSTANT.
26908
26909 2010-05-12 Jan Hubicka <jh@suse.cz>
26910
26911 * cgraph.h (struct varpool_node): Add aux.
26912 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
26913 * varpool.c (varpool_remove_node): Do not remove initializer.
26914 (varpool_reset_queue): Export.
26915 (varpool_finalize_decl): Volatile vars are forced to be output.
26916 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
26917 replaced decl.
26918 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26919 process_references, varpool_can_remove_if_no_refs): New functions.
26920 (cgraph_remove_unreachable_nodes): Handle variables too.
26921
26922 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
26923
26924 PR target/44088
26925 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
26926
26927 2010-05-12 Jakub Jelinek <jakub@redhat.com>
26928
26929 PR middle-end/44085
26930 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
26931 change value of ORT_TASK.
26932 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
26933 (omp_notice_threadprivate_variable): New function.
26934 (omp_notice_variable): Call it for threadprivate variables.
26935 If enclosing ctx is a task, print enclosing task rather than
26936 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
26937 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
26938 if task has untied clause.
26939
26940 PR debug/42278
26941 * dwarf2out.c (base_type_die): Don't add name attribute here.
26942 (modified_type_die): Instead of sizetype use
26943 its underlying original type. If a DW_TAG_base_type doesn't
26944 have name added, add __unknown__.
26945 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
26946 always call force_type_die instead.
26947
26948 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
26949
26950 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
26951 for __stack_chk_guard.
26952
26953 2010-05-11 Jakub Jelinek <jakub@redhat.com>
26954
26955 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
26956 don't call start_source_file debug hook here...
26957 (finish_options): ... but here, after outputting predefined and
26958 command line defines and undefs.
26959
26960 PR middle-end/44071
26961 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
26962 no fallthru edge.
26963 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
26964 optimizing away empty bb with no successors, move over its
26965 footer chain to fallthru predecessor.
26966 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
26967 (rtl_split_edge): For asm goto call patch_jump_insn even if
26968 splitting fallthru edge.
26969
26970 PR c++/44059
26971 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
26972 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
26973 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
26974 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
26975 on DW.ref.* decls.
26976
26977 PR c++/44062
26978 * c-parser.c (c_parser_expression): Mark LHS of a comma
26979 expression as read if it is a decl, handled component or
26980 COMPOUND_EXPR with that on the RHS.
26981 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
26982 if it is a decl or handled component.
26983
26984 2010-05-11 Jan Hubicka <jh@suse.cz>
26985
26986 * lto-symtab.c (lto_symtab_free): New function.
26987 * lto-streamer.h (lto_symtab_free): Declare.
26988
26989 2010-05-11 Jan Hubicka <jh@suse.cz>
26990
26991 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
26992 that if function is needed it is reachable.
26993 (lto_output_node): See if it the function is reachable or referenced.
26994 (output_cgraph): Update call of lto_output_node.
26995 * lto-streamer.h (reachable_from_other_partition_p): Declare.
26996
26997 2010-05-11 Jan Hubicka <jh@suse.cz>
26998
26999 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
27000 Mark as used.
27001
27002 2010-05-11 Jan Hubicka <jh@suse.cz>
27003
27004 PR tree-optimize/44063
27005 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
27006 queue.
27007 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
27008 limits.
27009 (estimate_function_body_sizes): Compute sizes even when disregarding.
27010
27011 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
27012
27013 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
27014
27015 2010-05-11 Jan Hubicka <jh@suse.cz>
27016
27017 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
27018 into every boundary.
27019
27020 2010-05-11 Jan Hubicka <jh@suse.cz>
27021
27022 * matrix-reorg.c (matrix_reorg): Rebuild edges.
27023
27024 2010-05-11 Jan Hubicka <jh@suse.cz>
27025
27026 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
27027 lto_streamer_cache_delete): Put nodes into heap.
27028 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
27029 heap.
27030
27031 2010-05-11 Jan Hubicka <jh@suse.cz>
27032
27033 * cgraphbuild.c (cgraph_rebuild_references): New.
27034 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
27035 out extern inlines.
27036 * cgraph.h (cgraph_rebuild_references): Declare.
27037 * tree-inline.c (tree_function_versioning): Use it.
27038 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
27039
27040 2010-05-11 Jan Hubicka <jh@suse.cz>
27041
27042 * cgraph.c: Include ipa-utils.h
27043 (cgraph_create_virtual_clone): Update references.
27044 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
27045
27046 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
27047
27048 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
27049 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
27050 cache size.
27051
27052 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
27053
27054 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
27055
27056 2010-05-11 Jakub Jelinek <jakub@redhat.com>
27057
27058 * gcc.c (execute): For -### don't quote arguments that
27059 contain just alphanumerics and _/-. characters.
27060 * doc/invoke.texi: Document that change for -###.
27061
27062 PR debug/44023
27063 * df-problems.c (struct dead_debug): Add to_rescan field.
27064 (dead_debug_init): Clear to_rescan field.
27065 (dead_debug_finish): Rescan all debug insns in to_rescan
27066 bitmap and free the bitmap.
27067 (dead_debug_insert_before): Instead of rescanning debug insns
27068 immediately queue their rescanning until dead_debug_finish.
27069 (df_note_bb_compute): After dead_debug_add do continue instead
27070 of break.
27071
27072 2010-05-10 Jakub Jelinek <jakub@redhat.com>
27073
27074 PR debug/44028
27075 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
27076 clear also INSN_REG_USE_LIST.
27077
27078 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27079
27080 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
27081
27082 2010-05-10 Jan Hubicka <jh@suse.cz>
27083
27084 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
27085 commited change.
27086
27087 2010-05-10 Jan Hubicka <jh@suse.cz>
27088
27089 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
27090 Allocate encoders.
27091 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
27092 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
27093 (lto_streamer_cache_create): Init alloc pool.
27094 (lto_streamer_cache_delete): Free alloc pool.
27095 * lto-streamer.h: Include alloc pool.
27096 (lto_streamer_cache_d): Use alloc pool.
27097 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
27098
27099 2010-05-10 Jan Hubicka <jh@suse.cz>
27100
27101 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
27102 * cgraphbuild.c: Include except.h
27103 (record_type_list, record_eh_tables): New function.
27104 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
27105
27106 2010-05-10 Jan Hubicka <jh@suse.cz>
27107
27108 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
27109 __frame_dummy_init_array_entry, force_to_data): Attribute as used
27110 rather than unused.
27111
27112 2010-05-10 Michael Matz <matz@suse.de>
27113
27114 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
27115 (can_reassociate_p): Use FLOAT_TYPE_P.
27116 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
27117 (vect_force_simple_reduction): ... this.
27118 * tree-parloops.c (gather_scalar_reductions): Use
27119 vect_force_simple_reduction.
27120 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
27121 vect_is_simple_reduction, add modify argument, if true rewrite
27122 "a-b" into "a+(-b)".
27123 (vect_is_simple_reduction, vect_force_simple_reduction): New
27124 functions.
27125 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
27126
27127 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
27128 Vladimir Makarov <vmakarov@redhat.com>
27129
27130 PR rtl-optimization/44012
27131 * ira-build.c (remove_unnecessary_allocnos): Nullify
27132 regno_allocno_map of the removed allocno.
27133
27134 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27135
27136 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
27137 to /dev/null.
27138 * configure: Regenerate.
27139
27140 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27141
27142 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
27143 unused.
27144 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
27145 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
27146 support in Sun ld.
27147 * configure: Regenerate.
27148
27149 2010-05-10 Richard Guenther <rguenther@suse.de>
27150
27151 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
27152 marked if the entry identifier is marked.
27153
27154 2010-05-10 Richard Guenther <rguenther@suse.de>
27155
27156 * c-common.c (struct c_common_attributes): Add fnspec attribute.
27157 (handle_fnspec_attribute): New function.
27158 * gimple.h (gimple_call_return_flags): Declare.
27159 (gimple_call_arg_flags): Likewise.
27160 * gimple.c (gimple_call_arg_flags): New function.
27161 (gimple_call_return_flags): Likewise.
27162 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
27163 New argument flags.
27164 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
27165 return value flags.
27166 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
27167 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
27168 main work to ...
27169 (make_heapvar_for): ... this new function.
27170 (handle_rhs_call): Handle fnspec attribute argument specifiers.
27171 (handle_lhs_call): Likewise.
27172 (find_func_aliases): Adjust.
27173
27174 2010-05-10 Richard Guenther <rguenther@suse.de>
27175
27176 PR tree-optimization/44050
27177 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
27178
27179 2010-05-10 Wei Guozhi <carrot@google.com>
27180
27181 PR target/42879
27182 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
27183
27184 2010-05-09 Joseph Myers <joseph@codesourcery.com>
27185
27186 PR c/10676
27187 * c-typeck.c (lookup_field): Take a type directly. Update
27188 recursive calls.
27189 (build_component_ref): Update call to lookup_field.
27190 (set_init_label): Use lookup_field to find initialized field.
27191 Handle returned list of fields like a sequence of designators.
27192
27193 2010-05-09 Richard Guenther <rguenther@suse.de>
27194
27195 PR middle-end/44024
27196 * fold-const.c (tree_single_nonzero_warnv_p): Properly
27197 handle &FUNCTION_DECL.
27198
27199 2010-05-09 Joseph Myers <joseph@codesourcery.com>
27200
27201 PR c/4784
27202 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
27203 structures and unions recursively.
27204 (detect_field_duplicates): Move duplicate detection with a hash to
27205 detect_field_duplicates_hash. Always use a hash if anonymous
27206 structures or unions are present.
27207 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
27208 give errors.
27209
27210 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
27211
27212 PR target/44046
27213 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
27214 detect Atom, Core 2 and Core i7.
27215
27216 2010-05-09 Richard Guenther <rguenther@suse.de>
27217
27218 * gcc.c (store_arg): Handle temporary file deletion for
27219 joined arguments.
27220
27221 2010-05-09 Richard Guenther <rguenther@suse.de>
27222
27223 PR middle-end/44043
27224 * ipa-inline.c (estimate_function_body_sizes): Return after
27225 disregarding inline limits.
27226
27227 2010-05-09 Richard Guenther <rguenther@suse.de>
27228
27229 * gcc.c (store_arg): Revert last change.
27230
27231 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
27232
27233 PR middle-end/28685
27234 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
27235 (optimize_ops_list): Call it.
27236
27237 2010-05-08 Richard Guenther <rguenther@suse.de>
27238
27239 PR tree-optimization/44030
27240 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
27241 NECESSARY flag if we propagate from a inserted expression.
27242
27243 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
27244
27245 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
27246 domain types as equal if they are both PLACEHOLDER_EXPRs.
27247
27248 2010-05-08 Richard Guenther <rguenther@suse.de>
27249
27250 * lto-wrapper.c (run_gcc): Remove linker output from
27251 command line for LTRANS invocation.
27252
27253 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
27254
27255 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
27256 lto-macho as lto_binary_reader.
27257 * target.h (struct gcc_target): New hooks lto_start and lto_end.
27258 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
27259 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
27260 in lto_start and lto_end calls.
27261 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
27262 magic numbers.
27263 (scan_prog_file): Update is_elf_or_coff call.
27264 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
27265
27266 * collect2.c (main): Fix enum comparison.
27267
27268 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
27269 Add prototypes.
27270 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
27271 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
27272 and TARGET_ASM_LTO_END.
27273 * darwin.c: Include obstack.h and lto-streamer.h.
27274 (lto_section_names_offset, lto_section_names_obstack,
27275 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
27276 global variables.
27277 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
27278 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
27279 to a temporary file.
27280 (darwin_asm_lto_end): New function. Restore asm_out_file.
27281 (darwin_asm_named_section): For LTO sections, replace the name with
27282 the offset of the section name in a string table, and build this
27283 table.
27284 (darwin_file_start): Initialize global vars for LTO support.
27285 (darwin_file_end): If output to asm_out_file was redirected, append it
27286 to the proper asm_out_file here. Add the section names section.
27287
27288 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
27289
27290 * c-pragma.c (pending_weak_d, pending_weak): New.
27291 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
27292 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
27293 handle_pragma_weak): Update the uses of pending_weaks.
27294
27295 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27296
27297 PR documentation/44016
27298 * doc/standards.texi (Standards): Link to unversioned
27299 cxx0x_status.html page.
27300
27301 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
27302
27303 PR target/43708
27304 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
27305 in addition to TREE_USED, to avoid "set but unused" warnings.
27306
27307 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
27308
27309 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
27310 (is_loop_prefetching_profitable): Do not insert prefetches
27311 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
27312 times the prefetch ahead distance.
27313
27314 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
27315
27316 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
27317 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
27318 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
27319 the unroll_factor.
27320
27321 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
27322
27323 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
27324 a diagnostic info when the insn-to-mem ratio is too small.
27325
27326 2010-05-07 Richard Guenther <rguenther@suse.de>
27327
27328 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
27329 the linker plugin.
27330 (store_arg): Queue temp_filename for deletion instead of
27331 the whole argument.
27332
27333 2010-05-07 Richard Guenther <rguenther@suse.de>
27334
27335 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
27336 (run_gcc): Handle LTRANS phase invocation.
27337 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
27338
27339 2010-05-07 Jakub Jelinek <jakub@redhat.com>
27340
27341 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
27342 this is also meaningful on PARM_DECLs and RESULT_DECLs.
27343
27344 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27345
27346 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
27347
27348 2010-05-07 Richard Guenther <rguenther@suse.de>
27349
27350 PR tree-optimization/44020
27351 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
27352 code when PRE is not yet initialized.
27353
27354 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27355
27356 * config/mips/dbxmdebug.h: Remove.
27357 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
27358
27359 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
27360
27361 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
27362 with null pointer and also warn about ordered comparison of zero with
27363 pointer if -Wextra.
27364
27365 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
27366
27367 * graphite-blocking.c
27368 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
27369 * graphite-clast-to-gimple.c
27370 (clast_to_gcc_expression): Same.
27371 (precision_for_value): Same.
27372 (precision_for_interval): Same.
27373 (gcc_type_for_interval): Same.
27374 (graphite_create_new_guard): Same.
27375 (compute_bounds_for_level): Same.
27376 (graphite_create_new_loop_guard): Same.
27377 * graphite-interchange.c
27378 (build_linearized_memory_access): Same.
27379 (pdr_stride_in_loop): Same.
27380 (memory_strides_in_loop_1): Same.
27381 (memory_strides_in_loop): Same.
27382 (extend_scattering): Same.
27383 (psct_scattering_dim_for_loop_depth): Same.
27384 (pbb_number_of_iterations): Same.
27385 * graphite-poly.h
27386 (debug_iteration_domains): Same.
27387 * graphite-ppl.c
27388 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
27389 (ppl_set_inhomogeneous_gmp): Same.
27390 (ppl_strip_loop): Same.
27391 (ppl_lexico_compare_linear_expressions): Same.
27392 (ppl_read_polyhedron_matrix): Same.
27393 (ppl_max_for_le_pointset): Same.
27394 * graphite-ppl.h
27395 (ppl_read_polyhedron_matrix): Same.
27396 (tree_int_to_gmp): Same.
27397 (gmp_cst_to_tree): Same.
27398 (ppl_set_inhomogeneous): Same.
27399 (ppl_set_inhomogeneous_tree): Same.
27400 (ppl_set_coef): Same.
27401 (ppl_set_coef_tree): Same.
27402 * graphite-sese-to-poly.c
27403 (build_pbb_scattering_polyhedrons): Same.
27404 (build_scop_scattering): Same.
27405 (scan_tree_for_params_right_scev): Same.
27406 (scan_tree_for_params): Same.
27407 (find_params_in_bb): Same.
27408 (find_scop_parameters): Same.
27409 (add_upper_bounds_from_estimated_nit): Same.
27410 (build_loop_iteration_domains): Same.
27411 (add_condition_to_domain): Same.
27412 (pdr_add_memory_accesses): Same.
27413
27414 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
27415
27416 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
27417 CLooG's value_* macros to their respective mpz_* counterparts.
27418 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
27419 (graphite_create_new_loop_guard): Same.
27420 * graphite-interchange.c (build_linearized_memory_access): Same.
27421 (pdr_stride_in_loop): Same.
27422 (memory_strides_in_loop_1): Same.
27423 (1st_interchange_profitable_p): Same.
27424 * graphite-poly.c (extend_scattering): Same.
27425 (psct_scattering_dim_for_loop_depth): Same.
27426 (pbb_number_of_iterations): Same.
27427 (pbb_number_of_iterations_at_time): Same.
27428 * graphite-poly.h (new_1st_loop): Same.
27429 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
27430 (oppose_constraint): Same.
27431 (insert_constraint_into_matrix): Same.
27432 (ppl_set_inhomogeneous_gmp): Same.
27433 (ppl_set_coef_gmp): Same.
27434 (ppl_strip_loop): Same.
27435 (ppl_lexico_compare_linear_expressions): Same.
27436 (ppl_max_for_le_pointset): Same.
27437 (ppl_min_for_le_pointset): Same.
27438 (ppl_build_realtion): Same.
27439 * graphite-ppl.h (gmp_cst_to_tree): Same.
27440 (ppl_set_inhomogeneous): Same.
27441 (ppl_set_inhomogeneous_tree): Same.
27442 (ppl_set_coef): Same.
27443 (ppl_set_coef_tree): Same.
27444 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27445 (build_scop_scattering): Same.
27446 (add_value_to_dim): Same.
27447 (scan_tree_for_params_right_scev): Same.
27448 (scan_tree_for_params_int): Same.
27449 (scan_tree_for_params): Same.
27450 (find_params_in_bb): Same.
27451 (find_scop_parameters): Same.
27452 (add_upper_bounds_from_estimated_nit): Same.
27453 (build_loop_iteration_domains): Same.
27454 (create_linear_expr_from_tree): Same.
27455 (add_condition_to_domain): Same.
27456 (pdr_add_memory_accesses): Same.
27457
27458 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
27459 Jason Merrill <jason@redhat.com>
27460
27461 * c-common.c (c_common_reswords): Add nullptr.
27462 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
27463 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
27464 (gen_type_die_with_usage): Likewise.
27465 * dbxout.c (dbxout_type): Likewise.
27466 * sdbout.c (plain_type_1): Likewise.
27467
27468 2010-05-06 Jason Merrill <jason@redhat.com>
27469
27470 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
27471 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
27472 ret appropriately.
27473 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
27474
27475 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
27476 stripping WITH_SIZE_EXPR.
27477 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
27478 change.
27479
27480 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27481
27482 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
27483 list of obsolete configurations.
27484 Disabled check for obsolete configurations.
27485 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
27486 Removed support for previous versions.
27487 * config/mips/iris.h: Removed.
27488 * config/mips/iris5.h: Removed.
27489 * config/mips/iris6.h: Merged old iris.h contents.
27490 (TARGET_IRIX): Removed.
27491 (DRIVER_SELF_SPECS): Removed mabi=32.
27492 (IDENT_ASM_OP): Removed undef.
27493 (STARTFILE_SPEC): Removed mabi=32.
27494 (ENDFILE_SPEC): Likewise.
27495 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
27496 (MACHINE_TYPE): Update for IRIX 6.5.
27497 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
27498 TARGET_IRIX by TARGET_IRIX6.
27499 (mips_file_start): Likewise.
27500 (mips_output_external): Remove IRIX 5/6 O32 support.
27501 (mips_output_function_prologue): Likewise.
27502 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
27503 TARGET_IRIX6.
27504 (TARGET_CPU_CPP_BUILTINS): Likewise.
27505 (TARGET_IRIX): Removed.
27506 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
27507 (MULTILIB_DIRNAMES): Removed 32.
27508 (MULTILIB_OSDIRNAMES): Removed ../lib.
27509 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
27510 (Specific, mips-sgi-irix5): Document removal.
27511 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
27512 Remove references to older IRIX 6 releases and the O32 ABI.
27513
27514 2010-05-06 Jakub Jelinek <jakub@redhat.com>
27515
27516 PR bootstrap/43994
27517 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
27518 instead of DF_REF_REAL_REG.
27519
27520 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
27521
27522 PR target/43888
27523 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
27524 handling to still return true for x64 targets.
27525
27526 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
27527
27528 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
27529
27530 2010-05-06 Jan Hubicka <jh@suse.cz>
27531
27532 PR tree-optimization/43791
27533 * ipa-inline.c (update_caller_keys): Remove bogus
27534 disregard_inline_limits check.
27535
27536 2010-05-06 Michael Matz <matz@suse.de>
27537
27538 PR tree-optimization/43984
27539 * tree-ssa-pre.c (inserted_phi_names): Remove.
27540 (inserted_exprs): Change to bitmap.
27541 (create_expression_by_pieces): Set bits, don't append to vector.
27542 (insert_into_preds_of_block): Don't handle inserted_phi_names.
27543 (eliminate): Don't look at inserted_phi_names, remove deleted
27544 insns from inserted_exprs.
27545 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
27546 (init_pre, fini_pre): Allocate and free bitmaps.
27547 (execute_pre): Insert insns on edges before elimination.
27548
27549 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
27550
27551 * tree.c (initializer_zerop): Handle STRING_CST.
27552
27553 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
27554
27555 PR 40989
27556 * doc/invoke.texi (Wimplicit): Document as C only.
27557 * opts.c (common_handle_option): Add argument kind.
27558 (handle_option): Rename as read_cmdline_option. Factor out code to...
27559 (handle_option): ... here. New.
27560 (handle_options): Rename as read_cmdline_options.
27561 (decode_options): Update call.
27562 (set_option): Use option index instead of option pointer. Classify
27563 diagnostics correctly.
27564 (enable_warning_as_error): Call handle_option.
27565 * opts.h (set_option): Update declaration.
27566 (handle_option): Declare.
27567 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
27568 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
27569 * c-opts.c (set_Wimplicit): Delete.
27570 (c_family_lang_mask): New static constant.
27571 (c_common_handle_option): Add argument kind. Use handle_option
27572 instead of set_Wimplicit.
27573 (c_common_post_options): warn_implicit and warn_implicit_int
27574 are disabled by default.
27575 * c-common.c (warn_implicit): Do not define here.
27576 * c-common.h (warn_implicit): Do not declare here.
27577 (c_common_handle_option): Update declaration.
27578 * lto-opts.c (lto_reissue_options): Update call to set_option.
27579
27580 2010-05-06 Richard Guenther <rguenther@suse.de>
27581
27582 PR tree-optimization/43571
27583 * domwalk.c (walk_dominator_tree): Walk the dominator
27584 sons in more optimal order.
27585
27586 2010-05-06 Richard Guenther <rguenther@suse.de>
27587
27588 PR tree-optimization/43934
27589 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
27590 (stmt_cost): Likewise.
27591 (extract_true_false_args_from_phi): New helper.
27592 (determine_max_movement): For PHI nodes verify we can hoist them
27593 and compute their cost.
27594 (determine_invariantness_stmt): Handle PHI nodes.
27595 (move_computations_stmt): Likewise. Hoist PHI nodes in
27596 if-converted form using COND_EXPRs.
27597 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
27598 (tree_ssa_lim): Likewise.
27599 * tree-flow.h (tree_ssa_lim): Adjust prototype.
27600 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
27601
27602 2010-05-06 Richard Guenther <rguenther@suse.de>
27603
27604 PR tree-optimization/43987
27605 * tree-ssa-structalias.c (could_have_pointers): For possibly
27606 address-taken variables force pointers to be recorded.
27607 (create_variable_info_for_1): Likewise.
27608 (push_fields_onto_fieldstack): Pass in wheter all fields
27609 must have pointers.
27610 (find_func_aliases): Query types instead of vars whether
27611 they contain pointers where appropriate.
27612
27613 2010-05-06 Jan Hubicka <jh@suse.cz>
27614
27615 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
27616 (record_reference, mark_address, mark_load, mark_store): Record
27617 references.
27618 (record_references_in_initializer): Update call of record_references.
27619 (rebuild_cgraph_edges): Remove all references before rebuiding.
27620 * cgraph.c (cgraph_create_node): Clear ref list.
27621 (cgraph_remove_node): Remove references.
27622 (dump_cgraph_node): Dump references.
27623 (cgraph_clone_node): Clone references.
27624 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
27625 (struct cgraph_node, varpool_node): Add ref_lst.
27626 * ipa-ref.c: New file.
27627 * ipa-ref.h: New file.
27628 * ipa-ref-inline.h: New file.
27629 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
27630 (referenced_from_other_partition_p): New function.
27631 (lto_output_varpool_node): Take set arugment; call
27632 referenced_from_other_partition.
27633 (lto_output_ref): New.
27634 (add_references): New.
27635 (output_refs): New.
27636 (output_cgraph): Compute boundary based on references; output refs.
27637 (output_varpool): Accept cgraph_node_set argument.
27638 (input_ref): New.
27639 (input_refs): New.
27640 (input_cgraph): Call input_refs.
27641 * lto-section-in.c (lto_section_name): Add refs.
27642 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
27643 (ipa-ref.o): New file.
27644 * varpool.c (varpool_node): Clear ipa ref list.
27645 (varpool_remove_node): Remove references.
27646 (dump_varpool_node): Dump references.
27647 (varpool_assemble_decl): Only compile finalized ones.
27648 (varpool_extra_name_alias): Initialize ref list.
27649 * lto-streamer.c (lto-get_section_name): Add .refs section.
27650 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
27651 (referenced_from_other_partition_p): Declared.
27652
27653 2010-05-06 Ira Rosen <irar@il.ibm.com>
27654
27655 PR tree-optimization/43901
27656 * tree-vect-stmts.c (vectorizable_call): Assert that vector
27657 type is not NULL if it's transformation phase, and return
27658 FALSE if it's analysis.
27659 (vectorizable_conversion, vectorizable_operation,
27660 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
27661
27662 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
27663
27664 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27665 Delete.
27666 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27667 New define.
27668 * config/mips/mips-protos.h
27669 (mips_small_register_classes_for_mode_p): Delete prototype.
27670
27671 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
27672
27673 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
27674 * config/arm/arm.c (multiple_operation_profitable_p,
27675 compute_offset_order): New static functions.
27676 (load_multiple_sequence, store_multiple_sequence): Use them.
27677 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
27678 memory offsets, not register numbers.
27679 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
27680
27681 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
27682
27683 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
27684 (get_pending_sizes, put_pending_size, put_pending_sizes):
27685 Update the uses of pending_sizes.
27686 * c-decl.c (store_parm_decls): Likewise.
27687 * c-tree.h (struct c_arg_info): Likewise.
27688 * tree.h: Update the prototype for get_pending_sizes and
27689 put_pending_sizes.
27690
27691 2010-05-05 Jason Merrill <jason@redhat.com>
27692
27693 PR debug/43370
27694 * c-common.c (handle_aligned_attribute): Respect
27695 ATTR_FLAG_TYPE_IN_PLACE.
27696
27697 PR testsuite/43758
27698 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
27699 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27700 (TARGET_INITIALIZER): Use it.
27701 * c-common.c (attribute_takes_identifier_p): Call it.
27702 * c-common.h: Update prototype.
27703 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
27704 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27705
27706 2010-05-05 Jakub Jelinek <jakub@redhat.com>
27707
27708 PR debug/43950
27709 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
27710 DW_ID_down_case for Fortran compilation units.
27711
27712 2010-05-05 Jan Hubicka <jh@suse.cz>
27713
27714 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
27715 handle aliases.
27716
27717 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
27718
27719 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
27720 a variable-sized RESULT_DECL.
27721
27722 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
27723
27724 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
27725
27726 2010-05-05 Jason Merrill <jason@redhat.com>
27727
27728 PR c++/43787
27729 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
27730 returns GS_OK.
27731 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
27732
27733 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
27734 Jakub Jelinek <jakub@redhat.com>
27735
27736 PR debug/43478
27737 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
27738 (dead_debug_init, dead_debug_finish): New functions.
27739 (dead_debug_add, dead_debug_insert_before): Likewise.
27740 (df_note_bb_compute): Initialize a dead_debug object, add dead
27741 debug uses to it, insert debug bind insns before death insns,
27742 reset debug insns that refer to pending uses at the end.
27743 * rtl.h (make_debug_expr_from_rtl): New prototype.
27744 * varasm.c (make_debug_expr_from_rtl): New function.
27745
27746 2010-05-05 Jan Hubicka <jh@suse.cz>
27747
27748 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
27749 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
27750 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
27751 lto_varpool_encoder_deref, lto_varpool_encoder_size,
27752 lto_varpool_encoder_encode_initializer_p,
27753 lto_set_varpool_encoder_encode_initializer): New functions.
27754 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
27755 call output_varpool.
27756 (input_varpool_node): Do not always set analyzed.
27757 (input_cgraph_1): Return vector of cgraph nodes.
27758 (input_varpool_1): Return vector of varpools.
27759 (input_cgraph): Free the vectors.
27760 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27761 output only initializers needed.
27762 (lto_output): Only call output_cgraph.
27763 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
27764 * lto-section-out.c (lto_new_out_decl_state): Initialize
27765 state->varpool_node_encoder.
27766 * lto-streamer.h (lto_varpool_encoder_d): New.
27767 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
27768 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
27769 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
27770 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
27771 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
27772 Declare.
27773 (output_varpool, input_varpool): Remove declarations.
27774
27775 2010-05-05 Jan Hubicka <jh@suse.cz>
27776
27777 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
27778 with body can prevail.
27779
27780 2010-05-05 Jan Hubicka <jh@suse.cz>
27781
27782 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
27783 size.
27784
27785 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27786
27787 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
27788
27789 * gengtype.h (erro_at_line): Constify pos argument.
27790
27791 * gengtype.c: Include hashtab.h.
27792 (enum gc_used): Document GC_MAYBE_POINTED_TO.
27793 (error_at_line): Constify pos argument.
27794 (do_typedef): Initialize p->opt field.
27795 (get_file_gtfilename): Fix comment typo.
27796 (struct walk_type_data): Constify line field.
27797 (get_output_file_for_structure): New function.
27798 (write_local_func_for_structure): Constify orig_s argument.
27799 Use get_output_file_for_structure.
27800 (write_func_for_structure): Use get_output_file_for_structure.
27801 (INDENT): New define.
27802 (dump_pair, dump_type, dump_type_list, dump_typekind)
27803 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
27804 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
27805 functions.
27806 (seen_types): New variable.
27807 (main): New variable do_dump. Process "-d" command line option.
27808 Call dump_everything if dump requested.
27809
27810 2010-05-05 Jakub Jelinek <jakub@redhat.com>
27811
27812 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
27813 in a temporary instead of invoking the macro multiple times.
27814 (track_expr_p): Likewise.
27815
27816 2010-05-04 Neil Vachharajani <nvachhar@google.com>
27817
27818 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
27819 per new semantics.
27820 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
27821 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
27822 conditions for printing notes.
27823 * common.opt (-Wcoverage-mismatch): Allow negative, default to
27824 true, update documentation.
27825 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
27826
27827 2010-05-04 Jakub Jelinek <jakub@redhat.com>
27828
27829 PR c/43981
27830 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
27831 on dimen.
27832
27833 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
27834
27835 PR target/43799
27836 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
27837 (*sse_prologue_save_insn1): Likewise.
27838 (SSE prologue save splitter): Likewise.
27839
27840 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
27841
27842 * tree.c (free_lang_data_in_one_sizepos): New inline function.
27843 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
27844 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
27845 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
27846 all decls. Call it on DECL_FIELD_OFFSET of fields.
27847 (find_decls_types_r): Follow DECL_VALUE_EXPR.
27848 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
27849
27850 2010-05-04 Martin Jambor <mjambor@suse.cz>
27851
27852 * tree-sra.c (build_access_from_expr_1): The first parameter type
27853 changed to simple tree.
27854 (build_access_from_expr): Likewise, gsi parameter was eliminated.
27855 (scan_assign_result): Renamed to assignment_mod_result, enum elements
27856 renamed as well.
27857 (build_accesses_from_assign): Removed all parameters except for a
27858 simple gimple statement. Now returns a simple bool.
27859 (scan_function): All non-analysis parts moved to separate functions
27860 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
27861 parameters and updated both callers.
27862 (sra_modify_expr): Removed parameter data.
27863 (sra_modify_function_body): New function.
27864 (perform_intra_sra): Call sra_modify_function_body to modify the
27865 function body.
27866 (replace_removed_params_ssa_names): Parameter data changed into
27867 adjustments vector.
27868 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
27869 changed the parameter dont_convert to convert with the opposite
27870 meaning.
27871 (sra_ipa_modify_assign): Parameter data changed into adjustments
27872 vector, return value changed to bool.
27873 (ipa_sra_modify_function_body): New function.
27874 (sra_ipa_reset_debug_stmts): Updated a comment.
27875 (modify_function): Use ipa_sra_modify_function_body to modify function
27876 body.
27877
27878 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
27879
27880 PR middle-end/43671
27881 * alias.c (true_dependence): Handle the same VALUE in x and mem.
27882 (canon_true_dependence): Likewise.
27883 (write_dependence_p): Likewise.
27884
27885 2010-05-04 Jan Hubicka <jh@suse.cz>
27886
27887 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
27888 * cgraphbuild.c: Include ipa-utils.h
27889 (record_reference_ctx): New struct.
27890 (record_reference): Simplify to work on initializers; not statements.
27891 (mark_address, mark_load, mark_store): New.
27892 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27893 walk PHI nodes too.
27894 (record_references_in_initializer): Update use of record_reference.
27895 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27896 walk PHI nodes too.
27897
27898 2010-05-04 Jan Hubicka <jh@suse.cz>
27899
27900 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
27901 node will be removed anyway.
27902 (lto_varpool_replace_node): Allow also unanalyzed nodes;
27903 relink aliases of node into prevailing node.
27904 * varpool.c (varpool_remove_node): Remove aliases properly;
27905 when removing node, remove all its aliases too; remove DECL_INITIAL
27906 of removed node; ggc_free the varpool node.
27907
27908 2010-05-04 Richard Guenther <rguenther@suse.de>
27909
27910 PR tree-optimization/43879
27911 * tree-ssa-structalias.c (alias_get_name): Use
27912 DECL_ASSEMBLER_NAME if available.
27913 (create_function_info_for): Return the varinfo node.
27914 (ipa_pta_execute): Associate same-body aliases and extra names
27915 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
27916
27917 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27918
27919 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
27920
27921 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
27922
27923 PR bootstrap/43964
27924 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
27925 only if HONOR_REG_ALLOC_ORDER is not defined.
27926
27927 2010-05-04 Richard Guenther <rguenther@suse.de>
27928
27929 PR tree-optimization/43949
27930 * tree-vrp.c (extract_range_from_binary_expr): Only handle
27931 TRUNC_MOD_EXPR.
27932
27933 2010-04-26 Jason Merrill <jason@redhat.com>
27934
27935 * c.opt (-fstrict-enums): New.
27936 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
27937
27938 2010-05-03 David Ung <davidu@mips.com>
27939 James E. Wilson <wilson@codesourcery.com>
27940
27941 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
27942 emit the trap instruction before the divide for TUNE_74K.
27943
27944 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
27945
27946 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
27947 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
27948 based on the above, for new target hook.
27949
27950 * hooks.c (hook_bool_mode_true): New generic hook.
27951 * hooks.h (hook_bool_mode_true): Add prototype.
27952
27953 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
27954 target hook.
27955 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
27956 target hook, set to hook_bool_mode_false.
27957 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
27958 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
27959 with targetm.small_register_classes_for_mode_p.
27960 (find_reusable_reload): Likewise.
27961 (combine_reloads): Likewise.
27962 * reload1.c (reload_as_needed): Likewise.
27963 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
27964 * ifcvt.c (noce_process_if_block, check_cond_move_block,
27965 dead_or_predicable): Likewise.
27966 * regmove.c (optimize_reg_copy_1): Likewise.
27967 * calls.c (prepare_call_address): Likewise.
27968 (precompute_register_parameters): Likewise.
27969
27970 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
27971 hook definition.
27972 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
27973 implementation of the hook that considers all register classes
27974 small except for SH64.
27975 (sh_override_options): Use the new hook.
27976 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
27977 Add prototype.
27978
27979 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
27980 hook definition.
27981 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
27982 implementation of the hook that considers all register classes
27983 small for THUMB1.
27984 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
27985 Add prototype.
27986
27987 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
27988 hook definition.
27989 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
27990 implementation of the hook that considers all register classes
27991 small for MIPS16.
27992 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
27993 Add prototype.
27994
27995 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
27996 hook definition.
27997 * config/m32c/m32c.h: Likewise.
27998 * config/pdp11/pdp11.h: Likewise.
27999 * config/avr/avr.h: Likewise.
28000 * config/xtensa/xtensa.h: Likewise.
28001 * config/m68hc11/m68hc11.h: Likewise.
28002 * config/mn10300/mn10300.h: Likewise.
28003 * config/mcore/mcore.h: Likewise.
28004 * config/h8300/h8300.h: Likewise.
28005 * config/bfin/bfin.h: Likewise.
28006
28007 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
28008 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
28009
28010 2010-05-03 Anatoly Sokolov <aesok@post.ru>
28011
28012 * double-int.h (tree_to_double_int): Remove macro.
28013 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
28014 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28015 (tree_to_double_int): New function.
28016 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
28017 Move ...
28018 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
28019
28020 2010-05-03 Richard Guenther <rguenther@suse.de>
28021
28022 PR tree-optimization/43971
28023 * tree-ssa-structalias.c (get_constraint_for_1): Fix
28024 constraints in the !flag_delete_null_pointer_checks case.
28025
28026 2010-05-03 Jakub Jelinek <jakub@redhat.com>
28027
28028 PR debug/43972
28029 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
28030 result mode matches original rtl mode.
28031
28032 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
28033
28034 PR target/43888
28035 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
28036
28037 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28038
28039 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
28040 when processing flag options.
28041
28042 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28043
28044 * gcov-iov.c (main): Change format string placeholder
28045 from %#08x to 0x%08x.
28046 * genchecksum.c (dosum): Change format string placeholder
28047 from %#02x to 0x%02x.
28048
28049 2010-05-02 Richard Guenther <rguenther@suse.de>
28050
28051 PR tree-optimization/43879
28052 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
28053
28054 2010-05-02 Bruno Haible <bruno@clisp.org>
28055
28056 * doc/extend.texi (Function Attributes): Fix a typo.
28057
28058 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28059
28060 Revert:
28061 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
28062 placeholder from 0x%x to %#x.
28063 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28064 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28065 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28066 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28067 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28068 * config/i386/i386.c (ix86_target_string): Ditto.
28069 * config/i386/i386.c (output_pic_addr_const): Ditto.
28070 (print_operand): Ditto.
28071
28072 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
28073
28074 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
28075 placeholder from 0x%x to %#x.
28076 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
28077 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
28078 (ASM_OUTPUT_DEBUG_DATA): Ditto.
28079 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
28080 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
28081 * optc-gen.awk: Ditto.
28082 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
28083 (HOST_WIDE_INT_PRINT_HEX): Ditto.
28084 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
28085 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
28086
28087 2010-05-01 Anatoly Sokolov <aesok@post.ru>
28088
28089 * target.h (struct calls): Add function_value_regno_p field.
28090 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
28091 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
28092 * targhooks.c (default_function_value_regno_p): New function.
28093 * targhooks.h (default_function_value_regno_p): Declare function.
28094 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
28095 * builtins.c. (apply_result_size): (Ditto.).
28096 * combine.c. (likely_spilled_retval_p): (Ditto.).
28097 * mode-switching.c. Include 'target.h'.
28098 (create_pre_exit): Use function_value_regno_p hook.
28099 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
28100 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
28101 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
28102
28103 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
28104 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
28105 (ix86_function_value_regno_p): Declare as static, change argument
28106 type to const unsigned int.
28107 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
28108
28109 2010-05-01 Richard Guenther <rguenther@suse.de>
28110
28111 PR tree-optimization/43949
28112 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
28113 types.
28114 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
28115
28116 2010-05-01 Anatoly Sokolov <aesok@post.ru>
28117
28118 * rtl.h (CONST_DOUBLE_P): Define.
28119 (rtx_to_double_int): Declare.
28120 * emit-rtl.c (rtx_to_double_int): New function.
28121 * dwarf2out.c (insert_double): New function.
28122 (loc_descriptor, add_const_value_attribute): Clean up, use
28123 rtx_to_double_int and insert_double functions.
28124
28125 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
28126
28127 * doc/extend.texi (Inline): Add missing return keyword to examples.
28128 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
28129 "command-line".
28130
28131 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
28132
28133 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
28134 the variable part of the offset as well. Use highest_pow2_factor for
28135 all alignment checks.
28136
28137 2010-04-30 Richard Guenther <rguenther@suse.de>
28138
28139 PR tree-optimization/43879
28140 * tree-ssa-structalias.c (type_could_have_pointers): Functions
28141 can have pointers.
28142
28143 2010-04-30 Jan Hubicka <jh@suse.cz>
28144
28145 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
28146 varpool.
28147 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
28148
28149 2010-04-30 Jan Hubicka <jh@suse.cz>
28150
28151 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
28152 New.
28153 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
28154 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
28155 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
28156 cgraph_node_set_needs_ltrans_p): Remove.
28157
28158 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
28159
28160 * sdbout.c: Include vec.h, do not include varray.h.
28161 (deferred_global_decls, sdbout_global_decl,
28162 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
28163 * toplev.c: Do not include varray.h.
28164 (dump_memory_report): Do not dump VARRAY statistics.
28165 * gengtype.c (open_base_file): Ignore varray.h.
28166 * Makefile.in: Update for abovementioned changes.
28167 Remove all traces of varray.c and varray.h.
28168 * varray.c: Remove file.
28169 * varray.h: Remove file.
28170
28171 2010-04-30 Jan Hubicka <jh@suse.cz>
28172
28173 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
28174 references.
28175
28176 2010-04-30 Jan Hubicka <jh@suse.cz>
28177
28178 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
28179 needed.
28180
28181 2010-04-30 Richard Guenther <rguenther@suse.de>
28182
28183 * tree-ssa-structalias.c (get_constraint_for_1): Generate
28184 constraints for CONSTRUCTOR.
28185
28186 2010-04-30 Richard Guenther <rguenther@suse.de>
28187
28188 PR lto/43946
28189 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
28190 first after all lowering passes.
28191
28192 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
28193
28194 * toplev.c: Include varray.h for statistics dumping.
28195 * tree.h: Do not declare varray_head_tag.
28196 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
28197 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
28198 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
28199 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
28200 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
28201 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
28202 c-common.c, c-common.h, reg-stack.c, basic-block.h,
28203 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
28204 include varray.h.
28205 * Makefile.in: Update for abovementioned changes.
28206
28207 2010-04-30 Jakub Jelinek <jakub@redhat.com>
28208
28209 PR debug/43942
28210 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
28211
28212 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
28213
28214 * config/picochip/picochip.c (picochip_legitimize_address): Define.
28215 Use this function to do machine-specific conversion.
28216 (picochip_legitimize_reload_address): Likewise.
28217 (picochip_legitimate_address_p): Check valid base register only if
28218 strict.
28219 (picochip_check_conditional_copy): Check for modw only if opnd is
28220 register.
28221 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
28222 to call the function in c.
28223 * config/picochip/picochip-protos.h
28224 (picochip_legitimize_reload_address): Define.
28225 * config/picochip/picochip.md (supported_compare1): Define.
28226
28227 2010-04-30 Jan Hubicka <jh@suse.cz>
28228
28229 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
28230 (cgraph_global_info): Remove inlined.
28231 (LTO_cgraph_tag_names): Remove.
28232 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
28233 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
28234 simplify cgraph tags and document.
28235 (lto_output_node): Use only LTO_cgraph_unavail_node and
28236 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
28237 for_functions_valid, global info, process and output flags.
28238 (input_overwrite_node): Initialize estimated stack size and
28239 estimated growth. Do not read flags we no longer store.
28240 (input_node): Likewise do not read info no longer stored.
28241 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
28242 flag.
28243
28244 2010-04-30 Richard Guenther <rguenther@suse.de>
28245
28246 PR tree-optimization/43879
28247 * tree-ssa-structalias.c (get_constraint_for_1): Properly
28248 handle non-zero initializers.
28249
28250 2010-04-30 Richard Guenther <rguenther@suse.de>
28251
28252 * builtins.c (fold_builtin_1): Delete free (0).
28253
28254 2010-04-29 Jan Hubicka <jh@suse.cz>
28255
28256 * gengtype.c (open_base_files): Add lto-streamer.h
28257 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
28258 (pass_ipa_cp): GGC collect.
28259 * toplev. (compile_file): Do not output symbols.
28260 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
28261 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
28262 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
28263 * lto-section-in.c: Include ggc.h
28264 (lto_new_in_decl_state): Alloc in GGC.
28265 (lto_delete_in_decl_state): Likewise.
28266 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
28267 Collect.
28268
28269 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
28270
28271 PR target/42895
28272 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
28273 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
28274 (HONOR_REG_ALLOC_ORDER): Describe new macro.
28275 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
28276 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
28277 account only if HONOR_REG_ALLOC_ORDER is not defined.
28278 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
28279 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
28280
28281 2010-04-29 Jon Grant <04@jguk.org>
28282
28283 * collect2.c (vflag): Change type from int to bool.
28284 (debug): Likewise.
28285 (helpflag): New global bool.
28286 (main): Set vflag and debug with boolean, not integer truth values.
28287 Accept new "--help" option and output usage text if found.
28288 * collect2.h (vflag): Update prototype.
28289 (debug): Likewise.
28290
28291 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
28292
28293 PR bootstrap/43936
28294 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
28295
28296 2010-04-29 Richard Guenther <rguenther@suse.de>
28297
28298 PR bootstrap/43935
28299 * plugin.h (invoke_plugin_callbacks): Annotate arguments
28300 with ATTRIBUTE_UNUSED.
28301
28302 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
28303
28304 PR target/43921
28305 * config/i386/i386.c (get_some_local_dynamic_name): Replace
28306 INSN_P with NONDEBUG_INSN_P.
28307 (distance_non_agu_define): Likewise.
28308 (distance_agu_use): Likewise.
28309
28310 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
28311
28312 From Dominique d'Humieres <dominiq@lps.ens.fr>
28313 PR bootstrap/43858
28314 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
28315 test_set.
28316
28317 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
28318
28319 * plugin.h (invoke_plugin_callbacks): New inline function.
28320 * plugin.c (flag_plugin_added): New global flag.
28321 (add_new_plugin): Initialize above flag.
28322 (invoke_plugin_callbacks): Rename to ...
28323 (invoke_plugin_callbacks_full): ... this.
28324
28325 2010-04-28 Jan Hubicka <jh@suse.cz>
28326
28327 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
28328 (lto_varpool_replace_node): New.
28329 (lto_symtab_resolve_symbols): Resolve varpool nodes.
28330 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
28331 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
28332 * cgraph.h (varpool_node_ptr): New type.
28333 (varpool_node_ptr): New vector.
28334 (varpool_node_set_def): New structure.
28335 (varpool_node_set): New type.
28336 (varpool_node_set): New vector.
28337 (varpool_node_set_element_def): New structure.
28338 (varpool_node_set_element, const_varpool_node_set_element): New types.
28339 (varpool_node_set_iterator): New type.
28340 (varpool_node): Add prev pointers, add used_from_other_partition,
28341 in_other_partition.
28342 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
28343 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
28344 varpool_get_node, varpool_remove_node): Declare.
28345 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
28346 varpool_node_set_size): New inlines.
28347 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
28348 * tree-pass.h (varpool_node_set_def): Forward declare.
28349 (ipa_opt_pass_d): Summary writting takes vnode sets too.
28350 (ipa_write_optimization_summaries): Update prototype.
28351 * ipa-cp.c (ipcp_write_summary): Update.
28352 * ipa-reference.c (ipa_reference_write_summary): Update.
28353 * lto-cgraph.c (lto_output_varpool_node): New static function.
28354 (output_varpool): New function.
28355 (input_varpool_node): New static function.
28356 (input_varpool_1): New function.
28357 (input_cgraph): Input varpool.
28358 * ipa-pure-const.c (pure_const_write_summary): Update.
28359 * lto-streamer-out.c (lto_output): Update, output varpool too.
28360 (write_global_stream): Kill WPA hack.
28361 (produce_asm_for_decls): Update.
28362 (output_alias_pair_p): Handle variables.
28363 (output_unreferenced_globals): Output only needed partition of varpool.
28364 * ipa-inline.c (inline_write_summary): Update.
28365 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
28366 cgraph.
28367 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
28368 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
28369 varpool_node_set_new, varpool_node_set_add,
28370 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
28371 debug_varpool_node_set): New functions.
28372 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
28373 (execute_one_pass): Process new decls too.
28374 (ipa_write_summaries_2): Pass around vsets.
28375 (ipa_write_summaries_1): Likewise.
28376 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
28377 to add.
28378 (ipa_write_optimization_summaries_1): Pass around vsets.
28379 (ipa_write_optimization_summaries): Likewise.
28380 * varpool.c (varpool_get_node): New.
28381 (varpool_node): Update doubly linked lists.
28382 (varpool_remove_node): New.
28383 (dump_varpool_node): More dumping.
28384 (varpool_enqueue_needed_node): Update doubly linked lists.
28385 (decide_is_variable_needed): Kill ltrans hack.
28386 (varpool_finalize_decl): Kill lto hack.
28387 (varpool_assemble_decl): Skip decls in other partitions.
28388 (varpool_assemble_pending_decls): Update doubly linkes lists.
28389 (varpool_empty_needed_queue): Likewise.
28390 (varpool_extra_name_alias): Likewise.
28391 * lto-streamer.c (lto_get_section_name): Add vars section.
28392 * lto-streamer.h (lto_section_type): Update.
28393 (output_varpool, input_varpool): Declare.
28394
28395 2010-04-28 Mike Stump <mikestump@comcast.net>
28396
28397 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
28398
28399 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
28400
28401 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
28402 record or union type with RECORD_OR_UNION_TYPE_P predicate.
28403 (lto_input_ts_type_tree_pointers): Likewise.
28404 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
28405 (lto_output_ts_type_tree_pointers): Likewise.
28406
28407 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
28408
28409 Uniquization of constants at the Tree level
28410 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
28411 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
28412 bit to the end.
28413 (tree_output_constant_def): Declare.
28414 * gimplify.c (gimplify_init_constructor): When using block copy, first
28415 uniquize the constant constructor on the RHS.
28416 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
28417 DECL_IN_CONSTANT_POOL flag.
28418 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
28419 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
28420 constant pool.
28421 (assemble_variable): Deal with symbols belonging to the tree constant
28422 pool.
28423 (get_constant_section): Add ALIGN parameter and simplify.
28424 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
28425 (assemble_constant_contents): Use the expression of the VAR_DECL.
28426 (output_constant_def_contents): Use the alignment of the VAR_DECL.
28427 (tree_output_constant_def): New global function.
28428 (mark_constant): Use the expression of the VAR_DECL.
28429 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
28430 its expression.
28431 (output_object_block): Likewise and assemble the expression.
28432
28433 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
28434
28435 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
28436 hash_tree, eq_tree): New tree hash table.
28437 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
28438 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
28439 lto_orig_address_remove): Reimplement.
28440
28441 2010-04-28 Xinliang David Li <davidxl@google.com>
28442
28443 PR c/42643
28444 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
28445 (compute_uninit_opnds_pos): New function.
28446 (is_non_loop_exit_postdominating): New function.
28447 (compute_control_dep_chain): New function.
28448 (find_pdom): New function.
28449 (convert_control_dep_chain_into_preds): New function.
28450 (find_predicates): New function.
28451 (find_control_equiv_block): New function.
28452 (collect_phi_def_edges): New function.
28453 (find_def_preds): New function.
28454 (find_dom): New function.
28455 (dump_predicates): New function.
28456 (get_cmp_code): New function.
28457 (is_value_included_in): New function.
28458 (find_matching_predicate_in_rest_chains): New function.
28459 (use_pred_not_overlap_with_undef_path_pred): New function.
28460 (is_use_properly_guarded): New function.
28461 (normalize_cond_1): New function.
28462 (is_and_or_or): New function.
28463 (normalize_cond): New function.
28464 (is_gcond_subset_of): New function.
28465 (is_subset_of_any): New function.
28466 (is_or_set_subset_of): New function.
28467 (is_and_set_subset_of): New function.
28468 (is_norm_cond_subset_of): New function.
28469 (is_pred_expr_subset_of): New function.
28470 (is_pred_chain_subset_of): New function.
28471 (is_included_in): New function.
28472 (is_superset_of): New function.
28473 (find_uninit_use): New function.
28474 (warn_uninitialized_phi): New function.
28475 (compute_possibly_undefined_names): New function.
28476 (ssa_undefined_value_p): New function.
28477 (execute_late_warn_uninitialized): New function.
28478 * tree-ssa.c (ssa_undefined_value_p): Removed.
28479 (warn_uninit): Changed to extern.
28480 (warn_uninitialized_phi): Removed.
28481 (warn_uninitialized_vars): Changed to extern.
28482 (execute_late_warn_uninitialized): Removed
28483 * tree-flow.h: Add new prototypes.
28484 * timevar.def: Add new time variable.
28485 * Makefile.in: Add new build file.
28486
28487 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
28488
28489 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
28490 type if available.
28491
28492 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28493
28494 PR target/22224
28495 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
28496
28497 2010-04-28 Martin Jambor <mjambor@suse.cz>
28498
28499 * cgraph.h (struct cgraph_node): New field indirect_calls.
28500 (struct cgraph_indirect_call_info): New type.
28501 (struct cgraph_edge): Removed field indirect_call. New fields
28502 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
28503 (cgraph_create_indirect_edge): Declare.
28504 (cgraph_make_edge_direct): Likewise.
28505 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
28506 * ipa-prop.h (struct ipa_param_call_note): Removed.
28507 (struct ipa_node_params): Removed field param_calls.
28508 (ipa_create_all_structures_for_iinln): Declare.
28509 * cgraph.c: Described indirect edges and uids in initial comment.
28510 (cgraph_add_edge_to_call_site_hash): New function.
28511 (cgraph_edge): Search also among the indirect edges, use
28512 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
28513 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
28514 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
28515 site hash.
28516 (initialize_inline_failed): Assign a reason to indirect edges.
28517 (cgraph_create_edge_1): New function.
28518 (cgraph_create_edge): Moved some functionality to
28519 cgraph_create_edge_1.
28520 (cgraph_create_indirect_edge): New function.
28521 (cgraph_edge_remove_callee): Add an assert checking for
28522 non-indirectness.
28523 (cgraph_edge_remove_caller): Special-case indirect edges.
28524 (cgraph_remove_edge): Likewise.
28525 (cgraph_set_edge_callee): New function.
28526 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
28527 (cgraph_make_edge_direct): New function.
28528 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
28529 the declaration of the call statement matches.
28530 (cgraph_node_remove_callees): Special-case indirect edges.
28531 (cgraph_clone_edge): Likewise.
28532 (cgraph_clone_node): Clone also the indirect edges.
28533 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
28534 indirect_call, dump count of indirect_calls edges.
28535 * ipa-prop.c (iinlining_processed_edges): New variable.
28536 (ipa_note_param_call): Create indirect edges instead of
28537 creating notes. New parameter node.
28538 (ipa_analyze_call_uses): New parameter node, pass it on to
28539 ipa_note_param_call.
28540 (ipa_analyze_stmt_uses): Likewise.
28541 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
28542 (print_edge_addition_message): Work on edges rather than on notes.
28543 (update_call_notes_after_inlining): Likewise, renamed to
28544 update_indirect_edges_after_inlining.
28545 (ipa_create_all_structures_for_iinln): New function.
28546 (ipa_free_node_params_substructures): Do not free notes.
28547 (ipa_edge_duplication_hook): Propagate bits within
28548 iinlining_processed_edges bitmap.
28549 (ipa_node_duplication_hook): Do not duplicate notes.
28550 (free_all_ipa_structures_after_ipa_cp): Renamed to
28551 ipa_free_all_structures_after_ipa_cp.
28552 (free_all_ipa_structures_after_iinln): Renamed to
28553 ipa_free_all_structures_after_iinln.
28554 (ipa_write_param_call_note): Removed.
28555 (ipa_read_param_call_note): Removed.
28556 (ipa_write_indirect_edge_info): New function.
28557 (ipa_read_indirect_edge_info): Likewise.
28558 (ipa_write_node_info): Do not stream notes, do stream information
28559 in indirect edges.
28560 (ipa_read_node_info): Likewise.
28561 (lto_ipa_fixup_call_notes): Removed.
28562 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
28563 * ipa-inline.c (pass_ipa_inline): Likewise.
28564 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
28565 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
28566 * tree-inline.c (copy_bb): Removed an unnecessary double check for
28567 is_gimple_call.
28568 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
28569 edges.
28570 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
28571 (output_cgraph): Stream also indirect edges.
28572 (lto_output_edge): Added capability to stream indirect edges.
28573 (input_edge): Likewise.
28574 (input_cgraph_1): Likewise.
28575 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
28576 of indirect edges.
28577
28578 2010-04-28 Richard Guenther <rguenther@suse.de>
28579
28580 PR tree-optimization/43879
28581 PR tree-optimization/43909
28582 * tree-ssa-structalias.c (struct variable_info): Add
28583 only_restrict_pointers flag.
28584 (new_var_info): Initialize it. Increment stats.total_vars here.
28585 (create_function_info_for): Do not increment stats.total_vars here.
28586 (get_function_part_constraint): Fix build with C++.
28587 (insert_into_field_list): Remove.
28588 (push_fields_onto_fieldstack): Properly merge fields.
28589 (create_variable_info_for): Split and simplify.
28590 (create_variable_info_for_1): New piece.
28591 (intra_create_variable_infos): Properly make restrict constraints
28592 from parameters.
28593
28594 2010-04-28 Richard Guenther <rguenther@suse.de>
28595
28596 PR c++/43880
28597 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
28598
28599 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
28600 Jan Hubicka <hubicka@ucw.cz>
28601
28602 * doc/invoke.texi (-Wsuggest-attribute=const,
28603 -Wsuggest-attribute=pure): Document.
28604 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
28605 (function_always_visible_to_compiler_p,
28606 suggest_attribute, warn_function_pure, warn_function_const):
28607 New functions.
28608 (check_call): Improve debug info.
28609 (analyze_function): Do not check availability.
28610 (add_new_function): Check availability.
28611 (propagate): Output warnings.
28612 (skip_function_for_local_pure_const): New function.
28613 (local_pure_const): Use it; output warnings.
28614 * common.opt (Wsuggest-attribute=const,
28615 Wsuggest-attribute=pure): New.
28616
28617 2010-04-27 Jakub Jelinek <jakub@redhat.com>
28618
28619 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
28620 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
28621 or DW_CFA_def_cfa_offset{,_sf}.
28622
28623 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
28624
28625 * tree.h: Fix truncated long macros.
28626
28627 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
28628
28629 * collect2.c (TARGET_64BIT): Redefine to target's default.
28630 * tlink.c: Likewise.
28631 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
28632 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
28633 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
28634 for underscoring __USER_LABEL_PREFIX__.
28635 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
28636 (SUB_LINK_ENTRY32): New.
28637 (SUB_LINK_ENTRY64): New.
28638 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
28639 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
28640 (SUB_LINK_ENTRY64): New.
28641 (SUB_LINK_ENTRY): New.
28642 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
28643 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
28644 x64 target is choosen.
28645 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
28646 * configure: Regenerated.
28647 * configure.ac (leading-mingw64-underscores): Option added.
28648
28649 2010-04-27 Jan Hubicka <jh@suse.cz>
28650
28651 * doc/invoke.texi (-fipa-profile): Document.
28652 * opts.c (decode_options): Enable ipa-profile at -O1.
28653 * timevar.def (TV_IPA_PROFILE): Define.
28654 * common.opt (fipa-profile): Add.
28655 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
28656 flag for clones.
28657 (cgraph_propagate_frequency): Handle only local ones.
28658 * tree-pass.h (pass_ipa_profile): Declare.
28659 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
28660 (pass_ipa_profile): Use TV_IPA_PROFILE.
28661 * ipa.c (ipa_profile): New function.
28662 (gate_ipa_profile): Likewise.
28663 (pass_ipa_profile): New global variable.
28664 * passes.c (pass_ipa_profile): New.
28665
28666 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
28667
28668 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
28669
28670 2010-04-27 Martin Jambor <mjambor@suse.cz>
28671
28672 PR middle-end/43812
28673 * ipa.c (dissolve_same_comdat_group_list): New function.
28674 (function_and_variable_visibility): Call
28675 dissolve_same_comdat_group_list when comdat group contains external or
28676 newly local nodes.
28677 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
28678 lists are circular and that they contain only DECL_ONE_ONLY nodes.
28679
28680 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
28681
28682 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
28683 (const_hash_1) <VECTOR_CST>: New case.
28684 (compare_constant) <VECTOR_CST>: Likewise.
28685 <ADDR_EXPR>: Deal with LABEL_REFs.
28686 (copy_constant) <VECTOR_CST>: New case.
28687
28688 2010-04-27 Jan Hubicka <jh@suse.cz>
28689
28690 * cgraph.c (cgraph_propagate_frequency): New function.
28691 * cgraph.h (cgraph_propagate_frequency): Declare.
28692 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
28693 cgraph_propagate_frequency.
28694
28695 2010-04-27 Jakub Jelinek <jakub@redhat.com>
28696
28697 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
28698
28699 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
28700
28701 PR target/40657
28702 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
28703 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
28704 here to determine which regs to push and how much stack to reserve.
28705
28706 2010-04-27 Jie Zhang <jie@codesourcery.com>
28707
28708 * doc/gimple.texi (gimple_statement_with_ops): Remove
28709 addresses_taken field.
28710 (gimple_statement_with_memory_ops): Likewise.
28711
28712 2010-04-27 Jan Hubicka <jh@suse.cz>
28713
28714 * tree-inline.c (eni_inlining_weights): Remove.
28715 (estimate_num_insns): Special case more builtins.
28716
28717 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
28718
28719 PR c/32207
28720 * c-typeck.c (build_binary_op): Move forward check for comparison
28721 pointer with null pointer constant and adjust the diagnostic message.
28722
28723 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
28724
28725 PR lto/42776
28726 * configure.ac (gcc_cv_as_section_has_align): Set if installed
28727 binutils supports extended .section directive needed by LTO, or
28728 warn if older binutils found.
28729 (LTO_BINARY_READER): New AC_SUBST'd variable.
28730 (LTO_USE_LIBELF): Likewise.
28731 * config.gcc (lto_binary_reader): New target-specific configure
28732 variable.
28733 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
28734 (LTO_USE_LIBELF): Likewise.
28735 * configure: Regenerate.
28736
28737 * collect2.c (is_elf): Rename from this ...
28738 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
28739 object files in addition to ELF-formatted ones.
28740 (scan_prog_file): Caller updated. Also allow for LTO info marker
28741 symbol to be prefixed or not by an extra underscore.
28742
28743 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
28744 * config/i386/winnt.c: Also #include lto-streamer.h
28745 (i386_pe_asm_named_section): Specify 1-byte section alignment for
28746 LTO named sections.
28747 (i386_pe_asm_output_aligned_decl_common): Add comment.
28748 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
28749
28750 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
28751
28752 PR target/43889
28753 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
28754 Add missing earlyclobber for second alternative.
28755
28756 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
28757
28758 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
28759 bits for artificial defs at the top of the block.
28760 * fwprop.c (single_def_use_enter_block): Don't call it.
28761
28762 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
28763
28764 PR 43715
28765 * configure.ac: Use "$gcc_cv_nm -g" on darwin
28766 instead of "$gcc_cv_objdump -T".
28767 Use "-undefined dynamic_lookup" on darwin.
28768 * configure: Regenerate.
28769
28770 2010-04-26 Jakub Jelinek <jakub@redhat.com>
28771
28772 PR c/43893
28773 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
28774
28775 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
28776
28777 * c-parser.c (struct c_token): Move location field up.
28778 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
28779 (struct c_declspecs): Convert typespec_word, storage_class, and
28780 default_int_p into bitfields.
28781 (struct c_declarator): Move loc field up.
28782
28783 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
28784
28785 * cfgloop.h (struct loop): Move can_be_parallel field up.
28786 * ipa-prop.h (struct ip_node_params): Move bitfields up.
28787 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
28788 down.
28789 (struct iv_cand): Convert pos field into a bitfield.
28790 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
28791 field up.
28792 (struct _stmt_vec_info): Shuffle fields for better packing.
28793
28794 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
28795
28796 * varasm.c (IN_NAMED_SECTION): Remove guard.
28797 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
28798 (IN_NAMED_SECTION_P): ...this.
28799 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
28800 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
28801
28802 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
28803
28804 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
28805 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
28806 of shadowing it. Fix comments.
28807
28808 2010-04-26 Jan Hubicka <jh@suse.cz>
28809
28810 * cgraph.c (cgraph_create_node): Set node frequency to normal.
28811 (cgraph_clone_node): Copy function frequency.
28812 * cgraph.h (node_frequency): New enum
28813 (struct cgraph_node): Add.
28814 * final.c (rest_of_clean_state): Update.
28815 * lto-cgraph.c (lto_output_node): Output node frequency.
28816 (input_overwrite_node): Input node frequency.
28817 * tre-ssa-loop-ivopts (computation_cost): Update.
28818 * lto-streamer-out.c (output_function): Do not output function
28819 frequency.
28820 * predict.c (maybe_hot_frequency_p): Update and handle functions
28821 executed once.
28822 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
28823 attribute lookup.
28824 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
28825 (compute_function_frequency): Set noreturn functions to be executed
28826 once.
28827 (choose_function_section): Update.
28828 * lto-streamer-in.c (input_function): Do not input function frequency.
28829 * function.c (allocate_struct_function): Do not initialize function
28830 frequency.
28831 * function.h (function_frequency): Remove.
28832 (struct function): Remove function frequency.
28833 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
28834 (try_update): Update.
28835 * tree-inline.c (initialize_cfun): Do not update function frequency.
28836 * passes.c (pass_init_dump_file): Update.
28837 * i386.c (ix86_compute_frame_layout): Update.
28838 (ix86_pad_returns): Update.
28839
28840 2010-04-26 Jie Zhang <jie@codesourcery.com>
28841
28842 PR tree-optimization/43833
28843 * tree-vrp.c (range_int_cst_p): New.
28844 (range_int_cst_singleton_p): New.
28845 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
28846 when both operands are constants. Use range_int_cst_p in
28847 BIT_IOR_EXPR case.
28848
28849 2010-04-26 Jan Hubicka <jh@suse.cz>
28850
28851 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
28852
28853 2010-04-26 Richard Guenther <rguenther@suse.de>
28854
28855 PR lto/43080
28856 * gimple.c (gimple_decl_printable_name): Deal gracefully
28857 with a NULL DECL_NAME.
28858
28859 2010-04-26 Richard Guenther <rguenther@suse.de>
28860
28861 PR lto/42425
28862 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
28863 if emitting debug information and it is either a function
28864 or a namespace decl.
28865
28866 2010-04-26 Ira Rosen <irar@il.ibm.com>
28867
28868 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
28869 determine if the statement is vectorizable, and a macro to access it.
28870 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28871 Skip statements that can't be vectorized. If the analysis fails,
28872 mark the statement as unvectorizable if vectorizing basic block.
28873 (vect_compute_data_refs_alignment): Likewise.
28874 (vect_verify_datarefs_alignment): Skip statements marked as
28875 unvectorizable. Add print.
28876 (vect_analyze_group_access): Skip statements that can't be
28877 vectorized. If the analysis fails, mark the statement as
28878 unvectorizable if vectorizing basic block.
28879 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
28880 * tree-vect-stmts.c (vectorizable_store): Fix the number of
28881 generated stmts for SLP.
28882 (new_stmt_vec_info): Initialize the new field.
28883 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
28884 statements marked as unvectorizable.
28885
28886 2010-04-25 Joseph Myers <joseph@codesourcery.com>
28887
28888 * c-common.c (flag_isoc1x): New.
28889 (flag_isoc99): Update comment.
28890 * c-common.h (flag_isoc1x): New.
28891 (flag_isoc99): Update comment.
28892 * c-cppbuiltin.c (builtin_define_float_constants): Also define
28893 __<type>_DECIMAL_DIG__.
28894 * c-opts.c (set_std_c1x): New.
28895 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
28896 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
28897 * c.opt (-std=c1x, -std=gnu1x): New options.
28898 * doc/cpp.texi: Mention -std=c1x.
28899 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
28900 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
28901 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
28902 * doc/standards.texi: Mention C1X.
28903 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
28904 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
28905 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
28906 Define for C1X.
28907
28908 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
28909
28910 * config/i386/gmon-sol2.c (_mcleanup): Change format string
28911 placeholder from 0x%x to %#x.
28912 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28913 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28914 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28915 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28916 * config/i386/i386.c (ix86_target_string): Ditto.
28917 (output_pic_addr_const): Ditto.
28918 (print_operand): Ditto.
28919
28920 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
28921
28922 * combine.c (find_split_point): Add third argument. Use it
28923 to find nested multiply-accumulate instructions. Adjust calls.
28924 (try_combine): Adjust call to find_split_point.
28925
28926 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
28927
28928 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
28929
28930 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
28931
28932 PR tree-optimization/41442
28933 * fold-const.c (merge_truthop_with_opposite_arm): New function.
28934 (fold_binary_loc): Call it.
28935
28936 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
28937
28938 * toplev.c (general_init): Set default for fdiagnostics-show-option.
28939 * opts.c (common_handle_option): Allow disabling it.
28940 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
28941
28942 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
28943
28944 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
28945 between modes if both types are integral.
28946
28947 2010-04-23 Richard Guenther <rguenther@suse.de>
28948
28949 PR tree-optimization/43572
28950 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
28951
28952 2010-04-23 Richard Guenther <rguenther@suse.de>
28953
28954 PR lto/43455
28955 * tree-inline.c (tree_can_inline_p): Also check compatibility
28956 of return types.
28957
28958 2010-04-23 Martin Jambor <mjambor@suse.cz>
28959
28960 PR tree-optimization/43846
28961 * tree-sra.c (struct access): New flag grp_assignment_read.
28962 (build_accesses_from_assign): Set grp_assignment_read.
28963 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
28964 (enum mark_read_status): New type.
28965 (analyze_access_subtree): Propagate grp_assignment_read, create
28966 accesses also if both direct_read and root->grp_assignment_read.
28967
28968 2010-04-23 Martin Jambor <mjambor@suse.cz>
28969
28970 PR middle-end/43835
28971 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
28972 function does not have type attributes.
28973
28974 2010-04-23 Richard Guenther <rguenther@suse.de>
28975
28976 PR lto/42653
28977 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
28978 of FUNCTION_DECLs.
28979
28980 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28981
28982 * sese.h (create_if_region_on_edge): Remove.
28983
28984 * sese.c (create_if_region_on_edge): Make static.
28985
28986 * tree-inline.c: Do not include ggc.h.
28987
28988 * expr.c: Do not include ggc.h.
28989
28990 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
28991 dependencies.
28992
28993 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
28994
28995 PR target/43744
28996 * config/sh/sh.c (find_barrier): Don't emit a constant pool
28997 in the middle of insns for casesi_worker_2.
28998
28999 2010-04-22 David Edelsohn <edelsohn@gnu.org>
29000
29001 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
29002
29003 2010-04-22 Ira Rosen <irar@il.ibm.com>
29004
29005 PR tree-optimization/43842
29006 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
29007 loop unrolling in update of exit phis. Fix comment.
29008 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
29009 least two reduction statements in the loop before starting SLP
29010 analysis.
29011
29012 2010-04-22 Nick Clifton <nickc@redhat.com>
29013
29014 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
29015
29016 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
29017
29018 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
29019 to simplify a + ~a.
29020
29021 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29022
29023 * tree-parloops.c (loop_parallel_p): New argument
29024 parloop_obstack. Pass it down.
29025 (parallelize_loops): New variable parloop_obstack. Initialize it,
29026 pass it down, free it.
29027
29028 * tree-loop-linear.c (linear_transform_loops): Pass down
29029 lambda_obstack.
29030
29031 * tree-data-ref.h (lambda_compute_access_matrices): New argument
29032 of type struct obstack *.
29033
29034 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
29035 scratch_obstack. Initialize it, pass down, free it.
29036
29037 * lambda.h (lambda_loop_new): Remove.
29038 (lambda_matrix_new, lambda_matrix_inverse)
29039 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
29040 argument of type struct obstack *.
29041
29042 * lambda-trans.c (lambda_trans_matrix_new): New argument
29043 lambda_obstack. Pass it down, use obstack allocation for ret.
29044 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
29045 it down.
29046
29047 * lambda-mat.c (lambda_matrix_get_column)
29048 (lambda_matrix_project_to_null): Remove.
29049 (lambda_matrix_new): New argument lambda_obstack. Use obstack
29050 allocation for mat.
29051 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
29052 lambda_obstack.
29053
29054 * lambda-code.c (lambda_loop_new): New function.
29055 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
29056 (lambda_compute_auxillary_space, lambda_compute_target_space)
29057 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
29058 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
29059 (build_access_matrix): New argument lambda_obstack. Use obstack
29060 allocation for am.
29061 (lambda_compute_step_signs, lambda_compute_access_matrices): New
29062 argument lambda_obstack. Pass it down.
29063
29064 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29065
29066 * optabs.h (expand_widening_mult): Declare.
29067
29068 2010-04-22 Richard Guenther <rguenther@suse.de>
29069
29070 PR tree-optimization/43845
29071 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
29072 lookup the CALL_EXPR function and arguments.
29073
29074 2010-04-22 Nick Clifton <nickc@redhat.com>
29075
29076 * config/stormy16/stormy16.c
29077 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
29078 * config/stormy16/stormy16.h: Tidy up formatting.
29079 (DONT_USE_BUILTIN_SETJMP): Remove definition.
29080 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
29081 (ineqbranchsi): Delete pattern.
29082 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
29083 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
29084 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
29085 stormy16-lib2-ucmpsi2.c.
29086
29087 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29088
29089 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
29090 df_simulate_find_noclobber_defs as appropriate. Keep track of an
29091 extra set merge_set_noclobber, and use it to relax the final test
29092 slightly.
29093 * df.h (df_simulate_find_noclobber_defs): Declare.
29094 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
29095 conditional defs.
29096 (df_simulate_find_noclobber_defs): New function.
29097
29098 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
29099
29100 * config/i386/i386.md: Use {} around multi-line preparation statements.
29101
29102 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29103
29104 * c-tree.h (push_init_level, pop_init_level, set_init_index)
29105 (process_init_element): New argument of type struct obstack *.
29106
29107 * c-typeck.c (push_init_level, pop_init_level, set_designator)
29108 (set_init_index, set_init_label, set_nonincremental_init)
29109 (set_nonincremental_init_from_string, find_init_member)
29110 (output_init_element, output_pending_init_elements)
29111 (process_init_element): New argument braced_init_obstack. Pass it
29112 down.
29113 (push_range_stack, add_pending_init): New argument
29114 braced_init_obstack. Use obstack allocation.
29115
29116 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
29117 braced_init_obstack. Pass it down.
29118 (c_parser_braced_init): New variables ret, braced_init_obstack.
29119 Initialize obstack, pass it down and finally free it.
29120
29121 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
29122
29123 PR middle-end/29274
29124 * tree-pass.h (pass_optimize_widening_mul): Declare.
29125 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
29126 gate_optimize_widening_mul): New static functions.
29127 (pass_optimize_widening_mul): New.
29128 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
29129 <case MULT_EXPR>: Remove support for widening multiplies.
29130 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
29131 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
29132 simplify_gen_unary rather than directly building extensions.
29133 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
29134 WIDEN_MULT_EXPR.
29135 * expmed.c (expand_widening_mult): New function.
29136 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
29137
29138 2010-04-21 Jan Hubicka <jh@suse.cz>
29139
29140 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
29141 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
29142 * lto-wpa-fixup.c: Remove.
29143 * Makefile.in (lto-wpa-fixup.o): Remove.
29144 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
29145 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
29146 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
29147
29148 2010-04-21 Jan Hubicka <jh@suse.cz>
29149
29150 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
29151 add write_optimization_summary, read_optimization_summary.
29152 (ipa_write_summaries_of_cgraph_node_set): Remove.
29153 (ipa_write_optimization_summaries): Declare.
29154 (ipa_read_optimization_summaries): Declare.
29155 * ipa-cp.c (pass_ipa_cp): Update.
29156 * ipa-reference.c (pass_ipa_reference): Update.
29157 * ipa-pure-const.c (pass_ipa_pure_const): Update.
29158 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
29159 Update.
29160 * ipa-inline.c (pass_ipa_inline): Update.
29161 * ipa.c (pass_ipa_whole_program): Update.
29162 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
29163 * passes.c (ipa_write_summaries_1): Do not test wpa.
29164 (ipa_write_optimization_summaries_1): New.
29165 (ipa_write_optimization_summaries): New.
29166 (ipa_read_summaries): Do not test ltrans.
29167 (ipa_read_optimization_summaries_1): New.
29168 (ipa_read_optimization_summaries): New.
29169
29170 2010-04-21 Jan Hubicka <jh@suse.cz>
29171
29172 * lto-cgraph.c (lto_output_node): Do not output comdat groups
29173 for boundary nodes.
29174 (output_cgraph): Do not arrange comdat groups for boundary nodes.
29175
29176 2010-04-21 Jakub Jelinek <jakub@redhat.com>
29177
29178 PR debug/40040
29179 * dwarf2out.c (add_name_and_src_coords_attributes): Add
29180 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
29181
29182 2010-04-21 Jan Hubicka <jh@suse.cz>
29183
29184 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
29185
29186 2010-04-21 Jan Hubicka <jh@suse.cz>
29187
29188 * varpool.c (decide_is_variable_needed): Variable is always needed
29189 during ltrans.
29190
29191 2010-04-21 Jan Hubicka <jh@suse.cz>
29192
29193 * opts.c (decode_options): Enable pure-const pass for whopr.
29194
29195 2010-04-21 Jan Hubicka <jh@suse.cz>
29196
29197 * cgraph.c (dump_cgraph_node): Dump also assembler name.
29198 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
29199 at WPA dumping.
29200 (cgraph_decide_inlining): Do not expect callee to be removed in all
29201 cases.
29202
29203 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
29204
29205 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
29206
29207 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
29208
29209 * config/i386/i386.md (x86_shrd): Add athlon_decode and
29210 amdfam10_decode attributes.
29211
29212 2010-04-21 Jakub Jelinek <jakub@redhat.com>
29213
29214 PR middle-end/43570
29215 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
29216 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
29217 (lower_copyprivate_clauses): Use private var in outer
29218 context instead of original var. Make sure the types
29219 are correct for VLAs.
29220
29221 2010-04-21 Richard Guenther <rguenther@suse.de>
29222
29223 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
29224 to non-pointer objects.
29225
29226 2010-04-21 Jakub Jelinek <jakub@redhat.com>
29227
29228 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
29229 last chain entry if it starts with the still current label.
29230 (add_location_or_const_value_attribute): Check that
29231 loc_list->first->next is NULL instead of comparing ->first with ->last.
29232 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
29233 to add_var_loc_to_decl.
29234
29235 * dwarf2out.c (output_call_frame_info): For dw_cie_version
29236 >= 4 add also address size and segment size fields into CIE header.
29237
29238 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
29239 long as address size is the same as sizeof (void *) and
29240 segment size is 0.
29241 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
29242 address size or segment size is unexpected, return DW_EH_PE_omit.
29243 (classify_object_over_fdes): If get_cie_encoding returned
29244 DW_EH_PE_omit, return -1.
29245 (init_object): If classify_object_over_fdes returned -1,
29246 pretend there were no FDEs at all.
29247
29248 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
29249
29250 * config/i386/i386.md (bswap<mode>2): Macroize expander from
29251 bswap{si,di}2 using SWI48 mode iterator.
29252 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
29253 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
29254 set modrm attribute of bswap insn to 0 and remove length attribute.
29255 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
29256 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
29257 set mode attribute to <MODE> and remove length attribute.
29258
29259 2010-04-20 James E. Wilson <wilson@codesourcery.com>
29260
29261 PR rtl-optimization/43520
29262 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
29263 zero available registers.
29264
29265 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29266
29267 * builtins.c (fold_builtin_cproj): Fold more cases.
29268
29269 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29270
29271 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
29272 (fold_builtin_1): Fold builtin cproj.
29273 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
29274 Use ATTR_CONST_NOTHROW_LIST.
29275
29276 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
29277
29278 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
29279 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
29280 ffsi2_no_cmove for !TARGET_CMOVE.
29281 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
29282 (ffssi2): Remove expander.
29283 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
29284 mode iterator.
29285 (ctz<mode>2): Ditto from ctz{si,di}2.
29286 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
29287 mode iterator.
29288 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
29289 mode iterator.
29290
29291 2010-04-20 Jakub Jelinek <jakub@redhat.com>
29292
29293 * dwarf2out.c (AT_linkage_name): Define.
29294 (clone_as_declaration): Handle DW_AT_linkage_name.
29295 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
29296 of DW_AT_MIPS_linkage_name.
29297 (move_linkage_attr): Likewise.
29298 (dwarf2out_finish): Likewise.
29299
29300 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
29301
29302 PR middle-end/41952
29303 * fold-const.c (fold_comparison): New folding rule.
29304
29305 2010-04-20 Anatoly Sokolov <aesok@post.ru>
29306
29307 * double-int.h (double_int_setbit): Declare.
29308 * double-int.c (double_int_setbit): New function.
29309 * rtl.h (immed_double_int_const): Declare.
29310 * emit-rtl.c (immed_double_int_const): New function.
29311 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
29312 and immed_double_int_const functions.
29313 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
29314 expand_copysign_bit): (Ditto.).
29315 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
29316 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
29317 * dojump.c (prefer_and_bit_test): (Ditto.).
29318 * expr.c (convert_modes, reduce_to_bit_field_precision,
29319 const_vector_from_tree): (Ditto.).
29320 * expmed.c (mask_rtx, lshift_value): (Ditto.).
29321
29322 2010-04-20 Jan Hubicka <jh@suse.cz>
29323
29324 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
29325 (dump_cgraph_node): Dump new flags.
29326 * cgraph.h (struct cgraph_node): Add flags
29327 reachable_from_other_partition and in_other_partition.
29328 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
29329 other partition can not be removed.
29330 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
29331 the other partition must be output; silence sanity checking on
29332 leaking functions bodies from other paritition.
29333 * lto-cgraph.c (reachable_from_other_partition_p): New function.
29334 (lto_output_node): Output new flags; do not sanity check that inline
29335 clones are output; drop lto_forced_extern_inline_p code; do not mock
29336 visibility flags at partition boundaries.
29337 (add_node_to): New function.
29338 (output_cgraph): Use it to sort functions so masters appear before
29339 clones.
29340 (input_overwrite_node): Input new flags.
29341 * passes.c (ipa_write_summaries): Do not call
29342 lto_new_extern_inline_states.
29343 * lto-section-out.c (forced_extern_inline,
29344 lto_new_extern_inline_states lto_delete_extern_inline_states,
29345 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
29346 * lto-streamer.h (lto_new_extern_inline_states,
29347 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
29348 lto_forced_extern_inline_p): Kill.
29349
29350 2010-04-20 Richard Guenther <rguenther@suse.de>
29351
29352 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
29353 from vars that can have pointers.
29354 (process_constraint): Dump useless constraints.
29355
29356 2010-04-20 Richard Guenther <rguenther@suse.de>
29357
29358 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
29359 (dump_sa_points_to_info): Remove asserts.
29360 (init_base_vars): nothing_id isn't an escape point nor does it
29361 have pointers.
29362
29363 2010-04-20 Jakub Jelinek <jakub@redhat.com>
29364
29365 * tree.h (TYPE_REF_IS_RVALUE): Define.
29366 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
29367 should_move_die_to_comdat, prune_unused_types_walk): Handle
29368 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
29369 (modified_type_die, gen_reference_type_die): Emit
29370 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
29371 if TYPE_REF_IS_RVALUE and -gdwarf-4.
29372
29373 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29374
29375 PR target/43635
29376 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
29377 calls for -fpic -m31 if they have been sibcall optimized.
29378
29379 2010-04-19 James E. Wilson <wilson@codesourcery.com>
29380
29381 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
29382 ar.lc fixed and call-used.
29383
29384 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
29385
29386 2010-04-19 Jan Hubicka <jh@suse.cz>
29387
29388 * opts.c (decode_options): Disable whpr incompatible passes.
29389 * lto/lto.c (lto_1_to_1_map): Skip clones.
29390 (read_cgraph_and_symbols): Do not mark everything as needed.
29391 (do_whole_program_analysis): Do map only after optimizing;
29392 set proper cgraph_state; use passmanager.
29393
29394 2010-04-19 DJ Delorie <dj@redhat.com>
29395
29396 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
29397 POINTER_PLUS_EXPR and fix them.
29398
29399 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
29400
29401 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
29402 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
29403 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
29404 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
29405 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
29406 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
29407 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
29408 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
29409 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
29410 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
29411 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
29412
29413 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
29414
29415 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
29416 (check_cond_move_block): Likewise.
29417 (cond_move_process_if_block): Likewise.
29418 (noce_find_if_block): Improve formatting.
29419 (find_if_header): Pass 0 to memset and tweak conditions.
29420 (cond_exec_find_if_block): Fix long lines and tweak conditions.
29421
29422 2010-04-19 Jakub Jelinek <jakub@redhat.com>
29423
29424 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
29425 for -gdwarf-4.
29426
29427 PR middle-end/43337
29428 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
29429 with non-local decl doesn't need chain.
29430
29431 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
29432
29433 * ira-color.c (allocno_reload_assign): Avoid accumulating
29434 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
29435
29436 2010-04-19 Martin Jambor <mjambor@suse.cz>
29437
29438 * gimple.h (create_tmp_reg): Declare.
29439 * gimplify.c (create_tmp_reg): New function.
29440 (gimplify_return_expr): Use create_tmp_reg.
29441 (gimplify_omp_atomic): Likewise.
29442 (gimple_regimplify_operands): Likewise.
29443 * tree-dfa.c (make_rename_temp): Likewise.
29444 * tree-predcom.c (predcom_tmp_var): Likewise.
29445 (reassociate_to_the_same_stmt): Likewise.
29446 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
29447 (get_replaced_param_substitute): Likewise.
29448 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
29449 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
29450 * tree-ssa-pre.c (get_representative_for): Likewise.
29451 (create_expression_by_pieces): Likewise.
29452 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
29453 (create_tailcall_accumulator): Likewise.
29454
29455 2010-04-19 Martin Jambor <mjambor@suse.cz>
29456
29457 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
29458 new_stmt.
29459 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
29460
29461 2010-04-19 Richard Guenther <rguenther@suse.de>
29462
29463 PR tree-optimization/43796
29464 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
29465 from SCEV in the lattice.
29466 (vrp_visit_phi_node): Dump change.
29467
29468 2010-04-19 Richard Guenther <rguenther@suse.de>
29469
29470 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
29471 * configure: Re-generated.
29472
29473 2010-04-19 Richard Guenther <rguenther@suse.de>
29474
29475 PR tree-optimization/43783
29476 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
29477 constant ARRAY_REF operands two and three if possible.
29478
29479 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
29480
29481 PR target/43766
29482 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
29483
29484 2010-04-19 Jie Zhang <jie@codesourcery.com>
29485
29486 PR target/43662
29487 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
29488
29489 2010-04-19 Ira Rosen <irar@il.ibm.com>
29490
29491 PR tree-optimization/37027
29492 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
29493 and macro to access it.
29494 (vectorizable_reduction): Add argument.
29495 (vect_get_slp_defs): Likewise.
29496 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
29497 statements for possible use in SLP.
29498 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
29499 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
29500 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
29501 add new argument.
29502 (vectorizable_reduction): Likewise.
29503 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
29504 vect_get_slp_defs.
29505 (vectorizable_type_demotion, vectorizable_type_promotion,
29506 vectorizable_store): Likewise.
29507 (vect_analyze_stmt): Update call to vectorizable_reduction.
29508 (vect_transform_stmt): Likewise.
29509 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
29510 (vect_build_slp_tree): Fix indentation. Check that there are no loads
29511 from different interleaving chains in same node.
29512 (vect_slp_rearrange_stmts): New function.
29513 (vect_supported_load_permutation_p): Allow load permutations for
29514 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
29515 inside SLP nodes if necessary.
29516 (vect_analyze_slp_instance): Handle reductions.
29517 (vect_analyze_slp): Try to build SLP instances originating from groups
29518 of reductions.
29519 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
29520 (vect_get_constant_vectors): Create initial vectors for reductions
29521 according to reduction code. Add new argument.
29522 (vect_get_slp_defs): Add new argument, pass it to
29523 vect_get_constant_vectors.
29524 (vect_schedule_slp_instance): Remove SLP tree root statements.
29525
29526 2010-04-19 Jakub Jelinek <jakub@redhat.com>
29527
29528 * tree.h (ENUM_IS_SCOPED): Define.
29529 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
29530 for ENUM_IS_SCOPED enums.
29531
29532 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
29533
29534 * fold-const.c (fold_comparison): Use ssizetype.
29535 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
29536 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
29537 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
29538 * tree-object-size.c (compute_object_sizes): Use size_type_node.
29539
29540 * tree.h (initialize_sizetypes): Remove parameter.
29541 (build_common_tree_nodes): Remove second parameter.
29542 * stor-layout.c (initialize_sizetypes): Remove parameter.
29543 Always create an unsigned type.
29544 (set_sizetype): Assert that the passed type is unsigned and simplify.
29545 * tree.c (build_common_tree_nodes): Remove second parameter.
29546 Adjust call to initialize_sizetypes.
29547 * c-decl.c (c_init_decl_processing): Remove second argument in call to
29548 build_common_tree_nodes.
29549
29550 2010-04-18 Matthias Klose <doko@ubuntu.com>
29551
29552 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
29553
29554 2010-04-18 Ira Rosen <irar@il.ibm.com>
29555
29556 PR tree-optimization/43771
29557 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
29558 load permutation doesn't have gaps.
29559
29560 2010-04-18 Jan Hubicka <jh@suse.cz>
29561
29562 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
29563 (sse_prologue_save_insn expander): Use new pattern.
29564 (sse_prologue_save_insn1): New pattern and splitter.
29565 (sse_prologue_save_insn): Update to deal also with 64bit aligned
29566 blocks.
29567 * i386.c (setup_incoming_varargs_64): Do not compute jump
29568 destination here.
29569 (ix86_gimplify_va_arg): Update alignment needed.
29570 (ix86_local_alignment): Do not align all local arrays to 128bit.
29571
29572 2010-04-17 Jan Hubicka <jh@suse.cz>
29573
29574 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
29575
29576 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
29577
29578 * arm.md (negdi2): Remove redundant code to force values into a
29579 register.
29580
29581 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
29582
29583 * arm/bpabi.S: Add EABI alignment attributes to objects.
29584 * arm/bpabi-v6m.S: Likewise.
29585 * arm/crti.asm: Likewise.
29586 * arm/crtn.asm: Likewise.
29587 * arm/lib1funcs.asm: Likewise.
29588 * arm/libunwind.S: Likewise.
29589
29590 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
29591
29592 * arm-protos.h (tune_params): New structure.
29593 * arm.c (current_tune): New variable.
29594 (arm_constant_limit): Delete.
29595 (struct processors): Add pointer to the tune parameters.
29596 (arm_slowmul_tune): New tuning option.
29597 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
29598 (all_cores): Adjust to pick up the tuning model.
29599 (arm_constant_limit): New function.
29600 (arm_override_options): Select the appropriate tuning model. Delete
29601 initialization of arm_const_limit.
29602 (arm_split_constant): Use the new constant-limit model.
29603 (arm_rtx_costs): Pick up the current tuning model.
29604 * arm.md (is_strongarm, is_xscale): Delete.
29605 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
29606 for Xscale variant architectures.
29607 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
29608
29609 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29610
29611 * config/arm/arm.c (arm_gen_constant): Remove unused variable
29612 can_shift.
29613 (arm_rtx_costs_1): Remove unused variable extra_cost.
29614 (arm_unwind_emit_set): Use variable offset.
29615 (thumb1_output_casesi): Remove unused variable flags.
29616
29617 2010-04-16 Jeff Law <law@redhat.com>
29618
29619 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
29620 needing assignment rather than doing a two-phase assignment. Remove
29621 unused variable 'm'.
29622
29623 2010-04-16 Jakub Jelinek <jakub@redhat.com>
29624
29625 PR bootstrap/43767
29626 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
29627
29628 2010-04-16 Doug Kwan <dougkwan@google.com>
29629
29630 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
29631 (next_operand_entry_id): New static variable.
29632 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
29633 (add_to_ops_vec): Assigned unique ID to operand entry.
29634 (struct oecount_s): New field ID.
29635 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
29636 (undistribute_ops_list): Assign unique IDs to oecounts.
29637 (init_reassoc): reset next_operand_entry_id.
29638
29639 2010-04-16 Doug Kwan <dougkwan@google.com>
29640
29641 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
29642 missing left parenthesis.
29643
29644 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
29645
29646 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
29647 *btdi_rex64 using SWI48 mode iterator.
29648 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
29649 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
29650 *jcc_btdi_mask_rex64.
29651
29652 2010-04-16 Anatoly Sokolov <aesok@post.ru>
29653
29654 * double-int.h (tree_to_double_int): Convert to macro.
29655 * double-int.c (tree_to_double_int): Remove.
29656
29657 2010-04-16 Jakub Jelinek <jakub@redhat.com>
29658
29659 PR debug/43762
29660 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
29661 with want_address 2 and in case a single element list might be
29662 possible, call it again with want_address 0.
29663
29664 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29665
29666 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
29667 case 'W' print operands for HI mode.
29668 * config/h8300/h8300.h (Y0, Y2) : New constraints.
29669 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
29670 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
29671 * config/h8300/predicate.md (bit_register_indirect_operand): New.
29672
29673 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
29674
29675 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
29676 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
29677 #xx:3 and #xx:4 mode.
29678
29679 * config/h8300/h8300.md (inverted load with HImode dest): Add
29680 support for H8300SX.
29681
29682 * config/h8300/predicate.md (bit_operand): Allow immediate values that
29683 satisfy 'U' constraint.
29684
29685 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29686
29687 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
29688 * configure: Regenerate.
29689 * config.in: Regenerate.
29690 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
29691 works.
29692
29693 2010-04-16 Richard Guenther <rguenther@suse.de>
29694
29695 * tree.h (struct tree_decl_minimal): Move pt_uid ...
29696 (struct tree_decl_common): ... here.
29697 (DECL_PT_UID): Adjust.
29698 (SET_DECL_PT_UID): Likewise.
29699 (DECL_PT_UID_SET_P): Likewise.
29700
29701 2010-04-16 Richard Guenther <rguenther@suse.de>
29702
29703 PR tree-optimization/43572
29704 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
29705 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
29706 * tree-flow.h (is_call_clobbered): Remove.
29707 * tree-flow-inline.h (is_call_clobbered): Likewise.
29708 * tree-dfa.c (dump_variable): Do not dump call clobber state.
29709 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
29710 (execute_return_slot_opt): Adjust.
29711 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
29712 check for call clobbered vars here.
29713 (find_tail_calls): Move tailcall verification to the
29714 proper place.
29715
29716 2010-04-16 Diego Novillo <dnovillo@google.com>
29717
29718 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
29719
29720 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
29721
29722 PR target/40603
29723 * config/arm/arm.md (cbranchqi4): New pattern.
29724 * config/arm/predicates.md (const0_operand,
29725 cbranchqi4_comparison_operator): New predicates.
29726
29727 2010-04-16 Richard Guenther <rguenther@suse.de>
29728
29729 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
29730 (dump_gimple_stmt): Likewise.
29731
29732 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
29733
29734 * recog.h (struct recog_data): New field is_operator.
29735 (struct insn_operand_data): New field is_operator.
29736 * recog.c (extract_insn): Set recog_data.is_operator.
29737 * genoutput.c (output_operand_data): Emit code to set the
29738 is_operator field.
29739 * reload.c (find_reloads): Use it rather than testing for an
29740 empty constraint string.
29741
29742 PR target/41514
29743 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
29744 If the previous insn is a cbranchsi4_insn with the same arguments,
29745 omit the compare instruction.
29746
29747 * config/arm/arm.md (addsi3_cbranch): If destination is a high
29748 register, inputs must be low registers and we need a low register
29749 scratch. Handle alternative 2 like alternative 3.
29750
29751 2010-04-16 Jakub Jelinek <jakub@redhat.com>
29752
29753 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
29754 don't call get_addr on both. If one expression is a VALUE and
29755 the other a REG, check VALUE's locs if the REG isn't among them.
29756
29757 2010-04-16 Christian Bruel <christian.bruel@st.com>
29758
29759 * config/sh/sh.h (sh_frame_pointer_required): New function.
29760 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
29761 (flag_omit_frame_pointer) Set.
29762 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
29763 (rounded_frame_size): Adjust size with outgoing_args_size.
29764 (sh_set_return_address): Must return from stack pointer.
29765 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
29766 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
29767 (ACCUMULATE_OUTGOING_ARGS): Define.
29768 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
29769 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
29770
29771 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
29772
29773 PR target/43471
29774 * config/sh/sh.c (sh_legitimize_reload_address): Use
29775 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
29776 Remove a unneeded check for offset_base.
29777
29778 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
29779
29780 * configure: Regenerated.
29781
29782 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29783
29784 * config/s390/s390.c (s390_call_save_register_used): Switch back
29785 to HARD_REGNO_NREGS.
29786
29787 2010-04-15 Richard Guenther <rguenther@suse.de>
29788
29789 * alias.c (alias_set_subset_of): Handle alias-set zero
29790 child properly.
29791
29792 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
29793 Julian Brown <julian@codesourcery.com>
29794
29795 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
29796 alternatives according to use of high and low regs.
29797 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
29798 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
29799 optimizing for size on Thumb-2.
29800
29801 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
29802
29803 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
29804
29805 2010-04-15 Richard Guenther <rguenther@suse.de>
29806
29807 * tree-ssa-structalias.c (struct variable_info): Add
29808 is_fn_info flag.
29809 (new_var_info): Initialize it.
29810 (dump_constraints): Support printing last added constraints.
29811 (debug_constraints): Adjust.
29812 (dump_constraint_graph): Likewise.
29813 (make_heapvar_for): Check for NULL cfun.
29814 (get_function_part_constraint): New function.
29815 (get_fi_for_callee): Likewise.
29816 (find_func_aliases): Properly implement IPA PTA constraints.
29817 (process_ipa_clobber): New function.
29818 (find_func_clobbers): Likewise.
29819 (insert_into_field_list_sorted): Remove.
29820 (create_function_info_for): Properly allocate vars for IPA mode.
29821 Do not use insert_into_field_list_sorted.
29822 (create_variable_info_for): Properly generate constraints for
29823 global vars in IPA mode.
29824 (dump_solution_for_var): Always dump the solution.
29825 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
29826 (find_what_var_points_to): Adjust.
29827 (pt_solution_set): Change.
29828 (pt_solution_ior_into): New function.
29829 (pt_solution_empty_p): Export.
29830 (pt_solution_includes_global): Adjust.
29831 (pt_solution_includes_1): Likewise.
29832 (pt_solutions_intersect_1): Likewise.
29833 (dump_sa_points_to_info): Check some invariants.
29834 (solve_constraints): Move constraint dumping ...
29835 (compute_points_to_sets): ... here.
29836 (ipa_pta_execute): ... and here.
29837 (compute_may_aliases): Do not re-compute points-to info
29838 locally if IPA info is available.
29839 (ipa_escaped_pt): New global var.
29840 (ipa_pta_execute): Properly implement IPA PTA.
29841 * tree-into-ssa.c (dump_decl_set): Support dumping
29842 decls not in referenced-vars.
29843 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
29844 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
29845 (dump_points_to_solution): Likewise.
29846 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
29847 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
29848 (remap_gimple_stmt): Reset call clobber/use information if necessary.
29849 (copy_decl_to_var): Copy DECL_PT_UID.
29850 (copy_result_decl_to_var): Likewise.
29851 * tree.c (make_node_stat): Initialize DECL_PT_UID.
29852 (copy_node_stat): Copy it.
29853 * tree.h (DECL_PT_UID): New macro.
29854 (SET_DECL_PT_UID): Likewise.
29855 (DECL_PT_UID_SET_P): Likewise.
29856 (struct tree_decl_minimal): Add pt_uid member.
29857 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
29858 (pt_solution_empty_p): Declare.
29859 (pt_solution_set): Adjust.
29860 (ipa_escaped_pt): Declare.
29861 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
29862 * gimple-pretty-print.c (pp_points_to_solution): New function.
29863 (dump_gimple_call): Dump call clobber/use information.
29864 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
29865 * tree-pass.h (TDF_ALIAS): New dump option.
29866 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
29867 * doc/invoke.texi (-fipa-pta): Update documentation.
29868
29869 2010-04-15 Richard Guenther <rguenther@suse.de>
29870
29871 * Makefile.in (OBJS-common): Add gimple-fold.o.
29872 (gimple-fold.o): New rule.
29873 * tree.h (maybe_fold_offset_to_reference,
29874 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
29875 prototypes ...
29876 * gimple.h: ... here.
29877 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
29878 may_propagate_address_into_dereference): Move prototypes ...
29879 * gimple.h: ... here.
29880 * tree-ssa-ccp.c (get_symbol_constant_value,
29881 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
29882 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
29883 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
29884 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
29885 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
29886 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
29887 gimplify_and_update_call_from_tree): Move ...
29888 * gimple-fold.c: ... here. New file.
29889 (ccp_fold_builtin): Rename to ...
29890 (gimple_fold_builtin): ... this.
29891 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
29892
29893 2010-04-15 Richard Guenther <rguenther@suse.de>
29894
29895 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
29896 fit_double_type, force_fit_type_double, add_double_with_sign,
29897 neg_double, mul_double_with_sign, lshift_double, rshift_double,
29898 lrotate_double, rrotate_double, div_and_round_double): Move ...
29899 * double-int.c: ... here.
29900 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
29901 add_double, neg_double, mul_double_with_sign, mul_double,
29902 lshift_double, rshift_double, lrotate_double, rrotate_double,
29903 div_and_round_double): Move prototypes ...
29904 * double-int.h: ... here.
29905
29906 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
29907
29908 PR target/43742
29909 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
29910 matching constraints to ensure inputs match the output.
29911
29912 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
29913
29914 PR target/43742
29915 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
29916 in an input-only operand.
29917
29918 2010-04-15 Anatoly Sokolov <aesok@post.ru>
29919
29920 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
29921 (double_int_not, double_int_lshift, double_int_rshift): Declare.
29922 (double_int_negative_p): Convert to static inline function.
29923 * double-int.c (double_int_lshift, double_int_lshift): New functions.
29924 (double_int_negative_p): Remove.
29925 * tree.h (lshift_double, rshift_double):
29926 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
29927 * fold-const.c (fold_convert_const_int_from_real,
29928 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
29929 (lshift_double): Change type of arith argument to bool.
29930 (rshift_double): Change type of arith argument to bool. Correct
29931 comment.
29932 * expmed.c (mask_rtx, lshift_value): (Ditto.).
29933
29934 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
29935
29936 PR target/21803
29937 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
29938 at the start and end of the then/else blocks, and omit them from the
29939 conversion.
29940 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
29941 argument; all callers changed. Pass zero to old_insns_match_p instead.
29942 (flow_find_head_matching_sequence): New function.
29943 (old_insns_match_p): Check REG_EH_REGION notes for calls.
29944 * basic-block.h (flow_find_cross_jump,
29945 flow_find_head_matching_sequence): Declare functions.
29946
29947 2010-04-14 Jason Merrill <jason@redhat.com>
29948
29949 PR c++/36625
29950 * c-common.c (attribute_takes_identifier_p): New fn.
29951 * c-common.h: Declare it.
29952
29953 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
29954
29955 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
29956 splitter condition.
29957 (*udivmod<mode>4): Ditto.
29958
29959 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
29960
29961 * config/i386/i386.md (maxmin_int): Rename code attribute from
29962 maxminiprefix and update all users.
29963 (maxmin_float): Ditto from maxminfprefix.
29964 (logic): Ditto from logicprefix.
29965 (absneg_mnemonic): Ditto from absnegprefix.
29966 * config/i386/mmx.md: Update all users of maxminiprefix,
29967 maxminfprefix and logicprefix for rename.
29968 * config/i386/sse.md: Ditto.
29969 * config/i386/sync.md (sync_<code><mode>): Update for
29970 logicprefix rename.
29971
29972 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
29973
29974 PR 42966
29975 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
29976 warnings converted to errors.
29977
29978 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
29979
29980 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
29981 used insn_type variable.
29982 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
29983 to avoid set-but-not-used warning.
29984
29985 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
29986
29987 * df-core.c (df_ref_debug): Change format string placeholder
29988 from 0x%x to %#x.
29989 * dwarf2asm.c (dw2_asm_output_data_raw,
29990 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
29991 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
29992 * dwarf2out.c (output_cfi, output_cfi_directive,
29993 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
29994 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
29995 Ditto.
29996 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
29997 * print-rtl.c (print_rtx): Ditto.
29998
29999 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30000
30001 PR middle-end/42694
30002 * builtins.c (expand_builtin_pow_root): New function to expand pow
30003 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
30004 series of sqrt and cbrt calls under -ffast-math.
30005 (expand_builtin_pow): Call it.
30006
30007 2010-04-14 Michael Matz <matz@suse.de>
30008
30009 PR tree-optimization/42963
30010 * tree-cfg.c (touched_switch_bbs): New static variable.
30011 (group_case_labels_stmt): New function broken out from ...
30012 (group_case_labels): ... here, use the above.
30013 (start_recording_case_labels): Allocate touched_switch_bbs.
30014 (end_recording_case_labels): Deallocate it, call
30015 group_case_labels_stmt.
30016 (gimple_redirect_edge_and_branch): Remember index of affected BB.
30017
30018 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30019
30020 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
30021 from insn template.
30022
30023 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
30024
30025 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
30026
30027 2010-04-13 Jan Hubicka <jh@suse.cz>
30028
30029 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
30030 of optimized out static functions.
30031 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
30032 cost computation. Also sanity check for overflows.
30033 (update_caller_keys): Update cgraph_edge_badness call; properly
30034 update fibheap and sanity check that it is up to date.
30035 (add_new_edges_to_heap): Update cgraph_edge_badness.
30036 (cgraph_decide_inlining_of_small_function): Likewise;
30037 add sanity checking that badness in heap is up to date;
30038 improve dumping of reason; Update badness of calls to the
30039 offline copy of function currently inlined; dump badness
30040 of functions not inlined because of unit growth limits.
30041
30042 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
30043
30044 PR middle-end/32628
30045 * c-common.c (pointer_int_sum): Disregard overflow that occured only
30046 because of sign-extension change when converting to sizetype here...
30047 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
30048
30049 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
30050 the folding to constants. Remove redundant final conversion.
30051 (fold_binary) <associate>: Do not associate if the re-association of
30052 constants alone overflows.
30053 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
30054 to the end of the list.
30055 (multiple_of_p) <COND_EXPR>: New case.
30056
30057 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
30058
30059 * opt-functions.awk (opt_sanitized_name): New.
30060 (opt_enum): New.
30061 * optc-gen.awk: Use it
30062 * opth-gen.awk: Use it.
30063
30064 2010-04-13 Martin Jambor <mjambor@suse.cz>
30065
30066 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
30067 (sra_modify_assign): Delete stmts loading dead data even if racc has no
30068 children. Call replace_uses_with_default_def_ssa_name to handle
30069 SSA_NAES on lhs.
30070
30071 2010-04-13 Michael Matz <matz@suse.de>
30072
30073 PR middle-end/43730
30074 * builtins.c (expand_builtin_interclass_mathfn): Also create
30075 a register if the predicate doesn't match.
30076
30077 2010-04-13 Diego Novillo <dnovillo@google.com>
30078
30079 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
30080 * c-pch.c: Include timevar.h.
30081 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
30082 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
30083 * ggc-common.c: Include timevar.h.
30084 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
30085 * timevar.def (TV_PCH_SAVE): Define.
30086 (TV_PCH_CPP_SAVE): Define.
30087 (TV_PCH_PTR_REALLOC): Define.
30088 (TV_PCH_PTR_SORT): Define.
30089 (TV_PCH_RESTORE): Define.
30090 (TV_PCH_CPP_RESTORE): Define.
30091
30092 2010-04-13 Michael Matz <matz@suse.de>
30093
30094 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
30095 into MINUS_EXPRs.
30096 (can_reassociate_p): New function.
30097 (break_up_subtract_bb, reassociate_bb): Use it.
30098
30099 2010-04-13 Richard Guenther <rguenther@suse.de>
30100
30101 PR bootstrap/43737
30102 * builtins.c (c_readstr): Fix assert.
30103
30104 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
30105
30106 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
30107 when generating cltd insn.
30108
30109 (*ashl<mode>3_1): Remove special handling for register operand 2.
30110 (*ashlsi3_1_zext): Ditto.
30111 (*ashlhi3_1): Ditto.
30112 (*ashlhi3_1_lea): Ditto.
30113 (*ashlqi3_1): Ditto.
30114 (*ashlqi3_1_lea): Ditto.
30115 (*<shiftrt_insn><mode>3_1): Ditto.
30116 (*<shiftrt_insn>si3_1_zext): Ditto.
30117 (*<shiftrt_insn>qi3_1_slp): Ditto.
30118 (*<rotate_insn><mode>3_1): Ditto.
30119 (*<rotate_insn>si3_1_zext): Ditto.
30120 (*<rotate_insn>qi3_1_slp): Ditto.
30121
30122 2010-04-13 Richard Guenther <rguenther@suse.de>
30123
30124 * tree-ssa-structalias.c (callused_id): Remove.
30125 (call_stmt_vars): New.
30126 (get_call_vi): Likewise.
30127 (lookup_call_use_vi): Likewise.
30128 (lookup_call_clobber_vi): Likewise.
30129 (get_call_use_vi): Likewise.
30130 (get_call_clobber_vi): Likewise.
30131 (make_transitive_closure_constraints): Likewise.
30132 (handle_const_call): Adjust to do per-call call-used handling.
30133 (handle_pure_call): Likewise.
30134 (find_what_var_points_to): Remove general callused handling.
30135 (init_base_vars): Likewise.
30136 (init_alias_vars): Initialize call_stmt_vars.
30137 (compute_points_to_sets): Process call-used and call-clobbered
30138 vars for call statements.
30139 (delete_points_to_sets): Free call_stmt_vars.
30140
30141 2010-04-13 Richard Guenther <rguenther@suse.de>
30142
30143 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30144 Only add RW dependence for dependence distance zero.
30145 Adjust maximal vectorization factor according to dependences.
30146 Move alignment handling ...
30147 (vect_find_same_alignment_drs): ... here. New function.
30148 (vect_analyze_data_ref_dependences): Adjust.
30149 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
30150 (vect_analyze_data_refs): Adjust minimal vectorization factor
30151 according to data references.
30152 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
30153 dependences before determining the vectorization factor.
30154 Analyze alignment after determining the vectorization factor.
30155 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
30156 dependences before alignment.
30157 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
30158 Adjust prototype.
30159 (vect_analyze_data_refs): Likewise.
30160 (MAX_VECTORIZATION_FACTOR): New define.
30161
30162 2010-04-13 Duncan Sands <baldrick@free.fr>
30163
30164 * except.h (lang_eh_type_covers): Remove.
30165 * except.c (lang_eh_type_covers): Likewise.
30166
30167 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30168 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30169
30170 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
30171 * config/s390/s390.c: Replace UNTIS_PER_WORD with
30172 UNITS_PER_LONG where it is ABI relevant.
30173 (s390_return_addr_rtx): Likewise.
30174 (s390_back_chain_rtx): Likewise.
30175 (s390_frame_area): Likewise.
30176 (s390_frame_info): Likewise.
30177 (s390_initial_elimination_offset): Likewise.
30178 (save_gprs): Likewise.
30179 (s390_emit_prologue): Likewise.
30180 (s390_emit_epilogue): Likewise.
30181 (s390_function_arg_advance): Likewise.
30182 (s390_function_arg): Likewise.
30183 (s390_va_start): Likewise.
30184 (s390_gimplify_va_arg): Likewise.
30185 (s390_function_profiler): Likewise.
30186 (s390_optimize_prologue): Likewise.
30187 (s390_rtx_costs): Likewise.
30188 (s390_secondary_reload): Likewise.
30189 (s390_promote_function_mode): Likewise.
30190 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
30191 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
30192 registers available.
30193 (s390_unwind_word_mode): New function.
30194 (s390_function_value): Split 64 bit values into register pair if
30195 used as return value.
30196 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
30197 function call parameters. Handle parallels.
30198 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
30199 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
30200 (DWARF_CIE_DATA_ALIGNMENT): New macro.
30201 (s390_expand_setmem): Remove unused variable src_addr.
30202 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
30203 deal with 64 bit registers.
30204 * config/s390/s390.h: Define __zarch__ predefined macro.
30205 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
30206 (UNITS_PER_LONG): New macro.
30207 * libjava/include/s390-signal.h: Define extended ucontext
30208 structure containing the upper halfs of the 64 bit registers.
30209
30210 2010-04-13 Simon Baldwin <simonb@google.com>
30211
30212 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
30213
30214 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
30215
30216 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
30217 rvalue on the RHS if the LHS is of a non-renamable type.
30218 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
30219
30220 2010-04-13 Matthias Klose <doko@ubuntu.com>
30221
30222 * gcc.c (cc1_options): Handle -iplugindir before processing
30223 the cc1 spec. Only add -iplugindir once.
30224 (cpp_unique_options): Add -iplugindir option if -fplugin* options
30225 found.
30226 * common.opt (iplugindir): Remove `Separate' property, initialize.
30227 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
30228 option.
30229 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
30230 (distclean): Remove plugin dir.
30231 * doc/invoke.texi: Document -iplugindir.
30232
30233 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
30234
30235 * doc/plugins.texi (Loading Plugins): Document short
30236 -fplugin=foo option.
30237 (Plugin API): Mention default_plugin_dir_name function.
30238
30239 * gcc.c (find_file_spec_function): Add new declaration.
30240 (static_spec_func): Use it for "find-file".
30241 (find_file_spec_function): Add new function.
30242 (cc1_options): Add -iplugindir option if -fplugin* options found.
30243
30244 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
30245
30246 * plugin.c (add_new_plugin): Updated comment, and handle short
30247 plugin name.
30248 (default_plugin_dir_name): Added new function.
30249
30250 * common.opt (iplugindir): New option to set the plugin directory.
30251
30252 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
30253
30254 * config/i386/i386.md (any_rotate): New code iterator.
30255 (rotate_insn): New code attribute.
30256 (rotate): Ditto.
30257 (SWIM124): New mode iterator.
30258 (<rotate_insn>ti3): New expander.
30259 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
30260 any_rotate code iterator.
30261 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
30262 using any_rotate code iterator and SWIM124 mode iterator.
30263 (ix86_rotlti3): New insn_and_split pattern.
30264 (ix86_rotrti3): Ditto.
30265 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
30266 ix86_rotl{di,ti}3 patterns.
30267 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
30268 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
30269 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
30270 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
30271 code iterator and SWI mode iterator.
30272 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
30273 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
30274 code iterator.
30275 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
30276 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
30277 (bswap rotatert splitter): Add splitter.
30278 (bswap splitter): Macroize splitter using any_rotate code iterator.
30279 Add insn predicate to split only for TARGET_USE_XCHGB or when
30280 optimizing function for size.
30281
30282 2010-04-12 Steve Ellcey <sje@cup.hp.com>
30283
30284 * config/pa/pa.c (emit_move_sequence): Remove use of
30285 deleted variable flag_argument_noalias.
30286
30287 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30288
30289 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
30290 configurations.
30291 Add to unsupported targets list.
30292 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
30293 sparc*-sun-solaris2.[567]* from target lists.
30294 * configure: Regenerate.
30295 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
30296 removal.
30297 Remove Solaris 7 patch references.
30298 (Specific, sparc-sun-solaris2.7): Removed.
30299 (sparc-sun-solaris2*): Update Solaris 7 example.
30300 (sparc64-*-solaris2*): Likewise.
30301
30302 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30303
30304 * config.build (alpha*-dec-osf4*): Remove.
30305 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
30306 of obsolete configurations.
30307 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
30308 support.
30309 * config/alpha/t-osf4: Renamed to ...
30310 * config/alpha/t-osf5: ... this.
30311 * config/alpha/osf.h: Renamed to ...
30312 * config/alpha/osf5.h: ... this.
30313 Merged old osf5.h contents.
30314 Update comments.
30315 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
30316 (EXTRA_SPECS): Removed.
30317 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
30318 reflect removal of Tru64 UNIX V4.0/V5.0 support.
30319 Document that.
30320
30321 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30322
30323 * doc/contrib.texi (Contributors, Rainer Orth): Update.
30324
30325 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
30326
30327 PR/43702
30328 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
30329 __thiscall convention.
30330
30331 2010-04-12 Steve Ellcey <sje@cup.hp.com>
30332
30333 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
30334 orig_base.
30335 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
30336
30337 2010-04-12 Steve Ellcey <sje@cup.hp.com>
30338
30339 * function.c (assign_parms_initialize_all): Add unused attribute
30340 to fntype.
30341
30342 2010-04-12 Richard Guenther <rguenther@suse.de>
30343
30344 * gsstruct.def (GSS_CALL): New.
30345 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
30346 * gimple.h: Include tree-ssa-alias.h.
30347 (struct gimple_statement_call): New.
30348 (union gimple_statement_struct_d): Add gimple_call member.
30349 (gimple_call_reset_alias_info): Declare.
30350 (gimple_call_use_set): New function.
30351 (gimple_call_clobber_set): Likewise.
30352 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
30353 * gimple.c (gimple_call_reset_alias_info): New function.
30354 (gimple_build_call_1): Call it.
30355 * lto-streamer-in.c (input_gimple_stmt): Likewise.
30356 * tree-inline.c (remap_gimple_stmt): Likewise.
30357 (expand_call_inline): Remove callused handling.
30358 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
30359 * tree-dfa.c (dump_variable): Likewise.
30360 * tree-parloops.c (parallelize_loops): Likewise.
30361 * tree-ssa.c (init_tree_ssa): Likewise.
30362 (delete_tree_ssa): Likewise.
30363 * tree-flow-inline.h (is_call_used): Remove.
30364 * tree-flow.h (struct gimple_df): Remove callused member.
30365 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
30366 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
30367 (ref_maybe_used_by_call_p_1): Simplify.
30368 (call_may_clobber_ref_p_1): Likewise.
30369 * tree-ssa-structalias.c (compute_points_to_sets): Set
30370 the call stmt used and clobbered sets.
30371 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
30372 (find_tail_calls): Verify the tail call.
30373
30374 2010-04-12 Richard Guenther <rguenther@suse.de>
30375
30376 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
30377 single-iteration always-inline inlining.
30378 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
30379 (cgraph_decide_inlining): Do not handle always-inline specially.
30380 (try_inline): Remove always-inline cycle detection special case.
30381 Do not recurse on always-inlines.
30382 (cgraph_early_inlining): Do not iterate if not optimizing.
30383 (cgraph_gate_early_inlining): remove.
30384 (pass_early_inline): Run unconditionally.
30385 (gate_cgraph_decide_inlining): New function.
30386 (pass_ipa_inline): Use it. Do not run the IPA inliner if
30387 not inlining or optimizing.
30388 (cgraph_decide_inlining_of_small_functions): Also consider
30389 always-inline functions.
30390 (cgraph_default_inline_p): Return true for nodes which should
30391 disregard inline limits.
30392 (estimate_function_body_sizes): Assume zero size and time for
30393 nodes which are marked as disregarding inline limits.
30394 (cgraph_decide_recursive_inlining): Do not perform recursive
30395 inlining on always-inline nodes.
30396
30397 2010-04-12 Jakub Jelinek <jakub@redhat.com>
30398
30399 PR bootstrap/43699
30400 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
30401 for exprs satisfying handled_component_p.
30402
30403 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
30404
30405 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
30406 non-constant aggregate elements.
30407
30408 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
30409 is a real initialization.
30410
30411 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
30412
30413 PR c/36774
30414 * c-decl.c (start_function): Move forward check for nested function.
30415
30416 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
30417
30418 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
30419 * config/sh/sh.c: Include reload.h.
30420 (sh_legitimize_reload_address): New.
30421 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
30422 sh_legitimize_reload_address.
30423
30424 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30425
30426 * config/sh/sh.md (*movqi_pop): New insn pattern.
30427 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
30428
30429 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
30430
30431 * config/i386/i386.md (any_shiftrt): New code iterator.
30432 (shiftrt_insn): New code attribute.
30433 (shiftrt): Ditto.
30434 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
30435 using any_shiftrt code iterator.
30436 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
30437 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
30438 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
30439 pattern from corresponding peephole2 patterns.
30440 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
30441 using any_shiftrt code iterator.
30442 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
30443 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
30444 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
30445 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
30446 *{ashr,lshr}<mode>3_cmp_zext.
30447 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
30448
30449 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
30450
30451 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
30452 scratch register.
30453 (*lshr<mode>3_cconly): Ditto.
30454
30455 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
30456
30457 * config/i386/i386.md (lshr<mode>3): Macroize expander from
30458 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30459 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
30460 pattern from *lshr{di,ti}3_1 and corresponding splitters using
30461 DWI mode iterator.
30462 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30463 from corresponding peephole2 patterns.
30464 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
30465 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
30466 and *lshrdi3_1_rex64 using SWI mode iterator.
30467 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
30468 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
30469 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
30470 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
30471 and *lshrdi3_cmp_rex64 using SWI mode iterator.
30472 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
30473 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
30474 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
30475 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
30476 SWI mode iterator.
30477
30478 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
30479
30480 * config/i386/i386.md (ashr<mode>3): Macroize expander from
30481 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30482 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
30483 pattern from *ashr{di,ti}3_1 and corresponding splitters using
30484 DWI mode iterator.
30485 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30486 from corresponding peephole2 patterns.
30487 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
30488 (ashrsi3_cvt): Rename from ashrsi3_31.
30489 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
30490 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
30491 and x86_64_shift_adj_3 using SWI48 mode iterator.
30492 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
30493 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
30494 and *ashrdi3_1_rex64 using SWI mode iterator.
30495 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
30496 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
30497 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
30498 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
30499 and *ashrdi3_cmp_rex64 using SWI mode iterator.
30500 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
30501 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
30502 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
30503 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
30504 SWI mode iterator.
30505 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
30506 * config/i386/i386.c (ix86_split_ashr): Update for renamed
30507 x86_shift<mode>_adj_3 expanders.
30508
30509 2010-04-10 Wei Guozhi <carrot@google.com>
30510
30511 PR target/42601
30512 * config/arm/arm.c (arm_pic_static_addr): New function.
30513 (legitimize_pic_address): Call arm_pic_static_addr when it detects
30514 a static symbol.
30515 (arm_output_addr_const_extra): Output expression for new pattern.
30516 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
30517
30518 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
30519
30520 * ira-costs.c (record_reg_classes): Ignore alternatives that are
30521 not enabled.
30522
30523 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
30524 * web.c: Include "insn-config.h" and "recog.h".
30525 (union_match_dups): New function.
30526 (web_main): Call it.
30527 (union_defs): Don't try to recognize match_dups.
30528
30529 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
30530 if doing so would replace the entire pattern.
30531
30532 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
30533
30534 PR target/43707
30535 PR target/43709
30536 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
30537 and splitter pattern. Change splitter operand 1 predicate to
30538 nonmemory_operand.
30539
30540 2010-04-09 Martin Jambor <mjambor@suse.cz>
30541
30542 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
30543 lattices are addresses of CONST_DECLs with the same initial value.
30544 (ipcp_print_all_lattices): Print values of CONST_DECLs.
30545 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
30546
30547 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
30548 Bernd Schmidt <bernds@codesourcery.com>
30549
30550 * loop-invariant.c (replace_uses): New static function.
30551 (move_invariant_reg): Use it to ensure we can replace the uses.
30552
30553 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
30554
30555 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
30556 function template.
30557 (picochip_override_options): Enable section anchors only above -O1.
30558 (picochip_reorg): Fixed a couple of build warnings.
30559
30560 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30561
30562 * configure.ac (plugin -rdynamic test): Log result.
30563 * configure: Regenerate.
30564 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
30565 (RDYNAMIC_SPEC): Define.
30566 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
30567
30568 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30569
30570 * configure.ac: Determine Sun ld version numbers.
30571 (comdat_group): Restrict GNU ld version checks to gld.
30572 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
30573 (enable_comdat): Support --enable-comdat.
30574 * configure: Regenerate.
30575 * doc/install.texi (Configuration): Document --enable-comdat.
30576
30577 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30578
30579 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
30580 * config/sol2-gld.h: ... here.
30581 * config.gcc (sparc*-*-solaris2*): Reflect this.
30582 (i[34567]86-*-solaris2*): Use it.
30583
30584 2010-04-09 Steve Ellcey <sje@cup.hp.com>
30585
30586 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
30587 setup_clocks_p.
30588 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
30589
30590 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
30591
30592 PR 42965
30593 * diagnostic.c (diagnostic_initialize): Initialize
30594 some_warnings_are_errors.
30595 (diagnostic_finish): New.
30596 (diagnostic_action_after_output): Call it before exiting.
30597 (diagnostic_report_diagnostic): Do not print message here. Set
30598 some_warnings_are_errors.
30599 * diagnostic.h (diagnostic_context): Delete
30600 issue_warnings_are_errors_message. Add some_warnings_are_errors.
30601 (diagnostic_finish): Declare.
30602 * toplev.c (toplev_main): Call it before exit.
30603
30604 2010-04-09 Jason Merrill <jason@redhat.com>
30605
30606 PR c++/42623
30607 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
30608 for incomplete type.
30609
30610 PR c++/41788
30611 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
30612 based on a warning flag.
30613
30614 2010-04-09 Richard Guenther <rguenther@suse.de>
30615
30616 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
30617
30618 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
30619
30620 PR bootstrap/43684
30621 * varasm.c (default_assemble_visibility): Wrap vars that are
30622 set, but unused, by targets without GAS.
30623 * config/rs6000/rs6000.c (paired_emit_vector_compare):
30624 Remove set, but unused, vars.
30625 (rs6000_legitimize_tls_address): Likewise.
30626 (altivec_expand_dst_builtin): Likewise.
30627 * config/darwin.c (machopic_classify_symbol): Likewise.
30628 (machopic_indirection_name): Likewise.
30629
30630 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
30631
30632 * config/i386/i386.md (DWI): New mode iterator.
30633 (S): New mode attribute.
30634 (shift_operand): Ditto.
30635 (shift_immediate_operand): Ditto.
30636 (ashl_input_operand): Ditto.
30637 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
30638 using SDWIM mode iterator.
30639 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
30640 pattern from *ashl{di,ti}3_1 and corresponding splitters using
30641 DWI mode iterator.
30642 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
30643 from corresponding peephole2 patterns.
30644 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
30645 and x86_64_shift_adj_1 using SWI48 mode iterator.
30646 (x86_shift<mode>_adj_2): Ditto.
30647 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
30648 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
30649 using SWI48 mode iterator.
30650 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
30651 *ashldi3_cmp_rex64 using SWI mode iterator.
30652 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
30653 *ashldi3_cconly_rex64 using SWI mode iterator.
30654 * config/i386/i386.c (ix86_split_ashl): Update for renamed
30655 x86_shift<mode>_adj_{1,2}.
30656 (ix86_split_ashr): Ditto.
30657 (ix86_split_lshr): Ditto.
30658
30659 2010-04-09 Richard Guenther <rguenther@suse.de>
30660
30661 * target.h (builtin_conversion): Pass in input and output types.
30662 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
30663 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
30664 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
30665 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
30666
30667 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
30668 Handle AVX modes.
30669 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
30670
30671 2010-04-09 Richard Guenther <rguenther@suse.de>
30672
30673 PR target/43152
30674 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
30675
30676 2010-04-09 Richard Guenther <rguenther@suse.de>
30677
30678 * tree-vectorizer.h (struct _stmt_vec_info): Document
30679 that vectype is the type of the LHS.
30680 (supportable_widening_operation, supportable_narrowing_operation):
30681 Get both input and output vector types as arguments.
30682 (vect_is_simple_use_1): Declare.
30683 (get_same_sized_vectype): Likewise.
30684 * tree-vect-loop.c (vect_determine_vectorization_factor):
30685 Set STMT_VINFO_VECTYPE to the vector type of the def.
30686 (vectorizable_reduction): Adjust.
30687 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
30688 Adjust. Specify the output vector type.
30689 (vect_pattern_recog_1): Adjust.
30690 * tree-vect-stmts.c (get_same_sized_vectype): New function.
30691 (vectorizable_call): Adjust.
30692 (vectorizable_conversion): Likewise.
30693 (vectorizable_operation): Likewise.
30694 (vectorizable_type_demotion): Likewise.
30695 (vectorizable_type_promotion): Likewise.
30696 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
30697 the def.
30698 (vect_is_simple_use_1): New function.
30699 (supportable_widening_operation): Get both input and output
30700 vector types.
30701 (supportable_narrowing_operation): Likewise.
30702 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
30703
30704 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
30705
30706 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
30707 __thiscall and _thiscall as predefined macros.
30708 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
30709 thiscall attribute handling.
30710 (ix86_comp_type_attributes): Likewise.
30711 (ix86_function_regparm): Likewise.
30712 (ix86_return_pops_args): Likewise.
30713 (init_cumulative_args): Likewise.
30714 (find_drap_reg): Likewise.
30715 (ix86_static_chain): Likewise.
30716 (x86_this_parameter): Likewise.
30717 (x86_output_mi_thunk): Likewise.
30718 (ix86_attribute_table): Add description for thiscall attribute.
30719 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
30720 * doc/extend.texi: Add documentation for thiscall.
30721
30722 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
30723
30724 PR c++/28584
30725 * c.opt (Wint-to-pointer-cast): Available in C++.
30726 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
30727
30728 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
30729
30730 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
30731 * calls.c (expand_call): Pass the function type to aggregate_value_p.
30732 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
30733 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
30734 function type instead. Reorder and simplify checks.
30735
30736 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
30737
30738 2010-04-08 Jing Yu <jingyu@google.com>
30739 Zdenek Dvorak <ook@ucw.cz>
30740
30741 PR tree-optimization/42720
30742 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
30743 loop unswitch conditions here from ...
30744 (tree_unswitch_single_loop): ... here.
30745
30746 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
30747
30748 * tree-if-conv.c: Fix comments and simplify logic.
30749
30750 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
30751
30752 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
30753 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
30754 (main_tree_if_conversion): Update call to tree_if_conversion.
30755
30756 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
30757
30758 PR 42485
30759 * doc/invoke.texi (-b,-V): Delete.
30760 * doc/tm.texi: Do not mention -b.
30761 * gcc.c (display_help): Delete -b and -V.
30762 (process_command): Delete -b and -V.
30763 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
30764
30765 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
30766 Wolfgang Gellerich <gellerich@de.ibm.com>
30767
30768 Implement target hook for loop unrolling
30769 * target.h (loop_unroll_adjust): Add a new target hook function.
30770 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
30771 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
30772 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
30773 (s390_loop_unroll_adjust): Implement the new target hook for s390.
30774 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
30775 target hook.
30776 (decide_unroll_stupid): Likewise.
30777
30778 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30779
30780 PR target/43643
30781 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
30782
30783 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30784
30785 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
30786 (Specific, *-*-solaris2*): Likewise.
30787 Don't prefer Sun as over GNU as.
30788
30789 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
30790
30791 * config/s390/s390.c (override_options): Adjust the z10 defaults
30792 for max-unroll-times, max-completely-peeled-insns
30793 and max-completely-peel-times.
30794
30795 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30796
30797 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
30798 instructions for z10.
30799 (s390_expand_setmem): Likewise.
30800 (s390_expand_cmpmem): Likewise.
30801
30802 2010-04-08 Richard Guenther <rguenther@suse.de>
30803
30804 PR tree-optimization/43679
30805 * tree-ssa-pre.c (eliminate): Only propagate copies.
30806
30807 2010-04-08 Jakub Jelinek <jakub@redhat.com>
30808
30809 PR bootstrap/43681
30810 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
30811 set but not used variable warning.
30812
30813 2010-04-08 Wei Guozhi <carrot@google.com>
30814
30815 PR target/41653
30816 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
30817 (arm_size_rtx_costs): Call the new function when optimized for size.
30818
30819 2010-04-08 Jakub Jelinek <jakub@redhat.com>
30820
30821 PR debug/43670
30822 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
30823 op0 is not a MEM, just return NULL instead of assertion
30824 failure.
30825 (discover_nonconstant_array_refs): Don't walk debug stmts.
30826
30827 2010-04-08 Doug Kwan <dougkwan@google.com>
30828
30829 * configure.ac: Recognize gold and do not use its version number
30830 to test ld features.
30831 * configure: Regenerate.
30832
30833 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
30834
30835 PR middle-end/40815
30836 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
30837 (negate_value): Move code to push elements to broken_up_substracts ...
30838 (eliminate_plus_minus_pair): ... here. Push operands that have no
30839 negative pair to plus_negates.
30840 (repropagate_negates, init_reassoc, fini_reassoc): Update.
30841
30842 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30843
30844 * doc/install.texi (Configuration): Move description of
30845 --enable-lto, --with-libelf*, --enable-gold from Java section to
30846 general section.
30847
30848 * doc/generic.texi (Working with declarations)
30849 (Function Properties, C and C++ Trees): Fix typos.
30850 * doc/sourcebuild.texi (Top Level): Likewise.
30851
30852 2010-04-07 Jakub Jelinek <jakub@redhat.com>
30853
30854 PR c/18624
30855 * tree.h (DECL_READ_P): Define.
30856 (struct tree_decl_common): Add decl_read_flag.
30857 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
30858 a set but not used warning.
30859 (merge_decls): Merge DECL_READ_P flag.
30860 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
30861 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
30862 * c-common.c (handle_used_attribute, handle_unused_attribute):
30863 Likewise.
30864 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
30865 New prototypes.
30866 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
30867 New functions.
30868 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
30869 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
30870 c_parser_binary_expression, c_parser_cast_expression,
30871 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
30872 Call default_function_array_read_conversion instead of
30873 default_function_array_conversion where needed.
30874 (c_parser_unary_expression, c_parser_conditional_expression,
30875 c_parser_postfix_expression_after_primary, c_parser_initelt):
30876 Likewise. Call mark_exp_read where needed.
30877 (c_parser_statement_after_labels, c_parser_asm_operands,
30878 c_parser_typeof_specifier, c_parser_sizeof_expression,
30879 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
30880 where needed.
30881 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
30882 New.
30883 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
30884 (warn_unused_but_set_parameter): Default to warn_unused
30885 && extra_warnings.
30886 * doc/invoke.texi: Document -Wunused-but-set-variable and
30887 -Wunused-but-set-parameter.
30888
30889 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
30890 used count variable.
30891 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
30892 when operandN variables aren't used in the body of the expander
30893 or splitter.
30894 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
30895 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
30896 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
30897 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
30898 FOR_EACH_IMM_USE_ON_STMT): Likewise.
30899 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
30900 * tree.c (PROCESS_ARG): Likewise.
30901
30902 2010-04-07 Simon Baldwin <simonb@google.com>
30903
30904 * diagnostic.h (diagnostic_override_option_index): New macro to
30905 set a diagnostic's option_index.
30906 * c-tree.h (c_cpp_error): Add warning reason argument.
30907 * opts.c (_warning_as_error_callback): New.
30908 (register_warning_as_error_callback): Store callback for
30909 warnings enabled via enable_warning_as_error.
30910 (enable_warning_as_error): Call callback, minor code tidy.
30911 * opts.h (register_warning_as_error_callback): Declare.
30912 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
30913 response to -Werror=.
30914 (c_common_init_options): Register warning_as_error_callback in opts.c.
30915 * common.opt: Add -Wno-cpp option.
30916 * c-common.c (struct reason_option_codes_t): Map cpp warning
30917 reason codes to gcc option indexes.
30918 * (c_option_controlling_cpp_error): New function, lookup the gcc
30919 option index for a cpp warning reason code.
30920 * (c_cpp_error): Add warning reason argument, call
30921 c_option_controlling_cpp_error for diagnostic_override_option_index.
30922 * doc/invoke.texi: Document -Wno-cpp.
30923
30924 2010-04-07 Richard Guenther <rguenther@suse.de>
30925
30926 * ipa-reference.c (mark_load): Use get_base_address.
30927 (mark_store): Likewise.
30928
30929 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
30930 inserting GIMPLE_NOPs into the IL.
30931 * tree-ssa-structalias.c (get_constraint_for_component_ref):
30932 Explicitly strip handled components and indirect references.
30933
30934 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
30935 folding address expressions.
30936 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
30937 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
30938 operand_equal_p to compare decls.
30939 (ptr_deref_may_alias_decl_p): Likewise.
30940 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
30941 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
30942 Handle reversed comparison ops.
30943 * tree-sra.c (asm_visit_addr): Use get_base_address.
30944 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
30945 * ipa-reference.c (mark_address): Use get_base_address.
30946
30947 2010-04-07 Richard Guenther <rguenther@suse.de>
30948
30949 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
30950 Propagate constants everywhere.
30951
30952 2010-04-07 Jakub Jelinek <jakub@redhat.com>
30953
30954 PR debug/43516
30955 * tree.c (MAX_INT_CACHED_PREC): Define.
30956 (nonstandard_integer_type_cache): New array.
30957 (build_nonstandard_integer_type): Cache results for precision
30958 <= MAX_INT_CACHED_PREC.
30959
30960 2010-04-07 Richard Guenther <rguenther@suse.de>
30961
30962 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
30963 -fargument-noalias-global, -fargument-noalias-anything): Remove.
30964 * common.opt: Likewise.
30965 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
30966 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
30967 (nonoverlapping_memrefs_p): Likewise.
30968 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
30969 * opts.c (common_handle_option): Handle OPT_fargument_alias,
30970 OPT_fargument_noalias, OPT_fargument_noalias_anything and
30971 OPT_fargument_noalias_global for backward compatibility.
30972
30973 2010-04-07 Richard Guenther <rguenther@suse.de>
30974
30975 PR tree-optimization/43270
30976 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
30977 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
30978 * tree-ssa-pre.c (phi_translate_1): Adjust.
30979 (fully_constant_expression): Split out vn_reference handling to ...
30980 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
30981 Fold reads from constant strings.
30982 (vn_reference_lookup): Handle fully constant references.
30983 (vn_reference_lookup_pieces): Likewise.
30984 * Makefile.in (expmed.o-warn): Add -Wno-error.
30985
30986 2010-04-07 Martin Jambor <mjambor@suse.cz>
30987
30988 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
30989
30990 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
30991
30992 PR driver/41594
30993 * gcc.c: Add -static-libstdc++ to list of recognized options.
30994
30995 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30996
30997 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
30998
30999 2010-04-07 Richard Guenther <rguenther@suse.de>
31000
31001 PR middle-end/42617
31002 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
31003 bases build simple mem attributes to retain points-to information.
31004
31005 2010-04-07 Richard Guenther <rguenther@suse.de>
31006
31007 PR middle-end/42617
31008 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
31009 preserve points-to related information.
31010
31011 2010-04-07 Richard Guenther <rguenther@suse.de>
31012
31013 PR middle-end/42617
31014 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
31015 discard plain indirect references.
31016 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
31017 * tree.c (tree_nop_conversion): Likewise.
31018
31019 2010-04-07 Dodji Seketeli <dodji@redhat.com>
31020
31021 PR debug/43628
31022 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
31023
31024 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
31025
31026 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
31027 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
31028
31029 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31030
31031 * tree-if-conv.c: Fix indentation and comments.
31032
31033 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31034
31035 * tree-if-conv.c: Sort static functions in topological order.
31036
31037 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
31038
31039 * tree-if-conv.c: Fix indentation and comments.
31040
31041 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31042
31043 PR middle-end/43519
31044 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
31045 lang_hooks.types.type_for_size instead of
31046 build_nonstandard_integer_type.
31047 When converting an unsigned type to signed, double its precision.
31048 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
31049 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
31050 (graphite_create_new_loop_guard): When ub + 1 wraps around,
31051 use lb <= ub.
31052
31053 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31054
31055 PR middle-end/43519
31056 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
31057 POINTER_PLUS_EXPR for pointer types.
31058
31059 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31060
31061 PR middle-end/43519
31062 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
31063 * graphite-clast-to-gimple.c: Include langhooks.h.
31064 (max_signed_precision_type): New.
31065 (max_precision_type): Takes two types as arguments.
31066 (precision_for_value): New.
31067 (precision_for_interval): New.
31068 (gcc_type_for_interval): New.
31069 (gcc_type_for_value): New.
31070 (gcc_type_for_clast_term): New.
31071 (gcc_type_for_clast_red): New.
31072 (gcc_type_for_clast_bin): New.
31073 (gcc_type_for_clast_expr): Split up into several functions.
31074 (gcc_type_for_clast_eq): Rewritten.
31075 (compute_bounds_for_level): New.
31076 (compute_type_for_level_1): New.
31077 (compute_type_for_level): New.
31078 (gcc_type_for_cloog_iv): Removed.
31079 (gcc_type_for_iv_of_clast_loop): Rewritten.
31080 (graphite_create_new_loop): Compute the lower and upper bound types
31081 with gcc_type_for_clast_expr.
31082 (graphite_create_new_loop_guard): Same.
31083 (find_cloog_iv_in_expr): Removed.
31084 (compute_cloog_iv_types_1): Removed.
31085 (compute_cloog_iv_types): Removed.
31086 (gloog): Do not call compute_cloog_iv_types.
31087 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
31088 GBB_CLOOG_IV_TYPES.
31089 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
31090 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
31091 (GBB_CLOOG_IV_TYPES): Removed.
31092
31093 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31094
31095 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
31096 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
31097 (detect_commutative_reduction): Same.
31098
31099 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31100
31101 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
31102 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
31103 argument.
31104 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
31105 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
31106 (rewrite_commutative_reductions_out_of_ssa): Same.
31107 * passes.c (execute_function_todo): Call verify_ssa for every pass
31108 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
31109 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
31110 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
31111 with an extra argument.
31112 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
31113 verify_ssa only when the extra argument is true.
31114 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
31115 with an extra argument.
31116 (tree_transform_and_unroll_loop): Same.
31117
31118 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
31119
31120 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
31121 for all the passes of the LNO having LOOP_CLOSED_SSA.
31122 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
31123 * tree-loop-distribution.c (pass_loop_distribution): Same.
31124 * tree-pass.h (TODO_verify_loops): Removed.
31125 * tree-ssa-loop.c (pass_tree_loop_init): Same.
31126 (pass_lim): Same.
31127 (pass_tree_unswitch): Same.
31128 (pass_predcom): Same.
31129 (pass_vectorize): Same.
31130 (pass_linear_transform): Same.
31131 (pass_graphite_transforms): Same.
31132 (pass_iv_canon): Same.
31133 (pass_complete_unroll): Same.
31134 (pass_complete_unrolli): Same.
31135 (pass_parallelize_loops): Same.
31136 (pass_loop_prefetch): Same.
31137 (pass_iv_optimize): Same.
31138
31139 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
31140
31141 PR middle-end/32824
31142 * passes.c (init_optimization_passes): Move pass_lim before
31143 pass_copy_prop and pass_dce_loop.
31144
31145 2010-04-06 Jakub Jelinek <jakub@redhat.com>
31146
31147 PR target/43667
31148 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
31149 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
31150 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
31151 MULTI_* defines for 4 argument vpermil2p* builtins.
31152
31153 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
31154
31155 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
31156 * config/i386/i386.c (x86_maybe_negate_const_int): New.
31157 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
31158 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
31159 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
31160 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
31161 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
31162 Use x86_maybe_negate_const_int to output insn mnemonic.
31163 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
31164 check from instruction predicate. Update comments.
31165 * config/i386/sync.md (sync_add<mode>): Use
31166 x86_maybe_negate_const_int to output insn mnemonic.
31167
31168 2010-04-06 Jan Hubicka <jh@suse.cz>
31169
31170 PR tree-optimization/42906
31171 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
31172 IGNORE_SELF argument. Set visited_control_parents for fully
31173 processed BBs.
31174 (find_obviously_necessary_stmts): Update call of
31175 mark_control_dependent_edges_necessary.
31176 (propagate_necessity): Likewise. Handle PHI edges more curefully.
31177
31178 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
31179
31180 * config/i386/i386.md: Remove comment about 'e' and 'E'
31181 operand modifier.
31182
31183 2010-04-06 Richard Guenther <rguenther@suse.de>
31184
31185 PR tree-optimization/43627
31186 * tree-vrp.c (extract_range_from_unary_expr): Widenings
31187 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
31188 not varying.
31189
31190 2010-04-06 Jakub Jelinek <jakub@redhat.com>
31191
31192 * BASE-VER: Change to 4.6.0.
31193
31194 PR target/43638
31195 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
31196 handling.
31197
31198 2010-04-06 Richard Guenther <rguenther@suse.de>
31199
31200 PR middle-end/43661
31201 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
31202
31203 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31204
31205 * doc/invoke.texi (Optimize Options): Document that LTO
31206 won't remove object access purely due to incompatible
31207 declarations.
31208
31209 2010-04-04 Matthias Klose <doko@ubuntu.com>
31210
31211 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
31212 Initialize variable.
31213
31214 2010-04-03 Richard Guenther <rguenther@suse.de>
31215
31216 PR middle-end/42509
31217 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
31218 require a non-NULL MEM_OFFSET.
31219
31220 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
31221
31222 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
31223 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
31224 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
31225 config/alpha/predicates.md, config/arm/arm.md,
31226 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
31227 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
31228 config/darwin9.h, config/darwin.c, config/darwin.h,
31229 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
31230 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
31231 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
31232 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
31233 config/mips/mips.md, config/mn10300/mn10300.c,
31234 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
31235 config/rs6000/aix.h, config/rs6000/dfp.md,
31236 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
31237 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
31238 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
31239 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
31240 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
31241 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
31242 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
31243 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
31244 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
31245 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
31246 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
31247 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
31248 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
31249 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
31250 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
31251 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
31252 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
31253 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
31254 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
31255 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
31256 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
31257 opt-functions.awk, opth-gen.awk, params.def, passes.c,
31258 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
31259 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
31260 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
31261 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
31262 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
31263 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31264 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
31265 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
31266 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
31267 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
31268 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
31269 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
31270 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
31271 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
31272
31273 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31274
31275 PR other/43620
31276 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
31277 * aclocal.m4: Regenerate.
31278
31279 2010-04-02 Richard Guenther <rguenther@suse.de>
31280
31281 PR tree-optimization/43629
31282 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
31283 if we have seen a constant value.
31284
31285 2010-04-02 Joseph Myers <joseph@codesourcery.com>
31286
31287 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
31288
31289 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
31290
31291 PR target/43469
31292 * arm.c (legitimize_tls_address): Adjust call to
31293 gen_tls_load_dot_plus_four.
31294 (arm_note_pic_base): New function.
31295 (arm_cannot_copy_insn_p): Use it.
31296 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
31297 constraint.
31298
31299 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31300
31301 PR bootstrap/43531
31302
31303 Revert:
31304 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31305
31306 * Makefile.in ($(out_object_file)): Depend on
31307 gt-$(basename $(notdir $(out_file))).h.
31308
31309 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
31310
31311 * config.gcc (lm32-*-rtems*): Add t-lm32.
31312
31313 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
31314
31315 * config.gcc: Add lm32-*-rtems*.
31316 * config/lm32/rtems.h: New file.
31317
31318 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
31319
31320 PR target/42609
31321 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
31322
31323 2010-04-01 Jakub Jelinek <jakub@redhat.com>
31324
31325 * dwarf2out.c (output_compilation_unit_header): For
31326 -gdwarf-4 use version 4 instead of version 3.
31327 (output_line_info): For version 4 and above emit additional
31328 maximum ops per insn header field.
31329 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
31330
31331 * dwarf2out.c (is_c_family, is_java): Remove.
31332 (lower_bound_default): New function.
31333 (add_bound_info, gen_descr_array_type_die): Use it.
31334
31335 2010-04-01 Dodji Seketeli <dodji@redhat.com>
31336
31337 PR debug/43325
31338 * dwarf2out.c (gen_variable_die): Allow debug info for variable
31339 re-declaration when it happens in a function.
31340
31341 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
31342
31343 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
31344 (cgraph_remove_function_insertion_hook): Same.
31345 (cgraph_call_function_insertion_hooks): Same.
31346
31347 2010-04-01 Richard Guenther <rguenther@suse.de>
31348
31349 PR middle-end/43614
31350 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
31351 and TREE_THIS_VOLATILE.
31352 (copy_ref_info): Likewise.
31353 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
31354 * tree.c (build6_stat): Ignore side-effects of all but arg5
31355 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
31356 TARGET_MEM_REF.
31357
31358 2010-04-01 Richard Guenther <rguenther@suse.de>
31359
31360 PR tree-optimization/43607
31361 * ipa-type-escape.c (check_call): Do not access non-existing
31362 arguments.
31363
31364 2010-04-01 Richard Guenther <rguenther@suse.de>
31365
31366 PR middle-end/43602
31367 Revert
31368 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
31369 Jack Howarth <howarth@bromo.med.uc.edu>
31370
31371 * tree-profile.c (tree_init_ic_make_global_vars): Make static
31372 variables TLS.
31373
31374 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31375
31376 * doc/install.texi (Prerequisites): Document libelf usability on
31377 IRIX 5/6 and Solaris 2.
31378 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
31379 Update GNU as, GNU ld requirements.
31380 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
31381 Document Sun Studio compiler download.
31382 Update and simplify as, ld recommendations.
31383 (Specific, *-*-solaris2.7): Note obsoletion, removal.
31384
31385 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31386
31387 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
31388 with_tune_32 to pentium4.
31389
31390 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
31391
31392 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
31393
31394 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31395
31396 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
31397 obsoletion, removal.
31398 Update IDO URL.
31399 Document GNU as requirement.
31400 Update configure requirements.
31401 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
31402 Recomment IRIX 6.5.18+.
31403 Document IDF/IDL requirement.
31404 Document GNU as requirement.
31405 Document GNU ld bootstrap failure.
31406 Remove freeware.sgi.com reference.
31407
31408 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31409
31410 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
31411 UNIX V4.0, V5.0 obsoletion, removal.
31412 Remove --with-gc=simple reference.
31413 Update VM requirements during bootstrap.
31414 Remove -oldas bootstrap description.
31415 Update binutils reference.
31416 Remove comparison failure note.
31417
31418 2010-03-31 Richard Guenther <rguenther@suse.de>
31419 Zdenek Dvorak <ook@ucw.cz>
31420 Sebastian Pop <sebastian.pop@amd.com>
31421
31422 PR middle-end/43464
31423 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
31424 with multiple arguments.
31425 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
31426
31427 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
31428
31429 * graphite-dependences.c (print_pddr): Call print_pdr with an
31430 extra argument.
31431 * graphite-poly.c (debug_pdr): Add an extra argument for the
31432 verbosity level.
31433 (print_pdr): Same.
31434 (print_pbb_domain): Same.
31435 (print_pbb): Same.
31436 (print_scop_context): Same.
31437 (print_scop): Same.
31438 (print_cloog): Same.
31439 (debug_pbb_domain): Same.
31440 (debug_pbb): Same.
31441 (print_pdrs): Same.
31442 (debug_pdrs): Same.
31443 (debug_scop_context): Same.
31444 (debug_scop): Same.
31445 (debug_cloog): Same.
31446 (print_scop_params): Same.
31447 (debug_scop_params): Same.
31448 (print_iteration_domain): Same.
31449 (print_iteration_domains): Same.
31450 (debug_iteration_domain): Same.
31451 (debug_iteration_domains): Same.
31452 (print_scattering_function): Same.
31453 (print_scattering_functions): Same.
31454 (debug_scattering_function): Same.
31455 (debug_scattering_functions): Same.
31456 * graphite-poly.h (debug_pdr): Update declaration.
31457 (print_pdr): Same.
31458 (print_pbb_domain): Same.
31459 (print_pbb): Same.
31460 (print_scop_context): Same.
31461 (print_scop): Same.
31462 (print_cloog): Same.
31463 (debug_pbb_domain): Same.
31464 (debug_pbb): Same.
31465 (print_pdrs): Same.
31466 (debug_pdrs): Same.
31467 (debug_scop_context): Same.
31468 (debug_scop): Same.
31469 (debug_cloog): Same.
31470 (print_scop_params): Same.
31471 (debug_scop_params): Same.
31472 (print_iteration_domain): Same.
31473 (print_iteration_domains): Same.
31474 (debug_iteration_domain): Same.
31475 (debug_iteration_domains): Same.
31476 (print_scattering_function): Same.
31477 (print_scattering_functions): Same.
31478 (debug_scattering_function): Same.
31479 (debug_scattering_functions): Same.
31480
31481 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
31482
31483 * graphite-poly.c (print_scattering_function_1): New.
31484 (print_scattering_function): Call it.
31485 (print_scop_params): Remove spaces at the end of lines.
31486 (print_cloog): New.
31487 (debug_cloog): New.
31488 * graphite-poly.h (print_cloog): Declared.
31489 (debug_cloog): Declared.
31490
31491 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
31492
31493 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
31494 in loop->header.
31495 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
31496 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
31497 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
31498 to switch between adding the IV bump in loop->latch or in loop->header.
31499
31500 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
31501
31502 * graphite-poly.c (print_scattering_function): Pretty print following
31503 the scoplib format.
31504 (print_pdr): Same.
31505 (print_pbb_domain): Same.
31506 (dump_gbb_cases): Same.
31507 (dump_gbb_conditions): Same.
31508 (print_pdrs): Same.
31509 (print_pbb): Same.
31510 (print_scop_params): Same.
31511 (print_scop_context): Same.
31512 (print_scop): Same.
31513 (print_pbb_body): New.
31514 (lst_indent_to): New.
31515 (print_lst): Start new lines with a #.
31516 * graphite-poly.h (pbb_bb): New.
31517 (pbb_index): Use pbb_bb.
31518 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
31519 disjuncts.
31520 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
31521
31522 2010-03-31 Jakub Jelinek <jakub@redhat.com>
31523
31524 * dwarf2out.c (size_of_die): For -gdwarf-4 use
31525 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
31526 and 0 instead of 1 for dw_val_class_flag.
31527 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
31528 dw_val_class_range_list, dw_val_class_loc_list,
31529 dw_val_class_lineptr and dw_val_class_macptr, use
31530 DW_FORM_flag_present for dw_val_class_flag and
31531 DW_FORM_exprloc for dw_val_class_loc.
31532 (output_die): For -gdwarf-4 print dw_val_class_loc
31533 size as uleb128 instead of 1 or 2 bytes and don't print
31534 anything for dw_val_class_flag.
31535
31536 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
31537 instead of cselib_lookup following by tweaking locs->setting_insn.
31538
31539 PR bootstrap/43596
31540 * cselib.c (cselib_process_insn): Clear cselib_current_insn
31541 even before returning from label, setjmp call or volatile asm
31542 handling.
31543
31544 2010-03-31 Richard Guenther <rguenther@suse.de>
31545
31546 PR middle-end/43600
31547 * cgraphunit.c (cgraph_output_in_order): Do not allocate
31548 temporary data on stack.
31549
31550 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31551
31552 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
31553 (PUSHSECTION_ASM_OP): Remove.
31554 (POPSECTION_ASM_OP): Remove.
31555 (PUSHSECTION_FORMAT): Remove.
31556 * config/sol2.h (PUSHSECTION_FORMAT): Define.
31557 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
31558 * config/sol2.c (solaris_output_init_fini): Use it.
31559
31560 2010-03-31 Jie Zhang <jie@codesourcery.com>
31561
31562 PR 43574
31563 * opt-functions.awk (var_type_struct): Use signed char type
31564 for simple variables.
31565
31566 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31567
31568 * config/sol2.c: Include output.h.
31569 (solaris_assemble_visibility): New function.
31570 * config/t-sol2 (sol2.o): Add output.h dependency.
31571 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
31572 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
31573 Redefine.
31574
31575 2010-03-31 Jakub Jelinek <jakub@redhat.com>
31576
31577 PR target/43580
31578 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
31579 V2SImode or XFmode on PRE_DEC.
31580
31581 PR debug/43557
31582 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
31583 BLKmode.
31584
31585 2010-03-31 Jie Zhang <jie@codesourcery.com>
31586
31587 PR 43562
31588 * reload.h (caller_save_initialized_p): Declare.
31589 * toplev.c (backend_init_target): Don't call
31590 init_caller_save but set caller_save_initialized_p to false.
31591 * caller-save.c (caller_save_initialized_p): Define.
31592 (init_caller_save): Check caller_save_initialized_p.
31593 * ira.c (ira): Call init_caller_save if flag_caller_saves.
31594
31595 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31596
31597 PR target/39048
31598 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
31599 and soft-fp/t-softfp to tmake_file.
31600 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
31601 (LIBGCC2_TF_CEXT): Define.
31602 (TF_SIZE): Define.
31603
31604 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
31605
31606 PR debug/42977
31607 * cselib.c (n_useless_values): Document handling of debug locs.
31608 (n_useless_debug_values, n_debug_values): New variables.
31609 (new_elt_loc_list): Don't add to debug values, keep count.
31610 (promote_debug_loc): New.
31611 (cselib_reset_table): Zero new variables.
31612 (entry_and_rtx_equal_p): Promote debug locs.
31613 (discard_useless_locs): Increment n_useless_debug_values for
31614 debug values.
31615 (remove_useless_values): Adjust n_useless_values and n_debug_values
31616 with n_useless_debug_values.
31617 (add_mem_for_addr): Promote debug locs.
31618 (cselib_lookup_mem): Likewise.
31619 (cselib_lookup_addr): Renamed to...
31620 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
31621 (cselib_log_lookup): ... this. Turn into...
31622 (cselib_lookup_addr): ... new wrapper.
31623 (cselib_lookup_from_insn): New.
31624 (cselib_invalidate_regno): Increment n_useless_debug_values for
31625 debug values.
31626 (cselib_invalidate_mem): Likewise.
31627 (cselib_process_insn): Take n_deleted and n_debug_values into
31628 account to guard remove_useless_value call.
31629 (cselib_finish): Zero n_useless_debug_values.
31630 * cselib.h (cselib_lookup_from_insn): Declare.
31631 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
31632 (sched_analyze_2): Likewise.
31633
31634 2010-03-30 Jakub Jelinek <jakub@redhat.com>
31635
31636 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
31637 functions.
31638 (adjust_mems): Replace narrowing SUBREG of expression containing
31639 just PLUS, MINUS, MULT and ASHIFT of registers and constants
31640 with operations in the narrower mode.
31641
31642 PR debug/43593
31643 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
31644 regs_invalidated_by_call instead all call_used_reg_set registers.
31645
31646 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
31647
31648 PR middle-end/43430
31649 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
31650 pointer comparisons with types_compatible_p.
31651 * tree-vect-stmts.c (vectorizable_call): Same.
31652 (vectorizable_condition): Same.
31653
31654 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31655
31656 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
31657 stack check if the mask would be zero.
31658
31659 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
31660 Jack Howarth <howarth@bromo.med.uc.edu>
31661
31662 * tree-profile.c (tree_init_ic_make_global_vars): Make static
31663 variables TLS.
31664
31665 2010-03-30 Joseph Myers <joseph@codesourcery.com>
31666
31667 PR other/25232
31668 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
31669 and __unordtf2.
31670 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
31671 Include ___unordxf2 and ___unordtf2.
31672 * config/i386/libgcc-glibc.ver: Do not define inheritance from
31673 GCC_4.4.0 here.
31674
31675 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
31676
31677 * config/lm32/t-lm32: New file.
31678 * config.gcc: Use the above file when targetting lm32.
31679
31680 2010-03-28 Duncan Sands <baldrick@free.fr>
31681
31682 * Makefile.in (PLUGIN_HEADERS): Add except.h.
31683
31684 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
31685
31686 PR middle-end/43431
31687 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
31688 Improve vectorization cost model diagnostic.
31689
31690 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
31691
31692 PR middle-end/43436
31693 * tree-vect-data-refs.c (vect_analyze_data_refs): When
31694 compute_data_dependences_for_loop returns false, early exit
31695 and output an extra diagnostic for the failed data reference
31696 analysis.
31697
31698 2010-03-29 Richard Guenther <rguenther@suse.de>
31699
31700 PR tree-optimization/43560
31701 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
31702 (can_sm_ref_p): Treat stores to readonly locations as trapping.
31703
31704 2010-03-29 Jie Zhang <jie@codesourcery.com>
31705
31706 PR 43564
31707 * toplev.c (process_options): Set optimization_default_node
31708 and optimization_current_node.
31709 * opts.c (decode_options): Don't set optimization_default_node
31710 and optimization_current_node.
31711
31712 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
31713
31714 * config/rtems.h: Abandon -qrtems_debug.
31715
31716 2010-03-28 Jan Hubicka <jh@suse.cz>
31717
31718 PR tree-optimization/43505
31719 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
31720 map should not be copied.
31721
31722 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31723
31724 PR middle-end/41674
31725 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
31726 cdtors, set DECL_PRESERVE_P.
31727 * ipa.c (cgraph_externally_visible_p): Return true if declaration
31728 should be preseved.
31729
31730 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
31731
31732 PR tree-optimization/43528
31733 * stor-layout.c (place_field): Check that constant fits into
31734 unsigned HWI when skipping calculation of MS bitfield layout.
31735
31736 2010-03-27 Jan Hubicka <jh@suse.cz>
31737
31738 PR middle-end/43391
31739 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
31740 notice_global_symbol work.
31741
31742 2010-03-27 Jakub Jelinek <jakub@redhat.com>
31743
31744 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
31745 instead of dwarf2out_decl.
31746 (struct var_loc_node): Remove section_label field.
31747 (dwarf2out_function_decl): New function.
31748 (dwarf2out_var_location): Don't set section_label field.
31749 (dwarf2out_begin_function): Don't empty decl_loc_table here.
31750
31751 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
31752
31753 PR tree-optimization/43544
31754 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31755 First argument for builtin vectorized function hook is now a
31756 tree to be able to distinguish between machine specific and
31757 standard builtins.
31758 * targhooks.c (default_builtin_vectorized_function): Ditto.
31759 * targhooks.h (default_builtin_vectorized_function): Ditto.
31760 * target.h (struct gcc_target): Ditto.
31761 * tree-vect-stmts.c (vectorizable_function): Ditto.
31762 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
31763 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
31764 Ditto.
31765
31766 2010-03-26 Joseph Myers <joseph@codesourcery.com>
31767
31768 PR c/43381
31769 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
31770 nested binding iff it is a FUNCTION_DECL.
31771 (store_parm_decls_newstyle): Pass nested=true to bind for
31772 FUNCTION_DECLs amongst parameters.
31773
31774 2010-03-26 Jakub Jelinek <jakub@redhat.com>
31775
31776 * var-tracking.c (vt_expand_loc_callback): Don't run
31777 cselib_expand_value_rtx_cb in dummy mode if
31778 cselib_dummy_expand_value_rtx_cb returned false.
31779
31780 * var-tracking.c (emit_note_insn_var_location): For one part
31781 notes with offset 0, don't add EXPR_LIST around the location.
31782 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
31783 add_location_or_const_value_attribute): Adjust for that change.
31784
31785 PR debug/43540
31786 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
31787 into first operand and location into second.
31788 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
31789 dw_cfi_oprnd_loc for DW_CFA_expression.
31790 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
31791 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
31792 assume first argument is regnum and second argument is location.
31793
31794 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
31795
31796 PR target/42113
31797 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
31798 of scratch register to DImode. Split to DImode comparison operator.
31799 Use SImode subreg of scratch register in the multiplication.
31800 (*cmp_sadd_sidi): Ditto.
31801 (*cmp_ssub_si): Ditto.
31802 (*cmp_ssub_sidi): Ditto.
31803
31804 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
31805
31806 PR target/43524
31807 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
31808 Remove invalid assert and wrong comment.
31809
31810 2010-03-26 Jakub Jelinek <jakub@redhat.com>
31811
31812 PR debug/43516
31813 * flags.h (final_insns_dump_p): New extern.
31814 * final.c (final_insns_dump_p): New variable.
31815 (rest_of_clean_state): Set it before -fdump-final-insns=
31816 dumping, clear afterwards.
31817 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
31818 MEM_ALIAS_SET on MEMs.
31819
31820 2010-03-26 David S. Miller <davem@davemloft.net>
31821
31822 * configure.ac: Fix sparc GOTDATA_OP bug check.
31823 * configure: Rebuild.
31824
31825 2010-03-26 Alan Modra <amodra@gmail.com>
31826
31827 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
31828
31829 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31830
31831 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
31832 TLS_SECTION_ASM_FLAG.
31833
31834 2010-03-25 Jakub Jelinek <jakub@redhat.com>
31835
31836 PR bootstrap/43511
31837 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
31838 Clear first_function_block_is_cold.
31839
31840 PR c/43385
31841 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
31842 argument if the argument is truth_value_p.
31843
31844 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31845
31846 * config/rs6000/constraints.md: Update copyright year for my changes.
31847
31848 PR target/43484
31849 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
31850 used in reg+reg addressing, swap registers.
31851
31852 2010-03-24 Jakub Jelinek <jakub@redhat.com>
31853
31854 PR debug/43293
31855 * target.h (struct gcc_target): Add code_end hook.
31856 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
31857 if not yet defined.
31858 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
31859 * toplev.c (compile_file): Call targetm.asm_out.code_end
31860 hook before unwind info/debug info output.
31861 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
31862 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
31863 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31864 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
31865 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31866 * config/i386/i386.c (ix86_file_end): Renamed to...
31867 (ix86_code_end): ... this. Make static. Don't call
31868 file_end_indicate_exec_stack. Emit unwind info using
31869 final_start_function/final_end_function.
31870 (darwin_x86_file_end): Remove.
31871 (TARGET_ASM_CODE_END): Define.
31872 * config/i386/i386.h (TARGET_ASM_FILE_END,
31873 NEED_INDICATE_EXEC_STACK): Don't define.
31874 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
31875 (TARGET_ASM_FILE_END): Define to darwin_file_end.
31876 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
31877 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
31878
31879 PR target/43498
31880 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
31881 at the beginning and final_end_function at the end.
31882 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
31883
31884 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31885
31886 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
31887 and Sun as TLS syntax.
31888 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
31889 * configure: Regenerate.
31890 * config.in: Regenerate.
31891 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
31892 (default_elf_asm_named_section): Use it.
31893 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
31894 (i386_output_dwarf_dtprel): Likewise.
31895 (output_addr_const_extra): Likewise.
31896 (output_pic_addr_const): Lowercase @GOTTPOFF.
31897 (output_addr_const_extra): Likewise.
31898 (output_pic_addr_const): Lowercase @GOTNTPOFF.
31899 (output_addr_const_extra): Likewise.
31900 (output_pic_addr_const): Lowercase @INDNTPOFF.
31901 (output_addr_const_extra): Likewise.
31902 (output_pic_addr_const): Lowercase @NTPOFF.
31903 (output_addr_const_extra): Likewise.
31904 (output_pic_addr_const): Lowercase @TPOFF.
31905 (output_addr_const_extra): Likewise.
31906 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
31907 (*tls_global_dynamic_64): Likewise.
31908 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
31909 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
31910
31911 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
31912 (ASM_OUTPUT_TLS_COMMON): Use it.
31913 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
31914
31915 PR target/38118
31916 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
31917 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
31918 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
31919 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
31920 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31921 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
31922
31923 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31924
31925 * config/i386/i386.c (override_options): Don't accept
31926 -mtls-dialect=sun any longer.
31927 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
31928 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
31929 (*tls_local_dynamic_base_32_sun): Likewise.
31930 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31931
31932 2010-03-24 Jakub Jelinek <jakub@redhat.com>
31933
31934 PR debug/43508
31935 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31936 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
31937
31938 PR debug/43479
31939 * ira.c (adjust_cleared_regs): New function.
31940 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
31941
31942 PR debug/19192
31943 PR debug/43479
31944 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
31945 from gimple_block.
31946 * expr.c (expand_expr_real): Restore previous
31947 curr_insn_source_location and curr_insn_block after
31948 expand_expr_real_1 call.
31949 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
31950 instead of expand_expr_real_1.
31951
31952 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
31953
31954 PR rtl-optimization/43413
31955 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
31956 hard regs too.
31957
31958 2010-03-22 James E. Wilson <wilson@codesourcery.com>
31959
31960 PR target/43348
31961 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
31962 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
31963
31964 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
31965
31966 * config/i386/i386.c (ix86_target_string): Add -mfma.
31967 Fix a typo in comment.
31968
31969 2010-03-22 Mike Stump <mikestump@comcast.net>
31970
31971 PR target/23071
31972 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
31973 Don't overly align based upon packed packed fields.
31974
31975 2010-03-22 Jason Merrill <jason@redhat.com>
31976
31977 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
31978 Use () rather than [], and move before the element type.
31979
31980 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31981
31982 * doc/configfiles.texi (Configuration Files): Removed
31983 fixinc/Makefile*, intl/Makefile.*.
31984 * doc/makefile.texi: Fixed markup. Abstract from version
31985 control system used.
31986 (Makefile): Removed obsolete java/parse.y example.
31987 * doc/sourcebuild.texi: Likewise.
31988 (Top Level): Added config, gnattools, libdecnumber, libgcc,
31989 libgomp, libssp. Removed fastjar.
31990 (Miscellaneous Docs): Clarify location.
31991 Added COPYING3, COPYING3.LIB.
31992 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
31993
31994 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31995
31996 PR target/38085
31997 * config/i386/i386.c (x86_function_profiler)
31998 [!NO_PROFILE_COUNTERS]: Fix typo.
31999 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
32000 instead of callq.
32001
32002 2010-03-22 Janis Johnson <janis187@us.ibm.com>
32003 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32004
32005 * doc/sourcebuild.texi (Test Directives): Split into six
32006 subsections, with most of the current text in new subsections
32007 Directives, Selectors, and Final Actions.
32008 (Directives): Split list of test directives into multiple
32009 subsubsections.
32010 (Selectors): Describe use and syntax of selectors.
32011 (Effective-Target Keywords): Describe all existing keywords.
32012 (Add Options): Describe features for dg-add-options.
32013 (Require Support): Describe variants of dg-require-support.
32014 (Final Actions): Describe commands to use in dg-final.
32015
32016 2010-03-22 Michael Matz <matz@suse.de>
32017
32018 PR middle-end/43475
32019 * recog.c (validate_replace_rtx_group): Replace also in
32020 REG_EQUAL and REG_EQUIV notes.
32021
32022 2010-03-22 Richard Guenther <rguenther@suse.de>
32023
32024 PR tree-optimization/43390
32025 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
32026 sure vector extracts are type correct.
32027
32028 2010-03-22 Richard Guenther <rguenther@suse.de>
32029
32030 PR middle-end/40106
32031 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
32032 x * sqrt (x) even when optimizing for size if the target
32033 has native support for sqrt.
32034
32035 2010-03-22 Jakub Jelinek <jakub@redhat.com>
32036
32037 * varasm.c (make_decl_rtl_for_debug): Also clear
32038 flag_mudflap for the duration of make_decl_rtl call.
32039
32040 PR debug/43443
32041 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
32042 locs from preserved VALUEs.
32043
32044 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32045
32046 PR middle-end/42718
32047 * pa.md (movmemsi): Set align to one if zero.
32048 (movmemdi): Likewise.
32049
32050 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
32051
32052 PR target/42321
32053 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
32054 with their corresponding prologue pushes.
32055
32056 2010-03-20 Andrew Pinski <pinskia@gmail.com>
32057
32058 PR target/43156
32059 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
32060 at the begining or end.
32061 (spu_expand_epilogue): Likewise.
32062
32063 2010-03-20 Richard Guenther <rguenther@suse.de>
32064
32065 PR rtl-optimization/43438
32066 * combine.c (make_extraction): Properly zero-/sign-extend an
32067 extraction of the low part of a CONST_INT. Also handle
32068 CONST_DOUBLE.
32069
32070 2010-03-19 Mike Stump <mikestump@comcast.net>
32071
32072 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
32073 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
32074 (override_options): Use SUBTARGET32_DEFAULT_CPU.
32075
32076 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
32077
32078 PR c/43211
32079 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
32080 an error.
32081
32082 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
32083
32084 PR rtl-optimization/42258
32085 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
32086 use that may match DEF.
32087
32088 PR target/40697
32089 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
32090 the cost of loading the constant rather than assuming
32091 COSTS_N_INSNS (1).
32092 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
32093 outer code is AND, do the same tests as the andsi3 expander and
32094 return COSTS_N_INSNS (1) if and is cheap.
32095
32096 * optabs.c (avoid_expensive_constant): Fix formatting.
32097
32098 2010-03-19 Michael Matz <matz@suse.de>
32099
32100 PR c++/43116
32101 * attribs.c (decl_attributes): When rebuilding a function pointer
32102 type use the same qualifiers as the original pointer type.
32103
32104 2010-03-19 Martin Jambor <mjambor@suse.cz>
32105
32106 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
32107 and is_gimple_ip_invariant_address.
32108
32109 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32110
32111 Revert
32112 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32113
32114 * config/arm/arm.c (arm_override_options): Turn off
32115 flag_dwarf2_cfi_asm for AAPCS variants.
32116
32117 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32118
32119 PR target/43399
32120 * config/arm/arm.c (emit_multi_reg_push): Update comments.
32121 Use PRE_MODIFY instead of PRE_DEC.
32122 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
32123 (vfp_emit_fstmd): Likewise.
32124
32125 2010-03-19 Michael Matz <matz@suse.de>
32126
32127 PR target/43305
32128 * builtins.c (expand_builtin_interclass_mathfn,
32129 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
32130 if that fails.
32131
32132 2010-03-19 Richard Guenther <rguenther@suse.de>
32133
32134 PR tree-optimization/43415
32135 * tree-ssa-pre.c (phi_translate): Split out worker to ...
32136 (phi_translate_1): ... this.
32137 (phi_translate): Move all caching here. Cache all NARY
32138 and REFERENCE translations.
32139
32140 2010-03-19 David S. Miller <davem@davemloft.net>
32141
32142 With help from Eric Botcazou.
32143 * config/sparc/sparc.c: Include dwarf2out.h.
32144 (emit_pic_helper): Delete.
32145 (pic_helper_symbol_name): Delete.
32146 (pic_helper_emitted_p): Delete.
32147 (pic_helper_needed): New.
32148 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
32149 (get_pc_thunk_name): New.
32150 (load_pic_register): Remove 'delay_pic_helper' arg. Use
32151 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
32152 Set pic_helper_needed to true. Don't call emit_pic_helper.
32153 (sparc_expand_prologue): Update load_pic_register call.
32154 (sparc_output_mi_thunk): Likewise.
32155 (sparc_file_end): Emit a hidden comdat symbol for the PIC
32156 thunk if possible. Output CFI information as needed.
32157
32158 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
32159 Jack Howarth <howarth@bromo.med.uc.edu>
32160
32161 PR target/36399
32162 * config/i386/i386.h: Fix ABI on darwin x86-32.
32163
32164 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
32165
32166 * tree.h: Declare make_decl_rtl_for_debug.
32167 * varasm.c (make_decl_rtl_for_debug): New.
32168 * dwarf2out.c (rtl_for_decl_location): Call it.
32169 * cfgexpand.c (expand_debug_expr): Call it.
32170
32171 2010-03-18 Jakub Jelinek <jakub@redhat.com>
32172
32173 PR bootstrap/43399
32174 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
32175 mem_mode.
32176
32177 PR bootstrap/43403
32178 * var-tracking.c (vt_init_cfa_base): Do nothing if
32179 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
32180
32181 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
32182
32183 PR debug/42873
32184 * var-tracking.c (canonicalize_vars_star): New.
32185 (dataflow_post_merge_adjust): Use it.
32186
32187 2010-03-18 Jakub Jelinek <jakub@redhat.com>
32188
32189 PR debug/43058
32190 * var-tracking.c (non_suitable_const): New function.
32191 (add_uses): For DEBUG_INSNs with constants, don't record any
32192 value, instead just the constant value itself.
32193 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
32194 is not VAR_LOC_UNKNOWN_P, set var to the constant.
32195 (emit_notes_in_bb): Likewise.
32196 (emit_note_insn_var_location): For onepart variables if
32197 cur_loc is a VOIDmode constant, use DECL_MODE.
32198
32199 2010-03-18 Martin Jambor <mjambor@suse.cz>
32200
32201 PR middle-end/42450
32202 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
32203 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
32204 all non-clones. Moved call redirection...
32205 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
32206 (cgraph_materialize_all_clones): Dispose of all
32207 combined_args_to_skip bitmaps.
32208 (verify_cgraph_node): Do not check for edges pointing to wrong
32209 nodes in inline clones.
32210 * tree-inline.c (copy_bb): Call
32211 cgraph_redirect_edge_call_stmt_to_callee.
32212 * ipa.c (cgraph_remove_unreachable_nodes): Call
32213 cgraph_node_remove_callees even when there are used clones.
32214
32215 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
32216
32217 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
32218
32219 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
32220
32221 PR target/43383
32222 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
32223 for 32bit.
32224
32225 2010-03-18 Michael Matz <matz@suse.de>
32226
32227 PR middle-end/43419
32228 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
32229 into sqrt(x) if we need to preserve signed zeros.
32230
32231 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
32232 Eric Botcazou <ebotcazou@adacore.com>
32233
32234 PR rtl-optimization/43360
32235 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
32236 note if we don't know its invariant status.
32237
32238 2010-03-18 Michael Matz <matz@suse.de>
32239
32240 PR tree-optimization/43402
32241 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
32242 PHI chains of ssa names registered for update.
32243
32244 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
32245
32246 PR target/42427
32247 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
32248 non-offsettable and pre_modify update addressing.
32249 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
32250 and "2" alternatives "#".
32251 (*movdd_softfloat32): Make all alternatives "#";
32252 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
32253 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
32254 (*movdf_softfloat32): Make all alternatives "#";
32255 (movdi): Use the new DIFD mode iterator to create a common splitter
32256 for movdi, movdf and movdd patterns.
32257
32258 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
32259
32260 * common.opt (dumpdir): Remove redundant tab.
32261
32262 2010-03-17 Martin Jambor <mjambor@suse.cz>
32263
32264 PR tree-optimization/43347
32265 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
32266 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
32267
32268 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
32269
32270 PR rtl-optimization/42216
32271 * regrename.c (create_new_chain): New function, broken out from...
32272 (scan_rtx_reg): ... here. Call it. Handle the case where we are
32273 appending a use to an empty chain.
32274 (build_def_use): Remove previous changes that convert OP_INOUT to
32275 OP_OUT operands; instead detect the case where an OP_INOUT operand
32276 uses a previously untracked register and create an empty chain for it.
32277
32278 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32279
32280 * doc/extend.texi (Function Attributes): Rewrite unfinished
32281 sentence in ms_abi documentation.
32282
32283 2010-03-17 Alan Modra <amodra@gmail.com>
32284
32285 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
32286 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
32287 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
32288 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
32289
32290 2010-03-16 Richard Henderson <rth@redhat.com>
32291
32292 PR middle-end/43365
32293 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
32294 (lower_try_finally): Save and restore eh_seq around the expansion
32295 of the try-finally.
32296
32297 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
32298
32299 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
32300 statements before splitting block.
32301
32302 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32303
32304 * doc/sourcebuild.texi (Testsuites): Fix markup.
32305 Use pathnames relative to gcc/testsuite.
32306 (Test Directives): Move description of how timeout is determined.
32307 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
32308 (C Tests): Correct gcc.misc-tests directory.
32309 Framework tests now live in gcc.test-framework.
32310
32311 2010-03-16 Richard Guenther <rguenther@suse.de>
32312
32313 PR middle-end/43379
32314 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
32315 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
32316
32317 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
32318 Alexandre Oliva <aoliva@redhat.com>
32319
32320 PR tree-optimization/42917
32321 * lambda-code.c (remove_iv): Skip debug statements.
32322 (lambda_loopnest_to_gcc_loopnest): Likewise.
32323 (not_interesting_stmt): Debug statements are not interesting.
32324
32325 2010-03-16 Jakub Jelinek <jakub@redhat.com>
32326
32327 PR debug/43051
32328 PR debug/43092
32329 * cselib.c (cselib_preserve_constants,
32330 cfa_base_preserved_val): New static variables.
32331 (preserve_only_constants): New function.
32332 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
32333 clear its REG_VALUES. If cselib_preserve_constants, don't
32334 empty the whole hash table, but preserve there VALUEs with constants,
32335 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
32336 (cselib_preserve_cfa_base_value): New function.
32337 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
32338 (cselib_init): Change argument to int bitfield. Set
32339 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
32340 is in it.
32341 (cselib_finish): Clear cselib_preserve_constants and
32342 cfa_base_preserved_val.
32343 * cselib.h (enum cselib_record_what): New enum.
32344 (cselib_init): Change argument to int.
32345 (cselib_preserve_cfa_base_value): New prototype.
32346 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
32347 * dse.c (dse_step1): Likewise.
32348 * cfgcleanup.c (thread_jump): Likewise.
32349 * sched-deps.c (sched_analyze): Likewise.
32350 * gcse.c (local_cprop_pass): Likewise.
32351 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
32352 If FN is non-NULL, call the callback always and whenever it returns
32353 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
32354 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
32355 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
32356 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
32357 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
32358 * var-tracking.c: Include recog.h.
32359 (bb_stack_adjust_offset): Remove.
32360 (vt_stack_adjustments): Don't call it, instead just gather the
32361 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
32362 (adjust_stack_reference): Remove.
32363 (compute_cfa_pointer): New function.
32364 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
32365 (struct adjust_mem_data): New type.
32366 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
32367 functions.
32368 (get_address_mode): New function.
32369 (replace_expr_with_values): Use it.
32370 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
32371 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
32372 (adjust_sets): Remove.
32373 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
32374 Use get_address_mode.
32375 (get_adjusted_src): Remove.
32376 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
32377 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
32378 (add_with_sets): Don't call adjust_sets.
32379 (fp_setter, vt_init_cfa_base): New functions.
32380 (vt_initialize): Change return type to bool. Move most of pool etc.
32381 initialization to the beginning of the function from end. Pass
32382 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
32383 If !frame_pointer_needed, call vt_stack_adjustment before mos
32384 vector is filled, call vt_init_cfa_base if argp/framep has been
32385 eliminated to sp. If frame_pointer_needed and argp/framep has
32386 been eliminated to hard frame pointer, set
32387 hard_frame_pointer_adjustment and call vt_init_cfa_base after
32388 encountering fp setter in the prologue. For MO_ADJUST, call
32389 log_op_type before pusing the op into mos vector, not afterwards.
32390 Call adjust_insn before cselib_process_insn/add_with_sets,
32391 call cancel_changes (0) afterwards.
32392 (variable_tracking_main_1): Adjust for vt_initialize calling
32393 vt_stack_adjustments and returning whether it succeeded or not.
32394
32395 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
32396
32397 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
32398 debug statements.
32399
32400 2010-03-15 Jakub Jelinek <jakub@redhat.com>
32401
32402 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
32403 has been set.
32404 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
32405 drap_reg has not been set.
32406
32407 2010-03-15 Michael Matz <matz@suse.de>
32408
32409 PR middle-end/43300
32410 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
32411 use it to expand block copies.
32412 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
32413 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
32414 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
32415
32416 2010-03-15 Richard Guenther <rguenther@suse.de>
32417
32418 PR tree-optimization/43367
32419 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
32420 elimination check.
32421
32422 2010-03-15 Richard Guenther <rguenther@suse.de>
32423
32424 PR tree-optimization/43317
32425 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
32426
32427 2010-03-15 Martin Jambor <mjambor@suse.cz>
32428
32429 PR tree-optimization/43141
32430 * tree-sra.c (create_abstract_origin): New function.
32431 (modify_function): Call create_abstract_origin.
32432
32433 2010-03-15 Chris Demetriou <cgd@google.com>
32434
32435 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
32436 wasn't copied.
32437
32438 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32439
32440 PR middle-end/43354
32441 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
32442 call insert_out_of_ssa_copy for default definitions.
32443
32444 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32445
32446 * graphite-clast-to-gimple.c (my_long_long): Defined.
32447 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
32448 * graphite-sese-to-poly.c (my_long_long): Defined.
32449 (scop_ivs_can_be_represented): Use it.
32450
32451 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32452
32453 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
32454 graphite-max-bbs-per-function, and loop-block-tile-size.
32455 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
32456 with "maximum".
32457 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
32458
32459 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32460
32461 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
32462 forward declaration.
32463 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
32464 (add_upper_bounds_from_estimated_nit): New.
32465 (build_loop_iteration_domains): Use it.
32466
32467 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32468
32469 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
32470
32471 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32472
32473 PR middle-end/43306
32474 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
32475 should be an INTEGER_CST. Also handle CASE_CONVERT.
32476
32477 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32478
32479 * graphite.c (graphite_initialize): To bound the number of bbs per
32480 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
32481 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
32482 * doc/invoke.texi: Document it.
32483
32484 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32485
32486 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
32487 * graphite-sese-to-poly.h (build_poly_scop): Same.
32488
32489 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
32490
32491 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
32492 the number of parameters in the scop. Use as an upper bound
32493 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
32494 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
32495 * doc/invoke.texi: Document it.
32496
32497 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
32498
32499 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
32500 * doc/c-tree.texi: Remove.
32501 * doc/generic.texi: Merge c-tree.texi here.
32502 * doc/gccint.texi (Trees): Remove menu entry.
32503 (c-tree.texi): Remove @include.
32504 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
32505 * doc/languages.texi (Reading RTL): Ditto.
32506
32507 2010-03-12 Steve Ellcey <sje@cup.hp.com>
32508
32509 PR target/42869
32510 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
32511
32512 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
32513
32514 PR middle-end/42431
32515 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
32516 code added to work around reload clobbering CONST insns.
32517
32518 2010-03-12 Jakub Jelinek <jakub@redhat.com>
32519
32520 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
32521 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
32522 (cselib_preserve_only_values): Remove retain argument, don't
32523 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
32524 * cselib.h (cselib_preserve_only_values): Remove retain argument.
32525 * var-tracking.c (micro_operation): Move insn field before union.
32526 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
32527 (struct variable_tracking_info_def): Remove n_mos field, change
32528 mos into a vector of micro_operations.
32529 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
32530 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
32531 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
32532 changing into a vector.
32533 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
32534 come before all other uops generated by add_stores.
32535 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
32536 argument removal.
32537 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
32538 a vector. Run just one pass over the bbs instead of separate counting
32539 and computation phase.
32540 (vt_finalize): Free VTI (bb)->mos vector instead of array.
32541
32542 PR debug/43329
32543 * tree-inline.c (remap_decls): Put old_var rather than origin_var
32544 into *nonlocalized_list vector.
32545 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
32546 even if origin is non-NULL.
32547 (gen_variable_die): Likewise.
32548 (process_scope_var): Don't change origin.
32549 (gen_decl_die): Likewise.
32550 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
32551 before adding new edges instead of after it, fix moving over
32552 debug stmts.
32553
32554 2010-03-11 David S. Miller <davem@davemloft.net>
32555
32556 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
32557 of four.
32558 * configure: Rebuild.
32559
32560 2010-03-11 Martin Jambor <mjambor@suse.cz>
32561
32562 PR tree-optimization/43257
32563 * tree.c (assign_assembler_name_if_neeeded): New function.
32564 (free_lang_data_in_cgraph): Assembler name assignment moved to the
32565 above new function.
32566 * tree.h (assign_assembler_name_if_neeeded): Declare.
32567 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
32568 the function if needed.
32569
32570 2010-03-11 Chris Demetriou <cgd@google.com>
32571
32572 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
32573 include/stdint-gcc.h, and include/stdint.h world-readable.
32574
32575 2010-03-11 Richard Guenther <rguenther@suse.de>
32576
32577 PR tree-optimization/43255
32578 * tree-vrp.c (process_assert_insertions_for): Do not insert
32579 asserts for trivial conditions.
32580
32581 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32582
32583 PR tree-optimization/43280
32584 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
32585 generation. Move calculation of size out of the if branch.
32586 (find_bswap): Modify compare number generation.
32587
32588 2010-03-11 Richard Guenther <rguenther@suse.de>
32589
32590 PR lto/43200
32591 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
32592 (input_gimple_stmt): Fixup handled component types during
32593 operand read. Also fix up decls in ADDR_EXPRs.
32594
32595 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
32596
32597 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
32598 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
32599
32600 2010-03-10 Jan Hubicka <jh@suse.cz>
32601
32602 PR c/43288
32603 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
32604 * varasm.c (get_variable_section): Don't do that here...
32605 (make_decl_rtl): ... and here.
32606 (do_assemble_alias): Produce decl RTL.
32607 (assemble_alias): Likewise.
32608
32609 2010-03-10 Jakub Jelinek <jakub@redhat.com>
32610
32611 PR debug/43290
32612 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
32613 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
32614 of fde->vdrap_reg.
32615 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
32616 (based_loc_descr): Only express drap or vdrap regno based expressions
32617 using DW_OP_fbreg when not optimizing.
32618 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
32619 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
32620 REG_CFA_SET_VDRAP note.
32621
32622 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
32623
32624 PR tree-optimization/43236
32625 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
32626 error in calculation of base address in reverse iteration case.
32627 (generate_builtin): Take number of latch executions if the statement
32628 is in the latch.
32629
32630 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
32631
32632 PR middle-end/42859
32633 * tree-eh.c: Include pointer-set.h.
32634 (lower_eh_dispatch): Filter out duplicate case labels and
32635 remove the unneeded edge when the label is unused. Return
32636 true when some edges are removed.
32637 (execute_lower_eh_dispatch): When any lowering resulted in
32638 removing an edge, also delete unreachable blocks.
32639
32640 2010-03-10 Jakub Jelinek <jakub@redhat.com>
32641
32642 PR bootstrap/43287
32643 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32644 UNSPEC_MACHOPIC_OFFSET.
32645
32646 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
32647
32648 PR target/43294
32649 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
32650 (m68k_delegitimize_address): New function.
32651
32652 2010-03-09 Jakub Jelinek <jakub@redhat.com>
32653
32654 PR debug/43299
32655 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
32656
32657 PR debug/43299
32658 * var-tracking.c (adjust_sets): New function.
32659 (count_with_sets, add_with_sets): Use it.
32660 (get_adjusted_src): New inline function.
32661 (add_stores): Use it.
32662
32663 PR debug/43304
32664 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
32665 call cselib_dummy_expand_value_rtx_cb instead of
32666 cselib_expand_value_rtx_cb.
32667
32668 PR debug/43293
32669 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
32670 * config/i386/i386.c: Include debug.h and dwarf2out.h.
32671 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
32672 and .cfi_endproc around the pic thunks.
32673 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
32674 all queued unwind info register saves are saved before the call.
32675 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
32676 considered as sp-=4 for unwind info and the pop as sp+=4 which
32677 also clobbers dest, but doesn't actually restore it.
32678
32679 PR debug/43290
32680 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
32681 RTX_FRAME_RELATED_P.
32682
32683 2010-03-09 Jie Zhang <jie@codesourcery.com>
32684
32685 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
32686 whitespaces in output template.
32687
32688 2010-03-09 Jie Zhang <jie@codesourcery.com>
32689
32690 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
32691 out array boundary.
32692
32693 2010-03-08 Jakub Jelinek <jakub@redhat.com>
32694
32695 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
32696 builtins.exp in a separate job.
32697
32698 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32699
32700 * graphite-sese-to-poly.c (add_param_constraints): Use
32701 lower_bound_in_type and upper_bound_in_type.
32702
32703 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32704
32705 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
32706 instead of unsigned_type_node.
32707
32708 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32709 Reza Yazdani <reza.yazdani@amd.com>
32710
32711 PR middle-end/43065
32712 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
32713 on pointer type parameters.
32714
32715 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
32716
32717 PR middle-end/42644
32718 PR middle-end/42130
32719 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
32720 handle conversions from pointer to integers.
32721 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
32722 induction variable, to be able to work with code generated by CLooG.
32723 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
32724 (build_poly_scop): Bail out if we cannot codegen a loop.
32725
32726 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
32727
32728 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
32729 code generation with gloog_error.
32730
32731 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32732
32733 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
32734 Call fold_convert on all the returned values.
32735 (expand_scalar_variables_expr): Pass to
32736 expand_scalar_variables_ssa_name the type of the resulting expression.
32737
32738 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32739
32740 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
32741 ppl_min_for_le_pointset.
32742 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
32743 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
32744
32745 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32746
32747 * graphite-dependences.c (map_into_dep_poly): Removed.
32748 (dependence_polyhedron_1): Use combine_context_id_scat.
32749
32750 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32751
32752 * graphite-poly.h (struct poly_scattering): Add layout documentation.
32753 (struct poly_bb): Same.
32754 (combine_context_id_scat): New.
32755
32756 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32757
32758 PR middle-end/42326
32759 * sese.c (name_defined_in_loop_p): Return false for default
32760 definitions.
32761
32762 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32763
32764 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
32765 and clean up the logic.
32766
32767 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
32768
32769 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
32770 early return.
32771
32772 2010-03-08 Jakub Jelinek <jakub@redhat.com>
32773
32774 * var-tracking.c (remove_cselib_value_chains): Define only for
32775 ENABLE_CHECKING.
32776 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
32777 delete_slot_part, emit_notes_for_differences_1): Don't call
32778 remove_cselib_value_chains here.
32779 (set_slot_part, emit_notes_for_differences_2): Don't call
32780 add_cselib_value_chains here.
32781 (preserved_values): New vector.
32782 (preserve_value): New function.
32783 (add_uses, add_stores, vt_add_function_parameters): Use it
32784 instead of cselib_preserve_value.
32785 (changed_values_stack): New vector.
32786 (check_changed_vars_0): New function.
32787 (check_changed_vars_1, check_changed_vars_2): Use it.
32788 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
32789 changed_values_stack VALUEs.
32790 (vt_emit_notes): For all preserved_values call
32791 add_cselib_value_chains. If ENABLE_CHECKING call
32792 remove_cselib_value_chains before verifying value_chains is empty.
32793 Initialize and free changed_values_stack.
32794 (vt_initialize): Initialize preserved_values.
32795 (vt_finalize): Free preserved_values.
32796
32797 2010-03-08 Richard Guenther <rguenther@suse.de>
32798
32799 PR tree-optimization/43269
32800 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
32801 region detection.
32802
32803 2010-03-08 Martin Jambor <mjambor@suse.cz>
32804
32805 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
32806 (ipa_is_param_called): Removed.
32807 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
32808 (ipa_print_node_params): Do not print the called flag.
32809 (ipa_write_node_info): Do not stream the called flag.
32810 (ipa_read_node_info): Likewise.
32811
32812 2010-03-07 Jakub Jelinek <jakub@redhat.com>
32813
32814 PR debug/43176
32815 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
32816 * cselib.c (struct expand_value_data): Add dummy field.
32817 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
32818 dummy to false.
32819 (cselib_dummy_expand_value_rtx_cb): New function.
32820 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
32821 any rtl.
32822 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
32823 * var-tracking.c: Include pointer-set.h.
32824 (variable): Change n_var_parts to char from int. Add
32825 cur_loc_changed and in_changed_variables fields.
32826 (variable_canonicalize): Remove.
32827 (shared_var_p): New inline function.
32828 (unshare_variable): Maintain cur_loc_changed and
32829 in_changed_variables fields. If var was in changed_variables,
32830 replace it there with new_var. Just copy cur_loc instead of
32831 resetting it to something else.
32832 (variable_union): Don't recompute cur_loc. Use shared_var_p.
32833 (dataflow_set_union): Don't call variable_canonicalize.
32834 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
32835 of their DEBUG_EXPR_TREE_DECLs.
32836 (canonicalize_loc_order_check): Verify that cur_loc is NULL
32837 and in_changed_variables and cur_loc_changed is false.
32838 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
32839 and cur_loc_changed. Don't update cur_loc here.
32840 (variable_merge_over_src): Don't call variable_canonicalize.
32841 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
32842 removing loc that is equal to cur_loc, clear cur_loc,
32843 set cur_loc_changed and ensure variable_was_changed is called.
32844 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
32845 compare pointers in cur_loc check, if it is equal to loc,
32846 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
32847 (variable_different_p): Remove compare_current_location argument,
32848 don't compare cur_loc.
32849 (dataflow_set_different_1): Adjust variable_different_p caller.
32850 (variable_was_changed): If dv had some var in changed_variables
32851 already, reset in_changed_variables flag for it and propagate
32852 cur_loc_changed over to the new variable. On empty var
32853 always set cur_loc_changed. Set in_changed_variables on whatever
32854 var is added to changed_variables.
32855 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
32856 Use shared_var_p. When removing loc that is equal to cur_loc,
32857 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
32858 end, don't set it to something else, just call variable_was_changed.
32859 (delete_slot_part): Use shared_var_p. When cur_loc equals to
32860 loc being removed, clear cur_loc and set cur_loc_changed.
32861 Set cur_loc_changed if all locations have been removed.
32862 (struct expand_loc_callback_data): New type.
32863 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
32864 allocated. Always create SUBREGs if simplify_subreg failed.
32865 Prefer to use cur_loc, when that fails and still in
32866 changed_variables (and seen first time) recompute it. Set
32867 cur_loc_changed of variables which had to change cur_loc and
32868 compute elcd->cur_loc_changed if any of the subexpressions used
32869 had to change cur_loc.
32870 (vt_expand_loc): Adjust to pass arguments in
32871 expand_loc_callback_data structure.
32872 (vt_expand_loc_dummy): New function.
32873 (emitted_notes): New variable.
32874 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
32875 that weren't used for any other decl in current
32876 emit_notes_for_changes call call vt_expand_loc_dummy to update
32877 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
32878 first loc_chain location if NULL before. Always use just
32879 cur_loc instead of first loc_chain location. When cur_loc_changed
32880 is false, when not --enable-checking=rtl just don't emit any note.
32881 When rtl checking, compute the note and assert it is the same
32882 as previous note. Clear cur_loc_changed and in_changed_variables
32883 at the end before removing from changed_variables.
32884 (check_changed_vars_3): New function.
32885 (emit_notes_for_changes): Traverse changed_vars to call
32886 check_changed_vars_3 on each changed var.
32887 (emit_notes_for_differences_1): Clear cur_loc_changed and
32888 in_changed_variables. Recompute cur_loc of new_var.
32889 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
32890 (vt_emit_notes): Initialize and destroy emitted_notes.
32891
32892 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
32893
32894 PR rtl-optimization/42220
32895 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
32896 Use verify_reg_tracked to determine if we should use OP_OUT rather
32897 than OP_INOUT.
32898 (build_def_use): If we see an in-out operand for a register that we
32899 know nothing about, treat is an output if possible, fail the block if
32900 not.
32901
32902 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
32903
32904 PR debug/42897
32905 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
32906 permanently.
32907
32908 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
32909
32910 PR debug/42897
32911 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
32912 uses of relevant DEFs that are dead outside the loop too.
32913
32914 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
32915
32916 * var-tracking.c (dataflow_set_merge): Swap src and src2.
32917 Reverted:
32918 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32919 PR debug/41371
32920 * var-tracking.c (values_to_unmark): New variable.
32921 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32922 values_to_unmark vector. Moved body to...
32923 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32924 instead queue it into values_to_unmark vector.
32925 (vt_find_locations): Free values_to_unmark vector.
32926
32927 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
32928
32929 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
32930 (site.exp): Export them when plugins are enabled.
32931
32932 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
32933
32934 PR middle-end/42326
32935 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
32936 that contain scevs.
32937 (chrec_fold_multiply): Same.
32938
32939 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
32940
32941 PR c/43248
32942 * c-decl.c (build_compound_literal): Return early if init is
32943 an error_mark_node.
32944
32945 2010-03-04 Martin Jambor <mjambor@suse.cz>
32946
32947 PR tree-optimization/43164
32948 PR tree-optimization/43191
32949 * tree-sra.c (type_consists_of_records_p): Reject records with
32950 zero-size bit-fields at the end.
32951
32952 2010-03-04 Mike Stump <mikestump@comcast.net>
32953
32954 * Makefile.in (TAGS): Remove *.y.
32955
32956 2010-03-04 Richard Guenther <rguenther@suse.de>
32957
32958 PR tree-optimization/40761
32959 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
32960 in reverse order.
32961 (my_rev_post_order_compute): New function.
32962 (init_pre): Call it.
32963
32964 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
32965
32966 PR middle-end/43209
32967 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
32968 decrease the cost of an IV candidate when the cost is infinite.
32969
32970 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32971
32972 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
32973 Use '3DNow!' for the extension of that name, ensure normal space
32974 after the string.
32975 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
32976
32977 2010-03-03 Jeff Law <law@redhat.com>
32978
32979 * PR middle-end/32693
32980 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
32981 than gen_rtx_SUBREG.
32982 (extract_bit_field_1): Likewise.
32983
32984 2010-03-03 Janis Johnson <janis187@us.ibm.com>
32985
32986 * doc/sourcebuild.texi (Test directives): Document that arguments
32987 include-opts and exclude-opts are now optional for dg-skip-if,
32988 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
32989
32990 2010-03-03 Jason Merrill <jason@redhat.com>
32991
32992 PR c++/12909
32993 * cgraph.h (varpool_node): Add extra_name field.
32994 * varpool.c (varpool_extra_name_alias): New.
32995 (varpool_assemble_decl): Emit extra name aliases.
32996 (varpool_mark_needed_node): Look past an extra name alias.
32997 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
32998 * lto-streamer-in.c (lto_input_tree): Read it.
32999 * lto-streamer-out.c (output_unreferenced_globals): Write it.
33000
33001 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
33002
33003 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
33004 (sparc*-*-solaris2*): ...this.
33005
33006 2010-03-03 Jakub Jelinek <jakub@redhat.com>
33007
33008 PR debug/43229
33009 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
33010 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
33011 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
33012 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
33013
33014 PR debug/43237
33015 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
33016 fallthrough to default handling, just with want_address 0 instead of 2.
33017 For single element lists, add_AT_loc directly, otherwise create an
33018 artificial variable DIE and stick location list to it.
33019
33020 PR debug/43177
33021 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
33022 (VAL_EXPR_HAS_REVERSE): Define.
33023 (reverse_op): New function.
33024 (add_stores): For reversible operations add an extra MO_VAL_USE.
33025
33026 2010-03-02 Jason Merrill <jason@redhat.com>
33027
33028 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
33029
33030 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
33031
33032 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
33033 (sparc64-*-linux*): Likewise.
33034 (sparc64-*-solaris2*): Include assembler files before linker ones.
33035 (sparc-*-solaris2*): Simplify and reorder to match previous case.
33036 * config/sparc/gas.h: Delete.
33037 * config/sparc/sol2-64.h: Add copyright notice.
33038 * config/sparc/sol2-gas-bi.h: Likewise.
33039 * config/sparc/sol2-gld.h: Likewise.
33040 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
33041 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
33042 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
33043 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
33044 (sparc_elf_asm_named_section): Rename into...
33045 (sparc_solaris_elf_asm_named_section): ...this. Always define.
33046
33047 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
33048
33049 * config/alpha/alpha.c (override_options): Fix -mtune error message.
33050
33051 2010-03-02 Jeff Law <law@redhat.com>
33052
33053 PR middle-end/42431
33054 * reload1.c (rtx_p, substitute_stack): Declare.
33055 (substitute): Record addresses of changed rtxs.
33056 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
33057 Restore the original rtx when complete.
33058 (reload): Free subsitute_stack when complete.
33059
33060 2010-03-02 Janis Johnson <janis187@us.ibm.com>
33061
33062 * doc/gccint.texi (menu): Add Testsuites as a chapter.
33063 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
33064 new chapter.
33065 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
33066 LTO Testing, gcov Testing, profopt Testing, compat Testing,
33067 Torture Tests): Change from subsection to section.
33068
33069 2010-03-02 Jakub Jelinek <jakub@redhat.com>
33070 Steven Bosscher <steven@gcc.gnu.org>
33071
33072 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
33073 instead of bb.
33074
33075 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
33076
33077 PR middle-end/42640
33078 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
33079 the assignment from the new induction variable to the assignment
33080 of the value from the original loop PHI function.
33081
33082 2010-03-01 Janis Johnson <janis187@us.ibm.com>
33083 Daniel Jacobowitz <dan@codesourcery.com>
33084
33085 * doc/sourcebuild.texi (Test directives): Clarify options to
33086 dg-skip-if.
33087
33088 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33089
33090 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
33091 Disable cfi directives unless GCC and gas agree on using read-only
33092 .eh_frame sections for 64-bit.
33093 * configure: Regenerate.
33094
33095 2010-03-01 Richard Guenther <rguenther@suse.de>
33096
33097 PR tree-optimization/43220
33098 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
33099 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
33100
33101 2010-03-01 Richard Guenther <rguenther@suse.de>
33102 Martin Jambor <mjambor@suse.cz>
33103
33104 PR middle-end/41250
33105 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
33106 gimplified parameters.
33107
33108 2010-03-01 Christian Bruel <christian.bruel@st.com>
33109
33110 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
33111
33112 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
33113
33114 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
33115
33116 2010-03-01 Richard Guenther <rguenther@suse.de>
33117
33118 PR middle-end/43213
33119 * expr.c (expand_assignment): Use the alias-oracle to tell
33120 if the rhs aliases the result decl.
33121
33122 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33123
33124 PR pch/14940
33125 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
33126 to sol_gt_pch_get_address.
33127 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
33128 64-bit, SPARC and x86.
33129 (sol_gt_pch_get_address): New function.
33130
33131 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
33132
33133 * toplev.h (inform_n, error_n): Declare.
33134 * diagnostic.c (inform_n, error_n): New function.
33135
33136 2010-03-01 Jakub Jelinek <jakub@redhat.com>
33137
33138 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
33139 has no rtl yet when processing local_decls, queue it and recheck
33140 if deferred stack allocation hasn't assigned it rtl.
33141
33142 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
33143
33144 * config/sh/sh.c (unspec_bbr_uid): New.
33145 (gen_block_redirect): Use it instead of INSN_UID.
33146 (gen_far_branch): Likewise.
33147
33148 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
33149
33150 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
33151 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
33152
33153 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33154
33155 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
33156 (Warning Options): -Wno-conversion-null is valid for
33157 Objective-C++ as well.
33158 * doc/tm.texi (Named Address Spaces): Likewise.
33159 * doc/plugins.texi (Plugins): Replace TABs with spaces.
33160 * doc/tree-ssa.texi (Tree SSA): Likewise.
33161
33162 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33163
33164 PR bootstrap/43202
33165 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
33166 by default. Don't set the default arch for
33167 i[34567]86-*-darwin*|x86_64-*-darwin*.
33168
33169 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33170
33171 PR bootstrap/43202
33172 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
33173 default. Set the default 32bit/64bit archs with $with_arch
33174 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
33175
33176 2010-02-27 Richard Guenther <rguenther@suse.de>
33177
33178 PR tree-optimization/43186
33179 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
33180 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
33181 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
33182 unroller iterations.
33183
33184 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
33185
33186 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
33187 required and i[34567]86-*-* targets don't support 64bit ISA.
33188
33189 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
33190
33191 PR ada/43096
33192 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
33193 the same alias set.
33194
33195 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
33196
33197 * config.gcc: Set the default arch at least to Prescott for
33198 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
33199 if SSE math is enabled.
33200
33201 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
33202
33203 * diagnostic.c (diagnostic_initialize): Update.
33204 (diagnostic_report_diagnostic): Test inhibit_notes_p for
33205 informative notes.
33206 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
33207 (diagnostic_inhibit_notes): New.
33208 * toplev.c (process_options): inhibit notes with -fcompare-debug.
33209
33210 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
33211
33212 PR c/20631
33213 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
33214 * doc/standards.texi: Likewise.
33215 * doc/extend.texi: Likewise.
33216 * doc/trouble.texi: Likewise.
33217 * doc/cppopts.texi: Likewise.
33218 * doc/install.texi: Likewise.
33219 * c.opt (std=c90,std=gnu90): New options.
33220 * c-opts.c (c_common_handle_option): Handle them.
33221
33222 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
33223
33224 PR c/24577
33225 * c-decl.c (undeclared_variable): Use an informative note.
33226
33227 2010-02-26 Richard Guenther <rguenther@suse.de>
33228
33229 PR tree-optimization/43186
33230 * gimple.h (gimple_fold): Remove.
33231 * gimple.c (gimple_fold): Remove. Inline into single user ...
33232 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
33233 Try harder for conditions.
33234
33235 2010-02-26 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR debug/43190
33238 * function.c (used_types_insert): Don't skip through named pointer
33239 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
33240 and it is different from the main variant's type.
33241
33242 2010-02-26 Nick Clifton <nickc@redhat.com>
33243
33244 * config/rx/rx.md (sminsi3): Remove bogus alternative.
33245
33246 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
33247
33248 * config.gcc: Support --with-fpmath=sse for x86.
33249
33250 * config/i386/ssemath.h: New.
33251
33252 * doc/install.texi (--with-fpmath=sse): Documented.
33253
33254 2010-02-26 Richard Guenther <rguenther@suse.de>
33255
33256 PR tree-optimization/43188
33257 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
33258 vector types of over-aligned element type.
33259
33260 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
33261
33262 PR target/43175
33263 * config/i386/i386.c (expand_vec_perm_blend): Use correct
33264 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
33265
33266 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
33267
33268 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
33269
33270 2010-02-26 Jakub Jelinek <jakub@redhat.com>
33271
33272 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
33273 * var-tracking.c: Include diagnostic.h.
33274 (debug_dv): New function.
33275 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
33276
33277 PR debug/43160
33278 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
33279 (add_value_chain, add_value_chains, remove_value_chain,
33280 remove_value_chains): Handle DEBUG_EXPRs.
33281 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
33282
33283 PR debug/43161
33284 * regcprop.c (struct queued_debug_insn_change): New type.
33285 (struct value_data_entry): Add debug_insn_changes field.
33286 (struct value_data): Add n_debug_insn_changes field.
33287 (debug_insn_changes_pool): New variable.
33288 (free_debug_insn_changes, apply_debug_insn_changes,
33289 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
33290 (kill_value_one_regno): Call free_debug_insn_changes if needed.
33291 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
33292 fields.
33293 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
33294 changes for them.
33295 (copyprop_hardreg_forward_1): Don't call apply_change_group for
33296 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
33297 changes, call cprop_find_used_regs via note_stores.
33298 (copyprop_hardreg_forward): When copying vd from predecessor
33299 which has any queued DEBUG_INSN changes, make sure the pointers are
33300 cleared. At the end call df_analyze and then if there are any
33301 DEBUG_INSN changes queued at the end of some basic block for still
33302 live registers, apply them.
33303 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
33304
33305 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
33306
33307 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
33308 (arm*-*-*): Ditto.
33309
33310 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
33311
33312 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
33313 targets. Set the default with_cpu/with_arch from arch/cpu.
33314 Allow x86-64 and native for with_cpu/with_arch.
33315
33316 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
33317
33318 * ebitmap.c: Change calls to verify_popcount with calls to
33319 sbitmap_verify_popcount.
33320 (ebitmap_clear_bit): Fixed map->cacheindex test and
33321 map>cache update when bit clearing results in an empty
33322 element.
33323
33324 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33325
33326 PR target/43154
33327 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
33328 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
33329 and support both V2DF and V2DI modes.
33330 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
33331 support both V2DF and V2DI modes.
33332 (general): Delete trailing whitespace from a few patterns.
33333
33334 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33335 V2DF/V2DI interleave high/low builtins.
33336
33337 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
33338 new VSX builtins.
33339
33340 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
33341 interleave high/low functions.
33342
33343 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
33344
33345 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
33346 #pragma extern_prefix.
33347
33348 2010-02-25 Jakub Jelinek <jakub@redhat.com>
33349
33350 PR debug/43166
33351 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
33352 BLKmode, assert op0 is a MEM and just adjust its mode.
33353
33354 PR debug/43165
33355 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
33356 if bitpos isn't multiple of mode's bitsize.
33357
33358 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
33359
33360 * c.opt (-ftemplate-depth=): New.
33361 (-ftemplate-depth-): Deprecate.
33362 * optc-gen.awk: Handle -ftemplate-depth=.
33363 * opth-gen.awk: Likewise.
33364 * c-opts.c (c_common_handle_option): Likewise.
33365 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
33366
33367 2010-02-24 Jason Merrill <jason@redhat.com>
33368
33369 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
33370
33371 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33372
33373 * cfg.c (alloc_aux_for_block): Remove inline.
33374 (alloc_aux_for_edge): Likewise.
33375
33376 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33377
33378 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
33379
33380 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33381
33382 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
33383 * config/i386/sol2-gas.h: New file.
33384 * config.gcc (i[34567]86-*-solaris2*): Use it.
33385
33386 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
33387
33388 PR c/43128
33389 * c-typeck.c (ep_convert_and_check): New.
33390 (build_conditional_expr): Use it.
33391 (build_binary_op): Likewise.
33392
33393 2010-02-24 Jakub Jelinek <jakub@redhat.com>
33394
33395 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
33396
33397 PR debug/43150
33398 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
33399 bounds even for -O+.
33400 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
33401 expr needs to have DECL_NAME set.
33402
33403 2010-02-24 Nick Clifton <nickc@redhat.com>
33404
33405 * config/mep/mep.c: Include gimple.h.
33406 (mep_function_uses_sp): Delete unused function.
33407 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
33408 parameters. Use unsigned integers to count args. Return a
33409 NULL_RTX instead of an error_mark_node. Toidy up formatting.
33410
33411 2010-02-23 Jakub Jelinek <jakub@redhat.com>
33412
33413 PR target/43107
33414 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
33415 greater or equal to nelt instead of 2 * nelt.
33416 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
33417 with nelt - 1.
33418
33419 2010-02-23 Jason Merrill <jason@redhat.com>
33420
33421 PR debug/42800
33422 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
33423 in cfun->local_decls even if they have register types.
33424
33425 PR c++/42837
33426 * stor-layout.c (place_field): Don't warn about unnecessary
33427 DECL_PACKED if the type is packed.
33428
33429 2010-02-23 Jakub Jelinek <jakub@redhat.com>
33430
33431 PR target/43139
33432 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
33433 GOTOFF relocs, even when the base reg isn't pic pointer.
33434
33435 2010-02-23 Michael Matz <matz@suse.de>
33436
33437 PR debug/43077
33438 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
33439 (expand_gimple_basic_block): Generate and use debug temps if there
33440 are debug uses left after the last real use of TERed ssa names.
33441 Unlink debug immediate uses when they are expanded.
33442
33443 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
33444
33445 PR 43123
33446 * config/i386/i386.c (override_options): Reorganise to provide
33447 better error messages.
33448
33449 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
33450
33451 PR middle-end/43083
33452 * graphite-scop-detection.c (create_single_exit_edge): Move
33453 the call to find_single_exit_edge to....
33454 (create_sese_edges): ...here. Don't handle multiple edges
33455 exiting the function.
33456 (build_graphite_scops): Don't handle multiple edges
33457 exiting the function.
33458
33459 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
33460
33461 PR middle-end/43097
33462 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
33463 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
33464
33465 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
33466
33467 PR middle-end/43026
33468 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
33469
33470 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
33471
33472 PR c++/43126
33473 * c-typeck.c (convert_arguments): Print declaration location.
33474 * c-common.c (validate_nargs): Rename as
33475 builtin_function_validate_nargs.
33476 (check_builtin_function_arguments): Update.
33477
33478 2010-02-22 Richard Guenther <rguenther@suse.de>
33479
33480 PR lto/43045
33481 * tree-inline.c (declare_return_variable): Use the type of
33482 the call stmt lhs if available.
33483
33484 2010-02-22 Duncan Sands <baldrick@free.fr>
33485
33486 * passes.c (register_pass): Always consider all pass lists when
33487 ref_pass_instance_number is zero.
33488
33489 2010-02-22 Richard Guenther <rguenther@suse.de>
33490
33491 PR tree-optimization/42749
33492 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
33493 parameter. Do arithmetic in the original type.
33494 (update_accumulator_with_ops): Likewise.
33495 (adjust_accumulator_values): Adjust.
33496
33497 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33498
33499 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
33500 (QI to BLKmode splitter): New splitter.
33501
33502 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
33503
33504 * config/i386/i386.c (initial_ix86_tune_features): Turn on
33505 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
33506
33507 2010-02-22 Richard Guenther <rguenther@suse.de>
33508
33509 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
33510
33511 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
33512
33513 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
33514 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
33515 ($(T)crti.o, $(T)crtn.o): Remove rules.
33516
33517 2010-02-21 Tobias Burnus <burnus@net-b.de>
33518
33519 PR fortran/35259
33520 * doc/invoke.texi (-fassociative-math): Document that this
33521 option is automatically enabled for Fortran.
33522
33523 2010-02-20 David S. Miller <davem@davemloft.net>
33524
33525 * configure.ac: Test if linker and assembler properly support
33526 GOTDATA_OP relocations.
33527 * configure: Rebuild.
33528 * config.in: Likewise.
33529 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
33530 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
33531 (movsi_high_pic): Likewise.
33532 (movdi_lo_sum_pic): Likewise.
33533 (movdi_high_pic): Likewise.
33534 (movsi_pic_gotdata_op): New pattern.
33535 (movdi_pic_gotdata_op): Likewise.
33536 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
33537 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
33538
33539 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
33540
33541 PR target/43067
33542 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
33543 attribute to ssemul.
33544 (xop_mulv2div2di3_high): Ditto.
33545
33546 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
33547
33548 PR c++/35669
33549 * c.opt (Wconversion-null): New option.
33550 * doc/invoke.texi (Wconversion-null): Document.
33551
33552 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
33553
33554 * common.opt (Wlarger-than-): Add Undocumented.
33555
33556 2010-02-19 Mike Stump <mikestump@comcast.net>
33557
33558 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
33559
33560 2010-02-19 Jason Merrill <jason@redhat.com>
33561
33562 PR target/40332
33563 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
33564 * configure: Likewise.
33565
33566 2010-02-20 Alan Modra <amodra@gmail.com>
33567
33568 PR middle-end/42344
33569 * cgraph.h (cgraph_make_decl_local): Declare.
33570 * cgraph.c (cgraph_make_decl_local): New function.
33571 (cgraph_make_node_local): Use it.
33572 * cgraphunit.c (cgraph_function_versioning): Likewise.
33573 * ipa.c (function_and_variable_visibility): Likewise.
33574
33575 2010-02-19 Jakub Jelinek <jakub@redhat.com>
33576
33577 PR bootstrap/43121
33578 * except.c (sjlj_emit_function_enter): Don't call
33579 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
33580 directly.
33581 * rtl.h (add_reg_br_prob_note): Remove prototype.
33582
33583 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
33584
33585 PR 41779
33586 * c-common.c (conversion_warning): Remove widening conversions
33587 before checking the conversion of integers to reals.
33588
33589 2010-02-19 Mike Stump <mikestump@comcast.net>
33590
33591 PR middle-end/43125
33592 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
33593
33594 PR objc/43061
33595 * cgraphunit.c (process_function_and_variable_attributes): Check
33596 DECL_PRESERVE_P instead of looking up attribute "used".
33597 * ipa-pure-const.c (check_decl): Likewise.
33598 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
33599 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
33600 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
33601 instead of attribute "used".
33602 * config/sol2-c.c (solaris_pragma_init): Likewise.
33603 (solaris_pragma_fini): Likewise.
33604
33605 2010-02-19 Jakub Jelinek <jakub@redhat.com>
33606
33607 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
33608 Use XCNEW instead of xcalloc.
33609 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
33610 XNEW instead of xmalloc.
33611 (get_fields): Use XNEWVEC instead of xmalloc.
33612
33613 PR debug/43084
33614 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
33615 populate vars array.
33616 (create_new_general_access): For debug stmts just reset value.
33617 (get_stmt_accesses): For accesses within debug stmts just record them
33618 using add_access_to_acc_sites instead of preventing the peeling or
33619 counting them as accesses.
33620
33621 PR middle-end/42233
33622 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
33623
33624 2010-02-19 Richard Guenther <rguenther@suse.de>
33625
33626 PR tree-optimization/42916
33627 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
33628 instructions.
33629
33630 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
33631
33632 * configure.ac: Replace all uses of changequote in macro arguments
33633 with proper quoting.
33634
33635 2010-02-19 Jakub Jelinek <jakub@redhat.com>
33636
33637 PR middle-end/42233
33638 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
33639
33640 2010-02-19 Richard Guenther <rguenther@suse.de>
33641
33642 PR tree-optimization/42944
33643 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
33644 test for aliasing with errno.
33645
33646 2010-02-19 Jakub Jelinek <jakub@redhat.com>
33647
33648 PR middle-end/42233
33649 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
33650 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
33651 * dojump.c: Include output.h.
33652 (inv): New inline function.
33653 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
33654 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
33655 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
33656 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
33657 argument, pass it down to other calls.
33658 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
33659 add REG_BR_PROB note to the conditional jump.
33660 * cfgexpand.c (add_reg_br_prob_note): Removed.
33661 (expand_gimple_cond): Don't call it, add the probability
33662 as last argument to jumpif_1/jumpifnot_1.
33663 * Makefile.in (dojump.o): Depend on output.h.
33664 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
33665 callers.
33666 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
33667 * stmt.c (do_jump_if_equal): Likewise.
33668 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
33669 * loop-unswitch.c (compare_and_jump_seq): Likewise.
33670 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
33671 Likewise.
33672 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
33673 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
33674 jumpifnot_1 callers.
33675 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
33676 callers.
33677 (store_expr): Adjust jumpifnot caller.
33678 (store_constructor): Adjust jumpif caller.
33679
33680 PR middle-end/42233
33681 * gimplify.c (gimple_boolify): For __builtin_expect call
33682 gimple_boolify also on its first argument.
33683
33684 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
33685
33686 * configure.ac (gnu-unique-object): Wrap regexps using [] in
33687 changequote block.
33688 (__stack_chk_fail): Ditto. Remove quadrigraphs.
33689 * configure: Regenerated.
33690
33691 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33692
33693 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
33694 lang_hooks.types_compatible_p instead of comptypes.
33695
33696 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33697
33698 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
33699 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
33700 if __prefer_thumb__ is defined.
33701
33702 2010-02-18 Martin Jambor <mjambor@suse.cz>
33703
33704 PR tree-optimization/43066
33705 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
33706 array with zero-sized element type.
33707
33708 2010-02-18 Jakub Jelinek <jakub@redhat.com>
33709
33710 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
33711 rtx, allocate struct var_loc_node here and return it to the
33712 caller, and only if it is actually needed.
33713 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
33714 move it earlier and return immediately if it returns NULL.
33715
33716 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
33717
33718 * config/sparc/gas.h: New file. Restore
33719 TARGET_ASM_NAMED_SECTION to its ELF default.
33720 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
33721 check !HAVE_GNU_AS.
33722 * config/sparc/sparc.c (sparc_elf_asm_named_section):
33723 Likewise. Add ATTRIBUTE_UNUSED to prototype.
33724 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
33725 after sparc/sysv4.h.
33726
33727 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
33728
33729 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
33730
33731 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
33732
33733 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
33734 patterns from predicated pattern.
33735
33736 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
33737
33738 PR target/43103
33739 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
33740 for insn mnemonic suffix.
33741
33742 2010-02-17 Richard Guenther <rguenther@suse.de>
33743
33744 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
33745 to loop PHI nodes.
33746
33747 2010-02-17 Jakub Jelinek <jakub@redhat.com>
33748
33749 PR debug/42918
33750 * caller-save.c (save_call_clobbered_regs): If BB ends with
33751 a DEBUG_INSN, move any notes in between last real insn and the last
33752 DEBUG_INSN after the last DEBUG_INSN.
33753
33754 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
33755
33756 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
33757 Fix return type. Fix argument type. Explain meaning of return value.
33758
33759 2010-02-16 Richard Guenther <rguenther@suse.de>
33760
33761 PR tree-optimization/41043
33762 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
33763 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
33764 statements ...
33765 (vrp_visit_phi_node): ... but only for loop PHI nodes.
33766
33767 2010-02-16 Ira Rosen <irar@il.ibm.com>
33768
33769 PR tree-optimization/43074
33770 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
33771 * tree-vect-loop.c (vect_analyze_loop_operations): Add
33772 vectorizable cycles in hybrid SLP check.
33773 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
33774
33775 2010-02-16 Richard Guenther <rguenther@suse.de>
33776
33777 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
33778 (true_dependence): If memrefs_conflict_p computes must-alias
33779 trust it. Move TBAA check after offset-based disambiguation.
33780 (canon_true_dependence): Likewise.
33781
33782 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
33783
33784 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
33785 * doc/invoke.texi: Document it.
33786 * var-tracking.c: Include toplev.h and params.h.
33787 (vt_find_locations): Return bool indicating success. Compute
33788 hash sizes unconditionally. Check new parameter, report.
33789 (variable_tracking_main_1): Check vt_find_locations results and
33790 retry. Renamed from...
33791 (variable_tracking_main): ... this. New wrapper to preserve
33792 flag_var_tracking_assignments.
33793 * Makefile.in (var-tracking.o): Adjust dependencies.
33794
33795 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
33796 Jakub Jelinek <jakub@redhat.com>
33797
33798 PR target/42854
33799 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
33800 if weak_import attribute is present.
33801 * config/darwin.c (machopic_select_section): Likewise.
33802
33803 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
33804
33805 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
33806 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
33807 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
33808 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
33809
33810 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
33811 types.
33812
33813 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33814 Fix argument types.
33815
33816 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
33817 Rewrite text to refer to the names.
33818
33819 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
33820
33821 * config/i386/i386-builtin-types.def
33822 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
33823 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
33824 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
33825 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
33826 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
33827 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
33828 IX86_BUILTIN_VPERMIL2PS256.
33829 (MULTI_ARG_4_DF2_DI_I): Defined.
33830 (MULTI_ARG_4_DF2_DI_I1): Defined.
33831 (MULTI_ARG_4_SF2_SI_I): Defined.
33832 (MULTI_ARG_4_SF2_SI_I1): Defined.
33833 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
33834 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
33835 __builtin_ia32_vpermil2ps256.
33836 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33837 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33838 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
33839 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33840 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33841 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
33842 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
33843 CODE_FOR_xop_vpermil2v8sf3.
33844 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
33845 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
33846 * config/i386/xopintrin.h (_mm_permute2_pd): New.
33847 (_mm256_permute2_pd): New.
33848 (_mm_permute2_ps): New.
33849 (_mm256_permute2_ps): New.
33850
33851 2010-02-15 Nick Clifton <nickc@redhat.com>
33852
33853 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
33854 boolean parameters. Use emit_jump_insn when emitting a pop
33855 instruction containing a return insn.
33856 (push): Use 'true' rather than '1' as second parameter to F.
33857 (h8300_expand_prologue): Likewise.
33858 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
33859 (h8300_expand_epilogue): Likewise.
33860
33861 2010-02-15 Richard Guenther <rguenther@suse.de>
33862
33863 PR middle-end/43068
33864 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
33865 if that is zero.
33866
33867 2010-02-15 Nick Clifton <nickc@redhat.com>
33868
33869 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
33870 delta.
33871
33872 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
33873
33874 * intl.c (fake_ngettext): New function.
33875 * intl.h (fake_ngettext): Declare.
33876 (ngettext): Define macro.
33877 * collect2.c (notice_translated): New function.
33878 (main): Use notice_translated and ngettext.
33879 * collect2.h (notice_translated): Declare.
33880
33881 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
33882
33883 * reorg.c (delete_computation): Comment fixes.
33884 * caller-save.c (setup_save_areas): Idem.
33885 * sel-sched-dump.c (dump_lv_set): Idem.
33886 * rtl.def: Idem.
33887
33888 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33889
33890 * config/s390/s390.c (s390_sched_init): New function.
33891 (TARGET_SCHED_INIT): Target hook defined.
33892
33893 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
33894 Jack Howarth <howarth@bromo.med.uc.edu>
33895 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
33896
33897 PR target/42982
33898 Partial revert of unintended change in fix for PR41605.
33899 * config/darwin.h: Fix typo.
33900 * config/darwin9.h: Same.
33901
33902 2010-02-11 Jakub Jelinek <jakub@redhat.com>
33903
33904 * c-pch.c (pch_init): Clear v.
33905
33906 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
33907
33908 PR middle-end/42930
33909 * graphite-scop-detection.c (graphite_can_represent_scev): Call
33910 graphite_can_represent_init for MULT_EXPR.
33911
33912 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
33913
33914 PR middle-end/42914
33915 PR middle-end/42530
33916 * graphite-sese-to-poly.c (remove_phi): New.
33917 (translate_scalar_reduction_to_array): Call remove_phi.
33918
33919 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
33920
33921 PR middle-end/42771
33922 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
33923 * graphite-clast-to-gimple.h (gloog): Update declaration.
33924 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
33925 * graphite-poly.h (struct poly_bb): Add missing comments.
33926 (struct scop): Add poly_scop_p field.
33927 (POLY_SCOP_P): New.
33928 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
33929 * graphite.c (graphite_transform_loops): Build the polyhedral
33930 representation for each scop before code generation.
33931 * sese.c (rename_variables_in_operand): Removed.
33932 (rename_variables_in_expr): Return the renamed expression.
33933 (rename_sese_parameters): New.
33934 * sese.h (rename_sese_parameters): Declared.
33935
33936 2010-02-11 Richard Guenther <rguenther@suse.de>
33937
33938 PR tree-optimization/42998
33939 * tree-ssa-pre.c (create_expression_by_pieces): Treat
33940 POINTER_PLUS_EXPR properly.
33941
33942 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
33943 Changpeng Fang <changpeng.fang@amd.com>
33944
33945 PR middle-end/40886
33946 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
33947 the cost of an IV candidate when the IV is used in a test against zero.
33948
33949 * gcc.dg/tree-ssa/ivopts-3.c: New.
33950
33951 2010-02-11 Richard Guenther <rguenther@suse.de>
33952
33953 PR lto/41664
33954 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
33955 pointer-vs-decl case by swapping refs. Handle some cases
33956 of pointer-vs-decl disambiguations more conservatively.
33957 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
33958 to false after expanding.
33959
33960 2010-02-11 Richard Guenther <rguenther@suse.de>
33961
33962 PR driver/43021
33963 * gcc.c (process_command): Handle LTO file@offset case more
33964 appropriately.
33965
33966 2010-02-11 Jakub Jelinek <jakub@redhat.com>
33967
33968 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
33969 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
33970 of DEBUG_INSNs.
33971 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
33972
33973 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
33974 if MEM's mode size isn't DWARF2_ADDR_SIZE.
33975 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
33976 Optimize eq/ne comparisons when both arguments are known to be
33977 zero-extended.
33978 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
33979 Don't mask operands unnecessarily if they are known to be already
33980 zero-extended.
33981
33982 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
33983
33984 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
33985 instead of loop.
33986
33987 2010-02-10 Richard Guenther <rguenther@suse.de>
33988
33989 PR tree-optimization/43017
33990 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
33991 for wrapping signed arithmetic.
33992
33993 2010-02-10 Jakub Jelinek <jakub@redhat.com>
33994
33995 PR debug/43010
33996 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
33997 if no debug info should be emitted for it.
33998
33999 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
34000
34001 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
34002 note when flag_exceptions is set.
34003
34004 2010-02-10 Duncan Sands <baldrick@free.fr>
34005
34006 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
34007
34008 2010-02-10 Richard Guenther <rguenther@suse.de>
34009
34010 PR c/43007
34011 * tree.c (get_unwidened): Handle constants.
34012 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
34013
34014 2010-02-10 Martin Jambor <mjambor@suse.cz>
34015
34016 PR lto/42985
34017 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
34018 check for variable argument counts independently.
34019
34020 2010-02-10 Christian Bruel <christian.bruel@st.com>
34021
34022 PR target/42841
34023 * config/sh/sh.c (find_barrier): Increase length for non delayed
34024 conditional branches.
34025
34026 2010-02-10 Christian Bruel <christian.bruel@st.com>
34027
34028 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
34029
34030 2010-02-10 Jakub Jelinek <jakub@redhat.com>
34031
34032 * builtins.c (set_builtin_user_assembler_name): Also handle
34033 ffs if int is smaller than word.
34034
34035 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
34036
34037 PR middle-end/42973
34038 * ira-conflicts.c (get_dup): Remove.
34039 (process_reg_shuffles): Add new parameter. Use it as an
34040 additional guard for copy generation.
34041 (add_insn_allocno_copies): Rewrite.
34042
34043 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
34044
34045 * common.opt (fsched2-use-traces): Preserved for backward
34046 compatibility.
34047 * doc/invoke.texi: Remove the documentation about option
34048 -fsched2-use-traces.
34049 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
34050 flag_sched2_use_traces.
34051 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
34052 the backward compatibility flag section.
34053
34054 2010-02-09 Richard Guenther <rguenther@suse.de>
34055
34056 PR tree-optimization/43008
34057 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
34058 make HEAP variables initialized from global memory if they
34059 are not known builtin functions.
34060 (find_func_aliases): Adjust.
34061
34062 2010-02-09 Richard Guenther <rguenther@suse.de>
34063
34064 PR tree-optimization/43000
34065 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
34066 arithmetic manually.
34067
34068 2010-02-08 Jakub Jelinek <jakub@redhat.com>
34069
34070 PR tree-optimization/42931
34071 * tree-loop-linear.c (try_interchange_loops): Don't call
34072 double_int_mul if estimated_loop_iterations failed.
34073
34074 2010-02-08 Martin Jambor <mjambor@suse.cz>
34075
34076 PR middle-end/42898
34077 * tree-sra.c (build_accesses_from_assign): Do not mark in
34078 should_scalarize_away_bitmap if stmt has volatile ops.
34079 (sra_modify_assign): Do not process assigns piecemeal if if stmt
34080 has volatile ops.
34081
34082 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
34083
34084 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
34085
34086 2010-02-07 Adam Nemet <adambnmet@gmail.com>
34087
34088 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
34089 before the pattern.
34090
34091 2010-02-07 Andrew Pinski <pinskia@gmail.com>
34092
34093 PR middle-end/42946
34094 * df-core.c (df_finish_pass): Change type of saved_flags to int.
34095
34096 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
34097
34098 PR middle-end/42988
34099 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
34100 to unknown_dependence.
34101 (graphite_legal_transform_dr): Handle the unknown_dependence.
34102 (graphite_carried_dependence_level_k): Same.
34103
34104 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
34105
34106 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
34107
34108 2010-02-07 Richard Guenther <rguenther@suse.de>
34109
34110 PR middle-end/42991
34111 * expr.c (get_inner_reference): Always initialize *pbitsize.
34112
34113 2010-02-07 Richard Guenther <rguenther@suse.de>
34114
34115 PR middle-end/42956
34116 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
34117 new ARRAY_REFs on variable size element or minimal index arrays.
34118 Complete.
34119 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
34120 gimple_fold_indirect_ref.
34121
34122 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
34123
34124 PR target/42957
34125 * arm.c (arm_override_options): Just return if the user has specified
34126 an invalid fpu name.
34127
34128 2010-02-03 Jason Merrill <jason@redhat.com>
34129
34130 PR c++/42870
34131 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
34132 i386_pe_maybe_record_exported_symbol.
34133
34134 2010-02-05 Steve Ellcey <sje@cup.hp.com>
34135
34136 PR target/42924
34137 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34138 (pa_delegitimize_address): New function.
34139
34140 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
34141
34142 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
34143 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
34144
34145 2010-02-05 Richard Guenther <rguenther@suse.de>
34146
34147 PR lto/42762
34148 * lto-streamer-in.c (get_resolution): Deal with references
34149 to undefined functions.
34150
34151 2010-02-05 Richard Guenther <rguenther@suse.de>
34152
34153 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
34154 (fold_const_aggregate_ref): Likewise.
34155 (ccp_fold_stmt): Substitute loads.
34156 (maybe_fold_reference): Verify types before substituting.
34157 Unshare properly.
34158 (fold_gimple_assign): Unshare properly.
34159 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
34160
34161 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
34162
34163 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
34164 for rs6000_gen_cell_microcode.
34165
34166 2010-02-04 Richard Guenther <rguenther@suse.de>
34167
34168 PR rtl-optimization/42952
34169 * dse.c (const_or_frame_p): Remove MEM handling.
34170
34171 2010-02-04 Nick Clifton <nickc@redhat.com>
34172
34173 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
34174 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34175 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
34176 (mn10300_asm_output_mi_thunk): New function.
34177 (mn10300_can_output_mu_thunk): New function.
34178 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
34179 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
34180 (FUNCTION_ARG): Delete incorrect comment.
34181
34182 2010-02-03 Jason Merrill <jason@redhat.com>
34183
34184 PR c++/40138
34185 * fold-const.c (operand_equal_p): Handle erroneous types.
34186
34187 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
34188
34189 * config/h8300/h8300.md (can_delay): Fix attibute condition.
34190
34191 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
34192
34193 PR rtl-optimization/42941
34194 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
34195 of xmalloc.
34196
34197 2010-02-03 Jason Merrill <jason@redhat.com>
34198
34199 PR c++/35652
34200 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
34201
34202 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
34203
34204 PR debug/42896
34205 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
34206 (cselib_reset_table): Renamed from...
34207 (cselib_reset_table_with_next_value): ... this.
34208 (cselib_get_next_uid): Renamed from...
34209 (cselib_get_next_unknown_value): ... this.
34210 * cselib.c (next_uid): Renamed from...
34211 (next_unknown_value): ... this.
34212 (cselib_clear_table): Adjust.
34213 (cselib_reset_table): Adjust. Renamed from...
34214 (cselib_reset_table_with_next_value): ... this.
34215 (cselib_get_next_uid): Adjust. Renamed from...
34216 (cselib_get_next_unknown_value): ... this.
34217 (get_value_hash): Use hash.
34218 (cselib_hash_rtx): Likewise.
34219 (new_cselib_val): Adjust. Set and dump uid.
34220 (cselib_lookup_mem): Pass next_uid as hash.
34221 (cselib_subst_to_values): Likewise.
34222 (cselib_log_lookup): Dump uid.
34223 (cselib_lookup): Pass next_uid as hash. Adjust.
34224 (cselib_process_insn): Adjust.
34225 (cselib_init): Initialize next_uid.
34226 (cselib_finish): Adjust.
34227 (dump_cselib_table): Likewise.
34228 * dse.c (canon_address): Dump value uid.
34229 * print-rtl.c (print_rtx): Print value uid.
34230 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
34231 (dvuid): New type.
34232 (dv_uid): New function, sort of renamed from...
34233 (dv_htab_hash): ... this, reimplemented in terms of it and...
34234 (dv_uid2hash): ... this. New.
34235 (variable_htab_eq): Drop excess assertions.
34236 (tie_break_pointers): Removed.
34237 (canon_value_cmp): Compare uids.
34238 (variable_post_merge_New_vals): Print uids.
34239 (vt_add_function_parameters): Adjust.
34240 (vt_initialize): Reset table. Adjust.
34241
34242 2010-02-03 Richard Guenther <rguenther@suse.de>
34243
34244 PR tree-optimization/42944
34245 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
34246 (call_may_clobber_ref_p_1): Likewise. Properly handle
34247 malloc and calloc clobbering errno.
34248
34249 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
34250
34251 * doc/invoke.texi: Fix name of sched1 dump.
34252
34253 * opts.c (decode_options): Set flag_tree_switch_conversion
34254 only conditionally on optimize >= 2.
34255
34256 * gcse.c: Assorted comment fixes in pass description.
34257
34258 2010-02-03 Anthony Green <green@moxielogic.com>
34259
34260 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
34261 nop padding in order to maintain alignment of storage location of
34262 target function address.
34263 (moxie_trampoline_init): Store target function address at newly
34264 aligned location.
34265 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
34266 to 32.
34267 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
34268
34269 2010-02-03 Richard Guenther <rguenther@suse.de>
34270
34271 PR middle-end/42927
34272 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
34273
34274 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34275
34276 * config.gcc: Reenable check for obsolete targets.
34277 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
34278 mips-sgi-irix6.[0-4]*.
34279
34280 2010-02-02 Nick Clifton <nickc@redhat.com>
34281
34282 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
34283 constant size of 4 as being the same as 0.
34284 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
34285 can take values in the range 0..4.
34286
34287 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
34288
34289 PR java/41991
34290 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
34291 as _darwin10_Unwind_FindEnclosingFunction().
34292 * libgcc-libsystem.ver: New.
34293
34294 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
34295
34296 PR target/41399
34297 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
34298 implicitly set registers.
34299
34300 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
34301
34302 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
34303 (arm_override_options): Allow automatic selection of the thread
34304 pointer register if thumb2.
34305 (legitimize_pic_address): Improve code sequences for Thumb2.
34306 (arm_call_tls_get_addr): Likewise.
34307 (legitimize_tls_address): Likewise.
34308 * arm.md (pic_load_addr_arm): Delete. Replace with ...
34309 (pic_load_addr_32bit): ... this. New named pattern.
34310 * thumb2.md (pic_load_addr_thumb2): Delete.
34311 (pic_load_dot_plus_four): Delete.
34312 (tls_load_dot_plus_four): New named pattern.
34313
34314 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34315
34316 PR libgomp/29986
34317 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
34318 Document fix for TLS bug.
34319
34320 2010-01-31 Richard Guenther <rguenther@suse.de>
34321
34322 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
34323 conservatively correct.
34324
34325 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34326
34327 PR target/42850
34328 Revert:
34329 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34330
34331 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34332
34333 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34334
34335 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
34336
34337 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
34338
34339 * config.gcc: Adjust order of makefile fragments for mingw targets.
34340
34341 2010-01-31 Richard Guenther <rguenther@suse.de>
34342
34343 PR middle-end/42898
34344 * gimplify.c (gimplify_init_constructor): For volatile LHS
34345 initialize a temporary.
34346
34347 2010-01-31 Matthias Klose <doko@ubuntu.com>
34348
34349 * configure.ac: Fix __stack_chk_fail check for cross builds configured
34350 --with-headers
34351 * configure: Regenerate.
34352
34353 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
34354
34355 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34356 the same alias set and their sizes different constantness.
34357 (aliasing_component_refs_p): Revert 2009-10-24 change.
34358
34359 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34360
34361 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
34362 unused.
34363
34364 2010-01-29 Richard Guenther <rguenther@suse.de>
34365
34366 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
34367 Assert we successfully updated the call.
34368
34369 2010-01-29 Jakub Jelinek <jakub@redhat.com>
34370
34371 PR rtl-optimization/42889
34372 * df.h (df_set_bb_dirty_nonlr): New prototype.
34373 * df-core.c (df_set_bb_dirty_nonlr): New function.
34374 * df-scan.c (df_insn_rescan): Call it instead of
34375 df_set_bb_dirty for DEBUG_INSNs.
34376
34377 2010-01-29 Richard Guenther <rguenther@suse.de>
34378
34379 PR middle-end/37448
34380 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
34381 quadratic behavior in most cases.
34382
34383 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
34384
34385 PR target/42891
34386 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
34387 in the call to gen_x86_movsicc_0_m1.
34388
34389 2010-01-28 Richard Guenther <rguenther@suse.de>
34390
34391 PR tree-optimization/42871
34392 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
34393
34394 2010-01-28 Richard Guenther <rguenther@suse.de>
34395
34396 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
34397 into call arguments.
34398
34399 2010-01-28 Richard Guenther <rguenther@suse.de>
34400
34401 PR middle-end/42883
34402 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
34403 the forwarder if the destination is an EH landing pad.
34404
34405 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
34406
34407 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
34408 block list passed to gimple_duplicate_sese_tail.
34409 (parallelize_loops): Avoid parallelization when the function
34410 has_nonlocal_label.
34411 Avoid parallelization when the preheader is IRREDUCIBLE.
34412 Try to optimize when estimated_loop_iterations_int is unresolved.
34413 Add the loop's location to the dump file.
34414 * tree-cfg.c (add_phi_args_after_redirect): Remove.
34415 (gimple_duplicate_sese_tail): Remove the check for the latch.
34416 Redirect nexits to the exit block.
34417 Remove handling of the incoming edges to the latch.
34418 Redirect the backedge from the copied latch to the exit bb.
34419
34420 2010-01-28 Michael Matz <matz@suse.de>
34421
34422 PR target/42881
34423 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
34424 Wrap force_reg into a sequence, emit it before user.
34425
34426 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
34427
34428 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
34429 (arm_rev): New.
34430 (arm_legacy_rev): Likewise.
34431 (thumb_legacy_rev): Likewise.
34432
34433 2010-01-27 Jakub Jelinek <jakub@redhat.com>
34434
34435 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
34436 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
34437 on MEM's address failed, try avoid_constant_pool_reference and
34438 recurse if it returned something different.
34439 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
34440 address, try avoid_constant_pool_reference and recurse if it
34441 returned something different.
34442 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
34443 address and avoid_constant_pool_reference returned something
34444 different, don't set have_address.
34445
34446 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
34447
34448 PR debug/42861
34449 * var-tracking.c (val_store): Add modified argument, obey it.
34450 Adjust callers.
34451 (count_uses): Move down logging of main.
34452 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
34453 don't need resolution.
34454 (emit_notes_in_bb): Likewise.
34455
34456 2010-01-27 Richard Guenther <rguenther@suse.de>
34457
34458 PR middle-end/42878
34459 * tree-inline.c (remap_decl): Delay remapping of SSA name
34460 default definitions until we need them.
34461
34462 2010-01-27 Jakub Jelinek <jakub@redhat.com>
34463
34464 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34465 (rs6000_delegitimize_address): New function.
34466
34467 * config/s390/s390.c (s390_delegitimize_address): Call
34468 delegitimize_mem_from_attrs.
34469
34470 PR middle-end/42874
34471 * tree-inline.c (cannot_copy_type_1): Removed.
34472 (copy_forbidden): Don't forbid copying of functions containing
34473 records/unions with variable length fields.
34474
34475 2010-01-27 Christian Bruel <christian.bruel@st.com>
34476
34477 Revert:
34478 PR target/42841
34479 * config/sh/sh.c (find_barrier): Increase length for non delayed
34480 conditional branches.
34481
34482 2010-01-27 Matthias Klose <doko@ubuntu.com>
34483
34484 * configure.ac (gnu-unique-object): Fix ldd version check.
34485 * configure: Regenerate.
34486
34487 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34488
34489 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
34490 HAVE_GNU_AS value.
34491 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
34492 Test for HAVE_GNU_AS value.
34493
34494 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34495
34496 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
34497 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
34498 INT64_TYPE): Define.
34499 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
34500 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
34501 INT_LEAST64_TYPE): Define.
34502 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
34503 UINT_LEAST64_TYPE): Define.
34504 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
34505 INT_FAST64_TYPE): Define.
34506 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
34507 UINT_FAST64_TYPE): Define.
34508 (INTMAX_TYPE, UINTMAX_TYPE): Define.
34509 (INTPTR_TYPE, UINTPTR_TYPE): Define.
34510 (SIG_ATOMIC_TYPE): Define.
34511
34512 2010-01-26 Richard Guenther <rguenther@suse.de>
34513
34514 * df-scan.c (df_scan_set_bb_info): Remove assert.
34515 (df_insn_rescan_debug_internal): Merge asserts.
34516 (df_install_ref): Likewise.
34517 (df_mark_reg): Use bitmap_set_range.
34518 (df_hard_reg_used_p): Remove assert.
34519 (df_hard_reg_used_count): Likewise.
34520
34521 2010-01-26 Richard Guenther <rguenther@suse.de>
34522
34523 PR rtl-optimization/42685
34524 * web.c (web_main): Ignore DEBUG_INSNs.
34525
34526 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
34527
34528 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
34529
34530 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
34531 Fix types of fndecl and arglist parameters.
34532
34533 2010-01-26 Richard Guenther <rguenther@suse.de>
34534
34535 PR middle-end/42806
34536 * tree-eh.c (unsplit_eh): Skip debug insns.
34537
34538 2010-01-26 Richard Guenther <rguenther@suse.de>
34539
34540 PR tree-optimization/42250
34541 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
34542
34543 2010-01-26 Jakub Jelinek <jakub@redhat.com>
34544
34545 PR fortran/42866
34546 * omp-low.c (expand_omp_sections): Only use single_pred if
34547 l2_bb is single_pred_p.
34548
34549 2010-01-25 Christian Bruel <christian.bruel@st.com>
34550
34551 PR target/42841
34552 * config/sh/sh.c (find_barrier): Increase length for non delayed
34553 conditional branches.
34554 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
34555
34556 2010-01-24 David S. Miller <davem@davemloft.net>
34557
34558 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
34559 define if not using GAS.
34560 * config/sparc/sparc.c (sparc_elf_asm_named_section):
34561 Likewise. Delete SECTION_MERGE code, which is only applicable
34562 when using GAS.
34563
34564 2010-01-24 Mark Mitchell <mark@codesourcery.com>
34565
34566 PR c++/42748
34567 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
34568 mangling of va_list in system headers.
34569
34570 2010-01-23 Toon Moene <toon@moene.org>
34571
34572 * tree-predcom.c (combine_chains): Return NULL, not false.
34573
34574 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
34575
34576 * tree-loop-distribution.c (distribute_loop): Fix declaration and
34577 initialization of variable res to agree with return type.
34578
34579 2010-01-22 Steve Ellcey <sje@cup.hp.com>
34580
34581 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
34582 * tree-sra.c: Add include of expr.h.
34583
34584 2010-01-22 Jakub Jelinek <jakub@redhat.com>
34585
34586 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
34587 insert the debug stmt on the single non-EH edge from the stmt.
34588
34589 2010-01-22 Richard Henderson <rth@redhat.com>
34590
34591 PR tree-opt/42833
34592 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
34593 the RHS until after generate_subtree_copies has insertted its
34594 code before the current statement.
34595
34596 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
34597
34598 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
34599
34600 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
34601
34602 2010-01-21 Martin Jambor <mjambor@suse.cz>
34603
34604 PR tree-optimization/42585
34605 * tree-sra.c (struct access): New field grp_total_scalarization.
34606 (dump_access): Dump the new field.
34607 (should_scalarize_away_bitmap): New variable.
34608 (cannot_scalarize_away_bitmap): Likewise.
34609 (sra_initialize): Allocate new bitmaps.
34610 (sra_deinitialize): Free new bitmaps.
34611 (create_access_1): New function.
34612 (create_access): Parts moved to create_access_1.
34613 (type_consists_of_records_p): New function.
34614 (completely_scalarize_record): Likewise.
34615 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
34616 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
34617 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
34618 access.
34619 (analyze_all_variable_accesses): Completely scalarize small eligible
34620 records.
34621
34622 2010-01-21 Martin Jambor <mjambor@suse.cz>
34623
34624 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
34625
34626 2010-01-21 Andrew Haley <aph@redhat.com>
34627
34628 * gcc.c (process_command): Move lang_specific_driver before
34629 setting cc_libexec_prefix.
34630
34631 2010-01-21 Richard Guenther <rguenther@suse.de>
34632
34633 PR middle-end/19988
34634 * fold-const.c (negate_expr_p): Pretend only negative
34635 real constants are easily negatable.
34636
34637 2010-01-20 Janis Johnson <janis187@us.ibm.com>
34638 Jason Merrill <jason@redhat.com>
34639
34640 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
34641 (TYPE_TRANSPARENT_AGGR): this, for union and record.
34642 * calls.c (initialize argument_information): Handle it.
34643 * c-common.c (handle_transparent_union_attribute): Use new name.
34644 * c-decl.c (finish_struct): Ditto.
34645 * c-typeck.c (type_lists_compatible_p): Ditto.
34646 (convert_for_assignment): Use new name and also handle record.
34647 * function.c (aggregate_value_p): Handle it.
34648 (pass_by_reference): Ditto.
34649 (assign_parm_data_types): Ditto.
34650 * print-tree.c (print_node): Ditto.
34651 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
34652 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
34653 * tree.c (first_field): New fn.
34654
34655 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
34656
34657 PR target/42818
34658 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
34659 even when linking statically, for now.
34660
34661 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
34662
34663 PR debug/42715
34664 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
34665 without a cselib val.
34666 (count_uses): Accept MO_VAL_SET with no val on stores.
34667 (add_stores): Likewise.
34668
34669 2010-01-20 Jakub Jelinek <jakub@redhat.com>
34670
34671 * var-tracking.c (check_value_val): Add a compile time assertion.
34672 (dv_is_decl_p): Simplify.
34673 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
34674 gcc_assert if ENABLE_CHECKING.
34675
34676 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
34677
34678 PR debug/42782
34679 * var-tracking.c: Include tree-flow.h.
34680 (mem_dies_at_call): New.
34681 (dataflow_set_preserve_mem_locs): Use it.
34682 (dataflow_set_remove_mem_locs): Likewise.
34683 (dump_var): Renamed from dump_variable. Adjust all callers.
34684 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
34685 * Makefile.in (var-tracking.o): Adjust deps.
34686
34687 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
34688
34689 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
34690
34691 2010-01-20 Richard Guenther <rguenther@suse.de>
34692
34693 PR tree-optimization/42717
34694 * tree-ssa-dce.c (get_live_post_dom): Remove.
34695 (forward_edge_to_pdom): Take an arbitrary edge to copy
34696 degenerate PHI args from.
34697 (remove_dead_stmt): Use the first post-dominator even if it
34698 does not contain live statements as redirection destination.
34699
34700 2010-01-20 Richard Guenther <rguenther@suse.de>
34701
34702 * tree-inline.c (estimate_num_insns): Handle EH builtins.
34703
34704 2010-01-20 Jakub Jelinek <jakub@redhat.com>
34705
34706 * sel-sched.c (create_speculation_check): Remove set but not used
34707 variable twin.
34708 (try_transformation_cache): Remove set but not used variable ds.
34709 (calculate_privileged_insns): Remove set but not used variables
34710 cur_insn and min_spec_insn.
34711 (find_best_expr): Remove set but not used variable avail_n.
34712 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
34713 variable e.
34714 * cgraphunit.c (assemble_thunk): Remove set but not used variable
34715 false_label.
34716 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
34717 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
34718 new_scop_exit_edge.
34719
34720 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
34721
34722 PR bootstrap/42786
34723 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
34724 cpu types. Add support for *-sse3 cpu types.
34725 (x86_64-*-*): Ditto.
34726
34727 2010-01-20 Jakub Jelinek <jakub@redhat.com>
34728
34729 PR middle-end/42803
34730 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
34731 argument, call initializer_constant_valid_p_1 instead of
34732 initializer_constant_valid_p, pass CACHE to it, return NULL
34733 immediately if first call returns NULL.
34734 (initializer_constant_valid_p_1): New function.
34735 (initializer_constant_valid_p): Use it.
34736
34737 2010-01-20 Thomas Quinot <quinot@adacore.com>
34738
34739 * tree.def (PLACEHOLDER_EXPR): Fix comment.
34740
34741 2010-01-20 Jakub Jelinek <jakub@redhat.com>
34742
34743 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
34744 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
34745 (loc_list_from_tree): Don't handle unsigned division. Handle
34746 signed modulo using DW_OP_{over,over,div,mul,minus}.
34747 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
34748 modulo instead of signed.
34749
34750 2010-01-20 DJ Delorie <dj@redhat.com>
34751
34752 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
34753 (Fpa): Pass it
34754 (h8300_emit_stack_adjustment): Propogate it.
34755 (push): Pass it.
34756 (h8300_expand_prologue): Likewise.
34757 (h8300_expand_epilogue): Likewise.
34758
34759 2010-01-19 Michael Matz <matz@suse.de>
34760
34761 PR tree-optimization/41783
34762 * tree-data-ref.c (toplevel): Include flags.h.
34763 (dump_data_dependence_relation): Also dump the inputs if the
34764 result will be unknown.
34765 (split_constant_offset_1): Look through some conversions.
34766 * tree-predcom.c (determine_roots_comp): Restart a new chain if
34767 the offset from last element is too large.
34768 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
34769 (reassociate_to_the_same_stmt): Handle vector registers.
34770 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
34771 (e.g. conversions).
34772 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
34773 wide_prolog_niters argument, emit widening instructions.
34774 (vect_do_peeling_for_alignment): Adjust caller, use widened
34775 variant of the iteration cound.
34776 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
34777
34778 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34779
34780 PR target/38697
34781 * config/arm/neon-testgen.m (emit_automatics): New parameter
34782 features. Adjust for Fixed_return_reg feature.
34783 (test_intrinsic): Call emit_automatics with new feature.
34784 * config/arm/neon.ml: Update copyright years.
34785 (features): New Fixed_return_reg feature.
34786 (ops): Update feature for Vget_low.
34787
34788 2010-01-19 Jakub Jelinek <jakub@redhat.com>
34789
34790 PR tree-optimization/42719
34791 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
34792 stmt uses.
34793
34794 PR debug/42728
34795 * fwprop.c (all_uses_available_at): Return false if def_set dest
34796 is a REG that is used in def_insn.
34797
34798 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
34799
34800 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
34801
34802 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
34803 Add argument names.
34804
34805 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
34806
34807 * target.h (struct gcc_target) <secondary_reload>: Change type
34808 of last argument to secondary_reload_info *.
34809
34810 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
34811
34812 PR target/42774
34813 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
34814 memory references with unaligned offsets. Remove CQImode handling.
34815 (unaligned_memory_operand): Return 1 for memory references with
34816 unaligned offsets. Remove CQImode handling.
34817
34818 2010-01-18 Richard Guenther <rguenther@suse.de>
34819
34820 PR middle-end/39954
34821 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
34822 builtin calls.
34823
34824 2010-01-18 Richard Guenther <rguenther@suse.de>
34825
34826 PR tree-optimization/42781
34827 * tree-ssa-structalias.c (find_what_var_points_to): Skip
34828 restrict processing only if the original variable was artificial.
34829
34830 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
34831
34832 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
34833 find number of popped argument bytes.
34834
34835 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
34836 Fix the text that describes the return value for invalid insns.
34837
34838 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
34839
34840 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
34841 Clarify what 'cost of the -dependence' is. Fix quoting.
34842
34843 * toplev.c (default_get_pch_validity): Rename argument to "sz".
34844 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
34845
34846 2010-01-17 Jakub Jelinek <jakub@redhat.com>
34847
34848 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34849 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
34850
34851 2010-01-17 Richard Guenther <rguenther@suse.de>
34852
34853 PR middle-end/42248
34854 * function.c (split_complex_args): Take a VEC to modify.
34855 (assign_parms_augmented_arg_list): Build a VEC instead of
34856 a chain of PARM_DECLs.
34857 (assign_parms_unsplit_complex): Take a VEC of arguments.
34858 Do not fixup unmodified parms.
34859 (assign_parms): Deal with the VEC.
34860 (gimplify_parameters): Likewise.
34861
34862 2010-01-17 Richard Guenther <rguenther@suse.de>
34863
34864 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
34865 node existence check.
34866 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
34867 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
34868 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
34869 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
34870 (gimple_execute_on_growing_pred): Likewise.
34871
34872 2010-01-17 Richard Guenther <rguenther@suse.de>
34873
34874 PR tree-optimization/42773
34875 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
34876 (compute_antic_aux): Likewise.
34877 (compute_partial_antic_aux): Likewise.
34878
34879 2010-01-17 Jie Zhang <jie.zhang@analog.com>
34880
34881 PR debug/42767
34882 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
34883 and US_TRUNCATE.
34884
34885 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
34886
34887 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
34888 appearance.
34889
34890 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
34891 Fix markup for strict argument.
34892
34893 (TARGET_SCHED_REORDER2): Fix argument types.
34894
34895 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
34896 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
34897
34898 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
34899 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
34900
34901 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
34902 Add argument name.
34903
34904 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
34905 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
34906 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
34907 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
34908 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
34909
34910 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
34911
34912 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
34913
34914 (TARGET_ASM_RELOC_RW_MASK): Add return type.
34915 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
34916
34917 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
34918
34919 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
34920 Use prototype.
34921
34922 (TARGET_ASM_NAMED_SECTION): Fix argument list.
34923
34924 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
34925 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
34926
34927 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
34928
34929 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
34930
34931 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
34932 referring to it. Fix language.
34933
34934 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
34935
34936 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
34937
34938 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
34939
34940 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
34941
34942 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
34943 '@var{stream}. Remove stray 'and'.
34944
34945 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
34946
34947 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
34948
34949 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
34950
34951 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
34952 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
34953
34954 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
34955 Fix description of return value.
34956 Rename argument "sz" to "len."
34957
34958 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
34959 Clarify meaning of 'true' return value.
34960
34961 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
34962
34963 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
34964 rep_mode versus mode_rep.
34965
34966 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
34967
34968 (TARGET_BUILTIN_DECL): Fix name.
34969
34970 (TARGET_COMMUTATIVE_P): Fix type of first argument.
34971
34972 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
34973
34974 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
34975
34976 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
34977
34978 (TARGET_RELAXED_ORDERING): Use @deftypevr.
34979
34980 (TARGET_GET_DRAP_RTX): Note that this is a hook.
34981 Clarify language.
34982
34983 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
34984 Rename argument tm_fn to md_fn.
34985
34986 (TARGET_OPTION_PRINT): Fix argument list.
34987
34988 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
34989
34990 PR target/42664
34991 * config/i386/i386.c (ix86_fixup_binary_operands):
34992 Revert FMA4 fixup of operands.
34993
34994 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34995
34996 PR other/42525
34997 * Makefile.in (write_entries_to_file, install-plugin):
34998 Use \012 instead of \n with tr.
34999
35000 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
35001
35002 * configure.ac (HAVE_AS_REF): New C macro.
35003 * configure: Regenerate.
35004 * config.in: Likewise.
35005 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
35006 if HAVE_AS_REF.
35007 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
35008 if HAVE_AS_REF.
35009
35010 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
35011
35012 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
35013
35014 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
35015
35016 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
35017
35018 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
35019
35020 (TARGET_IN_SMALL_DATA_P): Fix argument type.
35021
35022 (TARGET_BINDS_LOCAL_P): Fix argument type.
35023
35024 (TARGET_ASM_FILE_END): Use prototype.
35025
35026 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
35027
35028 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
35029
35030 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
35031
35032 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
35033
35034 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
35035 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
35036
35037 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
35038 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
35039
35040 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
35041 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
35042 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
35043 (TARGET_ADDR_SPACE_CONVERT): Likewise.
35044
35045 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
35046
35047 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
35048
35049 (TARGET_INIT_BUILTINS): Use prototype.
35050
35051 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
35052 Put 'const char *' in braces. Fix parameter types.
35053 (TARGET_INVALID_CONVERSION): Fix parameter types.
35054 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
35055 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
35056
35057 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
35058 Fix argument type.
35059
35060 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
35061
35062 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
35063
35064 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
35065
35066 * doc/tm.texi (TARGET_HELP): Fix return type.
35067
35068 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
35069 in braces. Fix argument types.
35070
35071 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
35072
35073 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
35074
35075 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
35076
35077 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
35078 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
35079
35080 (TARGET_MANGLE_TYPE): Fix argument types.
35081
35082 (TARGET_IRA_COVER_CLASSES): Use prototype.
35083
35084 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
35085
35086 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
35087
35088 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
35089
35090 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
35091
35092 (TARGET_CALLEE_COPIES): Fix argument types.
35093
35094 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
35095
35096 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
35097
35098 (TARGET_FUNCTION_VALUE): Fix argument types.
35099
35100 (TARGET_RETURN_IN_MSB): Fix argument type.
35101
35102 (TARGET_RETURN_IN_MEMORY): Fix argument types.
35103
35104 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
35105
35106 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
35107
35108 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
35109 agree with return type.
35110
35111 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
35112
35113 2010-01-15 Jing Yu <jingyu@google.com>
35114
35115 PR rtl-optimization/42691
35116 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
35117 a pseudo to a constant and are merged, and adjust comments.
35118
35119 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
35120
35121 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
35122
35123 2010-01-15 Richard Guenther <rguenther@suse.de>
35124
35125 PR middle-end/42739
35126 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
35127 labels of computed or non-local gotos to the destination.
35128 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
35129 landing pad label is the first label.
35130
35131 2010-01-15 Richard Guenther <rguenther@suse.de>
35132
35133 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
35134
35135 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
35136
35137 PR target/42747
35138 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
35139 to allow generation of the xssqrtdp instruction on power7.
35140 (sqrtdf2_fpr): Ditto.
35141
35142 2010-01-14 Jakub Jelinek <jakub@redhat.com>
35143
35144 PR middle-end/42674
35145 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
35146 functions with noreturn attribute.
35147
35148 PR c++/42608
35149 * varasm.c (declare_weak): Add weak attribute to decl if it
35150 doesn't have one already.
35151 (assemble_external): Only add decls to weak_decls if they also
35152 have weak attribute.
35153
35154 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
35155
35156 * var-tracking.c (var_reg_delete): Don't delete the association
35157 between REGs and values or one-part variables if the register
35158 isn't clobbered.
35159
35160 2010-01-14 Jakub Jelinek <jakub@redhat.com>
35161
35162 PR debug/42657
35163 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
35164 because its first operand is a non-localized variable.
35165
35166 2010-01-14 Martin Jambor <mjambor@suse.cz>
35167
35168 PR tree-optimization/42706
35169 * tree-sra.c (encountered_recursive_call): New variable.
35170 (encountered_unchangable_recursive_call): Likewise.
35171 (sra_initialize): Initialize both new variables.
35172 (callsite_has_enough_arguments_p): New function.
35173 (scan_function): Call decl and flags check only for IPA-SRA, check
35174 whether there is a recursive call and whether it has enough arguments.
35175 (all_callers_have_enough_arguments_p): New function.
35176 (convert_callers): Look for recursive calls only when
35177 encountered_recursive_call is set.
35178 (ipa_early_sra): Bail out either if
35179 !all_callers_have_enough_arguments_p or
35180 encountered_unchangable_recursive_call.
35181
35182 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35183
35184 * sel-sched.c: Add 2010 to copyright years.
35185 * sel-sched-ir.c: Likewise.
35186 * sel-sched-ir.h: Likewise.
35187
35188 2010-01-14 Martin Jambor <mjambor@suse.cz>
35189
35190 PR tree-optimization/42714
35191 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
35192 constructors specially.
35193
35194 2010-01-14 Andi Kleen <ak@linux.intel.com>
35195
35196 * config/i386/drivers-i386.c (detect_caches_intel):
35197 Add l2sizekb parameter and fill in.
35198 (host_detect_local_cpu): Add l2sizekb, fill in.
35199 Add Atom small cache heuristic.
35200
35201 2010-01-14 Andi Kleen <ak@linux.intel.com>
35202
35203 * config/i386/drivers-i386.c (detect_caches_cpuid4):
35204 Add level3 parameter and fill in.
35205 (detect_caches_intel): Handle level3 cache.
35206
35207 2010-01-14 Andi Kleen <ak@linux.intel.com>
35208
35209 * config/i386/drivers-i386.c (host_detect_local_cpu):
35210 Fix core duo detection.
35211
35212 2010-01-14 Andi Kleen <ak@linux.intel.com>
35213
35214 * config/i386/drivers-i386.c (host_detect_local_cpu):
35215 Fix Atom detection.
35216
35217 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35218
35219 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
35220 (rs6000_variable_issue_1): this. Use...
35221 (rs6000_variable_issue): here. Reimplement. Print debug info.
35222
35223 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35224
35225 * sel-sched-ir.c (sel_restore_other_notes): Rename to
35226 sel_restore_notes. Update all callers. Call reemit_notes
35227 for all insns.
35228
35229 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35230
35231 PR rtl-optimization/42246
35232 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
35233 loops.
35234
35235 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35236
35237 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
35238 all successors is the same as number of successors in current region.
35239
35240 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35241
35242 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
35243 to rename is not separable. Otherwise check that its LHS is not NULL.
35244
35245 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35246
35247 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
35248
35249 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35250
35251 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
35252 available registers when failed to discover LHS register class.
35253 Fix indentation. Update comment.
35254
35255 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35256 Alexander Monakov <amonakov@ispras.ru>
35257
35258 PR rtl-optimization/42389
35259 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
35260 to can_issue_more.
35261 (advance_state_on_fence): Likewise.
35262 (sel_target_adjust_priority): Print debug output only when
35263 sched_verbose >= 4, not 2.
35264 (get_expr_cost): Do not issue all unique insns on the next cycle.
35265 (fill_insns): Initialize can_issue_more from the value saved
35266 with the fence.
35267 * sel-sched-ir.c (flist_add): New parameter issue_more.
35268 Init FENCE_ISSUE_MORE with it.
35269 (merge_fences): Likewise.
35270 (init_fences): Update call to flist_add.
35271 (add_to_fences, add_clean_fence_to_fences)
35272 (add_dirty_fence_to_fences): Likewise.
35273 (move_fence_to_fences): Update call to merge_fences.
35274 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
35275 sched groups.
35276 * sel-sched-ir.h (struct _fence): New field issue_more.
35277 (FENCE_ISSUE_MORE): New accessor macro.
35278
35279 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35280
35281 PR rtl-optimization/42388
35282 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
35283 that have no predecessors nor successors. Do not call move_bb_info
35284 for empty blocks outside of current region.
35285
35286 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35287
35288 PR rtl-optimization/42294
35289 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
35290 * sel-sched.c (move_exprs_to_boundary): Transitively add all
35291 originators' originators.
35292
35293 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
35294
35295 PR rtl-optimization/39453
35296 PR rtl-optimization/42246
35297 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
35298 for pipelining_p.
35299 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
35300
35301 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35302 Alexander Monakov <amonakov@ispras.ru>
35303
35304 PR middle-end/42245
35305 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
35306 (maybe_tidy_empty_bb): ... here. Make static. Add new
35307 argument. Update all callers.
35308 (tidy_control_flow): ... and here. Recompute topological order
35309 of basic blocks in region if necessary.
35310 (sel_redirect_edge_and_branch): Change return type. Return true
35311 if topological order might have been invalidated.
35312 (purge_empty_blocks): Export and move from...
35313 * sel-sched.c (purge_empty_blocks): ... here.
35314 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
35315 (maybe_tidy_empty_bb): Delete prototype.
35316 (purge_empty_blocks): Declare.
35317
35318 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
35319
35320 PR rtl-optimization/42249
35321 * sel-sched.c (try_replace_dest_reg): When chosen register
35322 and original register is the same, do not bail out early, but
35323 still check all original insns for validity of replacing destination
35324 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
35325 in this case.
35326
35327 2010-01-14 Jakub Jelinek <jakub@redhat.com>
35328
35329 PR c/42721
35330 Port from no-undefined-overflow branch:
35331 2009-03-09 Richard Guenther <rguenther@suse.de>
35332
35333 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
35334
35335 2010-01-14 Richard Guenther <rguenther@suse.de>
35336
35337 PR lto/42665
35338 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
35339
35340 2010-01-14 Ira Rosen <irar@il.ibm.com>
35341
35342 PR tree-optimization/42709
35343 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
35344 as scalar type in creation of constant vector operand.
35345
35346 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35347
35348 PR testsuite/42414
35349 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
35350 (check-parallel-%): Match `testsuite' directory component only
35351 at the end.
35352
35353 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
35354
35355 PR translation/39521
35356 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
35357 strings with _().
35358
35359 2010-01-13 Richard Guenther <rguenther@suse.de>
35360
35361 PR tree-optimization/42730
35362 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
35363 offset zero.
35364
35365 2010-01-13 Steve Ellcey <sje@cup.hp.com>
35366
35367 PR target/pr42542
35368 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
35369 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
35370 them signed.
35371
35372 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
35373
35374 * config/bfin/libgcc-bfin.ver: Regenerate based on current
35375 libgcc-std.ver. Add entries for ___smulsi3_highpart and
35376 ___umulsi3_highpart.
35377
35378 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
35379 rather than schedule_insns if the pass is enabled.
35380
35381 2010-01-13 Martin Jambor <mjambor@suse.cz>
35382
35383 PR tree-optimization/42704
35384 * tree-sra.c (sra_modify_assign): Do not delete assignments to
35385 SSA_NAMEs.
35386
35387 2010-01-13 Martin Jambor <mjambor@suse.cz>
35388
35389 PR tree-optimization/42703
35390 * tree-sra.c (analyze_access_subtree): Check that we can build a
35391 reference to the original data within the aggregate.
35392
35393 2010-01-13 Richard Guenther <rguenther@suse.de>
35394
35395 PR tree-optimization/42705
35396 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
35397
35398 2010-01-13 Richard Guenther <rguenther@suse.de>
35399
35400 PR middle-end/42716
35401 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
35402
35403 2010-01-13 Jakub Jelinek <jakub@redhat.com>
35404
35405 PR debug/41371
35406 * var-tracking.c (values_to_unmark): New variable.
35407 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35408 values_to_unmark vector. Moved body to...
35409 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
35410 instead queue it into values_to_unmark vector.
35411 (vt_find_locations): Free values_to_unmark vector.
35412
35413 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
35414
35415 * config/s390/s390.c (override_options): Set
35416 default of max-pending-list-length to 256
35417
35418 2010-01-13 Richard Guenther <rguenther@suse.de>
35419
35420 PR lto/42678
35421 * tree-pass.h (PROP_gimple_lcx): New.
35422 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
35423 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
35424 before the final cleanup_eh.
35425 (dump_properties): Dump PROP_gimple_lcx.
35426 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
35427 (tree_lower_complex_O0): Remove.
35428 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
35429 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
35430 tree_lower_complex, schedule TODO_update_ssa.
35431 * lto-streamer-out.c (output_function): Stream the functions
35432 properties.
35433 * lto-streamer-in.c (input_function): Likewise.
35434 (lto_read_body): Do not override them here.
35435
35436 2010-01-12 Joseph Myers <joseph@codesourcery.com>
35437
35438 PR c/42708
35439 * c-typeck.c (build_c_cast): Fold value cast to union type before
35440 wrapping it in a CONSTRUCTOR.
35441
35442 2010-01-12 Jakub Jelinek <jakub@redhat.com>
35443
35444 PR rtl-optimization/42699
35445 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
35446 involved.
35447
35448 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35449
35450 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35451 SUBTARGET_WARN_UNUSED_SPEC): Move ...
35452 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35453 SUBTARGET_WARN_UNUSED_SPEC): ... here
35454 * config/mips/iris5.h (LIBGCC_SPEC): Define.
35455
35456 2010-01-12 Julian Brown <julian@codesourcery.com>
35457
35458 * config/arm/neon-schedgen.ml (Utils): Don't try to
35459 open missing module.
35460 (find_with_result): New.
35461
35462 2010-01-12 Jakub Jelinek <jakub@redhat.com>
35463
35464 PR debug/42662
35465 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
35466 sharing when canonicalizing ({lt,ge}u (plus a b) b).
35467
35468 PR tree-optimization/42645
35469 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
35470 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
35471 decl_map, set processing_debug_stmt to -1 and return name without
35472 any remapping.
35473
35474 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
35475
35476 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
35477 binutils version, and reword target configuration description.
35478
35479 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
35480
35481 * config/avr/avr.h (LINKER_NAME): Remove.
35482
35483 2010-01-11 Janis Johnson <janis187@us.ibm.com>
35484
35485 PR target/42416
35486 * config/rs6000/rs6000.c (rs6000_override_options): On targets
35487 that support VSX, warn for -mno-altivec if vsx is not disabled,
35488 and disable vsx.
35489
35490 2010-01-11 Joseph Myers <joseph@codesourcery.com>
35491 Shujing Zhao <pearly.zhao@oracle.com>
35492
35493 PR translation/42469
35494 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
35495 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
35496 character between option name and help text.
35497 * c.opt (imultilib): Likewise.
35498
35499 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
35500
35501 * lto-streamer-out.c (output_unreferenced_globals): Output static
35502 variables.
35503
35504 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
35505
35506 PR rtl-optimization/42621
35507 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
35508 optimizing for size.
35509 (duplicate_computed_gotos): Remove now-redundant check.
35510
35511 2010-01-10 Steve Ellcey <sje@cup.hp.com>
35512
35513 PR target/37454
35514 * configure.ac: Save and restore LDFLAGS and LIBS
35515 * configure: Regenerate.
35516
35517 2010-01-10 Richard Guenther <rguenther@suse.de>
35518
35519 PR middle-end/42667
35520 * builtins.c (fold_builtin_strlen): Add type argument and
35521 convert the resulting length to it.
35522 (fold_builtin_1): Adjust.
35523
35524 2010-01-09 Jakub Jelinek <jakub@redhat.com>
35525
35526 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
35527 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
35528 1 insn.
35529 (num_insns_constant_wide): Adjust for that change.
35530
35531 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35532
35533 PR debug/42631
35534 * web.c (union_defs): Add used argument, to combine uses of
35535 uninitialized regs.
35536 (entry_register): Adjust type and tests of used argument.
35537 (web_main): Widen used for new use. Pass it to union_defs.
35538 * df.h (union_defs): Adjust prototype.
35539
35540 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35541
35542 PR debug/42630
35543 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
35544 uses in new incoming argument. Free body.
35545 (reset_debug_uses_in_loop): New.
35546 (analyze_insn_to_expand_var): Call the latter if the former found
35547 anything. Fix whitespace. Reject invalid dest overlaps before
35548 going through all insns in the loop.
35549
35550 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35551
35552 PR debug/42629
35553 * haifa-sched.c (dying_use_p): Debug insns don't count.
35554
35555 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35556
35557 PR middle-end/42363
35558 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
35559 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
35560 (verify_gimple_call): Reject LHS in noreturn calls.
35561
35562 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35563
35564 PR debug/42604
35565 PR debug/42395
35566 * tree-vect-loop-manip.c (adjust_info): New type.
35567 (adjust_vec): New pointer to vector.
35568 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
35569 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
35570 (slpeel_update_phis_for_duplicate_loop): Use them.
35571 (slpeel_update_phi_nodes_for_guard1): Likewise.
35572 (slpeel_update_phi_nodes_for_guard2): Likewise.
35573 (slpeel_tree_peel_loop_to_edge): Likewise.
35574 (vect_update_ivs_after_vectorizer): Likewise.
35575
35576 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35577
35578 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
35579 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
35580
35581 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
35582
35583 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
35584 bogus uninitialized warning.
35585
35586 2010-01-09 Richard Guenther <rguenther@suse.de>
35587
35588 PR middle-end/42512
35589 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
35590 the evolution is compatible with the initial condition.
35591
35592 2010-01-09 Jakub Jelinek <jakub@redhat.com>
35593
35594 * gcc.c (process_command): Update copyright notice dates.
35595 * gcov.c (print_version): Likewise.
35596 * gcov-dump.c (print_version): Likewise.
35597 * mips-tfile.c (main): Likewise.
35598 * mips-tdump.c (main): Likewise.
35599
35600 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
35601
35602 PR target/41885
35603 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
35604 (rotlhi3): Delete.
35605 (rotlhi3_8): Delete.
35606 (rotlsi3): Delete.
35607 (rotlsi3_8): Delete.
35608 (rotlsi3_16): Delete.
35609 (rotlsi3_24): Delete.
35610 (rotl<mode>3): New.
35611 (*rotw<mode>3): New.
35612 (*rotb<mode>3): New.
35613 * config/avr/avr.c (avr_rotate_bytes): New function.
35614 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
35615
35616 2010-01-08 Steve Ellcey <sje@cup.hp.com>
35617
35618 PR target/37454
35619 * configure.ac: Modify -rdynamic check.
35620 * configure: Regenerate.
35621
35622 2010-01-08 DJ Delorie <dj@redhat.com>
35623
35624 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
35625 register popping order.
35626
35627 2010-01-08 Richard Guenther <rguenther@suse.de>
35628
35629 PR lto/42528
35630 * c.opt (fsigned-char): Also let LTO handle this option.
35631 (funsigned-char): Likewise.
35632
35633 2010-01-07 Richard Guenther <rguenther@suse.de>
35634
35635 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
35636 (gimple_op): Likewise.
35637 (gimple_op_ptr): Likewise.
35638 (gimple_assign_set_lhs): Remove gcc_assert.
35639 (gimple_assign_set_rhs1): Likewise.
35640 (gimple_assign_set_rhs2): Likewise.
35641 (gimple_call_set_lhs): Likewise.
35642 (gimple_call_set_fn): Likewise.
35643 (gimple_call_set_fndecl): Likewise.
35644 (gimple_call_fndecl): Likewise.
35645 (gimple_call_return_type): Likewise.
35646 (gimple_call_set_chain): Likewise.
35647 (gimple_call_num_args): Likewise.
35648 (gimple_call_set_arg): Likewise.
35649 (gimple_cond_set_code): Likewise.
35650 (gimple_cond_set_lhs): Likewise.
35651 (gimple_cond_set_rhs): Likewise.
35652 (gimple_cond_set_true_label): Likewise.
35653 (gimple_cond_set_false_label): Likewise.
35654 (gimple_label_set_label): Likewise.
35655 (gimple_goto_set_dest): Likewise.
35656 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
35657 (gimple_debug_bind_get_value): Likewise.
35658 (gimple_debug_bind_get_value_ptr): Likewise.
35659 (gimple_debug_bind_set_var): Likewise.
35660 (gimple_debug_bind_set_value): Likewise.
35661 (gimple_debug_bind_reset_value): Likewise.
35662 (gimple_debug_bind_has_value_p): Likewise.
35663 (gimple_return_retval_ptr): Remove gcc_assert.
35664 (gimple_return_retval): Likewise.
35665 (gimple_return_set_retval): Likewise.
35666 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
35667 (safe_referenced_var_iterator): Remove.
35668 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
35669 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
35670 (fill_referenced_var_vec): Remove.
35671 (first_readonly_imm_use): Remove redundant gcc_assert.
35672 (phi_arg_index_from_use): Combine gcc_asserts.
35673 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
35674 (first_imm_use_stmt): Remove redundant gcc_assert.
35675 * tree-cfg.c (verify_gimple_call): Verify function and chain
35676 operands. Verify arguments.
35677 (verify_types_in_gimple_stmt): Verify condition code and labels.
35678
35679 2010-01-07 Richard Guenther <rguenther@suse.de>
35680
35681 PR tree-optimization/42641
35682 * sese.c (rename_map_elt_info): Use the SSA name version, do
35683 not hash pointers.
35684
35685 2010-01-07 Jakub Jelinek <jakub@redhat.com>
35686
35687 PR tree-optimization/42625
35688 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
35689 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
35690
35691 2010-01-07 Duncan Sands <baldrick@free.fr>
35692
35693 * Makefile.in (PLUGIN_HEADERS): Add version.h.
35694
35695 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
35696
35697 PR target/42511
35698 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
35699 note itself is not function_invariant_p.
35700
35701 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
35702
35703 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
35704 Do not add the DF_NOTE problem.
35705 * store-motion.c (execute_rtl_store_motion): Likewise.
35706
35707 2010-01-07 Martin Jambor <mjambor@suse.cz>
35708
35709 PR tree-optimization/42157
35710 * tree-sra.c (compare_access_positions): Stabilize sort if both
35711 accesses have integer types, return zero immediately if they are the
35712 same.
35713
35714 2010-01-06 Richard Henderson <rth@redhat.com>
35715
35716 PR middle-end/41883
35717 * haifa-sched.c (add_to_note_list): Merge into ...
35718 (concat_note_lists): ... here, and ...
35719 (unlink_other_notes, rm_other_notes): Merge into...
35720 (remove_notes): ... here. Create REG_SAVE_NOTEs for
35721 NOTE_INSN_EPILOGUE_BEG.
35722
35723 2010-01-06 Richard Guenther <rguenther@suse.de>
35724
35725 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
35726 not inline regular functions into always-inline functions.
35727
35728 2010-01-06 Nick Clifton <nickc@redhat.com>
35729
35730 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
35731 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
35732 used together.
35733 (OVERRIDE_OPTIONS): Delete.
35734 (OPTIMIZATION_OPTIONS): Define.
35735 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
35736 * config/rx/rx.c (rx_handle_option): Issue an error message if
35737 -mcpu=rx200 and -fpu are used together.
35738 (rx_set_optimization_options): New function. Issue an error
35739 message if an optimization attribute attempts to reset the FPU/
35740 math optimization pairing.
35741 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
35742 * config/rx/rx.opt: Set the default to 32-bit doubles.
35743 * config/rx/t-rx: Add multilibs for -nofpu option.
35744 * doc/invoke.texi: Update documentation of RX options.
35745
35746 2010-01-06 Richard Guenther <rguenther@suse.de>
35747
35748 * tree-ssa-pre.c (name_to_id): New global.
35749 (alloc_expression_id): Simplify SSA name handling.
35750 (lookup_expression_id): Likewise.
35751 (init_pre): Zero name_to_id.
35752 (fini_pre): Free it.
35753
35754 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
35755
35756 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
35757
35758 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
35759
35760 PR target/42542
35761 * config/i386/sse.md (smaxv2di3): New.
35762 (umaxv2di3): Likewise.
35763 (sminv2di3): Likewise.
35764 (uminv2di3): Likewise.
35765
35766 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
35767
35768 PR target/42564
35769 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
35770 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
35771 (legitimize_tls_address): Likewise.
35772 (sparc_tls_referenced_p): Likewise.
35773 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
35774 and adjust calls to legitimize_pic_address.
35775 (legitimate_constant_p) Use sparc_tls_referenced_p.
35776 (legitimate_pic_operand_p): Likewise.
35777 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
35778 (sparc_tls_symbol_ref_1): Delete.
35779 (sparc_tls_referenced_p): Make static, recognize specific patterns.
35780 (legitimize_tls_address): Make static, handle CONST patterns.
35781 (legitimize_pic_address): Make static, remove unused parameter and
35782 adjust recursive calls.
35783 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
35784 and adjust call to legitimize_pic_address.
35785 (sparc_output_mi_thunk): Likewise.
35786
35787 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
35788 H.J. Lu <hongjiu.lu@intel.com>
35789
35790 PR target/42542
35791 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
35792 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
35793 operands to make them signed.
35794
35795 Revert:
35796 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
35797
35798 PR target/42542
35799 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35800 GTU to GT for V4SI and V2DI.
35801
35802 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35803 (umin<mode>3): Removed.
35804 (uminv8hi3): New.
35805 (uminv4si3): Likewise.
35806
35807 2010-01-05 Martin Jambor <mjambor@suse.cz>
35808
35809 PR tree-optimization/42462
35810 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
35811 current_function_decl to helper functions and macros.
35812
35813 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35814
35815 PR bootstrap/41771
35816 * flags.h: Don't include real.h.
35817 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
35818 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
35819 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
35820 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
35821 * dominance.c: Update copyright.
35822 * gimple.c (walk_gimple_op): Remove inline.
35823 * tree-ssa-reassoc.c: Include real.h.
35824 * Makefile.in (FLAGS_H): Remove $(REAL_H).
35825 (tree-ssa-reassoc.o): Depend on $(REAL_H).
35826
35827 2010-01-05 Nick Clifton <nickc@redhat.com>
35828
35829 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
35830 register to push into the stack frame when the accumulator has to
35831 be saved during interrupts.
35832
35833 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
35834
35835 * doc/invoke.texi: Remove the documentation about option
35836 -Wunreachable-code.
35837 * common.opt (Wunreachable-code): Preserved for backward
35838 compatibility.
35839 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
35840 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
35841 the backward compatibility flag section.
35842
35843 2010-01-05 Richard Guenther <rguenther@suse.de>
35844
35845 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
35846
35847 2010-01-05 Jakub Jelinek <jakub@redhat.com>
35848
35849 PR other/42611
35850 * cfgexpand.c (expand_one_var): Diagnose too large variables.
35851
35852 PR tree-optimization/42508
35853 * tree-sra.c (convert_callers): Check for recursive call
35854 by comparing cgraph nodes instead of decls.
35855 (modify_function): Call ipa_modify_formal_parameters also
35856 on all same_body aliases.
35857
35858 * cgraphunit.c (cgraph_materialize_all_clones): Compare
35859 cgraph nodes when checking for same_body aliases.
35860
35861 2010-01-05 Richard Guenther <rguenther@suse.de>
35862
35863 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
35864 allocation and lookup.
35865 (get_or_alloc_expr_for_constant): Likewise.
35866 (phi_translate): Sink allocation.
35867
35868 2010-01-04 Richard Guenther <rguenther@suse.de>
35869
35870 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
35871 a new entry only if needed.
35872 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
35873 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
35874 hashtable lookup.
35875 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
35876 the result array.
35877 (phi_translate): Handle CONSTANTs early.
35878
35879 2010-01-04 Martin Jambor <mjambor@suse.cz>
35880
35881 PR tree-optimization/42398
35882 * tree-sra.c (struct access): Removed flag grp_different_types.
35883 (dump_access): Do not dump the removed flag.
35884 (sort_and_splice_var_accesses): Do not set the removed flag.
35885 (sra_modify_expr): Check for type compatibility directly.
35886
35887 2010-01-04 Martin Jambor <mjambor@suse.cz>
35888
35889 PR tree-optimization/42366
35890 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
35891 edges with variable number of parameters.
35892 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
35893 flag instead of asserting it.
35894 (ipa_read_node_info): Read uses_analysis_done flag.
35895
35896 2010-01-04 Richard Guenther <rguenther@suse.de>
35897
35898 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
35899 iterative_hash_* as intended.
35900 (vn_reference_compute_hash): Likewise. Simplify hashing
35901 SSA names.
35902 (vn_reference_lookup_2): Likewise.
35903 (vn_nary_op_compute_hash): Likewise.
35904 (vn_phi_compute_hash): Likewise.
35905 (expressions_equal_p): Remove strange code.
35906 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
35907 (pre_expr_hash): Likewise. Simplify hashing SSA names.
35908 (bitmap_insert_into_set_1): Take value-id as parameter.
35909 (add_to_value): Pass it.
35910 (bitmap_insert_into_set): Likewise.
35911 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
35912
35913 2010-01-04 Jakub Jelinek <jakub@redhat.com>
35914
35915 PR driver/42442
35916 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
35917 (do_self_spec): For switches with SWITCH_IGNORE set set also
35918 SWITCH_IGNORE_PERMANENTLY.
35919 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
35920 of SWITCH_IGNORE.
35921
35922 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
35923
35924 * lto-streamer-out.c (output_unreferenced_globals): Output the full
35925 tree of an unreferenced global var.
35926
35927 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
35928
35929 PR target/42542
35930 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35931 GTU to GT for V4SI and V2DI.
35932
35933 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35934 (umin<mode>3): Removed.
35935 (uminv8hi3): New.
35936 (uminv4si3): Likewise.
35937
35938 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
35939
35940 PR lto/42581
35941 * collect2.c (main): Turn on trace in collect2 if -v is passed
35942 to gcc with LTO.
35943
35944 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
35945
35946 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
35947 description of expression operand.
35948
35949 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
35950
35951 * configure.ac: Add install-html to target_list for Make-hooks.
35952 * configure: Regenerate.
35953 * fortran/Make-lang.in (F95_HTMLFILES): New.
35954 (fortran.html): Use it.
35955 (fortran.install-html): New.
35956 * Makefile.in (install-html): Add lang.install-html.
35957 * java/Make-lang.in (JAVA_HTMLFILES): New.
35958 (java.html): Use it.
35959 (java.install-html): New.
35960 * objc/Make-lang.in (objc.install-html): New.
35961 * objcp/Make-lang.in (obj-c++.install-html): New.
35962 * cp/Make-lang.in (c++.install-html): New.
35963 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
35964 * lto/Make-lang.in (lto.install-html): New.
35965
35966 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
35967
35968 PR lto/42520
35969 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
35970
35971 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
35972
35973 PR rtl-optimization/41862
35974 * store-motion.c (store_killed_in_insn, compute_store_table,
35975 remove_reachable_equiv_notes, replace_store_insn,
35976 build_store_vectors): Ignore all DEBUG_INSNs.
35977
35978 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
35979
35980 PR lto/41564
35981 * common.opt: Add dumpdir.
35982
35983 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
35984 isn't specified.
35985 (option_map): Add --dumpdir.
35986
35987 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
35988
35989 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
35990
35991 * opts.c (decode_options): Try dump_dir_name first if
35992 dump_base_name isn't an absolute path.
35993 (common_handle_option): Handle OPT_dumpdir.
35994
35995 * toplev.c (dump_dir_name): New.
35996 (print_switch_values): Also ignore -dumpdir.
35997
35998 * toplev.h (dump_dir_name): New.
35999
36000 2010-01-03 Richard Guenther <rguenther@suse.de>
36001
36002 PR tree-optimization/42589
36003 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
36004 double-word expansion of bswap32.
36005
36006 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
36007
36008 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
36009 with BLOCK_FOR_INSN.
36010 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
36011 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
36012 noce_process_if_block): Likewise.
36013 * gcse.c (compute_local_properties, insert_expr_in_table,
36014 insert_set_in_table, canon_list_insert, find_avail_set,
36015 pre_insert_copy_insn): Likewise.
36016
36017 * basic-block.h (BLOCK_NUM): Move from here...
36018 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
36019
36020 2010-01-03 Richard Guenther <rguenther@suse.de>
36021
36022 PR tree-optimization/42438
36023 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
36024 contains_may_not_return_call flag.
36025 (BB_MAY_NOTRETURN): New.
36026 (valid_in_sets): Trapping nary operations are not valid
36027 in blocks that may not return.
36028 (insert_into_preds_of_block): Remove check for trapping expressions.
36029 (compute_avail): Compute also BB_MAY_NOTRETURN.
36030
36031 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
36032
36033 * doc/invoke.texi: Add 2010 to copyright years.
36034
36035 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
36036
36037 * config/sparc/sparc.c: Fix formatting nits.
36038
36039 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36040 Alexander Monakov <amonakov@ispras.ru>
36041
36042 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
36043
36044 2010-01-02 Richard Guenther <rguenther@suse.de>
36045
36046 PR middle-end/42577
36047 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
36048 (simplify_switch_using_ranges): Mark to be removed edges
36049 as non-executable.
36050
36051 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36052
36053 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36054
36055 * collect2.c (scan_libraries): Add missing argument in call to
36056 scan_prog_file.
36057
36058 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
36059
36060 PR target/42448
36061 * config/alpha/predicates.md (aligned_memory_operand): Return false
36062 for CQImode.
36063 (unaligned_memory_operand): Return true for CQImode.
36064 * config/alpha/alpha.c (get_aligned_mem): Assert that location
36065 doesn not cross aligned SImode word boundary.
36066
36067 2010-01-02 Anatoly Sokolov <aesok@post.ru>
36068
36069 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
36070 Remove.
36071 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
36072 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
36073
36074 2010-01-02 Richard Guenther <rguenther@suse.de>
36075
36076 PR lto/41597
36077 * toplev.c (compile_file): Emit LTO marker properly. Change
36078 it to __gnu_lto_v1.
36079 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
36080
36081 2010-01-01 Richard Guenther <rguenther@suse.de>
36082
36083 PR debug/42455
36084 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
36085
36086 2010-01-01 Richard Guenther <rguenther@suse.de>
36087
36088 PR c/42570
36089 * c-decl.c (grokdeclarator): For zero-size arrays force
36090 structural equality checks as layout_type does.
36091
36092 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
36093
36094 * builtins.c: Update copyright to 2010.
36095
36096 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
36097
36098 PR lto/42531
36099 * lto-streamer-out.c (produce_asm): Revert the last change.
36100 (copy_function): Likewise.
36101
36102 * lto-streamer.c (lto_get_section_name): Skip any leading
36103 asterisk in name.
36104
36105 2010-01-01 Richard Guenther <rguenther@suse.de>
36106
36107 PR middle-end/42559
36108 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
36109 for LABEL_DECLs.
36110
36111 \f
36112 Copyright (C) 2010 Free Software Foundation, Inc.
36113
36114 Copying and distribution of this file, with or without modification,
36115 are permitted in any medium without royalty provided the copyright
36116 notice and this notice are preserved.
This page took 1.46894 seconds and 5 git commands to generate.