alpha.c (vms_valid_pointer_mode): New function.
[gcc.git] / gcc / ChangeLog
1 2009-08-17 Douglas B Rupp <rupp@gnat.com>
2
3 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
4 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
5
6 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7
8 * doc/invoke.texi (Target options):
9 Add new option list for IA-64/VMS.
10 (menu): Add IA-64/VMS Options.
11 (IA-64/VMS Options): Likewise.
12
13 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
14
15 PR target/38599
16 * config/mips/mips.md (*lwxs): Use :P for pointer values.
17
18 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
19
20 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
21 (mips_pop_asm_switch): Likewise.
22 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
23 with...
24 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
25 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
26 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
27 (mips_print_operand_punctuation): Use them. Check mips_noreorder
28 instead of set_noreorder.
29 (mips_output_function_prologue): Use the new functions.
30 (mips_output_function_epilogue): Likewise.
31 (mips_need_noat_wrapper_p): New function, split out from...
32 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
33 Use mips_push_asm_switch and mips_pop_asm_switch.
34 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
35 and mips_pop_asm_switch.
36 (ASM_OUTPUT_REG_POP): Likewise.
37 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
38 Use mips_pop_asm_switch.
39 (mips_asm_switch): New structure.
40 (set_noreorder, set_nomacro): Replace with...
41 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
42 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
43 instead of set_nomacro.
44 (fix_truncsfsi2_macro): Likewise.
45 (cprestore): Likewise.
46 (hazard): Use mips_noreorder instead of set_noreorder.
47 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
48
49 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
50
51 * config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
52 from prev_active_insn.
53
54 2009-08-16 Anatoly Sokolov <aesok@post.ru>
55
56 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
57 * config/avr/avr.c (avr_override_options): Initialize
58 avr_current_arch variable.
59 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
60 __AVR_HAVE_16BIT_SP__ according to the device type.
61 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
62 TARGET_TINY_STACK.
63 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
64 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
65
66 2009-08-16 Dodji Seketeli <dodji@redhat.com>
67
68 PR debug/37801
69 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
70 generating inlined subroutine die only. We shouldn't be
71 called for anything else.
72 (gen_block_die): Don't generate inline subroutine debug info for
73 abstract blocks.
74
75 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
76
77 * graphite-poly.c (print_pbb): Print PBB index.
78
79 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
80
81 PR middle-end/40981
82 * graphite-interchange.c (ppl_max_for_le): Moved...
83 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
84 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
85 ppl_Pointset_Powerset_C_Polyhedron_maximize.
86 * graphite-ppl.h (ppl_max_for_le): Declared.
87
88 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
89
90 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
91 supported on all platforms.
92 * target.h (struct gcc_target): Remove
93 handle_pragma_redefine_extname.
94 * c-cppbuiltin.c: Remove use of
95 targetm.handle_pragma_redefine_extname.
96 * c-pragma.c: Likewise.
97 * target-def.h (TARGET_INITIALIZER): Remove
98 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
99 * config/sol2.h: Remove use of
100 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
101
102 2009-08-14 Douglas B Rupp <rupp@gnat.com>
103
104 * config/ia64/fde-vms.c: New file.
105 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
106 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
107 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
108 (uw_frame_state_for): Only register a personality routine if it is
109 known to be compatible with our expectations.
110 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
111 Declare unw_table_entry stack variable and
112 mod all calls to _Unwind_FindTableEntry to add arg.
113 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
114 (_Unwind_FindTableEntry): Add arg to prototype.
115
116 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
117
118 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
119 field 'signal_pfs_loc'.
120 (uw_frame_state_for): Remove duplicate code dealing with leaf
121 procedures without unwind info.
122 If in the frame after unwinding through a signal handler, restore
123 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
124 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
125 'pfs_loc' to the AR.PFS location in the signal context; instead
126 set 'signal_pfs_loc'.
127 Manually generate the unwind info for the AR.PFS register.
128 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
129 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
130 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
131 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
132 instead set 'signal_pfs_loc'.
133 Remove code preventing the AR.PFS register from being restored
134 from the signal context.
135
136 2009-08-14 Douglas B Rupp <rupp@gnat.com>
137 Tristan Gingold <gingold@adacore.com>
138
139 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
140 * config/ia64/t-vms: New file.
141 * config/ia64/vms64.h: New file.
142 * config/ia64/vms.h: New file.
143 * config/ia64/vms-crtinit.asm: New file.
144 * config/ia64/vms_symvec_libgcc_s.opt: New file.
145 * config/ia64/vms-unwind.h: New file.
146
147 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
148
149 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
150 TFmode compares.
151
152 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
153
154 PR middle-end/30789
155 * builtins.c (do_mpc_arg2): Make extern, define for any MPC
156 version. Move declaration...
157 * real.h (do_mpc_arg2): ... here.
158 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
159 and RDIV_EXPR.
160
161 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
162
163 * final.c (add_debug_prefix_map): Don't use GC memory for
164 old_prefix and new_prefix.
165
166 2009-08-14 Richard Guenther <rguenther@suse.de>
167
168 * ipa-prop.c (compute_complex_pass_through): If we cannot
169 compute a non-varying offset for IPA_JF_ANCESTOR punt.
170
171 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
172
173 * c-lex.c (c_lex_with_flags): Increase size of local variable
174 to avoid memory clobber.
175
176 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
177
178 PR target/40934
179 * config/i386/i386.c (ix86_fp_comparison_strategy):
180 Only enable/disable sahf at function granularity.
181
182 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
183
184 PR rtl-optimization/41064
185 * reload1.c (reload_as_needed): Don't call extract_insn
186 for known invalid replacements after calling
187 validate_replace_rtx_group and verify_changes.
188
189 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
190
191 PR target/41019
192 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
193 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
194 ix86_expand_fp_vcond.
195 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
196 Assert that operation is supported by ix86_expand_int_vcond.
197 (vcondu<SSEMODE124C8:mode>): Ditto.
198
199 2009-08-13 DJ Delorie <dj@redhat.com>
200
201 * config/i386/djgpp-stdint.h: New.
202 * config.gcc (djgpp): Use it.
203
204 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
205
206 * config/sh/sh.c (sh_override_options): When flag_exceptions or
207 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
208
209 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
210
211 * tree-ssa-loop-prefetch.c
212 (prune_ref_by_group_reuse): Enhance probabilistic analysis
213 for long-stride pruning.
214 (compute_miss_rate): New function to compute the probability
215 that two memory references access different cache lines.
216
217 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
218
219 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
220
221 2009-08-13 Richard Guenther <rguenther@suse.de>
222
223 PR middle-end/41047
224 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
225 use the constant pointer type.
226 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
227 of CV qualifiers on the target pointer type.
228 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
229 conversion check before restrict check.
230
231 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
232
233 PR target/41029
234 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
235
236 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
237
238 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
239
240 2009-08-12 Richard Guenther <rguenther@suse.de>
241
242 PR tree-optimization/41011
243 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
244 and reference constructing.
245
246 2009-08-12 Xinliang David Li <davidxl@google.com>
247
248 PR tree-optimization/41012
249 * tree-flow.h : New external interface.
250 * gimple-low.c (check_call_arg): Change to public function.
251 Remove argument mismatch check in lowering.
252 * tree-inline.h (tree_can_inline_p): Interface change.
253 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
254 into this function.
255 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
256 Call change to tree_can_inline_p function.
257 (cgraph_decide_inlining_incrementally): Ditto.
258
259 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
260
261 PR tree-optimization/41031
262 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
263 on the partition variable rather than promote_mode on the source
264 type. Assert that the partition variable's type has the same
265 mode as the source value's.
266
267 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
268
269 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
270 for for_return == 2.
271 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
272 comments.
273 * calls.c (expand_call): Fix typo.
274 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
275 and PARM_DECL.
276 * stmt.c (expand_value_return): Use promote_function_mode to copy out
277 of pseudo.
278 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
279 * config/cris/cris.c (cris_promote_function_mode): Likewise.
280 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
281 * config/pa/pa.c (pa_promote_function_mode): Likewise.
282
283 2009-08-11 Andrew Haley <aph@redhat.com>
284
285 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
286
287 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
288
289 PR bootstrap/40103
290 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
291
292 2009-08-12 Richard Guenther <rguenther@suse.de>
293
294 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
295 * gimplify.c (gimplify_modify_expr): Do not use
296 lang_hooks.types_compatible_p.
297 * tree-ssa.c (useless_type_conversion_p): For aggregates
298 just return false if the canonical types differ.
299
300 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
301
302 PR middle-end/40980
303 * sese.c (convert_for_phi_arg): New.
304 (add_guard_exit_phis): Use convert_for_phi_arg.
305
306 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
307
308 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
309 unknown subscript upper bounds.
310
311 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
312 Pranav Garg <pranav.garg2107@gmail.com>
313
314 * graphite-interchange.c (gather_access_strides): Removed.
315 (ppl_max_for_le): New.
316 (build_linearized_memory_access): New.
317 (memory_stride_in_loop): New.
318 (pbb_interchange_profitable_p): Reimplemented.
319 * graphite-ppl.h (ppl_new_id_map): New.
320 (ppl_interchange): New.
321
322 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
323
324 * graphite-interchange.c (compute_subscript): Removed.
325 (compute_array_size_cstr): Removed.
326 (compute_array_size_poly): Removed.
327 (compute_array_size): Removed.
328 (gather_access_strides_poly): Removed.
329 (gather_access_strides): Empty.
330
331 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
332
333 * graphite-dependences.c (dependence_polyhedron_1): Replace
334 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
335 (graphite_legal_transform_dr): Same.
336 (graphite_carried_dependence_level_k): Same.
337 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
338 Initialize PDR_NB_SUBSCRIPTS.
339 (print_pdr_access_layout): Replace pdr_nb_subscripts with
340 PDR_NB_SUBSCRIPTS.
341 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
342 (PDR_NB_SUBSCRIPTS): New.
343 (pdr_nb_subscripts): Removed.
344 (pdr_dim): Simplified.
345 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
346 with PDR_NB_SUBSCRIPTS.
347
348 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
349
350 * graphite-interchange.c (compute_array_size): Remove use of
351 PDR_DATA_CONTAINER.
352 * graphite-poly.c (new_poly_dr): Remove argument data_container.
353 Do not initialize PDR_DATA_CONTAINER.
354 (print_pdr): Do not print PDR_DATA_CONTAINER.
355 * graphite-poly.h (struct poly_dr): Remove data_container field.
356 (PDR_DATA_CONTAINER): Removed.
357 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
358 PDR_DATA_CONTAINER.
359 (build_poly_dr): Same.
360
361 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
362 Sebastian Pop <sebastian.pop@amd.com>
363
364 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
365 copy of the dependence polyhedron. Free the temporary objects.
366 (graphite_carried_dependence_level_k): Free unused objects before
367 returning.
368
369 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
370 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
371 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
372 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
373 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
374
375 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
376
377 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
378 Early return without analyzing the data dependences if no
379 transform has been done. Call restore_scattering if the transform
380 is not legal.
381 (graphite-interchange.c): Same.
382 * graphite-poly.c (print_scattering_function): Test for
383 PBB_TRANSFORMED.
384 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
385 (apply_poly_transforms): Do not gcc_assert that
386 the transform is legal.
387 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
388 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
389 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
390 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
391 * graphite-poly.h (struct poly_scattering): New.
392 (struct poly_bb): Add original, transformed, and saved fields.
393 Remove transformed_scattering, original_scattering,
394 nb_local_variables and nb_scattering_transform fields.
395 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
396 (poly_scattering_new): New.
397 (poly_scattering_free): New.
398 (poly_scattering_copy): New.
399 (store_scattering_pbb): New.
400 (store_scattering): New.
401 (restore_scattering_pbb): New.
402 (restore_scattering): New.
403 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
404 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
405
406 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
407
408 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
409 (print_scop): Same.
410
411 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
412
413 * Makefile.in (graphite.o): Depends on PREDICT_H.
414 * graphite.c: Include predict.h.
415 (graphite_finalize): Call tree_estimate_probability.
416 * predict.c (predict_loops): Do not call scev_initialize and
417 scev_finalize.
418 (tree_estimate_probability_bb): New.
419 (tree_estimate_probability): Do not initialize loops: move that
420 code to the driver. Call tree_estimate_probability_bb.
421 (tree_estimate_probability_driver): New.
422 (pass_profile): Use tree_estimate_probability_driver.
423 * predict.h (tree_estimate_probability): Declared.
424
425 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
426
427 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
428 * graphite-dependences.c (graphite_legal_transform): Add time to
429 TV_GRAPHITE_DATA_DEPS.
430 (dependency_between_pbbs_p): Same.
431 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
432
433 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
434
435 PR rtl-optimization/41033
436 * alias.c (nonoverlapping_component_refs_p): Punt when strict
437 aliasing is disabled.
438
439 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
440
441 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
442 si_mask_operand, and_load_operand, low_bitmask_operand,
443 and_reg_operand, and_operand): New predicates.
444 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
445 * config/mips/mips.c (and_operands_ok): New function.
446 * config/mips/mips-protos.h (and_operands_ok): Declare it.
447 * config/mips/mips.md (move_type): Add ext_ins and logical.
448 (type): Handle them.
449 (and<mode>3): Use and_reg_operand as the second operand's predicate.
450 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
451 shift_shift. Remove commutative constraint modifier.
452 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
453 shift_shift.
454 (*clear_upper32_dext): Remove define_insn_and_split.
455 (*clear_upper32): Turn this define_insn_and_split ...
456 (splitter for ANDing register with 0xffff_ffff): .. into this.
457
458 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
459
460 * combine.c (try_widen_shift_mode): Factor out code to check if an
461 integer constant is a low-order bitmask from here ...
462 * rtlanal.c (low_bitmask_len): ... to here.
463 * rtl.h (low_bitmask_len): Declare.
464
465 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
466
467 PR target/8603
468 * config/alpha/alpha.md (addsi3): Remove expander.
469 (addsi3): Rename from *addsi3_internal insn pattern.
470 (subsi3): Remove expander.
471 (subsi3): Rename from *subsi3_internal insn pattern.
472
473 2009-08-11 Douglas B Rupp <rupp@gnat.com>
474
475 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
476 FWRITE_UNLOCKED.
477
478 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
479 Eric Botcazou <botcazou@adacore.com>
480 Douglas B Rupp <rupp@gnat.com>
481
482 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
483 that records that fit in 64 bits are returned by immediate value,
484 as required by OpenVMS Calling Standard.
485 (function_value): Adjust for above modification.
486 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
487 virtual_incoming_args_rtx as base object, not next_arg.
488 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
489
490 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
491
492 * reload.c (find_reloads_subreg_address): Check the original
493 req_equiv_mem address to detect the case where an address is
494 not valid in the outer mode.
495
496 2009-08-11 Richard Guenther <rguenther@suse.de>
497
498 PR bootstrap/40788
499 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
500
501 2009-08-10 Douglas B Rupp <rupp@gnat.com>
502
503 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
504 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
505
506 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
507 Douglas B Rupp <rupp@gnat.com>
508
509 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
510 PT_STACK when frame_pointer_needed on OpenVMS.
511 (alpha_pv_save_size, alpha_using_fp): Remove.
512 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
513 with proper processing for PT_NULL.
514 (alpha_vms_initial_elimination_offset): New function. Support for
515 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
516 (alpha_sa_size): Force procedure type to PT_STACK when
517 frame_pointer_needed on OpenVMS.
518 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
519 (alpha_using_fp): Likewise.
520 (alpha_vms_can_eliminate): Add prototype.
521 (alpha_vms_initial_elimination_offset): Likewise.
522 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
523 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
524
525 2009-08-10 Eric Botcazou <botcazou@adacore.com>
526 Douglas B Rupp <rupp@gnat.com>
527
528 * config/alpha/alpha.c (common_object_handler): New function.
529 (vms_attribute_table): Declare a single attribute "common_object".
530 (vms_output_aligned_decl_common): New global function.
531 (SECTION_VMS_OVERLAY): Delete.
532 (SECTION_VMS_GLOBAL): Likewise.
533 (SECTION_VMS_INITIALIZE): Likewise.
534 (vms_asm_named_section): Remove support for above flags.
535 (vms_section_type_flags): Delete.
536 (TARGET_SECTION_TYPE_FLAGS): Likewise.
537 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
538 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
539 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
540
541 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
542
543 PR target/41015
544 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
545 (sub_ddmmss): Likewise.
546
547 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
548
549 PR bootstrap/41018
550 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
551 year.
552
553 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
554
555 PR target/37053
556 * reload1.c (reload_as_needed): Use cancel_changes to completely
557 undo a failed replacement attempt.
558
559 2009-08-10 Richard Guenther <rguenther@suse.de>
560
561 PR middle-end/41006
562 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
563 (useless_type_conversion_p): ... here. Require pointer targets
564 to be compatible.
565
566 2009-08-10 Dodji Seketeli <dodji@redhat.com>
567
568 PR c++/40866
569 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
570 loose the original type of the statement list.
571
572 2009-08-09 Douglas B Rupp <rupp@gnat.com>
573
574 * config/alpha/alpha.c: Include libfuncs.h
575 (avms_asm_output_extern): New function.
576 (alpha_init_libfuncs): Init some decc libfuncs.
577 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
578 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
579 (DO_CRTL_NAMES): Define.
580 (LIB_SPEC): Remove.
581 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
582 (LONG_TYPE_SIZE): Define.
583 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
584 (SUBTARGET_SWITCHES): Define malloc64 switch.
585 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
586 (MASK_RETURN_ADDR): Define.
587 doc/invoke.texi (mmalloc64): Document switch.
588
589 2009-08-09 Olivier Hainque <hainque@adacore.com>
590 Douglas B Rupp <rupp@gnat.com>
591
592 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
593 uses_condition_handler.
594 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
595 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
596 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
597 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
598 (code_for_builtin): New insn codes for the new alpha_builtins.
599 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
600 (alpha_sa_size): Account for uses_condition_handler.
601 (alpha_expand_prologue): Likewise.
602 (alpha_start_function): Likewise.
603 (alpha_expand_epilogue): Likewise.
604 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
605 establish/revert expanders.
606 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
607 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
608 New expander, resorting to the alpha.c associated function.
609 (builtin_revert_vms_condition_handler): Likewise.
610 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
611 __gcc_shell_handler, the static VMS condition handler used as
612 an indirection wrapper to the current dynamically established
613 handler.
614 * config/alpha/vms-unwind.h: Complete rewrite.
615 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
616 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
617
618 2009-08-09 Eric Botcazou <botcazou@adacore.com>
619 Douglas B Rupp <rupp@gnat.com>
620
621 * config/alpha/alpha.c (alpha_links): Add 'target' field.
622 (alpha_need_linkage): Handle aliases. Return function symbol.
623 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
624 Use ultimate alias target for the linkage name.
625 * config/alpha/alpha.md (movmemdi): Use the symbol returned
626 by alpha_need_linkage for the function symbol.
627 (setmemdi): Likewise.
628
629 2009-08-09 Douglas B Rupp <rupp@gnat.com>
630
631 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
632 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
633 (ASM_WEAKEN_LABEL): Define.
634 (CRT_CALL_STATIC_FUNCTION): Define.
635 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
636 (ENDFILE_SPEC): Define.
637 (INIT_SECTION_ASM_OP): Define.
638 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
639 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
640 crtend.o crtendS.o.
641 (MULTILIB_OSDIRNAMES): Define.
642 (shlib_version): Define.
643 (SHLIB_EXT): Define.
644 (SHLIB_OBJS): Define.
645 (SHLIB_NAME): Define.
646 (SHLIB_MULTILIB): Define.
647 (SHLIB_INSTALL): Define.
648 (SHLIB_SYMVEC): Define.
649 (SHLIB_SYMVECX2): Define.
650 (SHLIB_LINK): Define.
651
652 2009-08-09 Douglas B Rupp <rupp@gnat.com>
653
654 * config/alpha/alpha.c (alpha_initialize_trampoline):
655 Initialize VMS trampoline IAW ABI for bounded procedure calls.
656 (alpha_start_function): Emit transfer address on nested functions
657 for VMS trampoline call.
658 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
659 since no longer used.
660 * config/alpha/vms-tramp.asm: Remove.
661 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
662 since now only data initialized at runtime.
663
664 2009-08-09 Douglas B Rupp <rupp@gnat.com>
665
666 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
667 (LINK_GCC_C_SEQUENCE_SPEC): Define.
668 (MD_EXEC_PREFIX): Remove, no longer used.
669 (MD_STARTFILE_PREFIX): Likewise.
670 (INCLUDE_DEFAULTS): Likewise.
671 * config/alpha/t-vms:
672 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
673
674 2009-08-09 Richard Guenther <rguenther@suse.de>
675
676 PR tree-optimization/41016
677 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
678 (operand_precision): Remove.
679 (integral_operand_p): Likewise.
680 (recognize_single_bit_test): Adjust.
681
682 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
683
684 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
685 operation overflows. Likewise non-cast unary arithmetic.
686 If one arm of a conditional expression is always taken,
687 inhibit evaluation warnings for the other arm. Likewise inhibit
688 evaluation warnings for the second && or || operand if the first
689 operand is enough to determine the result.
690 * c-typeck.c (build_conditional_expr): Apply the same inhibition
691 rules here.
692 (build_binary_op): Prevent duplicate evaluation warnings.
693
694 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
695
696 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
697 and destination have different modes, Use promote_mode to
698 determine the signedness of the conversion. Assert that the
699 promoted source mode matches the destination mode. Don't pass
700 the destination and destination mode to expand_expr if the source
701 mode is different. Simplify conversion logic.
702
703 2009-08-09 Ira Rosen <irar@il.ibm.com>
704
705 PR tree-optimization/41008
706 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
707 from condition only in case it's a comparison. Adjust checks.
708
709 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
710
711 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
712 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
713 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
714 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
715 (dump_cand): Handle them.
716 (struct iv_cand): New members COST_STEP and AINC_USE.
717 (stmt_after_increment): Likewise.
718 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
719 callers changed. Use gimple_uid comparison instead of scanning.
720 (add_candidate_1): When looking for identical candidates, take
721 AINC_USE into account. Set it for new candidates.
722 (force_expr_to_var_cost): Cast target_spill_cost to int.
723 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
724 All callers changed. Check for availability of autoinc addressing
725 modes, both in general for a given mode, and in the specific use case.
726 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
727 changed.
728 (get_computation_cost): Likewise.
729 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
730 add_autoinc_candidates): New static functions.
731 (add_candidate): Call add_autoinc_candidates for candidates based on
732 a USE_ADDRESS use.
733 (find_iv_candidates): Call set_autoinc_for_original_candidates.
734 (determine_use_iv_cost_address): If we have an autoinc candidate at
735 the matching use, verify autoinc is possible and subtract the cost
736 of the candidate's step from the cost.
737 (determine_iv_cost): Record the cost of the increment in the COST_STEP
738 member of the candidate.
739 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
740 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
741
742 2009-08-09 Douglas B Rupp <rupp@gnat.com>
743
744 * config.build (ia64-hp-*vms*): New target.
745 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
746 with ia64-hp-*vms*.
747 * config.gcc (ia64-hp-*vms*): New target.
748 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
749 with ia64-hp-*vms*.
750 * config.host (ia64-hp-*vms*): New target.
751 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
752 with ia64-hp-*vms*.
753
754 2009-08-08 Richard Guenther <rguenther@suse.de>
755
756 PR tree-optimization/40991
757 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
758
759 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
760
761 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
762 mode check. Do truncations in an integer mode.
763 (force_to_mode): Handle subregs for all mode types. Only do
764 arithmetic simplifications on integer modes.
765
766 2009-08-07 Richard Guenther <rguenther@suse.de>
767
768 PR tree-optimization/40999
769 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
770 (maybe_fold_reference): Lookup constant initializers.
771 (fold_gimple_assign): Likewise.
772
773 2009-08-07 Richard Guenther <rguenther@suse.de>
774
775 * tree-ssa.c (useless_type_conversion_p_1): Only for types
776 that require structural equality defer to the langhook.
777
778 2009-08-07 Martin Jambor <mjambor@suse.cz>
779
780 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
781 comments.
782 (struct ipa_pass_through_data): New type.
783 (struct ipa_ancestor_jf_data): New type.
784 (union jump_func_value): Removed field formal_id, added fields
785 pass_through and ancestor.
786 (struct ipa_param_call_note): Changed type of formal_id to int from
787 unsigned.
788 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
789 operations jump functions and ancestor jump functions.
790 (compute_complex_pass_through): New function.
791 (compute_scalar_jump_functions): Call compute_complex_pass_through,
792 reflect changes in the jump function strucutre.
793 (update_jump_functions_after_inlining): Ignore complex pass-through
794 and ancestor jump functions.
795 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
796 polynomial pass-through with operation jump functions.
797
798 2009-08-07 Jakub Jelinek <jakub@redhat.com>
799
800 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
801 fde->dw_fde_begin as begin label instead of hot/cold label.
802 Use LLSDAC label instead of LLSDA for second section lsda.
803 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
804 label instead of LLSDA if it is true.
805 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
806 callers.
807 * except.c (add_call_site, dw2_size_of_call_site_table): Add
808 SECTION argument. Use it as index into crtl->eh.call_site_record
809 array.
810 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
811 use it to determine how to print table entries instead of using
812 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
813 label instead of normal begin label as base.
814 (sjlj_assign_call_site_values): Adjust add_call_site caller.
815 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
816 ensure no EH range spans between sections and that landing pads
817 are always in the corresponding section.
818 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
819 for crtl->eh.call_site_record being an array rather than scalar.
820 (output_one_function_exception_table): New function, copied
821 from output_function_exception_table. Adjust
822 dw2_size_of_call_site_table, dw2_output_call_site_table
823 callers. For SECOND section use *C suffixed labels.
824 (output_function_exception_table): Call
825 output_one_function_exception_table and, when doing hot/cold
826 partitioning, also another time for the second section.
827 * opts.c: Include except.h.
828 (decode_options): Allow -freorder-blocks-and-partition with
829 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
830 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
831 * function.h (struct rtl_eh): Change call_site_record from
832 scalar into array of 2 elements.
833
834 2009-08-07 Martin Jambor <mjambor@suse.cz>
835
836 * ipa-prop.c (count_formal_params_1): New function.
837 (ipa_get_vector_of_formal_parms): New function.
838 (get_vector_of_formal_parm_types): New function.
839 (ipa_modify_formal_parameters): New function.
840 (ipa_modify_call_arguments): New function.
841 (index_in_adjustments_multiple_times_p): New function.
842 (ipa_combine_adjustments): New function.
843 (ipa_dump_param_adjustments): New function.
844 * ipa-prop.h (struct ipa_parm_adjustment): New type.
845 (ipa_get_vector_of_formal_parms): Declare.
846 (ipa_modify_formal_parameters): Declare.
847 (ipa_modify_call_arguments): Declare.
848 (ipa_combine_adjustments): Declare.
849 (ipa_dump_param_adjustments): Declare.
850 (build_ref_for_offset): Declare.
851 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
852 * tree-sra.c: Include ipa-prop.c.
853 (build_ref_for_offset): Make public.
854
855 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
856
857 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
858
859 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
860
861 * gcc/doc/extend.texi (__builtin_extract_return_address)
862 (__builtin_frob_return_address): Document.
863
864 2009-08-06 Paul Brook <paul@codesourcery.com>
865
866 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
867 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
868 implementation on ARMv6-M.
869
870 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
871
872 * doc/extend.texi (pcs): Document new attribute for ARM.
873
874 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
875
876 * arm.c (pcs_attribute_args): Comment out unsupported attribute
877 variants.
878
879 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
880
881 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
882 warning ().
883
884 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
885
886 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
887
888 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
889
890 Merge ARM/hard_vfp_branch to trunk.
891
892 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
893
894 * arm.c (libcall_eq): New function.
895 (libcall_hash): New function.
896 (add_libcall): New function.
897 (arm_libcall_uses_aapcs_base): New function.
898 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
899 libcalls using the base PCS.
900 (arm_init_cumulative_args): Likewise.
901
902 2009-07-20 Joseph Myers <joseph@codesourcery.com>
903
904 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
905 Use base ABI for conversion libfuncs between HFmode and SFmode.
906
907 2009-05-12 Joseph Myers <joseph@codesourcery.com>
908
909 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
910 V4SImode as representatives of all 64-bit and 128-bit vector
911 types. Allow vector types without vector modes.
912 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
913 without vector modes like BLKmode.
914 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
915 BLKmode. Avoid unsupported vector modes or TImode moves for
916 non-TARGET_NEON.
917 (aapcs_vfp_allocate_return_reg): Likewise.
918 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
919 V8QImode if TARGET_NEON || TARGET_IWMMXT.
920
921 2009-05-12 Joseph Myers <joseph@codesourcery.com>
922
923 * config/arm/arm.c (arm_handle_pcs_attribute): New.
924 (arm_get_pcs_model): Pass attribute arguments to
925 arm_pcs_from_attribute.
926 (arm_init_cumulative_args): Use base AAPCS for conversions from
927 floating-point types to DImode.
928 (arm_attribute_table): Add pcs attribute.
929 (arm_handle_pcs_attribute): New.
930 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
931 conversions from floating-point types to DImode, also declare them
932 to use base AAPCS and declare functions they call to use base
933 AAPCS and their RTABI names.
934
935 2009-05-12 Joseph Myers <joseph@codesourcery.com>
936
937 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
938 -mfloat-abi=hard not being supported for VFP.
939
940 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
941
942 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
943 SYMBOL_REF to hard_libcall_value.
944
945 2009-03-05 Joseph Myers <joseph@codesourcery.com>
946 Richard Earnshaw <rearnsha@arm.com>
947
948 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
949 has been put on the stack, all remaining co-processory arguments for
950 that co-processor also go on the stack.
951
952 2009-03-05 Joseph Myers <joseph@codesourcery.com>
953
954 * config/arm/arm.c (arm_return_in_memory): Handle returning
955 vectors of suitable size in registers also for AAPCS case.
956
957 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
958
959 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
960
961 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
962
963 ARM Hard-VFP calling convention
964 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
965 * target.h (gcc_target): Add libcall_value to table of call hooks.
966 * targhooks.h (default_libcall_value): Default implementation.
967 * targhooks.c (default_libcall_value): Likewise.
968 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
969 * optabs.c (expand_unop): Use it.
970 * expr.h (hard_libcall_value): Pass the function RTX through.
971 * calls.c (emit_library_call_value_1): Update call to
972 hard_libcall_value.
973 * explow.c (hard_libcall_value): Use new target hook.
974 * testsuite/lib/target-supports.exp
975 (check_effective_target_arm_hard_vfp_ok): New hook.
976 (check_effective_target_arm_neon_ok): Improve test for neon
977 availability.
978 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
979 * config/arm/arm.c: Include cgraph.h
980 (TARGET_FUNCTION_VALUE): Override default hook.
981 (arm_pcs_default): New variable.
982 (arm_override_options): Don't fault hard calling convention with VFP.
983 Add support for AAPCS variants.
984 (arm_function_value): Make static. Handle AAPCS variants.
985 (arm_libcall_value): New function.
986 (arm_apply_result_size): Handle VFP registers in results.
987 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
988 conventions.
989 (pcs_attribute_args): New variable.
990 (arm_pcs_from_attribute): New function.
991 (arm_get_pcs_model): New function.
992 (aapcs_vfp_cum_init): New function.
993 (aapcs_vfp_sub_candidate): New function.
994 (aapcs_vfp_is_return_candidate): New function.
995 (aapcs_vfp_is_call_candidate): New function.
996 (aapcs_vfp_allocate): New function.
997 (aapcs_vfp_allocate_return_reg): New function.
998 (aapcs_vfp_advance): New function.
999 (aapcs_cp_arg_layout): New variable.
1000 (aapcs_select_call_coproc): New function.
1001 (aapcs_select_return_coproc): New function.
1002 (aapcs_allocate_return_reg): New function.
1003 (aapcs_libcall_value): New function.
1004 (aapcs_layout_arg): New function.
1005 (arm_init_cumulative_args): Initialize AAPCS args data.
1006 (arm_function_arg): Handle AAPCS variants using new interface.
1007 (arm_arg_parital_bytes): Likewise.
1008 (arm_function_arg_advance): New function.
1009 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
1010 calling conventions.
1011 (arm_setup_incoming_varargs): Handle new AAPCS args data.
1012 * arm.h (NUM_VFP_ARG_REGS): Define.
1013 (LIBCALL_VALUE): Update.
1014 (FUNCTION_VALUE): Delete.
1015 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
1016 (arm_pcs): New enum.
1017 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
1018 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
1019 (FUNCTION_ARG_REGNO_P): Add VFP regs.
1020 * arm-protos.h (arm_function_arg_advance): Add.
1021 (aapcs_libcall_value): Add.
1022 (arm_function_value): Delete.
1023
1024 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
1025 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 PR target/40957
1028 * config/i386/i386.c (standard_sse_mode_p): Remove.
1029 (standard_sse_constant_p): Return 2 for integer mode
1030 vector_all_ones_operand when SSE2 is enabled.
1031 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
1032 (ix86_expand_vector_move): Do not check for negative values from
1033 standard_sse_constant_p.
1034
1035 2009-08-06 Richard Guenther <rguenther@suse.de>
1036
1037 * tree-ssa.c (useless_type_conversion_p_1): Make function and
1038 array type comparisons frontend independent.
1039 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
1040 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
1041 out array reference lower bound and element size operands.
1042 (ao_ref_init_from_vn_reference): Properly compute the offset
1043 for ARRAY_RANGE_REF.
1044 (vn_reference_fold_indirect): Fill out array reference lower
1045 bound and element size operands.
1046 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
1047 a non gimple valued reference operand which can happen for
1048 array reference lower bound or element size.
1049 (create_component_ref_by_pieces_1): Properly generate the
1050 element size operand for array references.
1051
1052 2009-08-06 Richard Guenther <rguenther@suse.de>
1053
1054 PR tree-optimization/40964
1055 * tree.c (iterative_hash_host_wide_int): Export.
1056 * tree.h (iterative_hash_host_wide_int): Declare.
1057 * tree-ssa-structalias.c (heapvar_map): New struct.
1058 (heapvar_map_eq): New function.
1059 (heapvar_map_hash): Likewise.
1060 (heapvar_lookup): Adjust.
1061 (heapvar_insert): Likewise.
1062 (make_constraint_from_heapvar): Allow multiple heap variables
1063 per decl at different offsets.
1064 (init_alias_heapvars): Adjust.
1065
1066 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1067
1068 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
1069 * mips_output_sync_loop (mips_output_sync_loop): Only emit
1070 trailing sync if TARGET_SYNC_AFTER_SC.
1071
1072 2009-08-05 David Daney <ddaney@caviumnetworks.com>
1073
1074 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
1075 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
1076 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
1077 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
1078 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1079 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1080 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1081 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
1082 test_and_set_12): Rewrite calls to mips_output_sync_loop.
1083 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
1084 the prototype declaration match the definition.
1085 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
1086 instructions explicitly. Add barrier_before and operands
1087 parameters.
1088 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
1089 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
1090 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
1091 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1092 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
1093 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
1094
1095 2009-08-05 Andrew Pinski <pinskia@gmail.com>
1096
1097 * tree-ssa-alias.c: Fix intervals to use [) syntax.
1098
1099 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
1100 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1101
1102 PR target/40906
1103 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
1104 source operand.
1105
1106 2009-08-05 Jakub Jelinek <jakub@redhat.com>
1107
1108 PR rtl-optimization/40924
1109 * dse.c (canon_address): Before calling cselib_expand_value_rtx
1110 make sure canon_rtx (mem_address) isn't simpler than
1111 canon_rtx (expanded_mem_address).
1112
1113 2009-08-05 Li Feng <nemokingdom@gmail.com>
1114
1115 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
1116 for each poly_bb_p.
1117 (build_scop_drs): Build alias set for each SCoP.
1118
1119 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
1120
1121 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
1122 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
1123 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
1124 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1125 (BASE_DRIVER_SELF_SPECS): Likewise.
1126
1127 2009-08-04 Andrew Pinski <pinskia@gmail.com>
1128
1129 * tree-ssa-alias.c: Fix some comment typos.
1130
1131 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
1132
1133 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
1134 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
1135
1136 2009-08-03 Janis Johnson <janis187@us.ibm.com>
1137
1138 PR c/39902
1139 * simplify-rtx.c (simplify_binary_operation_1): Disable
1140 simplifications for decimal float operations.
1141
1142 2009-08-03 Jakub Jelinek <jakub@redhat.com>
1143
1144 PR middle-end/40943
1145 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
1146 operand of INDIRECT_REF.
1147
1148 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
1149
1150 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
1151 constants referencing TLS symbols.
1152
1153 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1154
1155 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
1156 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
1157
1158 2009-08-03 Richard Guenther <rguenther@suse.de>
1159
1160 * tree.c (make_vector_type): Build a main variant first,
1161 get the canonical one and then build the variant.
1162 * tree-ssa.c (useless_type_conversion_p_1): Handle
1163 fixed-point types.
1164 (useless_type_conversion_p): Conversions to pointers to
1165 incomplete record types are useless.
1166
1167 2009-08-03 Richard Guenther <rguenther@suse.de>
1168
1169 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
1170 file will be created.
1171 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
1172 * toplev.c (compile_file): Adjust comment.
1173
1174 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
1175
1176 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
1177 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
1178 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1179 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1180 (sh_promote_function_mode): Fix typo.
1181
1182 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
1183
1184 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
1185
1186 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1187
1188 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
1189 declaration arguments.
1190
1191 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
1192
1193 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
1194 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
1195 (ix86_split_ashl): Ditto.
1196 (ix86_expand_vector_init_one_nonzero): Ditto.
1197 (ix86_expand_vector_set): Ditto.
1198 (ix86_expand_reduc_v4sf): Ditto.
1199
1200 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
1201
1202 * explow.c (promote_function_mode): Remove assert.
1203 * config/sh/sh.c (sh_promote_function_mode): Declare.
1204
1205 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1206
1207 * config/pa/pa.c (pa_promote_function_mode): Declare.
1208 Change to static. Fix promote_mode call.
1209
1210 * gthr-dce.h (CONST_CAST2): Define if not defined.
1211 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
1212
1213 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
1214
1215 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
1216
1217 * expr.c (store_constructor): Use promote_decl_mode. Remove
1218 now write-only variable unsignedp.
1219 (expand_expr_real_1): Use promote_decl_mode.
1220 * expr.h (promote_function_mode, promote_decl_mode): New.
1221 (promote_mode): Remove last argument.
1222 * function.c (assign_temp): Drop last argument of promote_mode.
1223 (assign_parm_find_data_types): Use promote_function_mode.
1224 (assign_parm_setup_reg): Likewise.
1225 (expand_function_end): Use promote_function_mode.
1226 * calls.c (initialize_argument_information): Use promote_function_mode.
1227 (precompute_arguments): Use promote_mode instead of checking if
1228 only PROMOTE_FUNCTION_MODE is defined.
1229 (expand_call): When making sibcall decisions, use promote_function_mode.
1230 Below, remove an if for targetm.calls.promote_function_return and
1231 and use promote_function_mode.
1232 (emit_library_call_value_1): Use promote_function_mode, fix bug
1233 where promote_mode was passed FOR_CALL == 0 for a return value in an
1234 assertion.
1235 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1236 * explow.c (promote_function_mode, promote_decl_mode): New.
1237 (promote_mode): Keep only the FOR_CALL == 0 case.
1238 * combine.c (setup_incoming_promotion): Remove test of
1239 promote_function_args. Use promote_function_mode.
1240 * stmt.c (expand_value_return): Use promote_decl_mode.
1241 (expand_decl): Use promote_decl_mode.
1242
1243 * expr.c (store_constructor): Use promote_decl_mode. Remove
1244 now write-only variable unsignedp.
1245 (expand_expr_real_1): Use promote_decl_mode.
1246 * expr.h (promote_function_mode, promote_decl_mode): New.
1247 (promote_mode): Remove last argument.
1248 * function.c (assign_temp): Drop last argument of promote_mode.
1249 (assign_parm_find_data_types): Use promote_function_mode.
1250 (assign_parm_setup_reg): Likewise.
1251 (expand_function_end): Use promote_function_mode.
1252 * calls.c (initialize_argument_information): Use promote_function_mode.
1253 (precompute_arguments): Use promote_mode instead of checking if
1254 only PROMOTE_FUNCTION_MODE is defined.
1255 (expand_call): When making sibcall decisions, use promote_function_mode.
1256 Below, remove an if for targetm.calls.promote_function_return and
1257 and use promote_function_mode.
1258 (emit_library_call_value_1): Use promote_function_mode, fix bug
1259 where promote_mode was passed FOR_CALL == 0 for a return value in an
1260 assertion.
1261 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1262 * explow.c (promote_function_mode, promote_decl_mode): New.
1263 (promote_mode): Keep only the FOR_CALL == 0 case.
1264 * combine.c (setup_incoming_promotion): Remove test of
1265 promote_function_args. Use promote_function_mode.
1266 * stmt.c (expand_value_return): Use promote_decl_mode.
1267 (expand_decl): Use promote_decl_mode.
1268
1269 * explow.c (promote_function_mode): Just call the target hook.
1270 * targhooks.c (default_promote_function_mode,
1271 default_promote_function_mode_always_promote): New.
1272 * targhooks.h (default_promote_function_mode,
1273 default_promote_function_mode_always_promote): Declare.
1274 * target.h (promote_function_args, promote_function_return): Remove.
1275 (promote_function_mode): New.
1276 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
1277 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1278 (TARGET_PROMOTE_FUNCTION_MODE): New.
1279 (TARGET_CALLS): Adjust.
1280 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
1281 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
1282
1283 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
1284 * config/s390/s390.c (s390_promote_function_mode): ... here,
1285 with pointer handling.
1286 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1287 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1288
1289 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
1290 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
1291 with pointer handling.
1292 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1293 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1294
1295 * config/sh/sh-protos.h (sh_promote_function_mode): New.
1296 * config/sh/sh.c (sh_promote_function_mode): New.
1297 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1298 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1299
1300 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
1301 * config/cris/cris.c (cris_promote_function_mode): ... here.
1302 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1303 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1304
1305 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
1306 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
1307 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1308 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1309
1310 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
1311 * config/arm/arm.c (arm_promote_function_mode): ... here, without
1312 complex type handling.
1313 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1314 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1315
1316 * config/pa/pa.c (pa_promote_function_mode): New.
1317 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1318 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1319
1320 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
1321 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1322 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
1323 * config/xtensa/xtensa.c: Likewise.
1324 * config/stormy16/stormy16.c: Likewise.
1325 * config/iq2000/iq2000.c: Likewise.
1326 * config/rs6000/rs6000.c: Likewise.
1327 * config/picochip/picochip.c: Likewise.
1328 * config/arc/arc.c: Likewise.
1329 * config/mcore/mcore.c: Likewise.
1330 * config/score/score.c: Likewise.
1331 * config/mips/mips.c: Likewise.
1332 * config/bfin/bfin.c: Likewise.
1333 * config/ia64/ia64.c: Likewise (disabled though).
1334
1335 * config/frv/frv.h: Remove pointless remark.
1336
1337 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
1338 TARGET_PROMOTE_FUNCTION_ARGS,
1339 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
1340 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
1341
1342 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
1343
1344 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
1345 -floop-parallelize-all.
1346 * toplev.c (process_options): Rename flag_graphite_force_parallel to
1347 flag_loop_parallelize_all.
1348 * tree-ssa-loop.c (gate_graphite_transforms): Same.
1349 * graphite.c (graphite_transform_loops): Same.
1350 * common.opt: Same.
1351 * graphite-poly.c (apply_poly_transforms): Same.
1352
1353 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
1354
1355 PR tree-optimization/40914
1356 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
1357 if set, then check the delta field of the PMF record.
1358 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
1359 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
1360 call is stored in the delta.
1361
1362 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
1363
1364 * config/mips/mips.md (*clear_upper32_dext): New pattern.
1365
1366 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
1367
1368 * config/i386/bsd.h (ASM_BYTE): New define.
1369 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
1370 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
1371 .byte. Use fputs or putc instead of fprintf where appropriate.
1372 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
1373 fputs or putc instead of fprintf where appropriate.
1374 * config/i386/i386elf.h: Ditto.
1375 * config/i386/sysv4.h: Ditto.
1376
1377 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
1378 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
1379 (*tls_global_dynamic_64): Ditto.
1380
1381 2009-07-31 Christian Bruel <christian.bruel@st.com>
1382
1383 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
1384
1385 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1386
1387 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
1388 Remove dead code for MINUS.
1389
1390 2009-07-31 Anthony Green <green@moxielogic.com>
1391
1392 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
1393 $r12 in prologue.
1394 (moxie_expand_epilogue): Ditto for epilogue.
1395 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
1396 incoming arguments.
1397 (moxie_function_arg): Ditto.
1398 (moxie_pass_by_reference): Ditto.
1399 (moxie_arg_partial_bytes): Ditto.
1400 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
1401 (FUNCTION_ARG_ADVANCE) Ditto.
1402 (REG_PARM_STACK_SPACE) Ditto.
1403 (FUNCTION_ARG_REGNO_P) Dito.
1404
1405 * config.gcc: Add moxie linux config support.
1406 * gcc/config/moxie/uclinux.h: New file.
1407
1408 2009-07-31 DJ Delorie <dj@redhat.com>
1409
1410 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1411 (UNSPECV_SP_SWITCH_E): New.
1412 (sp_switch_1): Change to an unspec.
1413 (sp_switch_2): Change to an unspec. Don't use post-inc when we
1414 replace $r15.
1415 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
1416 reference the new stack's address
1417
1418 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1419
1420 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
1421 graphite-clast-to-gimple.o, graphite-dependences.o,
1422 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1423 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
1424 (graphite-blocking.o,
1425 graphite-clast-to-gimple.o, graphite-dependences.o,
1426 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1427 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
1428 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
1429 * cfgloop.h (struct loop): Add can_be_parallel field.
1430 * common.opt (fgraphite-identity): Moved up.
1431 (fgraphite-force-parallel): New flag.
1432 * graphite.c: Rewrite.
1433 * graphite.h: Rewrite.
1434 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
1435 after Graphite.
1436 * toplev.c (graphite_out_file): New file descriptor.
1437 (graphite_in_file): New.
1438 (process_options): flag_graphite_force_parallel cannot be used without
1439 Graphite.
1440 * tree-ssa-loop.c: Include toplev.h.
1441 (gate_graphite_transforms): Enable flag_graphite for
1442 flag_graphite_force_parallel.
1443
1444 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1445
1446 * ChangeLog.graphite: New.
1447 * graphite-blocking.c: New.
1448 * graphite-clast-to-gimple.c: New.
1449 * graphite-clast-to-gimple.h: New.
1450 * graphite-dependences.c: New.
1451 * graphite-dependences.h: New.
1452 * graphite-interchange.c: New.
1453 * graphite-poly.c: New.
1454 * graphite-poly.h: New.
1455 * graphite-ppl.c: New.
1456 * graphite-ppl.h: New.
1457 * graphite-scop-detection.c: New.
1458 * graphite-scop-detection.h: New.
1459 * graphite-sese-to-poly.c: New.
1460 * graphite-sese-to-poly.h: New.
1461 * sese.c: New.
1462 * sese.h: New.
1463
1464 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1465
1466 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1467 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
1468
1469 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1470
1471 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
1472 (scev_is_linear_expression): Return false if the evolution is not
1473 affine multivariate.
1474
1475 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1476
1477 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1478 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1479
1480 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1481
1482 * tree-data-ref.c (debug_data_references): New.
1483 (debug_data_reference): New.
1484 * tree-data-ref.h (debug_data_references): Declared.
1485 (debug_data_reference): Declared.
1486
1487 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1488
1489 * tree-data-ref.c (stmt_simple_memref_p: Removed.
1490 * tree-data-ref.h (scop_p): Removed.
1491 (struct data_reference): Remove field scop.
1492 (DR_SCOP): Removed.
1493 (stmt_simple_memref_p): Removed.
1494
1495 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1496
1497 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
1498 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
1499 basic block empty.
1500
1501 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1502
1503 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
1504
1505 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1506
1507 * doc/invoke.texi (-fgraphite-identity): Documented.
1508
1509 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1510
1511 * tree-scalar-evolution.c: Fix comment.
1512 (instantiate_scev_1): Return unknow from scev instantiation if the
1513 result is not above instantiate_below.
1514
1515 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1516
1517 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1518 static anymore. Instantiate the symbols that may have been introduced
1519 by chrec_apply.
1520 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1521 Declared.
1522
1523 2009-07-30 DJ Delorie <dj@redhat.com>
1524
1525 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
1526 .vliw directive to VLIW sections.
1527
1528 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1529
1530 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1531 New variables.
1532 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1533 (AUTOHEADER): New variable.
1534 ($(srcdir)/cstamp-h.in): Use it.
1535
1536 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1537 Pat Haugen <pthaugen@us.ibm.com>
1538 Revital Eres <ERES@il.ibm.com>
1539
1540 * config/rs6000/vector.md (VEC_F): Add VSX support.
1541 (VEC_A): Ditto.
1542 (VEC_N): Ditto.
1543 (mov<mode>): Ditto.
1544 (vector_load_<mode>): Ditto.
1545 (vector_store_<mode>): Ditto.
1546 (vector GPR move split): Ditto.
1547 (vec_reload_and_plus_<mptrsize>): Ditto.
1548 (vec_reload_and_reg_<mptrsize>): Ditto.
1549 (add<mode>3): Ditto.
1550 (sub<mode>3): Ditto.
1551 (mul<mode>3): Ditto.
1552 (neg<mode>2): Ditto.
1553 (abs<mode>2): Ditto.
1554 (smin<mode>3): Ditto.
1555 (smax<mode>3): Ditto.
1556 (vector_eq<mode>): Ditto.
1557 (vector_gt<mode>): Ditto.
1558 (vector_ge<mode>): Ditto.
1559 (vector_gtu<mode>): Ditto.
1560 (vector_select_<mode>_uns): Ditto.
1561 (vector_eq_<mode>_p): Ditto.
1562 (vector_gt_<mode>_p): Ditto.
1563 (vector_ge_<mode>_p): Ditto.
1564 (vector_gtu_<mode>_p): Ditto.
1565 (cr6_test_for_zero): Ditto.
1566 (cr6_test_for_zero_reverse): Ditto.
1567 (cr6_test_for_lt): Ditto.
1568 (cr6_test_for_lt_reverse): Ditto.
1569 (xor<mode>3): Ditto.
1570 (ior<mode>3): Ditto.
1571 (and<mode>3): Ditto.
1572 (one_cmpl<mode>2): Ditto.
1573 (nor<mode>2): Ditto.
1574 (andc<mode>2): Ditto.
1575 (float<VEC_int<mode>2): Ditto.
1576 (unsigned_float<VEC_int><mode>2): Ditto.
1577 (fix_trunc<mode><VEC_int>2): Ditto.
1578 (fixuns_trunc<mode><VEC_int>2): Ditto.
1579 (vec_init<mode>):
1580 (vec_set<mode>): Ditto.
1581 (vec_extract<mode>): Ditto.
1582 (vec_interleave_highv4sf): Ditto.
1583 (vec_interleave_lowv4sf): Ditto.
1584 (vec_realign_load_<mode>): Ditto.
1585 (vec_shl_<mode>): Ditto.
1586 (vec_shr_<mode>): Ditto.
1587 (div<mode>3): New patterns for VSX.
1588 (vec_interleave_highv2df): Ditto.
1589 (vec_interleave_lowv2df): Ditto.
1590 (vec_pack_trunc_v2df): Ditto.
1591 (vec_pack_sfix_trunc_v2df): Ditto.
1592 (vec_pack_ufix_trunc_v2df): Ditto.
1593 (vec_unpacks_hi_v4sf): Ditto.
1594 (vec_unpacks_lo_v4sf): Ditto.
1595 (vec_unpacks_float_hi_v4si): Ditto.
1596 (vec_unpacks_float_lo_v4si): Ditto.
1597 (vec_unpacku_float_hi_v4si): Ditto.
1598 (vec_unpacku_float_lo_v4si): Ditto.
1599 (movmisalign<mode>): Ditto.
1600 (vector_ceil<mode>2): New patterns for vectorizing math library.
1601 (vector_floor<mode>2): Ditto.
1602 (vector_btrunc<mode>2): Ditto.
1603 (vector_copysign<mode>3): Ditto.
1604
1605 * config/rs6000/predicates.md (easy_vector_constant_msb): New
1606 predicate for setting the high bit in each word, used for copysign.
1607
1608 * config/rs6000/ppc-asm.h (f19): Whitespace.
1609 (f32-f63): Define if VSX.
1610 (v0-v31): Define if Altivec.
1611 (vs0-vs63): Define if VSX.
1612
1613 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
1614
1615 * config/rs6000/power7.md: New file, provide tuning parameters for
1616 -mcpu=power7.
1617
1618 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
1619 (rs6000_cpu_cpp_builtins): Ditto.
1620 (altivec_overloaded_builtins): Ditto.
1621 (altivec_resolve_overloaded_builtin): Ditto.
1622
1623 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
1624 debug switch to disable vectorizing simple math builtin
1625 functions.
1626
1627 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1628 Vectorize simple math builtin functions.
1629 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
1630 hook to vectorize math builtins.
1631 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
1632 (rs6000_builtin_conversion): Add VSX/power7 support.
1633 (rs6000_builtin_vec_perm): Ditto.
1634 (vsplits_constant): Add support for loading up a vector constant
1635 with just the high bit set in each part.
1636 (rs6000_expand_vector_init): Add VSX/power7 support.
1637 (rs6000_expand_vector_set): Ditto.
1638 (rs6000_expand_vector_extract): Ditto.
1639 (rs6000_emit_move): Ditto.
1640 (bdesc_3arg): Ditto.
1641 (bdesc_2arg): Ditto.
1642 (bdesc_1arg): Ditto.
1643 (rs6000_expand_ternop_builtin): Ditto.
1644 (altivec_expand_builtin): Ditto.
1645 (rs6000_expand_unop_builtin): Ditto.
1646 (rs6000_init_builtins): Ditto.
1647 (altivec_init_builtins): Ditto.
1648 (builtin_function_type): Ditto.
1649 (rs6000_common_init_builtins): Ditto.
1650 (rs6000_handle_altivec_attribute); Ditto.
1651 (rs6000_mangle_type): Ditto.
1652 (rs6000_vector_mode_supported_p): Ditto.
1653 (rs6000_mode_dependent_address): Altivec addresses with AND -16
1654 are mode dependent.
1655
1656 * config/rs6000/vsx.md: New file for VSX support.
1657
1658 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
1659 identifing values with just the most significant bit set.
1660 (enum rs6000_builtins): Add builtins for VSX. Add simple math
1661 vectorized builtins.
1662
1663 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
1664 (UNSPEC_VRFIM): Delete.
1665 (splitter for loading up vector with most significant bit): New
1666 splitter for vectorizing copysign.
1667 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
1668 vectorizing simple math functions.
1669 (altivec_vrfip): Add support for vectorizing simple math functions.
1670 (altivec_vrfim): Ditto.
1671 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
1672
1673 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
1674 (power7.md, vsx.md): Include for power7 support.
1675 (copysigndf3): Use VSX instructions if -mvsx.
1676 (negdf2_fpr): Ditto.
1677 (absdf2_fpr): Ditto.
1678 (nabsdf2_fpr): Ditto.
1679 (adddf3_fpr): Ditto.
1680 (subdf3_fpr): Ditto.
1681 (muldf3_fpr): Ditto.
1682 (divdf3_fpr): Ditto.
1683 (fix_truncdfdi2_fpr): Ditto.
1684 (cmpdf_internal1): Ditto.
1685 (fred, fred_fpr): Convert into expander/insn to add VSX support.
1686 (btruncdf2, btruncdf2_fpr): Ditto.
1687 (ceildf2, ceildf2_fpr): Ditto.
1688 (floordf2, floordf2_fpr): Ditto.
1689 (floatdidf2, floatdidf2_fpr): Ditto.
1690 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
1691 (fmsubdf4_fpr): Ditto.
1692 (fnmadddf4_fpr_1): Ditto.
1693 (fnmadddf4_fpr_2): Ditto.
1694 (fnmsubdf4_fpr_1): Ditto.
1695 (fnmsubdf4_fpr_2): Ditto.
1696 (fixuns_truncdfdi2): Add expander for VSX support.
1697 (fix_truncdfdi2): Ditto.
1698 (fix_truncdfsi2): Ditto.
1699 (ftruncdf2): Ditto.
1700 (btruncsf2): Whitespace.
1701 (movdf_hardfloat32): Add support for VSX registers.
1702 (movdf_softfloat32): Ditto.
1703 (movdf_hardfloat64): Ditto.
1704 (movdf_hardfloat64_mfpgpr): Ditto.
1705 (movdf_softfloat64): Ditto.
1706 (movti splitters): Add check for vector registers supporting
1707 TImode in the future.
1708 (bpermd): Add power7 bpermd instruction.
1709
1710 * config/rs6000/altivec.h (vec_div): Define if VSX.
1711 (vec_mul): Ditto.
1712 (vec_msub): Ditto.
1713 (vec_nmadd): Ditto.
1714 (vec_nearbyint): Ditto.
1715 (vec_rint): Ditto.
1716 (vec_sqrt): Ditto.
1717 (all predicates): Use the generic builtin function, and not the V4SF
1718 specific function so that the predicates will work with VSX's V2DF.
1719 (vec_all_*): Ditto.
1720 (vec_any_*): Ditto.
1721
1722 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
1723 Document new VSX functions and types.
1724
1725 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
1726 switches.
1727
1728 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
1729 "wa", and "j" constraints. Modify "v" to talk about Altivec
1730 instead of just vector.
1731
1732 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
1733
1734 PR debug/26475
1735 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
1736 location for phi arguments.
1737 (rewrite_update_phi_arguments): Find locations for reaching defs.
1738 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
1739 Add location to add_phi_arg calls.
1740 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
1741 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
1742 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
1743 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
1744 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
1745 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
1746 * tree-phinodes.c (make_phi_node): Initialize location.
1747 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
1748 (add_phi_arg): Add location parameter.
1749 (remove_phi_arg_num): Move location when moving phi argument.
1750 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
1751 location.
1752 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
1753 slpeel_update_phi_nodes_for_guard1,
1754 slpeel_update_phi_nodes_for_guard2,
1755 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
1756 vect_loop_versioning): Set locations.
1757 * tree-parloops.c (create_phi_for_local_result,
1758 transform_to_exit_first_loop, create_parallel_loop): Add locations.
1759 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
1760 * tree-vect-loop.c (get_initial_def_for_induction,
1761 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
1762 locations.
1763 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
1764 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
1765 (gimple_phi_arg_set_location): New. Set locus.
1766 (gimple_phi_arg_has_location): New. Check for locus.
1767 (redirect_edge_var_map_location): New. Return locus from var_map.
1768 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
1769 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
1770 combining PHI arguments.
1771 (cond_store_replacement): Set location.
1772 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
1773 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
1774 scop_add_exit_phis_edge): Add locations.
1775 * tree-cfgcleanup.c (remove_forwarder_block,
1776 remove_forwarder_block_with_phi): Add locations.
1777 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
1778 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
1779 locations.
1780 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
1781 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
1782 flush_pending_stmts): Add source location.
1783 * lambda-code.c (perfect_nestify): Maintain location stack with argument
1784 stack to preserve locations.
1785 * tree-vect-stmts.c (vectorizable_load): Add location.
1786 * tree-inline.c (copy_phis_for_bb): Copy locus.
1787 (setup_one_parameter): Add call locus to inlined parameter stmts.
1788 (initialize_inlined_parameters): Pass in call location as parameter
1789 assignment locus.
1790 (tree_function_versioning): Pass location to setup_one_parameter.
1791 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
1792 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
1793 copy and edge lists.
1794 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
1795 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
1796 locus parameter and override the stmt default if provided.
1797 (new_elim_graph, clear_elim_graph, delete_elim_graph,
1798 elim_graph_add_edge, elim_graph_remove_succ_edge,
1799 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
1800 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
1801 eliminate_phi): Add locus info in elimination graph for each edge and
1802 value copy.
1803 (insert_backedge_copies): Copy locus if present.
1804 * tree-flow.h (struct _edge_var_map): Add locus field.
1805 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
1806 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
1807 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
1808 locations.
1809 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
1810
1811 2009-07-30 Martin Jambor <mjambor@suse.cz>
1812
1813 PR tree-optimization/40570
1814 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
1815 use inlining loops.
1816
1817 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
1818
1819 * ssa-loop-manip.c: Include langhooks.h.
1820 (rewrite_phi_with_iv): New.
1821 (rewrite_all_phi_nodes_with_iv): New.
1822 (canonicalize_loop_ivs): Move here from tree-parloops.c.
1823 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
1824 * tree-parloops.c (loop_parallel_p): Move out all conditions
1825 except dependency check.
1826 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
1827 (gen_parallel_loop): Call canonicalize_loop_ivs without
1828 reduction_list argument.
1829 (build_new_reduction): New.
1830 (gather_scalar_reductions): New.
1831 (try_get_loop_niter): New.
1832 (try_create_reduction_list): New.
1833 (parallleize_loops): Change the parallel conditions check.
1834 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1835 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
1836
1837 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
1838
1839 * opt-functions.awk (opt_args): Allow argument to be enclosed in
1840 curly braces.
1841 * doc/options.texi (Option properties): Mention new quoting syntax.
1842
1843 2009-07-29 Douglas B Rupp <rupp@gnat.com>
1844
1845 * config/alpha/alpha.c (alpha_start_function):
1846 Handle VMS_DEBUG_MAIN_POINTER
1847 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
1848 * doc/invoke.texi: Document -mdebug-main switch.
1849
1850 2009-07-29 Richard Henderson <rth@redhat.com>
1851
1852 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
1853 (cgraph_create_edge_including_clones): Likewise.
1854 * tree-inline.c (copy_bb): Operate on the correct edges
1855 when updating the callgraph.
1856
1857 2009-07-29 Douglas B Rupp <rupp@gnat.com>
1858
1859 * config/alpha/vms-cc.c: Deleted.
1860 * config/alpha/vms-ld.c: Deleted.
1861 * config/alpha/t-vms64: Moved to config/vms
1862 * config/alpha/vms-crt0-64.c: Moved to config/vms
1863 * config/alpha/vms-crt0.c: Moved to config/vms
1864 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
1865 * config/alpha/vms-psxcrt0.c: Moved to config/vms
1866 * config/alpha/xm-vms.h: Moved to config/vms
1867 * config/alpha/x-vms: Moved to config/vms
1868 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
1869 config/vms/t-vms.
1870 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
1871 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
1872 (version): Set.
1873 * config/vms/t-vms64: Moved here from config/alpha
1874 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1875 (argc,argv,envp): Enforce 32bit malloc'ing.
1876 * config/vms/vms-psxcrt0-64.c: Likewise.
1877 * config/vms/vms-crt0.c: Moved here from config/alpha.
1878 * config/vms/vms-psxcrt0.c: Likewise.
1879 * config/vms/vms-crtl-64.h: New file.
1880 * config/vms/vms-crtl.h: New file.
1881 * config/vms/vms.opt: New file.
1882 * config/vms/xm-vms64.h: New file.
1883 * config/vms/xm-vms.h: Moved here from config/alpha.
1884 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1885 Set.
1886 * config/vms/x-vms: Moved here from config/alpha.
1887 (version, VMS_EXTRA_PARTS): Moved to t-vms.
1888 (vms-ld.o, vms-cc.o): Removed.
1889 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1890
1891 2009-07-29 Douglas B Rupp <rupp@gnat.com>
1892
1893 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1894 correct stack (obvious VMS fix).
1895
1896 2009-07-29 Douglas B Rupp <rupp@gnat.com>
1897
1898 * dwarf2out.c (output_file_names): Output VMS style file name, size,
1899 date, version info if VMS_DEBUGGING_INFO defined.
1900 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1901 size, date calculating code moved here.
1902
1903 2009-07-29 Paul Brook <paul@codesourcery.com>
1904
1905 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1906 do_push/do_pop.
1907
1908 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
1909
1910 PR target/40577
1911 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1912 to DImode when generating insq_le insn.
1913
1914 2009-07-28 Douglas B Rupp <rupp@gnat.com>
1915
1916 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1917 New macro set for VMS_DEBUGGGING_INFO.
1918 (AT_string_form): Use it.
1919
1920 2009-07-28 DJ Delorie <dj@redhat.com>
1921
1922 * config/mep/mep.c (vtext_section): New.
1923 (vftext_section): New.
1924 (ftext_section): New.
1925 (mep_select_section): Add support for functions.
1926 (mep_unique_section): Likewise.
1927 (mep_asm_init_sections): Likewise.
1928 (mep_encode_section_info): Remove it from here.
1929
1930 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1931
1932 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
1933
1934 * tree.h (TREE_DEPRECATED): Document it is used for types too.
1935 (TYPE_VECTOR_OPAQUE): Use default_def_flag
1936
1937 2009-07-28 Douglas B Rupp <rupp@gnat.com>
1938
1939 * dwarf2out.c (output_file_names): Test new macro
1940 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1941 (add_comp_dir_attribute): Likewise.
1942
1943 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
1944
1945 * config/i386/mingw-w64.h (LINK_SPEC): Add
1946 separating space between commands.
1947
1948 2009-07-28 Jan Hubicka <jh@suse.cz>
1949
1950 PR tree-optimization/40759
1951 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1952 for renaming.
1953
1954 2009-07-27 DJ Delorie <dj@redhat.com>
1955
1956 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1957 types are dword-aligned.
1958 (mep_expand_va_start): Likewise.
1959
1960 2009-07-27 Olivier Hainque <hainque@adacore.com>
1961 Douglas B Rupp <rupp@gnat.com>
1962
1963 * convert.c (convert_to_pointer): Don't assume the target
1964 pointer type is POINTER_SIZE long. Fetch its precision instead.
1965
1966 2009-07-27 Douglas B Rupp <rupp@gnat.com>
1967
1968 * system.h (fopen): Undefine if macro.
1969
1970 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1971
1972 * dwarf2out.c (output_cfi_p): Removed.
1973 (output_cfis): New function.
1974 (output_fde): New function, split from output_call_frame_info.
1975 (output_call_frame_info): Use it.
1976 (dwarf2out_switch_text_section): Use output_cfis.
1977
1978 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
1979
1980 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
1981 TARGET_BI_ARCH is specified without enabling SJLJ.
1982 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
1983 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
1984
1985 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
1986
1987 * arm.md (negdi2): Use DImode if forcing a value into a register.
1988
1989 2009-07-26 Ira Rosen <irar@il.ibm.com>
1990
1991 PR tree-optimization/40801
1992 * tree-vect-stmts.c (vectorizable_call): Get previous copy
1993 of vector operand from the previous copy of vector statement.
1994 Pass the correct definition type value to
1995 vect_get_vec_def_for_stmt_copy().
1996
1997 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1998
1999 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
2000 const char ** conversion.
2001
2002 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2003
2004 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
2005 fancy_abort() if !ENABLE_ASSERT_CHECKING.
2006 (gcc_unreachable): Invoke __builtin_unreachable() if
2007 !ENABLE_ASSERT_CHECKING.
2008
2009 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2010
2011 PR rtl-optimization/40445
2012 * emit-rtl.c (next_nonnote_insn_bb): New function.
2013 * rtl.h (next_nonnote_insn_bb): Declare new function.
2014 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
2015 with no successors that is the successor of the ENTRY_BLOCK.
2016 Continue from the top after removing an empty fallthrough block.
2017 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
2018 of next_nonnote_insn.
2019
2020 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2021
2022 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
2023
2024 2009-07-25 Martin Jambor <mjambor@suse.cz>
2025
2026 * c-common.c (c_common_attribute_table): New element for noclone.
2027 (handle_noclone_attribute): New function. Forward-declare.
2028 * tree-inline.c (tree_versionable_function_p): Check for noclone
2029 attribute.
2030 * doc/extend.texi (Labels as Values): Document need for noclone.
2031 (Function Attributes): Document noclone attribute.
2032
2033 2009-07-25 Jakub Jelinek <jakub@redhat.com>
2034
2035 PR rtl-optimization/34999
2036 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
2037 and dw_fde_switched_cold_to_hot fields.
2038 (output_cfi_p): New function.
2039 (output_call_frame_info): If fde->dw_fde_switched_sections,
2040 output 2 FDEs instead of one with corrupted header.
2041 (dwarf2out_do_cfi_startproc): New function.
2042 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
2043 and fde->dw_fde_switched_cold_to_hot.
2044 (dwarf2out_switch_text_section): Compute
2045 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
2046 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
2047 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
2048 Otherwise, compute fde->dw_fde_switch_cfi.
2049
2050 2009-07-24 Cary Coutant <ccoutant@google.com>
2051
2052 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
2053
2054 2009-07-24 Cary Coutant <ccoutant@google.com>
2055
2056 * cfghooks.c (split_block): Copy discriminator to new block.
2057 * tree-cfg.c (assign_discriminator): Check location of last
2058 instruction in block as well as first.
2059
2060 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
2061
2062 * config/i386/linux.c: Use fputs or putc instead of fprintf
2063 where appropriate.
2064 * config/i386/gas.h: Ditto.
2065 * config/i386/x86-64.h: Ditto.
2066 * config/i386/att.h: Ditto.
2067
2068 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2069
2070 * expmed.c (emit_store_flag): Use a recursive call to optimize the
2071 xor case.
2072
2073 2009-07-24 Martin Jambor <mjambor@suse.cz>
2074
2075 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
2076 (ipa_push_func_to_list_1): Declare.
2077 (ipa_push_func_to_list): New function.
2078
2079 * ipa-prop.c (ipa_push_func_to_list_1): New function.
2080 (ipa_init_func_list): Call ipa_push_func_to_list_1.
2081 (ipa_push_func_to_list): Removed.
2082 (ipa_pop_func_from_list): Clear node_enqueued flag.
2083
2084 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
2085
2086 * config/s390/s390.c (override_options): Default
2087 max-unrolled-insns to 100 for z10 tuning.
2088
2089 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2090
2091 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
2092 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
2093 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
2094 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
2095 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
2096 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
2097 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
2098
2099 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
2100
2101 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
2102 use default set in mingw32.h header.
2103 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
2104 64-bit /mingw/include path.
2105 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
2106 path.
2107
2108 2009-07-23 Neil Vachharajani <nvachhar@google.com>
2109
2110 PR rtl-optimization/40209
2111 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
2112
2113 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
2114
2115 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
2116 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
2117 with the rest of string where appropriate. Use fputs or putc
2118 instead of fprintf where appropriate.
2119
2120 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2121 Pat Haugen <pthaugen@us.ibm.com>
2122 Revital Eres <ERES@il.ibm.com>
2123
2124 * config/rs6000/vector.md: New file. Move most of the vector
2125 expander support here from altivec.md to allow for the VSX vector
2126 unit in the future. Add support for secondary_reload patterns.
2127 Rewrite the patterns for vector comparison, and vector comparison
2128 predicate instructions so that the RTL expresses the desired
2129 behavior, instead of using unspec.
2130
2131 * config/rs6000/constraints.md ("f" constraint): Use
2132 rs6000_constraints to hold the precalculated register class.
2133 ("d" constraint): Ditto.
2134 ("wd" constraint): New constraint for VSX.
2135 ("wf" constraint): Ditto.
2136 ("ws" constraint): Ditto.
2137 ("wa" constraint): Ditto.
2138 ("wZ" constraint): Ditto.
2139 ("j" constraint): Ditto.
2140
2141 * config/rs6000/predicates.md (vsx_register_operand): New
2142 predicate for VSX.
2143 (vfloat_operand): New predicate for vector.md.
2144 (vint_operand): Ditto.
2145 (vlogical_operand): Ditto.
2146 (easy_fp_constant): If VSX, 0.0 is an easy constant.
2147 (easy_vector_constant): Add VSX support.
2148 (altivec_indexed_or_indirect_operand): New predicate for
2149 recognizing Altivec style memory references with AND -16.
2150
2151 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
2152 for vector secondary reload support.
2153 (rs6000_vector_reg_class): Delete, replacing it with
2154 rs6000_constraints.
2155 (rs6000_vsx_reg_class): Ditto.
2156 (rs6000_constraints): New array to hold the register classes of
2157 each of the register constraints that can vary at runtime.
2158 (builtin_mode_to_type): New static array for builtin function type
2159 creation.
2160 (builtin_hash_table): New static hash table for builtin function
2161 type creation.
2162 (TARGET_SECONDARY_RELOAD): Define target hook.
2163 (TARGET_IRA_COVER_CLASSES): Ditto.
2164 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
2165 registers are 128 bits if VSX memory reference instructions are used.
2166 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
2167 unit is being used.
2168 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
2169 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
2170 Print several of the scheduling related parameters.
2171 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
2172 rs6000_constraints instead of rs6000_vector_reg_class. Move
2173 -mdebug=reg code to rs6000_debug_reg_global. Add support for
2174 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
2175 Altivec. Add VSX support. Setup for secondary reload support on
2176 Altivec/VSX registers.
2177 (rs6000_override_options): Make power7 set the scheduling groups
2178 like the power5. Add support for new debug switches to override
2179 the scheduling defaults. Temporarily disable -mcpu=power7 from
2180 setting -mvsx. Add support for debug switches -malways-hint,
2181 -msched-groups, and -malign-branch-targets.
2182 (rs6000_buitlin_conversion): Add support for returning unsigned
2183 vector conversion functions to fix regressions due to stricter
2184 type checking.
2185 (rs6000_builtin_mul_widen_even): Ditto.
2186 (rs6000_builtin_mul_widen_odd): Ditto.
2187 (rs6000_builtin_vec_perm): Ditto.
2188 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
2189 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
2190 to zero a register.
2191 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
2192 generated upstream.
2193 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
2194 VSX types for bit operations. Changes to accomidate vector.md.
2195 (bdesc_2arg): Ditto.
2196 (bdesc_1arg): Ditto.
2197 (struct builtin_description_predicates): Rewrite predicate
2198 handling so that RTL describes the operation, instead of passing
2199 the instruction to be used as a string argument.
2200 (bdesc_altivec_preds): Ditto.
2201 (altivec_expand_predicate_builtin): Ditto.
2202 (altivec_expand_builtin): Ditto.
2203 (rs6000_expand_ternop_builtin): Use a switch instead of an if
2204 statement for vsldoi support.
2205 (altivec_expand_ld_builtin): Change to use new names from vector.md.
2206 (altivec_expand_st_builtin): Ditto.
2207 (paired_expand_builtin): Whitespace changes.
2208 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
2209 builtin_mode_to_type table for secondary reload. Call
2210 builtin_function_type to build random builtin functions.
2211 (altivec_init_builtins): Change to use builtin_function_type to
2212 create builtin function types dynamically as we need them.
2213 (builtin_hash_function): New support for hashing the tree types
2214 for builtin function as we need it, rather than trying to build
2215 all of the trees that we need. Add initial preliminary VSX support.
2216 (builtin_function_type): Ditto.
2217 (builtin_function_eq): Ditto.
2218 (builtin_hash_struct): Ditto.
2219 (rs6000_init_builtins): Ditto.
2220 (rs6000_common_init_builtins): Ditto.
2221 (altivec_init_builtins): Ditto.
2222 (rs6000_common_init_builtins): Ditto.
2223 (enum reload_reg_type): New enum for simplifing reg classes.
2224 (rs6000_reload_register_type): Simplify register classes into GPR,
2225 Vector, and other registers. Altivec and VSX addresses in reload.
2226 (rs6000_secondary_reload_inner): Ditto.
2227 (rs6000_ira_cover_classes): New target hook, that returns the
2228 appropriate cover classes, based on -mvsx being used or not.
2229 (rs6000_secondary_reload_class): Add VSX support.
2230 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
2231 (get_vsel_insn): Ditto.
2232 (rs6000_emit_vector_compare): Rewrite vector conditional support
2233 so that where we can, we use RTL operators, instead of blindly use
2234 UNSPEC.
2235 (rs6000_emit_vector_select): Ditto.
2236 (rs6000_emit_vector_cond_expr): Ditto.
2237 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
2238 (create_TOC_reference): Add -mdebug=addr support.
2239 (emit_frame_save): VSX loads/stores need register indexed addressing.
2240
2241 * config/rs6000/rs6000.md: Include vector.md.
2242
2243 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
2244
2245 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2246 support for V2DI, V2DF in logical, permute, select operations.
2247
2248 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
2249 switch for vsx/power7.
2250 (-mvsx-scalar-memory): Ditto.
2251 (-mvsx-align-128): Ditto.
2252 (-mallow-movmisalign): Ditto.
2253 (-mallow-df-permute): Ditto.
2254 (-msched-groups): Ditto.
2255 (-malways-hint): Ditto.
2256 (-malign-branch-targets): Ditto.
2257
2258 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
2259 hook instead.
2260 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
2261 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
2262 (rs6000_vector_reg_class): Delete.
2263 (rs6000_vsx_reg_class): Ditto.
2264 (enum rs6000_reg_class_enum): New enum for the constraints that
2265 vary based on target switches.
2266 (rs6000_constraints): New array to hold the register class for all
2267 of the register constraints that vary based on the switches used.
2268 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
2269 (enum rs6000_builtins): Add unsigned varients for the builtin
2270 declarations returned by target hooks for expanding multiplies,
2271 select, and permute operations. Add VSX builtins.
2272 (enum rs6000_builtin_type_index): Add entries for VSX.
2273 (V2DI_type_node): Ditto.
2274 (V2DF_type_node): Ditto.
2275 (unsigned_V2DI_type_node): Ditto.
2276 (bool_long_type_node): Ditto.
2277 (intDI_type_internal_node): Ditto.
2278 (uintDI_type_internal_node): Ditto.
2279 (double_type_internal_node): Ditto.
2280
2281 * config/rs6000/altivec.md (whole file): Move all expanders to
2282 vector.md from altivec.md. Rename insn matching functions to be
2283 altivec_foo.
2284 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
2285 (altivec_vcmp*): Ditto.
2286 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
2287 (VM): New iterator for moves that includes the VSX types.
2288 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
2289 (altivec_vperm_<mode>_uns): New, for unsigned types.
2290 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
2291 (altivec_eq<mode>): Ditto.
2292 (altivec_gt<mode>): Ditto.
2293 (altivec_gtu<mode>): Ditto.
2294 (altivec_eqv4sf): Ditto.
2295 (altivec_gev4sf): Ditto.
2296 (altivec_gtv4sf): Ditto.
2297 (altivec_vcmpbfp_p): Ditto.
2298
2299 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
2300
2301 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
2302 unsigned HWI.
2303
2304 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
2305
2306 PR target/40832
2307 * config/i386/i386.c (output_387_ffreep): Rewrite to use
2308 ASM_SHORT instead of .word.
2309 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
2310 instead of .word in asm template.
2311
2312 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
2313
2314 PR target/37488
2315 * ira-lives.c (bb_has_abnormal_call_pred): New function.
2316 (process_bb_node_lives): Use it.
2317
2318 * ira.c (setup_cover_and_important_classes): Don't setup
2319 ira_important_class_nums. Add cover classes to the end of
2320 important classes.
2321 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
2322 New.
2323 (find_reg_class_closure): Use reorder_important_classes.
2324
2325 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
2326
2327 * config/i386/i386.c (i386_ira_cover_classes): New function.
2328 (TARGET_IRA_COVER_CLASSES): Redefine.
2329
2330 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
2331 importance of order of cover classes in the array.
2332
2333 2009-07-22 Diego Novillo <dnovillo@google.com>
2334
2335 * tree-pass.h (TDF_EH): Define.
2336 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
2337 contains TDF_EH, print the EH region number holding GS.
2338 * tree-dump.c (dump_options): Add "eh".
2339 * doc/invoke.texi: Document it.
2340
2341 2009-07-22 Doug Kwan <dougkwan@google.com>
2342
2343 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
2344
2345 2009-07-22 Michael Matz <matz@suse.de>
2346
2347 PR tree-optimization/35229
2348 PR tree-optimization/39300
2349
2350 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
2351 (inhibit_phi_insertion): New function.
2352 (insert_into_preds_of_block): Call it for REFERENCEs.
2353 (init_pre): Initialize and finalize scalar evolutions.
2354 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
2355
2356 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
2357
2358 * config/i386/predicates.md (zero_extended_scalar_load_operand):
2359 Use CONST_VECTOR_NUNITS to determine number of elements.
2360
2361 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
2362
2363 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
2364 (U, W): Constraints are now deprecated and will be removed if we
2365 run out of letters.
2366 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
2367 the file.
2368 ("prefetch"): Add the stcmh instruction for prefetching.
2369 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
2370 changes.
2371 (s390_short_displacement): Return always true if compiling for
2372 machines not providing the long displacement facility.
2373 (s390_mem_constraint): Support the new constraint letter Z.
2374 (s390_check_qrst_address): New function.
2375
2376 2009-07-21 DJ Delorie <dj@redhat.com>
2377
2378 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
2379 alone too.
2380
2381 2009-07-21 Jason Merrill <jason@redhat.com>
2382
2383 * c-common.c (max_tinst_depth): Increase default to 1024.
2384
2385 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
2386
2387 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
2388 (vec_unpacku_float_lo_v4si): Ditto.
2389
2390 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
2391
2392 PR target/40811
2393 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
2394 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
2395 (builtin_description): Add __builtin_ia32_cvtudq2ps.
2396 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
2397
2398 2009-07-21 Jakub Jelinek <jakub@redhat.com>
2399
2400 PR tree-optimization/40813
2401 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
2402 it.
2403
2404 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
2405
2406 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
2407 with a NOP_EXPR if needed.
2408
2409 2009-07-21 Paul Brook <paul@codesourcery.com>
2410
2411 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
2412 Terminate debug dump with newline.
2413
2414 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2415
2416 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
2417 Cast "1" to unsigned HOST_WIDE_INT.
2418 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
2419 deposit length to the maximum length - lsb. Extend length if
2420 HOST_BITS_PER_WIDE_INT is 32.
2421
2422 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
2423
2424 * cgraph.h (constant_pool_htab): New function.
2425 (constant_descriptor_tree): Move from varasm.c.
2426 * varasm.c (constant_pool_htab): New function.
2427 (constant_descriptor_tree): Move to cgraph.h.
2428
2429 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
2430
2431 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
2432
2433 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
2434
2435 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
2436 $(VARRAY_H).
2437
2438 2009-07-20 Xinliang David Li <davidxl@google.com>
2439
2440 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
2441
2442 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
2443
2444 * config/mips/mips.md (move_type): Add arith.
2445 (type): Handle arith.
2446 (zero_extendsidi2): Rename this into ...
2447 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
2448 (zero_extendsidi2): New expander.
2449 (*zero_extendsidi2_dext): New pattern.
2450
2451 2009-07-20 Nick Clifton <nickc@redhat.com>
2452
2453 * config.gcc (mips64-*-*): Add definition of tm_defines in order
2454 to set MIPS_ABI_DEFAULT.
2455 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
2456
2457 2009-07-20 Jakub Jelinek <jakub@redhat.com>
2458
2459 * tree-object-size.c (addr_object_size): Handle unions with
2460 array in it as last field of structs in __bos (, 1) as __bos (, 0).
2461
2462 PR tree-optimization/40792
2463 * tree.c (build_function_type_skip_args): Remove bogus assert.
2464
2465 2009-07-20 Jan Hubicka <jh@suse.cz>
2466 Martin Jambor <mjambor@suse.cz>
2467
2468 * cgraph.h (combined_args_to_skip): New field.
2469 * cgraph.c (cgraph_create_virtual_clone): Properly handle
2470 combined_args_to_skip and args_to_skip.
2471 * tree-inline.c (update_clone_info): New function.
2472 (tree_function_versioning): Call update_clone_info.
2473 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
2474 functions.
2475 (cgraph_materialize_all_clones): More extensive dumping, working
2476 with combined_args_to_skip rather than args_to_skip.
2477
2478 2009-07-20 Ira Rosen <irar@il.ibm.com>
2479
2480 * tree-vectorizer.h (vectorizable_condition): Add parameters.
2481 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
2482 (get_initial_def_for_reduction): Likewise.
2483 (vectorizable_reduction): Skip the check of first operand in case
2484 of COND_EXPR. Add check that it is outer loop vectorization if
2485 nested cycle was detected. Call vectorizable_condition() for
2486 COND_EXPR. If reduction epilogue cannot be created do not fail for
2487 nested cycles (if it is not double reduction). Assert that there
2488 is only one type in the loop in case of COND_EXPR. Call
2489 vectorizable_condition() to vectorize COND_EXPR.
2490 * tree-vect-stmts.c (vectorizable_condition): Update comment.
2491 Add parameters. Allow nested cycles if called from
2492 vectorizable_reduction(). Use reduction vector variable if provided.
2493 (vect_analyze_stmt): Call vectorizable_reduction() before
2494 vectorizable_condition().
2495 (vect_transform_stmt): Update call to vectorizable_condition().
2496
2497 2009-07-20 Christian Bruel <christian.bruel@st.com>
2498
2499 * config/sh/sh.opt (-mfmovd): Resurrect and document.
2500 * doc/invoke.texi (-mfmovd): Likewise.
2501 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
2502
2503 2009-07-20 Jan Hubicka <jh@suse.cz>
2504
2505 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
2506 when handling SSA name.
2507
2508 2009-07-19 Jan Hubicka <jh@suse.cz>
2509
2510 PR tree-optimization/40676
2511 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
2512 virtual PHIs in empty BBs.
2513
2514 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
2515
2516 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
2517 re-expanded the compound use gen_lowpart instead to convert to the
2518 desired mode.
2519
2520 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
2521
2522 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
2523 OUTER_CONST arguments.
2524 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
2525 the new wider mode will be masked off.
2526 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
2527
2528 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
2529
2530 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
2531 high-order bits are zero.
2532
2533 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
2534
2535 * combine.c (simplify_shift_const_1): Split code to determine
2536 shift_mode into ...
2537 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
2538 new bits shifted in are identical to the old sign bit.
2539
2540 2009-07-18 Richard Guenther <rguenther@suse.de>
2541
2542 PR c/40787
2543 * gimplify.c (gimplify_call_expr): Reject code using results from
2544 functions returning void.
2545
2546 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
2547
2548 * doc/md.texi: Document the new PowerPC "es" constraint.
2549 Document that "m" can include automodified addresses on this target,
2550 and explain how %U must be used. Extend the "Q" and "Z" documentation
2551 to suggest "es" as well as "m".
2552 * config/rs6000/constraints.md (es): New memory constraint.
2553 (Q, Z): Update strings to match new documentation.
2554
2555 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
2556
2557 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
2558 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
2559 * config/rs6000/predicates.md (volatile_mem_operand): Use
2560 offsettable_nonstrict_memref_p.
2561 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
2562 (*floatunssidf2_internal): Likewise.
2563 (*fix_truncdfsi2_internal): Likewise.
2564 (*fix_trunctfsi2_internal): Likewise.
2565
2566 2009-07-17 Anatoly Sokolov <aesok@post.ru>
2567
2568 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
2569 atmega32u2 devices.
2570 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2571
2572 2009-07-17 Richard Guenther <rguenther@suse.de>
2573
2574 PR c/40401
2575 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
2576 (pass_warn_unused_result): Likewise.
2577 (TODO_set_props): Remove.
2578 * omp-low.c (diagnose_omp_structured_block_errors): Change to
2579 run as a pass.
2580 (pass_diagnose_omp_blocks): Define.
2581 * c-decl.c (pop_file_scope): Do not finalize the CU here.
2582 (c_gimple_diagnostics_recursively): Remove.
2583 (finish_function): Do not call it.
2584 (c_write_global_declarations): Continue after errors.
2585 Finalize the CU here.
2586 * c-gimplify.c (c_genericize): Do not gimplify here.
2587 * c-common.c (c_warn_unused_result): Move ...
2588 * tree-cfg.c (do_warn_unused_result): ... here.
2589 (run_warn_unused_result): New function.
2590 (gate_warn_unused_result): New function.
2591 (pass_warn_unused_result): New pass.
2592 * c-common.h (c_warn_unused_result): Remove.
2593 * flags.h (flag_warn_unused_result): Declare.
2594 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
2595 * opts.c (flag_warn_unused_result): Initialize to false.
2596 * toplev.c (compile_file): Add comment.
2597 * omp-low.c (create_omp_child_function): Do not register
2598 the function with the frontend.
2599 (diagnose_omp_structured_block_errors): Prepare to be
2600 called as optimization pass.
2601 (gate_diagnose_omp_blocks): New function.
2602 (pass_diagnose_omp_blocks): New pass.
2603 * cgraph.h (cgraph_optimize): Remove.
2604 (cgraph_analyze_function): Likewise.
2605 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
2606 * cgraphunit.c (cgraph_lower_function): Lower nested functions
2607 before their parents here.
2608 (cgraph_finalize_function): Not here.
2609 (cgraph_analyze_function): Gimplify functions here.
2610 (cgraph_finalize_compilation_unit): Continue after errors.
2611 Optimize the callgraph from here.
2612 (cgraph_optimize): Make static.
2613 * langhooks.c (write_global_declarations): Finalize the CU.
2614 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
2615 (gimplify_function_tree): Assert we gimplify only once.
2616 Set PROP_gimple_any property.
2617 * tree-nested.c (gimplify_all_functions): New function.
2618 (lower_nested_functions): Gimplify all nested functions.
2619 * gimple.h (diagnose_omp_structured_block_errors): Remove.
2620 * passes.c (init_optimization_passes): Add pass_warn_unused_result
2621 and pass_diagnose_omp_blocks after gimplification. Do not
2622 set TODO_set_props on all_lowering_passes.
2623 (execute_one_pass): Do not handle TODO_set_props.
2624 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
2625 (gimplify.o): Add tree-pass.h dependency.
2626 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
2627 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
2628 (unsave_r): Likewise.
2629 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
2630 temporary variable.
2631
2632 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
2633
2634 * doc/service.texi (Service): Restore previously removed link,
2635 which isn't broken after all.
2636
2637 2009-07-17 Richard Guenther <rguenther@suse.de>
2638
2639 PR tree-optimization/40321
2640 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
2641 PHI nodes to the maximal set.
2642 (make_values_for_phi): Add PHI arguments to the maximal set.
2643 (execute_pre): Dump PHI_GEN and the maximal set.
2644
2645 2009-07-17 Jakub Jelinek <jakub@redhat.com>
2646
2647 PR c++/40780
2648 * gimplify.c (gimplify_conversion): Don't change non-conversions into
2649 VIEW_CONVERT_EXPR.
2650
2651 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
2652
2653 * doc/extend.texi (Nested Functions): Replace broken link with
2654 textual reference.
2655 * doc/service.texi (Service): Remove broken link.
2656
2657 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
2658
2659 PR bootstrap/40781
2660 * builtins.c (expand_builtin_memcmp): Use loc instead of
2661 EXPR_LOCATION (exp).
2662 (expand_builtin_strncmp): Likewise.
2663
2664 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
2665 Manuel López-Ibáñez <manu@gcc.gnu.org>
2666
2667 PR 40435
2668 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
2669 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
2670 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
2671 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
2672 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
2673 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
2674 tree-inline.c, c-common.c, c-common.h, gimple.c,
2675 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
2676 convert.c: Add location argument to fold_{unary,binary,ternary},
2677 fold_build[123], build_call_expr, build_size_arg,
2678 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
2679 fold_build1_initializer, fold_build2_initializer,
2680 fold_build3_initializer, fold_build_call_array,
2681 fold_build_call_array_initializer, fold_single_bit_test,
2682 omit_one_operand, omit_two_operands, invert_truthvalue,
2683 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
2684 combine_comparisons, fold_builtin_*, fold_call_expr,
2685 build_range_check, maybe_fold_offset_to_address, round_up,
2686 round_down.
2687
2688 2009-07-16 Jason Merrill <jason@redhat.com>
2689
2690 PR libstdc++/37907
2691 * c-common.c (c_common_reswords): Add __is_standard_layout
2692 and __is_trivial.
2693 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
2694 * doc/implement-cxx.texi: New.
2695 * doc/gcc.texi: Include it.
2696
2697 2009-07-16 DJ Delorie <dj@redhat.com>
2698
2699 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
2700 compares that may be indirectly affected by previous instructions.
2701
2702 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2703
2704 * builtins.c (do_mpc_arg2): New.
2705 (fold_builtin_2): Fold builtin cpow.
2706 * real.h (HAVE_mpc_pow): New.
2707
2708 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
2709
2710 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
2711 comparison to skip unprofitable schedule
2712
2713 2009-07-16 Simon Baldwin <simonb@google.com>
2714
2715 * gcc.c (option_map): New flag -no-canonical-prefixes.
2716 * (display_help): Print help text for new flag.
2717 * (process_command): Move options translation and language specifics
2718 and handle new flag early. Use it to set a function pointer to a
2719 prefix builder. Replace make_relative_prefix calls with calls to
2720 the function pointed to. Ignore new flag in regular options handling.
2721 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
2722
2723 2009-07-15 DJ Delorie <dj@redhat.com>
2724
2725 * config/mep/mep.md (sibcall_internal): Change register to avoid
2726 argument registers.
2727 (sibcall_value_internal): Likewise.
2728
2729 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2730
2731 PR rtl-optimization/40710
2732 * resource.c (mark_target_live_regs): Reset DF problem to LR.
2733
2734 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
2735
2736 * config/mips/mips.md (*extenddi_truncate<mode>,
2737 *extendsi_truncate<mode>): Change type attribute to move_type
2738 with shift_shift. Split out code handling exts from here ...
2739 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
2740 pattern.
2741 (*extendhi_truncateqi): Change type attribute to move_type with
2742 shift_shift. Split out code handling exts from here ...
2743 (*extendhi_truncateqi_exts): ... to this new pattern.
2744
2745 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
2746
2747 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
2748 instead of "and" with inverted sign bit mask value. Use
2749 "nonimmediate_operand" for operand 1 and operand 2 predicate.
2750 Allocate registers only for operand 4 and operand 5.
2751
2752 2009-07-15 Jakub Jelinek <jakub@redhat.com>
2753
2754 PR middle-end/40747
2755 * fold-const.c (fold_cond_expr_with_comparison): When folding
2756 < and <= to MIN, make sure the MIN uses the same type as the
2757 comparison's operands.
2758
2759 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
2760
2761 * arm.md (ior_xor): New code iterator.
2762 (split for ior/xor with shift and zero-extend): New split pattern.
2763 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
2764
2765 2009-07-15 Richard Guenther <rguenther@suse.de>
2766
2767 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
2768 offset member.
2769
2770 2009-07-15 Richard Guenther <rguenther@suse.de>
2771
2772 PR middle-end/40753
2773 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
2774
2775 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2776
2777 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
2778 handle 2.6.30 kernel.
2779
2780 2009-07-15 DJ Delorie <dj@redhat.com>
2781
2782 * config/mep/mep.md (sibcall_internal): Change register to allow
2783 for 24-bit addresses.
2784 (sibcall_value_internal): Likewise.
2785
2786 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
2787
2788 * doc/invoke.texi: Added descriptions of the scheduling heuristics
2789 that are enabled/disabled by the flags introduced by a previous patch.
2790
2791 2009-07-14 DJ Delorie <dj@redhat.com>
2792
2793 * config/mep/mep.md (sibcall_internal): Include non-toggling
2794 non-jmp case.
2795 (sibcall_value_internal): Likewise.
2796
2797 2009-07-14 Taras Glek <tglek@mozilla.com>
2798 Rafael Espindola <espindola@google.com>
2799
2800 * doc/sourcebuild.texi: Document install-plugin target.
2801 * configure.ac: Added install-plugin target to language makefiles.
2802 * configure: Regenerate.
2803 * Makefile.in: (install-plugin): Install more headers,
2804 depend on lang.install-plugin.
2805
2806 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2807
2808 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
2809 translation.
2810
2811 2009-07-14 DJ Delorie <dj@redhat.com>
2812
2813 * config/mep/mep.c (mep_vliw_jmp_match): New function.
2814 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
2815 * config/mep/mep.md (sibcall_internal): Change test from
2816 mep_vliw_mode_match to mep_vliw_jmp_match.
2817 (sibcall_value_internal): Likewise.
2818
2819 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
2820
2821 * config/i386/sse.md (copysign<mode>3): New expander.
2822 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
2823 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
2824 Use ix86_build_const_vector.
2825 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
2826 IX86_BUILTIN_CPYSGNPD.
2827 (builtin_description): Add __builtin_ia32_copysignps and
2828 __builtin_ia32_copysignpd.
2829 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
2830 and BUILT_IN_COPYSIGNF.
2831
2832 2009-07-13 Jason Merrill <jason@redhat.com>
2833
2834 * builtins.c (can_trust_pointer_alignment): New fn.
2835 (get_pointer_alignment): Factor it out from here.
2836 * tree.h: Declare it.
2837
2838 2009-07-14 David Edelsohn <edelsohn@gnu.org>
2839
2840 * config/rs6000/predicates.md (offsettable_mem_operand): Test
2841 RTX_AUTOINC class.
2842
2843 2009-07-14 Dodji Seketeli <dodji@redhat.com>
2844
2845 PR debug/40705
2846 PR c++/403057
2847 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
2848
2849 2009-07-14 Richard Guenther <rguenther@suse.de>
2850 Andrey Belevantsev <abel@ispras.ru>
2851
2852 PR middle-end/40745
2853 * cfgexpand.c (partition_stack_vars): Do not bother to update
2854 alias information when not optimizing.
2855
2856 2009-07-14 Richard Guenther <rguenther@suse.de>
2857 Andrey Belevantsev <abel@ispras.ru>
2858
2859 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
2860 (pt_solution_set): Likewise.
2861 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
2862 * tree-ssa-structalias.c (pt_solution_set): New function.
2863 * final.c (rest_of_clean_state): Free SSA data structures.
2864 * print-rtl.c (print_decl_name): Remove.
2865 (print_mem_expr): Implement in terms of print_generic_expr.
2866 * alias.c (ao_ref_from_mem): New function.
2867 (rtx_refs_may_alias_p): Likewise.
2868 (true_dependence): Query alias-export info.
2869 (canon_true_dependence): Likewise.
2870 (write_dependence_p): Likewise.
2871 * tree-dfa.c (get_ref_base_and_extent): For void types leave
2872 size unknown.
2873 * emit-rtl.c (component_ref_for_mem_expr): Remove.
2874 (mem_expr_equal_p): Use operand_equal_p.
2875 (set_mem_attributes_minus_bitpos): Do not use
2876 component_ref_for_mem_expr.
2877 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2878 (update_alias_info_with_stack_vars): Likewise.
2879 (partition_stack_vars): Call update_alias_info_with_stack_vars.
2880 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2881 explicitly nor clear stmt operands.
2882 Free the decl-to-pointer map.
2883 * tree-optimize.c (execute_free_datastructures): Do not free
2884 SSA data structures here.
2885 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2886 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2887 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2888 dependencies.
2889 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2890
2891 2009-07-13 DJ Delorie <dj@redhat.com>
2892
2893 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2894 unrolling at the right iteration count.
2895
2896 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2897 calculations.
2898
2899 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
2900
2901 * haifa-sched.c (rank_for_schedule): Introduced flags to
2902 enable/disable individual scheduling heuristics.
2903 * common.opt: Introduced flags to enable/disable individual
2904 heuristics in the scheduler.
2905 * doc/invoke.texi: Introduced flags to enable/disable individual
2906 heuristics in the scheduler.
2907
2908 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
2909
2910 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2911 config/i386/mingw-tls.c.
2912 * config/i386/mingw-tls.c: Removed.
2913
2914 2009-07-13 Ira Rosen <irar@il.ibm.com>
2915
2916 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
2917 checks access only relevant statements.
2918 (vectorizable_reduction): Likewise.
2919
2920 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
2921
2922 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2923 just for 32-bit case.
2924
2925 2009-07-12 Jan Hubicka <jh@suse.cz>
2926
2927 PR tree-optimization/40585
2928 * except.c (expand_resx_expr): When there already is resume
2929 instruction, produce linked list.
2930 (build_post_landing_pads): Assert that resume is empty.
2931 (connect_post_landing_pads): Handle resume lists.
2932 (dump_eh_tree): Dump resume list.
2933
2934 2009-07-12 Ira Rosen <irar@il.ibm.com>
2935
2936 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2937 with additional argument.
2938 * tree-vectorizer.h (enum vect_def_type): Add
2939 vect_double_reduction_def.
2940 (vect_is_simple_reduction): Add argument.
2941 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
2942 indentation.
2943 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2944 vect_is_simple_reduction with additional argument.
2945 (vect_analyze_loop_operations): Handle exit phi nodes in case of
2946 double reduction.
2947 (reduction_code_for_scalar_code): Handle additional codes by
2948 returning ERROR_MARK for them. Fix comment and indentation.
2949 (vect_is_simple_reduction): Fix comment, add argument to specify
2950 double reduction. Detect double reduction.
2951 (get_initial_def_for_induction): Fix indentation.
2952 (get_initial_def_for_reduction): Fix comment and indentation.
2953 Handle double reduction. Create initial definitions that do not
2954 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2955 (vect_create_epilog_for_reduction): Fix comment, add argument to
2956 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2957 epilogue result extraction. Create double reduction phi node and
2958 replace relevant uses.
2959 (vectorizable_reduction): Call vect_is_simple_reduction with
2960 additional argument. Fix indentation. Update epilogue code treatment
2961 according to the changes in reduction_code_for_scalar_code. Check
2962 for double reduction. Call vect_create_epilog_for_reduction with
2963 additional argument.
2964 * tree-vect-stmts.c (process_use): Handle double reduction, update
2965 documentation.
2966 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
2967 (vect_get_vec_def_for_operand): Likewise.
2968
2969 2009-07-12 Danny Smith <dansmister@gmail.com>
2970
2971 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
2972 dllexport if !TREE_PUBLIC.
2973 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
2974
2975 2009-07-11 Anatoly Sokolov <aesok@post.ru>
2976
2977 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
2978 (avr_extra_arch_macro) Remove declatation.
2979 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
2980 (avr_extra_arch_macro) Declare as static.
2981 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
2982
2983 2009-07-11 Jan Hubicka <jh@suse.cz>
2984
2985 PR middle-end/48388
2986 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2987
2988 2009-07-11 Jakub Jelinek <jakub@redhat.com>
2989
2990 PR debug/40713
2991 * dwarf2out.c (dw_fde_struct): Add in_std_section and
2992 cold_in_std_section bits.
2993 (dwarf2out_begin_prologue): Initialize them.
2994 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
2995 if already covered by text_section or cold_text_section range.
2996
2997 PR rtl-optimization/40667
2998 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
2999 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
3000 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
3001 * config/i386/i386.c (ix86_minimum_alignment): New function.
3002 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
3003 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
3004 * emit-rtl.c (gen_reg_rtx): Likewise.
3005 * function.c (assign_parms): Likewise. If nominal_type needs
3006 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
3007 rather than passed_type's alignment.
3008
3009 PR target/40668
3010 * function.c (assign_parm_setup_stack): Adjust
3011 MEM_OFFSET (data->stack_parm) if promoted_mode is different
3012 from nominal_mode on big endian.
3013
3014 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
3015
3016 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
3017
3018 2009-07-10 DJ Delorie <dj@redhat.com>
3019
3020 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
3021
3022 2009-07-10 Mark Mitchell <mark@codesourcery.com>
3023
3024 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
3025 attribute.
3026 (thumb2_cbnz): Likewise.
3027
3028 2009-07-10 David Daney <ddaney@caviumnetworks.com>
3029
3030 PR target/39079
3031 * config.gcc (supported_defaults): Add synci.
3032 (with_synci): Add validation.
3033 (all_defaults): Add synci.
3034 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
3035 ISA_HAS_SYNCI.
3036 (synci): Same.
3037 * config/mips/mips.opt (msynci): New option.
3038 * config/mips/mips.c (mips_override_options): Warn on use of
3039 -msynci for targets that do now support it.
3040 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3041 msynci.
3042 * gcc/doc/invoke.texi (-msynci): Document the new option.
3043 * doc/install.texi (--with-synci): Document the new option.
3044
3045 2009-07-10 Richard Guenther <rguenther@suse.de>
3046
3047 PR tree-optimization/40496
3048 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
3049 the PHI result with a compatible type.
3050
3051 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3052
3053 PR 25509
3054 PR 40614
3055 * c.opt (Wunused-result): New.
3056 * doc/invoke.texi: Document it.
3057 * c-common.c (c_warn_unused_result): Use it.
3058
3059 2009-07-09 DJ Delorie <dj@redhat.com>
3060
3061 * targhooks.c (default_target_can_inline_p): Rename from
3062 default_target_option_can_inline_p.
3063 * targhooks.h (default_target_can_inline_p): Likewise.
3064 * target-def.h (TARGET_CAN_INLINE_P): Rename from
3065 TARGET_OPTION_CAN_INLINE_P.
3066 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
3067 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
3068 (mep_target_can_inline_p): Rename from
3069 mep_target_option_can_inline_p.
3070
3071 PR target/40626
3072 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
3073 registers used to pass vectors.
3074
3075 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
3076
3077 2009-07-09 Tom Tromey <tromey@redhat.com>
3078
3079 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
3080 * config/mmix/mmix.c: Include dwarf2.h.
3081 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
3082 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
3083 * config/sh/sh.c: Include dwarf2.h.
3084 * config/i386/i386.c: Include dwarf2.h.
3085 * Makefile.in (DWARF2_H): Remove 'elf'.
3086 * except.c: Include dwarf2.h.
3087 * unwind-dw2.c: Include dwarf2.h.
3088 * dwarf2out.c: Include dwarf2.h.
3089 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
3090 * unwind-dw2-fde.c: Include dwarf2.h.
3091 * dwarf2asm.c: Include dwarf2.h.
3092
3093 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3094
3095 * haifa-sched.c (insn_finishes_cycle_p): New static function.
3096 (max_issue): Use it.
3097 * sched-int.h (struct sched_info: insn_finishes_block_p): New
3098 scheduler hook.
3099 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
3100 (region_sched_info): Update.
3101 * sched-ebb.c (ebb_sched_info): Update.
3102 * modulo-sched.c (sms_sched_info): Update.
3103 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
3104
3105 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3106
3107 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
3108
3109 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
3110
3111 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
3112
3113 2009-07-09 Jakub Jelinek <jakub@redhat.com>
3114
3115 PR middle-end/40692
3116 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
3117 arg1 with arg01 if arg1 is already INTEGER_CST.
3118
3119 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
3120
3121 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
3122 Transform (and (truncate)) into (truncate (and)).
3123
3124 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
3125
3126 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
3127 creating LHS paradoxical subregs. Fix surrounding returns to
3128 use NULL_RTX rather than 0.
3129
3130 2009-07-08 DJ Delorie <dj@redhat.com>
3131
3132 * config/mep/mep.c: (mep_option_can_inline_p): New.
3133 (TARGET_OPTION_CAN_INLINE_P): Define.
3134
3135 2009-07-08 Mark Wielaard <mjw@redhat.com>
3136
3137 PR debug/40659
3138 * dwarf2out.c (add_data_member_location_attribute): When we have
3139 only a constant offset don't emit a new location description using
3140 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
3141 dwarf_version > 2.
3142
3143 2009-07-08 Richard Henderson <rth@redhat.com>
3144
3145 PR target/38900
3146 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
3147 (enum reg_class): Add CLOBBERED_REGS.
3148 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3149 * config/i386/i386.c (ix86_conditional_register_usage): Moved
3150 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
3151 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
3152 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
3153 force 64-bit sibcalls into R11.
3154 * config/i386/constraints.md (U): New constraint.
3155 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
3156 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
3157 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
3158
3159 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
3160
3161 * basic-block.h (dump_regset, debug_regset): Remove duplicate
3162 prototypes.
3163 * c-objc-common.h (c_initialize_diagnostics): Ditto.
3164 * ebitmap.h (dump_ebitmap): Ditto.
3165 * optabs.h (optab_libfunc): Ditto.
3166 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
3167 * tree-flow.h (vect_can_force_dr_alignment_p,
3168 get_vectype_for_scalar_type): Ditto.
3169 (vectorize_loops): Move prototype to ...
3170 * tree-vectorizer.h: ... here. Also, adjust comment.
3171 (vect_set_verbosity_level): Remove duplicate prototype.
3172 * tree-ssa-loop.c: Include tree-vectorizer.h.
3173 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
3174
3175 2009-07-08 Nick Clifton <nickc@redhat.com>
3176
3177 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
3178 forward slash.
3179
3180 2009-07-08 DJ Delorie <dj@redhat.com>
3181
3182 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
3183 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
3184 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
3185 written to.
3186 * config/mep/intrinsics.md: Regenerated.
3187 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
3188 registers when asm() or calls are detected.
3189
3190 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3191
3192 PR c++/31246
3193 * gimplify.c (gimplify_expr): Propagate no_warning flag when
3194 gimplifying.
3195 * gimple (gimple_build_call_from_tree): Likewise.
3196 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
3197 no_warning flag before warning.
3198
3199 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3200
3201 * tree.c (set_expr_locus): Remove.
3202 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
3203 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
3204 EXPR_LOCATION.
3205 * gimplify.c (internal_get_tmp_var): Likewise.
3206 (gimplify_call_expr): Likewise.
3207 (gimplify_one_sizepos): Likewise.
3208
3209 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
3210
3211 PR debug/40666
3212 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
3213 to variables for debugging purposes.
3214
3215 2009-06-23 Mark Loeser <mark@halcy0n.com>
3216
3217 PR build/40010
3218 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
3219
3220 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3221
3222 * pretty-print.c (pp_base_format): Remove %J.
3223 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3224 gcc_cxxdiag_char_table): Likewise.
3225 (init_dynamic_diag_info): Likewise.
3226
3227 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3228
3229 * pretty-print.c (pp_base_format): Remove %H.
3230 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3231 gcc_cxxdiag_char_table): Likewise.
3232 (init_dynamic_diag_info): Likewise.
3233 * config/mep/mep.c (mep_select_section): Likewise.
3234
3235 2009-07-07 Duncan Sands <baldrick@free.fr>
3236
3237 * final.c (pass_clean_state): Give the pass a name.
3238 * passes.c (pass_rest_of_compilation): Likewise.
3239 * tree-optimize.c (pass_all_optimizations): Likewise.
3240
3241 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
3242
3243 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
3244 an extra 'decl' for error_at.
3245
3246 2009-07-07 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR middle-end/40669
3249 * tree-tailcall.c (adjust_return_value_with_ops,
3250 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
3251 if it has complex or vector type.
3252
3253 2009-07-07 Olivier Hainque <hainque@adacore.com>
3254
3255 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
3256 pthread symbols.
3257
3258 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
3259
3260 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
3261
3262 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3263
3264 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
3265 * c-decl.c: Likewise.
3266 * function.c: Likewise.
3267 * varasm.c: Likewise.
3268 * tree-ssa.c: Likewise.
3269 * c-common.c: Likewise.
3270 * tree-cfg.c: Likewise.
3271 * config/spu/spu.c: Likewise.
3272 * config/ia64/ia64.c: Likewise.
3273 * config/v850/v850.c: Likewise.
3274
3275 2009-07-06 DJ Delorie <dj@redhat.com>
3276
3277 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
3278 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
3279 unspecified accesses to control registers.
3280 * config/mep/intrinsics.md: Regenerate.
3281 * config/mep/intrinsics.h: Regenerate.
3282 * config/mep/mep-intrin.h: Regenerate.
3283
3284 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3285
3286 * c-lex.c: Replace %H by an explicit location. Update all calls.
3287 * c-common.c: Likewise.
3288 * c-decl.c: Likewise.
3289 * c-typeck.c: Likewise.
3290 * fold-const.c: Likewise.
3291 * gimplify.c: Likewise.
3292 * stmt.c: Likewise.
3293 * tree-cfg.c: Likewise.
3294 * tree-ssa-loop-niter.c: Likewise.
3295 * tree-vrp.c: Likewise.
3296 * value-prof.c: Likewise.
3297
3298 2009-07-06 Diego Novillo <dnovillo@google.com>
3299
3300 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
3301 if it has one. Handle cases where VAR does not have an
3302 annotation or cfun is NULL.
3303
3304 2009-07-06 Diego Novillo <dnovillo@google.com>
3305
3306 * tree.c: Include debug.h.
3307 (initialize_tree_contains_struct): New.
3308 (init_ttree): Call it.
3309 (tree_node_structure_for_code): Factor out of ...
3310 (tree_node_structure): ... here.
3311 * treestruct.def (TS_PHI_NODE): Remove.
3312 (TS_GIMPLE_STATEMENT): Remove.
3313
3314 2009-07-06 Diego Novillo <dnovillo@google.com>
3315
3316 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
3317 (debug_tree_chain): Handle cycles.
3318
3319 2009-07-06 Nick Clifton <nickc@redhat.com>
3320 DJ Delorie <dj@redhat.com>
3321
3322 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3323 __FMOVD_ENABLED__ is defined.
3324 * config/sh/sh.h
3325 (TARGET_FMOVD): Provide a default definition.
3326 (MASK_FMOVD): Likewise.
3327 (TARGET_CPU_CPP_BUILTINS): Define
3328 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3329 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3330 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
3331 (split for DF load from memory into register): Also handle
3332 MEMs which consist of REG+DISP addressing.
3333 (split for DF store from register to memory): Likewise.
3334 (movsf_ie): Always use single fp_mode.
3335 * config/sh/sh.c (sh_override_options): Do not automatically
3336 enable TARGET_MOVD for the SH2A when supporting doubles - leave
3337 that to the -mfmovd command line switch.
3338 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
3339 (fldi_ok): Always allow.
3340 * config/sh/sh.opt (mfmovd): Remove this switch.
3341 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3342
3343 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
3344 Kaz Kojima <kkojima@gcc.gnu.org>
3345
3346 PR rtl-optimization/30807
3347 * postreload.c (reload_combine): For every new use of REG_SUM,
3348 record the use of BASE.
3349
3350 2009-07-06 Jan Hubicka <jh@suse.cz>
3351
3352 * params.def: Revert my accidental commit at 2009-06-30.
3353
3354 2009-07-04 Ian Lance Taylor <iant@google.com>
3355
3356 PR target/40636
3357 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
3358 EXPORTED_CONST.
3359 (mingw_format_attribute_overrides): Likewise.
3360
3361 2009-07-04 Jakub Jelinek <jakub@redhat.com>
3362
3363 PR debug/40596
3364 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
3365 don't check cfa.reg. Instead of cfa.indirect use
3366 fde && fde->drap_reg != INVALID_REGNUM test.
3367
3368 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3369
3370 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
3371
3372 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
3373
3374 PR target/40587
3375 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3376
3377 2009-07-03 Richard Guenther <rguenther@suse.de>
3378
3379 PR tree-optimization/40640
3380 * tree-switch-conversion.c (build_arrays): Perform arithmetic
3381 in original type.
3382
3383 2009-07-03 Jan Hubicka <jh@suse.cz>
3384
3385 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
3386 for size, reduce amount of inlining.
3387
3388 2009-07-03 Richard Guenther <rguenther@suse.de>
3389
3390 PR middle-end/34163
3391 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
3392 if t +- x is known to not overflow and the conversion widens the
3393 operation.
3394 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
3395
3396 2009-07-03 Jan Hubicka <jh@suse.cz>
3397
3398 * ipa-pure-const.c (analyze): Update loop optimizer init.
3399 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
3400 try_remove_empty_loop, remove_empty_loops): Remove.
3401 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
3402 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
3403 to mark regular loops as neccesary.
3404 (degenerate_phi_p): New function.
3405 (propagate_necessity, remove_dead_phis): Use it.
3406 (forward_edge_to_pdom): Likewise.
3407 (eliminate_unnecessary_stmts): Take care to remove uses of results of
3408 virtual PHI nodes that became unreachable.
3409 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
3410 * tree-flow.h (remove_empty_loops): Remove.
3411 * passes.c (init_optimization_passes): Remove.
3412
3413 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
3414
3415 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
3416 can_create_pseudo_p.
3417 (*fix_trunc<mode>_i387_1): Ditto.
3418 (*floathi<mode>2_1): Ditto.
3419 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
3420 (*fistdi2_1): Ditto.
3421 (*fist<mode>2_1): Ditto.
3422 (frndintxf2_floor): Ditto.
3423 (*fist<mode>2_floor_1): Ditto.
3424 (frndintxf2_ceil): Ditto.
3425 (*fist<mode>2_ceil_1): Ditto.
3426 (frndintxf2_trunc): Ditto.
3427 (frndintxf2_mask_pm): Ditto.
3428 (fxam<mode>2_i387_with_temp): Ditto.
3429 * config/i386/sse.md (mulv16qi3): Ditto.
3430 (*sse2_mulv4si3): Ditto.
3431 (mulv2di3): Ditto.
3432 (sse4_2_pcmpestr): Ditto.
3433 (sse4_2_pcmpistr): Ditto.
3434
3435 2009-07-03 Jan Hubicka <jh@suse.cz>
3436
3437 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
3438 (mark_stmt_necessary): Set it.
3439 (mark_operand_necessary): Set it.
3440 (mark_control_dependent_edges_necessary): Set it.
3441 (mark_virtual_phi_result_for_renaming): New function.
3442 (get_live_post_dom): New function.
3443 (forward_edge_to_pdom): New function.
3444 (remove_dead_stmt): Fix handling of control dependences.
3445 (tree_dce_init): Init new bitmap.
3446 (tree_dce_done): Free it.
3447
3448 2009-07-02 Richard Guenther <rguenther@suse.de>
3449
3450 PR bootstrap/40617
3451 * tree-ssa-structalias.c (new_var_info): Initialize
3452 is_restrict_var.
3453
3454 2009-07-02 Jan Hubicka <jh@suse.cz>
3455
3456 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
3457 local.
3458
3459 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
3460
3461 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
3462 instead of recomputing it. Adjust calls.
3463 (emit_store_flag): Adjust recursive calls.
3464
3465 2009-07-02 Richard Guenther <rguenther@suse.de>
3466
3467 * tree-ssa-live.c (remove_unused_locals): Do not remove
3468 heap variables.
3469 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
3470 of DECL_EXTERNAL for HEAP variables.
3471 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
3472 HEAP variables. Do not adjust RESTRICT vars.
3473 (find_what_var_points_to): Nobody cares if something
3474 points to READONLY.
3475
3476 2009-07-02 Ben Elliston <bje@au.ibm.com>
3477
3478 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
3479 pc_low and pc_high declarations to the top of the function.
3480
3481 2009-07-01 DJ Delorie <dj@redhat.com>
3482
3483 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
3484 registers as fixed.
3485 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
3486 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
3487 unspecified accesses to control registers.
3488 * config/mep/intrinsics.md: Regenerate.
3489 * config/mep/intrinsics.h: Regenerate.
3490 * config/mep/mep-intrin.h: Regenerate.
3491
3492 2009-07-01 Anthony Green <green@moxielogic.com>
3493
3494 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3495 instruction when possible.
3496 (moxie_expand_prologue): Ditto. Also, save an instruction and
3497 some complexity by popping off of $r12 instead of $sp.
3498 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
3499 operands.
3500
3501 2009-07-01 Richard Henderson <rth@redhat.com>
3502
3503 PR bootstrap/40347
3504 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
3505 contained no insns, reposition note before last insn.
3506
3507 2009-07-01 Richard Henderson <rth@redhat.com>
3508
3509 PR debug/40431
3510 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
3511 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
3512
3513 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
3514
3515 PR bootstrap/40558
3516 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
3517 darwin9 for printing reg addresses with %y.
3518
3519 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
3520
3521 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
3522 truncation from operands in binary operations.
3523
3524 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
3525
3526 Revert:
3527 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
3528 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3529 subreg of op0 to the original op0.
3530
3531 * expmed.c (store_bit_field_1): Use a temporary as the destination
3532 instead of a paradoxical subreg when we need to truncate the result.
3533
3534 2009-07-01 DJ Delorie <dj@redhat.com>
3535
3536 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
3537 names to VLIW variants.
3538 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
3539 * config/mep/intrinsics.md: Regenerate.
3540 * config/mep/intrinsics.h: Regenerate.
3541 * config/mep/mep-intrin.h: Regenerate.
3542
3543 2009-07-01 Jakub Jelinek <jakub@redhat.com>
3544
3545 PR debug/40462
3546 * jump.c (returnjump_p): Revert last patch.
3547 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
3548
3549 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3550
3551 PR target/40575
3552 * pa.md (casesi32p): Use jump table label to determine the offset
3553 of the jump table.
3554 (casesi64p): Likewise.
3555
3556 * pa.c (forward_branch_p): Return bool type. Use instruction
3557 addresses when available. Assert that INSN has a jump label.
3558 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
3559 have a jump label.
3560
3561 2009-07-01 Richard Guenther <rguenther@suse.de>
3562
3563 PR tree-optimization/19831
3564 * tree-ssa-dce.c (propagate_necessity): Calls to functions
3565 that only act as barriers do not make any previous stores necessary.
3566 * tree-ssa-structalias.c (handle_lhs_call): Delay making
3567 HEAP variables global, do not add a constraint from nonlocal.
3568 (find_func_aliases): Handle escapes through return statements.
3569 (compute_points_to_sets): Make escaped HEAP variables global.
3570
3571 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
3572
3573 PR bootstrap/40597
3574 * expmed.c (emit_store_flag): Perform a conversion if necessary,
3575 after reducing a DImode cstore to SImode.
3576
3577 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
3578
3579 * expr.c (expand_expr_real_1): Reinstate fallthrough to
3580 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
3581
3582 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
3583
3584 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
3585 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
3586 to 0.
3587 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
3588 and umod_optab if TARGET_BSD_DIVMOD.
3589 * config/vax/lib1funcs.asm: New file.
3590 * config/vax/t-linux: New file.
3591 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
3592
3593 2009-06-30 Jakub Jelinek <jakub@redhat.com>
3594
3595 PR c++/40566
3596 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
3597 to type arguments that have void type.
3598
3599 PR debug/40573
3600 * dwarf2out.c (gen_formal_parameter_die): Call
3601 equate_decl_number_to_die if node is different from origin.
3602
3603 2009-06-30 Anthony Green <green@moxielogic.com>
3604
3605 Clean up moxie port for --enable-build-with-cxx.
3606 * config/moxie/moxie.c (moxie_function_value): First two
3607 parameters are const_tree, not tree.
3608 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
3609 (REG_CLASS_NAMES): Ditto.
3610 (REGNO_REG_CLASS): Ditto.
3611 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
3612 (moxie_function_value): Fix constyness of arguments.
3613
3614 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3615
3616 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
3617 finalize_size_functions before further processing.
3618 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
3619 (variable_size): Call self_referential_size on size expressions
3620 that contain a PLACEHOLDER_EXPR.
3621 (size_functions): New static variable.
3622 (copy_self_referential_tree_r): New static function.
3623 (self_referential_size): Likewise.
3624 (finalize_size_functions): New global function.
3625 * tree.c: Include tree-inline.h.
3626 (push_without_duplicates): New static function.
3627 (find_placeholder_in_expr): New global function.
3628 (substitute_in_expr) <tcc_declaration>: Return the replacement object
3629 on equality.
3630 <tcc_expression>: Likewise.
3631 <tcc_vl_exp>: If the replacement object is a constant, try to inline
3632 the call in the expression.
3633 * tree.h (finalize_size_functions): Declare.
3634 (find_placeholder_in_expr): Likewise.
3635 (FIND_PLACEHOLDER_IN_EXPR): New macro.
3636 (substitute_placeholder_in_expr): Update comment.
3637 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
3638 is true.
3639 (copy_tree_body_r): Likewise.
3640 (copy_tree_body): New static function.
3641 (maybe_inline_call_in_expr): New global function.
3642 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
3643 (maybe_inline_call_in_expr): Declare.
3644 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
3645 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
3646 GIMPLE_H.
3647
3648 2009-06-30 Richard Guenther <rguenther@suse.de>
3649
3650 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
3651 continue walking.
3652 (propagate_necessity): Do not mark reaching defs of stores
3653 as necessary.
3654
3655 2009-06-30 Jan Hubicka <jh@suse.cz>
3656
3657 * cfgloopanal.c (check_irred): Move into ...
3658 (mark_irreducible_loops): ... here; return true if ireducible
3659 loops was found.
3660 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
3661 (analyze_function): Try to prove loop finiteness.
3662 * cfgloop.h (mark_irreducible_loops): Update prototype.
3663 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
3664
3665 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
3666
3667 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
3668
3669 2009-06-30 Ira Rosen <irar@il.ibm.com>
3670
3671 PR tree-optimization/40542
3672 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
3673 types.
3674
3675 2009-06-30 Martin Jambor <mjambor@suse.cz>
3676
3677 PR tree-optimization/40582
3678 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
3679 than useless_type_conversion_p.
3680 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
3681 proper place.
3682
3683 2009-06-30 Martin Jambor <mjambor@suse.cz>
3684
3685 PR middle-end/40554
3686 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
3687
3688 2009-06-30 Richard Guenther <rguenther@suse.de>
3689
3690 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
3691 use ao_ref references.
3692 (walk_aliased_vdefs): Likewise.
3693 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
3694 * tree-ssa-dce.c (struct ref_data): Remove.
3695 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
3696 (mark_aliased_reaching_defs_necessary): Adjust.
3697 (mark_all_reaching_defs_necessary_1): Likewise.
3698
3699 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
3700
3701 PR boostrap/40597
3702 * expmed.c (emit_cstore): New name of emit_store_flag_1.
3703 (emit_store_flag_1): Extract from emit_store_flag, adjust
3704 calls to (what now is) emit_cstore.
3705 (emit_store_flag): Call emit_store_flag_1 and also use it
3706 for what used to be recursive calls.
3707
3708 2009-06-30 Wei Guozhi <carrot@google.com>
3709
3710 PR/40416
3711 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
3712 if the target bb post dominates from bb.
3713 * config/i386/i386.c (memory_address_length): Check existence of base
3714 register before using it.
3715
3716 2009-06-30 Nick Clifton <nickc@redhat.com>
3717 DJ Delorie <dj@redhat.com>
3718
3719 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3720 __FMOVD_ENABLED__ is defined.
3721 * config/sh/sh.h
3722 (TARGET_FMOVD): Provide a default definition.
3723 (MASK_FMOVD): Likewise.
3724 (TARGET_CPU_CPP_BUILTINS): Define
3725 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3726 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3727 two fmov instructions depending upon whether TARGET_FMOVD is
3728 enabled.
3729 (split for DF load from memory into register): Also handle
3730 MEMs which consist of REG+DISP addressing.
3731 (split for DF store from register to memory): Likewise.
3732 * config/sh/sh.opt (mfmovd): Remove this switch.
3733 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3734 * config/sh/sh.c (sh_override_options): Do not automatically
3735 enable TARGET_MOVD for the SH2A when supporting doubles - leave
3736 that to the -mfmovd command line switch.
3737
3738 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
3739 the SH4 and SH4A.
3740 (fldi_ok): Always allow.
3741 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
3742
3743 2009-06-29 DJ Delorie <dj@redhat.com>
3744
3745 * doc/install.texi (mep-x-elf): Correct chip's full name.
3746
3747 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
3748
3749 * doc/extend.texi: Fix typo.
3750
3751 2009-06-29 Tom Tromey <tromey@redhat.com>
3752
3753 * dwarf2.h: Remove.
3754 * Makefile.in (DWARF2_H): New variable.
3755 (except.o): Use it.
3756 (dwarf2out.o): Likewise.
3757 (dwarf2asm.o): Likewise.
3758 * config/i386/t-i386: Use DWARF2_H.
3759 * except.c: Include elf/dwarf2.h.
3760 * unwind-dw2.c: Include elf/dwarf2.h.
3761 * dwarf2out.c: Include elf/dwarf2.h.
3762 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
3763 <dtprel>: New field.
3764 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
3765 (size_of_loc_descr): Likewise.
3766 (output_loc_operands_raw): Likewise.
3767 (output_loc_operands): Handle new dtprel field.
3768 (loc_checksum): Update.
3769 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
3770 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
3771 * unwind-dw2-fde.c: Include elf/dwarf2.h.
3772 * dwarf2asm.c: Include elf/dwarf2.h.
3773 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
3774 * config/mmix/mmix.c: Include elf/dwarf2.h.
3775 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
3776 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
3777 * config/sh/sh.c: Include elf/dwarf2.h.
3778 * config/i386/i386.c: Include elf/dwarf2.h.
3779
3780 2009-06-29 DJ Delorie <dj@redhat.com>
3781
3782 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
3783
3784 * doc/extend.texi: Add MeP attributes and pragmas.
3785 * doc/invoke.text: Add MeP Options.
3786 * doc/contrib.texi: Add MeP contribution.
3787 * doc/md.texi: Add MeP constraints.
3788 * doc/install.texi: Add MeP target.
3789
3790 2009-06-30 Anatoly Sokolov <aesok@post.ru>
3791
3792 * target.h (struct gcc_target): Add frame_pointer_required field.
3793 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
3794 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
3795 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
3796 hook.
3797 * reload1.c (update_eliminables): (Ditto.).
3798 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
3799 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
3800 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
3801
3802 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
3803
3804 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
3805 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3806 (arm_frame_pointer_required): New function.
3807
3808 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
3809 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3810 (avr_frame_pointer_required_p): Declare as static.
3811 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
3812
3813 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
3814 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3815 (bfin_frame_pointer_required): Make as static, change return type
3816 to bool.
3817 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
3818
3819 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
3820 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3821 (cris_frame_pointer_required): New function.
3822
3823 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
3824
3825 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
3826 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3827 (fr30_frame_pointer_required): New function.
3828
3829 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
3830 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3831 (frv_frame_pointer_required): Make as static, change return type
3832 to bool.
3833 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
3834
3835 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
3836 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3837 (ix86_frame_pointer_required): Make as static, change return type to
3838 bool.
3839 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
3840
3841 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
3842 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3843
3844 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
3845
3846 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
3847
3848 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
3849
3850 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
3851 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3852 (mips_frame_pointer_required): Make as static.
3853 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
3854
3855 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
3856 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3857 (mmix_frame_pointer_required): Mew function.
3858
3859 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
3860 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3861
3862 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
3863
3864 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
3865
3866 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
3867
3868 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
3869 (CAN_ELIMINATE): Redefine.
3870 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3871 (sparc_frame_pointer_required): New function.
3872 (sparc_can_eliminate): New function.
3873 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
3874
3875 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
3876 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3877
3878 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
3879 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3880 (xtensa_frame_pointer_required): Make as static, change return type
3881 to bool.
3882 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
3883 Remove.
3884
3885 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
3886
3887 * doc/plugins.texi: Document PLUGIN_START_UNIT.
3888 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
3889 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
3890 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
3891 (register_callback): Handle PLUGIN_START_UNIT.
3892 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
3893
3894 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
3895
3896 * tree.c (process_call_operands): Propagate TREE_READONLY from the
3897 operands.
3898 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
3899 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
3900
3901 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
3902
3903 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
3904 move cost.
3905
3906 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
3907
3908 * doc/extend.texi (Additional Floating Types): __float128 is also
3909 supported on i386 targets.
3910
3911 2009-06-29 Richard Guenther <rguenther@suse.de>
3912
3913 PR middle-end/14187
3914 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3915 flag.
3916 (pt_solutions_same_restrict_base): Declare.
3917 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
3918 flag.
3919 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
3920 (make_constraint_from, make_copy_constraint): Move earlier.
3921 (make_constraint_from_heapvar): New function.
3922 (make_constraint_from_restrict): Likewise.
3923 (handle_lhs_call): Use it.
3924 (find_func_aliases): Use it to track conversions to restrict
3925 qualified pointers.
3926 (struct fieldoff): Add only_restrict_pointers flag.
3927 (push_fields_onto_fieldstack): Initialize it.
3928 (create_variable_info_for): Track global restrict qualified pointers.
3929 (intra_create_variable_infos): Use make_constraint_from_heapvar.
3930 Track restrict qualified pointer arguments.
3931 (set_uids_in_ptset): Use varinfo is_global_var flag.
3932 (find_what_var_points_to): Set the vars_contains_restrict flag.
3933 Always create the points-to solution for sets including restrict tags.
3934 (pt_solutions_same_restrict_base): New function.
3935 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
3936 qualified pointers use pt_solutions_same_restrict_base as
3937 additional source for disambiguation.
3938
3939 2009-06-29 Richard Guenther <rguenther@suse.de>
3940
3941 PR middle-end/38212
3942 * alias.c (find_base_decl): Remove.
3943 (get_deref_alias_set_1): Remove restrict handling.
3944 * c-common.c (c_apply_type_quals_to_decl): Do not set
3945 DECL_POINTER_ALIAS_SET.
3946 * gimplify.c (find_single_pointer_decl_1): Remove.
3947 (find_single_pointer_decl): Likewise.
3948 (internal_get_tmp_var): Remove restrict handling.
3949 (gimple_regimplify_operands): Likewise.
3950 * omp-low.c (expand_omp_atomic_pipeline): Do not set
3951 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
3952 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
3953 * tree.c (restrict_base_for_decl): Remove.
3954 (init_ttree): Do not allocate it.
3955 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
3956 LABEL_DECL_UID for label decls.
3957 (copy_node_stat): Do not copy restrict information.
3958 (decl_restrict_base_lookup): Remove.
3959 (decl_restrict_base_insert): Likewise.
3960 (print_restrict_base_statistics): Likewise.
3961 (dump_tree_statistics): Do not call print_restrict_base_statistics.
3962 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
3963 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
3964 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
3965 (LABEL_DECL_UID): Adjust.
3966 (DECL_BASED_ON_RESTRICT_P): Remove.
3967 (DECL_GET_RESTRICT_BASE): Likewise.
3968 (SET_DECL_RESTRICT_BASE): Likewise.
3969 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
3970
3971 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
3972 instead of DECL_POINTER_ALIAS_SET.
3973 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3974 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
3975 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
3976
3977 2009-06-29 Richard Guenther <rguenther@suse.de>
3978
3979 PR tree-optimization/40579
3980 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
3981 the IL to simplify has constants that overflowed.
3982
3983 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
3984
3985 PR tree-optimization/40550
3986 * tree-vect-generic.c (expand_vector_operations_1): Compute in
3987 vector_compute_type only when the size of vector_compute_type is
3988 less than the size of type.
3989
3990 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
3991
3992 * fold-const.c (contains_label_1): Fix comments.
3993 (contains_label_p): Do not walk trees multiple time.
3994
3995 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
3996
3997 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
3998 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
3999 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
4000 ix86_fp_comparison_operator.
4001 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
4002 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
4003 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
4004 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
4005 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
4006 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
4007 (related splits): Change predicate to ix86_fp_comparison_operator.
4008 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
4009 instead of ix86_fp_comparison_codes.
4010 (ix86_trivial_fp_comparison_operator,
4011 ix86_fp_comparison_operator): New.
4012 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
4013 (ix86_expand_compare): Eliminate last two parameters.
4014 (ix86_fp_jump_nontrivial_p): Kill.
4015 * config/i386/i386.c (put_condition_code): Eliminate call to
4016 ix86_fp_comparison_codes and subsequent assertion.
4017 (ix86_fp_comparison_codes): Eliminate.
4018 (ix86_fp_swap_condition): New.
4019 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
4020 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
4021 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
4022 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
4023 and ix86_fp_swap_condition.
4024 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
4025 Use ix86_fp_comparison_strategy.
4026 (ix86_expand_compare): Likewise. Eliminate last two arguments.
4027 (ix86_fp_jump_nontrivial_p): Eliminate.
4028 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
4029 call to ix86_expand_compare.
4030 (ix86_split_fp_branch, ix86_expand_setcc,
4031 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
4032 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
4033
4034 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4035
4036 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
4037 related to jump_clobbers.
4038 * config/arm/arm.md (conds): Remove jump_clob case.
4039 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
4040 splits): Change comparison_operator to arm_comparison_operator.
4041 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
4042 Eliminate.
4043
4044 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4045
4046 * dojump.c (do_compare_rtx_and_jump): Try swapping the
4047 condition for floating point modes.
4048 * expmed.c (emit_store_flag_1): Move here a bigger part
4049 of emit_store_flag.
4050 (emit_store_flag): Try swapping the condition for floating point
4051 modes.
4052 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
4053
4054 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4055
4056 * expr.c (expand_expr_real_1): Just use do_store_flag.
4057 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
4058 emit_store_flag_force.
4059 * expmed.c (emit_store_flag_force): Copy here trick
4060 previously in expand_expr_real_1. Try reversing the comparison.
4061 (emit_store_flag_1): Work if target is NULL.
4062 (emit_store_flag): Work if target is NULL, using the result mode
4063 from the comparison. Use split_comparison, restructure final part
4064 to simplify conditionals.
4065
4066 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4067
4068 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
4069 * dojump.c (do_jump): Change handling of floating-point
4070 ops to use just do_compare_and_jump.
4071 (split_comparison): New.
4072 (do_compare_rtx_and_jump): Add here logic coming previously
4073 in do_jump, using split_comparison.
4074
4075 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
4076
4077 PR target/40489
4078 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
4079
4080 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4081
4082 * tree-ssa-alias.c: Fix unintentional commit.
4083
4084 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4085
4086 * passes.c (execute_one_pass): Fix unintentional commit.
4087
4088 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4089
4090 * df-problems.c (df_set_seen, df_unset_seen): Delete.
4091 (df_rd_local_compute, df_md_local_compute): Inline them.
4092
4093 (df_md_scratch): New.
4094 (df_md_alloc, df_md_free): Allocate/free it.
4095 (df_md_local_compute): Only include live registers in init.
4096 (df_md_transfer_function): Prune the in-set computed by
4097 the confluence function, and the gen-set too.
4098
4099 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4100
4101 PR rtl-optimization/26854
4102 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
4103 * df-problems.c (df_rd_add_problem): Fix comment.
4104 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
4105 df_md_simulate_artificial_defs_at_top,
4106 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
4107 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
4108 df_md_transfer_function, df_md_init, df_md_confluence_0,
4109 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
4110 problem_MD, df_md_add_problem): New.
4111 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
4112 df_md_get_bb_info): New.
4113 (DF_LAST_PROBLEM_PLUS1): Adjust.
4114
4115 * Makefile.in (fwprop.o): Include domwalk.h.
4116 * fwprop.c: Include domwalk.h.
4117 (reg_defs, reg_defs_stack): New.
4118 (bitmap_only_bit_between): Remove.
4119 (process_defs): New.
4120 (process_uses): Use reg_defs and local_md instead of
4121 bitmap_only_bit_between and local_rd.
4122 (single_def_use_enter_block): New, from build_single_def_use_links.
4123 (single_def_use_leave_block): New.
4124 (build_single_def_use_links): Remove code moved to
4125 single_def_use_enter_block, invoke domwalk.
4126 (use_killed_between): Adjust comment.
4127
4128 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4129
4130 * bitmap.h (bitmap_ior_and_into): New.
4131 * bitmap.c (bitmap_ior_and_into): New.
4132
4133 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4134
4135 * domwalk.h (struct dom_walk_data): Remove all callbacks except
4136 before_dom_children_before_stmts and after_dom_children_after_stmts.
4137 Rename the two remaining callbacks to just before_dom_children and
4138 after_dom_children. Remove other GIMPLE statement walking bits.
4139 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
4140 * graphite.c: Do not include domwalk.h.
4141 * tree-into-ssa.c (interesting_blocks): New global.
4142 (struct mark_def_sites_global_data): Remove it and names_to_rename.
4143 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
4144 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
4145 now that they're not domwalk callbacks.
4146 (rewrite_initialize_block): Rename to...
4147 (rewrite_enter_block): ... this, place after called functions. Test
4148 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
4149 (rewrite_finalize_block): Rename to...
4150 (rewrite_leave_block): ... this, place after called functions.
4151 (rewrite_update_init_block): Rename to...
4152 (rewrite_update_enter_block): ... this, place after called functions.
4153 Test interesting_blocks, call rewrite_update_stmt and
4154 rewrite_update_phi_arguments.
4155 (rewrite_update_fini_block): Rename to...
4156 (rewrite_leave_block): ... this, place after called functions.
4157 (rewrite_blocks): Remove last argument, simplify initialization of
4158 walk_data.
4159 (mark_def_sites_initialize_block): Rename to...
4160 (mark_def_sites_block): ... this, call mark_def_sites.
4161 (mark_def_sites_blocks): Remove argument, simplify initialization of
4162 walk_data.
4163 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
4164 (update_ssa): Likewise.
4165 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
4166 callback.
4167 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
4168 (dom_opt_initialize_block): Rename to...
4169 (dom_opt_enter_block): ... this, place after called functions. Walk
4170 statements here, inline propagate_to_outgoing_edges.
4171 (dom_opt_finalize_block): Rename to...
4172 (dom_opt_leave_block): ... this, place after called functions.
4173 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
4174 domwalk callback.
4175 (dse_enter_block, dse_record_phi): New.
4176 (dse_record_phis): Delete.
4177 (dse_finalize_block): Rename to...
4178 (dse_leave_block): ... this.
4179 (tree_ssa_dse): Simplify initialization of walk_data.
4180 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
4181 Adjust initialization of walk_data.
4182 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
4183 * tree-ssa-loop-phiopt.c (get_non_trapping):
4184 Adjust initialization of walk_data.
4185 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
4186 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
4187 it's not a domwalk callback.
4188 (uncprop_initialize_block): Rename to...
4189 (dse_enter_block): ... this, call uncprop_into_successor_phis.
4190 (dse_finalize_block): Rename to...
4191 (dse_leave_block): ... this.
4192 (tree_ssa_uncprop): Simplify initialization of walk_data.
4193 * Makefile.in: Adjust dependencies.
4194
4195 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
4196
4197 * arm.md (casesi): Fix test for Thumb1.
4198 (thumb1_casesi_internal_pic): Likewise.
4199 (thumb1_casesi_dispatch): Likewise.
4200
4201 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
4202
4203 * config/arm/arm-cores.def: Added core cortex-m0.
4204 * config/arm/arm-tune.md: Regenerated.
4205 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
4206
4207 2009-06-26 DJ Delorie <dj@redhat.com>
4208
4209 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
4210
4211 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
4212 the scheduler doesn't tag jump insns.
4213
4214 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
4215
4216 * c-decl.c (merge_decls): Re-indent.
4217
4218 2009-06-26 Janis Johnson <janis187@us.ibm.com>
4219
4220 PR c/39902
4221 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
4222 Special-case decimal float constants.
4223
4224 2009-06-26 Richard Henderson <rth@redhat.com>
4225
4226 * function.h (struct function): Add cannot_be_copied_reason,
4227 and cannot_be_copied_set.
4228 * tree-inline.c (has_label_address_in_static_1): Rename from
4229 inline_forbidden_p_2; don't set inline_forbidden_reason here.
4230 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
4231 don't set inline_forbidden_reason.
4232 (copy_forbidden): New function, split out of inline_forbidden_p.
4233 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
4234 (inline_forbidden_p): Use copy_forbidden.
4235 (tree_versionable_function_p): Likewise.
4236 (inlinable_function_p): Merge into tree_inlinable_function_p.
4237 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
4238 * ipa-cp.c (ipcp_versionable_function_p): New function.
4239 (ipcp_cloning_candidate_p): Use it.
4240 (ipcp_node_modifiable_p): Likewise.
4241
4242 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
4243
4244 * builtins.c (expand_builtin_alloca): Handle builtin alloca
4245 that is marked not to be inlined. Remove flag_mudflap use.
4246 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
4247 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
4248
4249 2009-06-26 Steve Ellcey <sje@cup.hp.com>
4250
4251 PR bootstrap/40338
4252 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
4253 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
4254
4255 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
4256
4257 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
4258 shared libgcc.
4259 (__mingwthr_remove_key_dtor): Likewise.
4260
4261 2009-06-26 Richard Guenther <rguenther@suse.de>
4262
4263 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
4264
4265 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
4266
4267 PR middle-end/40525
4268 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
4269 try the non-cond_exec path also.
4270
4271 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4272
4273 PR target/40468
4274 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
4275 (output_cbranch): Use new functions.
4276 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
4277 Likewise.
4278
4279 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
4280 Pat Haugen <pthaugen@us.ibm.com>
4281 Revital Eres <ERES@il.ibm.com>
4282
4283 * config/rs6000/rs6000.c (print_operand): Correct lossage message
4284 for %c error. Add %x support to print VSX registers as a unified
4285 register set, instead of separate float and altivec registers.
4286 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
4287 %y case, and add support for VSX pre-modify addresses.
4288 (output_toc): Add assert for CONST containing an integer constant
4289 in the PLUS case.
4290 (rs6000_adjust_cost): Add POWER7 support.
4291 (insn_must_be_first_in_group): Ditto.
4292 (insn_must_be_last_in_group): Ditto.
4293 (rs6000_emit_popcount): Ditto.
4294 (rs6000_vector_mode_supported_p): Ditto.
4295
4296 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
4297 Change some of the functions called by macros to being called
4298 through a pointer, so debug functions can be inserted if
4299 -mdebug=addr or -mdebug=cost.
4300 (rs6000_preferred_reload_class_ptr): Ditto.
4301 (rs6000_secondary_reload_class_ptr): Ditto.
4302 (rs6000_secondary_memory_needed_ptr): Ditto.
4303 (rs6000_cannot_change_mode_class_ptr): Ditto.
4304 (rs6000_secondary_reload_inner): Ditto.
4305 (rs6000_legitimize_reload_address): Ditto.
4306 (rs6000_legitimize_reload_address_ptr): Ditto.
4307 (rs6000_mode_dependent_address): Ditto.
4308 (rs6000_mode_dependent_address_ptr): Ditto.
4309
4310 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
4311 function to return true if the mode allows reg + integer
4312 addresses.
4313 (virtual_stack_registers_memory_p): New function to return true if
4314 the address refers to a virtual stack register.
4315 (rs6000_legitimate_offset_address_p): Move code to say whether a
4316 mode supports reg+int addressing to reg_offset_addressing_ok_p and
4317 call it.
4318 (rs6000_legitimate_address_p): Add checks for modes that only can
4319 do reg+reg addressing. Start adding VSX support.
4320 (rs6000_legitimize_reload_address): Ditto.
4321 (rs6000_legitimize_address): Ditto.
4322 (rs6000_debug_legitimate_address_p): New debug functions for
4323 -mdebug=addr and -mdebug=cost.
4324 (rs6000_debug_rtx_costs): Ditto.
4325 (rs6000_debug_address_costs): Ditto.
4326 (rs6000_debug_adjust_cost): Ditto.
4327 (rs6000_debug_legitimize_address): Ditto.
4328 (rs6000_legitimize_reload_address_ptr): Point to call normal
4329 function or debug function. Make functions called via pointer
4330 static.
4331 (rs6000_mode_dependent_address_ptr): Ditto.
4332 (rs6000_secondary_reload_class_ptr): Ditto.
4333 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
4334 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
4335 into a friendlier error.
4336 (rs6000_init_builtins): Add initial VSX support.
4337 (rs6000_adjust_cost): Fix some spacing issues.
4338
4339 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
4340 (REG_CLASS_NAMES): Ditto.
4341 (REG_CLASS_CONTENTS): Ditto.
4342 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
4343 pointer, to add -mdebug=addr support.
4344 (CANNOT_CHANGE_MODE_CLASS): Ditto.
4345 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
4346 -mdebug=addr support.
4347 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
4348 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
4349 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
4350
4351 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
4352 16-bit values.
4353 (bswapsi*): Set attribute types for load/store. Add combiner
4354 patterns to eliminate zero extend on 64-bit.
4355 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
4356 stdbrx if the hardware supports those instructions.
4357
4358 2009-06-25 Ian Lance Taylor <iant@google.com>
4359
4360 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
4361 (Link Options): Document -static-libstdc++.
4362
4363 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
4364
4365 PR target/38731
4366 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
4367 DATA_ALIGNMENT instead.
4368
4369 2009-06-25 Richard Guenther <rguenther@suse.de>
4370
4371 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
4372 indirect references against the callused/escaped solutions.
4373 (call_may_clobber_ref_p_1): Likewise.
4374
4375 2009-06-25 Martin Jambor <mjambor@suse.cz>
4376
4377 PR tree-optimization/40493
4378 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
4379 (enum unscalarized_data_handling): New type.
4380 (handle_unscalarized_data_in_subtree): Return what has been done.
4381 (load_assign_lhs_subreplacements): Handle left flushes differently.
4382 (sra_modify_assign): Use unscalarized_data_handling, simplified
4383 condition determining whether to remove the statement.
4384
4385 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
4386
4387 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
4388 excerpt - @ should be doubled for texinfo.
4389
4390 2009-06-24 Ian Lance Taylor <iant@google.com>
4391
4392 * config/arc/arc.c: Include "df.h".
4393 (arc_attribute_table): Make static. Move higher in file.
4394 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
4395 (output_shift): Initialize n later to avoid warning.
4396 * config/arm/arm.c (arm_attribute_table): Make static. Move
4397 higher in file.
4398 * config/avr/avr.c (avr_attribute_table): Make static. Move
4399 higher in file.
4400 (reg_class_tab): Change array type from int to enum reg_class.
4401 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
4402 LABEL_REF.
4403 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
4404 (lshrhi3_out): Likewise.
4405 (class_likely_spilled_p): Change return type to bool.
4406 (avr_rtx_costs): Use local code variable with enum type.
4407 * config/avr/avr.md (movmemhi): Use add_reg_note.
4408 (andhi3, andsi3): Don't use AS2 with "and".
4409 (iorhi3, iorsi3): Don't use AS2 with "or".
4410 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
4411 * config/crx/crx.c: Include "df.h".
4412 (crx_attribute_table): Make static.
4413 * config/m32r/m32r.c: Include "df.h".
4414 (m32r_attribute_table): Make static. Move higher in file.
4415 (pop): Use add_reg_note.
4416 (block_move_call): Change 0 to LCT_NORMAL in function call.
4417 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
4418 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
4419 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
4420 declare, not just when TREE_CODE is defined.
4421 * config/m68hc11/m68hc11.c: Include "expr.h".
4422 (m68hc11_attribute_table): Make static. Move higher in file.
4423 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
4424 function call.
4425 (m68hc11_register_indirect_p): Likewise.
4426 (m68hc11_function_arg_padding): Change return type to enum
4427 direction.
4428 (emit_move_after_reload): Use add_reg_note.
4429 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
4430 (m68hc11_split_logical): Likewise.
4431 (m68hc11_rtx_costs): Add local code_and outer_code variables with
4432 enum type.
4433 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
4434 to VOIDmode in function call.
4435 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
4436 tree is defined.
4437 (m68hc11_split_logical): Update declaration.
4438 (m68hc11_function_arg_padding): Update declaration.
4439 * config/mcore/mcore.c (regno_reg_class): Change form array of int
4440 to array of enum reg_class.
4441 (mcore_attribute_table): Make static. Move higher in file.
4442 (mcore_rtx_costs): Add cast to enum type.
4443 * config/mcore/mcore.h (regno_reg_class): Update declaration.
4444 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
4445 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
4446 in file.
4447 * config/sh/predicates.md (trapping_target_operand): Rename and to
4448 and_expr.
4449 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
4450 higher in file.
4451 * config/spu/spu.c (spu_attribute_table): Make static. Move
4452 higher in file.
4453 * config/v850/v850.c (v850_attribute_table): Make static. Move
4454 higher in file.
4455 (v850_rtx_costs): Use local code with enum type.
4456 (expand_epilogue): Add cast.
4457 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
4458
4459 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
4460
4461 PR target/40515
4462 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
4463 -m2a-single-only and -m2a-nofpu.
4464 * config/sh/sh.opt: Document m2a generates FPU code.
4465
4466 2009-06-24 Anatoly Sokolov <aesok@post.ru>
4467
4468 * defaults.h (CAN_ELIMINATE): Provide default.
4469 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
4470 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
4471 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
4472 * config/spu/spu.h (CAN_ELIMINATE): Delete.
4473 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
4474 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
4475 * config/cris/cris.h (CAN_ELIMINATE): Delete.
4476 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
4477 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
4478 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
4479
4480 2009-06-24 DJ Delorie <dj@redhat.com>
4481
4482 * mep-ext-cop.cpu: Fix copyright notice.
4483 * mep-default: Fix copyright notice.
4484 * mep-core: Fix copyright notice.
4485 * mep: Fix copyright notice.
4486 * mep-ivc2: Fix copyright notice.
4487 * mep-c5: Fix copyright notice.
4488
4489 2009-06-24 Denis Chertykov <chertykov@gmail.com>
4490
4491 * doc/contrib.texi (Contributors):
4492
4493 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
4494
4495 PR middle-end/40501
4496 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
4497 src and dst operands if necessary.
4498
4499 2009-06-23 DJ Delorie <dj@redhat.com>
4500
4501 Add MeP port.
4502 * config.gcc: Add mep support.
4503 * recog.c: Resurrect validate_replace_rtx_subexp().
4504 * recog.h: Likewise.
4505 * config/mep/: Add new port:
4506 * config/mep/constraints.md: New file.
4507 * config/mep/default.h: New file.
4508 * config/mep/intrinsics.h: New file.
4509 * config/mep/intrinsics.md: New file.
4510 * config/mep/ivc2-template.h: New file.
4511 * config/mep/mep-c5.cpu: New file.
4512 * config/mep/mep-core.cpu: New file.
4513 * config/mep/mep-default.cpu: New file.
4514 * config/mep/mep-ext-cop.cpu: New file.
4515 * config/mep/mep-intrin.h: New file.
4516 * config/mep/mep-ivc2.cpu: New file.
4517 * config/mep/mep-lib1.asm: New file.
4518 * config/mep/mep-lib2.c: New file.
4519 * config/mep/mep-pragma.c: New file.
4520 * config/mep/mep-protos.h: New file.
4521 * config/mep/mep-tramp.c: New file.
4522 * config/mep/mep.c: New file.
4523 * config/mep/mep.cpu: New file.
4524 * config/mep/mep.h: New file.
4525 * config/mep/mep.md: New file.
4526 * config/mep/mep.opt: New file.
4527 * config/mep/predicates.md: New file.
4528 * config/mep/t-mep: New file.
4529
4530 2009-06-23 Ian Lance Taylor <iant@google.com>
4531
4532 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
4533 from loose_warn into c_loose_warn and from strict_warn into
4534 c_strict_warn. Set and substitute warn_cxxflags. Check for
4535 --enable-build-with-cxx. Set and substitute
4536 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
4537 * Makefile.in (CXXFLAGS): New variable.
4538 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
4539 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
4540 the default is the same as $(STRICT_WARN).
4541 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
4542 (CXX): New variable.
4543 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
4544 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
4545 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
4546 (HOST_LIBS): New variable.
4547 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
4548 (ALL_CXXFLAGS): New variable.
4549 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
4550 * doc/install.texi (Configuration): Document
4551 --enable-build-with-cxx, --with-stage1-ldflags,
4552 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
4553 * configure: Rebuild.
4554
4555 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4556
4557 * config/arm/arm.c (arm_override_options): Fix braces and formatting
4558 from previous commit.
4559
4560 2009-06-23 Ian Lance Taylor <iant@google.com>
4561
4562 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
4563
4564 2009-06-23 Ian Lance Taylor <iant@google.com>
4565
4566 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
4567 with ATTRIBUTE_UNUSED.
4568
4569 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4570 Pat Haugen <pthaugen@us.ibm.com>
4571 Revital Eres <eres@il.ibm.com>
4572
4573 * config.in (HAVE_AS_POPCNTD): Add default definition.
4574 (HAVE_AS_LWSYNC): Ditto.
4575
4576 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
4577 release number.
4578 (gcc_cv_as_powerpc_cmpb): Ditto.
4579 (gcc_cv_as_powerpc_dfp): Ditto.
4580 (gcc_cv_as_powerpc_vsx): Ditto.
4581 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
4582 supporting the popcntd/lwsync instructions.
4583 (gcc_cv_as_powerpc_lwsync): Ditto.
4584 * configure: Regenerate.
4585
4586 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
4587 -mcpu=native and -mcpu=power7.
4588 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
4589
4590 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
4591 a variable instead of a mask to reduce the number of mask bits.
4592 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
4593 (-mbit-word): Ditto.
4594 (-mregnames): Ditto.
4595 * config/rs6000/rs6000.opt (-mupdate): Ditto.
4596 (-mfused-madd): Ditto.
4597
4598 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
4599 2.06 instructions.
4600 (-mvsx): New switch for VSX instructions.
4601 (-misel): Move from a variable to a mask to allow it to be set by
4602 -mcpu=.
4603
4604 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
4605 function declaration to an array declaration.
4606 (rs6000_hard_regno_nregs): New external array declaration.
4607
4608 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
4609 files included by rs6000.md.
4610
4611 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4612 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
4613
4614 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
4615 a target mask.
4616 (rs6000_debug_reg): New -mdebug= variables.
4617 (rs6000_debug_addr): Ditto.
4618 (rs6000_debug_cost): Ditto.
4619 (rs6000_pmode): New variable to hold Pmode.
4620 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
4621 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
4622 calculated at compiler start.
4623 (rs6000_hard_regno_nregs): Change function to an array which holds
4624 HARD_REGNO_NREGS calculated at compiler start.
4625 (rs6000_explicit_options): Delete isel field.
4626 (rs6000_vector_unit): New array to hold which vector unit
4627 supports arithmetic options for a given type.
4628 (rs6000_vector_mem): New array to hold which vector unit supports
4629 memory reference operations for a given type.
4630 (rs6000_vector_align): New array to given the alignment of each
4631 vector type.
4632 (power7_cost): New basic costs for power7.
4633 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
4634 (rs6000_hard_regno_nregs_internal): New function, moved from
4635 HARD_REGNO_NREGS, to calculate the number of registers each hard
4636 register takes for each type.
4637 (rs6000_debug_reg_print): New function for -mdebug=reg support.
4638 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
4639 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
4640 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
4641 unit information here so it is calculated once at compiler startup
4642 time.
4643 (rs6000_override_options): Make -misel a target mask. Add more
4644 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
4645 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
4646 -mdebug=cost.
4647 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
4648 (rs6000_handle_option): Move -misel from variable to target mask.
4649 (rs6000_builtin_mask_for_load): Add VSX support.
4650 (rs6000_conditional_register_usage): Ditto.
4651 (USE_ALTIVEC_FOR_ARG_P): Ditto.
4652 (function_arg_boundary): Ditto.
4653 (rs6000_expand_builtin): Ditto.
4654 (def_builtin): Make abort message a little friendlier.
4655 (rs6000_emit_int_cmove): Add support for 64-bit isel.
4656
4657 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
4658 assembler support the popcntd instruction instead of a vsx
4659 instruction to enable power7 support.
4660 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
4661 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
4662 option to the assembler if -mcpu=native.
4663 (ASM_CPU_NATIVE_SPEC): Ditto.
4664 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
4665 ISA 2.06 features.
4666 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
4667 the lwsync instruction.
4668 (enum processor_type): Add PROCESSOR_POWER7.
4669 (rs6000_debug_reg): New -mdebug= options.
4670 (rs6000_debug_addr): Ditto.
4671 (rs6000_debug_cost): Ditto.
4672 (rs6000_isel): Delete.
4673 (enum rs6000_vector): New enum to say what vector unit we have.
4674 (VECTOR_UNIT_*): New macros to say which vector unit has
4675 arithmetic operations for a given type.
4676 (VECTOR_MEM_*): New macros to say which vector unit has memory
4677 operations for a given type.
4678 (TARGET_LDBRX): Whether the machine supports the ldbrx
4679 instruction.
4680 (TARGET_ISEL): Delete, -misel moved to be a mask.
4681 (TARGET_ISEL64): New macro for 64-bit isel support.
4682 (UNITS_PER_VSX_WORD): New macro.
4683 (POINTER_SIZE): Move to be an external variable, rather than
4684 calculating whether we are generating 32 ot 64-bit code.
4685 (Pmode): Ditto.
4686 (STACK_BOUNDARY): Add VSX support.
4687 (LOCAL_ALIGNMENT): Ditto.
4688 (SLOW_UNALIGNED_ACCESS): Ditto.
4689 (VSX_REGNO_P): New macro for VSX support.
4690 (VFLOAT_REGNO_P): Ditto.
4691 (VINT_REGNO_P): Ditto.
4692 (VLOGICAL_REGNO_P): Ditto.
4693 (VSX_VECTOR_MODE): Ditto.
4694 (VSX_SCALAR_MODE): Ditto.
4695 (VSX_MODE): Ditto.
4696 (VSX_MOVE_MODE): Ditto.
4697 (VSX_REG_CLASS_P): Ditto.
4698 (HARD_REGNO_NREGS): Instead of calling a function, use an array
4699 lookup.
4700 (UNITS_PER_SIMD_WORD): Add VSX support.
4701 (MODES_TIEABLE_P): Ditto.
4702 (STARTING_FRAME_OFFSET): Ditto.
4703 (STACK_DYNAMIC_OFFSET): Ditto.
4704 (EPILOGUE_USES): Ditto.
4705 (REGNO_REG_CLASS): Move to array lookup.
4706 (CLASS_MAX_NREGS): Ditto.
4707 (rs6000_vector_reg_class): Add declaration.
4708 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
4709 overlap with the floating point and Altivec registers.
4710
4711 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
4712
4713 * config/rs6000/driver-rs6000.c (asm_names): New static array to
4714 give the appropriate asm switches if -mcpu=native.
4715 (host_detect_local_cpu): Add support for "asm".
4716 (host_detect_local_cpu): Follow GNU code guidelines for name.
4717
4718 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
4719 -mbit-word to a variable instead of being a target mask.
4720
4721 * config/rs6000/sync.md (lwsync): If the assembler supports it,
4722 emit the lwsync instruction instead of emitting the instruction as
4723 an integer constant.
4724
4725 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
4726 fixuns_trundfsi2, move expander into rs6000.md.
4727
4728 * config/rs6000/rs6000.md (cpu): Add power7.
4729 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
4730 (logical predicate patterns): Change the single instruction
4731 primitives that set CR0 to be fast_compare instead of compare.
4732 (norsi*): Ditto.
4733 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
4734 (popcntddi2): Ditto.
4735 (popcount<mode>): Ditto.
4736 (floating multiply/add insns): Name the floating point
4737 multiply/add insns.
4738 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
4739 (isel_unsigned_<mode>): Ditto.
4740 (fixuns_trundfsi2): Move expander here from spe.md.
4741 (smindi3): Define if we have -misel on 64-bit systems.
4742 (smaxdi3): Ditto.
4743 (umindi3): Ditto.
4744 (umaxdi3): Ditto.
4745
4746 2009-06-23 Anatoly Sokolov <aesok@post.ru>
4747
4748 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
4749 extra_objs.
4750 * config/avr/avr.c (avr_current_device): New variable.
4751 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
4752 (avr_arch, mcu_type_s): Move to avr.h.
4753 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
4754 default_data_section_start fields.
4755 (avr_arch): Moved from avr.c.
4756 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
4757 library_name fields.
4758 (avr_current_device, avr_mcu_types, avr_arch_types,
4759 avr_device_to_arch, avr_device_to_data_start,
4760 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
4761 (EXTRA_SPEC_FUNCTIONS): Define.
4762 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
4763 options mapping. Use device_to_arch and device_to_data_start insted.
4764 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
4765 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
4766 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
4767 * config/avr/driver-avr.c: New file.
4768 * config/avr/avr-devices.c: New file.
4769
4770 2009-06-23 Jakub Jelinek <jakub@redhat.com>
4771
4772 * var-tracking.c (unshare_variable): Force initialized to
4773 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
4774 (set_variable_part): Likewise.
4775 (struct variable_union_info): Remove pos_src field.
4776 (vui_vec, vui_allocated): New variables.
4777 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
4778 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
4779 == 1 use a simpler sorting algorithm. Compute pos field right
4780 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
4781 Avoid quadratic comparison if !flag_var_tracking_uninit.
4782 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
4783 unshare_variable unconditionally.
4784 (dataflow_set_different_2): Removed.
4785 (dataflow_set_different): Don't traverse second hash table.
4786 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
4787 unconditionally to var_reg_set or var_mem_set.
4788 (emit_notes_in_bb): Likewise.
4789 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
4790 unshare_variable.
4791 (emit_note_insn_var_location): Don't set initialized to
4792 VAR_INIT_STATUS_INITIALIZED early.
4793 (vt_finalize): Free vui_vec if needed, clear vui_vec and
4794 vui_allocated.
4795 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
4796
4797 * tree-object-size.c (addr_object_size): Instead of checking
4798 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
4799 are no FIELD_DECLs following it.
4800
4801 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
4802
4803 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
4804 order to match bswaps with signed source operands.
4805
4806 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4807
4808 * sdbout.c (sdbout_one_type): Fix braces in switch.
4809
4810 2009-06-23 Richard Guenther <rguenther@suse.de>
4811
4812 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
4813 member.
4814 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
4815 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
4816 var_callused, callused_tree, var_storedanything, storedanything_tree,
4817 var_integer, integer_tree): Remove global variables.
4818 (new_var_info): Do not pass new id, append the new var to the
4819 global variable vector.
4820 (do_ds_constraint): Use is_global_var member of the variable-info.
4821 (new_scalar_tmp_constraint_exp): Adjust.
4822 (create_function_info_for): Likewise.
4823 (create_variable_info_for): Likewise.
4824 (find_what_var_points_to): Remove dead code.
4825 (init_base_vars): Simplify.
4826 (compute_points_to_sets): Adjust.
4827
4828 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
4829
4830 * combine.c (try_combine): Dump information about the insns we're
4831 combining.
4832
4833 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
4834
4835 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
4836 check when calling force_to_mode on TRUNCATE's operand.
4837
4838 2009-06-22 Ian Lance Taylor <iant@google.com>
4839
4840 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
4841
4842 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
4843
4844 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
4845
4846 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4847
4848 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
4849 override library linkage flags such as -static-libgcc or
4850 -shared-libgcc.
4851
4852 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4853
4854 * config/m68k/m68k-devices.def: Add line for MCF5221x.
4855
4856 2009-06-22 Ian Lance Taylor <iant@google.com>
4857
4858 * config/linux.opt: Put mglibc ahead of muclibc.
4859
4860 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
4861 for duplicate decls.
4862
4863 2009-06-22 Matthias Klose <doko@ubuntu.com>
4864
4865 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
4866
4867 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
4868
4869 PR objc/28050
4870 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
4871 instead of NULL if a parser error occurs.
4872
4873 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4874
4875 * dwarf2out.c (dwarf2_debug_hooks): Initialize
4876 non-DWARF2_DEBUGGING_INFO version.
4877
4878 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
4879
4880 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
4881 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4882
4883 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
4884 (LIBGCC2_TF_CEXT): Define.
4885 (TF_SIZE): Define.
4886
4887 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4888
4889 PR target/40463
4890 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
4891
4892 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4893
4894 * config/arm/arm.c (arm_override_options): Disable
4895 -mcaller-super-interworking and -mcallee-super-interworking.
4896 * doc/invoke.texi (ARM Options): Document this.
4897
4898 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
4899
4900 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
4901 * config/arm/constraints.md (j): New constraint for movw operands.
4902 (N): Remove thumb2 meaning.
4903 * config/arm/arm.md (*arm_movw): Delete.
4904 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
4905 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
4906 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
4907
4908 2009-06-22 Martin Jambor <mjambor@suse.cz>
4909
4910 PR tree-optimization/40492
4911 * tree-sra.c (sra_modify_assign): Pass zero offsets to
4912 build_ref_for_offset.
4913
4914 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
4915
4916 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
4917 JUMP_TABLE_DATA_P predicates where applicable.
4918 * auto-inc-dec.c: Ditto.
4919 * builtins.c: Ditto.
4920 * caller-save.c: Ditto.
4921 * calls.c: Ditto.
4922 * cfgcleanup.c: Ditto.
4923 * cfglayout.c: Ditto.
4924 * cfgrtl.c: Ditto.
4925 * combine.c: Ditto.
4926 * combine-stack-adj.c: Ditto.
4927 * cse.c: Ditto.
4928 * cselib.c: Ditto.
4929 * dbxout.c: Ditto.
4930 * df-scan.c: Ditto.
4931 * dse.c: Ditto.
4932 * dwarf2asm.c: Ditto.
4933 * dwarf2out.c: Ditto.
4934 * emit-rtl.c: Ditto.
4935 * except.c: Ditto.
4936 * explow.c: Ditto.
4937 * expmed.c: Ditto.
4938 * expr.c: Ditto.
4939 * final.c: Ditto.
4940 * function.c: Ditto.
4941 * fwprop.c: Ditto.
4942 * gcse.c: Ditto.
4943 * genpreds.c: Ditto.
4944 * genrecog.c: Ditto.
4945 * ifcvt.c: Ditto.
4946 * ira-costs.c: Ditto.
4947 * ira-lives.c: Ditto.
4948 * jump.c: Ditto.
4949 * loop-iv.c: Ditto.
4950 * lower-subreg.c: Ditto.
4951 * modulo-sched.c: Ditto.
4952 * optabs.c: Ditto.
4953 * postreload.c: Ditto.
4954 * print-rtl.c: Ditto.
4955 * recog.c: Ditto.
4956 * reginfo.c: Ditto.
4957 * regmove.c: Ditto.
4958 * reload1.c: Ditto.
4959 * reload.c: Ditto.
4960 * reorg.c: Ditto.
4961 * rtlanal.c: Ditto.
4962 * rtl.c: Ditto.
4963 * sched-vis.c: Ditto.
4964 * sdbout.c: Ditto.
4965 * sel-sched-ir.c: Ditto.
4966 * simplify-rtx.c: Ditto.
4967 * targhooks.c: Ditto.
4968 * var-tracking.c: Ditto.
4969 * vmsdbgout.c: Ditto.
4970
4971 2009-06-22 Matthias Klose <doko@ubuntu.com>
4972
4973 * Makefile.in (install-plugin): Always use DESTDIR.
4974
4975 2009-06-22 Olivier Hainque <hainque@adacore.com>
4976
4977 * config/pa/pa.c (output_call): Don't optimize post call jumps
4978 into return address adjustments if the call may throw.
4979
4980 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
4981
4982 * arm.c (thumb1_output_casesi): New function.
4983 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
4984 optimizing for size or PIC.
4985 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
4986 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
4987 (casesi): Handle Thumb-1 when optimizing for size or PIC.
4988 (thumb1_casesi_internal_pic): New expand rule.
4989 (thumb1_casesi_dispatch): New pattern.
4990 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
4991 thumb-1 mode.
4992 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
4993 in the text seciton when PIC or optimizing for size.
4994 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4995 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
4996 preservation properties of code.
4997 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
4998 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
4999 (__gnu_thumb1_case_si): New function.
5000 * t-arm (LIB1ASMSRC): Define here.
5001 (LIB1ASMFUNCS): Add some common functions.
5002 * t-arm-elf (LIB1ASMSRC): Delete.
5003 (LIB1ASMFUNCS): Append to existing set.
5004 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5005 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5006 * t-symbian (LIB1ASMFUNCS): Likewise.
5007 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5008 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5009
5010 2009-06-21 Richard Guenther <rguenther@suse.de>
5011
5012 PR tree-optimization/38729
5013 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
5014 to loops with a single exit if -fno-expensive-optimizations.
5015
5016 2009-06-21 Jakub Jelinek <jakub@redhat.com>
5017
5018 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
5019 (dataflow_set): Change vars type from htab_t to shared_hash.
5020 (shared_hash_pool, empty_shared_hash): New variables.
5021 (vars_clear): Removed.
5022 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
5023 shared_hash_find_slot_unshare, shared_hash_find_slot,
5024 shared_hash_find_slot_noinsert, shared_hash_find): New
5025 static inlines.
5026 (shared_hash_unshare, shared_hash_destroy): New functions.
5027 (unshare_variable): Unshare set->vars if shared, use
5028 shared_hash_htab.
5029 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
5030 (get_init_value, find_src_set_src, dump_dataflow_set,
5031 clobber_variable_part, emit_notes_for_differences): Use
5032 shared_hash_htab.
5033 (dataflow_set_init): Remove second argument, set vars to
5034 empty_shared_hash instead of creating a new htab.
5035 (dataflow_set_clear): Call shared_hash_destroy and set vars
5036 to empty_shared_hash instead of calling vars_clear.
5037 (dataflow_set_copy): Don't call vars_copy, instead just share
5038 the src htab with dst.
5039 (variable_union): Use shared_hash_*, use initially NO_INSERT
5040 lookup if set->vars is shared. Don't keep slot cleared before
5041 calling unshare_variable. Unshare set->vars if needed.
5042 Even ->refcount == 1 vars must be unshared if set->vars is shared
5043 and var needs to be modified.
5044 (variable_canonicalize): New function.
5045 (dataflow_set_union): If dst->vars is empty, just share src->vars
5046 with dst->vars and traverse with variable_canonicalize to canonicalize
5047 and unshare what is needed.
5048 (dataflow_set_different): If old_set and new_set use the same shared
5049 htab, they aren't different. If number of htab elements is different,
5050 htabs are different. Use shared_hash_*.
5051 (dataflow_set_destroy): Call shared_hash_destroy instead of
5052 htab_delete.
5053 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
5054 second argument to dataflow_set_init.
5055 (vt_initialize): Likewise. Initialize shared_hash_pool and
5056 empty_shared_hash, move bb in/out initialization afterwards.
5057 Use variable_htab_free instead of NULL as changed_variables del hook.
5058 (variable_was_changed): Change type of second argument to pointer to
5059 dataflow_set. When inserting var into changed_variables, bump
5060 refcount. Unshare set->vars if set is shared htab and slot needs to
5061 be cleared.
5062 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
5063 lookup if set->vars is shared. Unshare set->vars if needed.
5064 Even ->refcount == 1 vars must be unshared if set->vars is shared
5065 and var needs to be modified. Adjust variable_was_changed caller.
5066 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
5067 vars must be unshared if set->vars is shared and var needs to be
5068 modified. Adjust variable_was_changed caller.
5069 (emit_note_insn_var_location): Don't pool_free var.
5070 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
5071 instead of 1.
5072 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
5073 free_alloc_pool on shared_hash_pool.
5074
5075 2009-06-20 Anthony Green <green@moxielogic.com>
5076
5077 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
5078 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
5079
5080 2009-06-20 Richard Guenther <rguenther@suse.de>
5081
5082 * tree-ssa-structalias.c (find_func_aliases): For memset use
5083 a constraint from NULL if we memset to zero.
5084 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
5085 we explicitly handle that do not read from memory.
5086 (call_may_clobber_ref_p_1): Properly handle builtins that may
5087 set errno.
5088
5089 2009-06-20 Richard Guenther <rguenther@suse.de>
5090
5091 PR tree-optimization/40495
5092 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
5093 (new_scalar_tmp_constraint_exp): New function.
5094 (process_constraint): Do not create temporary decls.
5095 (process_all_all_constraints): Likewise.
5096 (handle_const_call): Likewise.
5097 (create_function_info_for): Do not set decl.
5098
5099 2009-06-19 Ian Lance Taylor <iant@google.com>
5100
5101 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
5102 (rs6000_attribute_table): Make static; move before use.
5103
5104 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5105
5106 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
5107 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
5108 Propagate the TREE_READONLY flag without overwriting it.
5109 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
5110 Propagate the TREE_READONLY flag onto the result.
5111 (process_call_operands): Move around. Use correct constant value.
5112
5113 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5114
5115 PR target/40482
5116 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
5117 * config/arm/arm.md: Likewise.
5118
5119 2009-06-19 Ian Lance Taylor <iant@google.com>
5120
5121 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
5122 to GIMPLE_ERROR_MARK.
5123
5124 * c-typeck.c (build_conditional_expr): Add op1_original_type and
5125 op2_original_type parameters. Warn about using different enum types.
5126 * c-parser.c (c_parser_conditional_expression): Pass original
5127 types to build_conditional_expr.
5128 * c-tree.h (build_conditional_expr): Update declaration.
5129
5130 2009-06-19 Ian Lance Taylor <iant@google.com>
5131
5132 * config/i386/i386.c (ix86_function_specific_save): Test that
5133 fields match values, rather than testing the values are in a
5134 certain range.
5135
5136 2009-06-19 Richard Guenther <rguenther@suse.de>
5137
5138 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5139 ADDR_EXPR pointers.
5140 (ptr_derefs_may_alias_p): Likewise.
5141 (ptr_deref_may_alias_ref_p_1): New function.
5142 (ptr_deref_may_alias_ref_p): Likewise.
5143 (ref_maybe_used_by_call_p_1): Handle builtins that are not
5144 covered by looking at the ESCAPED solution.
5145 (call_may_clobber_ref_p_1): Likewise.
5146 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
5147 Handle NULL_TREE offset. Do not produce redundant constraints.
5148 (process_all_all_constraints): New helper function.
5149 (do_structure_copy): Use it.
5150 (handle_lhs_call): Likewise.
5151 (find_func_aliases): Handle some builtins with pointer arguments
5152 and/or return values explicitly.
5153
5154 2009-06-19 Ian Lance Taylor <iant@google.com>
5155
5156 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
5157
5158 2009-06-19 Ian Lance Taylor <iant@google.com>
5159
5160 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
5161
5162 2009-06-19 Ian Lance Taylor <iant@google.com>
5163
5164 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
5165 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
5166 version.
5167
5168 * c-decl.c (finish_decl): If -Wc++-compat, warn about
5169 uninitialized const.
5170
5171 2009-06-19 Ian Lance Taylor <iant@google.com>
5172
5173 * dse.c (struct store_info): Rename bitmap field to bmap. Change
5174 all uses.
5175
5176 * c-decl.c (in_struct, struct_types): Remove.
5177 (struct c_binding): Add in_struct field.
5178 (c_binding_ptr): Define type, along with VEC.
5179 (struct c_struct_parse_info): Define.
5180 (struct_parse_info): New static variable.
5181 (bind): Initialize in_struct field.
5182 (start_struct): Remove enclosing_in_struct and
5183 enclosing_struct_types parameters. Add
5184 enclosing_struct_parse_info parameter. Change all callers. Set
5185 struct_parse_info rather than in_struct and struct_types.
5186 (grokfield): If -Wc++-compat and there is a symbol binding for the
5187 field name, set the in_struct flag and push it on the
5188 struct_parse_info->fields vector.
5189 (warn_cxx_compat_finish_struct): New static function.
5190 (finish_struct): Remove enclosing_in_struct and
5191 enclosing_struct_types parameters. Add
5192 enclosing_struct_parse_info parameter. Change all callers. Don't
5193 set C_TYPE_DEFINED_IN_STRUCT here. Call
5194 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
5195 parameter. Only push on struct_types if warn_cxx_compat.
5196 (finish_enum): Only push on struct_types if warn_cxx_compat.
5197 (declspecs_add_type): Add loc parameter. Change all callers.
5198 Change all error calls to error_at. Pass loc, not input_location,
5199 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
5200 defined in a struct. If -Wc++-compat and parsing a struct, record
5201 that a typedef name was used.
5202 * c-parser.c (c_parser_declspecs): Get location to pass to
5203 declspecs_add_type.
5204 (c_parser_struct_or_union_specifier): Update calls to start_struct
5205 and finish_struct.
5206 * c-tree.h (struct c_struct_parse_info): Declare.
5207 (finish_struct, start_struct): Update declarations.
5208 (declspecs_add_type): Update declaration.
5209
5210 2009-06-19 Ian Lance Taylor <iant@google.com>
5211
5212 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
5213 variable with an anonymous type.
5214
5215 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
5216
5217 * see.c: Remove for real.
5218
5219 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
5220
5221 * optabs.h (enum optab_index): Add new OTI_significand.
5222 (significand_optab): Define corresponding macro.
5223 * optabs.c (init_optabs): Initialize significand_optab.
5224 * genopinit.c (optabs): Implement significand_optab using
5225 significand?f2 patterns.
5226 * builtins.c (expand_builtin_mathfn): Handle
5227 BUILT_IN_SIGNIFICAND{,F,L}.
5228 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
5229 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5230
5231 * config/i386/i386.md (significandxf2, significand<mode>2): New
5232 expanders to implement significandf, significand and significandl
5233 built-ins as inline x87 intrinsics.
5234
5235 2009-06-18 Anatoly Sokolov <aesok@post.ru>
5236
5237 * config/avr/avr.c (avr_override_options): Remove setting value of
5238 PARAM_INLINE_CALL_COST.
5239
5240 2009-06-18 Richard Henderson <rth@redhat.com>
5241
5242 PR 40488
5243 * tree-pass.h (TDF_ASMNAME): New.
5244 * tree-dump.c (dump_options): Add asmname.
5245 * doc/invoke.texi: Document it.
5246
5247 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
5248 (dump_decl_name): ...here.
5249 (dump_function_name): New flags arg; mind TDF_ASMNAME.
5250 (dump_generic_node): Update dump_function_name calls.
5251 (print_call_name): New flags arg; update all dump calls.
5252 * diagnostic.h (print_call_name): Update.
5253 * gimple-pretty-print.c (dump_gimple_call): Update.
5254
5255 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
5256
5257 PR target/40470
5258 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
5259
5260 2009-06-18 Diego Novillo <dnovillo@google.com>
5261
5262 * doc/plugins.texi: Document plugin_is_GPL_compatible.
5263 * plugin.c (str_license): Declare.
5264 (try_init_one_plugin): Assert that the symbol
5265 'plugin_is_GPL_compatible' exists.
5266
5267 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
5268
5269 * see.c: Remove.
5270 * Makefile.in (OBJS-common): Remove see.o.
5271 (see.o): Remove.
5272 * common.opt (fsee): Mark as preserved for backward compatibility.
5273 * opts.c (common_handle_option): Add OPT_fsee to the backward
5274 compatibility section.
5275 * passes.c (init_optimization_passes, pass_see): Remove pass.
5276 * timevar.def (TV_SEE): Remove.
5277 * tree-pass.h (pass_see): Remove declaration.
5278 * doc/invoke.texi (-fsee): Remove documentation.
5279
5280 2009-06-18 Martin Jambor <mjambor@suse.cz>
5281
5282 * tree-sra.c: Include statistics.h
5283 (sra_stats): New variable.
5284 (sra_initialize): Clear sra_stats.
5285 (create_access_replacement): Increment sra_stats.replacements.
5286 (get_access_replacement): Do not return twice.
5287 (analyze_all_variable_accesses): Increment statistics counter by the
5288 number of scalarized aggregates.
5289 (generate_subtree_copies): Increment sra_stats.subtree_copies.
5290 (sra_modify_expr): Increment sra_stats.exprs.
5291 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
5292 (sra_modify_assign): Increment sra_stats.exprs,
5293 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
5294 (perform_intra_sra): Update statistics counters.
5295 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
5296
5297 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
5298
5299 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
5300 (arm_scalar_mode_supported_p): New function.
5301
5302 2009-06-18 Paul Brook <paul@codesourcery.com>
5303 Sandra Loosemore <sandra@codesourcery.com>
5304
5305 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
5306 (__extendhfsf2, __truncsfhf2): Define.
5307 * config/arm/fp16.c: New file.
5308 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
5309 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
5310
5311 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
5312
5313 * doc/extend.texi (Half-Precision): New section.
5314 * doc/invoke.texi (Option Summary): List -mfp16-format.
5315 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
5316 * config/arm/arm.opt (mfp16-format=): New.
5317 * config/arm/arm.c: Include intl.h.
5318 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
5319 (TARGET_INVALID_RETURN_TYPE): Redefine.
5320 (TARGET_PROMOTED_TYPE): Redefine.
5321 (TARGET_CONVERT_TO_TYPE): Redefine.
5322 (arm_fp16_format): Define.
5323 (all_fpus): Add entry for neon-fp16.
5324 (fp_model_for_fpu): Likewise.
5325 (struct fp16_format): Declare.
5326 (all_fp16_formats): Define.
5327 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
5328 functions.
5329 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
5330 and no ldrh.
5331 (arm_legitimate_index_p): Treat HFmode like HImode.
5332 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
5333 (coproc_secondary_reload_class): Special-case HFmode.
5334 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
5335 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
5336 (arm_init_fp16_builtins): New.
5337 (arm_init_builtins): Call it.
5338 (arm_invalid_parameter_type): New.
5339 (arm_invalid_return_type): New.
5340 (arm_promoted_type): New.
5341 (arm_convert_to_type).
5342 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
5343 format.
5344 (arm_emit_fp16_const): New function.
5345 (arm_mangle_type): Mangle __fp16 as "Dh".
5346 * config/arm/arm.h (TARGET_VFPD32): Make it know about
5347 FPUTYPE_NEON_FP16.
5348 (TARGET_NEON_FP16): New.
5349 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
5350 (enum fputype): Add FPUTYPE_NEON_FP16.
5351 (enum arm_fp16_format_type): Declare.
5352 (arm_fp16_format): Declare.
5353 (LARGEST_EXPONENT_IS_NORMAL): Define.
5354 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
5355 * config/arm/arm-modes.def (HFmode): Define.
5356 * config/arm/vfp.md: (*movhf_vfp): New.
5357 (extendhfsf2): New.
5358 (truncsfhf2): New.
5359 * config/arm/arm.md: (fpu): Add neon_fp16.
5360 (floatsihf2, floatdihf2): New.
5361 (fix_trunchfsi2, fix_trunchfdi2): New.
5362 (truncdfhf2): New.
5363 (extendhfdf2): New.
5364 (movhf): New.
5365 (*arm32_movhf): New.
5366 (*thumb1_movhf): New.
5367 (consttable_2): Add check for HFmode constants.
5368 (consttable_4): Handle HFmode constants.
5369
5370 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
5371
5372 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
5373
5374 2009-06-17 Olivier Hainque <hainque@adacore.com>
5375
5376 * collect2.c (main): Use CONST_CAST2 to perform char ** to
5377 const char ** conversion in AIX specific section.
5378
5379 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
5380
5381 * config/i386/i386.c (ix86_special_builtin_type): Remove
5382 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
5383 (bdesc_special_args): Updated.
5384 (ix86_init_mmx_sse_builtins): Likewise.
5385 (ix86_expand_special_args_builtin): Likewise.
5386
5387 2009-06-17 Richard Henderson <rth@redhat.com>
5388
5389 * tree-pretty-print.c (maybe_dump_asm_name): New.
5390 (dump_decl_name): Use it.
5391 (PRINT_FUNCTION_NAME): Merge into...
5392 (dump_function_name): ... here. Use maybe_dump_asm_name.
5393
5394 2009-06-17 Cary Coutant <ccoutant@google.com>
5395
5396 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
5397 Change caller.
5398 * debug.c (struct gcc_debug_hooks): Change placeholder for
5399 source_line hook.
5400 (debug_nothing_int_charstar_int): Replaced by...
5401 (debug_nothing_int_charstar_int_bool): ...this.
5402 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
5403 source_line prototype.
5404 (debug_nothing_int_charstar_int): Replaced by...
5405 (debug_nothing_int_charstar_int_bool): ...this.
5406 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
5407 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
5408 Output is_stmt operand when necessary.
5409 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
5410 (notice_source_line): Add is_stmt parameter.
5411 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
5412 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
5413 Change callers.
5414 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
5415 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
5416
5417 2009-06-17 Ian Lance Taylor <iant@google.com>
5418
5419 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
5420 Change all uses.
5421 (struct store_by_pieces_d): Rename from store_by_pieces. Change
5422 call uses.
5423
5424 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
5425
5426 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
5427 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
5428 tree_strip_sign_nop_conversions and
5429 tree_ssa_strip_useless_type_conversions rather than stripping
5430 the operations here.
5431 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
5432 Declare them.
5433 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
5434 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
5435 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
5436 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
5437 functions.
5438
5439 2009-06-17 Michael Eager <eager@eagercon.com>
5440
5441 * config/rs6000/constraints.md (register_constraint "d"): New.
5442 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
5443 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5444 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
5445 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
5446 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5447 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
5448 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
5449 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
5450 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
5451 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
5452 __fctiwz): Same.
5453 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
5454 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
5455 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
5456 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
5457 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
5458 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
5459 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
5460 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
5461 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
5462 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
5463 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
5464 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
5465 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
5466 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
5467
5468 2009-06-16 Ian Lance Taylor <iant@google.com>
5469
5470 * profile.c (total_num_never_executed): Don't define.
5471 (compute_branch_probabilities): Don't count or print
5472 num_never_executed.
5473 (init_branch_prob): Don't set total_num_never_executed.
5474 (end_branch_prob): Don't print total_num_never_executed.
5475
5476 2009-06-17 David Daney <ddaney@caviumnetworks.com>
5477
5478 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
5479
5480 2009-06-17 David Edelsohn <edelsohn@gnu.org>
5481
5482 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
5483 (nabstd2_fpr): Same.
5484
5485 2009-06-17 Steve Ellcey <sje@cup.hp.com>
5486
5487 * expr.c (expand_assignment): Change complex type check.
5488
5489 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
5490
5491 * doc/plugins.texi (Building GCC plugins): Added new section.
5492
5493 2009-06-17 Ian Lance Taylor <iant@google.com>
5494
5495 * c-pch.c (get_ident): Don't set size of templ array.
5496 (pch_init): Don't set size of partial_pch array.
5497
5498 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
5499 string constant to intialize an array whose size is the length of
5500 the string.
5501
5502 2009-06-17 Richard Guenther <rguenther@suse.de>
5503
5504 PR tree-optimization/40389
5505 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
5506 to addressable types.
5507 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
5508
5509 2009-06-17 Richard Guenther <rguenther@suse.de>
5510
5511 PR middle-end/40460
5512 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
5513 if there is no evolution of left in the loop bail out.
5514 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
5515 chrec_fold_multiply.
5516
5517 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
5518 Janis Johnson <janis187@us.ibm.com>
5519
5520 PR target/39254
5521 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
5522 for the symbol ref of a constant that is the source of a move
5523 - nor for any other not-obvious-label-ref constants.
5524
5525 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
5526
5527 * plugin.c (position_pass): Skip newly inserted pass during list
5528 traversal to avoid repeated insertion.
5529
5530 2009-06-16 Ian Lance Taylor <iant@google.com>
5531
5532 * vec.h (VEC_stack_alloc): Define different version if
5533 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
5534 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
5535 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
5536 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
5537
5538 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
5539
5540 * config.gcc (extra_headers): Add ia32intrin.h for x86.
5541
5542 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
5543 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
5544 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
5545 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
5546 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
5547 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
5548 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
5549 (bdesc_special_args): Add __builtin_ia32_rdtsc and
5550 __builtin_ia32_rdtscp.
5551 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
5552 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
5553 and __builtin_ia32_rorhi.
5554 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
5555 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
5556 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
5557 (ix86_expand_args_builtin): Likewise.
5558 (ix86_expand_special_args_builtin): Likewise.
5559
5560 * config/i386/i386.md (UNSPECV_RDTSCP): New.
5561 (UNSPECV_RDTSC): Likewise.
5562 (UNSPECV_RDPMC): Likewise.
5563 (*bsr): Renamed to ...
5564 (bsr): This
5565 (*bsr_rex64): Renamed to ...
5566 (bsr_rex64): This.
5567 (rdpmc): New.
5568 (*rdpmc): Likewise.
5569 (*rdpmc_rex64): Likewise.
5570 (rdtsc): Likewise.
5571 (*rdtsc): Likewise.
5572 (*rdtsc_rex64): Likewise.
5573 (rdtscp): Likewise.
5574 (*rdtscp): Likewise.
5575 (*rdtscp_rex64): Likewise.
5576
5577 * config/i386/ia32intrin.h: New.
5578
5579 * config/i386/x86intrin.h: Include <ia32intrin.h>.
5580
5581 2009-06-16 Ian Lance Taylor <iant@google.com>
5582
5583 * ira-build.c (copy_info_to_removed_store_destinations):
5584 Initialize parent_a.
5585
5586 2009-06-16 Ian Lance Taylor <iant@google.com>
5587
5588 * c-decl.c (grokdeclarator): Change size_varies to bool.
5589
5590 2009-06-16 Ian Lance Taylor <iant@google.com>
5591
5592 * sel-sched.c: Make forward declarations of move_op_hooks and
5593 fur_hooks explicitly extern.
5594
5595 2009-06-16 Ian Lance Taylor <iant@google.com>
5596
5597 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
5598 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
5599
5600 2009-06-16 Ian Lance Taylor <iant@google.com>
5601
5602 * resource.c (mark_referenced_resources): Change
5603 include_delayed_effects parameter to bool. Change all callers.
5604 (mark_end_of_function_resources): Likewise.
5605 * reorg.c (insn_references_resource_p): Likewise.
5606 (insn_sets_resource_p): Likewise.
5607 * resource.h (mark_referenced_resources): Update declaration.
5608 (mark_end_of_function_resources): Update declaration.
5609
5610 2009-06-16 David Edelsohn <edelsohn@gnu.org>
5611
5612 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
5613
5614 2009-06-16 David Edelsohn <edelsohn@gnu.org>
5615
5616 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
5617 GCC can bootstrap on AIX with GNU Binutils 2.20.
5618
5619 2009-06-16 Ian Lance Taylor <iant@google.com>
5620
5621 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
5622
5623 2009-06-16 Ian Lance Taylor <iant@google.com>
5624
5625 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
5626 inline, not extern inline.
5627 (exact_log2): Likewise.
5628 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
5629 test CLZ_HWI.
5630 (exact_log2): Likewise, but don't test CTZ_HWI.
5631
5632 2009-06-16 Ian Lance Taylor <iant@google.com>
5633
5634 * bitmap.c (bitmap_clear): Don't declare as inline.
5635 * gimple.c (gimplify_assign): Likewise.
5636 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5637 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
5638 (sched_scan_info): Remove duplicate definition.
5639
5640 2009-06-16 Ian Lance Taylor <iant@google.com>
5641
5642 * c-common.c (skip_evaluation): Don't define.
5643 (c_inhibit_evaluation_warnings): Define global variable.
5644 (overflow_warning): Check c_inhibit_evaluation_warnings rather
5645 than skip_evaluation.
5646 (convert_and_check, warn_for_div_by_zero): Likewise.
5647 * c-common.h (skip_evaluation): Don't declare.
5648 (c_inhibit_evaluation_warnings): Declare.
5649 * c-parser.c (c_parser_typeof_specifier): Set
5650 c_inhibit_evaluation_warnings rather than skip_evaluation.
5651 (c_parser_conditional_expression): Likewise.
5652 (c_parser_binary_expression): Likewise.
5653 (c_parser_sizeof_expression): Likewise.
5654 (c_parser_alignof_expression): Likewise.
5655 * c-typeck.c (build_indirect_ref): Check
5656 c_inhibit_evaluation_warnings rather than skip_evaluation.
5657 (build_conditional_expr, build_binary_op): Likewise.
5658
5659 2009-06-16 Richard Guenther <rguenther@suse.de>
5660
5661 * tree-ssa-alias.c (is_escape_site): Remove.
5662 * tree-ssa-alias.h (enum escape_type): Remove.
5663 (is_escape_site): Likewise.
5664 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
5665 via casts and asms without deferring to is_escape_site.
5666
5667 2009-06-16 Jakub Jelinek <jakub@redhat.com>
5668
5669 PR middle-end/40446
5670 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
5671 use gen_lowpart if op0 has complex mode.
5672
5673 2009-06-16 Richard Guenther <rguenther@suse.de>
5674
5675 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
5676 variables add them to ESCAPED.
5677 (find_func_aliases): Do not make all indirectly stored values escaped.
5678
5679 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
5680
5681 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
5682 make_decl_one_only.
5683
5684 2009-06-16 Martin Jambor <mjambor@suse.cz>
5685
5686 PR tree-optimization/40432
5687 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
5688 check whether we need to force gimple register operand.
5689
5690 2009-06-16 Martin Jambor <mjambor@suse.cz>
5691
5692 PR tree-optimization/40413
5693 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
5694 build_ref_for_offset.
5695 (propagate_subacesses_accross_link): Fix a typo in a comment.
5696
5697 2009-06-16 Ira Rosen <irar@il.ibm.com>
5698
5699 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
5700 with additional parameter.
5701 * tree-vectorizer.h (enum vect_def_type): Add new value
5702 vect_nested_cycle.
5703 (enum vect_relevant): Add comments.
5704 (vect_is_simple_reduction): Add new argument.
5705 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
5706 Detect nested cycles.
5707 (vect_is_simple_reduction): Update documentation, add an argument to
5708 distinguish inner-loop reduction from nested cycle, detect nested
5709 cycles, fix printings and indentation, don't swap operands in case
5710 of nested cycle.
5711 (get_initial_def_for_reduction): Handle subtraction.
5712 (vect_create_epilog_for_reduction): Add new argument to specify
5713 reduction variable.
5714 (vect_finalize_reduction): Handle subtraction, fix comments.
5715 (vectorizable_reduction): Handle nested cycles. In case of nested
5716 cycle keep track of the reduction variable position. Call
5717 vect_is_simple_reduction with additional parameter. Use original
5718 statement code in reduction epilogue for nested cycle. Call
5719 vect_create_epilog_for_reduction with additional parameter.
5720 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
5721 inner-loop vectorization.
5722 (vect_recog_widen_sum_pattern): Likewise.
5723 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
5724 and reductions.
5725 (vect_mark_stmts_to_be_vectorized): Likewise.
5726 (vect_get_vec_def_for_operand): Handle nested cycles.
5727
5728 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5729
5730 * doc/invoke.texi (Debugging Options): Fix option index entries
5731 for -fdump-statistics, -frandom-seed add entries for
5732 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
5733 (FRV Options): Fix entries for -mTLS, -mtls.
5734 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
5735 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
5736 (M68hc1x Options): Fix @itemx for -mnominmax.
5737 (MCore Options): Fix entry for -mno-lsim.
5738 (MMIX Options): Fix entry for -mabi=mmixware.
5739 (PDP-11 Options): Fix entry for -mbcopy-builtin.
5740
5741 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
5742
5743 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
5744 Mention the plugin mode of gengtype.
5745 * doc/gty.texi (Source Files Containing Type Information): Likewise.
5746 * gengtype.c: Updated copyright.
5747 (plugin_files, nb_plugin_files) Added new static variables.
5748 (measure_input_list) Care about plugin_files.
5749 (write_rtx_next): Added early return in plugin mode.
5750 (create_file): Updated copyright year in generated file. Added
5751 asserts.
5752 (oprintf): Added early return if NULL outf.
5753 (get_output_file_with_visibility): Care of plugin_files.
5754 (get_output_file_name): May return null.
5755 (write_local): Added early return.
5756 (put_mangled_filename): Ditto.
5757 (finish_root_table): Added check for base_files.
5758 (write_roots): Care about null when plugins.
5759 (main): Added plugin mode.
5760
5761 2009-06-15 Ian Lance Taylor <iant@google.com>
5762
5763 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
5764 * gcov.c (read_count_file): Add braces around variables declared
5765 before label.
5766
5767 * c.opt (Wjump-misses-init): New warning.
5768 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
5769 -Wall and -Wc++-compat if not already set.
5770 (c_common_post_options): Clear warn_jump_misses_init if it was not
5771 set.
5772 * c-decl.c (struct c_binding): Change type field to a union with
5773 new label field. Make it the first field in the struct. Update
5774 references to type to use u.type instead.
5775 (struct c_spot_bindings): Define.
5776 (struct c_goto_bindings): Define.
5777 (c_goto_bindings_p): Define, along with VECs.
5778 (struct c_label_vars): Define.
5779 (struct c_scope): Add has_label_bindings field.
5780 (bind_label, set_spot_bindings): New static functions.
5781 (decl_jump_unsafe, update_spot_bindings): New static functions.
5782 (update_label_decls): New static function.
5783 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
5784 Update binding u.label field to shadowed field.
5785 (c_binding_start_stmt_expr): New function.
5786 (c_binding_end_stmt_expr): New function.
5787 (pushdecl): Don't call c_begin_vm_scope.
5788 (make_label): Add defining and p_label_vars parameters. Change
5789 all callers.
5790 (lookup_label): Correct test for whether a label has not yet been
5791 defined. Call bind_label rather than bind.
5792 (warn_about_goto): New static function.
5793 (lookup_label_for_goto): New function.
5794 (declare_label): Call bind_label rather than bind.
5795 (check_earlier_gotos): New static function.
5796 (define_label): Don't give errors about jumping into statement
5797 expressions or scopes of variably modified types. Call
5798 set_spot_bindings and check_earlier_gotos. Call bind_label
5799 instead of bind. Don't set label_context_stack_se or
5800 label_context_stack_vm.
5801 (c_get_switch_bindings): New function.
5802 (c_release_switch_bindings): New function.
5803 (c_check_switch_jump_warnings): New function.
5804 (start_function): Don't set label_context_stack_se or
5805 label_context_stack_vm.
5806 (finish_function): Likewise.
5807 * c-typeck.c (label_context_stack_se): Don't define.
5808 (label_context_stack_vm): Don't define.
5809 (c_finish_goto_label): Call lookup_label_for_goto rather than
5810 lookup_label. Don't give errors about jumping into a statement
5811 expression or the scope of a variably modified type. Don't set
5812 label_context_stack_se or label_context_stack_vm.
5813 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
5814 fields. Add bindings field.
5815 (c_start_case): Don't set deleted fields. Set bindings field.
5816 (do_case): Rework order of tests. Don't check blocked_stmt_expr
5817 or blocked_vm. Call c_check_switch_jump_warnings.
5818 (c_finish_case): Don't test blocked_stmt_expr field. Call
5819 c_release_switch_bindings.
5820 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
5821 c_switch_stack. Don't walk label_context_stack_se labels. Don't
5822 set label_context_stack_se. Call c_bindings_start_stmt_expr.
5823 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
5824 c_switch_stack. Don't walk label_context_stack_se labels. Don't
5825 set label_context_stack_se. Call c_bindings_end_stmt_expr.
5826 (c_begin_vm_scope, c_end_vm_scope): Don't define.
5827 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
5828 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
5829 (C_DECL_UNJUMPABLE_VM): Don't define.
5830 (C_DECL_UNDEFINABLE_VM): Don't define.
5831 (struct c_label_list): Don't define.
5832 (struct c_label_context_se): Don't define.
5833 (struct c_label_context_vm): Don't define.
5834 (struct c_spot_bindings): Declare.
5835 (c_bindings_start_stmt_expr): Declare.
5836 (c_bindings_end_stmt_expr): Declare.
5837 (lookup_label_for_goto): Declare.
5838 (c_get_switch_bindings, c_release_switch_bindings): Declare.
5839 (c_check_switch_jump_warnings): Declare.
5840 (label_context_stack_se, label_context_stack_vm): Don't declare.
5841 (c_finish_goto_label): Update declaration.
5842 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
5843 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
5844 (Warning Options): Document -Wjump-misses-init.
5845
5846 2009-06-15 Jakub Jelinek <jakub@redhat.com>
5847
5848 * tree-object-size.c (addr_object_size): Fix a pasto in the last
5849 change.
5850
5851 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
5852
5853 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
5854
5855 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
5856
5857 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
5858
5859 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
5860
5861 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
5862
5863 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
5864
5865 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
5866 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
5867 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
5868 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
5869 * dwarf2asm.c (dw2_force_const_mem): Update call to
5870 make_decl_one_only.
5871 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
5872 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
5873 * langhooks.c (lhd_comdat_group): Remove.
5874 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
5875 * tree.h (DECL_COMDAT_GROUP): New.
5876 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
5877 (tree_decl_with_vis): Add comdat_group. Remove one_only.
5878 (make_decl_one_only): Change signature.
5879 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
5880 make_decl_one_only.
5881 (make_decl_one_only): Change signature.
5882 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
5883
5884 2009-06-15 Richard Guenther <rguenther@suse.de>
5885
5886 PR middle-end/40439
5887 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
5888
5889 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5890
5891 * tree-ssa-math-opts.c: Remove extra divide.
5892
5893 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5894
5895 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
5896
5897 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5898
5899 * passes.c: Add bswap pass.
5900 * tree-pass.h: Add pass_optimize_bswap declaration.
5901 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
5902 Include rtl.h, expr.h and optabs.h for optab_handler check.
5903 (struct symbolic_number, pass_optimize_bswap): New definition.
5904 (do_shift_rotate, verify_symbolic_number_p): New functions.
5905 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
5906 (gate_optimize_bswap): New function.
5907 * tree.c (widest_int_cst_value): New function.
5908 * tree.h (widest_int_cst_value): Prototype added.
5909
5910 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
5911
5912 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
5913 REG_EQUAL/REG_EQUIV notes.
5914
5915 2009-06-14 Richard Guenther <rguenther@suse.de>
5916
5917 PR middle-end/40389
5918 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
5919 has its address taken if NRV was applied and it is addressable.
5920 * tree-ssa-structalias.c (get_constraint_for_address_of): New
5921 function split out from ...
5922 (get_constraint_for_1): ... here.
5923 (handle_rhs_call): Use it to mark the return slot escaped if
5924 it is addressable and NRV was applied.
5925
5926 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5927
5928 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
5929 Change first argument type to location_t.
5930 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
5931 Do not set input_location.
5932 Use loc instead of input_location throughout.
5933
5934 2009-06-13 Richard Guenther <rguenther@suse.de>
5935
5936 PR tree-optimization/40421
5937 * tree-predcom.c (should_unroll_loop_p): Remove.
5938 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
5939
5940 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5941
5942 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5943 Add location argument.
5944
5945 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5946
5947 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
5948 build_decl.
5949 * config/s390/s390.c (s390_build_builtin_va_list): Same.
5950 (s390_gimplify_va_arg): Pass location to create_artificial_label.
5951 * config/spu/spu-protos.h: Add location to
5952 spu_resolve_overloaded_builtin.
5953 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
5954 spu_build_builtin_va_list.
5955 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
5956 argument. Pass location to build_function_call_vec.
5957 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
5958 build_decl.
5959 (emit_fpu_switch): Same.
5960 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
5961 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
5962 to build_decl and create_artificial_label.
5963 (xtensa_gimplify_va_arg_expr): Same.
5964 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
5965 (xstormy16_gimplify_va_arg_expr): Same.
5966 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
5967 * config/arm/arm.c (arm_build_builtin_va_list): Same.
5968 * config/mips/mips.c (mips_build_builtin_va_list): Same.
5969 (mips16_build_function_stub): Same.
5970 (mips16_build_call_stub): Same.
5971
5972 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
5973
5974 PR target/40327
5975 * arm/constraints.md (Pa, Pb): New constraints.
5976 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
5977 split pattern to deal with them.
5978
5979 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
5980
5981 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
5982 fix index entry for -Xpreprocessor.
5983
5984 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
5985
5986 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5987 Add location argument to build_decl call.
5988 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
5989 (rs6000_init_builtins): Same.
5990 (spe_init_builtins): Same.
5991 (rs6000_gimplify_va_arg): Add location argument to
5992 create_artificial_label call.
5993
5994 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
5995
5996 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
5997 * combine-stack-adj.c (pass_stack_adjustments): Use it.
5998 * Makefile.in: Fix GGC dependency for gcse.o.
5999
6000 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
6001
6002 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
6003 * gimple-pretty-print.c (dump_gimple_stmt): Same.
6004 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
6005 created.
6006 * c-parser.c (c_parser_binary_expression): Use current column while
6007 building binary operations.
6008 * common.opt (fshow-column): Enable by default.
6009 * tree-vrp.c (check_array_ref): Use warning_at.
6010 (check_array_bounds): Use location from call back if expr has no
6011 location.
6012 * tree.h: Add location argument to maybe_fold_*.
6013 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
6014 (maybe_fold_offset_to_array_ref): Add location argument and use it.
6015 (maybe_fold_offset_to_component_ref): Same.
6016 (maybe_fold_offset_to_reference): Same.
6017 (maybe_fold_offset_to_address): Same.
6018 (maybe_fold_stmt_indirect): Same.
6019 (maybe_fold_stmt_addition): Same.
6020 (fold_stmt_r): Pass location to maybe_fold_*.
6021 (fold_gimple_assign): Same.
6022 * c-tree.h: Add location argument to finish_decl,
6023 default_function_array_conversion, store_init_value.
6024 * c-decl.c (define_label): Use error_at.
6025 (c_make_fname_decl): Pass location to finish_decl.
6026 (finish_decl): New location argument.
6027 (build_compound_literal): Pass location to store_init_value.
6028 (grokdeclarator): Pass location to finish_decl.
6029 (grokfield): Same.
6030 * c-typeck.c (array_to_pointer_conversion): New location argument.
6031 (function_to_pointer_conversion): Same.
6032 (default_function_array_conversion): Same.
6033 (parser_build_unary_op): Pass location to overflow_warning.
6034 (parser_build_binary_op): Same. Use warning_at.
6035 (build_unary_op): Pass location to array_to_pointer_conversion.
6036 (build_c_cast): Pass location to digest_init.
6037 (build_modify_expr): New location argument.
6038 (convert_for_assignment): Same.
6039 (store_init_value): Same.
6040 (digest_init): Same.
6041 (output_init_element): Pass location to digest_init and
6042 array_to_pointer_conversion.
6043 (c_finish_return): Pass location to convert_for_assignment.
6044 * gimplify.c (gimplify_conversion): Pass location to
6045 maybe_fold_offset_to_address.
6046 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
6047 to maybe_fold_stmt_addition.
6048 * c-omp.c (c_finish_omp_atomic): Pass new location to
6049 build_modify_expr.
6050 (c_finish_omp_for): Same.
6051 * c-common.c (overflow_warning): New argument.
6052 * c-common.h: New argument to build_modify_expr, overflow_warning.
6053 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
6054 finish_decl.
6055 (c_parser_initializer): Pass location to
6056 default_function_array_conversion.
6057 (c_parser_initelt): Same.
6058 (c_parser_initval): Same.
6059 (c_parser_asm_operands): Same.
6060 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
6061 (c_parser_conditional_expression): Same.
6062 (c_parser_binary_expression): Add location info to stack. Use it.
6063 (c_parser_unary_expression): Pass location to
6064 default_function_array_conversion, parser_build_unary_op,
6065 build_indirect_ref, c_parser_postfix_expression_after_primary.
6066 (c_parser_postfix_expression_after_primary): New location argument.
6067 Use it.
6068 (c_parser_expression_conv): Pass location to
6069 default_function_array_conversion.
6070 (c_parser_expr_list): Same.
6071 (c_parser_omp_atomic): Same.
6072 (c_parser_omp_for_loop): Same.
6073 * c-tree.h: (struct c_declarator): Add comment to id_loc.
6074 (build_array_declarator): New argument.
6075 * c-decl.c (build_array_declarator): Add location argument.
6076 (grokdeclarator): Set id_loc for cdk_array.
6077 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
6078 build_array_declarator.
6079 * tree.c (build_omp_clause): Add location argument.
6080 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
6081 (OMP_CLAUSE_LOCATION): New macro.
6082 (struct tree_omp_clause): Add location field.
6083 (build_omp_clause): Add argument.
6084 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
6085 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
6086 build_omp_clause.
6087 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
6088 (cp_parser_omp_clause_collapse): Same.
6089 (cp_parser_omp_clause_default): Same.
6090 (cp_parser_omp_clause_if): Same.
6091 (cp_parser_omp_clause_nowait): Same.
6092 (cp_parser_omp_clause_num_threads): Same.
6093 (cp_parser_omp_clause_ordered): Same.
6094 (cp_parser_omp_clause_schedule): Same.
6095 (cp_parser_omp_clause_untied): Same.
6096 (cp_parser_omp_for_loop): Same.
6097 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6098 * c-tree.h (c_start_case): Add location argument.
6099 (c_process_expr_stmt): Same.
6100 (c_finish_goto_*): Same.
6101 * tree-parloops.c (initialize_reductions): Pass location to
6102 build_omp_clause.
6103 (create_parallel_loop): Same.
6104 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
6105 (gfc_trans_omp_reduction_list): Same.
6106 (gfc_trans_omp_clauses): Same.
6107 (gfc_trans_omp_do): Same.
6108 * c-typeck.c (c_finish_goto_label): Same.
6109 (c_finish_goto_ptr): New location argument.
6110 (c_start_case): Same.
6111 (emit_side_effect_warnings): Same.
6112 (c_process_expr_stmt): Same.
6113 (c_finish_stmt_expr): Same.
6114 (c_finish_omp_clauses): Use error_at instead of error.
6115 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
6116 build_omp_clause.
6117 * c-omp.c (c_split_parallel_clauses): New location argument.
6118 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
6119 to build_omp_clause.
6120 (convert_local_reference_stmt): Same.
6121 (convert_gimple_call): Same.
6122 * c-common.h (c_split_parallel_clauses): New argument.
6123 * c-parser.c (c_parser_statement_after_labels): Pass location to
6124 c_finish_goto_label.
6125 (c_parser_switch_statement): Pass location to c_start_case.
6126 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
6127 and c_process_expr_stmt.
6128 (c_parser_omp_variable_list): Add location argument.
6129 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
6130 (c_parser_omp_clause_default): Same.
6131 (c_parser_omp_clause_if): Same.
6132 (c_parser_omp_clause_num_threads): Same.
6133 (-c_parser_omp_clause_ordered): Same.
6134 (c_parser_omp_clause_reduction): Pass location to
6135 c_parser_omp_variable_list.
6136 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
6137 (c_parser_omp_clause_untied): Same.
6138 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
6139 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6140
6141 * c-tree.h (check_for_loop_decls, undeclared_variable,
6142 build_component_ref, build_array_ref, build_external_ref,
6143 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
6144 build_conditional_expr, build_compound_expr, c_cast_expr,
6145 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
6146 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
6147 argument.
6148 * c-semantics.c (build_stmt): Same.
6149 (build_case_label): Same.
6150 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
6151 (undeclared_variable): New argument.
6152 (make_label): Same.
6153 (lookup_label): Pass location on down.
6154 (define_label): Same.
6155 (finish_decl): Same.
6156 (build_compound_literal): Same.
6157 (finish_struct): Same.
6158 (finish_function): Do not set location here.
6159 (check_for_loop_decls): New argument.
6160 * tree.c (save_expr): Set location.
6161 (build_empty_stmt): New argument.
6162 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
6163 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
6164 * builtins.c (gimplify_va_arg_expr): Use locations.
6165 (expand_builtin_sync_operation): Same.
6166 * c-typeck.c (build_component_ref): New argument.
6167 (build_array_ref): Same.
6168 (build_external_ref): Same.
6169 (c_expr_sizeof_expr): Same.
6170 (c_expr_sizeof_type): Same.
6171 (parser_build_unary_op): Same.
6172 (build_conditional_expr): Same.
6173 (build_compound_expr): Pass location on down.
6174 (build_compound_expr): New argument.
6175 (build_c_cast): Same.
6176 (c_cast_expr): Same.
6177 (build_asm_expr): Same.
6178 (c_finish_return): Same.
6179 (c_process_expr_stmt): Pass location on down.
6180 (c_finish_stmt_expr): New argument.
6181 (push_clenaup): Same.
6182 (c_finish_omp_parallel): Same.
6183 (c_finish_omp_task): Same.
6184 * gimplify.c (gimplify_call_expr): Pass location on down.
6185 * c-omp.c (c_finish_omp_master): New argument.
6186 (c_finish_omp_critical): Same.
6187 (c_finish_omp_ordered): Same.
6188 (c_finish_omp_barrier): Same.
6189 (-c_finish_omp_taskwait): Same.
6190 (c_finish_omp_atomic): Same.
6191 (c_finish_omp_flush): Same.
6192 * tree-inline.c (copy_tree_body_r): Pass location on down.
6193 (inline_forbidden_p): Remove use of input_location.
6194 * c-gimplify.c (c_build_bind_expr): New argument.
6195 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
6196 (c_sizeof_or_alignof_type): New argument.
6197 (c_alignof_expr): Same.
6198 (build_va_arg): Same.
6199 (c_add_case_label): Same.
6200 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
6201 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
6202 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
6203 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
6204 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
6205 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
6206 New argument.
6207 * stub-objc.c (objc_build_selector_expr): Same.
6208 (objc_build_throw_stmt): Same.
6209 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
6210 (c_parser_initelt): Same.
6211 (c_parser_compound_statement): Same.
6212 (c_parser_compound_statement_nostart): Same.
6213 (c_parser_label): Same.
6214 (c_parser_statement_after_labels): Same.
6215 (c_parser_if_body): Same.
6216 (c_parser_else_body): Same.
6217 (c_parser_if_statement): Same.
6218 (c_parser_switch_statement): Same.
6219 (c_parser_while_statement): Same.
6220 (c_parser_do_statement): Same.
6221 (c_parser_for_statement): Same.
6222 (c_parser_asm_statement): Same.
6223 (c_parser_conditional_expression): Same.
6224 (c_parser_binary_expression): Same.
6225 (c_parser_cast_expression): Same.
6226 (c_parser_unary_expression): Same.
6227 (c_parser_sizeof_expression): Same.
6228 (c_parser_alignof_expression): Same.
6229 (c_parser_postfix_expression): Same.
6230 (c_parser_expression): Same.
6231 (c_parser_objc_receiver): Same.
6232 (c_parser_omp_variable_list): Same.
6233 (c_parser_omp_structured_block): Same.
6234 (c_parser_omp_atomic): New argument.
6235 (c_parser_omp_barrier): Same.
6236 (c_parser_omp_critical): Same.
6237 (c_parser_omp_flush): Pass location on down.
6238 (c_parser_omp_for_loop): New argument.
6239 (c_parser_omp_for): Same.
6240 (c_parser_omp_master): Same.
6241 (c_parser_omp_ordered): Same.
6242 (c_parser_omp_sections_scope): Same.
6243 (c_parser_omp_sections): Same.
6244 (c_parser_omp_parallel): Same.
6245 (c_parser_omp_single): Same.
6246 (c_parser_omp_task): Same.
6247 (c_parser_omp_taskwait): Pass location on down.
6248 (c_parser_omp_construct): Same.
6249 (c_parser_omp_threadprivate): Same.
6250 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
6251 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
6252 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
6253 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
6254 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
6255 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
6256 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
6257 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
6258 config/i386/i386.c, stmt.c:
6259 Add location argument to the following function definitions and/or
6260 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
6261 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
6262 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
6263 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
6264 do_case, c_finish_bc_stmt, build_compound_literal,
6265 build_function_call.
6266 * c-decl.c (build_compound_literal): Add location argument.
6267 Make all diagnostic calls use location.
6268 (start_struct): Same.
6269 (finish_struct): Same.
6270 (start_enum): Same.
6271 (build_enumerator): Same.
6272 (start_function): Same.
6273 (grokdeclarator): Make all diagnostic calls use location.
6274 (store_parm_decls_oldstyle): Same.
6275 * c-typeck.c (build_function_call): Add location argument.
6276 Make all diagnostic calls use location.
6277 (do_case): Same.
6278 (c_finish_bc_stmt): Same.
6279 * tree-nested.c (get_trampoline_type): Add argument.
6280 Pass location to build_decl.
6281 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
6282 * rtl.h (RTL_LOCATION): New.
6283 * c-common.c (c_add_case_label): Add location argument.
6284 Make all diagnostic calls use location.
6285 * c-common.h: Add location argument to make_fname_decl, do_case,
6286 c_add_case_label, build_function_call, resolve_overloaded_builtin.
6287 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
6288 Set it appropriately for every case. Pass enum_loc to start_enum
6289 call. Pass value_loc first to build_enumerator. Pass enum_loc to
6290 parser_xref_tag.
6291 (c_parser_struct_or_union_specifier): Save location. Use it for
6292 start_struct, finish_struct, and parser_xref_tag.
6293
6294 2009-06-12 Ian Lance Taylor <iant@google.com>
6295
6296 * fold-const.c (fold_unary): Rename local variable and to and_expr.
6297
6298 * c-opts.c (c_common_handle_option): For -Wc++-compat set
6299 cpp_opts->warn_cxx_operator_names.
6300
6301 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
6302
6303 PR tree-opt/38865
6304 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
6305 is returns NULL and OP is a VCE, look through the VCE.
6306
6307 2009-06-12 Ian Lance Taylor <iant@google.com>
6308
6309 PR bootstrap/40430
6310 * collect2.c (main): Use CONST_CAST2 in code inside #if
6311 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
6312
6313 2009-06-12 Joey Ye <joey.ye@intel.com>
6314
6315 PR middle-end/39146
6316 * cfgexpand.c (get_decl_align_unit): Update
6317 max_used_stack_slot_alignment with align instead of
6318 stack_alignment_needed.
6319
6320 * function.c (assign_stack_local_1): Update
6321 max_used_stack_slot_alignment with alignment_in_bits instead
6322 of stack_alignment_needed.
6323 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
6324 here.
6325
6326 2009-06-12 Jakub Jelinek <jakub@redhat.com>
6327
6328 * dwarf2out.c (last_var_location_insn): New variable.
6329 (dwarf2out_end_epilogue): Clear last_var_location_insn.
6330 (dwarf2out_var_location): Don't record anything after last real
6331 insn. Only change labels if there were any real instructions
6332 in between last note and this one, or if changed sections.
6333
6334 2009-06-11 Richard Henderson <rth@redhat.com>
6335
6336 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
6337 note when storing the frame pointer in a register.
6338 (FRP): Don't redefine to nothing for epilogue.
6339 (alpha_expand_epilogue): Mark register and sp restores.
6340 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
6341
6342 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
6343 when gen_lowpart is needed.
6344
6345 2009-06-11 Richard Henderson <rth@redhat.com>
6346
6347 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
6348
6349 * dwarf2out.c (need_data_align_sf_opcode): New.
6350 (div_data_align): Move earlier.
6351 (def_cfa_1, reg_save): Use it.
6352
6353 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
6354
6355 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
6356 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
6357 (ix86_handle_option): Handle OPT_mcrc32.
6358 (ix86_target_string): Add -mcrc32.
6359 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
6360
6361 * config/i386/i386.h (TARGET_CRC32): New.
6362
6363 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
6364 (sse4_2_crc32di): Likewise.
6365
6366 * config/i386/i386.opt (mcrc32): New.
6367
6368 * doc/invoke.texi: Document -mcrc32.
6369
6370 2009-06-11 Richard Henderson <rth@redhat.com>
6371
6372 * common.opt (gdwarf-): Accept a version number.
6373 * doc/invoke.texi (gdwarf-): Update docs.
6374 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
6375 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
6376 version level, and record it.
6377
6378 * dwarf2.h (DW_CIE_VERSION): Remove.
6379 * dwarf2out.c (DWARF_VERSION): Remove.
6380 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
6381 (output_call_frame_info): Use CIE version 3 for dwarf3,
6382 or if the return register column is out of range for version 1.
6383 (dwarf_stack_op_name): Add all dwarf3 values.
6384 (DEBUG_PUBTYPES_SECTION): New.
6385 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
6386 encoding change for dwarf3.
6387 (output_die) [dw_val_class_die_ref]: Likewise.
6388 (output_compilation_unit_header): Emit correct version for dwarf3.
6389 (output_line_info): Likewise.
6390 (output_pubnames): Update for DWARF_VERSION removal.
6391 (output_aranges): Likewise.
6392 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
6393 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
6394 (dwarf2out_finish): Likewise.
6395
6396 2009-06-11 David Daney <ddaney@caviumnetworks.com>
6397
6398 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
6399 in r148403.
6400
6401 2009-06-11 David Daney <ddaney@caviumnetworks.com>
6402
6403 PR c/39252
6404 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
6405 * builtins.c (expand_builtin_unreachable): New function.
6406 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
6407 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
6408 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
6409 successors.
6410 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
6411 searching for missing barriers.
6412
6413 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6414
6415 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
6416 when -fprofile-generate* was passed.
6417 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
6418
6419 2009-06-11 Anthony Green <green@moxielogic.com>
6420
6421 * config/moxie/moxie.md: Define length attribute for all instructions.
6422 (rCC): Define.
6423 (*b<cond:code>): Support limited branch ranges for new PC-relative
6424 branch instructions.
6425 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
6426
6427 2009-06-11 Jakub Jelinek <jakub@redhat.com>
6428
6429 * config/i386/i386.c (min_insn_size): Use get_attr_length
6430 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
6431 For __asm return 0.
6432
6433 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
6434 instead of emit_insn_before.
6435
6436 2009-06-10 Ian Lance Taylor <iant@google.com>
6437
6438 PR bootstrap/40408
6439 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
6440 GIMPLE_SWITCH.
6441
6442 2009-06-10 Revital Eres <eres@il.ibm.com>
6443
6444 * passes.c (init_optimization_passes): Reschedule
6445 predictive-commoning pass before complete unroll pass.
6446
6447 2009-06-10 Martin Jambor <mjambor@suse.cz>
6448
6449 * cgraph.c (cgraph_node_can_be_local_p): New function.
6450 (cgraph_make_node_local): New function.
6451 * cgraph.h (cgraph_node_can_be_local_p): Declare.
6452 (cgraph_make_node_local): Declare.
6453
6454 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
6455
6456 * tree.h (tree_base): Add packed_flag and user_align fields.
6457 Decrease size of spare field.
6458 (TYPE_USER_ALIGN): Use user_align from tree_base.
6459 (DECL_USER_ALIGN): Likewise.
6460 (TYPE_PACKED): Use packed_flag from tree_base.
6461 (DECL_PACKED): Likewise.
6462 (tree_type): Delete packed_flag and user_align fields. Widen
6463 precision field. Widen mode field and shuffle fields to align
6464 mode on an 8-bit boundary.
6465 (tree_decl_common): Delete decl_flag_1 and user_align fields.
6466 Renumber decl_flag_* fields. Fix comments. Widen
6467 decl_common_unused field.
6468 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
6469 (DECL_EXTERNAL): Likewise.
6470 (DECL_BIT_FIELD): Likewise.
6471 (DECL_NONADDRESSABLE_P): Likewise.
6472 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
6473 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
6474
6475 2009-06-10 Ian Lance Taylor <iant@google.com>
6476
6477 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
6478 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
6479 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
6480 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
6481 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
6482 DEF_VEC_ALLOC_FUNC_P.
6483 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
6484 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
6485 DEF_VEC_ALLOC_FUNC_O.
6486 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
6487 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
6488 DEF_VEC_ALLOC_FUNC_I.
6489 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
6490 (vec_stack_p_reserve_exact_1): Declare.
6491 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
6492 (vec_stack_free): Declare.
6493 (VEC_stack_alloc): Define.
6494 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
6495 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
6496 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
6497 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
6498 for void_p.
6499 (stack_vecs): New static variable.
6500 (vec_stack_p_reserve_exact_1): New function.
6501 (vec_stack_o_reserve_1): New static function.
6502 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
6503 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
6504 (vec_stack_free): New function.
6505 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
6506 (VEC_df_ref_stack_alloc): Define.
6507 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
6508 DEF_VEC_ALLOC_P_STACK.
6509 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
6510 (struct df_collection_rec): Change _vec fields to VEC. Remove
6511 _use fields.
6512 (df_free_collection_rec): Adjust for new fields.
6513 (df_insn_rescan): Use new df_collection_rec fields.
6514 (df_notes_rescan, df_canonize_collection_rec): Likewise.
6515 (df_ref_create_structure, df_ref_record): Likewise.
6516 (df_get_conditional_uses, df_get_call_refs): Likewise.
6517 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
6518 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
6519 (df_record_exit_block_uses, df_bb_verify): Likewise.
6520 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
6521 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
6522 Remove count parameter. Change return type to void. Change all
6523 callers.
6524 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
6525 Remove count parameter. Change return type to void. Change all
6526 callers.
6527 (df_install_refs): Change old_vec parameter to VEC. Remove count
6528 parameter. Change all callers.
6529 (df_install_mws): Change old_vec parameter to VEC. Remove count
6530 parameter. Change all callers.
6531 (df_refs_verify): Change new_rec parameter to VEC. Change call
6532 callers.
6533 (df_mws_verify): Likewise.
6534
6535 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
6536
6537 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
6538
6539 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
6540
6541 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
6542
6543 2009-06-10 Anthony Green <green@moxielogic.com>
6544
6545 * config/moxie/crti.asm: New file.
6546 * config/moxie/crtn.asm: New file.
6547 * config/moxie/moxie.c: New file.
6548 * config/moxie/moxie.h: New file.
6549 * config/moxie/sfp-machine.h: New file.
6550 * config/moxie/moxie-protos.h: New file.
6551 * config/moxie/t-moxie: Created.
6552 * config/moxie/t-moxie-softfp: Created.
6553 * config/moxie/moxie.md: Created.
6554 * config/moxie/constraints.md: Created.
6555 * config.gcc: Add moxie support.
6556 * doc/md.texi (Machine Constraints): Add moxie constraints.
6557 * doc/contrib.texi (Contributors): Mention moxie port.
6558 * doc/install.texi (Specific): Mention the moxie port.
6559
6560 2009-06-09 Ian Lance Taylor <iant@google.com>
6561
6562 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
6563 compiling with C++.
6564 * optabs.c (optab_table): Only use designated initializers if
6565 HAVE_DESIGNATED_INITIALIZERS is defined.
6566 (convert_optab_table): Likewise.
6567 (init_optabs): Always call init_insn_codes if
6568 HAVE_DESIGNATED_INITIALIZERS is not defined.
6569
6570 2009-06-09 Ian Lance Taylor <iant@google.com>
6571
6572 * targhooks.c (default_builtin_vectorized_function): Change fn
6573 parameter to unsigned int.
6574 (default_builtin_vectorized_conversion): Change code parameter to
6575 unsigned int.
6576 (default_builtin_reciprocal): Change fn parameter to unsigned int.
6577 * targhooks.h: Update declarations.
6578 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
6579 parameter to unsigned int.
6580
6581 * c-typeck.c (comptypes_check_enum_int): New static function.
6582 (comptypes_internal): Add enum_and_int_p parameter. Change all
6583 callers.
6584 (comp_target_types): Add location parameter. Change all callers.
6585 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
6586 Change all callers.
6587 (function_types_compatible_p, type_lists_compatible_p): Likewise.
6588 (build_conditional_expr): Add colon_loc parameter. Change all
6589 callers.
6590 (convert_for_assignment): Add location parameter. Change all callers.
6591 * c-parser.c (c_parser_conditional_expression): Pass location of
6592 colon to build_conditional_expr.
6593 * c-tree.h (build_conditional_expr): Update declaration.
6594
6595 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
6596
6597 * graphite.c: Revert previous patch.
6598
6599 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
6600
6601 PR bootstrap/40103
6602 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
6603
6604 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
6605
6606 * tree-ssa-loop-prefetch.c
6607 (loop_prefetch_arrays): Fixed a portability problem in printf format
6608 string.
6609
6610 2009-06-09 Martin Jambor <mjambor@suse.cz>
6611
6612 PR tree-optimization/40351
6613 * tree-sra.c (propagate_subacesses_accross_link): Check that a
6614 refrence to a potential artifical subaccess can be constructed.
6615
6616 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
6617
6618 * config/sh/sh-protos.h (sh_optimization_options): Declare.
6619 (sh_override_options): Likewise.
6620 * config/sh/sh.c: Include params.h.
6621 (sh_optimization_options): New.
6622 (sh_override_options): Likewise.
6623 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
6624 (OVERRIDE_OPTIONS): Use sh_override_options.
6625
6626 2009-06-08 Jakub Jelinek <jakub@redhat.com>
6627
6628 * dwarf2out.c (emit_cfa_remember): New variable.
6629 (add_fde_cfi): If emit_cfa_remember, recurse to add
6630 DW_CFA_remember_state first.
6631 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
6632 instead just set emit_cfa_remember.
6633
6634 2009-06-08 Jan Hubicka <jh@suse.cz>
6635
6636 PR debug/40126
6637 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
6638
6639 2009-06-08 Jan Hubicka <jh@suse.cz>
6640
6641 PR middle-end/39834
6642 * cgraphunit.c (save_inline_function_body): Do not copy transform
6643 hooks for saved inline bodies.
6644 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
6645 for given function.
6646
6647 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
6648
6649 * jump.c (returnjump_p): Handle delayed branches. Add missing
6650 function comment.
6651
6652 2009-06-08 Jan Hubicka <jh@suse.cz>
6653
6654 PR middle-end/40102
6655 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
6656 original node might've been modified.
6657 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
6658
6659 2009-06-08 Jakub Jelinek <jakub@redhat.com>
6660
6661 * tree-object-size.c (addr_object_size): Add OSI argument.
6662 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
6663 (compute_builtin_object_size, expr_object_size): Adjust callers.
6664 (plus_stmt_object_size): Call addr_object_size instead of
6665 compute_builtin_object_size.
6666
6667 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
6668 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6669
6670 * tree-ssa-loop-prefetch.c
6671 (gather_memory_references): Introduced a counter for the number of
6672 memory references.
6673 (anything_to_prefetch_p): Introduced a counter for the number of
6674 prefetches.
6675 (is_loop_prefetching_profitable): New function with a cost model
6676 for prefetching.
6677 (loop_prefetch_arrays): Use the new cost model to determine if
6678 prefetching is profitable.
6679 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
6680 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
6681 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
6682 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
6683 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
6684 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
6685
6686 2009-06-08 Michael Matz <matz@suse.de>
6687
6688 PR debug/40012
6689 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
6690 partitions use the same.
6691 (expand_one_var): Deal with DECL_RTL sometimes begin set also
6692 for basevars of SSA_NAMEs.
6693 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
6694 to not expand them twice.
6695 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
6696 multiple places.
6697
6698 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
6699
6700 * common.opt (fcompare-debug=, fcompare-debug-second): New.
6701 (fdump-final-insns=, gtoggle): New.
6702 * doc/invoke.texi: Document them.
6703 * final.c (rest_of_clean_state): Dump final insn stream.
6704 * gcc.c (invoke_as): Hook in -fcompare-debug.
6705 (static_spec_functions): Add compare-debug-dump-opt,
6706 compare-debug-self-opt and compare-debug-auxbase-opt.
6707 (compare_debug, compare_debug_second, compare_debug_opt): New.
6708 (switches_debug_check, n_switches_debug_check): New.
6709 (debug_auxbase_opt, debug_check_temp_file): New.
6710 (process_command): Handle -fno-compare-debug, -fcompare-debug and
6711 -fcompare-debug=*.
6712 (do_self_spec): Handle arguments after switches.
6713 (do_spec_1): Add .gk extension to temp file basenames for compare.
6714 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
6715 (cc1_options): Use it instead of normal auxbase computation for
6716 the second compare-debug compilation.
6717 (compare_files): New.
6718 (main): Set up and implement compare debug mode.
6719 (compare_debug_dump_opt_spec_function): New.
6720 (compare_debug_self_opt_spec_function): New.
6721 (compare_debug_auxbase_opt_spec_function): New.
6722 * toplev.c (process_options): Handle flag_gtoggle,
6723 flag_dump_final_insns.
6724 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
6725 during -fcompare-debug-second compilation.
6726
6727 2009-06-07 Ian Lance Taylor <iant@google.com>
6728
6729 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
6730 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
6731
6732 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
6733 with no default node. Change warning with %H to warning_at.
6734 Don't clear warn_switch around case checking.
6735 * doc/invoke.texi (Warning Options): Clarify distinction between
6736 -Wswitch and -Wswitch-enum.
6737
6738 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6739
6740 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
6741
6742 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6743
6744 * gbl-ctors.h: Add header guard.
6745
6746 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6747
6748 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
6749 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
6750 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
6751 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
6752 prototypes for removed functions.
6753 (expressions_equal_p): Move to ...
6754 * tree-ssa-sccvn.h: ... here and ...
6755 * matrix-reorg.c: ... adjust includes.
6756
6757 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6758
6759 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
6760
6761 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6762
6763 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
6764 (finish_function): Remove erroneous whitespace.
6765
6766 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6767
6768 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
6769 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
6770
6771 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6772
6773 * errors.c (internal_error): Commentary typo fix.
6774 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
6775 * tree-ssa-pre.c: Ditto.
6776
6777 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6778
6779 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
6780 them is supposed to hold actual statements.
6781
6782 2009-06-06 Ian Lance Taylor <iant@google.com>
6783
6784 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
6785 empty statements can now have attributes.
6786
6787 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
6788
6789 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
6790 * config/mips/mips.md: Ditto.
6791
6792 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
6793
6794 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
6795 _RELOCATABLE.
6796 (__eabi_uconvert): Likewise.
6797
6798 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
6799
6800 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
6801 CFI_* definitions with IN_GCC.
6802
6803 2009-06-05 David Edelsohn <edelsohn@gnu.org>
6804
6805 * xcoffout.h (xcoffout_source_line): Update prototype.
6806
6807 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6808
6809 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
6810 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
6811
6812 2009-06-05 Jakub Jelinek <jakub@redhat.com>
6813
6814 PR middle-end/40340
6815 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
6816 inlined_function_outer_scope_p blocks for artificial inlines
6817 even at -g0/-g1.
6818 * tree.c (tree_nonartificial_location): Rewrite using
6819 block_nonartificial_location.
6820
6821 2009-06-05 Revital Eres <eres@il.ibm.com>
6822 Leehod Baruch <leehod@il.ibm.com>
6823
6824 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
6825 (expand_expr_real_1): Remove comment.
6826 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6827 Vectorize misaligned access when the target supports it.
6828 (vect_supportable_dr_alignment): Check for unaligned access support.
6829 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
6830 and remove asset.
6831
6832 2009-06-05 Julian Brown <julian@codesourcery.com>
6833
6834 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
6835 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
6836
6837 2009-06-05 Richard Guenther <rguenther@suse.de>
6838
6839 PR bootstrap/40350
6840 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
6841 as possibly unused.
6842
6843 2009-06-05 Jakub Jelinek <jakub@redhat.com>
6844
6845 * config/s390/s390.c (global_not_special_regno_p): New static inline.
6846 (save_gprs): Don't tell unwinder when a global register is saved.
6847 (s390_emit_epilogue): Emit needed epilogue unwind info.
6848
6849 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
6850
6851 * dwarf2out.c (deferred_asm_name): New.
6852 (add_name_and_src_coords_attributes): Defer creation of
6853 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
6854 computed yet.
6855 (move_linkage_attr): New.
6856 (dwarf2out_finish): Revisit deferrals and emit attributes at the
6857 right place.
6858
6859 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
6860
6861 * tree-nested.c (finalize_nesting_tree_1): Declare the
6862 frame_decl in the binding tree.
6863
6864 2009-06-04 Cary Coutant <ccoutant@google.com>
6865
6866 * basic-block.h (struct basic_block_def): Add discriminator field.
6867 * dbxout.c (dbxout_source_line): Add new parameter. Change all
6868 callers.
6869 * debug.c (do_nothing_debug_hooks): Add additional entry.
6870 (debug_nothing_int_charstar_int): New function.
6871 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6872 (debug_nothing_int_charstar_int): New declaration.
6873 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
6874 discriminator value in .loc directive.
6875 * final.c (last_discriminator): New variable.
6876 (discriminator): New variable.
6877 (final_start_function): Initialize above variables, pass current
6878 discriminator to debug hook.
6879 (notice_source_line): Check for discriminator change.
6880 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
6881 * sdbout.c (sdbout_source_line): New parameter.
6882 * tree-cfg.c (struct locus_discrim_map): New structure type.
6883 (discriminator_per_locus): New hash table.
6884 (build_gimple_cfg): Allocate and free discriminator hash table.
6885 (make_edges): Call assign_discriminator.
6886 (locus_map_hash): New function.
6887 (locus_map_eq): New function.
6888 (next_discriminator_for_locus): New function.
6889 (same_line_p): New function.
6890 (assign_discriminator): New function.
6891 (make_cond_expr_edges): Call assign_discriminator.
6892 (make_gimple_switch_edges): Likewise.
6893 (first_non_label_stmt): New function.
6894 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
6895 all callers.
6896 * xcoffout.c (xcoffout_source_line): Add new parameter.
6897
6898 * configure.ac (gcc_cv_as_discriminator): New configury check for
6899 gas support for discriminator.
6900 * configure: Regenerate.
6901 * config.in: Regenerate.
6902
6903 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6904
6905 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
6906 val after checking for integers.
6907
6908 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
6909
6910 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
6911 X64_REGPARM_MAX.
6912 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
6913 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
6914 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
6915 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
6916 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
6917 X64_SSE_REGPARM_MAX.
6918 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
6919 X64_SSE_REGPARM_MAX.
6920
6921 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
6922
6923 * gcc.c (report_times_to_file): New.
6924 (execute): Implement it.
6925 (process_command): Support -time=.
6926 * doc/invoke.texi: Document it.
6927
6928 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
6929
6930 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
6931 that have value exprs.
6932
6933 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
6934
6935 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
6936 declarations for constants until...
6937 (dw2_output_indirect_constant_1): ... this point.
6938
6939 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
6940
6941 PR target/10242
6942 * arm.md (arm_addsi3): Don't try to split an add with an
6943 eliminable register until after reload has completed.
6944
6945 2009-06-03 Ian Lance Taylor <iant@google.com>
6946
6947 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
6948 * genattrtab.c (write_length_unit_log): Likewise.
6949 * genchecksum.c (dosum): Likewise.
6950 * gengtype.c (write_rtx_next): Likewise.
6951 (finish_root_table, write_roots): Likewise.
6952 * gimple.c (gimple_ops_offset_): Likewise.
6953 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
6954 * config/arc/arc.c (arc_attribute_table): Likewise.
6955 * config/arm/arm.c (arm_attribute_table): Likewise.
6956 * config/avr/avr.c (avr_attribute_table): Likewise.
6957 * config/crx/crx.c (crx_attribute_table): Likewise.
6958 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
6959 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
6960 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
6961 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
6962 * config/sh/sh.c (sh_attribute_table): Likewise.
6963 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
6964 * config/spu/spu.c (spu_attribute_table): Likewise.
6965 * config/v850/v850.c (v850_attribute_table): Likewise.
6966
6967 * config/alpha/alpha.c (vms_attribute_table): Make static.
6968 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
6969 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
6970 * config/mips/mips.c (mips_attribute_table): Likewise.
6971
6972 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
6973 $(SYSTEM_H).
6974 (cc1-checksum.o): Likewise.
6975
6976 2009-06-03 Steve Ellcey <sje@cup.hp.com>
6977
6978 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
6979
6980 2009-06-03 Jakub Jelinek <jakub@redhat.com>
6981
6982 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
6983 insn if it is changing sp. Use gen_add3_insn instead of
6984 conditionally gen_addsi3 and gen_adddi3.
6985 (offset_below_red_zone_p): New static inline function.
6986 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
6987 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
6988 * config/rs6000/ppc-asm.h: Include auto-host.h.
6989 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
6990 CFI_RESTORE): Define.
6991 * config/rs6000/crtresxgpr.asm: Add unwind info.
6992 * config/rs6000/crtresxfpr.asm: Likewise.
6993 * config/rs6000/crtresgpr.asm: Likewise.
6994 * config/rs6000/crtresfpr.asm: Likewise.
6995 * config/rs6000/crtsavgpr.asm: Likewise.
6996 * config/rs6000/crtsavfpr.asm: Likewise.
6997
6998 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
6999 argument of DWARF2_FRAME_REG_OUT macros.
7000
7001 2009-06-03 Julian Brown <julian@codesourcery.com>
7002
7003 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
7004 words or less (including TImode) in core registers.
7005
7006 2009-06-03 Richard Guenther <rguenther@suse.de>
7007
7008 PR middle-end/40328
7009 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
7010
7011 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
7012
7013 * statistics.c (statistics_counter_event): Do not record event
7014 in pass dump if its number == -1.
7015 (curr_statistics_hash): Add assert that we never get passes
7016 with static number == -1.
7017
7018 2009-06-03 Richard Guenther <rguenther@suse.de>
7019 Andrey Belevantsev <abel@ispras.ru>
7020
7021 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
7022 non-BLKmode arrays addressable.
7023
7024 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
7025
7026 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
7027 * config/m68k/m68k.h: ... here.
7028 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
7029 m68k and fido.
7030
7031 2009-06-03 Martin Jambor <mjambor@suse.cz>
7032
7033 PR tree-optimization/40323
7034 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
7035 assignment.
7036
7037 2009-06-03 Richard Guenther <rguenther@suse.de>
7038
7039 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7040 consistently.
7041
7042 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
7043
7044 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
7045 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
7046 JUMP_TABLE_DATA_P where applicable.
7047 * config/sh/sh.c: Ditto.
7048 * config/sh/sh.h: Ditto.
7049 * config/sh/sh.md: Ditto.
7050 * config/sh/symbian.c: Ditto.
7051
7052 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
7053
7054 * config/i386/driver-i386.c (describe_cache): Optimize
7055 concatenation of strings. Use snprintf instead of sprintf.
7056 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
7057 target when not compiling with GCC.
7058
7059 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
7060
7061 * config/sh/sh.c: Revert last change.
7062 (sh_expand_epilogue): Emit a blockage insn before the frame
7063 pointer adjustment unconditionally.
7064
7065 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7066
7067 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
7068 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
7069 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
7070 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
7071 to COLLECT_GCC_OPTIONS.
7072
7073 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7074
7075 * collect2.c (target_system_root): New variable.
7076 (main): Handle --sysroot=.
7077 (ignore_library): Strip the sysroot from the library path.
7078
7079 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7080
7081 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
7082 (collect2.o): Depend on collect2-aix.h.
7083 (collect2-aix.o): New rule.
7084 * collect2-aix.h: New file.
7085 * collect2-aix.c: Likewise.
7086 * collect2.c: Include collect2-aix.h. Don't undefine
7087 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
7088 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
7089 Use TARGET_AIX_VERSION instead of _AIX51.
7090 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
7091 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
7092 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
7093 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
7094 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
7095
7096 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7097
7098 * collect2.c (ignore_library): Avoid premature post-increment
7099 and null deference.
7100
7101 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7102
7103 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
7104 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
7105 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
7106 CROSS_DIRECTORY_STRUCTURE too.
7107 (LINK_LIBG_SPEC): Likewise.
7108 (LIB_SPEC): Add %R to sysroot paths.
7109 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
7110 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
7111 * config/rs6000/aix51.h: As for aix43.h.
7112 * config/rs6000/aix52.h: Likewise.
7113 * config/rs6000/aix53.h: Likewise.
7114 * config/rs6000/aix61.h: Likewise.
7115 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
7116 to the beginning of sysroot paths.
7117
7118 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7119
7120 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
7121 INSN_LISTs that are out of the REG_NOTE range.
7122
7123 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7124
7125 * loop-unroll.c (struct iv_to_split): Add pointer to next.
7126 (struct var_to_expand): Likewise.
7127 (struct opt_info): Add head and tail for linked lists of the above.
7128 (analyze_insn_to_expand_var): Initialize next.
7129 (analyze_iv_to_split_insn): Likewise.
7130 (analyze_insns_in_loop): Create linked lists.
7131 (allocate_basic_variable): Simplify for use without hash table.
7132 (insert_var_expansion_initialization): Likewise, make it type-safer.
7133 (combine_var_copies_in_loop_exit): Likewise.
7134 (apply_opt_in_copies): Walk lists rather than hash tables.
7135 (release_var_copies): Simplified and inlined by hand into...
7136 (free_opt_info): ... this function.
7137
7138 2009-06-02 Richard Guenther <rguenther@suse.de>
7139
7140 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7141 for field decls.
7142
7143 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7144
7145 * cfgexpand.c (gimple_expand_cfg): Discard the source location
7146 only for builtins that are not overridden.
7147
7148 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7149
7150 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
7151 label string.
7152
7153 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7154
7155 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
7156
7157 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7158
7159 * combine.c (move_deaths): Compare LUIDs within the same BB only.
7160
7161 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7162
7163 * common.opt (fdump-unnumbered-links): New.
7164 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
7165 * print-rtl.c (flag_dump_unnumbered_links): New.
7166 (print_rtx): Test it.
7167
7168 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
7169
7170 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
7171 push/pop multiple to 8-byte alignment.
7172
7173 2009-06-01 Jakub Jelinek <jakub@redhat.com>
7174
7175 * config/i386/i386.c (queued_cfa_restores): New static variable.
7176 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
7177 functions.
7178 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
7179 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
7180 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
7181 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
7182 note unconditionally.
7183 (ix86_emit_restore_regs_using_mov): Likewise.
7184 (ix86_emit_restore_sse_regs_using_mov): Likewise.
7185 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
7186 it through to ix86_emit_restore_reg_using_pop.
7187 (ix86_emit_leave): Add RED_OFFSET argument. Call
7188 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
7189 instead of adding REG_CFA_OFFSET note unconditionally.
7190 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
7191 the above functions. Call ix86_add_queued_cfa_restore_notes when
7192 needed.
7193
7194 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
7195 force output of the label even for dwarf2out_do_cfi_asm.
7196 (add_fde_cfi): If -g2 and above and cfi might change CFA,
7197 force creation of CFI label and chain DW_CFA_set_loc jumping to it
7198 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
7199 caller.
7200 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
7201 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
7202 dwarf2out_cfi_label callers.
7203 * tree.h (dwarf2out_cfi_label): Adjust prototype.
7204 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
7205 Adjust dwarf2out_cfi_label callers.
7206 * config/vax/vax.c (vax_output_function_prologue): Likewise.
7207
7208 * config/i386/i386.h (struct machine_cfa_state,
7209 struct machine_function): Guard with ifndef USED_FOR_TARGET
7210 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
7211
7212 PR other/40024
7213 * emutls.c (__emutls_get_address): Change arr->size to mean number
7214 of allocated arr->data entries instead of # of slots + 1.
7215
7216 PR middle-end/40316
7217 * recog.c (peep2_reinit_state): New function.
7218 (peephole2_init_state): Use it at the end of a basic block and also
7219 when seeing a RTX_FRAME_RELATED_P insn.
7220
7221 2009-06-01 Steve Ellcey <sje@cup.hp.com>
7222
7223 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
7224 fixuns_truncrfdi2): New.
7225 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
7226 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
7227 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
7228 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
7229 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
7230 *recip_approx): Remove.
7231 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
7232 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
7233 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
7234 move to div.md.
7235 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
7236 setf_exp_rf): New.
7237
7238 2009-06-01 Ian Lance Taylor <iant@google.com>
7239
7240 * attribs.c (register_attribute): Use CONST_CAST.
7241 * collect2.c (main): Use CONST_CAST2.
7242 (scan_prog_file): Likewise.
7243 * gcc.c (process_command, main): Likewise.
7244 * toplev.c (toplev_main): Likewise.
7245
7246 * c-typeck.c (handle_warn_cast_qual): New static function,
7247 partially broken out of build_c_cast.
7248 (build_c_cast): Call handle_warn_cast_qual.
7249 * doc/invoke.texi (Warning Options): Document new effect of
7250 -Wcast-qual.
7251
7252 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
7253
7254 * diagnostic.c (diagnostic_build_prefix): Always print columns.
7255 (diagnostic_report_current_module): Print columns.
7256 * common.opt (flag_show_column): Enable by default.
7257
7258 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
7259
7260 * alias.c (find_base_term): Check for NULL term before returning.
7261
7262 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7263
7264 Revert due to PR40320:
7265 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7266 * calls.c (emit_library_call_value_1): Don't force_operand for move
7267 and push insns.
7268
7269 2009-06-01 Olivier Hainque <hainque@adacore.com>
7270 Eric Botcazou <ebotcazou@adacore.com>
7271
7272 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
7273 to be processed as a bitfield for constructor output purposes.
7274 * output.h (initializer_constant_valid_for_bitfield_p): Declare
7275 new function.
7276 * varasm.c (oc_local_state): New type, output_constructor
7277 local state to support communication with helpers.
7278 (oc_outer_state): New type, output_constructor outer state of
7279 relevance in recursive calls.
7280 (output_constructor_array_range): New output_constructor helper,
7281 extracted code for an array range element.
7282 (output_constructor_regular_field): New output_constructor helper,
7283 extracted code for an element that is not a bitfield.
7284 (output_constructor_bitfield): New output_constructor helper,
7285 extracted code for a bitfield element. Accept an OUTER state
7286 argument for recursive processing. Recurse on record or array
7287 CONSTRUCTOR values, possibly past noop conversions.
7288 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
7289 VALUE is a valid constant-valued expression for use in a static
7290 bit-field initializer.
7291 (output_constructor): Rework to use helpers. Accept and honor an
7292 OUTER state argument for recursive calls. Return total size. Be
7293 prepared for nested constructors initializing bitfields.
7294 (output_constant): Feed OUTER in calls to output_constructor.
7295
7296 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7297
7298 * calls.c (emit_library_call_value_1): Don't force_operand for move
7299 and push insns.
7300
7301 2009-06-01 Nick Clifton <nickc@redhat.com>
7302
7303 * doc/invoke.texi (IA-64 Options): Fix typo.
7304
7305 2009-06-01 Ira Rosen <irar@il.ibm.com>
7306
7307 PR tree-optimization/39129
7308 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
7309 printed message.
7310 (vect_do_peeling_for_loop_bound): Use
7311 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7312 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7313 (vect_loop_versioning): Likewise.
7314 (vect_create_cond_for_alias_checks): Fix indentation.
7315 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
7316 macros.
7317 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
7318 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7319 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
7320 "control flow in loop".
7321 (vect_estimate_min_profitable_iters): Use
7322 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7323 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7324 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7325 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7326 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
7327 statement belongs to a group of strided accesses with the exact code
7328 check.
7329 (vectorizable_load): Likewise.
7330 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
7331 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7332
7333 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
7334
7335 * config/freebsd-stdint.h: New file.
7336 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
7337 Add freebsd-stdint.h to tm_file.
7338
7339 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
7340
7341 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
7342 (thumb2_extendhidi2): Likewise.
7343
7344 2009-05-31 Ian Lance Taylor <iant@google.com>
7345
7346 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
7347
7348 2009-05-31 Ian Lance Taylor <iant@google.com>
7349
7350 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
7351 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
7352 (ipa-reference.o): Depend upon gt-ipa-reference.h.
7353
7354 2009-05-31 Jason Merrill <jason@redhat.com>
7355
7356 * tree-pretty-print.c (print_call_name): Take the callee, not the
7357 call itself. Make non-static. Use dump_function_name for functions.
7358 (dump_generic_node): Adjust.
7359 * diagnostic.h: Declare print_call_name.
7360 * gimple-pretty-print.c (dump_gimple_call): Use it.
7361
7362 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
7363
7364 * config/sh/sh.md (ashldi3_std): New define_expand.
7365 (ashldi3): Use it.
7366
7367 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
7368
7369 PR target/40313
7370 * config/sh/sh.c: Include debug.h.
7371 (sh_expand_epilogue): Emit a blockage insn before the frame
7372 pointer adjustment also when dwarf2out_do_frame returns true.
7373
7374 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
7375
7376 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
7377 (thumb2_extendqidi2): New pattern.
7378
7379 2009-05-31 Ira Rosen <irar@il.ibm.com>
7380
7381 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
7382 mark phis for renaming.
7383 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
7384 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
7385 Call mark_sym_for_renaming.
7386 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
7387 * tree-vect-loop.c (vect_transform_loop): Remove
7388 vect_memsyms_to_rename initialization and a call to
7389 mark_set_for_renaming.
7390
7391 2009-05-31 Jakub Jelinek <jakub@redhat.com>
7392
7393 PR middle-end/40304
7394 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
7395 frame related even if !set_cfa && style < 0.
7396
7397 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
7398
7399 * config/i386/mingw-tls.c: New file.
7400 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
7401 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
7402 defining _WIN32 but not __CYGWIN__.
7403
7404 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7405
7406 * configure.ac: Add MPC support.
7407
7408 * config.in, configure: Regenerate.
7409
7410 2009-05-29 Richard Henderson <rth@redhat.com>
7411
7412 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
7413 NOTE_INSN_BASIC_BLOCK.
7414 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
7415 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
7416 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
7417 to be deleted.
7418 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
7419 add in_use field.
7420 (add_cfi): Disable check redefining cfa away from drap.
7421 (lookup_cfa_1): Add remember argument; handle remember/restore.
7422 (lookup_cfa): Pass remember argument.
7423 (cfa_remember): New.
7424 (compute_barrier_args_size_1): Remove sibcall check.
7425 (dwarf2out_frame_debug_def_cfa): New.
7426 (dwarf2out_frame_debug_adjust_cfa): New.
7427 (dwarf2out_frame_debug_cfa_offset): New.
7428 (dwarf2out_frame_debug_cfa_register): New.
7429 (dwarf2out_frame_debug_cfa_restore): New.
7430 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
7431 (dwarf2out_begin_epilogue): New.
7432 (dwarf2out_frame_debug_restore_state): New.
7433 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
7434 DW_CFA_restore_state.
7435 (output_cfi_directive): Likewise.
7436 (convert_cfa_to_fb_loc_list): Likewise.
7437 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
7438 * dwarf2out.h: Update.
7439 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
7440 (copy_insn_1): Early out for null.
7441 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
7442 and dwarf2out_frame_debug_restore_state.
7443 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
7444 (prologue_insn_hash, epilogue_insn_hash): New.
7445 (free_after_compilation): Adjust freeing accordingly.
7446 (record_insns): Create hash table if needed; push insns into
7447 hash instead of array.
7448 (maybe_copy_epilogue_insn): New.
7449 (contains): Search hash table instead of array.
7450 (sibcall_epilogue_contains): Remove.
7451 (thread_prologue_and_epilogue_insns): Split eh_return insns
7452 and mark them as epilogues.
7453 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
7454 scanning in terms of basic blocks.
7455 * insn-notes.def (CFA_RESTORE_STATE): New.
7456 * jump.c (returnjump_p_1): Accept EH_RETURN.
7457 (eh_returnjump_p_1, eh_returnjump_p): New.
7458 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
7459 CFA_REGISTER, CFA_RESTORE): New.
7460 * rtl.def (EH_RETURN): New.
7461 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
7462
7463 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
7464 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
7465
7466 * config/i386/i386.c (gen_push): Update cfa state.
7467 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
7468 add a CFA_ADJUST_CFA note.
7469 (ix86_dwarf_handle_frame_unspec): Remove.
7470 (ix86_expand_prologue): Update cfa state.
7471 (ix86_emit_restore_reg_using_pop): New.
7472 (ix86_emit_restore_regs_using_pop): New.
7473 (ix86_emit_leave): New.
7474 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
7475 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
7476 * config/i386/i386.h (struct machine_cfa_state): New.
7477 (ix86_cfa_state): New.
7478 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
7479 (eh_return_internal): Merge from eh_return_<mode>,
7480 use eh_return rtx, split w/ epilogue.
7481
7482 2009-05-29 Ian Lance Taylor <iant@google.com>
7483
7484 * builtins.c (validate_gimple_arglist): Don't use va_arg with
7485 enum type.
7486 * calls.c (emit_library_call_value_1): Likewise.
7487
7488 * c-typeck.c (c_build_va_arg): New function.
7489 * c-tree.h (c_build_va_arg): Declare.
7490 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
7491 instead of build_va_arg.
7492
7493 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
7494
7495 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
7496 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
7497 (ptr_difference_cost): Use affine combinations to compute it.
7498 (difference_cost): Likewise.
7499 (get_computation_cost_at): Compute more accurate cost for addresses
7500 if the ratio is a multiplier allowed in addresses.
7501 For non-addresses, consider that an additional offset or symbol is
7502 added only once.
7503
7504 2009-05-29 Jakub Jelinek <jakub@redhat.com>
7505
7506 * config/i386/i386.c (ix86_decompose_address): Avoid useless
7507 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
7508
7509 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
7510 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
7511 (prefix_rex): For UNIT_MMX don't imply the prefix by default
7512 if MODE_DI.
7513 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
7514 to 1 for TYPE_SSE{IADD1,CVT1}.
7515 (prefix_vex_imm8): Removed.
7516 (length_vex): Only pass 1 as second argument to
7517 ix86_attr_length_vex_default if prefix_extra is 0.
7518 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
7519 (length): For prefix vex computation use length_immediate
7520 attribute instead of prefix_vex_imm8.
7521 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
7522 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
7523 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
7524 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
7525 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
7526 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
7527 a space in between the operands.
7528 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
7529 if one operand is 0xff and the other one si, di, bp or sp.
7530 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
7531 other one si, di, bp or sp.
7532 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
7533 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
7534 type and mode attributes.
7535 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
7536 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
7537 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
7538 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
7539 prefix_data16 attribute iff MODE_DF.
7540 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
7541 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
7542 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
7543 constm128_operand in length_immediate computation.
7544 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
7545 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
7546 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
7547 length_immediate attribute to 1.
7548 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
7549 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
7550 for certain alternatives.
7551 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
7552 prefix_data16 attribute if MODE_V1DF.
7553 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
7554 length_immediate to 1.
7555 (set_got_rex64, set_rip_rex64): Remove length attribute, set
7556 length_address to 4, set mode attribute to MODE_DI.
7557 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
7558 (fxam<mode>2_i387): Set length attribute to 4.
7559 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
7560 *prefetch_3dnow_rex): Override length_address attribute.
7561 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
7562 attributes.
7563 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
7564 (constm128_operand): Removed.
7565 * config/i386/i386.c (memory_address_length): For
7566 disp && !index && !base in 64-bit mode account for SIB byte if
7567 print_operand_address can't optimize disp32 into disp32(%rip)
7568 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
7569 for fs: or gs: segment.
7570 (ix86_attr_length_immediate_default): When checking if shortform
7571 is possible, truncate immediate to the length of the non-shortened
7572 immediate.
7573 (ix86_attr_length_address_default): Ignore MEM_P operands
7574 with X constraint.
7575 (ix86_attr_length_vex_default): Only check for DImode on
7576 GENERAL_REG_P operands.
7577 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
7578 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
7579 (sse_cvttps2pi): Clear prefix_rep attribute.
7580 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
7581 attribute.
7582 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
7583 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
7584 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
7585 iff operand 2 is const_int_operand.
7586 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
7587 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
7588 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
7589 instead of vex.
7590 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
7591 prefix_data16.
7592 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
7593 prefix_data16 attribute for movlpd and movhpd instructions.
7594 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
7595 length_immediate for shufpd instruction.
7596 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
7597 (avx_cmpp<avxmodesuffixf2c><mode>3,
7598 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
7599 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
7600 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
7601 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
7602 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
7603 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
7604 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
7605 prefix_data16 attribute for the first alternative to 1.
7606 (*avx_loadlps): Override length_immediate for the first alternative.
7607 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
7608 attributes for second alternative.
7609 (*vec_concatv2sf_sse4_1): Override length_immediate and
7610 prefix_data16 attributes for second alternative.
7611 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
7612 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
7613 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
7614 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
7615 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
7616 prefix_data16 and length_immediate to 1.
7617 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
7618 to 1.
7619 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
7620 prefix_extra attribute for variants that don't have 0f prefix alone.
7621 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
7622 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
7623 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
7624 *sse4_1_pextrd): Set length_immediate to 1.
7625 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
7626 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
7627 to 1.
7628 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
7629 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
7630 length_immediate to 1 for second alternative.
7631 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
7632 prefix_extra and length_immediate attributes for the first
7633 alternative.
7634 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
7635 first alternative.
7636 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
7637 to 1 for the first and third alternative.
7638 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
7639 alternative.
7640 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
7641 attribute.
7642 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
7643 attribute to 0.
7644 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
7645 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
7646 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
7647 *avx_psign<mode>3): Set prefix_extra attribute to 1.
7648 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
7649 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
7650 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
7651 ssse3_psign<mode>3): Override prefix_rex attribute.
7652 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
7653 (ssse3_palignrti): Override length_immediate to 1.
7654 (ssse3_palignrdi): Override length_immediate to 1, override
7655 prefix_rex attribute.
7656 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
7657 (sse4a_extrqi): Override length_immediate to 2.
7658 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
7659 (sse4a_insertq): Override prefix_data16 to 0.
7660 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
7661 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
7662 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
7663 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
7664 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
7665 and length_immediate to 1.
7666 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
7667 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
7668 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
7669 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
7670 and length_immediate to 1.
7671 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
7672 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
7673 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
7674 avx_ptest256): Override prefix_extra to 1.
7675 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
7676 Override prefix_data16 and length_immediate to 1.
7677 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
7678 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
7679 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
7680 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
7681 prefix_data16 to 0 and prefix_extra to 2.
7682 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
7683 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
7684 attribute.
7685 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
7686 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
7687 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
7688 and prefix_extra to 2.
7689 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
7690 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
7691 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
7692 avx_vpermilvar<mode>3,
7693 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
7694 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
7695 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
7696 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
7697 Override prefix_extra to 1.
7698 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
7699 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
7700 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
7701 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
7702 prefix_extra and length_immediate to 1.
7703 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
7704 modrm to 0.
7705 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
7706 to 1 for the first alternative.
7707 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
7708 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
7709 cases.
7710 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
7711 *movv2sf_internal_avx, *movv2sf_internal): Override
7712 prefix_rep attribute for certain alternatives.
7713 (*mov<mode>_internal): Override prefix_rep or prefix_data16
7714 attributes for certain alternatives.
7715 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
7716 attributes for certain alternatives.
7717 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
7718 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
7719 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
7720 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
7721 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
7722 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
7723 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
7724 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
7725 length_immediate to 1 if operand 2 is const_int_operand.
7726 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
7727 *vec_extractv2si_1): Set length_immediate attribute to 1.
7728 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
7729 using old 3DNOW insn rather than SSE/3DNOW_A.
7730 (mmx_emms, mmx_femms): Clear modrm attribute.
7731
7732 2009-05-29 Martin Jambor <mjambor@suse.cz>
7733
7734 * tree-sra.c: New implementation of SRA.
7735
7736 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
7737 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
7738 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
7739 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
7740 (SRA_MAX_STRUCTURE_COUNT): Removed.
7741 (SRA_FIELD_STRUCTURE_RATIO): Removed.
7742 * doc/invoke.texi (sra-max-structure-size): Removed.
7743 (sra-field-structure-ratio): Removed.
7744
7745 2009-05-29 Jakub Jelinek <jakub@redhat.com>
7746
7747 PR middle-end/40291
7748 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
7749 before expansion.
7750
7751 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
7752
7753 PR rtl-optimization/40101
7754 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
7755 seqno. Adjust comment.
7756 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
7757 inserting bookkeeping before a jump, the jump is not scheduled.
7758 When no positive seqno found, provide a value. Add comment.
7759
7760 2009-05-29 Richard Guenther <rguenther@suse.de>
7761
7762 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
7763 short-cutting on the first component.
7764
7765 2009-05-29 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR middle-end/39958
7768 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
7769 for trees other than decls/types.
7770
7771 2009-05-29 Richard Guenther <rguenther@suse.de>
7772
7773 * tree-ssa-operands.c (get_expr_operands): Do not handle
7774 INDIRECT_REFs in the handled-component case. Remove
7775 unused get_ref_base_and_extent case.
7776 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
7777 tree_low_cst and host_integerp where possible.
7778 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
7779 codes for equivalence.
7780 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
7781
7782 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
7783
7784 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
7785 to tmake_file for i[34567]86-*-cygwin*.
7786
7787 2009-05-29 Jakub Jelinek <jakub@redhat.com>
7788
7789 PR target/40017
7790 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
7791 (altivec_categorize_keyword, init_vector_keywords,
7792 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
7793 similar to bool.
7794
7795 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
7796
7797 * tree.c (handle_dll_attribute): Check if node is
7798 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
7799
7800 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
7801
7802 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
7803 component.
7804 (thumb2_zero_extendqidi2): Likewise.
7805
7806 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
7807
7808 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
7809 instead of gen_movrt.
7810 * config/sh/sh.md (movrt): Remove.
7811
7812 2009-05-28 Steve Ellcey <sje@cup.hp.com>
7813
7814 * doc/invoke.texi (IA-64 Options):
7815 Add -msdata, -mfused-madd, -mno-inline-float-divide,
7816 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
7817 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
7818 -msched-prefer-non-control-spec-insns,
7819 -msched-stop-bits-after-every-cycle,
7820 -msched-count-spec-in-critical-path,
7821 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
7822 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
7823 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
7824 and -msched-spec-verbose.
7825
7826 2009-05-28 Joseph Myers <joseph@codesourcery.com>
7827
7828 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
7829 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
7830 error if used.
7831 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
7832
7833 2009-05-28 Richard Guenther <rguenther@suse.de>
7834
7835 * tree-ssa-alias.c (ao_ref_init): New function.
7836 (ao_ref_base): Likewise.
7837 (ao_ref_base_alias_set): Likewise.
7838 (ao_ref_alias_set): Likewise.
7839 (refs_may_alias_p_1): Change signature.
7840 (refs_may_alias_p): Adjust.
7841 (refs_anti_dependent_p): Likewise.
7842 (refs_output_dependent_p): Likewise.
7843 (call_may_clobber_ref_p_1): Change signature.
7844 (call_may_clobber_ref_p): Adjust.
7845 (stmt_may_clobber_ref_p_1): New function split out from ...
7846 (stmt_may_clobber_ref_p): ... here.
7847 (maybe_skip_until): Adjust signature.
7848 (get_continuation_for_phi): Likewise.
7849 (walk_non_aliased_vuses): Likewise.
7850 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
7851 (ao_ref_init): Declare.
7852 (ao_ref_base): Likewise.
7853 (ao_ref_alias_set): Likewise.
7854 (stmt_may_clobber_ref_p_1): Likewise.
7855 (walk_non_aliased_vuses): Adjust.
7856 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
7857 (get_ref_from_reference_ops): remove.
7858 (vn_reference_lookup_2): Adjust signature.
7859 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
7860 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
7861 (vn_reference_lookup): Adjust.
7862 (vn_reference_insert): Likewise.
7863 (vn_reference_insert_pieces): Adjust signature.
7864 (visit_reference_op_call): Adjust.
7865 * tree-ssa-pre.c (get_expr_type): Simplify.
7866 (phi_translate_1): Adjust.
7867 (compute_avail): Likewise.
7868 (translate_vuse_through_block): Do not re-build trees.
7869 (value_dies_in_block_x): Likewise.
7870 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
7871 fields.
7872 (vn_reference_lookup_pieces): Adjust declaration.
7873 (vn_reference_insert_pieces): Likewise.
7874
7875 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
7876
7877 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
7878 with checking disabled.
7879
7880 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
7881
7882 PR target/37216
7883
7884 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
7885 macro definition for support of three-operand format aligned
7886 .comm directive in assembler on cygwin/pe/mingw target OS.
7887 * configure: Regenerate.
7888 * config.h: Regenerate.
7889
7890 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
7891 aligned form of .comm directive if -mpe-aligned-commons is in effect.
7892 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
7893
7894 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
7895 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
7896
7897 2009-05-28 Ira Rosen <irar@il.ibm.com>
7898
7899 PR tree-optimization/40254
7900 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
7901 in analysis of basic blocks.
7902
7903 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
7904
7905 PR middle-end/33699
7906 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
7907 * target-def.h (TARGET_CONST_ANCHOR): New macro.
7908 (TARGET_INITIALIZER): Use it.
7909 * cse.c (CHEAPER): Move it up to the other macros.
7910 (insert): Rename this ...
7911 (insert_with_costs): ... to this. Add cost parameters. Update
7912 function comment.
7913 (insert): New function. Call insert_with_costs.
7914 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
7915 find_reg_offset_for_const, try_const_anchors): New functions.
7916 (cse_insn): Call try_const_anchors. Adjust cost of src_related
7917 when using a const-anchor. Call insert_const_anchors.
7918 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
7919 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
7920
7921 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
7922
7923 * tree-inline.c (remap_decls): Enable nonlocalized variables
7924 when not optimizing.
7925
7926 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
7927
7928 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
7929 Simplify other tests involving optimize.
7930
7931 2009-05-27 Tom Tromey <tromey@redhat.com>
7932
7933 * unwind-dw2.c (_Unwind_DebugHook): New function.
7934 (uw_install_context): Call _Unwind_DebugHook.
7935
7936 2009-05-27 Tom Tromey <tromey@redhat.com>
7937
7938 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
7939
7940 2009-05-27 Ian Lance Taylor <iant@google.com>
7941
7942 * Makefile.in (LINKER, LINKER_FLAGS): Define.
7943 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
7944 (ALL_LINKERFLAGS): Define.
7945 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
7946 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7947 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
7948 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7949 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
7950 $(LINKER_FOR_BUILD).
7951 (build/gcov-iov$(build_exeext)): Likewise.
7952
7953 2009-05-27 Julian Brown <julian@codesourcery.com>
7954
7955 * gcse.c (target.h): Include.
7956 (can_assign_to_reg_without_clobbers_p): Check that the target allows
7957 copy of argument to a pseudo register.
7958
7959 2009-05-27 Diego Novillo <dnovillo@google.com>
7960
7961 * tree-ssa-live.c (dump_scope_block): Document arguments.
7962 (dump_scope_blocks): Document.
7963 (debug_scope_blocks): New.
7964 * tree-flow.h (debug_scope_blocks): Declare.
7965
7966 2009-05-21 Denis Chertykov <denisc@overta.ru>
7967
7968 * doc/contrib.texi (Contributors): Add myself to the list.
7969
7970 2009-05-27 Olivier Hainque <hainque@adacore.com>
7971
7972 * expr.c (target_align): New function. Alignment the TARGET of an
7973 assignment may be assume to have.
7974 (highest_pow2_factor_for_target): Use it instead of relying on
7975 immediate tree attributes of TARGET, not necessarily honored when
7976 intermediate bitfields are involved.
7977
7978 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
7979
7980 PR target/40266
7981 * config/i386/driver-i386.c (host_detect_local_cpu): Support
7982 AVX, SSE4, AES, PCLMUL and POPCNT.
7983
7984 2009-05-27 Diego Novillo <dnovillo@google.com>
7985
7986 * tree-pretty-print.c (dump_location): New.
7987 (dump_generic_node): Call it.
7988 Factor code to handle BLOCK nodes ...
7989 (dump_block_node): ... here.
7990
7991 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
7992
7993 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
7994 with it.
7995 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
7996 included.
7997 * gcc-plugin.h: Include config.h and system.h.
7998 (IN_GCC): Define if not defined.
7999
8000 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
8001
8002 PR middle-end/40249
8003 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
8004 with -fno-inline.
8005
8006 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
8007
8008 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
8009 applicable.
8010 * config/m32r/m32r.h: Ditto.
8011 * config/m32r/m32r.md: Ditto.
8012 * config/m32r/predicates.md: Ditto.
8013
8014 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
8015
8016 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
8017
8018 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
8019
8020 * doc/plugins.texi
8021 (Loading plugins): typo.
8022 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
8023 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8024 (Interacting with the GCC Garbage Collector): Added new section.
8025 (Giving information about a plugin): Added new section for
8026 PLUGIN_INFO.
8027 * ggc.h (ggc_register_root_tab): Added declaration.
8028 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
8029 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
8030 (register_callback): Improved comment in declaration.
8031 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
8032 (extra_root_vec) Added static variable for dynamic roots registration.
8033 (ggc_register_root_tab) Added new routine.
8034 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
8035 PLUGIN_GGC_MARKING event.
8036 * ggc-zone.c: Include plugin.h.
8037 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8038 * ggc-page.c: Include plugin.h.
8039 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8040 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
8041 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
8042 (register_callback): check lack of callbacks for
8043 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
8044 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
8045 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
8046 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8047 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
8048 dependency on plugin.h.
8049 (plugin.o): Added dependency on ggc.h...
8050
8051 2009-05-26 Richard Guenther <rguenther@suse.de>
8052
8053 PR middle-end/40248
8054 Revert
8055 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
8056 with mismatched comparison modes.
8057
8058 * expr.c (expand_expr_real_1): Expand the operand of a
8059 VIEW_CONVERT_EXPR in its natural mode.
8060
8061 2009-05-26 Ian Lance Taylor <iant@google.com>
8062
8063 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
8064 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
8065 (ALL_COMPILERFLAGS): Define.
8066 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
8067 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
8068 (collect2$(exeext), collect2.o): Likewise.
8069 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
8070 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
8071 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
8072 (libbackend.o, intl.o, cppdefault.o): Likewise.
8073 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
8074 (build/%.o): Use $(COMPILER_FOR_BUILD).
8075 (build/gen%$(build_exeext)): Likewise.
8076 (build/gcov-iov$(build_exeext)): LIkewise.
8077 * config/t-darwin (darwin.o): Use $(COMPILER).
8078 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
8079 * config/t-sol2 (sol2-c.o): Likewise.
8080 (sol2.o): Likewise.
8081 * config/t-vxworks (vxworks.o): Likewise.
8082 * config/x-darwin (host-darwin.o): Likewise.
8083 * config/x-hpux (host-hpux.o): Likewise.
8084 * config/x-linux (host-linux.o): Likewise.
8085 * config/x-solaris (host-solaris.o): Likewise.
8086 * config/alpha/x-alpha (driver-alpha.o): Likewise.
8087 * config/arm/t-arm (arm-c.o): Likewise.
8088 * config/arm/t-pe (pe.o): Likewise.
8089 * config/arm/t-wince-pe (pe.o): Likewise.
8090 * config/i386/t-cygming (winnt.o): Likewise.
8091 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
8092 * config/i386/t-cygwin (cygwin1.o): Likewise.
8093 (cygwin2.o): Likewise.
8094 * config/i386/t-i386 (i386-c.o): Likewise.
8095 * config/i386/t-interix (winnt.o): Likewise.
8096 * config/i386/t-netware (netware.o): Likewise.
8097 * config/i386/t-nwld (nwld.o): Likewise.
8098 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
8099 * config/i386/x-i386 (driver-i386.o): Likewise.
8100 * config/i386/x-cygwin (host-cygwin.o): Likewise.
8101 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
8102 * config/ia64/t-ia64 (ia64-c.o): Likewise.
8103 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
8104 * config/mips/x-native (driver-native.o): Likewise.
8105 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
8106 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
8107 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
8108 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
8109 * config/score/t-score-elf (score7.o): Likewise.
8110 (score3.o): Likewise.
8111 * config/sh/t-sh (sh-c.o): Likewise.
8112 * config/sh/t-symbian (sh-c.o): Likewise.
8113 (symbian.o): Likewise.
8114 * config/spu/t-spu-elf (spu-c.o): Likewise.
8115 * config/v850/t-v850 (v850-c.o): Likewise.
8116 * config/v850/t-v850e (v850-c.o): Likewise.
8117
8118 2009-05-26 Richard Guenther <rguenther@suse.de>
8119
8120 PR tree-optimization/40122
8121 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
8122 VECTOR_CSTs if possible.
8123 (fold_gimple_assign): Likewise.
8124
8125 2009-05-26 Richard Guenther <rguenther@suse.de>
8126
8127 PR middle-end/40252
8128 * fold-const.c (fold_binary): Use the correct types for building
8129 rotates.
8130
8131 2009-05-26 Richard Guenther <rguenther@suse.de>
8132
8133 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
8134 redundant calls to merge_alias_info.
8135 (bump_vector_ptr): Likewise.
8136 * tree-ssa-copy.c (merge_alias_info): Remove.
8137 (replace_exp_1): Remove call to merge_alias_info.
8138 (propagate_tree_value): Likewise.
8139 (fini_copy_prop): Propagate points-to info.
8140 * tree-flow.h (merge_alias_info): Remove.
8141
8142 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
8143
8144 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
8145
8146 2009-05-25 Jan Hubicka <jh@suse.cz>
8147
8148 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8149 * cgraph.h (struct inline_summary): New filed self_wize,
8150 size_inlining_benefit, self_time and time_inlining_benefit.
8151 (struct cgraph_global_info): Replace insns by time ans size fields.
8152 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8153 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8154 (ipcp_update_callgraph): Do not touch function bodies.
8155 * ipa-inline.c: Include except.h
8156 (MAX_TIME): New constant.
8157 (overall_insns): Remove.
8158 (leaf_node_p): New.
8159 (overall_size, max_benefit): New static variables.
8160 (cgraph_estimate_time_after_inlining): New function.
8161 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8162 (cgraph_clone_inlined_nodes): Update size.
8163 (cgraph_mark_inline_edge): Update size.
8164 (cgraph_estimate_growth): Use size info.
8165 (cgraph_check_inline_limits): Check size.
8166 (cgraph_default_inline_p): Likewise.
8167 (cgraph_edge_badness): Compute badness based on benefit and size cost.
8168 (cgraph_decide_recursive_inlining): Check size.
8169 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8170 and times.
8171 (cgraph_decide_inlining): Likewise.
8172 (cgraph_decide_inlining_incrementally): Likewise; honor
8173 PARAM_EARLY_INLINING_INSNS.
8174 (likely_eliminated_by_inlining_p): New predicate.
8175 (estimate_function_body_sizes): New function.
8176 (compute_inline_parameters): Use it.
8177 * except.c (must_not_throw_labels): New function.
8178 * except.h (must_not_throw_labels): Declare.
8179 * tree-inline.c (init_inline_once): Kill inlining_weigths
8180 * tree-ssa-structalias.c: Avoid uninitialized warning.
8181 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8182 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8183 (PARAM_INLINE_CALL_COST): Remove.
8184 (PARAM_EARLY_INLINING_INSNS): New.
8185
8186 2009-05-25 Richard Guenther <rguenther@suse.de>
8187
8188 PR tree-optimization/36327
8189 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
8190 callback for reference translation or lookup at the point of may-defs.
8191 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
8192 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
8193 for union COMPONENT_REFs.
8194 (vn_reference_lookup_3): New callback. Lookup from memset
8195 and CONSTRUCTOR assignment, translate through struct copies.
8196 (vn_reference_lookup_pieces): Make sure to not free the
8197 passed operands array. Adjust walk_non_aliased_vuses call.
8198 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
8199 make sure we do not leak memory.
8200
8201 2009-05-25 Richard Guenther <rguenther@suse.de>
8202
8203 * tree-ssa-alias.h (dump_points_to_solution): Declare.
8204 * tree-inline.c (expand_call_inline): Reset the escaped and
8205 callused solutions.
8206 * tree-ssa-structalias.c (pass_build_ealias): New.
8207 * tree-pass.h (pass_build_ealias): Declare.
8208 * passes.c (init_optimization_passes): Add PTA during
8209 early optimizations.
8210 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
8211 and CALLUSED solutions.
8212 (dump_points_to_solution): New function, split out from ...
8213 (dump_points_to_info_for): ... here.
8214 * tree-parloops.c (parallelize_loops): Reset the escaped and
8215 callused solutions.
8216
8217 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8218
8219 PR bootstrap/40027
8220 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
8221 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
8222
8223 2009-05-25 Ira Rosen <irar@il.ibm.com>
8224
8225 PR tree-optimization/40238
8226 * tree-vect-stmts.c (vect_init_vector): Insert initialization
8227 statements after basic block's labels.
8228 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
8229 to free the allocated memory.
8230
8231 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
8232
8233 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
8234 return address with a USE.
8235
8236 2009-05-24 Richard Guenther <rguenther@suse.de>
8237
8238 PR middle-end/40233
8239 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
8240 array type from the main variant of the inner type.
8241
8242 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8243
8244 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
8245 definition to bool (from int) to un-break build.
8246 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
8247
8248 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
8249
8250 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
8251 discard_stmt_changes): Delete.
8252 * tree-ssa-operands.c (scb_stack): Delete.
8253 (init_ssa_operands): Do not initialize it.
8254 (fini_ssa_operands): Do not free it.
8255 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
8256
8257 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
8258 update_stmt, remove the others. Fix comments.
8259 * tree-dfa.c (optimize_stack_restore): Likewise.
8260 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
8261 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
8262 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
8263 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
8264 Likewise.
8265 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
8266 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8267 (dom_opt_finalize_block): Likewise, adjusting access to
8268 stmts_to_rescan.
8269 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
8270 (stmts_to_rescan): Change item type to gimple.
8271 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
8272
8273 2009-05-24 Ira Rosen <irar@il.ibm.com>
8274
8275 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
8276 * tree-pass.h (pass_slp_vectorize): New pass.
8277 * params.h (SLP_MAX_INSNS_IN_BB): Define.
8278 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
8279 * tree-vectorizer.c (timevar.h): Include.
8280 (user_vect_verbosity_level): Declare.
8281 (vect_location): Fix comment.
8282 (vect_set_verbosity_level): Update user_vect_verbosity_level
8283 instead of vect_verbosity_level.
8284 (vect_set_dump_settings): Add an argument. Ignore user defined
8285 verbosity if dump flags require higher level of verbosity. Print to
8286 stderr only for loop vectorization.
8287 (vectorize_loops): Update call to vect_set_dump_settings.
8288 (execute_vect_slp): New function.
8289 (gate_vect_slp): Likewise.
8290 (struct gimple_opt_pass pass_slp_vectorize): New.
8291 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
8292 access its members.
8293 (vec_info_for_bb): New function.
8294 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
8295 (VECTORIZATION_ENABLED): New macro.
8296 (SLP_ENABLED, SLP_DISABLED): Likewise.
8297 (vect_is_simple_use): Add bb_vec_info argument.
8298 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
8299 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8300 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8301 vect_schedule_slp, vect_analyze_slp): Likewise.
8302 (vect_analyze_stmt): Add slp_tree argument.
8303 (find_bb_location): Declare.
8304 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
8305 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
8306 (vect_analyze_loop_operations, vect_analyze_loop,
8307 get_initial_def_for_induction, vect_create_epilog_for_reduction,
8308 vect_finalize_reduction, vectorizable_reduction,
8309 vectorizable_live_operation, vect_transform_loop): Likewise.
8310 * tree-data-ref.c (dr_analyze_innermost): Update comment,
8311 skip evolution analysis if analyzing a basic block.
8312 (dr_analyze_indices): Likewise.
8313 (initialize_data_dependence_relation): Skip the test whether the
8314 object is invariant for basic blocks.
8315 (compute_all_dependences): Skip dependence analysis for data
8316 references in basic blocks.
8317 (find_data_references_in_stmt): Don't fail in case of invariant
8318 access in basic block.
8319 (find_data_references_in_bb): New function.
8320 (find_data_references_in_loop): Move code to
8321 find_data_references_in_bb and add a call to it.
8322 (compute_data_dependences_for_bb): New function.
8323 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
8324 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
8325 that STEP is 0.
8326 (vect_analyze_data_ref_dependence): Check for interleaving in case of
8327 unknown dependence in basic block and fail in case of dependence in
8328 basic block.
8329 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
8330 dependence instances from either loop or basic block vectorization
8331 info.
8332 (vect_compute_data_ref_alignment): Check if it is loop vectorization
8333 before calling nested_in_vect_loop_p.
8334 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
8335 dependence instances from either loop or basic block vectorization
8336 info.
8337 (vect_verify_datarefs_alignment): Likewise.
8338 (vect_enhance_data_refs_alignment): Adjust function calls.
8339 (vect_analyze_data_refs_alignment): Likewise.
8340 (vect_analyze_group_access): Fix printing. Skip different checks if
8341 DR_STEP is 0. Keep strided stores either in loop or basic block
8342 vectorization data structure. Fix indentation.
8343 (vect_analyze_data_ref_access): Fix comments, allow zero step in
8344 basic blocks.
8345 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
8346 dependence instances from either loop or basic block vectorization
8347 info.
8348 (vect_analyze_data_refs): Update comment. Call
8349 compute_data_dependences_for_bb to analyze basic blocks.
8350 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
8351 case of loop vectorization. In case of basic block vectorization use
8352 data-ref itself as a base.
8353 (vect_create_data_ref_ptr): In case of basic block vectorization:
8354 don't advance the pointer, add new statements before the current
8355 statement. Adjust function calls.
8356 (vect_supportable_dr_alignment): Support only aligned accesses in
8357 basic block vectorization.
8358 * common.opt (ftree-slp-vectorize): New flag.
8359 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
8360 (vect_pattern_recog_1): Likewise.
8361 * tree-vect-stmts.c (process_use): Likewise.
8362 (vect_init_vector): Add new statements in the beginning of the basic
8363 block in case of basic block SLP.
8364 (vect_get_vec_def_for_operand): Adjust function calls.
8365 (vect_finish_stmt_generation): Likewise.
8366 (vectorizable_call): Add assert that it is loop vectorization, adjust
8367 function calls.
8368 (vectorizable_conversion, vectorizable_assignment): Likewise.
8369 (vectorizable_operation): In case of basic block SLP, take
8370 vectorization factor from statement's type and skip the relevance
8371 check. Adjust function calls.
8372 (vectorizable_type_demotion): Add assert that it is loop
8373 vectorization, adjust function calls.
8374 (vectorizable_type_promotion): Likewise.
8375 (vectorizable_store): Check for outer loop only in case of loop
8376 vectorization. Adjust function calls. For basic blocks, skip the
8377 relevance check and don't advance pointers.
8378 (vectorizable_load): Likewise.
8379 (vectorizable_condition): Add assert that it is loop vectorization,
8380 adjust function calls.
8381 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
8382 that it is not reduction, get vector type, call only supported
8383 functions, skip loop specific parts.
8384 (vect_transform_stmt): Check for outer loop only in case of loop
8385 vectorization.
8386 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
8387 (vect_is_simple_use): Fix comment, add new argument, fix conditions
8388 for external definition.
8389 * passes.c (pass_slp_vectorize): New pass.
8390 * tree-vect-slp.c (find_bb_location): New function.
8391 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
8392 check for patterns only in loops.
8393 (vect_build_slp_tree): Add argument, adjust function calls, fail in
8394 case of multiple types in basic block SLP.
8395 (vect_mark_slp_stmts_relevant): New function.
8396 (vect_supported_load_permutation_p): Fix comment.
8397 (vect_analyze_slp_instance): Add argument. In case of basic block
8398 SLP, take vectorization factor from statement's type, check that
8399 unrolling factor is 1. Adjust function call. Save SLP instance in
8400 either loop or basic block vectorization structure. Return FALSE,
8401 if SLP failed.
8402 (vect_analyze_slp): Add argument. Get strided stores groups from
8403 either loop or basic block vectorization structure. Return FALSE
8404 if basic block SLP failed.
8405 (new_bb_vec_info): New function.
8406 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
8407 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
8408 (vect_schedule_slp): Add argument. Get SLP instances from either
8409 loop or basic block vectorization structure. Set vectorization factor
8410 to be 1 for basic block SLP.
8411 (vect_slp_transform_bb): New function.
8412 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
8413
8414 2009-05-23 Mark Mitchell <mark@codesourcery.com>
8415
8416 * final.c (shorten_branches): Do not align labels for jump tables.
8417 (final_scan_insn): Use JUMP_TABLE_DATA_P.
8418
8419 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
8420
8421 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
8422 Remove outdated reference to flow.c and fix nits.
8423 * doc/gccint.texi: Tweak RTL description.
8424 * doc/rtl.texi: Likewise.
8425
8426 2009-05-23 Denis Chertykov <chertykov@gmail.com>
8427
8428 * config/avr/avr.c: Change my email address.
8429 * config/avr/avr.h: Likewise.
8430 * config/avr/avr.md: Likewise.
8431 * config/avr/avr-protos.h: Likewise.
8432 * config/avr/libgcc.S: Likewise.
8433
8434 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
8435
8436 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
8437 (spu_split_load, spu_split_store): Change return type to int.
8438 (spu_split_convert): Declare.
8439 * config/spu/predicates.md (spu_mem_operand): Remove.
8440 (spu_mov_operand): Update.
8441 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
8442 * config/spu/spu.c (regno_aligned_for_load): Remove.
8443 (reg_aligned_for_addr, spu_expand_load): Define.
8444 (spu_expand_extv): Reimplement and handle MEM.
8445 (spu_expand_insv): Handle MEM.
8446 (spu_sched_reorder): Handle insn's with length 0.
8447 (spu_legitimate_address_p): Reimplement.
8448 (store_with_one_insn_p): Return TRUE for any mode with size
8449 larger than 16 bytes.
8450 (address_needs_split): Define.
8451 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
8452 operands.
8453 (spu_convert_move): Define.
8454 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
8455 (spu_split_store): Change all MEM's to TImode.
8456 (spu_init_expanders): Preallocate registers that correspond to
8457 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
8458 mark_reg_pointer.
8459 (spu_split_convert): Define.
8460 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
8461 (_move<mode>, _movdi, _movti): Update predicate and condition.
8462 (load, store): Change to define_split.
8463 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
8464 extend<mode>ti2.
8465 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
8466 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
8467 define_insn_and_split of lshr<mode>3.
8468 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
8469 (<v>ashr<mode>3_imm): Define.
8470 (extv, extzv, insv): Allow MEM operands.
8471 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
8472 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
8473 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
8474 (_spu_convert2): Change to define_insn_and_split and remove the
8475 corresponding define_peephole2.
8476 (stack_protect_set, stack_protect_test, stack_protect_test_si):
8477 Change predicates to memory_operand.
8478
8479 2009-05-22 Mark Mitchell <mark@codesourcery.com>
8480
8481 * config/arm/thumb2.md: Add 16-bit multiply instructions.
8482
8483 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8484
8485 PR tree-optimization/40219
8486 * tree.c (iterative_hash_expr): Make sure the builtin function is
8487 a normal builtin function and not a front end or back end builtin
8488 before indexing into the built_in_decls array.
8489
8490 2009-05-22 Richard Guenther <rguenther@suse.de>
8491
8492 PR middle-end/38964
8493 * alias.c (write_dependence_p): Do not use TBAA for answering
8494 anti-dependence or output-dependence.
8495 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
8496 (emit_pointer_definition): Remove.
8497 (emit_alias_warning): Likewise.
8498 (find_what_var_points_to): Remove TBAA pruning code.
8499 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
8500 violations.
8501 (compute_points_to_sets): Remove code computing the set of
8502 dereferenced pointers.
8503 * tree-data-ref.c (dr_may_alias_p): Properly use the split
8504 oracle for querying anti and output dependencies.
8505 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
8506 if TBAA may be applied.
8507 (refs_anti_dependent_p): New function.
8508 (refs_output_dependent_p): Likewise.
8509 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
8510 (refs_output_dependent_p): Likewise.
8511 * doc/tree-ssa.texi (Memory model): New section.
8512 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
8513 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
8514 * cfgexpand.c (expand_gimple_basic_block): Do not handle
8515 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
8516 * expr.c (expand_expr_real_1): Likewise.
8517 * gimple-low.c (lower_stmt): Likewise.
8518 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
8519 (dump_gimple_cdt): Remove.
8520 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
8521 (gimple_size): Likewise.
8522 (walk_gimple_op): Likewise.
8523 (is_gimple_stmt): Likewise.
8524 (walk_stmt_load_store_addr_ops): Likewise.
8525 (gimple_build_cdt): Remove.
8526 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
8527 * gimple.h (gimple_cdt_new_type): Remove.
8528 (gimple_cdt_new_type_ptr): Likewise.
8529 (gimple_cdt_set_new_type): Likewise.
8530 (gimple_cdt_location): Likewise.
8531 (gimple_cdt_location_ptr): Likewise.
8532 (gimple_cdt_set_location): Likewise.
8533 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
8534 * tree-cfg.c (remove_useless_stmts_1): Do not handle
8535 GIMPLE_CHANGE_DYNAMIC_TYPE.
8536 (verify_types_in_gimple_stmt): Likewise.
8537 * tree-inline.c (estimate_num_insns): Likewise.
8538 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
8539 (copy_decl_to_var): Likewise.
8540 (copy_result_decl_to_var): Likewise.
8541 * tree-pretty-print.c (dump_generic_node): Do not handle
8542 CHANGE_DYNAMIC_TYPE_EXPR.
8543 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8544 * tree-ssa-operands.c (get_expr_operands): Likewise.
8545 * tree-ssa-structalias.c (struct variable_info): Remove
8546 no_tbaa_pruning member.
8547 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
8548 (unify_nodes): Do not copy it.
8549 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
8550 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
8551 (set_uids_in_ptset): Do not check it.
8552 (find_what_var_points_to): Likewise.
8553 (compute_tbaa_pruning): Remove.
8554 (compute_points_to_sets): Do not call it.
8555 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
8556 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
8557 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
8558 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
8559 (DECL_NO_TBAA_P): Likewise.
8560 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
8561 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
8562 (expand_omp_atomic_pipeline): Do not set it.
8563 * print-tree.c (print_node): Do not dump it.
8564 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
8565 redundant check.
8566
8567 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
8568
8569 PR target/39856
8570 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
8571 for clobber.
8572
8573 2009-05-22 Mark Mitchell <mark@codesourcery.com>
8574
8575 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
8576 non-external.
8577
8578 2009-05-22 Ben Elliston <bje@au.ibm.com>
8579
8580 * Makefile.in (bversion.h, s-bversion): New targets.
8581 (TOPLEV_H): Add bversion.h.
8582 * toplev.h: Include "bversion.h".
8583 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
8584 the __format__ attribute only if compiling with the same version
8585 of GCC as the sources (the "build version").
8586
8587 2009-05-22 Ben Elliston <bje@au.ibm.com>
8588
8589 * c-format.c (handle_format_attribute): Fix comment typo.
8590
8591 2009-05-21 Steve Ellcey <sje@cup.hp.com>
8592
8593 PR target/37846
8594 * config/ia64/ia64.opt (mfused-madd): New.
8595 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
8596 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
8597 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
8598 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
8599 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
8600 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
8601 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
8602 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
8603 instruction if !TARGET_FUSED_MADD.
8604 (fpma, fpms): Remove colon from name.
8605
8606 2009-05-22 Richard Guenther <rguenther@suse.de>
8607
8608 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
8609 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
8610 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
8611 TARGET_MEM_REF.
8612 (create_expression_by_pieces): Only convert if necessary.
8613 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
8614 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
8615
8616 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
8617
8618 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
8619 regular pattern from a template and rename it ...
8620 (*extzv_truncsi_exts): ... to this.
8621
8622 2009-05-21 Richard Guenther <rguenther@suse.de>
8623
8624 * cgraph.h (struct cgraph_node): Remove inline_decl member.
8625 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
8626 (cgraph_default_inline_p): Likewise.
8627 (cgraph_decide_inlining_incrementally): Likewise.
8628
8629 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
8630 Uros Bizjak <ubizjak@gmail.com>
8631
8632 * config/i386/cpuid.h (bit_MOVBE): New.
8633
8634 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
8635
8636 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
8637 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
8638 (ix86_handle_option): Handle OPT_mmovbe.
8639 (ix86_target_string): Add -mmovbe.
8640 (pta_flags): Add PTA_MOVBE.
8641 (processor_alias_table): Add PTA_MOVBE to "atom".
8642 (override_options): Handle PTA_MOVBE.
8643
8644 * config/i386/i386.h (TARGET_MOVBE): New.
8645
8646 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
8647 (*bswapsi_movbe): New.
8648 (*bswapdi_movbe): Likewise.
8649 (bswapdi2): Renamed to ...
8650 (*bswapdi_1): This.
8651 (bswapdi2): New expander.
8652
8653 * config/i386/i386.opt (mmovbe): New.
8654
8655 * doc/invoke.texi: Document -mmovbe.
8656
8657 2009-05-21 Taras Glek <tglek@mozilla.com>
8658
8659 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
8660 * gcc-plugin.h (plugin_init): Updated signature.
8661 * gcc-plugin.h (plugin_name_args): Moved to this header.
8662 * doc/plugins.texi (plugin_init): Updated documention to reflect
8663 API change.
8664 * doc/plugins.texi (plugin_name_args): Added to documention.
8665
8666 2009-05-21 Mark Mitchell <mark@codesourcery.com>
8667
8668 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
8669 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
8670
8671 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
8672
8673 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
8674 JUMP_TABLE_DATA_P predicates where applicable.
8675 * config/i386/predicates.md: Ditto.
8676 * config/i386/sse.md: Ditto.
8677
8678 2009-05-21 Jakub Jelinek <jakub@redhat.com>
8679
8680 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
8681 operand2 -128 override length_immediate attribute to 1.
8682 * config/i386/predicates.md (constm128_operand): New predicate.
8683
8684 * config/i386/i386.c (memory_address_length): Handle %r12
8685 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
8686 also check REGNO.
8687 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
8688 mode look through optional ZERO_EXTEND and SUBREG.
8689 * config/i386/i386.md (R12_REG): New define_constant.
8690 (prefix_data16): For sse unit set also for MODE_TI insns.
8691 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
8692 insns set if operand 1 is ext_QIreg_operand.
8693 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
8694 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
8695 immediate.
8696 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
8697 mode from MODE_DI to MODE_SI.
8698 (movdi_1_rex64): Override modrm and length_immediate attributes
8699 only for movabs (TYPE_IMOV, alternative 2).
8700 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
8701 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8702 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8703 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8704 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
8705 prefix_rex attribute if DImode.
8706 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
8707 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
8708 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
8709 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
8710 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
8711 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
8712 Likewise. For TYPE_IMOV clear length_immediate attribute.
8713 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
8714 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
8715 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
8716 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
8717 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
8718 or one operand TYPE_ISHIFT.
8719 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
8720 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
8721 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
8722 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
8723 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
8724 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
8725 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
8726 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
8727 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
8728 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
8729 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
8730 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
8731 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
8732 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
8733 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
8734 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
8735 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
8736 set mode attribute, don't override length attribute.
8737 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
8738 to 1.
8739 (return_internal_long): Set length attribute to 2 instead of 1.
8740 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
8741 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
8742 prefix_rex attribute.
8743 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
8744 New predicates.
8745 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
8746
8747 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8748
8749 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
8750
8751 2009-05-20 Ian Lance Taylor <iant@google.com>
8752
8753 * tree.c (build_tree_list_vec_stat): New function.
8754 (ctor_to_vec): New function.
8755 (build_nt_call_vec): New function.
8756 (build_call_array): Change args to be a const pointer.
8757 (build_call_vec): New function.
8758 * tree.h (build_nt_call_vec): Declare.
8759 (build_tree_list_vec_stat): Declare.
8760 (build_tree_list_vec): Define.
8761 (build_call_array): Update declaration.
8762 (build_call_vec): Declare.
8763 (ctor_to_vec): Declare.
8764 * c-common.c (tree_vector_cache): New static variable.
8765 (make_tree_vector): New function.
8766 (release_tree_vector): New function.
8767 (make_tree_vector_single): New function.
8768 (make_tree_vector_copy): New function.
8769 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
8770 (make_tree_vector_single, make_tree_vector_copy): Declare.
8771 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
8772 (c_parser_expr_list): Don't manage cache here, instead call
8773 make_tree_vector.
8774 (c_parser_release_expr_list): Remove static function.
8775 (c_parser_vec_to_tree_list): Remove static function.
8776 (c_parser_attributes): Call build_tree_list_vec instead of
8777 c_parser_vec_to_tree_list. Call release_tree_vector instead of
8778 c_parser_release_expr_list.
8779 (c_parser_postfix_expression_after_primary): Likewise.
8780 (c_parser_objc_keywordexpr): Likewise.
8781
8782 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
8783
8784 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
8785 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
8786 TARGET_CONVERT_TO_TYPE.
8787 * hooks.c (hook_tree_const_tree_null): Define.
8788 * hooks.h (hook_tree_const_tree_null): Declare.
8789 * target.h (struct gcc_target): Add invalid_parameter_type,
8790 invalid_return_type, promoted_type, and convert_to_type fields.
8791 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
8792 (TARGET_INVALID_RETURN_TYPE): Define.
8793 (TARGET_PROMOTED_TYPE): Define.
8794 (TARGET_CONVERT_TO_TYPE): Define.
8795 (TARGET_INITIALIZER): Update for new fields.
8796 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
8797 (grokparms): Check targetm.invalid_parameter_type.
8798 * c-typeck.c (default_conversion): Check targetm.promoted_type.
8799 * c-convert.c (convert): Check targetm.convert_to_type.
8800
8801 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
8802
8803 * config/mips/mips.md (*extenddi_truncate<mode>,
8804 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
8805 defintions.
8806 (*extendhi_truncateqi): New define_insn_and_sptit.
8807
8808 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8809
8810 PR middle-end/40204
8811 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
8812 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
8813
8814 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
8815
8816 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
8817 the operand of VIEW_CONVERT_EXPR.
8818
8819 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 * config/i386/driver-i386.c (host_detect_local_cpu): Check
8822 extended family and model for Intel processors. Support Intel Atom.
8823
8824 2009-05-20 Olivier Hainque <hainque@adacore.com>
8825
8826 * gstab.h (stab_code_type): Define, to be used instead of the
8827 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
8828 notice.
8829 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
8830 occurrences by stab_code_type.
8831 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
8832
8833 2009-05-20 Martin Jambor <mjambor@suse.cz>
8834
8835 * tree-flow.h (insert_edge_copies_seq): Undeclare.
8836 (sra_insert_before): Likewise.
8837 (sra_insert_after): Likewise.
8838 (sra_init_cache): Likewise.
8839 (sra_type_can_be_decomposed_p): Likewise.
8840 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
8841 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
8842 (sra_insert_before): Likewise.
8843 (sra_insert_after): Likewise.
8844 (sra_init_cache): Likewise.
8845 (insert_edge_copies_seq): Made static and moved upwards.
8846
8847 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
8848 case.
8849
8850 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
8851
8852 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
8853 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
8854 simple copies.
8855
8856 2009-05-20 Richard Guenther <rguenther@suse.de>
8857
8858 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
8859 with mismatched comparison modes.
8860
8861 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8862
8863 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
8864 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
8865 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
8866 with shifts for Thumb2.
8867 (orsi_notsi): New for orn.
8868 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
8869 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
8870 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
8871 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
8872 Don't invert remainder for IOR.
8873
8874 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
8875
8876 PR tree-optimization/40087
8877 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
8878 number_of_iterations_ne): Rename never_infinite argument.
8879 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
8880 number_of_iterations_le): Handle pointer-type ivs when
8881 exit_must_be_taken is false.
8882 (number_of_iterations_cond): Do not always assume that
8883 exit_must_be_taken if the control variable is a pointer.
8884
8885 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
8886
8887 * c-typeck.c (build_binary_op): Allow % on integal vectors.
8888 * doc/extend.texi (Vector Extension): Document that % is allowed too.
8889
8890 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
8891
8892 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
8893 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
8894
8895 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8896
8897 PR c/40172
8898 * c.opt (Wlogical-op): Disabled by default.
8899 * c-opt (c_common_post_options): Do not enable Wlogical-op with
8900 Wextra.
8901 * doc/invoke.texi (Wlogical-op): Likewise.
8902
8903 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
8904
8905 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
8906 into CASE_CONVERT.
8907 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
8908 Propagate the type of the first operand.
8909 <ASSERT_EXPR>: Simplify.
8910 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
8911 Rewrite using the RHS code as discriminant.
8912 <NOP_EXPR>: Turn into CASE_CONVERT.
8913 <PLUS_EXPR>: Propagate the type of the first operand.
8914
8915 2009-05-19 Steve Ellcey <sje@cup.hp.com>
8916
8917 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
8918 (ia64_dconst_0_375): New.
8919 * config/ia64/ia64.c (ia64_override_options): Remove
8920 -minline-sqrt-min-latency warning.
8921 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
8922 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
8923 * config/ia64/ia64.md (*sqrt_approx): Remove.
8924 (sqrtsf2): Remove #if 0.
8925 (sqrtsf2_internal_thr): Rewrite and move to div.md.
8926 (sqrtdf): Remove assert.
8927 (sqrtdf2_internal_thr): Rewrite and move to div.md.
8928 (sqrtxf2): Remove #if 0.
8929 (sqrtxf2_internal_thr): Rewrite and move to div.md.
8930 * div.md (sqrt_approx_rf): New.
8931 (sqrtsf2_internal_thr): New implementation.
8932 (sqrtsf2_internal_lat): New.
8933 (sqrtdf2_internal_thr: New implementation.
8934 (sqrtxf2_internal): New implementation.
8935
8936 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
8937 Hans-Peter Nilsson <hp@axis.com>
8938
8939 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
8940 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
8941 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
8942 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
8943 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
8944 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
8945 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
8946 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
8947 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
8948 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
8949 * c-common.c: ...from here.
8950
8951 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8952
8953 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
8954
8955 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8956
8957 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
8958
8959 2009-05-19 Ben Elliston <bje@au.ibm.com>
8960
8961 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
8962 assignments with memcpy calls.
8963 (add_fdes): Likewise.
8964 (binary_search_unencoded_fdes): Likewise.
8965 (linear_search_fdes): Eliminate type puns.
8966
8967 2009-05-19 Richard Guenther <rguenther@suse.de>
8968
8969 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
8970 not falsely claim to have propagated into all uses.
8971
8972 2009-05-19 Ben Elliston <bje@au.ibm.com>
8973
8974 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
8975 version to v3.0.
8976
8977 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
8978
8979 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
8980 * config/sh/sh.c (sh_legitimate_address_p): Make static.
8981 (TARGET_LEGITIMATE_ADDRESS_P): New.
8982 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8983 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8984
8985 2009-05-18 Dodji Seketeli <dodji@redhat.com>
8986
8987 PR debug/40109
8988 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
8989 child of the containing namespace's DIE.
8990
8991 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
8992
8993 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
8994 *zero_extendhi_truncqi): Move after the zero_extend patterns.
8995 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
8996 extend patterns.
8997
8998 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
8999
9000 PR target/39942
9001 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
9002 gen_align with gen_pad.
9003 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
9004 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
9005
9006 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
9007 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
9008
9009 * config/i386/i386.md (align): Renamed to ...
9010 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
9011 ASM_OUTPUT_MAX_SKIP_PAD.
9012
9013 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
9014
9015 * config.gcc: Fix variable syntax.
9016
9017 PR target/39531
9018 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
9019 before calling exact_log2.
9020 (output_iorsi3): Likewise.
9021 (output_xorsi3): Likewise.
9022
9023 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
9024
9025 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
9026 for the none zero constant operand except for EQ and NE
9027 comprisons even when the first operand is R0.
9028
9029 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
9030
9031 * config/s390/2064.md: Remove trailing whitespaces.
9032 * config/s390/2084.md: Likewise.
9033 * config/s390/constraints.md: Likewise.
9034 * config/s390/fixdfdi.h: Likewise.
9035 * config/s390/libgcc-glibc.ver: Likewise.
9036 * config/s390/s390-modes.def: Likewise.
9037 * config/s390/s390-protos.h: Likewise.
9038 * config/s390/s390.c: Likewise.
9039 * config/s390/s390.h: Likewise.
9040 * config/s390/s390.md: Likewise.
9041 * config/s390/tpf-unwind.h: Likewise.
9042
9043 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9044
9045 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
9046
9047 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9048
9049 M68K TLS support.
9050 * configure.ac (m68k-*-*): Check if binutils support TLS.
9051 * configure: Regenerate.
9052 * config/m68k/predicates.md (symbolic_operand): Extend comment.
9053 * config/m68k/constraints.md (Cu): New constraint.
9054 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
9055 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
9056 (movsi): Handle TLS symbols.
9057 (addsi3_5200): Handle XTLS symbols, indent.
9058 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
9059 (m68k_tls_reference_p): Declare.
9060 (m68k_legitimize_address): Declare.
9061 (m68k_unwrap_symbol): Declare.
9062 * config/m68k/m68k.opt (mxtls): New option.
9063 * config/m68k/m68k.c (ggc.h): Include.
9064 (m68k_output_dwarf_dtprel): Implement hook.
9065 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
9066 (m68k_expand_prologue): Load GOT pointer when function needs it.
9067 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
9068 (m68k_legitimate_constant_address_p): Same.
9069 (m68k_decompose_address): Handle TLS references.
9070 (m68k_get_gp): New static function.
9071 (enum m68k_reloc): New contants.
9072 (TLS_RELOC_P): New macro.
9073 (m68k_wrap_symbol): New static function.
9074 (m68k_unwrap_symbol): New function.
9075 (m68k_final_prescan_insn_1): New static function.
9076 (m68k_final_prescan_insn): New function.
9077 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
9078 functions.
9079 (legitimize_pic_address): Handle TLS references..
9080 (m68k_tls_get_addr, m68k_get_tls_get_addr)
9081 (m68k_libcall_value_in_a0_p)
9082 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
9083 (m68k_call_m68k_read_tp): Helper variables and functions for ...
9084 (m68k_legitimize_tls_address): Handle TLS references.
9085 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
9086 New functions.
9087 (m68k_legitimize_address): Handle TLS symbols.
9088 (m68k_get_reloc_decoration): New static function.
9089 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
9090 UNSPEC_RELOC32.
9091 (m68k_output_dwarf_dtprel): Implement hook.
9092 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
9093 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
9094 m68k_call_* routines.
9095 (sched_attr_op_type): Handle TLS symbols.
9096 (gt-m68k.h): Include.
9097 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
9098 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
9099
9100 2009-05-18 Martin Jambor <mjambor@suse.cz>
9101
9102 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
9103 (visit_store_addr_for_mod_analysis): New function.
9104 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
9105 (determine_cst_member_ptr): Use gimple_assign_single_p.
9106 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
9107 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
9108 operands. Don't check number of operands of a NOP_EXPR.
9109
9110 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
9111
9112 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
9113
9114 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
9115
9116 PR c/40172
9117 * c-common.c (warn_logical_operator): Don't warn if one of
9118 expression isn't always true or false.
9119
9120 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
9121
9122 * config/i386/biarch32.h: New file.
9123 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
9124
9125 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
9126
9127 * config/mips/mips.md (*zero_extend<mode>_trunchi,
9128 *zero_extend<mode>_truncqi): Merge these into ...
9129 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
9130 Name the pattern following this as *zero_extendhi_truncqi.
9131
9132 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
9133
9134 PR middle-end/39301
9135 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
9136 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
9137 (output_info): Make field HOST_WIDEST_INT.
9138 (print_statistics): Use HOST_WIDEST_INT_PRINT.
9139 (dump_bitmat_statistics): Same.
9140
9141 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
9142
9143 * config.gcc (use_gcc_stdint): Set to wrap.
9144 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
9145 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
9146 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9147 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9148 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9149 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9150 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9151 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
9152
9153 2009-05-16 Joseph Myers <joseph@codesourcery.com>
9154
9155 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
9156 tune_64.
9157 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
9158 Move definitions earlier.
9159 (OPT_ARCH64, OPT_ARCH32): Define.
9160 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
9161 and tune_64.
9162
9163 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
9164
9165 PR target/40153
9166 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
9167 implies.
9168
9169 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
9170
9171 * arm.md (movdi2): Copy non-reg values to DImode registers.
9172
9173 2009-05-16 Jakub Jelinek <jakub@redhat.com>
9174
9175 PR target/39942
9176 * final.c (label_to_max_skip): New function.
9177 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
9178 CODE_LABEL_NUMBER <= max_labelno.
9179 * output.h (label_to_max_skip): New prototype.
9180 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
9181 (ix86_avoid_jump_mispredicts): ... this. Don't define if
9182 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
9183 Handle CODE_LABELs with >= 16 byte alignment or with
9184 max_skip == (1 << align) - 1.
9185 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
9186 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
9187
9188 PR target/39942
9189 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
9190 .p2align 3 if MAX_SKIP is smaller than 7.
9191 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9192
9193 2009-05-15 Ian Lance Taylor <iant@google.com>
9194
9195 * alias.c (struct alias_set_entry_d): Rename from struct
9196 alias_set_entry. Change all uses.
9197 * except.c (struct call_site_record_d): Rename from struct
9198 call_site_record. Change all uses.
9199 * except.h (struct eh_region_d): Rename from struct eh_region.
9200 Change all uses.
9201 * gcse.c (struct hash_table_d): Rename from struct hash_table.
9202 Change all uses.
9203 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
9204 ivtype_map_elt. Change all uses.
9205 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
9206 Change all uses.
9207 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
9208 * graphite.h (struct name_tree_d): Rename from struct name_tree.
9209 Change all uses.
9210 (struct sese_d): Rename from struct sese. Change all uses.
9211 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
9212 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
9213 * optabs.h (struct optab_d): Rename from struct optab. Change all
9214 uses.
9215 (struct convert_optab_d): Rename from struct convert_optab.
9216 Change all uses.
9217 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
9218 ipa_opt_pass. Change all uses.
9219 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
9220 all uses.
9221
9222 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
9223 defined as a typedef.
9224 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
9225 defined as a tag.
9226
9227 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9228
9229 PR 16302
9230 * fold-const.c (make_range,build_range_check,merge_ranges): Move
9231 declaration to...
9232 (merge_ranges): Returns bool.
9233 * tree.h (make_range): .. to here.
9234 (build_range_check): Likewise.
9235 (merge_ranges): Likewise. Renamed from merge_ranges.
9236 * c-typeck.c (parser_build_binary_op): Update calls to
9237 warn_logical_operator.
9238 * c-common.c (warn_logical_operator): Add new warning.
9239 * c-common.h (warn_logical_operator): Update declaration.
9240
9241 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9242
9243 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
9244
9245 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9246
9247 * doc/install.texi: Document MPC requirements, flags etc.
9248
9249 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
9250 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
9251 Evaluate constant arguments.
9252 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
9253 (fold_builtin_1): Likewise, also evaluate constant arguments.
9254 Remove superfluous break.
9255 (do_mpc_ckconv): New.
9256 * real.h: Include mpc.h.
9257 * toplev.c (print_version): Output MPC version info if available.
9258
9259 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9260
9261 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
9262
9263 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
9264
9265 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
9266 only once.
9267
9268 2009-05-15 Jan Hubicka <jh@suse.cz>
9269
9270 * doc/invoke.texi (max-early-inliner-iterations): New flag.
9271 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
9272 (try_inline): Fix return value.
9273 (cgraph_decide_inlining_incrementally): Honor new value.
9274 (cgraph_early_inlining): Handle indirect inlining.
9275 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
9276
9277 2009-05-15 Jan Hubicka <jh@suse.cz>
9278
9279 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
9280 * cgraphunit.c (cgraph_finalize_function): Set it.
9281 (cgraph_expand_function): Use it.
9282
9283 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9284
9285 * real.c (encode_ieee_half): Define.
9286 (decode_ieee_half): Define.
9287 (ieee_half_format): Define.
9288 (arm_half_format): Define.
9289 * real.h (ieee_half_format): Declare.
9290 (arm_half_format): Declare.
9291
9292 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9293
9294 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
9295 swapped, and reversed optabs exist before trying to use them.
9296
9297 2009-05-15 Paul Brook <paul@codesourcery.com>
9298 Sandra Loosemore <sandra@codesourcery.com>
9299
9300 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
9301 loads. Allow PRE_DEC.
9302 (output_move_neon): Handle PRE_DEC.
9303 (arm_print_operand): Add 'A' for neon structure loads.
9304 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
9305 * config/arm/neon.md (neon_mov): Update comment.
9306 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
9307 calls.
9308 (Um): New constraint.
9309
9310 2009-05-15 Jan Hubicka <jh@suse.cz>
9311
9312 Revert the following patch until testsuite fallout is fixed:
9313 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9314 * cgraph.h (struct inline_summary): New filed self_wize,
9315 size_inlining_benefit, self_time and time_inlining_benefit.
9316 (struct cgraph_global_info): Replace insns by time ans size fields.
9317 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9318 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9319 (ipcp_update_callgraph): Do not touch function bodies.
9320 * ipa-inline.c: Include except.h
9321 (MAX_TIME): New constant.
9322 (overall_insns): Remove
9323 (overall_size, max_benefit): New static variables.
9324 (cgraph_estimate_time_after_inlining): New function.
9325 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9326 (cgraph_clone_inlined_nodes): Update size.
9327 (cgraph_mark_inline_edge): Update size.
9328 (cgraph_estimate_growth): Use size info.
9329 (cgraph_check_inline_limits): Check size.
9330 (cgraph_default_inline_p): Likewise.
9331 (cgraph_edge_badness): Compute badness based on benefit and size cost.
9332 (cgraph_decide_recursive_inlining): Check size.
9333 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9334 and times.
9335 (cgraph_decide_inlining): Likewise.
9336 (cgraph_decide_inlining_incrementally): Likewise; honor
9337 PARAM_EARLY_INLINING_INSNS.
9338 (likely_eliminated_by_inlining_p): New predicate.
9339 (estimate_function_body_sizes): New function.
9340 (compute_inline_parameters): Use it.
9341 * except.c (must_not_throw_labels): New function.
9342 * except.h (must_not_throw_labels): Declare.
9343 * tree-inline.c (init_inline_once): Kill inlining_weigths
9344 * tree-ssa-structalias.c: Avoid uninitialized warning.
9345 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9346 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9347 (PARAM_INLINE_CALL_COST): Remove.
9348 (PARAM_EARLY_INLINING_INSNS): New.
9349
9350 2009-05-15 Richard Guenther <rguenther@suse.de>
9351
9352 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
9353 not TODO_update_ssa.
9354
9355 2009-05-15 Richard Guenther <rguenther@suse.de>
9356
9357 PR tree-optimization/39999
9358 * gimple.h (gimple_expr_type): Use the expression type looking
9359 through useless conversions.
9360 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
9361 (vn_nary_op_insert_stmt): Likewise.
9362 (simplify_binary_expression): Likewise.
9363
9364 2009-05-15 Richard Guenther <rguenther@suse.de>
9365
9366 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9367 New options, enabled by default.
9368 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9369 Document.
9370 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
9371 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
9372 * tree-ssa-structalias.c (gate_tree_pta): New function.
9373 (pass_build_alias): Use it.
9374
9375 2009-05-15 Joseph Myers <joseph@codesourcery.com>
9376
9377 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
9378 recurse on an invariant address if a conversion from a pointer
9379 type to a wider integer type is involved.
9380
9381 2009-05-15 Jan Hubicka <jh@suse.cz>
9382
9383 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9384 * cgraph.h (struct inline_summary): New filed self_wize,
9385 size_inlining_benefit, self_time and time_inlining_benefit.
9386 (struct cgraph_global_info): Replace insns by time ans size fields.
9387 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9388 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9389 (ipcp_update_callgraph): Do not touch function bodies.
9390 * ipa-inline.c: Include except.h
9391 (MAX_TIME): New constant.
9392 (overall_insns): Remove
9393 (overall_size, max_benefit): New static variables.
9394 (cgraph_estimate_time_after_inlining): New function.
9395 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9396 (cgraph_clone_inlined_nodes): Update size.
9397 (cgraph_mark_inline_edge): Update size.
9398 (cgraph_estimate_growth): Use size info.
9399 (cgraph_check_inline_limits): Check size.
9400 (cgraph_default_inline_p): Likewise.
9401 (cgraph_edge_badness): Compute badness based on benefit and size cost.
9402 (cgraph_decide_recursive_inlining): Check size.
9403 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9404 and times.
9405 (cgraph_decide_inlining): Likewise.
9406 (cgraph_decide_inlining_incrementally): Likewise; honor
9407 PARAM_EARLY_INLINING_INSNS.
9408 (likely_eliminated_by_inlining_p): New predicate.
9409 (estimate_function_body_sizes): New function.
9410 (compute_inline_parameters): Use it.
9411 * except.c (must_not_throw_labels): New function.
9412 * except.h (must_not_throw_labels): Declare.
9413 * tree-inline.c (init_inline_once): Kill inlining_weigths
9414 * tree-ssa-structalias.c: Avoid uninitialized warning.
9415 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9416 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9417 (PARAM_INLINE_CALL_COST): Remove.
9418 (PARAM_EARLY_INLINING_INSNS): New.
9419 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
9420 (inline-call-cost): Remove.
9421 (early-inlining-insns): New.
9422
9423 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
9424
9425 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
9426 for bounds.
9427 (print_int_cst_bounds_in_octal_p): Likewise.
9428 (dbxout_type): Adjust calls to above functions. Be prepared to deal
9429 with subtypes.
9430 * dwarf2out.c (base_type_die): Likewise.
9431 (is_subrange_type): Delete.
9432 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
9433 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
9434 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
9435 if the destination type is boolean.
9436 (build_range_check): Do not special-case subtypes.
9437 (fold_sign_changed_comparison): Likewise.
9438 (fold_unary): Likewise.
9439 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
9440 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
9441 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
9442 * tree.c (subrange_type_for_debug_p): New predicate based on the
9443 former is_subrange_type.
9444 * tree.h (subrange_type_for_debug_p): Declare.
9445 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
9446 (convert_affine_scev): Remove call to above function.
9447 (chrec_convert_aggressive): Likewise.
9448 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
9449 false for conversions involving subtypes.
9450 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
9451 (vrp_val_min): Likewise.
9452 (needs_overflow_infinity): Likewise.
9453 (extract_range_from_unary_expr): Likewise.
9454
9455 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
9456
9457 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
9458 * config/frv/frv.c: Likewise.
9459 * config/s390/s390.c: Likewise.
9460 * config/sparc/sparc.h: Likewise.
9461 * config/i386/i386.h: Likewise.
9462 * config/i386/i386.c: Likewise.
9463 * config/crx/crx.c: Likewise.
9464 * config/m68hc11/m68hc11.h: Likewise.
9465 * config/iq2000/iq2000.c: Likewise.
9466 * config/mn10300/mn10300.h: Likewise.
9467 * config/mn10300/mn10300.c: Likewise.
9468 * config/m68k/m68k.c: Likewise.
9469 * config/rs6000/rs6000.c: Likewise.
9470 * config/rs6000/xcoff.h: Likewise.
9471 * config/rs6000/linux64.h: Likewise.
9472 * config/rs6000/sysv4.h: Likewise.
9473 * config/score/score3.c: Likewise.
9474 * config/score/score7.c: Likewise.
9475 * config/score/score.c: Likewise.
9476 * config/arm/arm.md: Likewise.
9477 * config/mips/mips.c: Likewise.
9478 * config/mips/mips.md: Likewise.
9479 * config/bfin/bfin.h: Likewise.
9480 * config/pa/pa.c: Likewise.
9481 * config/pa/constraints.md: Likewise.
9482
9483 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
9484 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
9485 * config/pdp11/pdp11.h: Use memory_address_p instead.
9486
9487 2009-05-14 Ian Lance Taylor <iant@google.com>
9488
9489 * passes.c (finish_optimization_passes): Change i to int.
9490 * plugin.c (plugins_active_p): Change event to int.
9491 (dump_active_plugins): Likewise.
9492 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
9493 Add cast.
9494 * tree.c (tree_range_check_failed): Change c to unsigned int.
9495 (omp_clause_range_check_failed): Likewise.
9496 (build_common_builtin_nodes): Change mode to int. Add cast.
9497 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
9498 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
9499
9500 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
9501 ++ or -- with a variable of enum type.
9502
9503 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
9504
9505 PR driver/40144
9506 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
9507
9508 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
9509
9510 * store-motion.c: Do not include params.h
9511 * Makefile.in: Fix dependencies for various files.
9512
9513 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
9514
9515 * auto-inc-dec.c: Fix pass description, remove apparent
9516 accidental duplication.
9517
9518 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
9519
9520 PR middle-end/40147
9521 * ipa-utils.h (memory_identifier_string): Moved to ...
9522 * tree.h (memory_identifier_string): Here. Add GTY(()).
9523
9524 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
9525
9526 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
9527 in the former documentation of...
9528 (GO_IF_LEGITIMATE_ADDRESS): ... this.
9529 * ira-conflicts.c (get_dup_num): Use address_operand.
9530 * targhooks.c (default_legitimate_address_p): New.
9531 * targhooks.h (default_legitimate_address_p): New.
9532 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
9533 Call hook.
9534 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
9535 * target.h (struct target): Add legitimate_address_p.
9536 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
9537 (TARGET_INITIALIZER): Include it.
9538
9539 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9540 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
9541 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
9542 (TARGET_LEGITIMATE_ADDRESS_P): New.
9543
9544 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9545 (REG_OK_STRICT_P): Delete.
9546 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
9547 (frv_legitimate_address_p_1): ... this.
9548 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
9549 (frv_legitimate_address_p_1): ... the renamed old
9550 frv_legitimate_address_p.
9551 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
9552 (TARGET_LEGITIMATE_ADDRESS_P): New.
9553
9554 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9555 * config/s390/s390-protos.h (legitimate_address_p): Remove.
9556 * config/s390/s390.c (legitimate_address_p): Rename to...
9557 (s390_legitimate_address_p): ... this, make static.
9558 (legitimize_address): Adjust call.
9559 (TARGET_LEGITIMATE_ADDRESS_P): New.
9560 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
9561
9562 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9563 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
9564 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
9565 (TARGET_LEGITIMATE_ADDRESS_P): New.
9566
9567 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9568 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
9569 * config/spu/spu.c (spu_legitimate_address): Rename to...
9570 (spu_legitimate_address_p): ... this, make static.
9571 (TARGET_LEGITIMATE_ADDRESS_P): New.
9572
9573 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9574 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
9575 * config/sparc/sparc.c (legitimate_address_p): Rename to...
9576 (sparc_legitimate_address_p): ... this, make static and return bool.
9577 (legitimize_address): Adjust call.
9578 (TARGET_LEGITIMATE_ADDRESS_P): New.
9579
9580 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9581 * config/i386/i386-protos.h (legitimate_address_p): Remove.
9582 * config/i386/i386.c (legitimate_address_p): Rename to...
9583 (ix86_legitimate_address_p): ... this, make static.
9584 (constant_address_p): Move after it, adjust call.
9585 (TARGET_LEGITIMATE_ADDRESS_P): New.
9586
9587 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9588 * config/avr/avr-protos.h (legitimate_address_p): Remove.
9589 * config/avr/avr.c (legitimate_address_p): Rename to...
9590 (avr_legitimate_address_p): ... this, make static.
9591 (legitimize_address): Adjust call.
9592 (TARGET_LEGITIMATE_ADDRESS_P): New.
9593
9594 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9595 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
9596 * config/crx/crx.c (crx_legitimate_address_p): Make static.
9597 (TARGET_LEGITIMATE_ADDRESS_P): New.
9598
9599 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9600 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
9601 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
9602 (TARGET_LEGITIMATE_ADDRESS_P): New.
9603
9604 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9605 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
9606 Remove.
9607 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9608 Make static.
9609 (TARGET_LEGITIMATE_ADDRESS_P): New.
9610
9611 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9612 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
9613 Remove.
9614 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
9615 Rename to...
9616 (m68hc11_legitimate_address_p): ... this, make static.
9617 (go_if_legitimate_address_internal): Rename to...
9618 (m68hc11_legitimate_address_p_1): ... this.
9619 (legitimize_address): Adjust call.
9620 (TARGET_LEGITIMATE_ADDRESS_P): New.
9621
9622 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9623 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
9624 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
9625 (TARGET_LEGITIMATE_ADDRESS_P): New.
9626
9627 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9628 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
9629 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
9630 (mn10300_legitimate_address_p): ... this, make static.
9631 (TARGET_LEGITIMATE_ADDRESS_P): New.
9632
9633 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9634 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
9635 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
9636 (TARGET_LEGITIMATE_ADDRESS_P): New.
9637
9638 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9639 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
9640 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
9641 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9642 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
9643 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
9644 (rs6000_legitimate_address_p): ... this, make static.
9645 (TARGET_LEGITIMATE_ADDRESS_P): New.
9646 (REG_MODE_OK_FOR_BASE_P): Delete.
9647 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
9648
9649 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9650 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
9651 Delete.
9652 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
9653 static, adjust types.
9654 (TARGET_LEGITIMATE_ADDRESS_P): New.
9655
9656 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9657 * config/score/score.c (score_address_p): Rename to...
9658 (score_legitimate_address_p): ... this.
9659 (TARGET_LEGITIMATE_ADDRESS_P): New.
9660 * config/score/score3.c (score3_address_p): Rename to...
9661 (score3_legitimate_address_p): ... this.
9662 * config/score/score7.c (score7_address_p): Rename to...
9663 (score7_legitimate_address_p): ... this.
9664
9665 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
9666 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
9667 GO_IF_LEGITIMATE_ADDRESS): Delete.
9668 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
9669 thumb2_legitimate_address_p): Delete.
9670 (arm_legitimate_address_p): Rename to...
9671 (arm_legitimate_address_outer_p): ... this.
9672 * config/arm/constraints.md ("Uq"): Adjust call.
9673 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
9674 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
9675 to...
9676 (arm_legitimate_address_outer_p): ... this.
9677 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
9678 static.
9679 (TARGET_LEGITIMATE_ADDRESS_P): New.
9680
9681 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9682 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
9683 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
9684 (TARGET_LEGITIMATE_ADDRESS_P): New.
9685
9686 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9687 * config/vax/vax-protos.h (legitimate_address_p): Remove.
9688 * config/vax/vax.c (legitimate_address_p): Rename to...
9689 (vax_legitimate_address_p): ... this, make static.
9690 (TARGET_LEGITIMATE_ADDRESS_P): New.
9691
9692 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9693 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
9694 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
9695 (TARGET_LEGITIMATE_ADDRESS_P): New.
9696
9697 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9698 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
9699 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
9700 (mmix_legitimate_address_p): ... this, make static.
9701 (TARGET_LEGITIMATE_ADDRESS_P): New.
9702
9703 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9704 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
9705 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
9706 (TARGET_LEGITIMATE_ADDRESS_P): New.
9707
9708 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
9709
9710 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
9711 of MODE_COMPLEX_INT.
9712
9713 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9714
9715 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
9716 LCT_NORMAL in function call.
9717 * mips-tdump.c (print_file_desc): Add cast to enum type.
9718 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
9719 (mark_stabs): Add casts to enum types.
9720 (parse_stabs_common): Add casts to enum types.
9721
9722 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
9723
9724 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
9725 Check for invalid values of LETTER.
9726
9727 2009-05-13 Taras Glek <tglek@mozilla.com>
9728
9729 * attribs.c (register_attribute): moved out attribute registration
9730 into register_attribute.
9731 * doc/plugins.texi: Documented register_attribute and
9732 PLUGIN_ATTRIBUTES.
9733 * gcc-plugin.h: Added forward decl for register_attribute.
9734 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
9735 * plugin.c (register_callback, invoke_plugin_callbacks): Added
9736 PLUGIN_ATTRIBUTES boilerplate.
9737
9738 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
9739
9740 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
9741 values even in sentinel and empty entries.
9742 (ms_printf_flag_specs): Likewise.
9743 (ms_scanf_flag_specs): Likewise.
9744 (ms_strftime_flag_specs): Likewise.
9745 (ms_print_char_table): Likewise.
9746 (ms_scan_char_table): Likewise.
9747 (ms_time_char_table): Likewise.
9748
9749 2009-05-13 Doug Kwan <dougkwan@google.com>
9750
9751 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
9752
9753 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
9754
9755 * config/mips/mips.md (store): Add attributes for QI and HI.
9756 Update comment.
9757 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
9758 (truncdi<mode>2): ... this new pattern.
9759
9760 2009-05-13 Brad Hards <bradh@kde.org>
9761
9762 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
9763
9764 2009-05-14 Jakub Jelinek <jakub@redhat.com>
9765 Ben Elliston <bje@au.ibm.com>
9766
9767 PR middle-end/40035
9768 * dse.c (check_mem_read_rtx): Guard against width == -1.
9769
9770 2009-05-13 Michael Matz <matz@suse.de>
9771
9772 PR middle-end/39976
9773 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
9774 (trivially_conflicts_p): New function.
9775 (insert_backedge_copies): Use it.
9776
9777 2009-05-13 Janis Johnson <janis187@us.ibm.com>
9778
9779 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
9780 (handle_stdc_pragma): Use new enum constant names.
9781 (handle_pragma_float_const_decimal64): Ditto.
9782
9783 2009-05-13 Ian Lance Taylor <iant@google.com>
9784
9785 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
9786 tree.def.
9787
9788 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
9789
9790 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
9791 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
9792 multilibs.
9793 * config/m68k/m68k.h (FL_UCLINUX): Define.
9794
9795 2009-05-13 Jan Hubicka <jh@suse.cz>
9796
9797 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
9798
9799 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9800
9801 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
9802 unless -fschedule-insns is specified.
9803
9804 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9805
9806 PR target/39561
9807 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
9808 TARGET_EXPAND_CBRANCHDI4.
9809 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
9810 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
9811 (cmpeqdi): Fix comment.
9812
9813 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9814
9815 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
9816 (sh_legitimate_address_p): Likewise.
9817 * config/sh/sh.c (sh_legitimate_index_p): New.
9818 (sh_legitimate_address_p): Likewise.
9819 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
9820 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
9821 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
9822 (MAYBE_BASE_REGISTER_RTX_P): New macro.
9823 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
9824 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
9825 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
9826 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
9827 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
9828
9829 2009-05-12 Jan Hubicka <jh@suse.cz>
9830
9831 * tree-inline.c (estimate_operator_cost): Add operands;
9832 when division happens by constant, it is cheap.
9833 (estimate_num_insns): Loads and stores are not having cost of 0;
9834 EH magic stuff is cheap; when computing runtime cost of switch,
9835 use log2 base of amount of its cases; builtin_expect has cost of 0;
9836 compute cost for moving return value of call.
9837 (init_inline_once): Initialize time_based flags.
9838 * tree-inline.h (eni_weights_d): Add time_based flag.
9839
9840 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
9841
9842 * df-core.c: Update head documentation.
9843
9844 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9845
9846 PR bootstrap/40118
9847 * rs6000.c (rs6000_generate_compare): Use op1b instead of
9848 shadowing exisiting variable op1.
9849
9850 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
9851
9852 PR target/37179
9853 * config/i386/driver-i386.c (processor_signatures): New enum.
9854 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
9855 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
9856 processor signature to detect geode processor.
9857
9858 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
9859
9860 Revert:
9861
9862 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
9863
9864 * optabs.c (prepare_cmp_insn): Temporarily disable test that
9865 causes spurious differences between trunk and cond-optab branch.
9866
9867 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
9868
9869 * dojump.c (compare_from_rtx): Delete.
9870 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
9871 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
9872 if the comparison does not satisfy the predicate; test predicates for
9873 operands 2 and 3 of a cstore pattern. Don't try cstore optab
9874 further if one existing pattern fails.
9875 * expr.h (compare_from_rtx): Delete.
9876 (prepare_operand): Declare it.
9877 * optabs.c: Change "lib call" to "libcall" throughout.
9878 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
9879 HAVE_conditional_trap, emit_cmp_insn): Delete.
9880 (can_compare_p): Delete cmp_optab case.
9881 (prepare_float_lib_cmp): Return an rtx and a machine mode.
9882 Accept other parameters by value.
9883 (prepare_operand): Make non-static.
9884 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
9885 other parameters by value. Try to widen operands here based on
9886 an optab_methods argument and looking at cbranch_optab.
9887 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
9888 loop. Use cbranch_optab directly.
9889 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
9890 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
9891 assertion.
9892 (emit_conditional_move, emit_conditional_add): Inline what's needed
9893 of compare_from_rtx, using new prepare_cmp_insn for the rest.
9894 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
9895 with COMPARE. Move cmov_optab and cstore_optab above
9896 with cbranch_optab, move cmp_optab down with ucmp_optab,
9897 remove tst_otpab. Do not initialize trap_rtx.
9898 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
9899 for trap code. Do not check HAVE_conditional_trap. Use
9900 prepare_cmp_insn. Accept no predicate for operand 3.
9901 * optabs.h (OTI_cmp): Mark as used only for libcalls.
9902 (OTI_ctrap, ctrap_optab): New.
9903 (tst_optab): Delete.
9904 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
9905 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
9906 with lookup of ctrap_optab.
9907 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
9908 Delete.
9909 (ctrap_optab): New.
9910
9911 * combine.c (combine_simplify_rtx, simplify_set): Do not
9912 special case comparing against zero for cc0 machines.
9913 * simplify-rtx.c (simplify_binary_operation_1): Never remove
9914 COMPARE on cc0 machines.
9915 (simplify_relational_operation): Return a new expression when
9916 a COMPARE could be removed.
9917 * final.c (final_scan_insn): Compare cc_status values
9918 against LHS of a (compare FOO (const_int 0)) cc0 source.
9919 Also check if cc_status.value is the full compare.
9920
9921 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
9922 (cstoreMM4): Document.
9923 (conditional_trap): Document ctrapMM4 instead.
9924 (sync_compare_and_swapMM): Refer to cbranchcc4.
9925 (Dependent Patterns): Eliminate obsolete information referring to
9926 the old jump optimization phase.
9927 (Canonicalization): Include cbranchcc4 case, omit canonicalization
9928 of compares with 0 on cc0 machines.
9929 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
9930 avoiding references to cc0. Remove text about storing operands
9931 in cmpMM.
9932 * doc/tm.texi (Condition Codes): Include blurb on different
9933 condition code representations, separate into subsections for
9934 CC0, MODE_CC and conditional execution.
9935
9936 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
9937 alpha_emit_setcc): Accept operands and a machine mode.
9938 * config/alpha/alpha.c (alpha_emit_conditional_branch):
9939 Get code/op0/op1 from operands, use machine mode argument
9940 instead of alpha_compare.fp_p. Emit the branch here.
9941 (alpha_emit_setcc): Likewise, and return boolean.
9942 (alpha_emit_conditional_move): Likewise. Assert that
9943 cmp_op_mode == cmp_mode, and simplify accordingly.
9944 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
9945 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
9946 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
9947 Delete.
9948 (stack probe test): Use cbranchdi4.
9949 * config/alpha/predicates.md (alpha_cbranch_operator): New.
9950
9951 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
9952 * config/arc/arc.h (movsicc, movsfcc): Use it.
9953 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
9954 (cbranchsi4, cstoresi4): New.
9955 (cmpsi, bCC and sCC expanders): Remove.
9956
9957 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
9958 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
9959 * config/arm/predicates.md (arm_comparison_operator): Only include
9960 floating-point operators if there is a hardware floating-point unit.
9961 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
9962 deferring to cbranch_cc and cstore_cc respectively.
9963 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
9964 cbranch_cc, cstore_cc): New.
9965 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
9966 arm_compare_op1.
9967 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
9968
9969 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
9970 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
9971 as an argument.
9972 (adjust_insn_length): Adjust calls.
9973 (avr_reorg): Handle (compare (foo) (const_int 0)).
9974 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
9975 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
9976 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
9977 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
9978 (bCC): Remove.
9979 (cbranchqi4, cbranchhi4, cbranchsi4): New.
9980 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
9981
9982 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
9983 (cbranchsi4, cstorebi4, cstoresi4): New.
9984 (movbisi): This insn is duplicate, split it to zero_extend.
9985 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
9986 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
9987 (bfin_optimize_loop): Use cbranch expander.
9988 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
9989 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
9990 (bfin_bimode_comparison_operator): ... this.
9991 (bfin_direct_comparison_operator): New.
9992
9993 * config/cris/cris.c (cris_normal_notice_update_cc): Look
9994 inside (compare FOO (const_int 0)).
9995 (cris_rtx_costs): Handle ZERO_EXTRACT.
9996 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
9997 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
9998 (*tstdi_v32): Delete.
9999 (*cmpdi_non_v32): Add M alternative for operand 1.
10000 (cmpsi, cmp<mode>): Make private.
10001 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
10002 with COMPARE.
10003 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
10004
10005 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
10006 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
10007 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
10008 (cc_reg_operand): New.
10009 (any_cond): Delete.
10010 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
10011 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
10012 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
10013 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
10014 crx_expand_scond): Delete.
10015
10016 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
10017 (cbranchsi4): New.
10018 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
10019 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
10020
10021 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
10022 cstoresi4, cstoresf4, cstoredf4): New.
10023 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
10024 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10025 Receive the entire operands array.
10026 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
10027 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
10028 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10029 Get test/op0/op1 from the operands array.
10030 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
10031
10032 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
10033 (h8300_expand_store): New.
10034 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
10035 (const_int 0)).
10036 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
10037 (h8300_expand_store): New.
10038 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
10039 or do not try to produce (set (cc0) REG).
10040 (peepholes): Wrap arguments with COMPARE. Add a peephole to
10041 change a compare into a move to a scratch register. Disable some
10042 peepholes when comparing with zero.
10043 (tstsi, tsthi, tstsi, cmpqi): Make private.
10044 (cmphi): Delete.
10045 (bCC, sCC): Delete.
10046 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
10047 cstoresi4): New.
10048
10049 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
10050 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
10051 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
10052 (ix86_emit_i387_log1p): Use cbranchxf2.
10053 (ix86_expand_setcc): Return void.
10054 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
10055 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
10056 cmp<MODEF>, cmpcc): Remove.
10057 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
10058 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
10059 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
10060 (sCC and bCC expanders): Remove.
10061 (stack_protect_test): Use cbranchcc4.
10062
10063 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
10064 Delete.
10065 (ia64_expand_compare): Accept three rtx by reference and return void.
10066 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
10067 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
10068 from *expr. Update *expr with the BImode comparison to do.
10069 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
10070 cmptf, bCC, sCC, conditional_trap): Delete.
10071 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
10072 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
10073 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
10074 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
10075 * config/ia64/predicates.md (ia64_cbranch_operator): New.
10076
10077 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
10078 type of last argument.
10079 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
10080 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
10081 use machine mode argument instead of branch_type. Remove dead
10082 code for floating-point comparisons.
10083 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
10084 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
10085 Remove.
10086 (cbranchsi4, cstoresi4): New.
10087 * config/iq2000/predicates.md (reg_or_const_operand): New.
10088
10089 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
10090 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
10091 (b<code>_op): Rewrite to...
10092 (bcc_op): ... this, using match_operator.
10093 (s<code>_op): Rewrite to...
10094 (scc_op): ... this, using match_operator.
10095 (s<code>_24_op): Rewrite to...
10096 (scc_op_24): ... this, using match_operator.
10097 (s<code>_<mode>): Rewrite to...
10098 (cstore<mode>4): ... this, using match_operator.
10099 (s<code>_<mode>_24): Rewrite to...
10100 (cstore<mode>4_24): ... this, using match_operator.
10101 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
10102 m32c_unpend_compare, m32c_expand_scc): Delete.
10103 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
10104 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
10105 (m32c_expand_movcc): Change NE to EQ if necessary.
10106 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
10107
10108 * config/m32r/m32r-protos.h (gen_cond_store): New.
10109 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
10110 (gen_cond_store): New, from sCC patterns.
10111 (m32r_expand_block_move): Use cbranchsi4.
10112 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
10113 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
10114 (cbranchsi4, cstoresi4): New.
10115
10116 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
10117 Delete.
10118 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
10119 (m68hc11_notice_update_cc): Look into a compare with 0.
10120 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
10121 Delete.
10122 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
10123 cmphi, cmpqi, bCC): Delete.
10124 (cbranchsi4, cbranchhi4, cbranchqi4): New.
10125 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
10126 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
10127 sets with COMPARE.
10128
10129 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
10130 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
10131 * config/m68k/constraints.md (H): New.
10132 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
10133 the define_insn below.
10134 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
10135 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
10136 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
10137 patterns): Wrap RHS with COMPARE.
10138 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
10139 (*cmpdi_internal): Name this pattern.
10140 (cmpdi): Change to define_insn.
10141 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
10142 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
10143 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
10144 predicate.
10145 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
10146 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
10147 (conditional_trap): Change to...
10148 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
10149 (*conditional_trap): Use the ordered_comparison_operator and
10150 const1_operand predicates.
10151 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
10152 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
10153 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
10154 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
10155
10156 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
10157 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
10158 (mcore_gen_compare): New.
10159 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
10160 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
10161 (mcore_gen_compare): ... this.
10162 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
10163 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
10164 (stack probe pattern): Use cbranchsi4.
10165
10166 * config/mips/predicates.md (mips_cstore_operator): New.
10167 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
10168 * config/mips/mips.md (any_cond): Delete.
10169 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
10170 always succeed.
10171 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
10172 fixuns_truncsfdi2): Use cbranch patterns.
10173 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
10174 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
10175 Adjust call to mips_expand_conditional_branch.
10176 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
10177 cstore<GPR:mode>4.
10178 * config/mips/mips-protos.h (mips_expand_conditional_branch,
10179 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
10180 * config/mips/mips.c (cmp_operands): Delete.
10181 (mips_emit_compare): Get comparison operands from *op0/*op1.
10182 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
10183 that it succeeds. Use op0/op1 instead of cmp_operands.
10184 (mips_expand_conditional_branch, mips_expand_conditional_move,
10185 mips_expand_conditional_trap): Likewise.
10186 (mips_block_move_loop): Use cbranch patterns.
10187 * config/mips/mips.h (cmp_operands): Delete.
10188
10189 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
10190 (mmix_gen_compare_reg): Just return a register in the right CC mode.
10191 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
10192 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
10193 (*cmpcc_folded): Rename to...
10194 (*cmpdi_folded): this.
10195 (*cmpcc): Rename to...
10196 (*cmps): ... this.
10197 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
10198 (bCC): Remove.
10199 (cbranchdi4): New.
10200 (cbranchdf4): New. Handle invalid comparisons here.
10201 * config/mmix/predicates.md (float_comparison_operator): New.
10202
10203 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
10204 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
10205 * config/mn10300/mn10300.md (tst): Delete.
10206 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
10207 Name these patterns and wrap RHS in a compare.
10208 (*cmpsi): Make this pattern private. Include tst.
10209 (*cmpsf): Make this pattern private.
10210 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
10211 (compare with zero peepholes): Likewise.
10212 (bCC): Remove.
10213 (cbranchsi4, cbranchsf4): New.
10214 (casesi): Use cbranchsi4.
10215
10216 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
10217 hppa_branch_type): Delete.
10218 (return_addr_rtx): Use cbranchsi4.
10219 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
10220 Emit CCFPmode comparison here.
10221 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
10222 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
10223 hppa_branch_type): Delete.
10224 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
10225 (movsicc, movdicc): Remove references to hppa_compare_op0,
10226 hppa_compare_op1 and compare_from_rtx.
10227 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
10228 (casesi): Use cbranchsi4.
10229
10230 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
10231 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
10232 * config/pdp11/pdp11.md (register_or_const0_operand): New.
10233 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
10234 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
10235 (bCC): Delete.
10236 (cbranchdf4, cbranchhi4, cbranchqi4): New.
10237 (*branch, *branch_inverted): New.
10238
10239 * config/picochip/picochip.md (cbranchhi4): Use
10240 ordered_comparison_operator.
10241 (cmphi, bCC): Remove.
10242
10243 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
10244 (trap_comparison_operator): Delete.
10245 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
10246 rs6000_emit_cbranch): Accept mode and operands.
10247 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
10248 rs6000_compare_fp_p): Delete.
10249 (rs6000_generate_compare): Accept mode and comparison. Extract code
10250 and op0/op1 from there. Replace references to rs6000_compare_op0
10251 and rs6000_compare_op1.
10252 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
10253 extract result from passed operands.
10254 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
10255 extract loc from passed operands.
10256 (rs6000_emit_cmove): Likewise.
10257 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
10258 rs6000_compare_fp_p): Delete.
10259 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
10260 (cbranch<GPR>4, cbranch<FP>4): New.
10261 (cstore<mode>4): New. Consolidate here all choices about when to use
10262 portable or specialized sCC sequences.
10263 (stack_protect_test): Use cbranchsi4.
10264 (conditional_trap): Replace with ctrap<GPR>4.
10265 (conditional trap insn): Replace trap_comparison_operator with
10266 ordered_comparison_operator.
10267
10268 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
10269 (s390_emit_prologue): Use ctrap.
10270 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
10271 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
10272 New predicates replacing...
10273 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
10274 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
10275 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
10276 (add<mode>cc): Do not use s390_compare_op0/op1.
10277 (s<code>): Change to...
10278 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
10279 (seq): Change to...
10280 (cstorecc4): ... this. Handle EQ or NE equally.
10281 (*sne): Un-privatize for use in cstorecc4.
10282 (b<code>): Change to...
10283 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
10284 (conditional_trap): Replace with...
10285 (ctrap<GPR>4, ctrap<FP>4): ... these.
10286 (stack_protect): Use cbranchcc4.
10287
10288 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
10289 * config/score/score-protos.h (score_gen_cmp): Delete.
10290 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
10291 (score_block_move-loop): Use cbranchsi4.
10292 * config/score/score.md (cbranchsi4): New.
10293 (cmpsi, bCC): Delete.
10294 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
10295 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10296 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
10297 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10298 * config/score/score3.h (score3_gen_cmp): Delete.
10299 * config/score/score7.h (score7_gen_cmp): Delete.
10300
10301 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
10302 (sh_emit_scc_to_t): ... this. Return void.
10303 (from_compare): Rename to...
10304 (sh_emit_compare_and_branch): ... this.
10305 (sh_emit_compare_and_set): New.
10306 (sh_expand_t_scc): Accept operands.
10307 * config/sh/predicates.md (sh_float_comparison_operator): New.
10308 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
10309 (prepare_scc_operands): Rename to...
10310 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
10311 arguments.
10312 (sh_emit_cheap_store_flag): New.
10313 (sh_emit_set_t_insn): New.
10314 (from_compare): Rename to...
10315 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
10316 handling of TARGET_SH2E floating point to avoid recursive call.
10317 Generate branch here.
10318 (sh_emit_compare_and_set): New.
10319 (sh_expand_t_scc): Get op0/op1 from arguments.
10320 (sh_emit_cheap_store_flag): New.
10321 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
10322 cases.
10323 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
10324 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
10325 (movsicc, movdicc): Do nothing when it recreated operands from
10326 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
10327 prepare_scc_operands (now sh_emit_scc_to_t).
10328 (udivdi3): Use cstoresi4.
10329 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
10330 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
10331 (cbranchint4_media, cbranchfp4_media): New.
10332 (casesi): Use cbranchdi4.
10333 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
10334 Delete.
10335 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
10336 (movnegt): Remove second operand.
10337 (cbranchsf4, cbranchdf4): New.
10338 (stack_protect): Use cbranchdi4/cbranchsi4.
10339
10340 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
10341 (gen_compare_reg): Accept comparison, extract part of it to...
10342 (gen_compare_reg_1): ... this.
10343 (gen_compare_operator): Delete.
10344 (gen_v9_scc): Accept separate destination, comparison code and arms.
10345 Do not use sparc_compare_op0/sparc_compare_op1.
10346 (emit_scc_insn, emit_conditional_branch_insn): New.
10347 (emit_v9_brxx): Make static. Remove useless assertion.
10348 (sparc_emit_float_lib_cmp): Return RTL instead of calling
10349 emit_cmp_insn.
10350 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
10351 * config/sparc/sparc-protos.h (gen_compare_reg,
10352 sparc_emit_float_lib_cmp): Adjust prototype.
10353 (emit_scc_insn, emit_conditional_branch_insn): New.
10354 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
10355 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
10356 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
10357 iterators to the top.
10358 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
10359 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
10360 snedi_special_trunc): Delete.
10361 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
10362 and snedi_special_trunc.
10363 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
10364 cbranchdi4, cbranch<F:mode>4): New.
10365 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
10366 here. Use gen_compare_reg instead of gen_compare_operator.
10367 (conditional_trap): Replace with...
10368 (ctrapsi4, ctrapdi4): ... this.
10369 (stack_protect_test): Use cbranchcc4.
10370
10371 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
10372 argument to rtx.
10373 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
10374 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
10375 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
10376 from operands[0] or operands[3] depending on is_set.
10377 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
10378 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
10379 cmpdf, bCC), sCC: Remove.
10380 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
10381 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
10382 cstoredf4): New.
10383 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
10384 spu_emit_branch_or_set.
10385
10386 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
10387 Add two arguments.
10388 * config/stormy16/stormy16.h (xstormy16_compare_op0,
10389 xstormy16_compare_op1): Delete.
10390 * config/stormy16/stormy16.c (xstormy16_compare_op0,
10391 xstormy16_compare_op1): Delete.
10392 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
10393 Adjust calls.
10394 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
10395 (cmphi, cmpsi, bCC): Remove.
10396
10397 * config/v850/v850.md (tstsi, cmpsi): Fold into...
10398 (*cmpsi): ... this one.
10399 (cbranchsi4, cstoresi4): New.
10400 (bCC expanders): Delete.
10401 (sCC insns): Fold into...
10402 (*setcc): ... this one.
10403 (casesi): Do not use gen_cmpsi and gen_bgtu.
10404 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
10405 (movsicc): Simplify.
10406 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
10407
10408 * config/vax/vax-protos.h (cond_name): New.
10409 (vax_output_conditional_branch): Remove.
10410 * config/vax/vax.c (cond_name): New.
10411 (vax_output_conditional_branch): Remove.
10412 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
10413 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
10414 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
10415 (bit<VAXint>): Wrap source with (compare).
10416 (b<code> and following unnamed pattern): Rename to *branch and
10417 *branch_reversed. Change macroization to match_operator.
10418 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
10419
10420 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
10421 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
10422 Change last argument to machine_mode.
10423 (xtensa_expand_scc): Add machine_mode argument.
10424 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
10425 (gen_conditional_move, xtensa_expand_conditional_branch,
10426 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
10427 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
10428 Adjust operand numbers.
10429 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
10430 Delete.
10431 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
10432 (cmpsi, cmpsf, b<code>, s<code>): Delete.
10433 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
10434
10435 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10436
10437 * optabs.c (prepare_cmp_insn): Temporarily disable test that
10438 causes spurious differences between trunk and cond-optab branch.
10439
10440 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
10441
10442 PR target/37137
10443 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
10444
10445 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
10446
10447 * tree.c (iterative_hash_pointer): Delete.
10448 (iterative_hash_expr): Short-circuit handling of NULL pointer.
10449 Hash UIDs and versions of SSA names. Don't special-case built-in
10450 function declarations.
10451
10452 2009-05-11 Ian Lance Taylor <iant@google.com>
10453
10454 PR bootstrap/40103
10455 * graphite.c: Force -Wc++-compat to only be a warning before
10456 #including "cloog/cloog.h".
10457
10458 2009-05-11 Martin Jambor <mjambor@suse.cz>
10459
10460 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
10461
10462 2009-05-11 Jan Hubicka <jh@suse.cz>
10463
10464 * tree-ssa-loop-ivcanon.c: Include target.h
10465 (struct loop_size): new structure.
10466 (constant_after_peeling): New predicate.
10467 (tree_estimate_loop_size): New function.
10468 (estimated_unrolled_size): Rewrite for new estimates.
10469 (try_unroll_loop_completely): Use new estimates.
10470 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
10471
10472 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
10473
10474 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
10475 libcpp interface change.
10476 (spu_macro_to_expand): Likewise.
10477
10478 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
10479
10480 PR tree-optimization/40026
10481 * gimplify.c (gimplify_init_constructor): Change initial conditional
10482 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
10483 optimize_compound_literals_in_ctor.
10484
10485 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
10486
10487 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
10488 New devices.
10489 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
10490
10491 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
10492
10493 * tree-vect-data-refs.c (vect_analyze_group_access): Use
10494 HOST_WIDE_INT for gap.
10495
10496 2009-05-11 Ira Rosen <irar@il.ibm.com>
10497
10498 PR tree-optimization/40074
10499 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
10500 account in group size and step comparison.
10501
10502 2009-05-11 Richard Guenther <rguenther@suse.de>
10503
10504 * passes.c (init_optimization_passes): Strip now incorrect comment.
10505 (execute_function_todo): Do not set PROP_alias.
10506 * tree-pass.h (PROP_alias): Remove.
10507 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
10508 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
10509 * tree-nrv.c (pass_return_slot): Likewise.
10510 * tree-object-size.c (pass_object_sizes): Likewise.
10511 * tree-ssa-dom.c (pass_dominator): Likewise.
10512 (pass_phi_only_cprop): Likewise.
10513 * tree-ssa-dse.c (pass_dse): Likewise.
10514 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
10515 (pass_cselim): Likewise.
10516 * tree-ssa-pre.c (pass_pre): Likewise.
10517 (pass_fre): Likewise.
10518 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10519 * tree-ssa-sink.c (pass_sink_code): Likewise.
10520 * tree-stdarg.c (pass_stdarg): Likewise.
10521 * tree-tailcall.c (pass_tail_calls): Likewise.
10522 * tree-vrp.c (pass_vrp): Likewise.
10523
10524 2009-05-10 Ian Lance Taylor <iant@google.com>
10525
10526 * basic-block.h (enum profile_status): Break out of struct
10527 control_flow_graph.
10528 * cgraph.h (struct inline_summary): Break out of struct
10529 cgraph_local_info.
10530 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
10531 of struct cgraph_order_sort.
10532 * combine.c (enum undo_kind): New enum, broken out of struct undo.
10533 * cse.c (struct branch_path): Break out of struct
10534 cse_basic_block_data.
10535 * except.h (enum eh_region_type): Break out of struct eh_region.
10536 * gcc.c (enum add_del): Break out of struct modify_target.
10537 * genrecog.c (enum decision_type): Break out of struct decision_test.
10538 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
10539 ggc_pch_data.
10540 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
10541 * regmove.c (enum match_use): New enum, broken out of struct match.
10542 * sched-int.h (enum post_call_group): New enum, broken out of
10543 struct deps.
10544 (struct deps_reg): Break out of struct deps.
10545 * target.h (struct asm_int_op): Break out of struct gcc_target.
10546 * tree-eh.c (struct goto_queue_node): Break out of struct
10547 leh_tf_state.
10548 * tree-inline.h (enum copy_body_cge_which): Break out of
10549 copy_body_data.
10550 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
10551
10552 * c-decl.c (in_struct, struct_types): New static variables.
10553 (pushtag): Add loc parameter. Change all callers.
10554 (lookup_tag): Add ploc parameter. Change all callers.
10555 (check_compound_literal_type): New function.
10556 (parser_xref_tag): Add loc parameter. Change all callers. If
10557 -Wc++-compat, warn about struct/union/enum types defined within a
10558 struct or union.
10559 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
10560 and loc parameters. Change all callers. Change error calls to
10561 error_at, using loc. For a redefinition, if the location of the
10562 original definition is known, report it. Set in_struct and
10563 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
10564 (finish_struct): Add new parameters enclosing_in_struct and
10565 enclosing_struct_types. Change all callers. Set
10566 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
10567 in the struct. If in a struct, add this struct to struct_types.
10568 (start_enum): Add loc parameter. Change all callers. Use
10569 error_at for errors, using loc. For a redefinition, if the
10570 location of the original definition is known, report it. If in a
10571 struct, add this enum type to struct_types. If -Wc++-compat warn
10572 if in sizeof, typeof, or alignof.
10573 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
10574 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
10575 (c_parser_enum_specifier): Get enum location for start_enum.
10576 (c_parser_struct_or_union_specifier): Get struct location for
10577 start_struct. Save in_struct and struct_types status between
10578 start_struct and finish_struct.
10579 (c_parser_cast_expression): Get location of cast.
10580 (c_parser_alignof_expression): Get location of type.
10581 (c_parser_postfix_expression): Likewise.
10582 (c_parser_postfix_expression_after_paren_type): Add type_loc
10583 parameter. Change all callers. Call check_compound_literal_type.
10584 Use type_loc for error about variable size type.
10585 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
10586 of an enum constant from an enum type defined in a struct or union.
10587 (c_cast_expr): Add loc parameter. Change all callers. If
10588 -Wc++-compat, warn about defining a type in a cast.
10589 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
10590 (start_enum, start_struct, finish_struct): Update declarations.
10591 (parser_xref_tag, c_cast_expr): Update declarations.
10592 (check_compound_literal_type): Declare.
10593
10594 2009-05-11 Ben Elliston <bje@au.ibm.com>
10595
10596 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
10597 for recent libcpp interface change.
10598 (rs6000_macro_to_expand): Likewise.
10599
10600 2009-05-10 Michael Matz <matz@suse.de>
10601
10602 PR target/40031
10603 * config/arm/arm.c (require_pic_register): Emit on entry edge,
10604 not at entry of function.
10605
10606 2009-05-10 Richard Guenther <rguenther@suse.de>
10607
10608 PR tree-optimization/40081
10609 Revert
10610 * tree-sra.c (instantiate_element): Instantiate scalar replacements
10611 using the main variant of the element type. Do not fiddle with
10612 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
10613
10614 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
10615 structs with volatile fields.
10616
10617 2009-05-10 Jan Hubicka <jh@suse.cz>
10618
10619 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
10620 (estimate_move_cost): Assert that it does not get called for
10621 VOID_TYPE_P.
10622 (estimate_num_insns): Skip VOID types in argument handling.
10623 (optimize_inline_calls): Delete unreachable blocks and verify that
10624 callgraph is valid.
10625
10626 2009-05-10 Jan Hubicka <jh@suse.cz>
10627
10628 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
10629 * cgraph.c (cgraph_mark_address_taken_node): New function.
10630 (dump_cgraph_node): Dump new flag.
10631 * cgraph.h (struct cgraph_node): Add address_taken.
10632 (cgraph_mark_address_taken_node): New function.
10633 * ipa.c (cgraph_postorder): Prioritize functions with address taken
10634 since new direct calls can be born.
10635
10636 2009-05-10 Joseph Myers <joseph@codesourcery.com>
10637
10638 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
10639 tok->val.node.node.
10640
10641 2009-05-10 Jan Hubicka <jh@suse.cz>
10642
10643 PR middle-end/40084
10644 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
10645 argument; rewrite.
10646 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
10647 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
10648 * tree-inline.c (copy_bb): Set frequency correctly.
10649 (fold_marked_statements): Update call to
10650 cgraph_update_edges_for_call_stmt.
10651
10652 2009-05-10 Joseph Myers <joseph@codesourcery.com>
10653
10654 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
10655 identifiers in diagnostics.
10656 * config/arm/arm.c (arm_handle_fndecl_attribute,
10657 arm_handle_isr_attribute): Likewise.
10658 * config/avr/avr.c (avr_handle_progmem_attribute,
10659 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
10660 * config/bfin/bfin.c (handle_int_attribute,
10661 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
10662 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
10663 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
10664 Likewise.
10665 * config/darwin.c (darwin_handle_kext_attribute,
10666 darwin_handle_weak_import_attribute): Likewise.
10667 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
10668 h8300_handle_eightbit_data_attribute,
10669 h8300_handle_tiny_data_attribute): Likewise.
10670 * config/i386/i386.c (ix86_handle_cconv_attribute,
10671 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
10672 * config/i386/winnt.c (ix86_handle_shared_attribute,
10673 ix86_handle_selectany_attribute): Likewise.
10674 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
10675 * config/m32c/m32c.c (function_vector_handler): Likewise.
10676 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
10677 m68hc11_handle_fntype_attribute): Likewise.
10678 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
10679 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
10680 * config/mips/mips.c (mips_insert_attributes,
10681 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
10682 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
10683 rs6000_handle_struct_attribute): Likewise.
10684 * config/sh/sh.c (sh_insert_attributes,
10685 sh_handle_resbank_handler_attribute,
10686 sh_handle_interrupt_handler_attribute,
10687 sh2a_handle_function_vector_handler_attribute,
10688 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
10689 Likewise.
10690 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
10691 * config/spu/spu.c (spu_handle_fndecl_attribute,
10692 spu_handle_vector_attribute): Likewise.
10693 * config/stormy16/stormy16.c
10694 (xstormy16_handle_interrupt_attribute): Likewise.
10695 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
10696 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
10697
10698 2009-05-10 Joseph Myers <joseph@codesourcery.com>
10699
10700 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
10701 (pp_translate_identifiers): New.
10702 (pp_identifier): Only conditionally translate identifier to locale
10703 character set.
10704 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
10705 (pp_base_tree_identifier): Only conditionally translate identifier
10706 to locale character set.
10707 * c-pretty-print.c (M_): Define.
10708 (pp_c_type_specifier, pp_c_primary_expression): Mark English
10709 fragments for conditional translation with M_.
10710 * tree-pretty-print.c (maybe_init_pretty_print): Disable
10711 identifier translation.
10712
10713 2009-05-10 Richard Guenther <rguenther@suse.de>
10714
10715 PR tree-optimization/40081
10716 * tree-sra.c (instantiate_element): Instantiate scalar replacements
10717 using the main variant of the element type. Do not fiddle with
10718 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
10719
10720 2009-05-09 Jan Hubicka <jh@suse.cz>
10721
10722 PR middle-end/40080
10723 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
10724 indirect calls; verify cgraph afterwards.
10725
10726 2009-05-09 Jan Hubicka <jh@suse.cz>
10727
10728 PR bootstrap/40082
10729 * ipa.c (update_inlined_to_pointer): New function.
10730 (cgraph_remove_unreachable_nodes): Use it.
10731
10732 2009-05-09 Jan Hubicka <jh@suse.cz>
10733
10734 * tree-eh.c (struct leh_state): Remove prev_try.
10735 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
10736 not track prev_try.
10737 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
10738 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
10739 remove_eh_handler_and_replace, foreach_reachable_handler,
10740 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
10741 * except.h (struct eh_region): Remove eh_region_u_cleanup.
10742 (gen_eh_region_cleanup): Update prototype.
10743
10744 2009-05-09 Jan Hubicka <jh@suse.cz>
10745
10746 PR middle-end/40043
10747 * except.c (copy_eh_region): Always set prev_try.
10748 (redirect_eh_edge_to_label): Find outer try.
10749 (foreach_reachable_handler): When looking for prev try
10750 handle case where previous try is not going to be taken.
10751
10752 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10753
10754 PR tree-optimization/40049
10755 * tree-vect-stmts.c (vectorizable_operation): If the machine has
10756 only vector/vector shifts, convert the type of the constant to the
10757 appropriate type to avoid building incorrect trees, which
10758 eventually have problems with garbage collection.
10759
10760 2009-05-08 Joseph Myers <joseph@codesourcery.com>
10761
10762 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
10763 -1 for complex floating-point types if honoring signed zeros.
10764
10765 2009-05-08 Jan Hubicka <jh@suse.cz>
10766
10767 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
10768 argument; handle correctly when profile is absent.
10769 (build_cgraph_edges): Update.
10770 (rebuild_cgraph_edges): Update.
10771 * cgraph.c: Do not include varray.h.
10772 (cgraph_set_call_stmt_including_clones): New function.
10773 (cgraph_create_edge_including_clones): Likewise
10774 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
10775 (cgraph_update_edges_for_call_stmt): Handle clones.
10776 (cgraph_remove_node): Handle clone tree.
10777 (cgraph_remove_node_and_inline_clones): New function.
10778 (dump_cgraph_node): Dump clone tree.
10779 (cgraph_clone_node): Handle clone tree.
10780 (clone_function_name): Bring here from tree-inline.c.
10781 (cgraph_create_virtual_clone): New function.
10782 * cgraph.h (ipa_replace_map): Move here from ipa.h.
10783 (cgraph_clone_info): New function.
10784 (strut cgraph_node): Add clone_info and new clone tree pointers.
10785 (cgraph_remove_node_and_inline_clones,
10786 cgraph_set_call_stmt_including_clones,
10787 cgraph_create_edge_including_clones,
10788 cgraph_create_virtual_clone): Declare.
10789 (cgraph_function_versioning): Use VEC argument.
10790 (compute_call_stmt_bb_frequency): Update prototype.
10791 (cgraph_materialize_all_clones): New function.
10792 * ipa-cp.c (ipcp_update_cloned_node): Remove.
10793 (ipcp_create_replace_map): Update to VECtors.
10794 (ipcp_update_callgraph): Use virtual clones.
10795 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
10796 (ipcp_update_profiling): Do not update local profiling.
10797 (ipcp_insert_stage): Use VECtors and virtual clones.
10798 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
10799 (clone_of_p): New function.
10800 (cgraph_preserve_function_body_p): Use clone tree.
10801 (cgraph_optimize): Materialize clones.
10802 (cgraph_function_versioning): Update for VECtors.
10803 (save_inline_function_body): Use clone tree.
10804 (cgraph_materialize_clone): New function.
10805 (cgraph_materialize_all_clones): Likewise.
10806 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
10807 * ipa.c: Include gimple.h.
10808 (cgraph_remove_unreachable_nodes): Use clone tree.
10809 * ipa-prop.c (ipa_note_param_call): Update call to
10810 compute_call_stmt_bb_frequencycall.
10811 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
10812 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
10813 (copy_bb): Handle updating of clone tree; add new edge when new call
10814 appears.
10815 (expand_call_inline): Be strict about every call having edge.
10816 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
10817 (delete_unreachable_blocks_update_callgraph): New function.
10818 (tree_function_versioning): Use VECtors; always remove unreachable
10819 blocks and fold conditionals.
10820 * tree-inline.h: Do not include varray.h.
10821 (tree_function_versioning): Remove.
10822 * Makefile.in (GTFILES): Remove tree-inline.c
10823 * passes.c (do_per_function): Do only functions having body.
10824 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
10825 tree.
10826
10827 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
10828 Andrew Morrow <acm@google.com>
10829
10830 PR c/36892
10831 * c-common.c (c_common_attribute_table): Permit deprecated
10832 attribute to take an optional argument.
10833 (handle_deprecated_attribute): If the optional argument to
10834 __attribute__((deprecated)) is not a string ignore the attribute
10835 and emit a warning.
10836
10837 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
10838 * c-typeck.c (build_component_ref): Likewise.
10839 (build_external_ref): Likewise.
10840
10841 * toplev.c (warn_deprecated_use): Add an attribute argument.
10842 Emit the message associated with __attribute__((deprecated)).
10843
10844 * toplev.h (warn_deprecated_use): Updated.
10845
10846 * doc/extend.texi: Document new optional parameter to
10847 __attribute__((deprecated))
10848
10849 2009-05-08 Michael Eager <eager@eagercon.com>
10850
10851 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
10852 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
10853
10854 2009-05-08 Richard Guenther <rguenther@suse.de>
10855
10856 PR tree-optimization/40062
10857 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
10858 Avoid exponential behavior.
10859
10860 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
10861
10862 PR rtl-optimization/33928
10863 PR 26854
10864 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
10865 process_uses, build_single_def_use_links): New.
10866 (update_df): Update use_def_ref.
10867 (forward_propagate_into): Use get_def_for_use instead of use-def
10868 chains.
10869 (fwprop_init): Call build_single_def_use_links and let it initialize
10870 dataflow.
10871 (fwprop_done): Free use_def_ref.
10872 (fwprop_addr): Eliminate duplicate call to df_set_flags.
10873 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
10874 df_rd_simulate_one_insn): New.
10875 (df_rd_bb_local_compute_process_def): Update head comment.
10876 (df_chain_create_bb): Use the new RD simulation functions.
10877 * df.h (df_rd_simulate_artificial_defs_at_top,
10878 df_rd_simulate_one_insn): New.
10879 * opts.c (decode_options): Enable fwprop at -O1.
10880 * doc/invoke.texi (-fforward-propagate): Document this.
10881
10882 2009-05-08 Joseph Myers <joseph@codesourcery.com>
10883
10884 PR c/24581
10885 * c-typeck.c (build_binary_op): Handle arithmetic between one real
10886 and one complex operand specially.
10887 * tree-complex.c (some_nonzerop): Do not identify a real value as
10888 zero if flag_signed_zeros.
10889
10890 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
10891
10892 PR rtl-optimization/33928
10893 * loop-invariant.c (record_use): Fix && vs. || mishap.
10894
10895 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
10896
10897 PR rtl-optimization/33928
10898 * loop-invariant.c (struct use): Add addr_use_p.
10899 (struct def): Add n_addr_uses.
10900 (struct invariant): Add cheap_address.
10901 (create_new_invariant): Set cheap_address.
10902 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
10903 (record_uses): Pass df_ref to record_use.
10904 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
10905 used only as such.
10906
10907 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
10908
10909 * config/sh/sh.c: Do not include c-pragma.h.
10910
10911 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
10912
10913 * config/spu/spu.c: Remove include of c-common.h.
10914
10915 2009-05-07 Janis Johnson <janis187@us.ibm.com>
10916
10917 PR c/39037
10918 * c-common.h (mark_valid_location_for_stdc_pragma,
10919 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
10920 clear_float_const_decimal64, float_const_decimal64_p): New.
10921 * c.opt (Wunsuffixed-float-constants): New.
10922 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
10923 unsuffixed float constant, handle new warning.
10924 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
10925 * c-decl.c (c_scope): New flag float_const_decimal64.
10926 (set_float_const_decimal64, clear_float_const_decimal64,
10927 float_const_decimal64_p): New.
10928 (push_scope): Set new flag.
10929 * c-parser.c (c_parser_translation_unit): Mark when it's valid
10930 to use STDC pragmas.
10931 (c_parser_external_declaration): Ditto.
10932 (c_parser_compound_statement_nostart): Ditto.
10933 * c-pragma.c (valid_location_for_stdc_pragma,
10934 mark_valid_location_for_stdc_pragma,
10935 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
10936 handle_pragma_float_const_decimal64): New.
10937 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
10938 * cp/semantics.c (valid_location_for_stdc_pragma_p,
10939 set_float_const_decimal64, clear_float_const_decimal64,
10940 float_const_decimal64_p): New dummy functions.
10941 * doc/extend.texi (Decimal Float): Remove statement that the
10942 pragma, and suffix for double constants, are not supported.
10943 * doc/invoke.texi (Warning Options): List new option.
10944 (-Wunsuffixed-float-constants): New.
10945
10946 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
10947
10948 * config/i386/i386.c: Do not include c-common.h.
10949
10950 2009-05-07 Mark Heffernan <meheff@google.com>
10951
10952 * doc/invoke.texi (Debugging Options): Document change of debugging
10953 dump location.
10954 * opts.c (decode_options): Make dump_base_name relative to
10955 aux_base_name directory.
10956
10957 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
10958
10959 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
10960 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
10961
10962 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
10963
10964 * Makefile.in (install-plugin): Simplify a bit.
10965
10966 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
10967
10968 * Makefile.in (OBJS-common): Add regcprop.o.
10969 (regcprop.o): New.
10970 * timevar.def (TV_CPROP_REGISTERS): New.
10971 * regrename.c (regrename_optimize): Return 0.
10972 (rest_of_handle_regrename): Delete.
10973 (pass_rename_registers): Point to regrename_optimize.
10974 (struct value_data_entry, struct value_data,
10975 kill_value_one_regno, kill_value_regno, kill_value,
10976 set_value_regno, init_value_data, kill_clobbered_value,
10977 kill_set_value, kill_autoinc_value, copy_value,
10978 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
10979 replace_oldest_value_reg, replace_oldest_value_addr,
10980 replace_oldest_value_mem, copyprop_hardreg_forward_1,
10981 debug_value_data, validate_value_data): Move...
10982 * regcprop.c: ... here.
10983 (rest_of_handle_cprop): Delete.
10984 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
10985
10986 2009-05-07 Jakub Jelinek <jakub@redhat.com>
10987
10988 PR middle-end/40057
10989 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
10990 GEN_INT for 1 << bitnum.
10991 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
10992 build_int_cst_type.
10993
10994 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
10995
10996 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
10997 Remove wrong description of "nand" operation.
10998
10999 2009-05-06 Richard Guenther <rguenther@suse.de>
11000 Adam Nemet <anemet@caviumnetworks.com>
11001
11002 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
11003 comment. Add that if LHS is not a gimple register, then RHS1 has
11004 to be a single object (GIMPLE_SINGLE_RHS).
11005
11006 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
11007
11008 * expr.c (get_def_for_expr): Move it up in the file.
11009 (store_field): When expanding a bit-field store, look at the
11010 defining gimple stmt for the masking conversion.
11011
11012 2009-05-06 Janis Johnson <janis187@us.ibm.com>
11013
11014 PR middle-end/39986
11015 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
11016 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
11017 32-bit memcpy into long.
11018
11019 2009-05-06 Jakub Jelinek <jakub@redhat.com>
11020
11021 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
11022 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
11023 new_reg_loc_descr.
11024 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
11025 instead of appending DW_OP_deref*.
11026
11027 2009-05-06 Michael Matz <matz@suse.de>
11028
11029 PR middle-end/40021
11030 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
11031 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
11032
11033 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
11034
11035 * Makefile.in (install-plugin): Fix srcdir handling.
11036
11037 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
11038
11039 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
11040 when processing for not_regs_needed bitmap.
11041 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
11042 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
11043 handling it for rhs.
11044
11045 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11046
11047 * config/i386/i386.md (unnamed inc/dec peephole): Use
11048 optimize_insn_for_size_p instead of optimize_size.
11049 * config/i386/predicates.md (incdec_operand): Likewise.
11050 (aligned_operand): Likewise.
11051 * config/i386/sse.md (divv8sf3): Likewise.
11052 (sqrtv8sf2): Likewise.
11053
11054 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11055
11056 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
11057
11058 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
11059
11060 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11061
11062 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
11063 ssemodesuffixf2c with avxmodesuffixf2c.
11064
11065 2009-05-06 Joseph Myers <joseph@codesourcery.com>
11066
11067 PR c/40032
11068 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
11069
11070 2009-05-05 Jakub Jelinek <jakub@redhat.com>
11071
11072 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
11073 (struct tree_base): Adjust spacing for 8 bit boundaries.
11074 (struct tree_decl_common): Add decl_by_reference_flag bit.
11075 (DECL_BY_REFERENCE): Adjust.
11076 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
11077 print DECL_BY_REFERENCE bit.
11078 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
11079 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
11080 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
11081 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
11082 unconditionally.
11083
11084 PR middle-end/39666
11085 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
11086 range of the type, but default label is missing, add it with one
11087 of the existing labels instead of adding a new label for it.
11088
11089 2009-05-05 Joseph Myers <joseph@codesourcery.com>
11090
11091 * dwarf.h: Remove.
11092
11093 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
11094
11095 * Makefile.in (enable_plugin, plugin_includedir): New.
11096 (install): Depend on install-plugin.
11097 (PLUGIN_HEADERS): New.
11098 (install-plugin): New.
11099 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
11100
11101 2009-05-05 Richard Guenther <rguenther@suse.de>
11102
11103 PR tree-optimization/40022
11104 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
11105 the only vuse.
11106 (phivn_valid_p): Fix tuplification error, simplify.
11107 (phiprop_insert_phi): Add dumps.
11108 (propagate_with_phi): Simplify.
11109
11110 2009-05-05 Richard Guenther <rguenther@suse.de>
11111
11112 PR middle-end/40023
11113 * builtins.c (gimplify_va_arg_expr): Properly build the address.
11114
11115 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
11116
11117 * tree.h (strip_float_extensions): Remove duplicate declaration.
11118 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
11119 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
11120 block_ultimate_origin): Rearrange the declarations line to match the
11121 comment that indicates the .c file which the functions are defined.
11122 (dwarf2out_*, set_decl_rtl): Add comment.
11123 (get_base_address): Adjust comment.
11124 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
11125 declarations line and add comment.
11126 (is_builtin_name): Add blank after function name, for clarity.
11127
11128 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11129
11130 * attribs.c (decl_attributes): Use %qE for identifiers in
11131 diagnostics.
11132 * cgraphunit.c (verify_cgraph_node): Translate function names to
11133 locale character set in diagnostics.
11134 * coverage.c (get_coverage_counts): Use %qE for identifiers in
11135 diagnostics.
11136 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
11137 Document that functions are named in UTF-8.
11138 * expr.c (expand_expr_real_1): Translate function names to locale
11139 character set in diagnostics.
11140 * gimplify.c (omp_notice_variable, omp_is_private,
11141 gimplify_scan_omp_clauses): Use %qE for identifiers in
11142 diagnostics.
11143 * langhooks.c (lhd_print_error_function): Translate function names
11144 to locale character set.
11145 * langhooks.h (decl_printable_name): Document that return value is
11146 in internal character set.
11147 * stmt.c: Include pretty-print.h
11148 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
11149 diagnostics.
11150 (resolve_operand_name_1): Translate named operand name to locale
11151 character set.
11152 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
11153 diagnostics.
11154 * toplev.c (announce_function): Translate function names to locale
11155 character set.
11156 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
11157 (default_tree_printer): Use pp_identifier or translate identifiers
11158 to locale character set. Mark "<anonymous>" for translation.
11159 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
11160 for identifiers in diagnostics.
11161 * tree.c (handle_dll_attribute): Use %qE for identifiers in
11162 diagnostics.
11163 * varasm.c (output_constructor): Use %qE for identifiers in
11164 diagnostics.
11165
11166 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
11167
11168 * configure.ac: use ` ` instead of $()
11169 * configure: Regenerate.
11170
11171 2009-05-05 Ben Elliston <bje@au.ibm.com>
11172
11173 * config/pa/linux-atomic.c: Eliminate conditional include of
11174 errno.h on non-LP64 systems to simplify build requirements.
11175
11176 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11177
11178 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
11179 diagnostics.
11180 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
11181 and pass value to identifier_to_locale.
11182 (warn_variable_length_array): Make name a tree.
11183 (grokdeclarator): Separate diagnostic texts for named and unnamed
11184 declarators. Use %qE for named declarators.
11185 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
11186 diagnostics.
11187 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
11188 identifiers in diagnostics.
11189 * c-typeck.c (push_member_name, start_init): Pass identifiers to
11190 identifier_to_locale. Mark "anonymous" strings for translation.
11191
11192 2009-05-04 Michael Eager <eager@eagercon.com>
11193
11194 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
11195 address for DImode/DFmode only if double-precision FP regs.
11196
11197 2009-05-04 Michael Eager <eager@eagercon.com>
11198
11199 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
11200 TARGET_SINGLE_FLOAT check.
11201
11202 2009-05-04 Michael Eager <eager@eagercon.com>
11203
11204 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
11205
11206 2009-05-04 Michael Eager <eager@eagercon.com>
11207
11208 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
11209 * config/rs6000/t-xilinx: New
11210
11211 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
11212
11213 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
11214 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
11215 * gcc/explow.c (memory_address): Use target hook.
11216 * gcc/targhooks.c (default_legitimize_address): New.
11217 * gcc/targhooks.h (default_legitimize_address): New.
11218 * gcc/target.h (legitimize_address): New.
11219 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
11220 (TARGET_INITIALIZER): Include it.
11221 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
11222
11223 * config/bfin/bfin-protos.h (legitimize_address): Remove.
11224 * config/bfin/bfin.c (legitimize_address): Remove.
11225 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
11226 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
11227 Remove.
11228 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
11229 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
11230
11231 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
11232 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
11233 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
11234 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
11235 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
11236 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
11237 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
11238 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
11239 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
11240 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
11241 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
11242 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
11243 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
11244 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
11245 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
11246 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
11247 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
11248 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
11249 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
11250 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
11251 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
11252 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
11253 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
11254
11255 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
11256 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
11257 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
11258 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
11259 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
11260 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
11261 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
11262 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
11263 (thumb_legitimize_address): Delete.
11264 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
11265 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
11266 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
11267 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
11268 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
11269 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
11270 Delete.
11271 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
11272 Delete.
11273
11274 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
11275 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
11276 * config/m32r/m32r.c (m32r_legitimize_address): New.
11277 * config/m68k/m68k.c (m68k_legitimize_address): New.
11278 * config/score/score.c (score_legitimize_address): Standardize.
11279 * config/score/score3.c (score3_legitimize_address): Standardize.
11280 * config/score/score3.h (score3_legitimize_address): Adjust.
11281 * config/score/score7.c (score7_legitimize_address): Standardize.
11282 * config/score/score7.h (score7_legitimize_address): Adjust.
11283 * config/sh/sh.c (sh_legitimize_address): New.
11284 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
11285
11286 * gcc/config/s390/s390.c (legitimize_address): Rename to...
11287 (s390_legitimize_address): ... this.
11288 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
11289 (sparc_legitimize_address): ... this.
11290 * gcc/config/i386/i386.c (legitimize_address): Rename to...
11291 (ix86_legitimize_address): ... this.
11292 * gcc/config/avr/avr.c (legitimize_address): Rename to...
11293 (avr_legitimize_address): ... this.
11294 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
11295 (mn10300_legitimize_address): ... this.
11296 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
11297 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
11298 (alpha_expand_mov): Adjust call.
11299
11300 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
11301 * config/spu/spu.c (spu_legitimize_address): Likewise.
11302 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
11303 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
11304
11305 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11306
11307 * intl.c (locale_encoding, locale_utf8): New.
11308 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
11309 * intl.h (locale_encoding, locale_utf8): Declare.
11310 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
11311 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
11312 New.
11313 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
11314 argument.
11315 (pp_tree_identifier): Define to call pp_base_tree_identifier.
11316 (pp_base_tree_identifier): Declare as function.
11317 (identifier_to_locale): Declare.
11318 * Makefile.in (pretty-print.o): Update dependencies.
11319 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
11320
11321 2009-05-04 Richard Guenther <rguenther@suse.de>
11322
11323 PR middle-end/40015
11324 * builtins.c (fold_builtin_memory_op): Do not decay to element
11325 type if the size matches the whole array.
11326
11327 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
11328
11329 * expmed.c (synth_mult): When trying out a shift, pass the result
11330 of a signed shift.
11331
11332 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
11333
11334 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
11335 (shiftsub1_cost): New.
11336 (init_expmed): Compute shiftsub1_cost.
11337 (synth_mult): Optimize multiplications by constants of the form
11338 -(2^^m-1) for some constant positive integer m.
11339
11340 2009-05-03 Richard Guenther <rguenther@suse.de>
11341
11342 PR c/39983
11343 * c-typeck.c (array_to_pointer_conversion): Do not built
11344 ADDR_EXPRs of arrays of pointer-to-element type.
11345 * c-gimplify.c (c_gimplify_expr): Revert change fixing
11346 up wrong ADDR_EXPRs after-the-fact.
11347 * c-common.c (strict_aliasing_warning): Strip pointer
11348 conversions for obtaining the original type.
11349 * builtins.c (fold_builtin_memset): Handle array types.
11350 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
11351 and array types
11352
11353 2009-05-03 Richard Guenther <rguenther@suse.de>
11354
11355 PR middle-end/23329
11356 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
11357 Do not lose casts from array types with unknown extent to array
11358 types with known extent.
11359 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
11360 alias set compatibility.
11361
11362 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11363
11364 * flags.h (extra_warnings): Delete.
11365 * toplev.c (process_options): Handle Wuninitialized here.
11366 * opts.c (extra_warnings): Delete.
11367 (set_Wextra): Delete.
11368 (common_handle_option): -Wextra can be handled automatically.
11369 * c-opts.c (c_common_handle_option): Delete obsolete code.
11370 (c_common_post_options): Simplify comment.
11371 * common.opt (W): Add Var.
11372 (Wextra): Add Var.
11373 (Wuninitialized): Initialize to -1.
11374
11375 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
11376 Richard Guenther <rguenther@suse.de>
11377
11378 * expr.c (get_def_for_expr): New function.
11379 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
11380 SSA rather than trees.
11381 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
11382 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
11383
11384 2009-05-03 Joseph Myers <joseph@codesourcery.com>
11385
11386 * c-common.c (reswords): Add _Imaginary.
11387 * c-common.c (enum rid): Add RID_IMAGINARY.
11388
11389 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
11390
11391 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
11392 Patch by Richard Guenther.
11393
11394 2009-05-03 Anatoly Sokolov <aesok@post.ru>
11395
11396 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
11397 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11398 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
11399 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
11400 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
11401 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
11402 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
11403 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
11404 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
11405 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
11406 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
11407 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
11408 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
11409 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
11410 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
11411 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
11412 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
11413 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
11414
11415 2009-05-02 Richard Guenther <rguenther@suse.de>
11416
11417 PR tree-optimization/39940
11418 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
11419 doing so.
11420
11421 2009-05-02 Richard Guenther <rguenther@suse.de>
11422
11423 PR middle-end/40001
11424 * tree-ssa.c (execute_update_addresses_taken): Properly check
11425 if we can mark a variable DECL_GIMPLE_REG_P.
11426 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
11427 back to the end of the function.
11428 (is_gimple_reg_type): Remove complex type special casing.
11429 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
11430 if not optimizing.
11431
11432 2009-05-02 Ben Elliston <bje@au.ibm.com>
11433
11434 * doc/collect2.texi (Collect2): Document search path behaviour
11435 when configured with --with-ld.
11436
11437 2009-05-02 Jan Hubicka <jh@suse.cz>
11438
11439 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
11440 parameter; update callers.
11441 (coalesce_cost_edge): EH edges are costier because they needs
11442 splitting even if not critical and even more costier when there are
11443 multiple EH predecestors.
11444
11445 2009-05-02 Jan Hubicka <jh@suse.cz>
11446
11447 * except.c (remove_eh_handler_and_replace): Handle updating after
11448 removing TRY blocks.
11449
11450 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
11451
11452 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
11453
11454 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
11455
11456 * varasm.c: Do not include c-pragma.h.
11457 * attribs.c: Do not incude c-common.h.
11458
11459 2009-05-01 Michael Matz <matz@suse.de>
11460
11461 * calls.c (initialize_argument_information): Handle SSA names like
11462 decls with a non MEM_P DECL_RTL.
11463
11464 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
11465
11466 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
11467 * ipa-utils.c: Likewise.
11468 * ipa-type-escape.c: Likewise.
11469 * cgraphunit.c Do not include c-common.h.
11470 * ipa-pure-const.c: Likewise.
11471 * tree-if-conv.c: Likewise.
11472 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
11473 * ipa-struct-reorg.c: Likewise.
11474 * tree-nomudflap.c: Likewise.
11475 * tree-ssa-structalias.c: Likewise.
11476
11477 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
11478
11479 * store-motion.c: Many cleanups to make this pass a first-class
11480 citizen instead of an appendix to gcse load motion. Add TODO list
11481 to make this pass faster/cleaner/better.
11482
11483 (struct ls_expr): Post gcse.c-split cleanups.
11484 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
11485 "stores" field to "avail_stores".
11486 (pre_ldst_mems): Rename to store_motion_mems.
11487 (pre_ldst_table): Rename to store_motion_mems_table.
11488 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
11489 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
11490 (ldst_entry): Rename to st_expr_entry, update users.
11491 (free_ldst_entry): Rename to free_st_expr_entry, update users.
11492 (free_ldst_mems): Rename to free_store_motion_mems, update users.
11493 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
11494 update caller.
11495 (first_ls_expr): Rename to first_st_expr, update users.
11496 (next_ls_expr): Rename to next_st_expr, update users.
11497 (print_ldst_list): Rename to print_store_motion_mems. Print names of
11498 fields properly for store motion instead of names inherited from load
11499 motion in gcse.c.
11500 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
11501 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
11502 are done with it.
11503
11504 (ae_kill): Rename to st_kill, update users.
11505 (ae_gen): Rename to st_avloc, update users.
11506 (transp): Rename to st_transp, update users.
11507 (pre_insert_map): Rename to st_insert_map, update users.
11508 (pre_delete_map): Rename to st_delete_map, update users.
11509 (insert_store, build_store_vectors, free_store_memory,
11510 one_store_motion_pass): Update for abovementioned changes.
11511
11512 (gcse_subst_count, gcse_create_count): Remove.
11513 (one_store_motion_pass): New statistics counters "n_stores_deleted"
11514 and "n_stores_created", local variables.
11515
11516 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
11517 use for_each_rtx.
11518
11519 (regvec, compute_store_table_current_insn): Remove.
11520 (reg_set_info, reg_clear_last_set): Remove.
11521 (compute_store_table): Use DF caches instead of local dataflow
11522 solvers.
11523
11524 2009-05-01 Joseph Myers <joseph@codesourcery.com>
11525
11526 * c-objc-common.c (c_tree_printer): Print identifiers with
11527 pp_identifier, not pp_string. Mark "({anonymous})" for
11528 translation.
11529 * c-pretty-print.c (pp_c_ws_string): New.
11530 (pp_c_cv_qualifier, pp_c_type_specifier,
11531 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
11532 pp_c_storage_class_specifier, pp_c_function_specifier,
11533 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
11534 pp_c_primary_expression, pp_c_postfix_expression,
11535 pp_c_unary_expression, pp_c_shift_expression,
11536 pp_c_relational_expression, pp_c_equality_expression,
11537 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
11538 use pp_string and pp_c_ws_string in place of pp_identifier and
11539 pp_c_identifier for non-identifiers. Mark English strings for
11540 translation.
11541 * c-pretty-print.h (pp_c_ws_string): Declare.
11542
11543 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11544 Roland McGrath <roland@redhat.com>
11545
11546 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
11547 (ENABLE_LD_BUILDID): New configuration option.
11548 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
11549 (LINK_BUILDID_SPEC): New macro.
11550 (init_spec): If defined, prepend it between LINK_EH_SPEC and
11551 link_spec.
11552 * doc/install.texi: Document --enable-linker-build-id option.
11553 * configure: Rebuild.
11554 * config.in: Rebuild.
11555
11556 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
11557
11558 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
11559 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
11560 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
11561 MIPS_GP_SAVE_AREA_SIZE.
11562 * config/mips/mips.c (struct mips_frame_info): Update comment
11563 before arg_pointer_offset and hard_frame_pointer_offset.
11564 (mips_compute_frame_info): Update diagram before function: to
11565 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
11566 indicate the position of frame_pointer_rtx with -fstack-protector and
11567 to show args_size. Don't allocate cprestore area for leaf functions
11568 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
11569 cprestore_size.
11570 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
11571
11572 2009-04-30 Michael Matz <matz@suse.de>
11573
11574 PR tree-optimization/39955
11575 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
11576
11577 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
11578
11579 * ira.c (setup_cover_and_important_classes): Use safe macro
11580 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
11581 directly.
11582 * genpreds.c (write_tm_preds_h): Output suitable definition of
11583 REG_CLASS_FOR_CONSTRAINT.
11584
11585 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
11586
11587 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
11588 instead of an int.
11589 * bitmap.c (bitmap_descriptor): Likewise.
11590 * ggc-common.c (loc_descriptor): Likewise.
11591 * varray.c (varray_descriptor): Likewise.
11592 * vec.c (vec_descriptor): Likewise.
11593
11594 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
11595
11596 * Makefile.in (dce.o): Add $(EXCEPT_H).
11597 * dce.c: Include except.h and delete redundant vector definitions.
11598 (deletable_insn_p): Return false for non-call insns that can throw
11599 if DF is running.
11600
11601 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
11602
11603 * gcse.c (ae_gen): Remove.
11604 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
11605 and make non-static function to make it available in store-motion.c.
11606 Update call sites with search-and-replace.
11607 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
11608 extract_mentioned_regs, extract_mentioned_regs_helper,
11609 find_moveable_store, compute_store_table, load_kills_store, find_loads,
11610 store_killed_in_insn, store_killed_after, store_killed_before,
11611 build_store_vectors, insert_insn_start_basic_block, insert-store,
11612 remove_reachable_equiv_notes, replace_store_insn, delete_store,
11613 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
11614 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
11615 * store-motion.c: ...new file. Also copy data structures from gcse.c
11616 and clean up to remove parts not used by store motion.
11617 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
11618 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
11619
11620 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11621
11622 PR target/38571
11623 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
11624 when optimizing for size.
11625
11626 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
11627
11628 * gcse.c (gcse_constant_p): Fix typo in last change.
11629
11630 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
11631
11632 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
11633
11634 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
11635
11636 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
11637
11638 2009-04-29 James E. Wilson <wilson@codesourcery.com>
11639
11640 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
11641 CONST_HIGH_PART result.
11642
11643 2009-04-29 Anatoly Sokolov <aesok@post.ru>
11644
11645 * config/avr/avr.c (initial_elimination_offset): Rename to
11646 avr_initial_elimination_offset.
11647 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
11648 change return type to bool.
11649 (avr_can_eliminate): New function.
11650 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
11651 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
11652 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
11653 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
11654 avr_initial_elimination_offset.
11655 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
11656 (avr_initial_elimination_offset): Define.
11657
11658 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
11659 Steven Bosscher <steven@gcc.gnu.org>
11660
11661 PR rtl-optimization/39938
11662 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
11663 * cfgrtl.c: Include insn-attr.h.
11664 (rest_of_pass_free_cfg): New function.
11665 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
11666 * resource.c (init_resource_info): Remove call to df_analyze.
11667
11668 2009-04-29 Richard Guenther <rguenther@suse.de>
11669
11670 PR target/39943
11671 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
11672 allow conversion to signed integers.
11673
11674 2009-04-29 Richard Guenther <rguenther@suse.de>
11675
11676 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
11677 shifts of floating point vectors if the shift amount is
11678 a constant multiple of the element size.
11679
11680 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
11681 Michael Matz <matz@suse.de>
11682
11683 PR middle-end/39927
11684 PR bootstrap/39929
11685 * tree-outof-ssa.c (emit_partition_copy): New function.
11686 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
11687 insert_part_to_rtx_on_edge): Perform the partition base var
11688 copy using emit_partition_copy.
11689 (insert_value_copy_on_edge): Convert constants to the right mode.
11690 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
11691 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
11692
11693 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11694
11695 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
11696 scan backwards to try to find a constant to initialize it.
11697
11698 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
11699 insn before the loop_end instruction, don't look past labels.
11700
11701 2009-04-29 Richard Guenther <rguenther@suse.de>
11702
11703 PR middle-end/39937
11704 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
11705 loose type conversions.
11706 (forward_propagate_addr_expr): Fix tuplification bug. Remove
11707 stmts only if there are no uses of its definition.
11708
11709 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11710
11711 * config/bfin/bfin.h (splitting_loops): Declare.
11712 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
11713 Reorder bit definitions to be ascending.
11714 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
11715 * config/bfin/bfin.c (splitting_loops): New variable.
11716 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
11717 (struct loop_info): Remove members INIT and LOOP_INIT.
11718 (bfin_optimize_loop): Don't set them. Reorder the code that generates
11719 the LSETUP sequence. Allow LC to be loaded from any register, but
11720 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
11721 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
11722 set to 1.
11723 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
11724 of reload_completed.
11725
11726 From Jie Zhang:
11727 * config/bfin/bfin.md (movsi_insn): Refine constraints.
11728
11729 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
11730
11731 * Makefile.in (PLUGIN_VERSION_H): New.
11732 (OBJS-common): Remove plugin-version.o.
11733 (plugin.o): Depend on (PLUGIN_VERSION_H).
11734 (plugin-version.o): Remove.
11735 * configure: Regenerate
11736 * configure.ac: Create plugin-version.h.
11737 * gcc-plugin.h (plugin_gcc_version): Remove.
11738 (plugin_default_version_check): Change signature.
11739 * plugin-version.c: Remove.
11740 * plugin.c: Include plugin-version.h.
11741 (str_plugin_gcc_version_name): Remove.
11742 (try_init_one_plugin): Pass gcc version to plugin_init.
11743 (plugin_default_version_check): Both gcc and plugin versions are now
11744 arguments.
11745
11746 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11747
11748 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
11749 problematic last insns. Test for TYPE_CALL rather than CALL_P.
11750 Remove special case testing for last insn of inner loops. Don't fail
11751 if the loop ends with a jump, emit an extra nop instead.
11752
11753 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
11754 DREGS rather than comparing directly. Remove code that tries to
11755 account for latencies.
11756
11757 2009-04-29 Richard Guenther <rguenther@suse.de>
11758
11759 PR tree-optimization/39941
11760 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
11761 eliminating an indirect call.
11762
11763 2009-04-29 Richard Guenther <rguenther@suse.de>
11764
11765 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
11766 parameter. Allow invariants as base if !require_lvalue.
11767 (verify_gimple_assign_single): Adjust.
11768
11769 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11770
11771 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
11772 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
11773 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
11774 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
11775 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
11776 a VEC_SELECT.
11777 * config/bfin/bfin.c (bfin_expand_builtin,
11778 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
11779
11780 2009-04-28 Richard Guenther <rguenther@suse.de>
11781
11782 * tree-vect-loop.c (get_initial_def_for_induction): Use
11783 correct types for pointer increment.
11784
11785 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11786
11787 * toplev.c (print_version): Update GMP version string calculation.
11788
11789 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
11790
11791 PR rtl-optimization/39938
11792 * resource.c (init_resource_info): Add call to df_analyze.
11793
11794 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
11795
11796 * config/alpha/alpha.md (usegp): Cast the result of
11797 alpha_find_lo_sum_using_gp to enum attr_usegp.
11798 * config/alpha/alpha.c (override_options): Remove end-of-structure
11799 marker element from cpu_table. Use array size of cpu_table to handle
11800 -mcpu and -mtune options.
11801 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
11802
11803 2009-04-28 Joseph Myers <joseph@codesourcery.com>
11804
11805 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
11806 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
11807 tune_32 and tune_64.
11808 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11809 support on PowerPC.
11810 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
11811 * config/rs6000/option-defaults.h: ... here. New file.
11812 (OPT_64, OPT_32): Define.
11813 (MASK_64BIT): Define to 0 if not already defined.
11814 (OPT_ARCH64, OPT_ARCH32): Define.
11815 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
11816 and tune_64.
11817
11818 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11819
11820 * config/arm/arm.c (arm_override_options): Emit error on using
11821 fpa with AAPCS.
11822
11823 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
11824
11825 PR rtl-optimization/39914
11826 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
11827 registers for allocnos created from user-defined variables only
11828 when not optimizing.
11829
11830 2009-04-28 Richard Guenther <rguenther@suse.de>
11831
11832 PR middle-end/39937
11833 * fold-const.c (fold_binary): Use distribute_real_division only
11834 on float types.
11835
11836 2009-04-28 Steve Ellcey <sje@cup.hp.com>
11837
11838 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
11839 add hpux-stdint.h to tm_file.
11840 (hppa[12]*-*-hpux11*): Ditto.
11841 (ia64*-*-hpux*): Ditto.
11842 * config/hpux-stdint.h: New.
11843 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
11844 __STDC_EXT__ for all compiles.
11845 * config/pa/pa-hpux.h: Ditto.
11846 * config/pa/pa-hpux10.h: Ditto.
11847 * config/pa/pa-hpux11.h: Ditto.
11848
11849 2009-04-28 Catherine Moore <clm@codesourcery.com>
11850
11851 * debug.h (set_name): Add comment.
11852
11853 2009-04-28 Andrew Pinski <pinskia@gmail.com>
11854
11855 PR target/39929
11856 * config/darwin.c (machopic_gen_offset): Check
11857 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
11858 * config/arm/arm.c (require_pic_register): Likewise.
11859
11860 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
11861
11862 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
11863 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
11864 m32c_promote_prototypes): Delete.
11865
11866 2009-04-28 Michael Matz <matz@suse.de>
11867
11868 PR middle-end/39922
11869 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
11870 constants.
11871
11872 2009-04-28 Richard Guenther <rguenther@suse.de>
11873
11874 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
11875
11876 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11877
11878 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
11879 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
11880 * config/arm/arm-tune.md: Regenerate.
11881
11882 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
11883
11884 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
11885 block if there are complex incoming edges.
11886 (sel_merge_blocks): Remove useless assert.
11887 (sel_redirect_edge_and_branch): Check that edge was redirected.
11888 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
11889 (sel_find_rgns): Delete declaration.
11890 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
11891 the region when it is not a preheader.
11892
11893 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
11894
11895 PR c/39323
11896 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
11897
11898 2009-04-28 Richard Guenther <rguenther@suse.de>
11899
11900 * tree.h (SSA_NAME_VALUE): Remove.
11901 (struct tree_ssa_name): Remove value_handle member.
11902 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
11903 array for jump threading.
11904 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
11905 SSA_NAME_VALUEs.
11906 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
11907 * tree-flow.h (threadedge_initialize_values): Declare.
11908 (threadedge_finalize_values): Likewise.
11909 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
11910 (SSA_NAME_VALUE): Define.
11911 (threadedge_initialize_values): New function.
11912 (threadedge_finalize_values): Likewise.
11913 * tree-ssa-dom.c (ssa_name_values): New global variable.
11914 (SSA_NAME_VALUE): Define.
11915 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
11916
11917 2009-04-28 Ira Rosen <irar@il.ibm.com>
11918
11919 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11920 Use REPORT_VECTORIZED_LOCATIONS instead
11921 REPORT_VECTORIZED_LOOPS.
11922 * tree-vectorizer.c (vect_verbosity_level): Make static.
11923 (vect_loop_location): Rename to vect_location.
11924 (vect_set_verbosity_level): Update comment.
11925 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
11926 and vect_location.
11927 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
11928 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
11929 instead REPORT_UNVECTORIZED_LOOPS.
11930 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
11931 and vect_loop_def to vect_external_def and vect_internal_def.
11932 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
11933 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
11934 REPORT_UNVECTORIZED_LOCATIONS.
11935 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
11936 and vect_used_in_loop and to vect_unused_in_scope and
11937 vect_used_in_scope.
11938 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
11939 (vect_verbosity_level): Remove declaration.
11940 (vect_analyze_operations): Likewise.
11941 (vect_analyze_stmt): Declare.
11942 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
11943 REPORT_UNVECTORIZED_LOCATIONS.
11944 (vect_get_loop_niters): Fix indentation.
11945 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
11946 (vect_analyze_loop_operations): New function.
11947 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
11948 vect_analyze_operations.
11949 (vect_is_simple_reduction): Use new names.
11950 (vectorizable_live_operation, vect_transform_loop): Likewise.
11951 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
11952 to specify whether the data references can be a part of interleaving
11953 chain.
11954 (vect_analyze_data_ref_dependence): Use new names.
11955 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
11956 (vect_create_addr_base_for_vector_ref): Remove redundant code.
11957 * tree-vect-patterns.c (widened_name_p): Use new names.
11958 (vect_recog_dot_prod_pattern): Likewise.
11959 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
11960 (process_use, vect_mark_stmts_to_be_vectorized,
11961 vect_model_simple_cost, vect_model_store_cost,
11962 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
11963 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
11964 vectorizable_operation, vectorizable_type_demotion,
11965 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
11966 vectorizable_condition): Likewise.
11967 (vect_analyze_operations): Split into vect_analyze_loop_operations
11968 and ...
11969 (vect_analyze_stmt): ... new function.
11970 (new_stmt_vec_info): Use new names.
11971 (vect_is_simple_use): Use new names and fix comment.
11972 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
11973 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
11974
11975 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
11976
11977 PR target/39911
11978 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
11979 and integer modes for x87 operands. Do not ICE for unsupported size,
11980 generate error instead. Generate error for unsupported operand types.
11981 ['z']: Do not handle HImode memory operands specially. Warning
11982 for floating-point operands. Fallthru to 'Z' for unsupported operand
11983 types. Do not ICE for unsupported size, generate error instead.
11984 (output_387_binary_op): Use %Z to output operands.
11985 (output_fp_compare): Ditto.
11986 (output_387_reg_move): Ditto.
11987
11988 2009-04-28 Ben Elliston <bje@au.ibm.com>
11989
11990 PR c++/35652
11991 Revert:
11992
11993 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11994
11995 * builtins.c (c_strlen): Do not warn here.
11996 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11997 * c-common.c (pointer_int_sum): Take an explicit location.
11998 Warn about offsets out of bounds.
11999 * c-common.h (pointer_int_sum): Adjust declaration.
12000
12001 2009-04-27 Ian Lance Taylor <iant@google.com>
12002
12003 * collect2.c (is_ctor_dtor): Change type of ret field in struct
12004 names to symkind.
12005 * dce.c (run_fast_df_dce): Change type of old_flags to int.
12006 * df-core.c (df_set_flags): Change return type to int. Change
12007 type of old_flags to int.
12008 (df_clear_flags): Likewise.
12009 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
12010 (df_get_conditional_uses): Likewise.
12011 * df.h (df_set_flags, df_clear_flags): Update declarations.
12012 * dwarf2out.c (struct indirect_string_node): Change type of form
12013 field to enum dwarf_form.
12014 (AT_string_form): Change return type to enum dwarf_form.
12015 * fixed-value.c (fixed_compare): Add cast to enum type.
12016 * fwprop.c (update_df): Change 0 to VOIDmode.
12017 * gensupport.c: Change 0 to UNKNOWN.
12018 * gimple.h (gimple_cond_code): Add cast to enum type.
12019 * haifa-sched.c (reemit_notes): Add cast to enum type.
12020 * hooks.c (hook_int_void_no_regs): Remove function.
12021 * hooks.h (hook_int_void_no_regs): Remove declaration.
12022 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
12023 * predict.c (combine_predictions_for_insn): Add casts to enum type.
12024 * real.c (real_arithmetic): Add cast to enum type.
12025 (real_compare): Likewise.
12026 * target.h (struct gcc_target): Change return type of
12027 branch_target_register_class to enum reg_class.
12028 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
12029 default_branch_target_register_class.
12030 * targhooks.c (default_branch_target_register_class): New function.
12031 * targhooks.h (default_branch_target_register_class): Declare.
12032 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
12033 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
12034 cast to int.
12035 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
12036 ERROR_MARK.
12037 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
12038 vect_uninitialized_def. Change 0 to ERROR_MARK.
12039 * tree-vect-stmts.c (supportable_widening_operation): Don't
12040 initialize icode1 and icode2.
12041 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
12042 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
12043 and to STD_C89.
12044 (cmn_err_flag_specs): Change 0 to STD_C89.
12045 (cmn_err_char_table): Likewise.
12046 * config/arm/arm.c (get_arm_condition_code): Change type of code
12047 to enum arm_cond_code.
12048 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
12049 (IWMMXT_BUILTIN2): Likewise.
12050 (neon_builtin_type_bits): Don't define typedef.
12051 (neon_builtin_datum): Change type of bits field to int.
12052 (arm_expand_neon_args): Add cast to enum type.
12053 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
12054 TLS_MODEL_NONE.
12055 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
12056 casts to enum type.
12057 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
12058 MIPS_FP_COND_f.
12059 * config/mips/mips.md (jal_macro): Return enum constant.
12060 (single_insn): Likewise.
12061 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
12062 CODE_FOR_nothing.
12063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12064 casts to enum type.
12065 * config/s390/s390.c (s390_tune_flags): Change type to int.
12066 (s390_arch_flags): Likewise.
12067 (s390_handle_arch_option): Change flags field of struct pta to int.
12068 * config/s390/s390.h (s390_tune_flags): Update declaration.
12069 (s390_arch_flags): Likewise.
12070 * config/sh/sh.c (prepare_move_operands): Compare
12071 tls_symbolic_operand result with enum constant.
12072 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
12073 (sh_expand_prologue): Add cast to enum type.
12074 (sh_expand_epilogue): Likewise.
12075 (tls_symbolic_operand): Change return type to enum tls_model.
12076 (fpscr_set_from_mem): Add cast to enum type.
12077 (legitimize_pic_address): Compare tls_symbolic_operand result with
12078 enum constant.
12079 (sh_target_reg_class): Change return type to enum reg_class.
12080 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
12081 PROCESSOR_xxx.
12082 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
12083 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
12084 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
12085 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
12086 (delayed_branch, tls_call_delay): Likewise.
12087 (eligible_for_sibcall_delay): Likewise.
12088 (eligible_for_return_delay): Likewise.
12089 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
12090 (spu_expand_builtin_1): Likewise.
12091
12092 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
12093 for all types of conversions.
12094 (output_init_element): Issue -Wc++-compat warning if needed when
12095 initializing a bitfield with enum type.
12096 * c-parser.c (c_parser_expression): Set original_type to
12097 original_type of right hand operand of comman operator.
12098
12099 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12100
12101 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
12102 grammar nits.
12103 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
12104 * doc/cpp.texi (Standard Predefined Macros)
12105 (Implementation-defined behavior): Likewise.
12106 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
12107 * doc/gimple.texi (GIMPLE Exception Handling)
12108 (@code{GIMPLE_ASSIGN}): Likewise.
12109 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
12110 * doc/invoke.texi (Warning Options, Optimize Options)
12111 (AVR Options, Darwin Options): Likewise.
12112 (Optimize Options): Reformulate -fwhole-program description.
12113 * doc/loop.texi (Lambda): Likewise.
12114 * doc/md.texi (Output Template, Define Constraints)
12115 (Standard Names, Insn Splitting): Likewise.
12116 * doc/options.texi (Option properties): Likewise.
12117 * doc/passes.texi (Tree-SSA passes): Likewise.
12118 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
12119 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
12120 (File Names and DBX): Likewise.
12121 * doc/trouble.texi (Incompatibilities): Likewise.
12122
12123 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12124
12125 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
12126 instruction is correct.
12127
12128 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12129
12130 Allow non-constant arguments to conversion intrinsics.
12131 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
12132 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
12133 * spu.c (print_operand): Handle 'v' and 'w'.
12134 (exp2_immediate_p, spu_gen_exp2): Define.
12135 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
12136 spu_convtf_1): Update parameter descriptions.
12137 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
12138 * constraints.md ('v', 'w'): New.
12139 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
12140 Remove.
12141 (i2f, I2F): New define_mode_attr.
12142 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
12143 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
12144 fixuns_truncv4sfv4si2): Update to use mode attribute.
12145 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
12146 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
12147 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
12148 patterns for combine.
12149
12150 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
12151
12152 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
12153 (cprop, hoist, pre, store_motion): New debug counters.
12154 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
12155 is not an RTL pass anymore.
12156 (pass_profiling): Remove extern decl for pass removed in 2005.
12157 (pass_gcse, pass_jump_bypass): Remove.
12158 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
12159 to 0 for clean state.
12160 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
12161 * cse.c (gate_handle_cse_after_global_opts,
12162 rest_of_handle_cse_after_global_opts): New functions.
12163 (pass_cse_after_global_opts): New pass, does local CSE.
12164 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
12165 (TV_CPROP): New timevar.
12166 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
12167 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
12168 (gcse_main, recompute_all_luids): Remove.
12169 (compute_hash_table_work): Call max_reg_num instead of reading
12170 max_gcse_regno.
12171 (cprop_jump): Don't set run_jump_opt_after_gcse.
12172 (constprop_register): Always allow to alter jumps.
12173 (cprop_insn): Likewise.
12174 (do_local_cprop): Likewise.
12175 (local_cprop_pass): Likewise. Return non-zero if something changed.
12176 (cprop): Remove function, fold interesting bits into one_cprop_pass.
12177 (find_implicit_sets): Add note about missed optimization opportunity.
12178 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
12179 pass_rtl_cprop execute function.
12180 Don't bother tracking the pass number, each pass gets its own dumpfile
12181 now anyway.
12182 Always allow to alter jumpsand bypass jumps.
12183 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
12184 will just find no suitable set.
12185 (pre_edge_insert): Fix dumping, this function is for PRE only.
12186 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
12187 pass_rtl_pre execute function.
12188 (hoist_code): Return non-zero if something changed. Keep track of
12189 substitutions and insertions for statistics gathering similar to PRE.
12190 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
12191 called from the pass_rtl_hoist execute function. Show pass statistics.
12192 (compute_store_table): Use max_reg_num directly instead of using the
12193 formerly global max_gcse_regno.
12194 (build_store_vectors): Likewise.
12195 (replace_store_insn): Fix dumping.
12196 (store_motion): Rename to ...
12197 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
12198 pass, called from the pass_rtl_store_motion execute function. Keep
12199 track of substitutions and insertions for statistics gathering similar
12200 to PRE.
12201 (bypass_jumps): Remove, fold interesting bits into ...
12202 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
12203 from the pass_rtl_cprop execute function.
12204 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12205 pass_jump_bypass): Remove.
12206 (gate_handle_gcse, rest_of_handle_gcse): Remove.
12207 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
12208 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
12209 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
12210 (gate_rtl_store_motion, execute_rtl_store_motion,
12211 pass_rtl_store_motion): New.
12212 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
12213 make it clear that -fcse-skip-blocks is a no-op for backward compat.
12214 * passes.c (init_optimization_passes): Remove pass_gcse and
12215 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
12216 and cse_after_global_opts in place of pass_gcse. Schedule cprop
12217 instead of pass_jump_bypass.
12218
12219 2009-04-27 Richard Guenther <rguenther@suse.de>
12220
12221 PR middle-end/39928
12222 * gimplify.c (gimplify_expr): If we are required to create
12223 a temporary make sure it ends up as register.
12224
12225 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
12226
12227 PR target/39903
12228 * config/i386/i386.c (construct_container): Don't call
12229 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
12230 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
12231
12232 2009-04-27 Michael Matz <matz@suse.de>
12233
12234 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
12235 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
12236 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
12237 (dump_replaceable_exprs): Take a bitmap.
12238 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
12239 array.
12240 (expand_gimple_basic_block): Likewise.
12241 * tree-ssa-ter.c (struct temp_expr_table_d): Make
12242 replaceable_expressions member a bitmap.
12243 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
12244 (mark_replaceable): Likewise.
12245 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
12246 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
12247
12248 2009-04-27 Richard Guenther <rguenther@suse.de>
12249
12250 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
12251 (verify_stmts): Dispatch to gimple/type verification code.
12252 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
12253 issue with call argument types.
12254
12255 2009-04-27 Michael Matz <matz@suse.de>
12256
12257 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
12258 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
12259 to above.
12260
12261 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
12262 Eric Botcazou <ebotcazou@adacore.com>
12263
12264 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
12265 a label's basic block.
12266 (mark_target_live_regs): Tidy and rework obsolete comments.
12267 Change back DF problem to LIVE. If a label starts a basic block,
12268 assume that all registers that used to be live then still are.
12269 (init_resource_info): If a label starts a basic block, set its
12270 BLOCK_FOR_INSN accordingly.
12271 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
12272
12273 2009-04-27 Richard Guenther <rguenther@suse.de>
12274
12275 * tree-flow-inline.h (function_ann): Remove.
12276 (get_function_ann): Likewise.
12277 * tree-dfa.c (create_function_ann): Remove.
12278 * tree-flow.h (struct static_var_ann_d): Remove.
12279 (struct function_ann_d): Likewise.
12280 (union tree_ann_d): Remove fdecl member.
12281 (function_ann_t): Remove.
12282 (function_ann, get_function_ann, create_function_ann): Remove
12283 declarations.
12284
12285 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
12286
12287 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
12288
12289 2009-04-27 Jan Hubicka <jh@suse.cz>
12290
12291 * ipa-pure-const.c (struct funct_state_d): New fields
12292 state_previously_known, looping_previously_known; remove
12293 state_set_in_source.
12294 (analyze_function): Use new fields.
12295 (propagate): Avoid assumption that state_set_in_source imply
12296 nonlooping.
12297
12298 * tree-ssa-loop-niter.c (finite_loop_p): New function.
12299 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
12300 * cfgloop.h (finite_loop_p): Declare.
12301
12302 2009-04-26 Michael Matz <matz@suse.de>
12303
12304 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
12305
12306 2009-04-26 Michael Matz <matz@suse.de>
12307
12308 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
12309 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
12310 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
12311 pass_mark_used_blocks): Remove.
12312 * tree-optimize.c (pass_free_datastructures,
12313 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
12314 * passes.c (init_optimization_passes): Don't call
12315 pass_mark_used_blocks, remove dead code.
12316
12317 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
12318
12319 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
12320 * tree-ssa-live.h (register_ssa_partition): Likewise.
12321
12322 2009-04-26 Michael Matz <matz@suse.de>
12323
12324 Expand from SSA.
12325 * builtins.c (fold_builtin_next_arg): Handle SSA names.
12326 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
12327 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
12328 SSA names.
12329 (compare_pairs): Swap cost comparison.
12330 (coalesce_ssa_name): Don't use change_partition_var.
12331 * tree-nrv.c (struct nrv_data): Add modified member.
12332 (finalize_nrv_r): Set it.
12333 (tree_nrv): Use it to update statements.
12334 (pass_nrv): Require PROP_ssa.
12335 * tree-mudflap.c (mf_decl_cache_locals,
12336 mf_build_check_statement_for): Use make_rename_temp.
12337 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
12338 * alias.c (find_base_decl): Handle SSA names.
12339 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
12340 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
12341 * rtl.h (set_reg_attrs_for_parm): Declare.
12342 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
12343 to "optimized", remove unused locals at finish.
12344 (execute_free_datastructures): Make global, call
12345 delete_tree_cfg_annotations.
12346 (execute_free_cfg_annotations): Don't call
12347 delete_tree_cfg_annotations.
12348
12349 * ssaexpand.h: New file.
12350 * expr.c (toplevel): Include ssaexpand.h.
12351 (expand_assignment): Handle SSA names the same as register variables.
12352 (expand_expr_real_1): Expand SSA names.
12353 * cfgexpand.c (toplevel): Include ssaexpand.h.
12354 (SA): New global variable.
12355 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
12356 (SSAVAR): New macro.
12357 (set_rtl): New helper function.
12358 (add_stack_var): Deal with SSA names, use set_rtl.
12359 (expand_one_stack_var_at): Likewise.
12360 (expand_one_stack_var): Deal with SSA names.
12361 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
12362 before unique numbers.
12363 (expand_stack_vars): Use set_rtl.
12364 (expand_one_var): Accept SSA names, add asserts for them, feed them
12365 to above subroutines.
12366 (expand_used_vars): Expand all partitions (without default defs),
12367 then only the local decls (ignoring those expanded already).
12368 (expand_gimple_cond): Remove edges when jumpif() expands an
12369 unconditional jump.
12370 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
12371 or remove abnormal edges. Ignore insns setting the LHS of a TERed
12372 SSA name.
12373 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
12374 members of SA; deal with PARM_DECL partitions here; expand
12375 all PHI nodes, free tree datastructures and SA. Commit instructions
12376 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
12377 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
12378 info and statements at start, collect garbage at finish.
12379 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
12380 (VAR_ANN_PARTITION) Remove.
12381 (change_partition_var): Don't declare.
12382 (partition_to_var): Always return SSA names.
12383 (var_to_partition): Only accept SSA names.
12384 (register_ssa_partition): Only check argument.
12385 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
12386 member.
12387 (delete_var_map): Don't free it.
12388 (var_union): Only accept SSA names, simplify.
12389 (partition_view_init): Mark only useful SSA names as used.
12390 (partition_view_fini): Only deal with SSA names.
12391 (change_partition_var): Remove.
12392 (dump_var_map): Use ssa_name instead of partition_to_var member.
12393 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
12394 basic blocks.
12395 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
12396 (struct _elim_graph): New member const_dests; nodes member vector of
12397 ints.
12398 (set_location_for_edge): New static helper.
12399 (create_temp): Remove.
12400 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
12401 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
12402 (new_elim_graph): Allocate const_dests member.
12403 (clean_elim_graph): Truncate const_dests member.
12404 (delete_elim_graph): Free const_dests member.
12405 (elim_graph_size): Adapt to new type of nodes member.
12406 (elim_graph_add_node): Likewise.
12407 (eliminate_name): Likewise.
12408 (eliminate_build): Don't take basic block argument, deal only with
12409 partition numbers, not variables.
12410 (get_temp_reg): New static helper.
12411 (elim_create): Use it, deal with RTL temporaries instead of trees.
12412 (eliminate_phi): Adjust all calls to new signature.
12413 (assign_vars, replace_use_variable, replace_def_variable): Remove.
12414 (rewrite_trees): Only do checking.
12415 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
12416 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
12417 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
12418 contains_tree_r, MAX_STMTS_IN_LATCH,
12419 process_single_block_loop_latch, analyze_edges_for_bb,
12420 perform_edge_inserts): Remove.
12421 (expand_phi_nodes): New global function.
12422 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
12423 functions, initialize new parameter, remember partitions having a
12424 default def.
12425 (finish_out_of_ssa): New global function.
12426 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
12427 don't reset in_ssa_p here, don't disable TER when mudflap.
12428 (pass_del_ssa): Remove.
12429 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
12430 partition members.
12431 (execute_free_datastructures): Declare.
12432 * Makefile.in (SSAEXPAND_H): New variable.
12433 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
12434 * basic-block.h (commit_one_edge_insertion): Declare.
12435 * passes.c (init_optimization_passes): Move pass_nrv and
12436 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
12437 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
12438 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
12439 (redirect_branch_edge): Deal with super block when expanding, split
12440 out jump patching itself into ...
12441 (patch_jump_insn): ... here, new static helper.
12442
12443 2009-04-26 Michael Matz <matz@suse.de>
12444
12445 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
12446 beyond num_ssa_names.
12447 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
12448 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
12449
12450 2009-04-26 Jakub Jelinek <jakub@redhat.com>
12451
12452 PR inline-asm/39543
12453 * fwprop.c (forward_propagate_asm): New function.
12454 (forward_propagate_and_simplify): Propagate also into __asm, if it
12455 doesn't increase the number of referenced registers.
12456
12457 PR c/39889
12458 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
12459
12460 2009-04-26 Jakub Jelinek <jakub@redhat.com>
12461
12462 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
12463 note_nonlocal_vla_type for nonlocal VLAs.
12464 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
12465 contains_remapped_vars, remap_vla_decls): New functions.
12466 (convert_nonlocal_reference_stmt): If not optimizing, call
12467 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
12468 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
12469 if it wasn't found in var_map.
12470 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
12471 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
12472 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
12473 declare_vars.
12474 * gimplify.c (nonlocal_vlas): New variable.
12475 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
12476 referenced VLAs.
12477 (gimplify_body): Create and destroy nonlocal_vlas.
12478
12479 * dwarf2out.c (loc_descr_plus_const): New function.
12480 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
12481 mem_loc_descriptor, loc_descriptor_from_tree_1,
12482 descr_info_loc, gen_variable_die): Use it.
12483
12484 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
12485 !TREE_STATIC VAR_DECLs.
12486 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
12487 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
12488 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
12489 DECL_BY_REFERENCE is valid.
12490 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
12491 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
12492 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
12493 Copy DECL_BY_REFERENCE.
12494 (struct nesting_copy_body_data): New type.
12495 (nesting_copy_decl): New function.
12496 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
12497 if they have variable length.
12498
12499 2009-04-26 Michael Matz <matz@suse.de>
12500
12501 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
12502 mark new temporaries for renaming.
12503
12504 2009-04-26 Joseph Myers <joseph@codesourcery.com>
12505
12506 PR c/39581
12507 * c-decl.c (global_bindings_p): Return negative value.
12508 (c_variable_size): New. Based on variable_size from
12509 stor-layout.c.
12510 (grokdeclarator): Call c_variable_size not variable_size.
12511
12512 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
12513
12514 * config/i386/i386.c (print_operand) ['z']: Fix typo.
12515
12516 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
12517
12518 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
12519 Redefine it to just use mingw/include.
12520 (ASM_SPEC): Rules for -m32 and -m64.
12521 (LINK_SPEC): Use Likewise.
12522 (SPEC_32): New define.
12523 (SPEC_64): Likewise.
12524 (SUB_LINK_SPEC): Likewise.
12525 (MULTILIB_DEFAULTS): New define.
12526 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
12527 Add multilib options.
12528 (MULTILIB_DIRNAMES): Likewise.
12529 (MULTILIB_OSDIRNAMES): Likewise.
12530 (LIBGCC): Likewise.
12531 (INSTALL_LIBGCC): Likewise.
12532
12533 2009-04-26 Joseph Myers <joseph@codesourcery.com>
12534
12535 PR c/39556
12536 * c-tree.h (enum c_inline_static_type): New.
12537 (record_inline_static): Declare.
12538 * c-decl.c (struct c_inline_static, c_inline_statics,
12539 record_inline_static, check_inline_statics): New.
12540 (pop_file_scope): Call check_inline_statics.
12541 (start_decl): Call record_inline_static instead of pedwarning
12542 directly for static in inline function.
12543 * c-typeck.c (build_external_ref): Call record_inline_static
12544 instead of pedwarning directly for static referenced in inline
12545 function.
12546
12547 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
12548
12549 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
12550 not new but only being rescanned.
12551 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
12552 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
12553 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
12554 record_set_info, compute_set, grealloc): Remove.
12555 (recompute_all_luids): New function.
12556 (gcse_main): Don't compute sets, and don't do related memory
12557 allocations/free-ing. If something changed before the end of the
12558 pass, update LUIDs using recompute_all_luids.
12559 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
12560 (free_gcse_mem): Don't free it either.
12561 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
12562 Use the df insn LUIDs.
12563 (load_killed_in_block): Likewise.
12564 (compute_hash_table_work): Don't compute reg_set_in_block.
12565 (compute_transp): Use DF_REG_DEF_CHAINs.
12566 (local_cprop_pass): Don't use compute_sets and related functions.
12567 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
12568 Use get_max_uid() instead of max_cuid.
12569 (insert_insn_end_basic_block, pre_insert_copy_insn,
12570 update_ld_motion_stores): Don't try to
12571 keep reg_set tables up to date.
12572 (pre_insert_copies): Use df insn LUIDs.
12573 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
12574 (reg_set_info): Don't use extra bitmap argument.
12575 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
12576 information to compute regs_set_in_block.
12577 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
12578 (bypass_jumps): Don't use compute_sets and friends.
12579
12580 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12581
12582 PR testsuite/39710
12583 * opts.c (undocumented_msg): Do not leave blank even with
12584 ENABLE_CHECKING.
12585
12586 2009-04-25 Joseph Myers <joseph@codesourcery.com>
12587
12588 * c-decl.c (build_enumerator): Allow values folding to integer
12589 constants but not integer constant expressions with a pedwarn if
12590 pedantic.
12591
12592 2009-04-25 Joseph Myers <joseph@codesourcery.com>
12593
12594 PR c/39582
12595 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
12596 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
12597 type is an integer constant.
12598
12599 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
12600
12601 PR target/39897
12602 * config/i386/i386.c (print_operand) ['z']: Revert handling of
12603 HImode operands.
12604
12605 2009-04-25 Joseph Myers <joseph@codesourcery.com>
12606
12607 PR c/39564
12608 * c-decl.c (grokdeclarator): Diagnose declarations of functions
12609 with variably modified return type and no storage class
12610 specifiers, except for the case of nested functions. Distinguish
12611 extern declarations of functions with variably modified return
12612 types from those of objects with variably modified types.
12613
12614 2009-04-25 Jan Hubicka <jh@suse.cz>
12615
12616 * tree.c (list_equal_p): New function.
12617 * tree.h (list_equal_p): Declare.
12618 * coretypes.h (edge_def, edge, const_edge, basic_block_def
12619 basic_block_def, basic_block, const_basic_block): New.
12620 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
12621 (redirect_eh_edge): New function.
12622 (make_eh_edge_update_phi): EH edges are not abnormal.
12623 * except.c: Include tree-flow.h.
12624 (list_match): New function.
12625 (eh_region_replaceable_by_p): New function.
12626 (replace_region): New function.
12627 (hash_type_list): New function.
12628 (hash_eh_region): New function.
12629 (eh_regions_equal_p): New function.
12630 (merge_peers): New function.
12631 (remove_unreachable_regions): Verify EH tree when checking;
12632 merge peers.
12633 (copy_eh_region_1): New function.
12634 (copy_eh_region): New function.
12635 (push_reachable_handler): New function.
12636 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
12637 regions without label but with live RESX.
12638 * except.h (redirect_eh_edge_to_label): New.
12639 * tree-flow.h (redirect_eh_edge): New.
12640 * coretypes.h (edge_def, edge, const_edge, basic_block_def
12641 basic_block_def, basic_block, const_basic_block): Remove.
12642 * Makefile.in (except.o): Add dependency on tree-flow.h
12643 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
12644 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
12645 Remove.
12646
12647 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
12648
12649 PR bootstrap/39645
12650 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
12651 on the destination of memcpy.
12652
12653 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
12654
12655 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
12656 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
12657 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
12658
12659 2009-04-25 Jan Hubicka <jh@suse.cz>
12660
12661 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
12662 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
12663 to be reached by different label than left.
12664 (update_eh_edges): Update comment; remove edge_to_remove if possible
12665 and return true if suceeded.
12666 (cleanup_empty_eh): Accept sharing map; handle shared regions.
12667 (cleanup_eh): Compute sharing map.
12668 * except.c (remove_eh_handler_and_replace): Add argument if we should
12669 update regions.
12670 (remove_unreachable_regions): Update for label sharing.
12671 (label_to_region_map): Likewise.
12672 (get_next_region_sharing_label): New function.
12673 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
12674 prev_try pointers.
12675 (remove_eh_handler): Update.
12676 (remove_eh_region_and_replace_by_outer_of): New function.
12677 * except.h (struct eh_region): Add next_region_sharing_label.
12678 (remove_eh_region_and_replace_by_outer_of,
12679 get_next_region_sharing_label): Declare.
12680 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
12681
12682 2009-04-25 Jan Hubicka <jh@suse.cz>
12683
12684 * tree-cfg.c (split_critical_edges): Split also edges where we can't
12685 insert code even if they are not critical.
12686
12687 2009-04-25 Jan Hubicka <jh@suse.cz>
12688
12689 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
12690 (gimple_can_remove_branch_p): EH edges won't remove branch by
12691 redirection.
12692 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
12693 updating of non-abnormal EH edges.
12694 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
12695 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
12696 (split_critical_edges): Split also edges where emitting code on them
12697 will lead to splitting later.
12698
12699 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
12700 H.J. Lu <hongjiu.lu@intel.com>
12701
12702 PR target/39590
12703 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
12704 the configured assembler supports fildq and fistpq mnemonics.
12705 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
12706 * configure: Regenerated.
12707 * config.in: Ditto.
12708
12709 * config/i386/i386.c (print_operand): Handle 'Z'.
12710 ['z']: Remove handling of special fild/fist suffixes.
12711 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
12712 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
12713 suffix of fild insn.
12714 (*floatsi<mode>2_vector_mixed): Ditto.
12715 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
12716 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
12717 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
12718 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
12719 * config/i386/gas.h (GAS_MNEMONICS): Remove.
12720
12721 2009-04-25 Ben Elliston <bje@au.ibm.com>
12722
12723 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
12724 the source of a set operation.
12725
12726 2009-04-25 Anatoly Sokolov <aesok@post.ru>
12727
12728 * target.h (struct gcc_target): Add case_values_threshold field.
12729 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
12730 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
12731 * targhooks.c (default_case_values_threshold): New function.
12732 * targhooks.h (default_case_values_threshold): Declare function.
12733 * stmt.c (expand_case): Use case_values_threshold target hook.
12734 * expr.h (case_values_threshold): Remove declartation.
12735 * expr.c (case_values_threshold): Remove function.
12736 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
12737
12738 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
12739 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
12740 (avr_case_values_threshold): Declare as static.
12741 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
12742
12743 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
12744 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
12745 (mn10300_case_values_threshold): New function.
12746
12747 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
12748
12749 * ira.c (setup_cover_and_important_classes): Add enum cast.
12750
12751 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
12752
12753 * genpreds.c (write_enum_constraint_num): Output definition of
12754 CONSTRAINT_NUM_DEFINED_P macro.
12755 * ira.c (setup_cover_and_important_classes): Use
12756 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
12757
12758 2009-04-24 DJ Delorie <dj@redhat.com>
12759
12760 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
12761 __SH2A_SINGLE_ONLY__ also.
12762
12763 2009-04-24 Steve Ellcey <sje@cup.hp.com>
12764
12765 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
12766 (movdf_internal): Ditto.
12767 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
12768 SFmode and DFmode constants.
12769 (ia64_print_operand): Add 'G' format for printing
12770 floating point constants.
12771
12772 2009-04-24 Richard Guenther <rguenther@suse.de>
12773
12774 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
12775 from unsigned additions.
12776
12777 2009-04-24 Joseph Myers <joseph@codesourcery.com>
12778
12779 * c-typeck.c (set_init_index): Allow array designators that are
12780 not integer constant expressions with a pedwarn if pedantic.
12781
12782 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
12783
12784 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
12785 zero if no overlap in nonzero bits between the operands.
12786
12787 2009-04-24 Ian Lance Taylor <iant@google.com>
12788
12789 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
12790 (record_dead_and_set_regs): Likewise.
12791 * df.h (struct df_mw_hardreg): Change flags field to int.
12792 (struct df_base_ref): Likewise.
12793 (struct df): Change changeable_flags field to int.
12794 * df-scan.c (df_defs_record): Change clobber_flags to int.
12795 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
12796 constants rather than #define macros.
12797 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
12798 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
12799 (enum dwarf_calling_convention): Likewise.
12800 (enum dwarf_line_number_x_ops): Likewise.
12801 (enum dwarf_call_frame_info): Likewise.
12802 (enum dwarf_source_language): Likewise.
12803 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
12804 (add_calling_convention_attribute): Likewise.
12805 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
12806 (combine_comparisons): Change compcode to int. Add cast to enum type.
12807 * genrecog.c (maybe_both_true_2): Change c to int.
12808 (write_switch): Likewise. Add cast to enum type.
12809 * gimplify.c (gimplify_omp_for): Handle return values from
12810 gimplify_expr using MIN rather than bitwise or.
12811 (gimplify_expr): Add cast to enum type.
12812 * ipa-prop.c (update_jump_functions_after_inlining): Change
12813 IPA_BOTTOM to IPA_JF_UNKNOWN.
12814 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
12815 Add casts to enum type.
12816 (setup_cover_and_important_classes): Change cl to int. Add casts
12817 to enum type.
12818 (setup_class_translate): Change cl and mode to int.
12819 (ira_init_once): Change mode to int.
12820 (free_register_move_costs): Likewise.
12821 (setup_prohibited_mode_move_regs): Add casts to enum type.
12822 * langhooks.c (add_builtin_function_common): Rework assertion that
12823 value fits bitfield.
12824 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
12825 * omega.c (omega_do_elimination): Avoid math on enum types.
12826 * optabs.c (expand_vec_shift_expr): Remove casts to int.
12827 * opts.c (set_debug_level): Change 2 to enum constant. Use new
12828 int local to handle integral_argment value.
12829 * regmove.c (try_auto_increment): Change PUT_MODE to
12830 PUT_REG_NOTE_KIND.
12831 * reload.c (push_secondary_reload): Add casts to enum type.
12832 (secondary_reload_class, find_valid_class): Likewise.
12833 * reload1.c (emit_input_reload_insns): Likewise.
12834 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
12835 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
12836 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
12837 constant.
12838 * tree.c (build_common_builtin_nodes): Add casts to enum type.
12839 * tree-complex.c (complex_lattice_t): Typedef to int rather than
12840 enum type.
12841 (expand_complex_libcall): Add casts to enum type.
12842 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
12843 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
12844 with ERROR_MARK, not NUM_TREE_CODES.
12845 (vect_create_epilog_for_reduction): Likewise.
12846 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
12847 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
12848 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
12849 enum machine_mode.
12850 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
12851 vect_unused_in_loop. Change 0 to loop_vect.
12852 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
12853 * var-tracking.c (get_init_value): Change return type to enum
12854 var_init_status.
12855 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
12856 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
12857 arm_fp_model.
12858 (arm_override_options): Add casts to enum type.
12859 (arm_emit_tls_decoration): Likewise.
12860 * config/i386/i386.c (ix86_function_specific_restore): Add casts
12861 to enum type.
12862 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
12863 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
12864 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
12865 enum type.
12866 * config/s390/s390.c (code_for_builtin_64): Change to array of
12867 enum insn_code.
12868 (code_for_builtin_31): Likewise.
12869 (s390_expand_builtin): Change code_for_builtin to enum insn_code
12870 const *.
12871 * config/sparc/sparc.c (sparc_override_options): Change value
12872 field in struct code_model to enum cmodel. In initializer change
12873 0 to NULL and add cast to enum type.
12874
12875 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
12876 Change all callers. Issue a -Wc++-compat warning using
12877 lhs_origtype if necessary.
12878 (convert_for_assignment): Issue -Wc++-compat warnings about
12879 invalid conversions to enum type on assignment.
12880 * c-common.h (build_modify_expr): Update declaration.
12881
12882 2009-04-24 Nick Clifton <nickc@redhat.com>
12883
12884 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
12885 (function_arg_advance): Likewise.
12886 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
12887 5th alternative.
12888
12889 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
12890
12891 * config/s390/constraints.md ('I', 'J'): Fix condition.
12892
12893 2009-04-24 Diego Novillo <dnovillo@google.com>
12894
12895 * gengtype-parse.c (parse_error): Add newline after message.
12896
12897 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
12898
12899 * config/i386/sse.md (avxmodesuffixs): Removed.
12900 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
12901 (*avx_pinsr<ssevecsize>): This.
12902
12903 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
12904
12905 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
12906 follow chains of regs with a single definition, and allow expressions
12907 that are function_invariant_p.
12908 (simple_rhs_p): Allow expressions that are function_invariant_p.
12909
12910 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
12911
12912 PR middle-end/39867
12913 * fold-const.c (fold_cond_expr_with_comparison): When folding
12914 > and >= to MAX, make sure the MAX uses the same type as the
12915 comparison's operands.
12916
12917 2009-04-24 Nick Clifton <nickc@redhat.com>
12918
12919 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
12920 addressing for DImode accesses.
12921 (frv_print_operand_address): Handle PLUS case.
12922 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
12923
12924 2009-04-24 Jakub Jelinek <jakub@redhat.com>
12925
12926 PR rtl-optimization/39794
12927 * alias.c (canon_true_dependence): Add x_addr argument.
12928 * rtl.h (canon_true_dependence): Adjust prototype.
12929 * cse.c (check_dependence): Adjust canon_true_dependence callers.
12930 * cselib.c (cselib_invalidate_mem): Likewise.
12931 * gcse.c (compute_transp): Likewise.
12932 * dse.c (scan_reads_nospill): Likewise.
12933 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
12934 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
12935 canon_base_addr of the group, plus optional offset.
12936 (struct group_info): Rename canon_base_mem to
12937 canon_base_addr.
12938 (get_group_info): Set canon_base_addr to canon_rtx of base, not
12939 canon_rtx of base_mem.
12940
12941 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
12942
12943 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12944 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
12945
12946 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12947
12948 * config/spu/spu-builtins.h: Delete file.
12949
12950 * config/spu/spu.h (enum spu_builtin_type): Move here from
12951 spu-builtins.h.
12952 (struct spu_builtin_description): Likewise. Add GTY marker.
12953 Do not use enum spu_function_code or enum insn_code.
12954 (spu_builtins): Add extern declaration.
12955
12956 * config/spu/spu.c: Do not include "spu-builtins.h".
12957 (enum spu_function_code, enum spu_builtin_type_index,
12958 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
12959 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
12960 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
12961 unsigned_V2DI_type_node): Move here from spu-builtins.h.
12962 (spu_builtin_types): Make static. Add GTY marker.
12963 (spu_builtins): Add extern declaration with GTY marker.
12964 Include "gt-spu.h".
12965
12966 * config/spu/spu-c.c: Do not include "spu-builtins.h".
12967 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
12968 Check programmatically whether all parameters are scalar.
12969
12970 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
12971
12972 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
12973
12974 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
12975 assignment from the constructor either if the target is volatile.
12976
12977 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
12978
12979 * config/arm/arm.md (insv): Do not share operands[0].
12980
12981 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
12982
12983 * config/vxlib-tls.c (active_tls_threads): Delete.
12984 (delete_hook_installed): New.
12985 (tls_delete_hook): Don't delete the delete hook.
12986 (tls_destructor): Delete it here.
12987 (__gthread_set_specific): Adjust installing the delete hook.
12988 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
12989 __gthread_leave_tsd_dtor_context.
12990
12991 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
12992
12993 * c-format.c (gcc_tdiag_char_table): Add support for %E.
12994
12995 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
12996
12997 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
12998 enum type.
12999 (alpha_rtx_costs): Ditto.
13000 (emit_unlikely_jump): Use add_reg_note.
13001 (emit_frame_store_1): Ditto.
13002 (alpha_expand_prologue): Ditto.
13003 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13004 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
13005
13006 2009-04-23 Nick Clifton <nickc@redhat.com>
13007
13008 * config/v850/v850.md (epilogue): Remove suppressed code.
13009 (return): Rename to return_simple and remove test of frame size.
13010 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
13011 to gen_return_simple.
13012
13013 2009-04-22 Jing Yu <jingyu@google.com>
13014
13015 PR testsuite/39781
13016 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
13017
13018 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13019
13020 PR C/31499
13021 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
13022 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
13023 value is a VECTOR_CST, the element type is the element type of the
13024 vector.
13025
13026 2009-04-22 DJ Delorie <dj@redhat.com>
13027
13028 * config/m32c/m32c.h: Update GTY annotations to new syntax.
13029
13030 2009-04-22 Jakub Jelinek <jakub@redhat.com>
13031
13032 * alias.c (find_base_term): Move around LO_SUM case, so that
13033 CONST falls through into PLUS/MINUS handling.
13034
13035 PR c/39855
13036 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
13037 into 0, use omit_one_operand.
13038
13039 2009-04-23 Ben Elliston <bje@au.ibm.com>
13040
13041 * config/rs6000/linux-unwind.h (get_regs): Remove type
13042 puns. Change the type of `pc' to an array of unsigned ints and
13043 update all users. Constify frame24.
13044
13045 2009-04-22 DJ Delorie <dj@redhat.com>
13046
13047 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
13048 declarations before code.
13049 (current_function_special_page_vector): Likewise.
13050 (m32c_expand_insv): Silence a warning.
13051
13052 2009-04-21 Taras Glek <tglek@mozilla.com>
13053
13054 * alias.c: Update GTY annotations to new syntax.
13055 * basic-block.h: Likewise.
13056 * bitmap.h: Likewise.
13057 * c-common.h: Likewise.
13058 * c-decl.c: Likewise.
13059 * c-parser.c: Likewise.
13060 * c-pragma.c: Likewise.
13061 * c-tree.h: Likewise.
13062 * cfgloop.h: Likewise.
13063 * cgraph.h: Likewise.
13064 * config/alpha/alpha.c: Likewise.
13065 * config/arm/arm.h: Likewise.
13066 * config/avr/avr.h: Likewise.
13067 * config/bfin/bfin.c: Likewise.
13068 * config/cris/cris.c: Likewise.
13069 * config/darwin.c: Likewise.
13070 * config/frv/frv.c: Likewise.
13071 * config/i386/i386.c: Likewise.
13072 * config/i386/i386.h: Likewise.
13073 * config/i386/winnt.c: Likewise.
13074 * config/ia64/ia64.h: Likewise.
13075 * config/iq2000/iq2000.c: Likewise.
13076 * config/mips/mips.c: Likewise.
13077 * config/mmix/mmix.h: Likewise.
13078 * config/pa/pa.c: Likewise.
13079 * config/pa/pa.h: Likewise.
13080 * config/rs6000/rs6000.c: Likewise.
13081 * config/s390/s390.c: Likewise.
13082 * config/sparc/sparc.c: Likewise.
13083 * config/xtensa/xtensa.c: Likewise.
13084 * cselib.h: Likewise.
13085 * dbxout.c: Likewise.
13086 * dwarf2out.c: Likewise.
13087 * except.c: Likewise.
13088 * except.h: Likewise.
13089 * fixed-value.h: Likewise.
13090 * function.c: Likewise.
13091 * function.h: Likewise.
13092 * gimple.h: Likewise.
13093 * integrate.c: Likewise.
13094 * optabs.c: Likewise.
13095 * output.h: Likewise.
13096 * real.h: Likewise.
13097 * rtl.h: Likewise.
13098 * stringpool.c: Likewise.
13099 * tree-data-ref.c: Likewise.
13100 * tree-flow.h: Likewise.
13101 * tree-scalar-evolution.c: Likewise.
13102 * tree-ssa-address.c: Likewise.
13103 * tree-ssa-alias.h: Likewise.
13104 * tree-ssa-operands.h: Likewise.
13105 * tree.c: Likewise.
13106 * tree.h: Likewise.
13107 * varasm.c: Likewise.
13108 * varray.h: Likewise.
13109 * vec.h: Likewise.
13110 * coretypes.h: Do not define GTY macro if it is already defined.
13111 * doc/gty.texi: Update GTY documentation to new syntax.
13112 * gengtype-lex.l: Enforce attribute-like syntax for GTY
13113 annotations on structs.
13114 * gengtype-parse.c: Likewise.
13115
13116 2009-04-22 Mark Heffernan <meheff@google.com>
13117
13118 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
13119
13120 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
13121
13122 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
13123 where appropriate.
13124
13125 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
13126
13127 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
13128 the same as a PLUS without a shift. Increase the cost of a
13129 CONST_INT in MULT.
13130
13131 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13132
13133 * Makefile.in: Update dependencies.
13134 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
13135 * errors.h: Remove bogus comment about compatibility.
13136 (warning): Update declaration.
13137 * genautomata.c: Update all calls to warning.
13138 * gimple.c: Do not include errors.h. Include toplev.h.
13139 * tree-ssa-structalias.c: Do not include errors.h.
13140 * omega.c: Likewise.
13141 * tree-ssa-reassoc.c: Likewise.
13142 * config/spu/spu-c.c: Likewise.
13143 * config/spu/t-spu-elf: Update dependencies.
13144
13145 2009-04-22 Richard Guenther <rguenther@suse.de>
13146
13147 PR tree-optimization/39824
13148 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
13149 make sure the types are compatible.
13150
13151 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13152
13153 PR c++/14875
13154 * c-common.c (c_parse_error): Take a token_flags parameter.
13155 Use token_type for the token type instead.
13156 Pass token_flags to cpp_type2name.
13157 * c-common.h (c_parse_error): Update declaration.
13158 * c-parser.c (c_parser_error): Pass 0 as token flags.
13159
13160 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
13161
13162 PR rtl-optimization/39580
13163 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
13164
13165 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13166
13167 * function.c (expand_function_end): Do not emit a jump to the "naked"
13168 return label for fall-through returns.
13169 * except.c (sjlj_emit_function_exit): Always place the call to the
13170 unregister function at the location installed by expand_function_end.
13171
13172 2009-04-22 Richard Guenther <rguenther@suse.de>
13173
13174 PR tree-optimization/39845
13175 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
13176 (gen_inbound_check): Likewise.
13177
13178 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
13179
13180 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
13181 padding for PPC.
13182 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
13183 * config/vxlib.c (__gthread_once): Add race guard for PPC.
13184
13185 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13186
13187 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
13188 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
13189 shift counts to avoid out-of-bounds array accesses.
13190
13191 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13192
13193 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
13194 (Pmode): Move above.
13195
13196 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
13197
13198 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
13199 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
13200 GET_CODE macro. Use IN_RANGE macro where appropriate.
13201 * config/alpha/alpha.h: Ditto.
13202 * config/alpha/alpha.md: Ditto.
13203 * config/alpha/constraints.md: Ditto.
13204 * config/alpha/predicates.md: Ditto.
13205
13206 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13207
13208 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
13209 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13210 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13211 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13212 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13213 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13214 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13215 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13216 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13217 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13218 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13219 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13220 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13221 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13222 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13223 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13224 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13225 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13226 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13227 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13228 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13229 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13230 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13231 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13232 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13233 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13234 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13235
13236 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13237
13238 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
13239 references from comments.
13240 * cfgbuild.c: (count_basic_blocks): Delete.
13241 (find_basic_blocks_1): Delete.
13242 (find_basic_blocks): Delete.
13243 * except.c (finish_eh_generation): Make static. Move comment from
13244 except.h here. Remove find_basic_blocks references from comments.
13245 * except.h (finish_eh_generation): Delete.
13246 * basic-block.h (find_basic_blocks): Delete.
13247 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
13248
13249 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
13250
13251 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
13252 (sdbout_parms): Likewise.
13253
13254 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
13255
13256 * config/sh/sh.c (prepare_cbranch_operands): Use
13257 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
13258 (expand_cbranchdi4): Likewise.
13259 (from_compare): Add cast to enum type.
13260 (expand_cbranchsi4): Use add_reg_note.
13261 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
13262 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
13263 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
13264 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13265 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
13266 instead of CODE_FOR_nothing.
13267 (cbranchdi4): Likewise. Fix the order of arguments for
13268 gen_rtx_fmt_ee.
13269 (push_fpscr): Use add_reg_note.
13270 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
13271 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
13272
13273 2009-04-21 Joseph Myers <joseph@codesourcery.com>
13274
13275 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
13276 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13277 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13278 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
13279 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
13280 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
13281 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
13282 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
13283 config/alpha/x-vms, config/arc/t-arc,
13284 config/arm/README-interworking, config/arm/arm-c.c,
13285 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
13286 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
13287 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
13288 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
13289 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
13290 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
13291 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
13292 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
13293 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
13294 config/cris/t-elfmulti, config/crx/t-crx,
13295 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
13296 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
13297 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
13298 config/h8300/t-h8300, config/i386/athlon.md,
13299 config/i386/darwin-libgcc.10.4.ver,
13300 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
13301 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
13302 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
13303 config/i386/t-linux64, config/i386/t-nwld,
13304 config/i386/t-rtems-i386, config/i386/t-sol2-10,
13305 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
13306 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
13307 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
13308 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
13309 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
13310 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
13311 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
13312 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
13313 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
13314 config/m68k/t-uclinux, config/mcore/t-mcore,
13315 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
13316 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
13317 config/mips/crtn.asm, config/mips/irix-crti.asm,
13318 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
13319 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
13320 config/mips/mips-fixed.md, config/mips/sb1.md,
13321 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
13322 config/mips/t-iris6, config/mips/t-isa3264,
13323 config/mips/t-libgcc-mips16, config/mips/t-linux64,
13324 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
13325 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
13326 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
13327 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
13328 config/mn10300/t-linux, config/mn10300/t-mn10300,
13329 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
13330 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
13331 config/picochip/libgccExtras/clzsi2.asm,
13332 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
13333 config/rs6000/darwin-libgcc.10.4.ver,
13334 config/rs6000/darwin-libgcc.10.5.ver,
13335 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
13336 config/rs6000/t-aix43, config/rs6000/t-aix52,
13337 config/rs6000/t-darwin, config/rs6000/t-fprules,
13338 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
13339 config/rs6000/t-lynx, config/rs6000/t-netbsd,
13340 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
13341 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
13342 config/rs6000/t-rtems, config/rs6000/t-spe,
13343 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
13344 config/score/t-score-elf, config/sh/divcost-analysis,
13345 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
13346 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
13347 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
13348 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
13349 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
13350 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
13351 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
13352 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
13353 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
13354 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
13355 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
13356 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
13357 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
13358 limitx.h, version.c, xcoff.h: Add copyright and license notices.
13359 * config/h8300/genmova.sh: Include copyright and license notices
13360 in generated output.
13361 * config/h8300/mova.md: Regenerate.
13362 * doc/install.texi2html: Include word "Copyright" in copyright
13363 notice and use name "Free Software Foundation, Inc.".
13364 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13365 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13366 ChangeLog-2007, ChangeLog-2008: Correct dates.
13367
13368 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
13369
13370 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
13371 NE_EXPR operations as well.
13372 * c-parser.c (c_parser_condition): Do not set location information on
13373 the condition.
13374 (c_parser_conditional_expression): Likewise.
13375 (c_parser_binary_expression): Set location information on operators.
13376 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
13377 TRUTH_NOT_EXPR has been folded.
13378 * fold-const.c (fold_truth_not_expr): Copy location information from
13379 the incoming expression to the outgoing one.
13380 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
13381 recursive calls on the LHS of the operator but pass that of the
13382 operator to recursive calls on the RHS of the operator. Set it
13383 on the COND_EXPR.
13384 (shortcut_cond_expr): Set the locus of the operator on the second
13385 COND_EXPR and that of the expression on the first in degenerate cases.
13386 Pass the locus of the expression to calls to shortcut_cond_r.
13387 Set the locus of the 'then' block on the associated jump, if any.
13388 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
13389 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
13390 expression to call to gimplify_boolean_expr.
13391
13392 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
13393
13394 * config.gcc: Add additional configuration for
13395 i686-w64-mingw* and x86_64-w64-mingw* triplet.
13396 * config/i386/mingw-w64.h: New mingw-w64 specific header.
13397 (CPP_SPEC): Redefine for allowing -municode option.
13398 (STARTFILE_SPEC): Likewise.
13399 * config/i386/t-mingw-w64: New.
13400 * config/i386/mingw-w64.opt: New.
13401 (municode): Add new target option.
13402 * doc/invoke.texi (municode): Add documentation for new option.
13403
13404 2009-04-21 Ian Lance Taylor <iant@google.com>
13405
13406 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13407 Correct test for number of arguments.
13408 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13409
13410 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
13411
13412 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
13413 argument of emit_library_call.
13414
13415 2009-04-21 Richard Guenther <rguenther@suse.de>
13416
13417 PR middle-end/39829
13418 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
13419 inside VIEW_CONVERT_EXPRs.
13420
13421 2009-04-21 Martin Jambor <mjambor@suse.cz>
13422
13423 * tree-switch-conversion.c (build_constructors): Split a long line.
13424 (constructor_contains_same_values_p): New function.
13425 (build_one_array): Create assigns of constants if possible, do not
13426 call mark_sym_for_renaming, call update_stmt.
13427 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
13428 make_rename_temp. Do not call mark_symbols_for_renaming, call
13429 update_stmt.
13430 (gen_def_assigns): Do not call mark_symbols_for_renaming or
13431 find_new_referenced_vars, call update_stmt.
13432 (gen_inbound_check): Use create_tmp_var and create ssa names manually
13433 instead of calling make_rename_temp. Do not call
13434 find_new_referenced_vars or mark_symbols_for_renaming, call
13435 update_stmt.
13436
13437 2009-04-21 Richard Guenther <rguenther@suse.de>
13438
13439 PR tree-optimization/39827
13440 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
13441 (tree_ssa_phiprop): Pass the correct array size.
13442
13443 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
13444
13445 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
13446
13447 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13448
13449 PR 16202
13450 * c-typeck.c (lvalue_p): Move declaration ...
13451 * c-common.h (lvalue_p): ... to here.
13452 * c-common.c (candidate_equal_p): New.
13453 (add_tlist): Use it.
13454 (merge_tlist): Use it.
13455 (warn_for_collisions_1): Likewise.
13456 (warning_candidate_p): Accept more candidates.
13457 (verify_tree): A warning candidate can be an expression. Use
13458 candidate_equal_p.
13459
13460 2009-04-21 Ben Elliston <bje@au.ibm.com>
13461
13462 PR target/5267
13463 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13464 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
13465 options. Remove -mcall-solaris documentation.
13466
13467 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13468
13469 PR c++/13358
13470 * doc/invoke.texi (-Wlong-long): Update description.
13471 * c-lex (interpret_integer): Only warn if there was no previous
13472 overflow and -Wlong-long is enabled.
13473 * c-decl.c (declspecs_add_type): Drop redundant flags.
13474 * c.opt (Wlong-long): Init to -1.
13475 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
13476 and front-end warn_long_long. Wlong-long only depends on other
13477 flags if it is uninitialized.
13478 * c-parser.c (disable_extension_diagnostics): warn_long_long is
13479 the same for CPP and FE.
13480 (restore_extension_diagnostics): Likewise.
13481
13482 2009-04-20 Ian Lance Taylor <iant@google.com>
13483
13484 Fix enum conversions which are invalid in C++:
13485 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
13486 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
13487 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
13488 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
13489 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
13490 (dbxout_parms): Likewise.
13491 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
13492 (df_clear_flags): Likewise.
13493 * df-problems.c (df_rd_bb_local_compute_process_def): Change
13494 top_flag parameter to int.
13495 (df_chain_create_bb_process_use): Likewise.
13496 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
13497 Remove cast.
13498 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
13499 (df_ref_create_structure, df_def_record_1): Likewise.
13500 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
13501 (df_notes_rescan): Change 0 to VOIDmode in function call.
13502 (df_get_call_refs, df_insn_refs_collect): Likewise.
13503 (df_bb_regs_collect): Likewise.
13504 (df_entry_block_defs_collect): Likewise.
13505 (df_exit_block_uses_collect): Likewise.
13506 * df.h: Update declarations.
13507 * double-int.c (double_int_divmod): Add cast to enum type.
13508 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
13509 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
13510 (based_loc_descr): Likewise.
13511 (loc_descriptor_from_tree_1): Change first_op and second_op to
13512 enum dwarf_location_atom. Add cast to enum type.
13513 * expmed.c (init_expmed): Change 0 to SET in function call.
13514 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
13515 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
13516 (do_store_flag): Likewise.
13517 * fixed-value.h (struct fixed_value): Change mode to enum
13518 machine_mode.
13519 * function.c (assign_parms): Change 0 to VOIDmode in function call.
13520 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
13521 function call.
13522 (insert_insn_decl, insert_decl, insert_state): Likewise.
13523 (automata_list_finish): Likewise.
13524 * genrecog.c (process_define_predicate): Add cast to enum type.
13525 * gensupport.c (init_predicate_table): Add cast to enum type.
13526 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
13527 function call.
13528 (gimple_build_call_1, gimple_build_label): Likewise.
13529 (gimple_build_goto, gimple_build_asm_1): Likewise.
13530 (gimple_build_switch_1, gimple_build_cdt): Likewise.
13531 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
13532 (enum fallback): Rename from enum fallback_t.
13533 (fallback_t): Typedef as int.
13534 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
13535 GSI_SAME_STMT in function call.
13536 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
13537 enum type.
13538 (setup_reg_class_relations): Likewise.
13539 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
13540 (setup_prohibited_class_mode_regs): Add cast to enum type.
13541 (setup_prohibited_mode_move_regs): Likewise.
13542 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
13543 (record_address_regs): Change i to enum reg_class.
13544 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
13545 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
13546 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
13547 (GET_MODE_2XWIDER_MODE): Likewise.
13548 (GET_CLASS_NARROWEST_MODE): Likewise.
13549 * omp-low.c (expand_omp_for): Add cast to enum type.
13550 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
13551 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
13552 * postreload.c (reload_cse_simplify_operands): Change rclass local
13553 to enum reg_class.
13554 * predict.c (combine_predictions_for_insn): Change best_predictor
13555 and predictor to enum br_predictor.
13556 (combine_predictions_for_bb): Likewise.
13557 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
13558 use SET_PREDICT_EXPR_OUTCOME.
13559 * real.c (real_arithmetic): Change icode to code in function call.
13560 * reginfo.c (init_move_cost): Add casts to enum type.
13561 (init_reg_sets_1, init_fake_stack_mems): Likewise.
13562 * regmove.c (regclass_compatible_p): Change class0 and class1 to
13563 enum reg_class.
13564 * reload.c (find_valid_class): Add casts to enum type.
13565 (push_reload): Change 0 to NO_REGS in function call.
13566 (find_reloads): Change this_alternative to array of enum
13567 reg_class. Remove some now-unnecessary casts.
13568 (make_memloc): Change 0 to VOIDmode in function call.
13569 * reload1.c (reload): Change 0 to VOIDmode in function call.
13570 (eliminate_regs_1, elimination_effects): Likewise.
13571 (eliminate_regs_in_insn): Likewise.
13572 (emit_input_reload_insns): Add cast to enum type.
13573 (delete_output_reload): Change 0 to VOIDmode in function call.
13574 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
13575 to enum type in function call.
13576 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
13577 (SET_PREDICT_EXPR_OUTCOME): Define.
13578 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
13579 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
13580 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
13581 (dump_function): Likewise.
13582 * tree-dump.h: Update declarations.
13583 * tree-pass.h: Update declarations.
13584 * varasm.c (assemble_integer): Change mclass to enum mode_class.
13585 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
13586 enum type.
13587 (arm_rtx_costs_1): Correct parenthesization.
13588 (arm_rtx_costs): Add casts to enum type.
13589 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
13590 (vfp_emit_fstmd): Use add_rg_note.
13591 (emit_multi_reg_push, emit_sfm): Likewise.
13592 (thumb_set_frame_pointer): Likewise.
13593 (arm_expand_prologue): Likewise.
13594 (arm_regno_class): Change return type to enum reg_class.
13595 (thumb1_expand_prologue): Use add_reg_note.
13596 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
13597 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
13598 in function call.
13599 * config/arm/gentune.sh: Add cast to enum type.
13600 * config/arm/arm-tune.md: Rebuild.
13601 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
13602 (ix86_split_fp_branch, predict_jump): Likewise.
13603 (ix86_expand_multi_arg_builtin): Change sub_code from enum
13604 insn_code to enum rtx_code.
13605 (ix86_builtin_vectorized_function): Add cast to enum type.
13606 * config/i386/i386.md (truncdfsf2): Change slot to enum
13607 ix86_stack_slot.
13608 (truncxf<mode>2, isinf<mode>2): Likewise.
13609 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
13610 enum type.
13611 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
13612 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
13613 (insert_bundle_state): Change 1 to INSERT in function call.
13614 (ia64_add_bundle_selector_before): Likewise.
13615 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
13616 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
13617 (restore_stack_nonlocal): Likewise.
13618 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
13619 function call.
13620 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
13621 function call.
13622 (mips_rtx_costs): Likewise.
13623 (mips_override_options): Add casts to enum type.
13624 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
13625 in function call.
13626 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
13627 (store_reg, set_reg_plus_d): Likewise.
13628 (hppa_expand_prologue, hppa_profile_hook): Likewise.
13629 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
13630 cast to enum type.
13631 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
13632 function call.
13633 (emit_unlikely_jump): Use add_reg_note.
13634 (rs6000_emit_allocate_stack): Likewise.
13635 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
13636 (output_toc): Change 1 to INSERT in function call.
13637 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
13638 (rs6000_initialize_trampoline): Likewise.
13639 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
13640 function call.
13641 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
13642 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
13643 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
13644 (save_gprs): Use add_reg_note.
13645 (s390_emit_prologue): Likewise.
13646 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13647 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
13648 (sparc_fold_builtin): Add cast to enum type.
13649 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
13650 enum insn_code.
13651 (spu_expand_prologue): Use add_reg_note.
13652 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
13653
13654 2009-04-20 Ian Lance Taylor <iant@google.com>
13655
13656 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
13657 (c_parser_postfix_expression_after_primary): Get VEC for list of
13658 arguments. Get original types of arguments. Call
13659 build_function_call_vec.
13660 (cached_expr_list_1, cached_expr_list_2): New static variables.
13661 (c_parser_expr_list): Change return type to VEC *. Add
13662 p_orig_types parameter. Change all callers.
13663 (c_parser_release_expr): New static function.
13664 (c_parser_vec_to_tree_list): New static function.
13665 * c-typeck.c (build_function_call): Rewrite to build a VEC and
13666 call build_function_call_vec.
13667 (build_function_call_vec): New function, based on old
13668 build_function_call.
13669 (convert_arguments): Remove nargs and argarray parameters. Change
13670 values to a VEC. Add origtypes parameter.
13671 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
13672 (convert_for_assignment): Add origtype parameter. Change all
13673 callers. If warn_cxx_compat, check for conversion to an enum
13674 type when calling a function.
13675 (store_init_value): Add origtype parameter. Change all callers.
13676 (digest_init): Likewise.
13677 (struct init_node): Add origtype field.
13678 (add_pending_init): Add origtype parameter. Change all callers.
13679 (output_init_element): Likewise.
13680 (output_pending_init_elements): Pass origtype from init_node to
13681 output_init_element.
13682 (process_init_element): Pass origtype from c_expr to
13683 output_init_element.
13684 (c_finish_return): Add origtype parameter. Change all callers.
13685 * c-common.c (sync_resolve_size): Change params to VEC *. Change
13686 caller.
13687 (sync_resolve_params): Likewise.
13688 (sync_resolve_return): Change params to first_param. Change caller.
13689 (resolve_overloaded_builtins): Change params to VEC *. Change
13690 callers. Save first parameter around call to build_function_call_vec.
13691 * c-decl.c (finish_decl): Add origtype parameter. Change all
13692 callers. Call build_function_call_vec rather than
13693 build_function_call for cleanup.
13694 * c-tree.h: Update declarations.
13695 * c-common.h: Update declarations.
13696 * stub-objc.c (objc_rewrite_function_call): Change parameter from
13697 params to first_param.
13698 * target.h (struct gcc_target): Change resolve_overloaded_builtin
13699 params parameter from tree to void *.
13700 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13701 Change arglist parameter to have type void *, and to be a pointer
13702 to a VEC.
13703 * config/rs6000/rs6000-protos.h
13704 (altivec_resolve_overloaded_builtin): Update declaration.
13705 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
13706 fnargs parameter to have type void *, and to be a pointer to a
13707 VEC. Call build_function_call_vec instead of
13708 build_function_call.
13709 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
13710
13711 2009-04-20 Joey Ye <joey.ye@intel.com>
13712 Xuepeng Guo <xuepeng.guo@intel.com>
13713 H.J. Lu <hongjiu.lu@intel.com>
13714
13715 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
13716
13717 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
13718 (IX86_LEA_PRIORITY): Likewise.
13719 (distance_non_agu_define): New function.
13720 (distance_agu_use): Likewise.
13721 (ix86_lea_for_add_ok): Likewise.
13722 (ix86_dep_by_shift_count): Likewise.
13723
13724 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
13725 should split for LEA.
13726
13727 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
13728 function.
13729 (ix86_dep_by_shift_count): Likewise.
13730
13731 2009-04-20 Richard Guenther <rguenther@suse.de>
13732
13733 * expr.c (handled_component_p): Move ...
13734 * tree.h (handled_component_p): ... here.
13735 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
13736 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
13737 and REALPART_EXPR to be in one group.
13738
13739 2009-04-20 Richard Guenther <rguenther@suse.de>
13740
13741 * basic-block.h (get_all_dominated_blocks): Declare.
13742 * dominance.c (get_all_dominated_blocks): New function.
13743 * tree-cfg.c (get_all_dominated_blocks): Remove.
13744 (remove_edge_and_dominated_blocks): Adjust.
13745 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
13746 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
13747 instead of recursing.
13748
13749 2009-04-20 Doug Kwan <dougkwan@google.com>
13750
13751 * cgraph.h (cgraph_node_ptr): New type for vector functions.
13752 (struct cgraph_node_set_def): New type.
13753 (cgraph_node_set) New type. Also declare vector functions.
13754 (struct cgraph_node_set_element_def): New type.
13755 (cgraph_node_set_element): Ditto.
13756 (cgraph_node_set_iterator): New iterator type.
13757 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
13758 cgraph_node_set_remove, dump_cgraph_node_set,
13759 debug_cgraph_node_set): New prototypes.
13760 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
13761 cgraph_node_set_size): New inlines.
13762 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
13763 including cgraph.h.
13764 (struct ipa_opt_pass): Add struct cgraph_node_set_def
13765 argument to function 'write_summary'.
13766 * ipa.c: Include ggc.h.
13767 (hash_cgraph_node_set_element,
13768 eq_cgraph_node_set_element, cgraph_node_set_new,
13769 cgraph_node_set_add, cgraph_node_set_remove,
13770 cgraph_node_set_find, dump_cgraph_node_set,
13771 debug_cgraph_node_set): New functions.
13772 * Makefile.in (ipa.o): Add dependency on GGC_H.
13773
13774 2009-04-20 Ira Rosen <irar@il.ibm.com>
13775
13776 PR tree-optimization/39675
13777 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
13778 check of the return code of vect_schedule_slp. Check that
13779 stmt_vec_info still exists for the statement, before checking its
13780 vectorization type.
13781
13782 2009-04-20 Michael Matz <matz@suse.de>
13783
13784 * Makefile.in (generated_files): Take out $(simple_generated_c).
13785
13786 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
13787
13788 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
13789 (UINTPTR_TYPE): Likewise.
13790
13791 2009-04-19 Joseph Myers <joseph@codesourcery.com>
13792
13793 PR c/37481
13794 * c-typeck.c (digest_init): Check for initializing an array with a
13795 string literal.
13796
13797 2009-04-19 Joseph Myers <joseph@codesourcery.com>
13798
13799 PR c/19771
13800 * c-semantics.c (pop_stmt_list): Propagate
13801 STATEMENT_LIST_HAS_LABEL to parent statement list.
13802
13803 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
13804
13805 * config/mips/mips.h (mips_tune_attr): New macro.
13806 * config/mips/mips.md (cpu): Use it.
13807
13808 2009-04-19 Joseph Myers <joseph@codesourcery.com>
13809
13810 PR c/38243
13811 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
13812 declaring a tag.
13813
13814 2009-04-19 Diego Novillo <dnovillo@google.com>
13815
13816 * toplev.c (compile_file): Move call to coverage_finish ...
13817 * cgraphunit.c (ipa_passes): ... here.
13818 Call cgraph_process_new_functions.
13819 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
13820 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
13821
13822 2009-04-19 Jan Hubicka <jh@suse.cz>
13823
13824 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
13825 cfun.
13826 (dump_cgraph_node): Dump can throw external flag.
13827 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
13828
13829 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13830
13831 PR c/32061
13832 PR c++/36954
13833 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
13834 * common.opt (Wlogical-op): Move from here...
13835 * c.opt (Wlogical-op): ... to here.
13836 * c-typeck.c (parser_build_binary_op): Update call to
13837 warn_logical_operator.
13838 * c-opts.c (c_common_post_options): Enable warn_logical_op with
13839 extra_warnings.
13840 * c-common.c (warn_logical_op): Update.
13841 * c-common.h (warn_logical_op): Update declaration.
13842
13843 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
13844
13845 * tree.c (protected_set_expr_location): Fix formatting.
13846
13847 2009-04-18 Joseph Myers <joseph@codesourcery.com>
13848
13849 PR c/27676
13850 * c-typeck.c (readonly_warning): new.
13851 (build_unary_op, build_modify_expr): Use readonly_warning for
13852 storing into something readonly but not const-qualified.
13853
13854 2009-04-18 Joseph Myers <joseph@codesourcery.com>
13855
13856 PR c/22367
13857 * c-typeck.c (build_unary_op): Check for taking address of
13858 expression of type void.
13859
13860 2009-04-18 Joseph Myers <joseph@codesourcery.com>
13861
13862 PR c/35210
13863 * c-typeck.c (build_function_call): Check for calling a function
13864 with qualified void return types. Call require_complete_type when
13865 generating a trap.
13866
13867 2009-04-18 Jan Hubicka <jh@suse.cz>
13868
13869 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
13870 Set nothrow flag.
13871 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
13872 can_throw_external flag.
13873 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
13874 * ipa-pure-const.c (ignore_edge): New function.
13875 (propagate): Compute order for NOTHROW computation; set NOTHROWs
13876 only over can_throw_external edges.
13877 (local_pure_const): Add nothrow flag.
13878 * ipa-utils.c (searchc): Add ignore_edge callback.
13879 (ipa_utils_reduced_inorder): Add ignore_edge callback.
13880 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
13881 (set_nothrow_function_flags): Update cgraph.
13882 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
13883
13884 2009-04-18 Richard Guenther <rguenther@suse.de>
13885
13886 PR middle-end/39804
13887 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
13888 (fold_stmt): ... this and ...
13889 (fold_stmt_inplace): ... this.
13890 (fold_stmt_1): Fold references in calls and asms.
13891 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
13892
13893 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
13894
13895 * tree-vrp.c (ssa_name_nonzero_p): Remove.
13896 * tree.h: Remove the prototype for ssa_name_nonzero_p.
13897
13898 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
13899
13900 * tree.c (function_args_count): Remove.
13901 * tree.h: Remove the prototype for function_args_count.
13902
13903 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
13904
13905 * tree-iterator.c (expr_only): Remove.
13906 * tree.h: Remove the prototype for expr_only.
13907
13908 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
13909
13910 * reginfo.c (cannot_change_mode_set_regs): Remove.
13911 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
13912
13913 2009-04-08 Anatoly Sokolov <aesok@post.ru>
13914
13915 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
13916 whether operands 0 and 1 overlaps.
13917
13918 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13919
13920 PR middle-end/36902
13921 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
13922 pointer. Use warning_at instead of warning.
13923 (search_for_addr_array): Likewise.
13924 (check_array_bounds): Likewise.
13925 (check_all_array_refs): Check that the incoming edge is not in the
13926 list of edges to be removed.
13927 (check_all_array_refs): Avoid the temporal pointer.
13928 (vrp_visit_cond_stmt): Fix typo.
13929 (simplify_switch_using_ranges): Handle the case where the switch
13930 index is an integer constant.
13931
13932 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
13933
13934 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
13935
13936 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
13937
13938 * doc/extend.texi, doc/invoke.texi: Fix typos.
13939
13940 2009-04-17 Cary Coutant <ccoutant@google.com>
13941
13942 * tree-flow-inline.h (get_lineno): Fix inverted test.
13943
13944 2009-04-17 Diego Novillo <dnovillo@google.com>
13945
13946 * tree-ssa-pre.c (create_expression_by_pieces): Remove
13947 assertion for AVAIL_OUT.
13948
13949 2009-04-17 Mike Frysinger <vapier@gentoo.org>
13950
13951 PR target/38627
13952 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
13953 * config/sh/linux-atomic.asm: Likewise.
13954
13955 2009-04-17 Diego Novillo <dnovillo@google.com>
13956
13957 * except.c (debug_eh_tree): New.
13958 (struct eh_region, struct eh_status): Move ...
13959 * except.h: ... here.
13960 (add_type_for_runtime): Declare extern.
13961 (lookup_type_for_runtime): Likewise.
13962 (debug_eh_tree): Declare.
13963 * Makefile.in (GTFILES): List except.h before except.c
13964
13965 2009-04-17 Diego Novillo <dnovillo@google.com>
13966
13967 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
13968 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13969 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
13970 (find_vars_r): ... here.
13971 * tree-flow.h (find_referenced_vars_in): Declare.
13972 * tree-ssa-pre.c (create_expression_by_pieces): Assert
13973 that AVAIL_OUT exists for BLOCK.
13974 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
13975 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
13976 (tree-parloops.o): Likewise.
13977
13978 2009-04-17 Simon Baldwin <simonb@google.com>
13979
13980 * toplev.c (default_tree_printer): Add handling for %E format.
13981
13982 2009-04-17 Diego Novillo <dnovillo@google.com>
13983
13984 * tree-pretty-print.c (dump_generic_node): Add break after
13985 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
13986 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
13987 FUNCTION_TYPE together. Call print_struct_decl when printing
13988 structures and TDF_SLIM is not given.
13989 (print_struct_decl): Fix logic for detecting recursion.
13990
13991 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
13992
13993 PR 31567
13994 * gcc.c (create_at_file): New.
13995 (compile_input_file_p): New.
13996 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
13997 * main.c (main): Update call to toplev_main.
13998 * toplev.c (toplev_main): Change signature. Call expandargv.
13999 * toplev.h (toplev_main): Change signature.
14000
14001 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
14002
14003 * dwarf2out.c (field_byte_offset): Use the type size as the field size
14004 if the latter is not constant.
14005
14006 2009-04-17 David Edelsohn <edelsohn@gnu.org>
14007
14008 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
14009
14010 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
14011
14012 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
14013 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
14014
14015 2009-04-17 Richard Guenther <rguenther@suse.de>
14016
14017 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14018 Handle component references view-converting an invariant address.
14019
14020 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
14021
14022 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
14023 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
14024 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
14025 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
14026 Use @deftypevr rather than @deftypevar.
14027
14028 2009-04-17 Richard Guenther <rguenther@suse.de>
14029
14030 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
14031 (get_prop_source_stmt): Likewise.
14032 (can_propagate_from): Likewise.
14033
14034 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
14035
14036 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
14037 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
14038 (--with-multilib-list): Add default value.
14039 * configure: Regenerate.
14040 * Makefile.in (TM_ENDIAN_CONFIG): Define.
14041 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
14042 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
14043 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
14044 Don't add default cpu to multilib list unnecessarily, but do enable
14045 the relevant compiler option..
14046 Add support for --with-multilib-list=<blank> and
14047 --with-multilib-list=!<somelib> to supress unwanted multilibs.
14048 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
14049 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
14050 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
14051 TM_MULTILIB_CONFIG.
14052 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
14053 (MULTILIB_OSDIRNAMES): New variable.
14054 * config/sh/t-1e: Delete file.
14055 * config/sh/t-mlib-sh1: Delete file.
14056 * config/sh/t-mlib-sh2: Delete file.
14057 * config/sh/t-mlib-sh2a: Delete file.
14058 * config/sh/t-mlib-sh2a-nofpu: Delete file.
14059 * config/sh/t-mlib-sh2a-single: Delete file.
14060 * config/sh/t-mlib-sh2a-single-only: Delete file.
14061 * config/sh/t-mlib-sh2e: Delete file.
14062 * config/sh/t-mlib-sh3e: Delete file.
14063 * config/sh/t-mlib-sh4: Delete file.
14064 * config/sh/t-mlib-sh4-nofpu: Delete file.
14065 * config/sh/t-mlib-sh4-single: Delete file.
14066 * config/sh/t-mlib-sh4-single-only: Delete file.
14067 * config/sh/t-mlib-sh4a: Delete file.
14068 * config/sh/t-mlib-sh4a-nofpu: Delete file.
14069 * config/sh/t-mlib-sh4a-single: Delete file.
14070 * config/sh/t-mlib-sh4a-single-only: Delete file.
14071 * config/sh/t-mlib-sh4al: Delete file.
14072 * config/sh/t-mlib-sh5-32media: Delete file.
14073 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
14074 * config/sh/t-mlib-sh5-64media: Delete file.
14075 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
14076 * config/sh/t-mlib-sh5-compact: Delete file.
14077 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
14078 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
14079 * doc/install.texi (Options specification): Add
14080 --with-multilib-list and --with-endian.
14081
14082 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
14083
14084 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
14085 REVISION_c.
14086 (OBJS-common): Add plugin-version.o.
14087 (plugin-version.o): New.
14088 * gcc-plugin.h (plugin_gcc_version): New.
14089 (plugin_default_version_check): New.
14090 (plugin_init_func, plugin_init): Add version argument.
14091 * plugin-version.c: New.
14092 * plugin.c (str_plugin_gcc_version_name): New.
14093 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
14094 pass it to the init function.
14095 (plugin_default_version_check): New.
14096
14097 2009-04-17 Richard Guenther <rguenther@suse.de>
14098
14099 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
14100 for decl-vs-decl disambiguation.
14101
14102 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14103
14104 * config/s390/s390.h (s390_tune_attr): New macro definition.
14105 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
14106
14107 2009-04-17 Richard Guenther <rguenther@suse.de>
14108
14109 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
14110 (fold_stmt_r): Likewise.
14111 (maybe_fold_reference): New function.
14112 (fold_gimple_assign): Handle cases fold_stmt_r did.
14113 (fold_stmt): Do not use fold_stmt_r.
14114 (fold_stmt_inplace): Likewise.
14115
14116 2009-04-17 Richard Guenther <rguenther@suse.de>
14117
14118 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
14119 (record_equivalences_from_stmt): Remove useless checks and
14120 simplifications.
14121 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
14122 the type is already suitable.
14123
14124 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
14125
14126 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
14127
14128 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
14129
14130 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
14131 (CMPtype): Define as __gcc_CMPtype.
14132
14133 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
14134
14135 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
14136 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
14137
14138 2009-04-17 Richard Guenther <rguenther@suse.de>
14139
14140 PR tree-optimization/39746
14141 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
14142 special-casing for builtins and static variable use/def.
14143 (call_may_clobber_ref_p_1): Likewise.
14144
14145 2009-04-16 Ian Lance Taylor <iant@google.com>
14146
14147 * df.h: Include "timevar.h".
14148 (struct df_problem): Change tv_id field to timevar_id_t.
14149 * tree-pass.h: Include "timevar.h".
14150 (struct opt_pass): Change tv_id field to timevar_id_t.
14151 * timevar.h (timevar_id_t): Define TV_NONE.
14152 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
14153 TV_NONE rather than tv_id != 0.
14154 (execute_one_pass): Likewise.
14155 * Makefile.in (DF_H): Add $(TIMEVAR_H).
14156 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
14157 dependencies to $(TREE_PASS_H).
14158 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
14159 to TV_NONE.
14160 (pass_branch_target_load_optimize2): Likewise.
14161 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
14162 (pass_outof_cfg_layout_mode): Likewise.
14163 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
14164 (pass_rebuild_cgraph_edges): Likewise.
14165 (pass_remove_cgraph_callee_edges): Likewise.
14166 * df-core.c (pass_df_initialize_opt): Likewise.
14167 (pass_df_initialize_no_opt): Likewise.
14168 (pass_df_finish): Likewise.
14169 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
14170 * except.c (pass_set_nothrow_function_flags): Likewise.
14171 (pass_convert_to_eh_region_ranges): Likewise.
14172 * final.c (pass_compute_alignments): Likewise.
14173 * function.c (pass_instantiate_virtual_regs): Likewise.
14174 (pass_init_function): Likewise.
14175 (pass_leaf_regs): Likewise.
14176 (pass_match_asm_constraints): Likewise.
14177 * gimple-low.c (pass_lower_cf): Likewise.
14178 (pass_mark_used_blocks): Likewise.
14179 * init-regs.c (pass_initialize_regs): Likewise.
14180 * integrate.c (pass_initial_value_sets): Likewise.
14181 * ira.c (pass_ira): Likewise.
14182 * jump.c (pass_cleanup_barriers): Likewise.
14183 * omp-low.c (pass_expand_omp): Likewise.
14184 (pass_lower_omp): Likewise.
14185 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
14186 * recog.c (pass_split_all_insns): Likewise.
14187 (pass_split_after_reload): Likewise.
14188 (pass_split_before_regstack): Likewise.
14189 (pass_split_before_sched2): Likewise.
14190 (pass_split_for_shorten_branches): Likewise.
14191 * reginfo.c (pass_reginfo_init): Likewise.
14192 (pass_subregs_of_mode_init): Likewise.
14193 (pass_subregs_of_mode_finish): Likewise.
14194 * passes.c (pass_postreload): Likewise.
14195 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
14196 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
14197 (pass_warn_function_return): Likewise.
14198 (pass_warn_function_noreturn): Likewise.
14199 * tree-complex.c (pass_lower_complex): Likewise.
14200 (pass_lower_complex_O0): Likewise.
14201 * tree-if-conv.c (pass_if_conversion): Likewise.
14202 * tree-into-ssa.c (pass_build_ssa): Likewise.
14203 * tree-mudflap.c (pass_mudflap_1): Likewise.
14204 (pass_mudflap_2): Likewise.
14205 * tree-nomudflap.c (pass_mudflap_1): Likewise.
14206 (pass_mudflap_2): Likewise.
14207 * tree-nrv.c (pass_return_slot): Likewise.
14208 * tree-object-size.c (pass_object_sizes): Likewise.
14209 * tree-optimize.c (pass_all_optimizations): Likewise.
14210 (pass_early_local_passes): Likewise.
14211 (pass_all_early_optimizations): Likewise.
14212 (pass_cleanup_cfg): Likewise.
14213 (pass_cleanup_cfg_post_optimizing): Likewise.
14214 (pass_free_datastructures): Likewise.
14215 (pass_free_cfg_annotations): Likewise.
14216 (pass_fixup_cfg): Likewise.
14217 (pass_init_datastructures): Likewise.
14218 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
14219 (pass_late_warn_uninitialized): Likewise.
14220 (pass_update_address_taken): Likewise.
14221 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
14222 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
14223 (pass_cse_sincos): Likewise.
14224 (pass_convert_to_rsqrt): Likewise.
14225 * tree-ssa-structalias.c (pass_build_alias): Likewise.
14226 * tree-stdarg.c (pass_stdarg): Likewise.
14227 * tree-tailcall.c (pass_tail_recursion): Likewise.
14228 (pass_tail_calls): Likewise.
14229 * tree-vect-generic.c (pass_lower_vector): Likewise.
14230 (pass_lower_vector_ssa): Likewise.
14231 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
14232
14233 2009-04-16 Joseph Myers <joseph@codesourcery.com>
14234
14235 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
14236 XLR entry.
14237 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
14238 Handle -march=xlr.
14239 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
14240 logical and signext.
14241
14242 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
14243
14244 PR target/39767
14245 * config/sh/predicates.md (arith_operand): Check if the operand
14246 of TRUNCATE is a REG.
14247
14248 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14249
14250 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
14251 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
14252
14253 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14254
14255 * tree-iterator.c (tsi_split_statement_list_after,
14256 tsi_split_statement_list_before): Remove.
14257 * tree-iterator.h: Remove the prototypes for
14258 tsi_split_statement_list_after and tsi_split_statement_list_before.
14259
14260 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14261
14262 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
14263 * tree-ssa-propagate.h: Remove the prototype for
14264 stmt_makes_single_load.
14265
14266 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14267
14268 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
14269 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
14270
14271 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14272
14273 * tree-iterator.c (EXPR_LAST_BODY): Remove.
14274
14275 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14276
14277 * except.c (eh_region_outer_p): Remove.
14278 * except.h: Remove the prototype for eh_region_outer_p.
14279
14280 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14281
14282 * function.c (current_function_assembler_name): Remove.
14283 * function.h: Remove the prototype for
14284 current_function_assembler_name.
14285
14286 2009-04-16 Ian Lance Taylor <iant@google.com>
14287
14288 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
14289 (add_reg_note): Call alloc_reg_note.
14290 * rtl.h (alloc_reg_note): Declare.
14291 * combine.c (try_combine): Use alloc_reg_note.
14292 (recog_for_combine, move_deaths): Likewise.
14293 (distribute_notes): Use alloc_reg_note and add_reg_note.
14294 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
14295 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
14296 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
14297
14298 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
14299
14300 PR rtl-optimization/39762
14301 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
14302 ira_may_move_out_cost): Add comments about way of their usage.
14303 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
14304
14305 * ira-conflicts.c (process_regs_for_copy): Use function
14306 ira_get_register_move_cost instead of global
14307 ira_register_move_cost.
14308
14309 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
14310 color_pass, move_spill_restore, update_curr_costs): Ditto.
14311
14312 * ira-lives.c (process_single_reg_class_operands): Ditto.
14313
14314 * ira-emit.c (emit_move_list): Ditto.
14315
14316 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
14317 (record_reg_classes): Ditto. Use functions
14318 ira_get_register_move_cost and ira_get_may_move_cost instead of
14319 global vars ira_register_move_cost, ira_may_move_out_cost and
14320 ira_may_move_in_cost.
14321 (record_address_regs): Don't call ira_init_register_move_cost.
14322 Use function ira_get_may_move_cost instead of global
14323 ira_may_move_in_cost.
14324 (process_bb_node_for_hard_reg_moves): Use function
14325 ira_get_register_move_cost instead of global ira_register_move_cost.
14326 (ira_costs): Don't call ira_init_register_move_cost.
14327
14328 2009-04-16 Richard Guenther <rguenther@suse.de>
14329
14330 * tree-cfg.c (verify_gimple_assign_binary):
14331 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
14332 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
14333 (create_general_new_stmt): Note that this function is broken.
14334
14335 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14336
14337 * common.opt (fhelp): Add Var(help_flag).
14338 * gcc-plugin.h (plugin_info): Add help.
14339 * plugin.c (plugin_name_args): Add help.
14340 (register_plugin_info): Set plugin->help.
14341 (print_help_one_plugin): New.
14342 (print_plugins_help): New.
14343 * plugin.h (print_plugins_help): New.
14344 * toplev.c (toplev_main): Call print_plugins_help if needed.
14345
14346 2009-04-16 Richard Guenther <rguenther@suse.de>
14347
14348 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
14349 (gimple_ior_addresses_taken_1): New function.
14350 (gimple_ior_addresses_taken): Likewise.
14351 * gimple.h (struct gimple_statement_with_ops_base): Remove
14352 addresses_taken member.
14353 (gimple_ior_addresses_taken): Declare.
14354 (gimple_addresses_taken, gimple_addresses_taken_ptr,
14355 gimple_set_addresses_taken): Remove.
14356 * ipa-reference.c (mark_address): New function.
14357 (scan_stmt_for_static_refs): Use it for marking addresses taken.
14358 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
14359 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
14360 (gimple_add_to_addresses_taken): Remove.
14361 (get_tmr_operands): Call mark_address_taken.
14362 (get_asm_expr_operands): Likewise.
14363 (get_expr_operands): Likewise.
14364 (build_ssa_operands): Do not clear the addresses_taken bitmap.
14365 (free_stmt_operands): Do not free it.
14366 * tree-ssa.c (delete_tree_ssa): Likewise.
14367 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
14368
14369 2009-04-16 Richard Guenther <rguenther@suse.de>
14370
14371 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
14372 (walk_stmt_load_store_ops): Likewise.
14373 * gimple.c (get_base_loadstore): New function.
14374 (walk_stmt_load_store_addr_ops): Likewise.
14375 (walk_stmt_load_store_ops): Likewise.
14376 * ipa-pure-const.c (check_op): Simplify.
14377 (check_load, check_store): New functions.
14378 (check_stmt): Use walk_stmt_load_store_ops.
14379 * ipa-reference.c (mark_load): Adjust signature.
14380 (mark_store): Likewise.
14381 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
14382
14383 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14384
14385 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
14386 (plugin_info): New.
14387 * opts.c (common_handle_option): Don't call print_version.
14388 * plugin.c (plugin_name_args): Add version.
14389 (register_plugin_info): New.
14390 (register_callback): Handle PLUGIN_INFO.
14391 (try_init_one_plugin): New.
14392 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
14393 if failed to init.
14394 (finalize_one_plugin): New.
14395 (finalize_plugins): New.
14396 (print_one_plugin): New.
14397 (print_plugins_versions): New.
14398 * plugin.h (print_plugins_versions): New.
14399 (finalize_plugins): New.
14400 * toplev.c (compile_file): Don't call initialize_plugins.
14401 (print_version): Call print_plugins_versions.
14402 (toplev_main): Call initialize_plugins. Print version if needed.
14403 Call finalize_plugins.
14404
14405 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14406
14407 * common.opt (fversion): New.
14408 * gcc.c (print_version): New.
14409 (process_command): Don't print the version. Just set print_version.
14410 (main): Print version. Call subprocesses if print_version and
14411 verbose_flag are set.
14412 * opts.c (common_handle_option): Handle OPT_fversion.
14413
14414 2009-04-16 Richard Guenther <rguenther@suse.de>
14415 Ira Rosen <irar@il.ibm.com>
14416
14417 PR tree-optimization/39698
14418 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
14419 type of the reduction variable. Only generate the def if
14420 it is needed.
14421
14422 * omp-low.c (expand_omp_for_generic): When converting to a pointer
14423 make sure to first convert to an integer of the same precision.
14424 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
14425 the type of the evolution correctly in computing the new
14426 induction variable base.
14427
14428 2009-04-16 Richard Guenther <rguenther@suse.de>
14429
14430 PR middle-end/39625
14431 * tree-cfg.c (make_blocks): Split statements with to-be
14432 abnormal SSA names on the lhs.
14433
14434 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
14435
14436 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
14437 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
14438 * c-typeck.c (really_start_incremental_init): Likewise.
14439 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
14440 (TARGET_INITIALIZER): Remove it.
14441 * target.h (struct target): Remove vector_opaque_p.
14442 * tree.c (build_opaque_vector_type): New.
14443 * tree.h (TYPE_VECTOR_OPAQUE): New.
14444 (build_opaque_vector_type): Declare.
14445 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
14446 * config/rs6000/rs6000.c (build_opaque_vector_type,
14447 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
14448 (rs6000_init_builtins): Use build_opaque_vector_type for
14449 opaque_V4SI_type_node.
14450
14451 2009-04-15 Catherine Moore <clm@codesourcery.com>
14452
14453 * debug.h (set_name): Declare.
14454 * dwarf2out.c (dwarf2out_set_name): Declare.
14455 (dwarf2_debug_hooks): Add set_name.
14456 (find_AT_string): New.
14457 (add_AT_string): Call find_AT_string.
14458 (dwarf2out_set_name): New.
14459 * cp/decl.c (grokdeclarator): Call set_name.
14460 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
14461 * debug.c (do_nothing_debug_hooks): Likewise.
14462 * dbxout.c (dbx_debug_hooks): Likewise.
14463 * sdbout.c (sdb_debug_hooks): Likewise.
14464
14465 2009-04-15 Michael Eager <eager@eagercon.com>
14466
14467 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
14468 reg for single-precision FPU.
14469 * config/rs6000/rs6000.md (movsi_internal1): Only for
14470 !TARGET_SINGLE_FPU.
14471 (movsi_internal1_single): New. Add pattern to move SI values to/from
14472 single-precision FP regs.
14473
14474 2009-04-15 Richard Guenther <rguenther@suse.de>
14475
14476 * omp-low.c (lower_rec_input_clauses): Build correct address
14477 expressions.
14478 (expand_omp_for_generic): Fix multiplication type.
14479 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
14480 (generate_memset_zero): Fix types.
14481 * tree-profile.c (prepare_instrumented_value): Correctly
14482 widen a pointer.
14483
14484 2009-04-15 Ian Lance Taylor <iant@google.com>
14485
14486 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
14487 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
14488 for -Wall and for -Wc++-compat.
14489 (c_common_post_options): For C++, set warn_enum_compare if not
14490 already set.
14491 * c-tree.h (struct c_expr): Add field original_type.
14492 (build_external_ref): Update declaration.
14493 * c-parser.c (c_parser_braced_init): Set original_type.
14494 (c_parser_initelt): Likewise.
14495 (c_parser_expr_no_commas): Likewise.
14496 (c_parser_conditional_expression): Likewise.
14497 (c_parser_cast_expression): Likewise.
14498 (c_parser_unary_expression): Likewise. Pull setting of
14499 original_code to top of function.
14500 (c_parser_sizeof_expression): Set original_type.
14501 (c_parser_alignof_expression): Likewise.
14502 (c_parser_postfix_expression): Likewise. Pull setting of
14503 original_code to top of function.
14504 (c_parser_postfix_expression_after_paren_type): Set original_type.
14505 (c_parser_postfix_expression_after_primary): Likewise.
14506 (c_parser_expression): Likewise.
14507 * c-typeck.c (build_external_ref): Add type parameter. Change all
14508 callers.
14509 (c_expr_sizeof_expr): Set original_type field.
14510 (parser_build_unary_op): Likewise.
14511 (parser_build_binary_op): Likewise. Optionally warn about
14512 comparisons of enums of different types.
14513 (digest_init): Set original_type field.
14514 (really_start_incremental_init): Likewise.
14515 (push_init_level, pop_init_level): Likewise.
14516 * doc/invoke.texi (Warning Options): -Wenum-compare now
14517 supported in C.
14518
14519 2009-04-15 Richard Guenther <rguenther@suse.de>
14520
14521 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
14522 out a necessary conversion.
14523 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
14524 names we didn't value number.
14525 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
14526
14527 2009-04-15 Richard Guenther <rguenther@suse.de>
14528
14529 PR tree-optimization/39764
14530 * tree-ssa-ccp.c (get_value): Canonicalize value with
14531 canonicalize_float_value.
14532
14533 2009-04-15 Jan Hubicka <jh@suse.cz>
14534
14535 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
14536 Wrong version of patch.
14537
14538 2009-04-15 Jan Hubicka <jh@suse.cz>
14539
14540 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
14541
14542 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
14543
14544 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
14545 our distinct integral and vector types.
14546
14547 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
14548
14549 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
14550 * init.c (build_vtbl_address): Remove call to assemble_external.
14551
14552 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
14553
14554 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
14555 output for other floating point modes.
14556
14557 2009-04-14 Diego Novillo <dnovillo@google.com>
14558
14559 * diagnostic.c (diagnostic_report_diagnostic): Do not
14560 warn about loaded plugins for DK_ERROR and DK_WARNING.
14561 * c-decl.c (declspecs_add_type): Move call to
14562 invoke_plugin_callbacks ...
14563 * c-parser.c (c_parser_declspecs): ... here.
14564 * plugin.c (dump_active_plugins): Tidy output.
14565
14566 2009-04-14 Diego Novillo <dnovillo@google.com>
14567 Le-Chun Wu <lcwu@google.com>
14568
14569 * configure.ac: Add --enable-plugin support.
14570 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
14571 * Makefile.in (PLUGIN_H): Define.
14572 Export ENABLE_PLUGIN and GMPINC to site.exp.
14573 Add PLUGINLIBS to link command.
14574 Add/modify dependencies for plugin.o and files including plugin.h.
14575 (plugin.o): New.
14576 * config.in: Regenerate.
14577
14578 * opts.c (common_handle_option): Handle OPT_fplugin_ and
14579 OPT_fplugin_arg_.
14580
14581 2009-04-14 Le-Chun Wu <lcwu@google.com>
14582
14583 * tree-pass.h (register_one_dump_file): Add a prototype for
14584 register_one_dump_file.
14585 * toplev.c (compile_file): Call initialize_plugins.
14586 (do_compile): Call invoke_plugin_callbacks.
14587 (toplev_main): Call invoke_plugin_callbacks.
14588 * common.opt: Add -fplugin= and -fplugin-arg-.
14589 * gcc-plugin.h: New public header file for plugins to include.
14590 * plugin.c: New source file.
14591 * plugin.h: New internal header file.
14592 * passes.c (register_one_dump_file): Make it external.
14593
14594 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
14595
14596 2009-04-14 Diego Novillo <dnovillo@google.com>
14597
14598 * doc/plugins.texi: New.
14599 * doc/gccint.texi: Add reference to Plugins chapter.
14600 * doc/invoke.texi: Document -fplugin and -fplugin-arg
14601 * diagnostic.c (diagnostic_report_diagnostic): Warn about
14602 loaded plugins, if any.
14603 * timevar.def (TV_PLUGIN_INIT): Define.
14604 (TV_PLUGIN_RUN): Define.
14605 * plugin.c: Include timevar.h
14606 (plugins_active_p): New.
14607 (dump_active_plugins): New.
14608 (debug_active_plugins): New.
14609
14610 2009-04-14 Joseph Myers <joseph@codesourcery.com>
14611
14612 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
14613 library paths.
14614 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
14615
14616 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
14617
14618 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
14619 the same as a minus without a shift.
14620
14621 2009-04-14 Nick Clifton <nickc@redhat.com>
14622
14623 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
14624 comparisons with small integers will always produce a short
14625 branch.
14626
14627 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
14628
14629 Merge:
14630 2008-12-19 Diego Novillo <dnovillo@google.com>
14631
14632 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
14633
14634 2009-04-14 Richard Guenther <rguenther@suse.de>
14635
14636 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
14637 verification.
14638 (verify_gimple_assign_binary): Likewise. Handle shifts and
14639 rotates correctly.
14640 (verify_gimple_phi): Print the mismatched argument position.
14641 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
14642 Fix types.
14643 (vect_update_init_of_dr): Likewise.
14644 * matrix-reorg.c (transform_access_sites): Do what the
14645 comment suggests.
14646 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
14647
14648 2009-04-13 Michael Eager <eager@eagercon.com>
14649
14650 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
14651 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
14652 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
14653 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
14654 remove duplicate config
14655
14656 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14657
14658 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
14659 file_name:line_number type locator of the call site.
14660
14661 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
14662
14663 * genautomata.c: Put blank after comma.
14664 (automaton_decls): New.
14665 (struct unit_usage): Add comments to member next.
14666 (store_alt_unit_usage): Keep the list ordered.
14667 (unit_present_on_list_p, equal_alternatives_p): New.
14668 (check_regexp_units_distribution): Check units distribution
14669 correctness correctly.
14670 (main): Don't write automata if error is found. Return correct
14671 exit code.
14672
14673 * config/m68k/cf.md (cfv4_ds): Remove.
14674 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
14675 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
14676
14677 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
14678 power4-load-ext, power4-store, power4-store-update,
14679 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
14680 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
14681 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
14682 power4-sqrt, power4-isync): Modify reservation to make correct
14683 unit distribution to automata.
14684
14685 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
14686 power5-store-update, power5-two, power5-three, power5-lmul,
14687 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
14688
14689 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
14690
14691 * except.c (pass_set_nothrow_function_flags): Set name and add
14692 TODO_dump_func.
14693 (set_nothrow_function_flags): Mention in the dump file when
14694 changing a function to nothrow.
14695
14696 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
14697
14698 PR/39066
14699 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
14700 instead of unsigned long.
14701
14702 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14703
14704 * config/arm/arm.c (return_used_this_function): Remove.
14705 (arm_output_function_prologue): Remove use of
14706 return_used_this_function.
14707 (output_return_instruction): Replace use of
14708 return_used_this_function
14709 by cfun->machine->return_used_this_function.
14710 (arm_output_epilogue): Likewise.
14711 (arm_output_function_epilogue): Likewise.
14712 (thumb_unexpanded_epilogue): Likewise.
14713 * config/arm/arm.h (struct machine_function):
14714 New member return_used_this_function.
14715
14716 2009-04-12 Mark Mitchell <mark@codesourcery.com>
14717
14718 * doc/install.texi: Correct description of default directory for
14719 --with-gxx-include-dir.
14720
14721 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
14722
14723 * fold-const.c (build_range_check): Properly deal with enumeral and
14724 boolean base types.
14725
14726 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
14727
14728 * doc/invoke.texi (max_gcse_passes): Remove documentation.
14729 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
14730 * params.h (MAX_GCSE_PASSES): Remove.
14731 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
14732 in sequence. Remove ability to run multiple passes.
14733 (bypass_jumps): Report run as third CPROP pass.
14734
14735 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
14736
14737 PR middle-end/39651
14738 * except.c (can_throw_external): Look at each insn in a SEQUENCE
14739 when deciding whether the whole SEQUENCE can throw.
14740
14741 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
14742
14743 PR target/39740
14744 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
14745 offseted label references.
14746
14747 2009-04-11 Jan Hubicka <jh@suse.cz>
14748
14749 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
14750
14751 2009-04-11 Richard Guenther <rguenther@suse.de>
14752
14753 PR middle-end/39732
14754 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
14755 return variables as TREE_ADDRESSABLE.
14756
14757 2009-04-11 Richard Guenther <rguenther@suse.de>
14758
14759 PR tree-optimization/39713
14760 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
14761 reference trees have SSA_NAME operands.
14762
14763 2009-04-11 Richard Guenther <rguenther@suse.de>
14764
14765 PR c/39712
14766 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
14767 address expressions.
14768
14769 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
14770
14771 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
14772 match changes in Cygwin 1.7
14773 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
14774 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
14775
14776 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
14777
14778 PR tree-optimization/39701
14779 * doc/invoke.texi (Optimization Options): Document change in
14780 meaning and initialization of -fdelete-null-pointer-checks.
14781
14782 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
14783
14784 PR middle-end/39701
14785 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
14786
14787 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
14788 here.
14789
14790 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
14791
14792 2009-04-10 Chao-ying Fu <fu@mips.com>
14793
14794 * doc/tm.texi (Instruction Output): Document
14795 TARGET_ASM_FINAL_POSTSCAN_INSN.
14796 * target.h (final_postscan_insn): New field in asm_out.
14797 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
14798 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
14799 * final.c (final_scan_insn): Call
14800 targetm.asm_out.final_postscan_insn after outputting
14801 an asm macro and a normal instruction.
14802
14803 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
14804 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
14805 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
14806 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
14807 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
14808
14809 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
14810
14811 PR middle-end/39701
14812 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
14813 variables as non-NULL even with -fdelete-null-pointer-checks.
14814
14815 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
14816
14817 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
14818
14819 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
14820
14821 PR target/39678
14822 * config/i386/i386.c (classify_argument): Handle SCmode with
14823 (bit_offset % 64) != 0.
14824
14825 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
14826
14827 * doc/invoke.texi (Optimize Options): Add cross-reference to
14828 -Q --help=optimizers examples.
14829
14830 2009-04-10 Ben Elliston <bje@au.ibm.com>
14831
14832 PR target/36800
14833 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
14834 regalign for the reg == fpr and TDmode case.
14835
14836 2009-04-09 David Ayers <ayers@fsfe.org>
14837
14838 PR objc/29200
14839 * objc/objc-act.c (warn_with_method): Remove helper function.
14840 (check_duplicates): Call warning and inform directly.
14841 (really_start_method): Likewise.
14842
14843 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
14844
14845 * expmed.c (expand_divmod): Always use a comparison for a division
14846 by a large unsigned integer.
14847
14848 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
14849 for things others than variables or functions as nonzero.
14850
14851 2009-04-09 Nick Clifton <nickc@redhat.com>
14852
14853 * unwind-compat.c: Change copyright header to refer to version
14854 3 of the GNU General Public License with version 3.1 of the
14855 GCC Runtime Library Exception and to point readers at the
14856 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
14857 * config/alpha/crtfastmath.c: Likewise.
14858 * config/alpha/linux-unwind.h: Likewise.
14859 * config/alpha/qrnnd.asm: Likewise.
14860 * config/alpha/vms-crt0-64.c: Likewise.
14861 * config/alpha/vms-crt0.c: Likewise.
14862 * config/alpha/vms-dwarf2.asm: Likewise.
14863 * config/alpha/vms-dwarf2eh.asm: Likewise.
14864 * config/alpha/vms-psxcrt0-64.c: Likewise.
14865 * config/alpha/vms-psxcrt0.c: Likewise.
14866 * config/alpha/vms_tramp.asm: Likewise.
14867 * config/arc/initfini.c: Likewise.
14868 * config/arc/lib1funcs.asm: Likewise.
14869 * config/arm/bpabi-v6m.S: Likewise.
14870 * config/arm/bpabi.S: Likewise.
14871 * config/arm/bpabi.c: Likewise.
14872 * config/arm/crti.asm: Likewise.
14873 * config/arm/crtn.asm: Likewise.
14874 * config/arm/ieee754-df.S: Likewise.
14875 * config/arm/ieee754-sf.S: Likewise.
14876 * config/arm/lib1funcs.asm: Likewise.
14877 * config/arm/libunwind.S: Likewise.
14878 * config/arm/linux-atomic.c: Likewise.
14879 * config/arm/mmintrin.h: Likewise.
14880 * config/arm/pr-support.c: Likewise.
14881 * config/arm/unaligned-funcs.c: Likewise.
14882 * config/arm/unwind-arm.c: Likewise.
14883 * config/arm/unwind-arm.h: Likewise.
14884 * config/avr/libgcc.S: Likewise.
14885 * config/bfin/crti.s: Likewise.
14886 * config/bfin/crtlibid.s: Likewise.
14887 * config/bfin/crtn.s: Likewise.
14888 * config/bfin/lib1funcs.asm: Likewise.
14889 * config/bfin/linux-unwind.h: Likewise.
14890 * config/cris/arit.c: Likewise.
14891 * config/cris/cris_abi_symbol.c: Likewise.
14892 * config/darwin-64.c: Likewise.
14893 * config/darwin-crt2.c: Likewise.
14894 * config/darwin-crt3.c: Likewise.
14895 * config/darwin.h: Likewise.
14896 * config/dbxelf.h: Likewise.
14897 * config/dfp-bit.c: Likewise.
14898 * config/dfp-bit.h: Likewise.
14899 * config/elfos.h: Likewise.
14900 * config/fixed-bit.c: Likewise.
14901 * config/fixed-bit.h: Likewise.
14902 * config/fp-bit.c: Likewise.
14903 * config/fp-bit.h: Likewise.
14904 * config/fr30/crti.asm: Likewise.
14905 * config/fr30/crtn.asm: Likewise.
14906 * config/fr30/lib1funcs.asm: Likewise.
14907 * config/freebsd-spec.h: Likewise.
14908 * config/frv/cmovd.c: Likewise.
14909 * config/frv/cmovh.c: Likewise.
14910 * config/frv/cmovw.c: Likewise.
14911 * config/frv/frvbegin.c: Likewise.
14912 * config/frv/frvend.c: Likewise.
14913 * config/frv/lib1funcs.asm: Likewise.
14914 * config/glibc-stdint.h: Likewise.
14915 * config/h8300/clzhi2.c: Likewise.
14916 * config/h8300/crti.asm: Likewise.
14917 * config/h8300/crtn.asm: Likewise.
14918 * config/h8300/ctzhi2.c: Likewise.
14919 * config/h8300/fixunssfsi.c: Likewise.
14920 * config/h8300/lib1funcs.asm: Likewise.
14921 * config/h8300/parityhi2.c: Likewise.
14922 * config/h8300/popcounthi2.c: Likewise.
14923 * config/i386/ammintrin.h: Likewise.
14924 * config/i386/att.h: Likewise.
14925 * config/i386/avxintrin.h: Likewise.
14926 * config/i386/biarch64.h: Likewise.
14927 * config/i386/bmmintrin.h: Likewise.
14928 * config/i386/cpuid.h: Likewise.
14929 * config/i386/cross-stdarg.h: Likewise.
14930 * config/i386/crtfastmath.c: Likewise.
14931 * config/i386/crtprec.c: Likewise.
14932 * config/i386/cygming-crtbegin.c: Likewise.
14933 * config/i386/cygming-crtend.c: Likewise.
14934 * config/i386/cygwin.asm: Likewise.
14935 * config/i386/emmintrin.h: Likewise.
14936 * config/i386/gmm_malloc.h: Likewise.
14937 * config/i386/gthr-win32.c: Likewise.
14938 * config/i386/i386.h: Likewise.
14939 * config/i386/immintrin.h: Likewise.
14940 * config/i386/linux-unwind.h: Likewise.
14941 * config/i386/linux64.h: Likewise.
14942 * config/i386/mm3dnow.h: Likewise.
14943 * config/i386/mmintrin-common.h: Likewise.
14944 * config/i386/mmintrin.h: Likewise.
14945 * config/i386/nmmintrin.h: Likewise.
14946 * config/i386/pmm_malloc.h: Likewise.
14947 * config/i386/pmmintrin.h: Likewise.
14948 * config/i386/smmintrin.h: Likewise.
14949 * config/i386/sol2-c1.asm: Likewise.
14950 * config/i386/sol2-ci.asm: Likewise.
14951 * config/i386/sol2-cn.asm: Likewise.
14952 * config/i386/sol2-gc1.asm: Likewise.
14953 * config/i386/tmmintrin.h: Likewise.
14954 * config/i386/unix.h: Likewise.
14955 * config/i386/w32-unwind.h: Likewise.
14956 * config/i386/wmmintrin.h: Likewise.
14957 * config/i386/x86-64.h: Likewise.
14958 * config/i386/x86intrin.h: Likewise.
14959 * config/i386/xmmintrin.h: Likewise.
14960 * config/ia64/crtbegin.asm: Likewise.
14961 * config/ia64/crtend.asm: Likewise.
14962 * config/ia64/crtfastmath.c: Likewise.
14963 * config/ia64/crti.asm: Likewise.
14964 * config/ia64/crtn.asm: Likewise.
14965 * config/ia64/fde-glibc.c: Likewise.
14966 * config/ia64/lib1funcs.asm: Likewise.
14967 * config/ia64/linux-unwind.h: Likewise.
14968 * config/ia64/quadlib.c: Likewise.
14969 * config/ia64/unwind-ia64.c: Likewise.
14970 * config/linux.h: Likewise.
14971 * config/m32c/m32c-lib1.S: Likewise.
14972 * config/m32c/m32c-lib2-trapv.c: Likewise.
14973 * config/m32c/m32c-lib2.c: Likewise.
14974 * config/m32r/initfini.c: Likewise.
14975 * config/m68hc11/larith.asm: Likewise.
14976 * config/m68hc11/m68hc11-crt0.S: Likewise.
14977 * config/m68k/cf.md: Likewise.
14978 * config/m68k/crti.s: Likewise.
14979 * config/m68k/crtn.s: Likewise.
14980 * config/m68k/lb1sf68.asm: Likewise.
14981 * config/m68k/linux-unwind.h: Likewise.
14982 * config/mcore/crti.asm: Likewise.
14983 * config/mcore/crtn.asm: Likewise.
14984 * config/mcore/lib1.asm: Likewise.
14985 * config/mips/linux-unwind.h: Likewise.
14986 * config/mips/loongson.h: Likewise.
14987 * config/mips/mips16.S: Likewise.
14988 * config/mmix/crti.asm: Likewise.
14989 * config/mmix/crtn.asm: Likewise.
14990 * config/pa/fptr.c: Likewise.
14991 * config/pa/hpux-unwind.h: Likewise.
14992 * config/pa/lib2funcs.asm: Likewise.
14993 * config/pa/linux-atomic.c: Likewise.
14994 * config/pa/linux-unwind.h: Likewise.
14995 * config/pa/milli64.S: Likewise.
14996 * config/pa/quadlib.c: Likewise.
14997 * config/pa/stublib.c: Likewise.
14998 * config/picochip/libgccExtras/adddi3.asm: Likewise.
14999 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
15000 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
15001 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
15002 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
15003 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
15004 * config/picochip/libgccExtras/divmod15.asm: Likewise.
15005 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
15006 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
15007 * config/picochip/libgccExtras/longjmp.asm: Likewise.
15008 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
15009 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
15010 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
15011 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
15012 * config/picochip/libgccExtras/setjmp.asm: Likewise.
15013 * config/picochip/libgccExtras/subdi3.asm: Likewise.
15014 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
15015 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
15016 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
15017 * config/rs6000/750cl.h: Likewise.
15018 * config/rs6000/altivec.h: Likewise.
15019 * config/rs6000/biarch64.h: Likewise.
15020 * config/rs6000/crtresfpr.asm: Likewise.
15021 * config/rs6000/crtresgpr.asm: Likewise.
15022 * config/rs6000/crtresxfpr.asm: Likewise.
15023 * config/rs6000/crtresxgpr.asm: Likewise.
15024 * config/rs6000/crtsavfpr.asm: Likewise.
15025 * config/rs6000/crtsavgpr.asm: Likewise.
15026 * config/rs6000/darwin-asm.h: Likewise.
15027 * config/rs6000/darwin-fallback.c: Likewise.
15028 * config/rs6000/darwin-fpsave.asm: Likewise.
15029 * config/rs6000/darwin-ldouble.c: Likewise.
15030 * config/rs6000/darwin-tramp.asm: Likewise.
15031 * config/rs6000/darwin-unwind.h: Likewise.
15032 * config/rs6000/darwin-vecsave.asm: Likewise.
15033 * config/rs6000/darwin-world.asm: Likewise.
15034 * config/rs6000/e500crtres32gpr.asm: Likewise.
15035 * config/rs6000/e500crtres64gpr.asm: Likewise.
15036 * config/rs6000/e500crtres64gprctr.asm: Likewise.
15037 * config/rs6000/e500crtrest32gpr.asm: Likewise.
15038 * config/rs6000/e500crtrest64gpr.asm: Likewise.
15039 * config/rs6000/e500crtresx32gpr.asm: Likewise.
15040 * config/rs6000/e500crtresx64gpr.asm: Likewise.
15041 * config/rs6000/e500crtsav32gpr.asm: Likewise.
15042 * config/rs6000/e500crtsav64gpr.asm: Likewise.
15043 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15044 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
15045 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
15046 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
15047 * config/rs6000/eabi-ci.asm: Likewise.
15048 * config/rs6000/eabi-cn.asm: Likewise.
15049 * config/rs6000/eabi.asm: Likewise.
15050 * config/rs6000/linux-unwind.h: Likewise.
15051 * config/rs6000/linux64.h: Likewise.
15052 * config/rs6000/paired.h: Likewise.
15053 * config/rs6000/paired.md: Likewise.
15054 * config/rs6000/ppc64-fp.c: Likewise.
15055 * config/rs6000/ppu_intrinsics.h: Likewise.
15056 * config/rs6000/rs6000.h: Likewise.
15057 * config/rs6000/si2vmx.h: Likewise.
15058 * config/rs6000/sol-ci.asm: Likewise.
15059 * config/rs6000/sol-cn.asm: Likewise.
15060 * config/rs6000/spe.h: Likewise.
15061 * config/rs6000/spu2vmx.h: Likewise.
15062 * config/rs6000/sysv4.h: Likewise.
15063 * config/rs6000/tramp.asm: Likewise.
15064 * config/rs6000/vec_types.h: Likewise.
15065 * config/s390/linux-unwind.h: Likewise.
15066 * config/s390/tpf-unwind.h: Likewise.
15067 * config/score/crti.asm: Likewise.
15068 * config/score/crtn.asm: Likewise.
15069 * config/sh/crt1.asm: Likewise.
15070 * config/sh/crti.asm: Likewise.
15071 * config/sh/crtn.asm: Likewise.
15072 * config/sh/divtab-sh4-300.c: Likewise.
15073 * config/sh/divtab-sh4.c: Likewise.
15074 * config/sh/divtab.c: Likewise.
15075 * config/sh/lib1funcs-4-300.asm: Likewise.
15076 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
15077 * config/sh/lib1funcs.asm: Likewise.
15078 * config/sh/lib1funcs.h: Likewise.
15079 * config/sh/linux-atomic.asm: Likewise.
15080 * config/sh/linux-unwind.h: Likewise.
15081 * config/sh/shmedia.h: Likewise.
15082 * config/sh/sshmedia.h: Likewise.
15083 * config/sh/ushmedia.h: Likewise.
15084 * config/sparc/crtfastmath.c: Likewise.
15085 * config/sparc/linux-unwind.h: Likewise.
15086 * config/sparc/sol2-c1.asm: Likewise.
15087 * config/sparc/sol2-ci.asm: Likewise.
15088 * config/sparc/sol2-cn.asm: Likewise.
15089 * config/spu/divmodti4.c: Likewise.
15090 * config/spu/divv2df3.c: Likewise.
15091 * config/spu/float_disf.c: Likewise.
15092 * config/spu/float_unsdidf.c: Likewise.
15093 * config/spu/float_unsdisf.c: Likewise.
15094 * config/spu/float_unssidf.c: Likewise.
15095 * config/spu/mfc_multi_tag_release.c: Likewise.
15096 * config/spu/mfc_multi_tag_reserve.c: Likewise.
15097 * config/spu/mfc_tag_release.c: Likewise.
15098 * config/spu/mfc_tag_reserve.c: Likewise.
15099 * config/spu/mfc_tag_table.c: Likewise.
15100 * config/spu/multi3.c: Likewise.
15101 * config/spu/spu_internals.h: Likewise.
15102 * config/spu/spu_intrinsics.h: Likewise.
15103 * config/spu/spu_mfcio.h: Likewise.
15104 * config/spu/vec_types.h: Likewise.
15105 * config/spu/vmx2spu.h: Likewise.
15106 * config/stormy16/stormy16-lib2.c: Likewise.
15107 * config/svr4.h: Likewise.
15108 * config/sync.c: Likewise.
15109 * config/v850/lib1funcs.asm: Likewise.
15110 * config/vxlib-tls.c: Likewise.
15111 * config/vxlib.c: Likewise.
15112 * config/vxworks-dummy.h: Likewise.
15113 * config/xtensa/crti.asm: Likewise.
15114 * config/xtensa/crtn.asm: Likewise.
15115 * config/xtensa/ieee754-df.S: Likewise.
15116 * config/xtensa/ieee754-sf.S: Likewise.
15117 * config/xtensa/lib1funcs.asm: Likewise.
15118 * config/xtensa/lib2funcs.S: Likewise.
15119 * config/xtensa/linux-unwind.h: Likewise.
15120 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15121 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
15122 * coretypes.h: Likewise.
15123 * crtstuff.c: Likewise.
15124 * defaults.h: Likewise.
15125 * dwarf2.h: Likewise.
15126 * emutls.c: Likewise.
15127 * gbl-ctors.h: Likewise.
15128 * gcov-io.h: Likewise.
15129 * ginclude/float.h: Likewise.
15130 * ginclude/iso646.h: Likewise.
15131 * ginclude/stdarg.h: Likewise.
15132 * ginclude/stdbool.h: Likewise.
15133 * ginclude/stddef.h: Likewise.
15134 * ginclude/stdfix.h: Likewise.
15135 * ginclude/stdint-gcc.h: Likewise.
15136 * ginclude/tgmath.h: Likewise.
15137 * gthr-aix.h: Likewise.
15138 * gthr-dce.h: Likewise.
15139 * gthr-gnat.c: Likewise.
15140 * gthr-gnat.h: Likewise.
15141 * gthr-lynx.h: Likewise.
15142 * gthr-mipssde.h: Likewise.
15143 * gthr-nks.h: Likewise.
15144 * gthr-posix.c: Likewise.
15145 * gthr-posix.h: Likewise.
15146 * gthr-posix95.h: Likewise.
15147 * gthr-rtems.h: Likewise.
15148 * gthr-single.h: Likewise.
15149 * gthr-solaris.h: Likewise.
15150 * gthr-tpf.h: Likewise.
15151 * gthr-vxworks.h: Likewise.
15152 * gthr-win32.h: Likewise.
15153 * gthr.h: Likewise.
15154 * libgcc2.c: Likewise.
15155 * libgcc2.h: Likewise.
15156 * libgcov.c: Likewise.
15157 * tsystem.h: Likewise.
15158 * typeclass.h: Likewise.
15159 * unwind-c.c: Likewise.
15160 * unwind-compat.h: Likewise.
15161 * unwind-dw2-fde-compat.c: Likewise.
15162 * unwind-dw2-fde-darwin.c: Likewise.
15163 * unwind-dw2-fde-glibc.c: Likewise.
15164 * unwind-dw2-fde.c: Likewise.
15165 * unwind-dw2-fde.h: Likewise.
15166 * unwind-dw2.c: Likewise.
15167 * unwind-dw2.h: Likewise.
15168 * unwind-generic.h: Likewise.
15169 * unwind-pe.h: Likewise.
15170 * unwind-sjlj.c: Likewise.
15171 * unwind.inc: Likewise.
15172 * config/arm/neon-gen.ml: Change generated copyright header to
15173 refer to version 3 of the GNU General Public License with
15174 version 3.1 of the GCC Runtime Library Exception and to point
15175 readers at the COPYING3 and COPYING3.RUNTIME files and the
15176 FSF's license web page.
15177 * config/arm/arm_neon.h: Regenerate.
15178
15179 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15180
15181 * config/cris/cris.md: Change copyright header to refer to version
15182 3 of the GNU General Public License.
15183 * doc/install.texi2html: Change copyright header to refer to version
15184 3 of the GNU General Public License and to point readers at the
15185 COPYING3 file and the FSF's license web page.
15186 * config/vax/linux.h: Likewise.
15187
15188 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
15189
15190 * config/i386/i386.md (cmpcc): New.
15191 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
15192 (sync_compare_and_swap_cc*): Delete.
15193
15194 * config/s390/s390.c (s390_compare_emitted): Remove.
15195 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
15196 s390_compare_emitted used to be handled. Assert that modes match.
15197 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
15198 refer to sync_compare_and_swap_ccsi.
15199 * config/s390/s390.h (s390_compare_emitted): Remove.
15200 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
15201 instead of s390_compare_emitted.
15202 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
15203 instead of s390_compare_emitted.
15204 * config/s390/s390.md (cmpcc): New.
15205 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
15206 CC_REGNUM, do not pretend it's set.
15207 (sync_compare_and_swap_cc*): Delete.
15208 * config/s390/predicates.md (cc_reg_operand): New.
15209
15210 * expr.c (sync_compare_and_swap_cc): Delete.
15211 * optabs.h (sync_compare_and_swap_cc): Delete.
15212 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
15213 is being used with can_compare_p.
15214 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
15215 (find_cc_set): New.
15216 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
15217 look for a MODE_CC set instead. Use emit_store_flag.
15218 (expand_compare_and_swap_loop): Likewise, with some additional
15219 complication to avoid a force_reg when useless. Use
15220 emit_cmp_and_jump_insns.
15221 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
15222 * doc/md.texi (sync_compare_and_swap_cc): Merge with
15223 sync_compare_and_swap documentation.
15224
15225 2009-04-09 Jan Hubicka <jh@suse.cz>
15226
15227 * except.c (find_prev_try): Break out from ....
15228 (duplicate_eh_regions): ... here; properly update prev_try pointers
15229 when duplication part of tree.
15230 (dump_eh_tree): Improve dumping.
15231 (verify_eh_region): New.
15232 (verify_eh_tree): Use it.
15233
15234 2009-04-06 Richard Guenther <rguenther@suse.de>
15235
15236 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
15237 &ARRAY addresses by adjusting their types and prepending
15238 a conversion.
15239 * tree-cfg.c (verify_gimple_assign_single): Verify that
15240 addresses are correct.
15241
15242 2009-04-09 Richard Guenther <rguenther@suse.de>
15243
15244 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
15245 indices into an array reference if possible.
15246 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15247 Fold POINTER_PLUS_EXPR statements with invariant address.
15248
15249 2009-04-09 Alan Modra <amodra@bigpond.net.au>
15250
15251 PR target/39634
15252 * config.gcc (powerpc64-*-linux*): Always build biarch.
15253
15254 2009-04-09 Joseph Myers <joseph@codesourcery.com>
15255
15256 PR c/39613
15257 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
15258 it and pedwarn if this results in an INTEGER_CST.
15259
15260 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15261
15262 * doc/install.texi: Update minimum GMP version. Remove obsolete
15263 text in MPFR section.
15264
15265 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15266
15267 * dwarf2out.c (class_scope_p): New static inline.
15268 (class_or_namespace_scope_p): Use it.
15269 (gen_variable_die): Use DW_TAG_member tag for static data member
15270 declarations instead of DW_TAG_variable.
15271
15272 PR middle-end/39573
15273 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
15274 variables.
15275
15276 2009-04-08 Richard Guenther <rguenther@suse.de>
15277
15278 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
15279 valueize random data.
15280
15281 2009-04-08 David Edelsohn <edelsohn@gnu.org>
15282
15283 * config.gcc (aix tm_file): Add aix-stdint.h.
15284 (aix tm clause use_gcc_stdint): Set to wrap.
15285 * config/rs6000/aix-stdint.h: New file.
15286
15287 2009-04-08 Richard Guenther <rguenther@suse.de>
15288
15289 PR middle-end/36291
15290 * tree-dfa.c (add_referenced_var): Do not recurse into
15291 global initializers.
15292 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
15293 exposed variables.
15294 (fold_const_aggregate_ref): Likewise.
15295
15296 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
15297
15298 * recog.c (ordered_comparison_operator): New.
15299 * gensupport.c (std_preds): Add it.
15300 * doc/md.texi (Machine-Independent Predicates): Document it.
15301
15302 2009-04-08 Jan Hubicka <jh@suse.cz>
15303
15304 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
15305 * function.h (rtl_eh): Remove exception_handler_label_map.
15306 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
15307 remove_exception_handler_label, for_each_eh_label_1): Remove.
15308 (rtl_remove_unreachable_regions): Remove.
15309 (convert_from_eh_region_ranges): Do not remove unreachable regions.
15310 (find_exception_handler_labels): Don't build the hashtable.
15311 (maybe_remove_eh_handler): Remove.
15312 (for_each_eh_label): Rewrite to walk the tree.
15313 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
15314 * except.h (maybe_remove_eh_handler): Remove.
15315 * passes.c (init_optimization_passes): Schedule second EH cleanup
15316 before out-of-ssa.
15317 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
15318 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
15319
15320 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
15321
15322 * genoutput.c (validate_optab_operands): New.
15323 (gen_insn, gen_expand): Call it.
15324
15325 * genflags.c (gen_insn): Detect misused iterators.
15326 (main): Pass line_no to gen_insn, exit with status 1 on error.
15327
15328 * genextract.c (line_no): Make global.
15329 (VEC_safe_set_locstr): Change assertion to error message.
15330 (main): Exit with status 1 on error.
15331
15332 2009-04-08 Joseph Myers <joseph@codesourcery.com>
15333
15334 PR c/39614
15335 PR c/39673
15336 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
15337 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
15338 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
15339 * c-convert.c (convert): Do not call fold on results of conversion
15340 functions when the result is a C_MAYBE_CONST_EXPR.
15341 * c-parser.c (c_parser_postfix_expression): Do not fold condition
15342 of __builtin_choose_expr.
15343 * c-typeck.c (remove_c_maybe_const_expr): New.
15344 (build_unary_op, build_conditional_expr, build_compound_expr,
15345 build_binary_op, c_objc_common_truthvalue_conversion): Call
15346 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
15347 integer operands.
15348
15349 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
15350
15351 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
15352 CODE to produce a new one. Add a prototype to use fold_convert_const
15353
15354 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
15355
15356 PR bootstrap/39660
15357 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
15358 mix declarations and code.
15359
15360 2009-04-08 Ben Elliston <bje@au.ibm.com>
15361
15362 * gcc.c: Replace `CC' with `GCC' throughout.
15363
15364 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
15365
15366 * doc/invoke.texi: Document Atom support.
15367
15368 2009-04-07 Jason Merrill <jason@redhat.com>
15369
15370 PR c++/25185
15371 * c-common.h, c-common.c: Add flag_pretty_templates.
15372 * c-opts.c (c_common_handle_option): Set it.
15373 * c.opt: Add -fno-pretty-templates.
15374 * doc/invoke.texi (C++ Dialect Options): Likewise.
15375
15376 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
15377
15378 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
15379 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
15380 (ia64_expand_builtin): Likewise.
15381
15382 2009-04-07 Martin Jambor <mjambor@suse.cz>
15383
15384 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
15385 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
15386 ADDR_EXPRS are include too.
15387
15388 2009-04-07 Richard Guenther <rguenther@suse.de>
15389
15390 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
15391 decls are only used if passes as parameters or if they are
15392 local statics and the call is not to a builtin.
15393 (call_may_clobber_ref_p_1): Likewise.
15394
15395 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15396
15397 * expr.c (do_store_flag): Remove last argument. Simplify code
15398 to avoid duplication of tests already done by can_compare_p.
15399 (expand_expr_real_1): Adjust caller.
15400
15401 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15402
15403 * optabs.c (can_compare_p): Test the predicate of a
15404 cbranch and cstore pattern.
15405
15406 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15407
15408 * expr.c (convert_move): Use emit_store_flag instead of
15409 "emulating" it.
15410
15411 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15412
15413 * config/i386/i386.c (ix86_compare_emitted): Remove.
15414 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
15415 ix86_compare_op0 like ix86_compare_emitted used to be handled.
15416 * config/i386/i386.h (ix86_compare_emitted): Remove.
15417 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
15418 instead of ix86_compare_emitted.
15419 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
15420
15421 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
15422
15423 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
15424 Add t-sysroot-suffix to tmake_file.
15425 * config/print-sysroot-suffix.sh: New file.
15426 * config/t-sysroot-suffix: New file.
15427
15428 2009-04-07 Ben Elliston <bje@au.ibm.com>
15429
15430 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
15431 as the latter produces a warning when the target does not support
15432 infinity.
15433
15434 2009-04-07 Ben Elliston <bje@au.ibm.com>
15435
15436 * dfp.c: Replace type punning assignments with memcpy throughout.
15437 * Makefile.in (dfp.o-warn): Remove.
15438
15439 2009-04-07 Alan Modra <amodra@bigpond.net.au>
15440
15441 PR target/39634
15442 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
15443 Include soft-fp/t-softfp after rs6000/t-linux64.
15444
15445 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
15446
15447 * stor-layout.c (set_sizetype): Use the full precision of their
15448 machine mode for bitsize types.
15449
15450 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
15451
15452 * config/i386/i386.md: Revert 2 accidental checkins.
15453
15454 2009-04-06 Joey Ye <joey.ye@intel.com>
15455 Xuepeng Guo <xuepeng.guo@intel.com>
15456 H.J. Lu <hongjiu.lu@intel.com>
15457
15458 Atom pipeline model, tuning and insn selection.
15459 * config.gcc (atom): Add atom config options and target.
15460
15461 * config/i386/atom.md: New.
15462
15463 * config/i386/i386.c (atom_cost): New cost.
15464 (m_ATOM): New macro flag.
15465 (initial_ix86_tune_features): Set m_ATOM.
15466 (x86_accumulate_outgoing_args): Likewise.
15467 (x86_arch_always_fancy_math_387): Likewise.
15468 (processor_target): Add Atom cost.
15469 (cpu_names): Add Atom cpu name.
15470 (override_options): Set Atom ISA.
15471 (ix86_issue_rate): New case PROCESSOR_ATOM.
15472 (ix86_adjust_cost): Likewise.
15473
15474 * config/i386/i386.h (TARGET_ATOM): New target macro.
15475 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
15476 (TARGET_OPT_AGU): New target option.
15477 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
15478 (processor_type): Add PROCESSOR_ATOM.
15479
15480 * config/i386/i386.md (cpu): Add new value "atom".
15481 (use_carry, movu): New attr.
15482 (atom.md): Include atom.md.
15483 (adddi3_carry_rex64): Set attr "use_carry".
15484 (addqi3_carry): Likewise.
15485 (addhi3_carry): Likewise.
15486 (addsi3_carry): Likewise.
15487 (*addsi3_carry_zext): Likewise.
15488 (subdi3_carry_rex64): Likewise.
15489 (subqi3_carry): Likewise.
15490 (subhi3_carry): Likewise.
15491 (subsi3_carry): Likewise.
15492 (x86_movdicc_0_m1_rex64): Likewise.
15493 (*x86_movdicc_0_m1_se): Likewise.
15494 (x86_movsicc_0_m1): Likewise.
15495 (*x86_movsicc_0_m1_se): Likewise.
15496 (*adddi_1_rex64): Emit add insn as much as possible.
15497 (*addsi_1): Likewise.
15498 (return_internal): Set atom_unit.
15499 (return_internal_long): Likewise.
15500 (return_pop_internal): Likewise.
15501 (*rcpsf2_sse): Set atom_sse_attr attr.
15502 (*qrt<mode>2_sse): Likewise.
15503 (*prefetch_sse): Likewise.
15504
15505 * config/i386/i386-c.c (ix86_target_macros_internal): New case
15506 PROCESSOR_ATOM.
15507 (ix86_target_macros_internal): Likewise.
15508
15509 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
15510 (*prefetch_sse_rex): Likewise.
15511 (sse_rcpv4sf2): Likewise.
15512 (sse_vmrcpv4sf2): Likewise.
15513 (sse_sqrtv4sf2): Likewise.
15514 (<sse>_vmsqrt<mode>2): Likewise.
15515 (sse_ldmxcsr): Likewise.
15516 (sse_stmxcsr): Likewise.
15517 (*sse_sfence): Likewise.
15518 (sse2_clflush): Likewise.
15519 (*sse2_mfence): Likewise.
15520 (*sse2_lfence): Likewise.
15521 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
15522 (<sse>_movup<ssemodesuffixf2c>): Likewise.
15523 (avx_movdqu<avxmodesuffix>): Likewise.
15524 (avx_lddqu<avxmodesuffix>): Likewise.
15525 (sse2_movntv2di): Change attr "type" to "ssemov".
15526 (sse2_movntsi): Likewise.
15527 (rsqrtv8sf2): Change attr "type" to "sseadd".
15528 (sse3_addsubv2df3): Set attr "atom_unit".
15529 (sse3_h<plusminus_insn>v4sf3): Likewise.
15530 (*sse2_pmaddwd): Likewise.
15531 (*vec_extractv2di_1_rex64): Likewise.
15532 (*vec_extractv2di_1_avx): Likewise.
15533 (sse2_psadbw): Likewise.
15534 (ssse3_phaddwv8hi3): Likewise.
15535 (ssse3_phaddwv4hi3): Likewise.
15536 (ssse3_phadddv4si3): Likewise.
15537 (ssse3_phadddv2si3): Likewise.
15538 (ssse3_phaddswv8hi3): Likewise.
15539 (ssse3_phaddswv4hi3): Likewise.
15540 (ssse3_phsubwv8hi3): Likewise.
15541 (ssse3_phsubwv4hi3): Likewise.
15542 (ssse3_phsubdv4si3): Likewise.
15543 (ssse3_phsubdv2si3): Likewise.
15544 (ssse3_phsubswv8hi3): Likewise.
15545 (ssse3_phsubswv4hi3): Likewise.
15546 (ssse3_pmaddubsw128): Likewise.
15547 (sse3_pmaddubsw: Likewise.
15548 (ssse3_palignrti): Likewise.
15549 (ssse3_palignrdi): Likewise.
15550
15551 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
15552
15553 * doc/install.texi (Specific): Fix two cross-references to MinGW.
15554
15555 2009-04-06 Richard Guenther <rguenther@suse.de>
15556
15557 PR tree-optimization/28868
15558 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
15559 of which PHI results we inserted.
15560 (insert_into_preds_of_block): Record inserted PHIs.
15561 (eliminate): Eliminate redundant PHI nodes.
15562 (init_pre): Init inserted_phi_names.
15563
15564 2009-04-06 Richard Guenther <rguenther@suse.de>
15565
15566 PR tree-optimization/39643
15567 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
15568 IMAGPART_EXPRs of complex constants.
15569 (execute_fold_all_builtins): If we folded a call queue
15570 TODO_update_address_taken.
15571
15572 2009-04-06 Jan Hubicka <jh@suse.cz>
15573
15574 PR middle-end/39659
15575 * except.c (remove_unreachable_regions): Propagate may_contain_throw
15576 flag.
15577
15578 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
15579
15580 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
15581 delay slot.
15582 (ic_invalidate_array): Likewise.
15583
15584 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
15585
15586 * calls.c (emit_library_call_value_1): Fix a problem with parameter
15587 alignment for library calls.
15588
15589 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
15590
15591 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
15592 (mingw32 tm clause use_gcc_stdint): Set to wrap.
15593 * config/i386/mingw-stdint.h: New file.
15594
15595 2009-04-05 Richard Guenther <rguenther@suse.de>
15596
15597 PR tree-optimization/39648
15598 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
15599 our &A vs. &A[0] IL deficiencies.
15600
15601 2009-04-04 Jan Hubicka <jh@suse.cz>
15602
15603 * except.c (sjlj_find_directly_reachable_regions): Be ready for
15604 removed toplevel regions.
15605 (sjlj_mark_call_sites): Likewise.
15606
15607 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
15608
15609 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
15610 (cygwin tm clause use_gcc_stdint): Set to wrap.
15611 * config/i386/cygwin-stdint.h: New file.
15612
15613 2009-04-04 Richard Guenther <rguenther@suse.de>
15614
15615 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
15616 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
15617 single-argument PHIs if we are in loop-closed SSA form.
15618 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
15619 for the pre-condition.
15620 (slpeel_tree_peel_loop_to_edge): Likewise.
15621 (vect_build_loop_niters): Take an optional sequence to append stmts.
15622 (vect_generate_tmps_on_preheader): Likewise.
15623 (vect_do_peeling_for_loop_bound): Take extra guards for the
15624 pre-condition.
15625 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
15626 the cost model check.
15627 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
15628 guards if we are going to peel. Do not apply versioning in that case.
15629 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
15630 (vect_do_peeling_for_loop_bound): Likewise.
15631 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
15632 loop bound only record extra pre-conditions, do not apply loop
15633 versioning.
15634
15635 2009-04-04 Richard Guenther <rguenther@suse.de>
15636
15637 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
15638 renaming code.
15639
15640 2009-04-04 Jan Hubicka <jh@suse.cz>
15641
15642 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
15643 last_basic_block for size of bb->index indexed array.
15644 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
15645 compute_out, link_btr_uses, build_btr_def_use_webs,
15646 build_btr_def_use_webs, migrate_btr_defs): Likewise.
15647
15648 2009-04-04 Jan Hubicka <jh@suse.cz>
15649
15650 * except.c (remove_eh_handler_and_replace): Break out from ...
15651 (remove_eh_handler): ... here.
15652 (bring_to_root): New function.
15653 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
15654 handled ones, bring others to root of tree.
15655
15656 2009-04-04 Jan Hubicka <jh@suse.cz>
15657
15658 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
15659 (all_phis_safe_to_merge): New function.
15660 (update_info): New structure.
15661 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
15662 (cleanup_empty_eh): Update SSA if possible.
15663
15664 2009-04-04 Richard Guenther <rguenther@suse.de>
15665
15666 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
15667 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
15668 (append_vuse): Likewise.
15669
15670 2009-04-04 Jakub Jelinek <jakub@redhat.com>
15671
15672 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
15673 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
15674 instead of REG_UNSAVED for DW_CFA_undefined.
15675 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
15676 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
15677 outermost frame.
15678
15679 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
15680
15681 PR target/39501
15682 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
15683 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
15684 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
15685
15686 2009-04-04 Richard Guenther <rguenther@suse.de>
15687
15688 PR tree-optimization/8781
15689 PR tree-optimization/37892
15690 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
15691 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
15692 (valueize_refs): Call it for *& valueizations.
15693 (shared_reference_ops_from_ref): Rename to ...
15694 (valueize_shared_reference_ops_from_ref): ... this and valueize.
15695 (shared_reference_ops_from_call): Rename to ...
15696 (valueize_shared_reference_ops_from_call): ... this and valueize.
15697 (vn_reference_lookup): Update.
15698 (visit_reference_op_call): Likewise.
15699 * tree-ssa-pre.c (phi_translate_1): Fold *&.
15700 (eliminate): Value-replace the call address in call statements.
15701
15702 2009-04-04 Richard Guenther <rguenther@suse.de>
15703
15704 PR tree-optimization/39636
15705 * tree-ssa-forwprop.c
15706 (forward_propagate_addr_into_variable_array_index): Check for
15707 GIMPLE_ASSIGN before accessing the rhs code.
15708
15709 2009-04-03 Jason Merrill <jason@redhat.com>
15710
15711 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
15712
15713 2009-04-03 Steve Ellcey <sje@cup.hp.com>
15714
15715 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
15716 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
15717 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
15718 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
15719 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
15720 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
15721 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
15722 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
15723 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
15724 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
15725 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
15726 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
15727 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
15728 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
15729 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
15730 Use fr_reg_or_fp01_operand instead of fr_register_operand
15731
15732 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
15733 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
15734 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
15735
15736 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
15737
15738 PR rtl-optimization/39607
15739 PR rtl-optimization/39631
15740
15741 Revert:
15742
15743 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
15744 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
15745 instead of DF_LR_OUT.
15746 * ira-lives.c (process_bb_node_lives): Ditto.
15747 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
15748 instead of DF_LR_{OUT,IN}.
15749 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
15750 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
15751
15752 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
15753
15754 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
15755 (execute_lower_omp): Always run but take the short way out if -fopenmp
15756 is not given.
15757 (gate_lower_omp): Remove, forcing the pass manager to always run the
15758 pass and always set PROP_gimple_lomp.
15759 (pass_lower_omp): Remove gate function.
15760 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
15761 PROP_trees. Instead, require it.
15762 * ipa-cp.c (pass_ipa_cp): Likewise.
15763 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
15764 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
15765 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
15766 and PROP_gimple_leh.
15767
15768 2009-04-03 Richard Guenther <rguenther@suse.de>
15769
15770 PR middle-end/13146
15771 PR tree-optimization/23940
15772 PR tree-optimization/33237
15773 PR middle-end/33974
15774 PR middle-end/34093
15775 PR tree-optimization/36201
15776 PR tree-optimization/36230
15777 PR tree-optimization/38049
15778 PR tree-optimization/38207
15779 PR tree-optimization/38230
15780 PR tree-optimization/38301
15781 PR tree-optimization/38585
15782 PR middle-end/38895
15783 PR tree-optimization/38985
15784 PR tree-optimization/39299
15785 * tree-ssa-structalias.h: Remove.
15786 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
15787 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
15788 (struct vuse_element_d): Remove.
15789 (struct vuse_vec_d): Likewise.
15790 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
15791 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
15792 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
15793 VUSE_ELEMENT_VAR): Likewise.
15794 (struct voptype_d): Likewise.
15795 (NUM_VOP_FREE_BUCKETS): Likewise.
15796 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
15797 (struct stmt_operands_d): Remove.
15798 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
15799 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
15800 VDEF_NUM, VDEF_VECT): Likewise.
15801 (copy_virtual_operands): Remove.
15802 (operand_build_cmp): Likewise.
15803 (create_ssa_artificial_load_stmt): Likewise.
15804 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
15805 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
15806 vuse_index and mayuse_index members. Pack and move done and iter_type
15807 members to the front.
15808 (SSA_OP_VMAYUSE): Remove.
15809 (SSA_OP_VIRTUAL_USES): Adjust.
15810 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
15811 (unlink_stmt_vdef): Declare.
15812 (add_to_addressable_set): Remove.
15813 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
15814 (vrp_visit_stmt): Likewise.
15815 * doc/tree-ssa.texi (Alias analysis): Update.
15816 * doc/invoke.texi (max-aliased-vops): Remove docs.
15817 (avg-aliased-vops): Likewise.
15818 * tree-into-ssa.c (syms_to_rename): Remove.
15819 (need_to_update_vops_p): Likewise.
15820 (need_to_initialize_update_ssa_p): Rename to ...
15821 (update_ssa_initialized_fn): ... this. Track function we are
15822 initialized for.
15823 (symbol_marked_for_renaming): Simplify.
15824 (add_new_name_mapping): Do not set need_to_update_vops_p.
15825 (dump_currdefs): Use SYMS_TO_RENAME.
15826 (rewrite_update_stmt): Always walk all uses/defs.
15827 (dump_update_ssa): Adjust.
15828 (init_update_ssa): Take function argument. Track what we are
15829 initialized for.
15830 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
15831 (create_new_def_for): Initialize for cfun, assert we are initialized
15832 for cfun.
15833 (mark_sym_for_renaming): Simplify.
15834 (mark_set_for_renaming): Do not initialize update-ssa.
15835 (need_ssa_update_p): Simplify. Take function argument.
15836 (name_mappings_registered_p): Assert we ask for the correct function.
15837 (name_registered_for_update_p): Likewise.
15838 (ssa_names_to_replace): Likewise.
15839 (release_ssa_name_after_update_ssa): Likewise.
15840 (update_ssa): Likewise. Use SYMS_TO_RENAME.
15841 (dump_decl_set): Do not print a newline.
15842 (debug_decl_set): Do it here.
15843 (dump_update_ssa): And here.
15844 * tree-ssa-loop-im.c (move_computations): Adjust.
15845 (movement_possibility): Likewise.
15846 (determine_max_movement): Likewise.
15847 (gather_mem_refs_stmt): Likewise.
15848 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
15849 or NAME_MEMORY_TAG.
15850 * tree-complex.c (update_all_vops): Remove.
15851 (expand_complex_move): Adjust.
15852 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
15853 Simplify test for memory referencing statement. Exclude
15854 non-invariant ADDR_EXPRs.
15855 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
15856 * tree-loop-distribution.c (generate_memset_zero): Adjust.
15857 (rdg_flag_uses): Likewise.
15858 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
15859 related code.
15860 (tree_optimize_tail_calls_1): Also split the
15861 edge from the entry block if we have degenerate PHI nodes in
15862 the first basic block.
15863 * tree.c (init_ttree): Remove memory-tag related code.
15864 (tree_code_size): Likewise.
15865 (tree_node_structure): Likewise.
15866 (build7_stat): Re-write to be build6_stat.
15867 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
15868 (SSA_VAR_P): Adjust.
15869 (struct tree_memory_tag): Remove.
15870 (struct tree_memory_partition_tag): Likewise.
15871 (union tree_node): Adjust.
15872 (build7): Re-write to be build6.
15873 * tree-pass.h (pass_reset_cc_flags): Remove.
15874 (TODO_update_address_taken): New flag.
15875 (pass_simple_dse): Remove.
15876 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
15877 * params.h (MAX_ALIASED_VOPS): Remove.
15878 (AVG_ALIASED_VOPS): Likewise.
15879 * omp-low.c (expand_omp_taskreg): Update SSA form.
15880 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
15881 aliases the lhs in a copy stmt.
15882 * tree-ssa-dse.c (struct address_walk_data): Remove.
15883 (memory_ssa_name_same): Likewise.
15884 (memory_address_same): Likewise.
15885 (get_kill_of_stmt_lhs): Likewise.
15886 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
15887 unused stores. Look through PHI nodes into post-dominated regions.
15888 (dse_optimize_stmt): Simplify. Properly remove stores.
15889 (tree_ssa_dse): Compute dominators.
15890 (execute_simple_dse): Remove.
15891 (pass_simple_dse): Likewise.
15892 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
15893 gimple_loaded_syms and gimple_stored_syms computation.
15894 * toplev.c (dump_memory_report): Dump alias and pta stats.
15895 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
15896 (vn_reference_eq): Likewise.
15897 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
15898 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
15899 valueize_vuses): Remove.
15900 (get_def_ref_stmt_vuses): Simplify. Rename to ...
15901 (get_def_ref_stmt_vuse): ... this.
15902 (vn_reference_lookup_2): New function.
15903 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
15904 walking equivalent vuses. Simplify.
15905 (vn_reference_lookup): Likewise.
15906 (vn_reference_insert): Likewise.
15907 (vn_reference_insert_pieces): Likewise.
15908 (visit_reference_op_call): Simplify.
15909 (visit_reference_op_load): Likewise.
15910 (visit_reference_op_store): Likewise.
15911 (init_scc_vn): Remove shared_lookup_vuses initialization.
15912 (free_scc_vn): Remove shared_lookup_vuses freeing.
15913 (sort_vuses, sort_vuses_heap): Remove.
15914 (get_ref_from_reference_ops): Export.
15915 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
15916 vector with single vuse pointer.
15917 (vn_reference_lookup_pieces, vn_reference_lookup,
15918 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
15919 (shared_vuses_from_stmt): Remove.
15920 (get_ref_from_reference_ops): Declare.
15921 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
15922 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15923 memory-tag related code.
15924 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
15925 (likely_value): Add comment, skip static-chain of call statements.
15926 (surely_varying_stmt_p): Adjust.
15927 (gimplify_and_update_call_from_tree): Likewise.
15928 (execute_fold_all_builtins): Do not rebuild alias info.
15929 (gimplify_and_update_call_from_tree): Properly update VOPs.
15930 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
15931 (copy_ref_info): Remove memory-tag related code.
15932 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
15933 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
15934 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
15935 computation.
15936 * tree-ssa-dom.c (gimple_p): Remove typedef.
15937 (eliminate_redundant_computations): Adjust.
15938 (record_equivalences_from_stmt): Likewise.
15939 (avail_expr_hash): Likewise.
15940 (avail_expr_eq): Likewise.
15941 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
15942 (stmt_makes_single_load): Likewise.
15943 (stmt_makes_single_store): Likewise.
15944 * tree-ssa-alias.c: Rewrite completely.
15945 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
15946 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
15947 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
15948 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
15949 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
15950 Remove public functions.
15951 (pass_reset_cc_flags): Remove.
15952 (pass_build_alias): Move ...
15953 * tree-ssa-structalias.c (pass_build_alias): ... here.
15954 * tree-ssa-alias.c (may_be_aliased): Move ...
15955 * tree-flow-inline.h (may_be_aliased): ... here.
15956 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
15957 count_uses_and_derefs): Move ...
15958 * gimple.c: ... here.
15959 * gimple.h (count_uses_and_derefs): Declare.
15960 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
15961 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
15962 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
15963 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
15964 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
15965 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
15966 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
15967 New functions.
15968 * tree-dfa.c (refs_may_alias_p): Move ...
15969 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
15970 * tree-ssa-alias.h: New file.
15971 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
15972 (statement_sink_location): Likewise.
15973 * opts.c (decode_options): Do not adjust max-aliased-vops or
15974 avg-aliased-vops values.
15975 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
15976 (TV_CALL_CLOBBER): Likewise.
15977 (TV_FLOW_SENSITIVE): Likewise.
15978 (TV_FLOW_INSENSITIVE): Likewise.
15979 (TV_MEMORY_PARTITIONING): Likewise.
15980 (TV_ALIAS_STMT_WALK): New timevar.
15981 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
15982 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
15983 (get_address_description): Remove memory-tag related code.
15984 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
15985 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
15986 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
15987 and immediate uses in statements. Document.
15988 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
15989 (dump_symbols): Remove.
15990 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
15991 * alias.c (get_deref_alias_set): New function split out from ...
15992 (get_alias_set): ... here.
15993 * alias.h (get_deref_alias_set): Declare.
15994 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
15995 type parameter. Remove restrict pointer handling. Create a
15996 ref-all pointer in case type-based alias sets do not conflict.
15997 (vect_analyze_data_refs): Remove SMT related code.
15998 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
15999 (vectorizable_load): Likewise.
16000 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
16001 (DR_SYMBOL_TAG, DR_VOPS): Remove.
16002 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
16003 Ignore vops and SMTs.
16004 (dr_analyze_alias): Likewise..
16005 (free_data_ref): Likewise.
16006 (create_data_ref): Likewise.
16007 (analyze_all_data_dependences): Likewise.
16008 (get_references_in_stmt): Adjust.
16009 * tree-flow-inline.h (gimple_aliases_computed_p,
16010 gimple_addressable_vars, gimple_call_clobbered_vars,
16011 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
16012 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
16013 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
16014 gimple_mem_ref_stats): Remove.
16015 (gimple_vop): New function.
16016 (op_iter_next_use): Remove vuses and mayuses cases.
16017 (op_iter_next_def): Remove vdefs case.
16018 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
16019 (clear_and_done_ssa_iter): Do not set removed fields.
16020 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
16021 Assert we are not iterating over vuses or vdefs if not also
16022 iterating over uses or defs.
16023 (op_iter_init_use): Likewise.
16024 (op_iter_init_def): Likewise.
16025 (op_iter_next_vdef): Remove.
16026 (op_iter_next_mustdef): Likewise.
16027 (op_iter_init_vdef): Likewise.
16028 (compare_ssa_operands_equal): Likewise.
16029 (link_use_stmts_after): Handle vuse operand.
16030 (is_call_used): Use is_call_clobbered.
16031 (is_call_clobbered): Global variables are always call clobbered,
16032 query the call-clobbers bitmap.
16033 (mark_call_clobbered): Ignore global variables.
16034 (clear_call_clobbered): Likewise.
16035 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
16036 virtual operands sanity check.
16037 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
16038 Remove.
16039 (TARGET_MEM_REF): Remove TMR_TAG operand.
16040 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
16041 Remove call-clobber related code.
16042 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
16043 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
16044 partitions or escape reason.
16045 (get_single_def_stmt, get_single_def_stmt_from_phi,
16046 get_single_def_stmt_with_phi): Remove.
16047 (dump_referenced_vars): Tidy.
16048 (get_ref_base_and_extent): Allow bare decls.
16049 (collect_dfa_stats): Adjust.
16050 * graphite.c (rename_variables_in_stmt): Adjust.
16051 (graphite_copy_stmts_from_block): Likewise.
16052 (translate_clast): Likewise.
16053 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
16054 (EXPR_DIES): New.
16055 (translate_vuse_through_block): Use the oracle.
16056 (phi_translate_1): Adjust.
16057 (value_dies_in_block_x): Use the oracle. Cache the outcome
16058 in EXPR_DIES.
16059 (valid_in_sets): Check if the VUSE for
16060 a REFERENCE is available.
16061 (eliminate): Do not remove stmts during elimination,
16062 instead queue and remove them afterwards.
16063 (do_pre): Do not rebuild alias info.
16064 (pass_pre): Run TODO_rebuild_alias before PRE.
16065 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
16066 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
16067 (mark_all_v_defs_stmt): Remove.
16068 (mark_all_v_defs_seq): Adjust.
16069 (sra_replace): Likewise.
16070 (scalarize_use): Likewise.
16071 (scalarize_copy): Likewise.
16072 (scalarize_init): Likewise.
16073 (scalarize_ldst): Likewise.
16074 (todoflags): Remove.
16075 (tree_sra): Do not rebuild alias info.
16076 (tree_sra_early): Adjust.
16077 (pass_sra): Run TODO_update_address_taken before SRA.
16078 * tree-predcom.c (set_alias_info): Remove.
16079 (prepare_initializers_chain): Do not call it.
16080 (mark_virtual_ops_for_renaming): Adjust.
16081 (mark_virtual_ops_for_renaming_list): Remove.
16082 (initialize_root_vars): Adjust.
16083 (initialize_root_vars_lm): Likewise.
16084 (prepare_initializers_chain): Likewise.
16085 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
16086 (may_propagate_copy_into_stmt): Likewise.
16087 (merge_alias_info): Do nothing for now.
16088 (propagate_tree_value_into_stmt): Adjust.
16089 (stmt_may_generate_copy): Likewise.
16090 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
16091 not mark symbols for renaming.
16092 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
16093 with the same statement, make sure to update the new pointed-to one.
16094 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
16095 call statements, do not mark symbols for renaming.
16096 (mark_operand_necessary): Dump something.
16097 (ref_may_be_aliased): New function.
16098 (mark_aliased_reaching_defs_necessary_1): New helper function.
16099 (mark_aliased_reaching_defs_necessary): Likewise.
16100 (mark_all_reaching_defs_necessary_1): Likewise.
16101 (mark_all_reaching_defs_necessary): Likewise.
16102 (propagate_necessity): Do not process virtual PHIs. For
16103 non-aliased loads mark all reaching definitions as necessary.
16104 For aliased loads and stores mark the immediate dominating
16105 aliased clobbers as necessary.
16106 (visited): New global static.
16107 (perform_tree_ssa_dce): Free visited bitmap after propagating
16108 necessity.
16109 (remove_dead_phis): Perform simple dead virtual PHI removal.
16110 (remove_dead_stmt): Properly unlink virtual operands when
16111 removing stores.
16112 (eliminate_unnecessary_stmts): Schedule PHI removal after
16113 stmt removal.
16114 * tree-ssa-ter.c (is_replaceable_p): Adjust.
16115 (process_replaceable): Likewise.
16116 (find_replaceable_in_bb): Likewise.
16117 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
16118 based on the single gimple vop.
16119 (verify_flow_insensitive_alias_info): Remove.
16120 (verify_flow_sensitive_alias_info): Likewise.
16121 (verify_call_clobbering): Likewise.
16122 (verify_memory_partitions): Likewise.
16123 (verify_alias_info): Likewise.
16124 (verify_ssa): Adjust..
16125 (execute_update_addresses_taken): Export. Update SSA
16126 manually. Optimize only when optimizing. Use a local bitmap.
16127 (pass_update_address_taken): Remove TODO_update_ssa, add
16128 TODO_dump_func.
16129 (pass_update_address_taken): Just use TODO_update_address_taken.
16130 (init_tree_ssa): Do not initialize addressable_vars.
16131 (verify_ssa): Verify new VUSE / VDEF properties.
16132 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
16133 Do not call verify_alias_info.
16134 (delete_tree_ssa): Clear the VUSE, VDEF operands.
16135 Do not free the loaded and stored syms bitmaps. Reset the escaped
16136 and callused solutions. Do not free addressable_vars.
16137 Remove memory-tag related code.
16138 (warn_uninitialized_var): Aliases are always available.
16139 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
16140 * lambda-code.c (can_put_in_inner_loop): Adjust.
16141 (can_put_after_inner_loop): Likewise.
16142 (perfect_nestify): Likewise.
16143 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
16144 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
16145 (vectorizable_conversion): Do not mark symbols for renaming.
16146 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
16147 (expand_call_inline): Unlink the calls virtual operands before
16148 replacing it.
16149 (tree_function_versioning): Do not call update_ssa if we are not
16150 updating clones. Simplify.
16151 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
16152 (propagate_with_phi): Likewise..
16153 * tree-outof-ssa.c (create_temp): Remove memory tag and call
16154 clobber code. Assert we are not aliased or global.
16155 * tree-flow.h: Include tree-ssa-alias.h
16156 (enum escape_type): Remove.
16157 (struct mem_sym_stats_d): Likewise.
16158 (struct mem_ref_stats_d): Likewise.
16159 (struct gimple_df): Add vop member. Remove global_var,
16160 call_clobbered_vars, call_used_vars, addressable_vars,
16161 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
16162 escaped and callused members.
16163 (struct ptr_info_def): Remove all members, add points-to solution
16164 member pt.
16165 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
16166 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
16167 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
16168 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
16169 (tree-ssa-alias.o): Likewise.
16170 (toplev.o): Add tree-ssa-alias.h
16171 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
16172 * gimple.c (gimple_set_bb): Fix off-by-one error.
16173 (is_gimple_reg): Do not handle memory tags.
16174 (gimple_copy): Also copy virtual operands.
16175 Delay updating the statement. Do not reset loaded and stored syms.
16176 (gimple_set_stored_syms): Remove.
16177 (gimple_set_loaded_syms): Likewise.
16178 (gimple_call_copy_skip_args): Copy the virtual operands
16179 and mark the new statement modified.
16180 * tree-ssa-structalias.c (may_alias_p): Remove.
16181 (set_uids_in_ptset): Take the alias set to prune with as
16182 parameter. Fold in the alias test of may_alias_p.
16183 (compute_points_to_sets): Compute whether a ptr is dereferenced
16184 in a local sbitmap.
16185 (process_constraint): Deal with &ANYTHING on the lhs, reject all
16186 other ADDRESSOF constraints on the lhs.
16187 (get_constraint_for_component_ref): Assert that we don't get
16188 ADDRESSOF constraints from the base of the reference.
16189 Properly generate UNKNOWN_OFFSET for DEREF if needed.
16190 (struct variable_info): Remove collapsed_to member.
16191 (get_varinfo_fc): Remove.
16192 (new_var_info): Do not set collapsed_to.
16193 (dump_constraint): Do not follow cycles.
16194 (dump_constraint_graph): Likewise.
16195 (build_pred_graph): Likewise.
16196 (build_succ_graph): Likewise.
16197 (rewrite_constraints): Likewise.
16198 (do_simple_structure_copy): Remove.
16199 (do_rhs_deref_structure_copy): Remove.
16200 (do_lhs_deref_structure_copy): Remove.
16201 (collapse_rest_of_var): Remove.
16202 (do_structure_copy): Re-implement.
16203 (pta_stats): New global variable.
16204 (dump_pta_stats): New function.
16205 (struct constraint_expr): Make offset signed.
16206 (UNKNOWN_OFFSET): Define special value.
16207 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
16208 (solution_set_expand): New helper function split out from ...
16209 (do_sd_constraint): ... here.
16210 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
16211 (do_ds_constraint): Likewise.
16212 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
16213 and CALLUSED = *CALLUSED.
16214 (set_union_with_increment): Make inc argument signed.
16215 (type_safe): Remove.
16216 (get_constraint_for_ptr_offset): Handle unknown and negative
16217 constant offsets.
16218 (first_vi_for_offset): Handle offsets before start. Bail
16219 out early for offsets beyond the variable extent.
16220 (first_or_preceding_vi_for_offset): New function.
16221 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
16222 Together with ESCAPED = *ESCAPED this properly computes reachability.
16223 (find_what_var_points_to): New function.
16224 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
16225 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
16226 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
16227 pt_solutions_intersect): New functions.
16228 (compute_call_used_vars): Remove.
16229 (compute_may_aliases): New main entry into PTA computation.
16230 * gimple.h (gimple_p): New typedef.
16231 (struct gimple_statement_base): Remove references_memory_p.
16232 (struct gimple_statement_with_memory_ops_base): Remove
16233 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
16234 members.
16235 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
16236 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
16237 gimple_set_references_memory): Remove.
16238 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
16239 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
16240 New functions.
16241 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
16242 (verify_expr): Allow RESULT_DECL.
16243 (gimple_duplicate_bb): Do not copy virtual operands.
16244 (gimple_duplicate_sese_region): Adjust.
16245 (gimple_duplicate_sese_tail): Likewise.
16246 (mark_virtual_ops_in_region): Remove.
16247 (move_sese_region_to_fn): Do not call it.
16248 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
16249 and pass_simple_dse.
16250 (execute_function_todo): Handle TODO_update_address_taken,
16251 call execute_update_addresses_taken for TODO_rebuild_alias.
16252 (execute_todo): Adjust.
16253 (execute_one_pass): Init dump files early.
16254 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
16255 call-clobbered.
16256 (create_general_new_stmt): Clear vops.
16257 * tree-ssa-reassoc.c (get_rank): Adjust.
16258 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
16259 symbols for renaming.
16260 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
16261 (PARAM_AVG_ALIASED_VOPS): Likewise.
16262 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
16263 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
16264 * tree-ssa-operands.c: Simplify for new virtual operand representation.
16265 (operand_build_cmp, copy_virtual_operands,
16266 create_ssa_artificial_load_stmt, add_to_addressable_set,
16267 gimple_add_to_addresses_taken): Remove public functions.
16268 (unlink_stmt_vdef): New function.
16269
16270 2009-04-03 Alan Modra <amodra@bigpond.net.au>
16271
16272 * config.gcc (powerpc-*-linux*): Merge variants.
16273
16274 2009-04-02 Chao-ying Fu <fu@mips.com>
16275 James Grosbach <james.grosbach@microchip.com>
16276
16277 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
16278 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
16279 cop0_sp_offset.
16280 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
16281 keep_interrupts_masked_p, use_debug_exception_return_p.
16282 (mips_attribute_table): Add interrupt, use_shadow_register_set,
16283 keep_interrupts_masked, use_debug_exception_return.
16284 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
16285 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
16286 New functions.
16287 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
16288 (mips_print_operand): Process COP0 registers to print $0 .. $31
16289 correctly for GAS to process.
16290 (mips_interrupt_extra_call_saved_reg_p): New function.
16291 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
16292 extra registers.
16293 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
16294 (mips_compute_frame_info): Add supports for interrupt context that
16295 includes doubleword accumulators and COP0 registers.
16296 (mips_for_each_saved_acc): New function.
16297 (mips_for_each_saved_gpr_and_fpr): Change the function name from
16298 mips_for_each_saved_reg.
16299 (mips_save_reg): Save accumulators.
16300 (mips_kernel_reg_p): A new for_each_rtx callback.
16301 (mips_expand_prologue): Support interrupt handlers.
16302 (mips_restore_reg): Restore accumulators.
16303 (mips_expand_epilogue): Support interrupt handlers.
16304 (mips_can_use_return_insn): Return false for interrupt handlers.
16305 (mips_epilogue_uses): New function.
16306 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
16307 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
16308 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
16309 cop0_move): New instructions.
16310 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
16311 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
16312 defines.
16313 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
16314 New defines.
16315 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
16316 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
16317 interrupt handlers, we use K0 as the temporary register.
16318 (EPILOGUE_USES): Change to a function call.
16319 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
16320 handlers, we use K0 as the temporary register.
16321
16322 * doc/extend.texi (Function Attributes): Document interrupt,
16323 use_shadow_register_set, keep_interrupts_masked,
16324 use_debug_exception_return for MIPS attributes.
16325
16326 2009-04-03 Alan Modra <amodra@bigpond.net.au>
16327
16328 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
16329 Remove a number of t-files from tmake_file.
16330 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
16331 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
16332 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
16333 target_prototype, not TARGET_PROTOTYPE.
16334 (LINK_OS_GNU_SPEC): Define.
16335 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
16336 and darwin-ldoubdle.c.
16337
16338 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16339
16340 PR driver/39293
16341 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
16342 (cpp_options): Ditto.
16343 (default_compilers): Ditto.
16344 (display_help): Ditto.
16345 (process_command): Ditto.
16346 (do_spec_1): Ditto.
16347 (set_input): Use lbasename instead of duplicate code.
16348 (save_temps_prefix): New static for -save-temps=obj.
16349 (save_temps_length): Ditto.
16350
16351 * doc/invoke.texi (-save-temps=obj): Document new variant to
16352 -save-temps switch.
16353
16354 2009-04-02 Jeff Law <law@redhat.com>
16355
16356 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
16357 variable.
16358
16359 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
16360
16361 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
16362 * configure: Regenerated.
16363
16364 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16365
16366 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
16367 share the argument list.
16368
16369 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16370
16371 Merge
16372
16373 2009-02-12 Diego Novillo <dnovillo@google.com>
16374
16375 * varpool.c (debug_varpool): New.
16376 * cgraph.h (debug_varpool): Declare.
16377
16378 2009-04-02 Jan Hubicka <jh@suse.cz>
16379
16380 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
16381 pass.
16382
16383 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
16384
16385 * config/i386/i386.c (ix86_abi): Move initialization to ...
16386 (override_options): Here.
16387
16388 2009-04-02 Christian Bruel <christian.bruel@st.com>
16389
16390 * config/sh/sh.c (sh_dwarf_register_span): New function.
16391 (TARGET_DWARF_REGISTER_SPAN): Define.
16392 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
16393
16394 2009-04-02 Ira Rosen <irar@il.ibm.com>
16395
16396 PR tree-optimization/39595
16397 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
16398 interleaved loads group is not greater than the SLP group size.
16399
16400 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16401
16402 * builtins.c (is_builtin_name): New.
16403 (called_as_built_in): Use is_builtin_name.
16404 * tree.h (is_builtin_name): New.
16405 * varasm.c (incorporeal_function_p): Use is_builtin_name
16406
16407 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
16408
16409 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
16410
16411 2009-04-02 Dodji Seketeli <dodji@redhat.com>
16412
16413 PR c++/26693
16414 * c-decl.c (clone_underlying_type): Move this ...
16415 * c-common.c (set_underlying_type): ... here.
16416 Also, make sure the function properly sets TYPE_STUB_DECL() on
16417 the newly created typedef variant type.
16418 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
16419 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
16420 points.
16421
16422 2009-04-02 Richard Guenther <rguenther@suse.de>
16423
16424 PR tree-optimization/37221
16425 * tree-flow.h (degenerate_phi_result): Declare.
16426 * tree-ssa-dom.c (degenerate_phi_result): Export.
16427 * tree-scalar-evolution.c (analyze_initial_condition): If
16428 the initial condition is defined by a degenerate PHI node
16429 use the degenerate value.
16430
16431 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
16432
16433 PR rtl-optimization/39588
16434 * combine.c (merge_outer_ops): Do not set the constant when this
16435 is not necessary.
16436 (simplify_shift_const_1): Do not modify it either in this case.
16437
16438 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
16439
16440 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
16441 tuning is deprecated if -mtune value is set to an Itanium1 variant.
16442
16443 2009-04-01 Janis Johnson <janis187@us.ibm.com>
16444
16445 PR c/29027
16446 * c-lex.c (interpret_float): Default (no suffix) is double.
16447
16448 2009-04-1 Xinliang David Li <davidxl@google.com>
16449
16450 * config/i386/i386.c (legitimate_constant_p): Recognize
16451 all one vector constant.
16452
16453 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16454
16455 * config/vax/vax.c: Add #includes to silence warnings.
16456 Change #include order to silence two warnings.
16457
16458 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16459
16460 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
16461 (ASM_SPEC): Pass -k to the assembler for PIC code.
16462
16463 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16464
16465 * config.gcc: Add vax-*-linux* to the switch.
16466 * config/vax/linux.h: New file. (TARGET_VERSION,
16467 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
16468
16469 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16470
16471 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
16472 Use predicate macros instead of GET_CODE() == foo.
16473 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
16474 ashlsi3, rotrsi3, <unnamed>): Likewise.
16475
16476 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16477
16478 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
16479 jbbccihi, jbbccisi): Remova trailing whitespace.
16480 * config/vax/constraints.md: Likewise.
16481 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16482 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
16483 * config/vax/predicates.md: Likewise.
16484 * config/vax/vax.c (print_operand_address, vax_output_int_move,
16485 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
16486 * config/vax/vax.h: Likewise.
16487 * config/vax/vax.md (nonlocal_goto): Likewise.
16488
16489 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16490
16491 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
16492 (indirectable_address_p, adjacent_operands_p): Add spaces around
16493 braces.
16494 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
16495
16496 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16497
16498 * config/vax/vax.c (legitimate_constant_address_p,
16499 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
16500 index_term_p, reg_plus_index_p, legitimate_address_p,
16501 vax_mode_dependent_address_p): Update comments to match functions
16502 modified by the recent int->bool conversion.
16503
16504 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16505
16506 * config/vax/builtins.md: Update copyright message.
16507 * config/vax/constraints.md: Likewise.
16508 * config/vax/netbsd-elf.h: Likewise.
16509 * config/vax/predicates.md: Likewise.
16510 * config/vax/vax-protos.h: Likewise.
16511 * config/vax/vax.c: Likewise.
16512 * config/vax/vax.h: Likewise.
16513 * config/vax/vax.md: Likewise.
16514 * config/vax/vax.opt: Likewise.
16515
16516 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16517
16518 * config/vax/builtins.md (ffssi2, ffssi2_internal,
16519 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
16520 * config/vax/constraints.md (B, R): Likewise.
16521 * config/vax/predicates.md (external_memory_operand,
16522 nonimmediate_addsub_di_operand): Likewise.
16523 * config/vax/vax.c (vax_output_int_add): Likewise.
16524 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
16525 untyped_call): Likewise.
16526
16527 2009-04-01 Matt Thomas <matt@3am-software.com>
16528
16529 * config/vax/predicates.md: New file.
16530 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
16531 external_const_operand, nonsymbolic_operand, external_memory_operand,
16532 indirect_memory_operand, indexed_memory_operand,
16533 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
16534 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
16535 predicate.
16536 * config/vax/constraints.md: New file.
16537 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
16538 New constraint.
16539 * config/vax/builtins.md: New file.
16540 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
16541 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
16542 jbbccisi): Define.
16543 * config/vax/vax.opt (mqmath): Add option.
16544 * config/vax/vax.md (isfx): Extend with DI.
16545 (VAXintQH, VAXintQHSD): Define.
16546 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
16547 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
16548 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
16549 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
16550 (movdi): Update constraints and use vax_output_int_move().
16551 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
16552 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
16553 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
16554 nonlocal_goto): New.
16555 (mov<mode>): Extend accepted operand types.
16556 (subdi3_old): Rename from subdi3, change update constraints and use
16557 a new implementation.
16558 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
16559 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
16560 MOVE_RATIO, CLEAR_RATIO): Define.
16561 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
16562 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
16563 (PRINT_OPERAND): Redefine using a function instead of inlined code.
16564 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
16565 (split_quadword_operands): Make static and really allow variable
16566 splitting.
16567 (print_operand_address): Update for PIC generation.
16568 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
16569 indexable_address_p, fixup_mathdi_operand,
16570 vax_expand_addsub_di_operands, adjacent_operands_p): New.
16571 (vax_float_literal, legitimate_constant_p,
16572 indirectable_constant_address_p, index_term_p,
16573 reg_plus_index_p): Return bool instead of int.
16574 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
16575 where needed.
16576 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
16577 generation.
16578 (vax_output_conditional_branch): Indent.
16579 (legitimate_constant_address_p, indirectable_constant_address_p,
16580 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
16581 vax_mode_dependent_address_p): Return bool instead of int, update for
16582 PIC generation.
16583 * config/vax/vax-protos.h (legitimate_constant_address_p,
16584 legitimate_constant_p, legitimate_address_p,
16585 vax_mode_dependent_address_p): Change declaration to bool.
16586 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
16587 vax_expand_addsub_di_operands, vax_output_int_subtract,
16588 vax_output_movmemsi): Declare.
16589 (split_quadword_operands, vax_float_literal): Delete declaration.
16590 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
16591 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
16592 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
16593 ASM_OUTPUT_DWARF_PCREL): Define.
16594 (ASM_SPEC): Change definition to allow PIC generation.
16595
16596 2009-04-01 Steve Ellcey <sje@cup.hp.com>
16597
16598 * doc/sourcebuild.texi: Update front-end requirements.
16599
16600 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16601
16602 PR target/39226
16603 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
16604 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
16605 (booldi3_internal3): Use boolean_or_operator instead of
16606 boolean_operator.
16607
16608 2009-04-01 Joseph Myers <joseph@codesourcery.com>
16609
16610 PR c/39605
16611 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
16612 declarator whose size is not an integer constant expression but
16613 folds to an integer constant, then treat it as a constant
16614 subsequently.
16615
16616 2009-04-01 Richard Guenther <rguenther@suse.de>
16617
16618 * fold-const.c (fold_plusminus_mult_expr): Do not fold
16619 i * 4 + 2 to (i * 2 + 1) * 2.
16620
16621 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16622
16623 PR c/37772
16624 * c-parser.c (c_parser_asm_statement): Skip until close paren and
16625 return if c_parser_asm_string_literal returned NULL.
16626
16627 2009-04-01 Nick Clifton <nickc@redhat.com>
16628
16629 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
16630 already defined.
16631 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
16632 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
16633 other typedefs to avoid conflicts with libgcc2.c. Define labels
16634 to gain 16-bit bit-manipulation functions from libgcc2.c and then
16635 include it.
16636 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
16637 to gain 16-bit trapping arithmetic functions from libgcc2.c and
16638 then include it.
16639
16640 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
16641
16642 * varasm.c (default_function_rodata_section): Declare DOT as
16643 const char*.
16644
16645 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
16646 Andrey Galkin <agalkin@hypercom.com>
16647
16648 PR/39492
16649 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
16650 Make object_name unique for each process.
16651
16652 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16653
16654 PR other/39591
16655 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
16656 addressable variables in the parallel that could go out of scope while
16657 running queued tasks.
16658
16659 2009-04-01 Anatoly Sokolov <aesok@post.ru>
16660
16661 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
16662 (CASE_VALUES_THRESHOLD): Redefine.
16663 * config/avr/avr.c (avr_override_options): Remove initialization of
16664 avr_case_values_threshold variable.
16665 (avr_case_values_threshold): Remove variable. Add new function.
16666 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
16667 * config/avr/avr.opt (mno-tablejump): Remove option.
16668 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
16669
16670 2009-04-01 DJ Delorie <dj@redhat.com>
16671
16672 * varasm.c (default_function_rodata_section): Don't assume
16673 anything about where the first '.' in the section name is.
16674
16675 2009-04-01 Alan Modra <amodra@bigpond.net.au>
16676
16677 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
16678 rs6000_emit_stack_tie.
16679
16680 2009-03-31 Ian Lance Taylor <iant@google.com>
16681
16682 * tree-eh.c (tree_remove_unreachable_handlers): Compare
16683 gimple_code with GIMPLE_RESX, not RESX.
16684
16685 2009-03-31 Joseph Myers <joseph@codesourcery.com>
16686
16687 * c-common.c (c_get_ident): New.
16688 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
16689
16690 2009-04-01 Ben Elliston <bje@au.ibm.com>
16691
16692 * config/rs6000/sysv4.opt (msdata): Improve option description.
16693
16694 2009-03-31 Steve Ellcey <sje@cup.hp.com>
16695
16696 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
16697 (divdf3_internal_lat): Remove.
16698 (divxf3_internal_lat): Remove.
16699 (divxf3_internal_thr): Remove.
16700 (divxf): Use divxf3_internal.
16701 * config/ia64/div.md (divsf3_internal_lat): New.
16702 (divdf3_internal_lat): New.
16703 (divxf3_internal): New.
16704
16705 2009-03-31 Joseph Myers <joseph@codesourcery.com>
16706
16707 PR c/448
16708 * Makefile.in (USE_GCC_STDINT): Define.
16709 (stmp-int-hdrs): Install stdint.h if applicable.
16710 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
16711 if known.
16712 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
16713 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
16714 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
16715 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16716 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16717 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16718 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16719 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16720 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16721 (c_common_nodes_and_builtins): Initialize
16722 underlying_wchar_type_node. Do not initialize
16723 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
16724 nodes for new types.
16725 (c_stddef_cpp_builtins): Define macros for new types.
16726 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
16727 Remove.
16728 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
16729 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
16730 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
16731 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
16732 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
16733 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
16734 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
16735 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
16736 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
16737 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
16738 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
16739 int16_type_node, int32_type_node, int64_type_node,
16740 uint8_type_node, uint16_type_node, c_uint32_type_node,
16741 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
16742 int_least32_type_node, int_least64_type_node,
16743 uint_least8_type_node, uint_least16_type_node,
16744 uint_least32_type_node, uint_least64_type_node,
16745 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
16746 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
16747 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
16748 uintptr_type_node): Define.
16749 * c-cppbuiltin.c (builtin_define_constants,
16750 builtin_define_type_minmax): New.
16751 (builtin_define_stdint_macros): Define more macros.
16752 (c_cpp_builtins): Define more limit macros.
16753 (type_suffix): New.
16754 (builtin_define_type_max): Define in terms of
16755 builtin_define_type_minmax. Remove is_long parameter. All
16756 callers changed.
16757 * config.gcc (use_gcc_stdint): Define.
16758 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
16759 Add newlib-stdint.h for generic targets.
16760 * config/glibc-stdint.h, config/newlib-stdint.h,
16761 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
16762 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
16763 * config/score/score.h (UINTPTR_TYPE): Define.
16764 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16765 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16766 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16767 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16768 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16769 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16770 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16771 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16772 * config/spu/spu.h (STDINT_LONG32): Define.
16773 * configure.ac (use_gcc_stdint): Substitute.
16774 * configure: Regenerate.
16775 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
16776 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
16777 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
16778 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
16779 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
16780 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
16781 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
16782 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
16783 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
16784 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
16785 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
16786 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
16787 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
16788 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
16789 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
16790 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
16791 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
16792 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
16793 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
16794 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
16795 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
16796 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
16797 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
16798 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16799 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16800 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16801 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16802 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16803 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
16804
16805 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
16806
16807 * loop-iv.c (suitable_set_for_replacement): Renamed from
16808 simplify_using_assignment; changed to return bool and to accept new
16809 args DEST and SRC. Return true iff we find a source/destination pair
16810 that can be used to make a replacement, and fill SRC and DEST if so.
16811 Remove arg ALTERED. Don't deal with altered regs here. All callers
16812 changed.
16813 (simplify_using_initial_values): Deal with altered regs here and track
16814 more precisely the effect they have on the validity of our expression.
16815
16816 * loop-iv.c (simplify_using_condition): A condition of the form
16817 (EQ REG CONST) can be used to simply make a substitution.
16818 (simplify_using_initial_values): Keep track of conditions we have seen
16819 and keep using them to simplify new expressions, while applying the
16820 same substitutions to them as to the expression.
16821
16822 * simplify-rtx.c (simplify_relational_operation_1): Simplify
16823 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
16824 GEU/LTU reversed.
16825
16826 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
16827 changed. Use this when trying to improve the upper bound.
16828 Generate the comparison by using simplify_gen_relational.
16829
16830 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
16831
16832 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
16833 functions.
16834 (simplify_using_assignment, simplify_using_initial_values): Call
16835 replace_in_expr to make replacements. Call replace_single_def_regs
16836 once on the initial version of the expression.
16837
16838 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16839
16840 PR target/27237
16841 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
16842
16843 2009-03-31 Richard Guenther <rguenther@suse.de>
16844
16845 PR middle-end/31029
16846 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
16847 equality comparisons. Fold C - X CMP X if C % 2 == 1.
16848
16849 2009-03-31 Richard Guenther <rguenther@suse.de>
16850
16851 * tree.h (div_if_zero_remainder): Declare.
16852 * fold-const.c (div_if_zero_remainder): Export.
16853 * tree-ssa-forwprop.c
16854 (forward_propagate_addr_into_variable_array_index): Handle
16855 constant array index addition outside of the variable index.
16856
16857 2009-03-31 Joseph Myers <joseph@codesourcery.com>
16858
16859 PR target/39592
16860 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
16861 define_splits, floatunssi<mode>2): Require x87 conversions from
16862 DImode to be permitted.
16863
16864 2009-03-31 Joseph Myers <joseph@codesourcery.com>
16865
16866 PR preprocessor/15638
16867 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
16868
16869 2009-03-31 Richard Guenther <rguenther@suse.de>
16870
16871 PR middle-end/23401
16872 PR middle-end/27810
16873 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
16874 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
16875 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
16876 a separate statement.
16877 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
16878 (lookup_tmp_var): Likewise.
16879 (is_gimple_formal_tmp_or_call_rhs): Remove.
16880 (is_gimple_reg_or_call_rhs): Rename to ...
16881 (is_gimple_reg_rhs_or_call): ... this.
16882 (is_gimple_mem_or_call_rhs): Rename to ...
16883 (is_gimple_mem_rhs_or_call): ... this.
16884 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
16885 DECL_GIMPLE_REG_P only if is_formal is true.
16886 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
16887 for non-proper post-modify expression gimplification.
16888 (gimplify_self_mod_expr): For post-modify expressions gimplify
16889 the lvalue to a minimal lvalue.
16890 (rhs_predicate_for): Remove formal temp case.
16891 (gimplify_modify_expr_rhs): Likewise.
16892 (gimplify_addr_expr): Use is_gimple_reg.
16893 (gimplify_expr): Remove formal temp cases.
16894 (gimple_regimplify_operands): Likewise.
16895 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
16896 and FILTER_EXPR like constants.
16897 * gimple.c (walk_gimple_op): Fix val_only initialization, use
16898 is_gimple_reg.
16899 (is_gimple_formal_tmp_rhs): Remove.
16900 (is_gimple_reg_rhs): Remove special casing.
16901 (is_gimple_mem_rhs): Fix.
16902 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
16903 (is_gimple_formal_tmp_var): Remove.
16904 (is_gimple_formal_tmp_reg): Likewise.
16905 (is_gimple_min_lval): Allow invariant component ref parts.
16906 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
16907 is_gimple_formal_tmp_reg): Remove declarations.
16908 * tree-cfg.c (verify_expr): Verify that variables with address
16909 taken do not have DECL_GIMPLE_REG_P set.
16910 * tree-mudflap.c (mf_build_check_statement_for): Use
16911 force_gimple_operand instead of gimplify_expr.
16912
16913 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
16914
16915 * modulo-sched.c (sms_schedule_by_order): Pass the actual
16916 schedulable rows to compute_split_row.
16917
16918 2009-03-31 Ben Elliston <bje@au.ibm.com>
16919
16920 PR target/31635
16921 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
16922 OPT_mvrsave.
16923
16924 2009-03-31 Alan Modra <amodra@bigpond.net.au>
16925
16926 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
16927 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
16928 * configure: Regenerate.
16929 * config.in: Regenerate.
16930 * config/rs6000/rs6000.opt (mtls-markers): Add.
16931 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
16932 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
16933 (tls_ld_aix, tls_ld_sysv): Likewise.
16934 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
16935 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
16936
16937 2009-03-31 Alan Modra <amodra@bigpond.net.au>
16938
16939 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
16940
16941 2009-03-30 Jan Hubicka <jh@suse.cz>
16942
16943 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
16944 out of RESX.
16945 (tree_remove_unreachable_handlers): Cleanup EH predecestor
16946 detection and label handling.
16947
16948 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
16949
16950 * ira-int.h (ira_allocno): Rename left_conflicts_num to
16951 left_conflicts_size.
16952 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
16953 ALLOCNO_LEFT_CONFLICTS_SIZE.
16954
16955 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
16956 remove_allocno_from_bucket_and_push,
16957 allocno_spill_priority_compare, push_allocnos_to_stack,
16958 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16959 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
16960 (setup_allocno_left_conflicts_num): Ditto. Rename to
16961 setup_allocno_left_conflicts_size.
16962 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16963 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
16964 setup_allocno_left_conflicts_size instead of
16965 setup_allocno_left_conflicts_num.
16966
16967 * ira-build.c (ira_create_allocno): Use
16968 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
16969 ALLOCNO_LEFT_CONFLICTS_NUM.
16970
16971 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
16972
16973 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16974 instead of DF_LR_OUT.
16975
16976 * ira-lives.c (process_bb_node_lives): Ditto.
16977
16978 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16979 instead of DF_LR_{OUT,IN}.
16980
16981 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16982
16983 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16984
16985 2009-03-30 Jan Hubicka <jh@suse.cz>
16986
16987 * except.c (label_to_region_map): Fix thinko.
16988
16989 2009-03-30 Steve Ellcey <sje@cup.hp.com>
16990
16991 PR middle-end/38237
16992 * tree.h (tree_find_value): New declaration.
16993 * tree.c (tree_find_value): New function.
16994 * varasm.c (assemble_external): Avoid duplicate entries on lists.
16995
16996 2009-03-30 Jakub Jelinek <jakub@redhat.com>
16997
16998 PR debug/39563
16999 * c-decl.c (struct c_binding): Add locus field.
17000 (bind): Add locus argument, set locus field from it.
17001 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
17002 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
17003 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
17004 implicitly_declare, undeclared_variable, lookup_label,
17005 declare_label, c_make_fname_decl, c_builtin_function,
17006 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
17007 bind callers.
17008
17009 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
17010
17011 PR target/38781
17012 * config/i386/i386.c (classify_argument): Check total size of
17013 structure.
17014
17015 2009-03-30 Martin Jambor <mjambor@suse.cz>
17016
17017 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
17018 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
17019 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
17020 respectively.
17021
17022 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
17023 seen_variable_array_ref while also traversing a union.
17024
17025 * tree-inline.c (optimize_inline_calls): Do not call
17026 cgraph_node_remove_callees.
17027 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
17028 (pass_remove_cgraph_callee_edges): New variable.
17029 * passes.c (init_optimization_passes): Add
17030 pass_remove_cgraph_callee_edges after early inlining and before all
17031 late intraprocedural passes.
17032
17033 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
17034
17035 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17036
17037 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
17038 Fix typos in names.
17039
17040 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17041
17042 * combine.c (simplify_comparison): Use have_insn_for.
17043 * dojump.c (do_jump): Likewise.
17044
17045 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17046
17047 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
17048 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
17049 sparc_compare_op0 like sparc_compare_emitted used to be handled.
17050 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
17051 instead of sparc_compare_emitted.
17052 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
17053 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
17054 instead of sparc_compare_emitted.
17055
17056 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17057
17058 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
17059 enter/exit cfglayout mode.
17060 (pass_partition_block): Require it.
17061 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
17062 (combine_instructions): Track basic blocks instead of labels.
17063 (update_cfg_for_uncondjump): New.
17064 (try_combine): Use it. Update jumps after rescanning.
17065 (pass_combine): Require PROP_cfglayout.
17066 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
17067
17068 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17069
17070 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
17071 Provide/destroy PROP_cfglayout respectively.
17072 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
17073 * tree-pass.h (PROP_cfglayout): New.
17074
17075 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17076
17077 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
17078 fold_convert_const_fixed_from_fixed,
17079 fold_convert_const_fixed_from_int,
17080 fold_convert_const_fixed_from_real, fold_negate_const): Do not
17081 set TREE_CONSTANT_OVERFLOW.
17082 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
17083 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
17084
17085 2009-03-30 Ira Rosen <irar@il.ibm.com>
17086
17087 * tree-vect-loop-manip.c: New file.
17088 * tree-vectorizer.c: Update documentation and included files.
17089 (vect_loop_location): Make extern.
17090 (rename_use_op): Move to tree-vect-loop-manip.c
17091 (rename_variables_in_bb, rename_variables_in_loop,
17092 slpeel_update_phis_for_duplicate_loop,
17093 slpeel_update_phi_nodes_for_guard1,
17094 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
17095 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
17096 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
17097 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
17098 find_loop_location): Likewise.
17099 (new_stmt_vec_info): Move to tree-vect-stmts.c.
17100 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
17101 get_vectype_for_scalar_type, vect_is_simple_use,
17102 supportable_widening_operation, supportable_narrowing_operation):
17103 Likewise.
17104 (bb_in_loop_p): Move to tree-vect-loop.c.
17105 (new_loop_vec_info, destroy_loop_vec_info,
17106 reduction_code_for_scalar_code, report_vect_op,
17107 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
17108 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
17109 (vect_supportable_dr_alignment): Likewise.
17110 * tree-vectorizer.h (tree-data-ref.h): Include.
17111 (vect_loop_location): Declare.
17112 Reorganize function declarations according to the new file structure.
17113 * tree-vect-loop.c: New file.
17114 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
17115 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
17116 * tree-vect-data-refs.c: New file.
17117 * tree-vect-patterns.c (timevar.h): Don't include.
17118 * tree-vect-stmts.c: New file.
17119 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
17120 tree-vect-slp.c, tree-vect-loop.c.
17121 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
17122 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
17123 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
17124 (tree-vect-analyze.o): Remove.
17125 (tree-vect-transform.o): Likewise.
17126 (tree-vect-data-refs.o): Add rule.
17127 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
17128 tree-vect-slp.o): Likewise.
17129 (tree-vect-patterns.o): Remove redundant dependencies.
17130 (tree-vectorizer.o): Likewise.
17131 * tree-vect-slp.c: New file.
17132
17133 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17134
17135 * optc-gen.awk: Warn if an option flag has multiple different
17136 help strings.
17137
17138 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
17139
17140 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
17141 -floop-block): Document dependences on PPL, CLooG and Graphite.
17142
17143 2009-03-30 Joseph Myers <joseph@codesourcery.com>
17144
17145 PR rtl-optimization/323
17146 * c-common.c (c_fully_fold, convert_and_check,
17147 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
17148 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
17149 * c-common.def (EXCESS_PRECISION_EXPR): New.
17150 * c-cppbuiltin.c (builtin_define_float_constants): Define
17151 constants with enough digits for long double.
17152 * c-lex.c (interpret_float): Interpret constant with excess
17153 precision where appropriate.
17154 * c-opts.c (c_common_post_options): Set
17155 flag_excess_precision_cmdline. Give an error for
17156 -fexcess-precision=standard for C++ for processors where the
17157 option is significant.
17158 * c-parser.c (c_parser_conditional_expression): Handle excess
17159 precision in condition.
17160 * c-typeck.c (convert_arguments): Handle arguments with excess
17161 precision.
17162 (build_unary_op): Move excess precision outside operation.
17163 (build_conditional_expr): Likewise.
17164 (build_compound_expr): Likewise.
17165 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
17166 (build_modify_expr): Handle excess precision in RHS.
17167 (convert_for_assignment): Handle excess precision in converted
17168 value.
17169 (digest_init, output_init_element, process_init_element): Handle
17170 excess precision in initializer.
17171 (c_finish_return): Handle excess precision in return value.
17172 (build_binary_op): Handle excess precision in operands and add
17173 excess precision as needed for operation.
17174 * common.opt (-fexcess-precision=): New option.
17175 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
17176 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17177 For standard excess precision, output explicit conversion to and
17178 truncation from XFmode.
17179 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
17180 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
17181 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
17182 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
17183 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
17184 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
17185 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
17186 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
17187 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
17188 define_splits, sqrt<mode>2): Disable where appropriate for
17189 standard excess precision.
17190 * convert.c (convert_to_real): Do not shorten arithmetic to type
17191 for which excess precision would be used.
17192 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
17193 * doc/invoke.texi (-fexcess-precision=): Document option.
17194 (-mfpmath=): Correct index entry.
17195 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
17196 flag_excess_precision): New.
17197 * langhooks.c (lhd_post_options): Set
17198 flag_excess_precision_cmdline.
17199 * opts.c (common_handle_option): Handle -fexcess-precision=.
17200 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
17201 init_excess_precision): New.
17202 (lang_dependent_init_target): Call init_excess_precision.
17203 * tree.c (excess_precision_type): New.
17204 * tree.h (excess_precision_type): Declare.
17205
17206 2009-03-30 Joseph Myers <joseph@codesourcery.com>
17207
17208 PR c/35235
17209 * c-typeck.c (build_component_ref): Do not copy qualifiers from
17210 non-lvalue to component.
17211
17212 2009-03-29 Joseph Myers <joseph@codesourcery.com>
17213
17214 PR preprocessor/34695
17215 * Makefile.in (c-opts.o): Depend on c-tree.h.
17216 * c-common.c: Move down include of diagnostic.h.
17217 (done_lexing, c_cpp_error): New.
17218 * c-common.h (done_lexing): Declare.
17219 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
17220 (parse_in).
17221 * c-opts.c: Include c-tree.h.
17222 (c_common_init_options): Set preprocessor error callback.
17223 (c_common_handle_option): Do not set preprocessor
17224 inhibit_warnings, warnings_are_errors, warn_system_headers,
17225 pedantic_errors or inhibit_warnings flags.
17226 (c_common_post_options): Do not check cpp_errors (parse_in).
17227 (c_common_finish): Do not output dependencies if there were
17228 errors. Do not check return value of cpp_finish.
17229 * c-ppoutput.c (pp_file_change): Set input_location.
17230 * c-tree.h (c_cpp_error): Declare.
17231 * diagnostic.c (diagnostic_set_info_translated): Also initialize
17232 override_column.
17233 (diagnostic_build_prefix): Check override_column.
17234 * diagnostic.h (diagnostic_info): Add override_column field.
17235 (diagnostic_override_column): Define.
17236
17237 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
17238
17239 * c-common.c (c_expand_expr, c_staticp): Remove.
17240 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
17241 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
17242 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
17243 * c-gimplify.c (gimplify_compound_literal_expr,
17244 optimize_compound_literals_in_ctor): Remove.
17245 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
17246 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
17247 * c-semantics.c (emit_local_var): Remove.
17248
17249 * langhooks-def.h (lhd_expand_expr): Remove.
17250 * langhooks.c (lhd_expand_expr): Remove.
17251 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
17252
17253 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
17254 handling from c-semantics.c; don't call into langhook.
17255 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
17256 * gimplify.c (gimplify_compound_literal_expr,
17257 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
17258 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
17259 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
17260 as was done in c-gimplify.c.
17261 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
17262 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
17263 Move from c-common.h.
17264 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
17265
17266 * tree.c (staticp): Do not call langhook.
17267 * langhooks.c (lhd_staticp): Delete.
17268 * langhooks-def.h (lhd_staticp): Delete prototype.
17269 (LANG_HOOKS_STATICP): Delete.
17270 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
17271
17272 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
17273 instead of DECL_STMTs.
17274
17275 2009-03-29 Joseph Myers <joseph@codesourcery.com>
17276
17277 PR c/456
17278 PR c/5675
17279 PR c/19976
17280 PR c/29116
17281 PR c/31871
17282 PR c/35198
17283 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
17284 void_type_node.
17285 (fold_call_expr): Return a NOP_EXPR from folding rather than the
17286 contained expression.
17287 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
17288 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
17289 conditional expressions for C.
17290 (decl_constant_value_for_optimization): Move from
17291 decl_constant_value_for_broken_optimization in c-typeck.c. Check
17292 whether optimizing and that the expression is a VAR_DECL not of
17293 array type instead of doing such checks in the caller. Do not
17294 check pedantic. Call gcc_unreachable for C++.
17295 * c-common.def (C_MAYBE_CONST_EXPR): New.
17296 * c-common.h (c_fully_fold, c_save_expr,
17297 decl_constant_value_for_optimization): New prototypes.
17298 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
17299 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
17300 EXPR_INT_CONST_OPERANDS): Define.
17301 * c-convert.c (convert): Strip nops from expression.
17302 * c-decl.c (groktypename): Take extra parameters expr and
17303 expr_const_operands. Update call to grokdeclarator.
17304 (start_decl): Update call to grokdeclarator. Add statement for
17305 expressions used in type of decl.
17306 (grokparm): Update call to grokdeclarator.
17307 (push_parm_decl): Update call to grokdeclarator.
17308 (build_compound_literal): Add parameter non_const and build a
17309 C_MAYBE_COSNT_EXPR if applicable.
17310 (grokdeclarator): Take extra parameters expr and
17311 expr_const_operands. Track expressions used in declaration
17312 specifiers and declarators. Fold array sizes and track whether
17313 they are constant expressions and whether they are integer
17314 constant expressions.
17315 (parser_xref_tag): Set expr and expr_const_operands fields in
17316 return value.
17317 (grokfield): Update call to grokdeclarator.
17318 (start_function): Update call to grokdeclarator.
17319 (build_null_declspecs): Set expr and expr_const_operands fields in
17320 return value.
17321 (declspecs_add_type): Handle expressions in typeof specifiers.
17322 * c-parser.c (c_parser_declspecs): Set expr and
17323 expr_const_operands fields for declaration specifiers.
17324 (c_parser_enum_specifier): Likewise.
17325 (c_parser_struct_or_union_specifier): Likewise.
17326 (c_parser_typeof_specifier): Likewise. Update call to
17327 groktypename. Fold expression as needed. Return expressions with
17328 type instead of adding statements.
17329 (c_parser_attributes): Update calls to c_parser_expr_list.
17330 (c_parser_statement_after_labels): Fold expression before passing
17331 to objc_build_throw_stmt.
17332 (c_parser_condition): Fold expression.
17333 (c_parser_asm_operands): Fold expression.
17334 (c_parser_conditional_expression): Use c_save_expr. Update call
17335 to build_conditional_expr.
17336 (c_parser_alignof_expression): Update call to groktypename.
17337 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
17338 original_code. Fold expression argument of va_arg. Create
17339 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
17340 argument to va_arg. Update calls to groktypename. Fold array
17341 index for offsetof. Verify that first argument to
17342 __builtin_choose_expr has integer type.
17343 (c_parser_postfix_expression_after_paren_type): Update calls to
17344 groktypename and build_compound_literal. Handle expressions with
17345 side effects in type name.
17346 (c_parser_postfix_expression_after_primary): Update call to
17347 c_parser_expr_list. Set original_code for calls to
17348 __builtin_constant_p.
17349 (c_parser_expr_list): Take extra parameter fold_p. Fold
17350 expressions if requested.
17351 (c_parser_objc_type_name): Update call to groktypename.
17352 (c_parser_objc_synchronized_statement): Fold expression.
17353 (c_parser_objc_receiver): Fold expression.
17354 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
17355 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
17356 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
17357 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
17358 (struct c_typespec): Add elements expr and expr_const_operands.
17359 (struct c_declspecs): Add elements expr and expr_const_operands.
17360 (groktypename, build_conditional_expr, build_compound_literal):
17361 Update prototypes.
17362 (in_late_binary_op): Declare.
17363 * c-typeck.c (note_integer_operands): New function.
17364 (in_late_binary_op): New variable.
17365 (decl_constant_value_for_broken_optimization): Move to c-common.c
17366 and rename to decl_constant_value_for_optimization.
17367 (default_function_array_conversion): Do not strip nops.
17368 (default_conversion): Do not call
17369 decl_constant_value_for_broken_optimization.
17370 (build_array_ref): Do not fold result.
17371 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
17372 result when operand is a VLA.
17373 (c_expr_sizeof_type): Update call to groktypename. Handle
17374 expressions included in type name. Use C_MAYBE_CONST_EXPR for
17375 result when operand names a VLA type.
17376 (build_function_call): Update call to build_compound_literal.
17377 Only fold result for calls to __builtin_* functions. Strip
17378 NOP_EXPR from INTEGER_CST returned from such functions. Fold
17379 the function designator.
17380 (convert_arguments): Fold arguments. Update call to
17381 convert_for_assignment.
17382 (build_unary_op): Handle increment and decrement of
17383 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
17384 decrement earlier. Fold operand of increment and decrement.
17385 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
17386 built for integer operand. Wrap returns that are INTEGER_CSTs
17387 without being integer constant expressions or that have integer
17388 constant operands without being INTEGER_CSTs.
17389 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
17390 (build_conditional_expr): Add operand ifexp_bcp. Track whether
17391 result is an integer constant expression or can be used in
17392 unevaluated parts of one and avoid folding and wrap as
17393 appropriate. Fold operands before possibly doing -Wsign-compare
17394 warnings.
17395 (build_compound_expr): Wrap result for C99 if operands can be used
17396 in integer constant expressions.
17397 (build_c_cast): Update call to digest_init. Do not ignore
17398 overflow from casting floating-point constants to integers. Wrap
17399 results that could be confused with integer constant expressions,
17400 null pointer constants or floating-point constants.
17401 (c_cast_expr): Update call to groktypename. Handle expressions
17402 included in type name.
17403 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
17404 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
17405 Update calls to convert_for_assignment.
17406 (convert_for_assignment): Take new parameter
17407 null_pointer_constant. Do not strip nops or call
17408 decl_constant_value_for_broken_optimization. Set
17409 in_late_binary_op for conversions to boolean.
17410 (store_init_value): Update call to digest_init.
17411 (digest_init): Take new parameter null_pointer_constant. Do not
17412 call decl_constant_value_for_broken_optimization. pedwarn for
17413 initializers not constant expressions. Update calls to
17414 convert_for_assignment.
17415 (constructor_nonconst): New.
17416 (struct constructor_stack): Add nonconst element.
17417 (really_start_incremental_init, push_init_level, pop_init_level):
17418 Handle constructor_nonconst and nonconst element.
17419 (set_init_index): Call constant_expression_warning for array
17420 designators.
17421 (output_init_element): Fold value. Set constructor_nonconst as
17422 applicable. pedwarn for initializers not constant expressions.
17423 Update call to digest_init. Call constant_expression_warning
17424 where constant initializers are required.
17425 (process_init_element): Use c_save_expr.
17426 (c_finish_goto_ptr): Fold expression.
17427 (c_finish_return): Fold return value. Update call to
17428 convert_for_assignment.
17429 (c_start_case): Fold switch expression.
17430 (c_process_expr_stmt): Fold expression.
17431 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
17432 ensure statement expression is not evaluated in constant expression.
17433 (build_binary_op): Track whether results are integer constant
17434 expressions or may occur in such, disable folding and wrap results
17435 as applicable. Fold operands for -Wsign-compare warnings unless
17436 in_late_binary_op.
17437 (c_objc_common_truthvalue_conversion): Handle results folded to
17438 integer constants that are not integer constant expressions.
17439 * doc/extend.texi: Document when typeof operands are evaluated,
17440 that condition of __builtin_choose_expr is an integer constant
17441 expression, and more about use of __builtin_constant_p in
17442 initializers.
17443
17444 2009-03-29 Richard Guenther <rguenther@suse.de>
17445
17446 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17447 propagate addresses of array references.
17448
17449 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
17450
17451 * regmove.c (perhaps_ends_bb_p): Remove.
17452 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
17453 from INSN and check that the main loop stays within that basic block.
17454 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
17455 (regmove_forward_pass): Split out from regmove_optimize. Use
17456 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
17457 (regmove_backward_pass): Split out from regmove_optimize. Use
17458 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
17459 (regmove_optimize): Simplify.
17460
17461 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
17462
17463 PR target/39545
17464 * config/i386/i386.c (classify_argument): Ignore flexible array
17465 member in struct and warn ABI change.
17466
17467 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
17468
17469 * config/i386/i386-protos.h (ix86_agi_dependent): New.
17470
17471 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
17472 (ix86_adjust_cost): Updated.
17473
17474 2009-03-29 Jan Hubicka <jh@suse.cz>
17475
17476 PR middle-end/28850
17477 * tree-pass.h (pass_cleanup_eh): New function.
17478 (remove_unreachable_regions): Break code handling RTL
17479 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
17480 that can not be reached by runtime.
17481 (can_be_reached_by_runtime): New function.
17482 (label_to_region_map): New function.
17483 (num_eh_regions): New function.
17484 (rtl_remove_unreachable_regions): New function.
17485 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
17486 (remove_eh_region): New function.
17487 * except.h: Include sbitmap and vecprim.
17488 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
17489 num_eh_regions): Declare.
17490 * passes.c (init_optimization_passes): Schedule cleanup_eh.
17491 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
17492 * tree-eh.c (tree_remove_unreachable_handlers): New function.
17493 (tree_empty_eh_handler_p): New function.
17494 (cleanup_empty_eh): New function.
17495 (cleanup_eh): New function.
17496 (pass_cleanup_eh): New function.
17497
17498 2009-03-29 Jan Hubicka <jh@suse.cz>
17499
17500 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
17501 for removed regions.
17502
17503 2009-03-29 Jan Hubicka <jh@suse.cz>
17504
17505 * except.c (dump_eh_tree): Dump all datastructures.
17506
17507 2009-03-29 Jan Hubicka <jh@suse.cz>
17508
17509 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
17510 (duplicate_eh_regions_1): Likewise.
17511 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
17512 vector; call EH verification.
17513 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
17514 Be ready for region being removed.
17515
17516 2009-03-29 Jan Hubicka <jh@suse.cz>
17517
17518 * bitmap.c (bitmap_last_set_bit): New function.
17519 * bitmap.h (bitmap_last_set_bit): Declare.
17520
17521 2009-03-29 David Ayers <ayers@fsfe.org>
17522
17523 PR objc/27377
17524 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
17525 by calling objc_compare_types and surpress warnings about
17526 incompatible C pointers that are compatible ObjC pointers.
17527
17528 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
17529
17530 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
17531 call initialize_inline_failed.
17532 (initialize_inline_failed): Move it from here ...
17533 * cgraph.c (initialize_inline_failed): ... to here.
17534 (cgraph_create_edge): Call initialize_inline_failed rather than
17535 setting inline_failed directly.
17536
17537 2009-03-29 Ben Elliston <bje@au.ibm.com>
17538
17539 PR target/32542
17540 * sysv4.opt (msdata): Improve comment.
17541 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
17542 * sysv4.h (SVR4_ASM_SPEC): Likewise.
17543
17544 2009-03-29 Ben Elliston <bje@au.ibm.com>
17545
17546 PR target/30451
17547 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
17548 load and store attributes.
17549
17550 2009-03-29 Ben Elliston <bje@au.ibm.com>
17551
17552 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
17553 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
17554 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
17555 * doc/extend.texi (X86 Built-in Functions): Add index entries for
17556 __builtin_infq and __builtin_huge_valq.
17557
17558 2009-03-28 Anatoly Sokolov <aesok@post.ru>
17559
17560 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
17561 atmega8m1 devices.
17562 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
17563 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
17564
17565 2009-03-28 Xinliang David Li <davidxl@google.com>
17566
17567 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
17568 (do_dbg_cnt): New function.
17569
17570 2009-03-28 Jan Hubicka <jh@suse.cz>
17571
17572 Merge from pretty-ipa:
17573
17574 2009-03-27 Jan Hubicka <jh@suse.cz>
17575
17576 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
17577 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
17578 * passes.c (function_called_by_processed_nodes_p): New.
17579 * ipa-pure-const.c (check_call): Fix handling of operands.
17580 (analyze_function): Dump debug output for skipped bodies.
17581 (local_pure_const): Use function_called_by_processed_nodes_p.
17582 * dwarf2out.c (reference_to_unused): Use output.
17583 * passes.c (do_per_function_toporder): Likewise.
17584
17585 2008-11-12 Jan Hubicka <jh@suse.cz>
17586
17587 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
17588 * ipa-pure-const.c (funct_state_d): Add can throw field; make
17589 state_set_in_source enum
17590 (check_decl): Ignore memory tags; do not set fake looping flags;
17591 dump diagnostics.
17592 (check_operand, check_tree, check_rhs_var, check_lhs_var,
17593 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
17594 (check_call, analyze_function): Rewrite.
17595 (check_stmt): New.
17596 (add_new_function): Update call of analyze_function.
17597 (generate_summary): Add call of analyze_function.
17598 (propagate): Propagate can_throw; handle state_set_in_source correctly.
17599 (local_pure_const): New function.
17600 (pass_local_pure_const): New pass.
17601 * ipa-inline.c (inline_transform): Set after_inlining.
17602 * tree-eh.c (stmt_can_throw_external): New.
17603 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
17604 work with aliasing built.
17605 * tree-flow.h (stmt_can_throw_external): New.
17606 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
17607 and local pure/const pass in early and late optimization queue.
17608
17609 2009-03-28 Martin Jambor <mjambor@suse.cz>
17610
17611 * fold-const.c (get_pointer_modulus_and_residue): New parameter
17612 allow_func_align.
17613 (fold_binary): Allow function decl aligment consideration is the
17614 second argument is integer constant one.
17615 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
17616 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
17617 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
17618
17619 2009-03-28 Jan Hubicka <jh@suse.cz>
17620
17621 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
17622 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
17623 * function.h (rtl_data): Add nothrow flag.
17624 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
17625 set DECL_NOTHROW for AVAILABLE functions.
17626
17627 2009-03-28 Jakub Jelinek <jakub@redhat.com>
17628
17629 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
17630 following vector keyword has expansion starting with pixel or bool
17631 keyword, expand vector to __vector and pixel or bool to __pixel or
17632 __bool.
17633
17634 PR c++/39554
17635 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
17636 warn_if_disallowed_function_p): Removed.
17637 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
17638 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
17639 warning_if_disallowed_function_p.
17640 * flags.h (warn_if_disallowed_function_p,
17641 warn_disallowed_functions): Removed.
17642 * common.opt (Wdisallowed-function-list=): Removed.
17643 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
17644
17645 2009-03-28 Richard Guenther <rguenther@suse.de>
17646
17647 PR tree-optimization/38723
17648 * tree-ssa-pre.c (compute_avail): Add all default definitions to
17649 the entry block.
17650
17651 2009-03-28 Jan Hubicka <jh@suse.cz>
17652
17653 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
17654 test introduced by my previous patch.
17655
17656 2009-03-28 Richard Guenther <rguenther@suse.de>
17657
17658 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
17659 the PHIs value undefined.
17660
17661 2009-03-28 Jan Hubicka <jh@suse.cz>
17662
17663 * tree-pass.h (pass_fixup_cfg): New pass.
17664 * ipa-inline.c (inline_transform): Set
17665 always_inline_functions_inlined/after_inlining.
17666 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
17667 (pass_fixup_cfg): New pass.
17668 * passes.c (init_optimization_passes): Add fixup_cfg.
17669
17670 2009-03-28 Richard Guenther <rguenther@suse.de>
17671
17672 PR tree-optimization/38458
17673 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
17674 argument use the arguments copy-of value.
17675
17676 2009-03-28 Richard Guenther <rguenther@suse.de>
17677
17678 PR tree-optimization/38180
17679 * tree-ssa-ccp.c (get_default_value): Simplify.
17680 (likely_value): Likewise.
17681 (surely_varying_stmt_p): Properly handle VOP case.
17682 (ccp_initialize): Likewise.
17683 (ccp_fold): Handle propagating through *&.
17684 (fold_const_aggregate_ref): Also handle decls.
17685
17686 2009-03-28 Jan Hubicka <jh@suse.cz>
17687
17688 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
17689 * cgraph.h (cgraph_node): Likewise.
17690 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
17691 (cgraph_reset_node): Use process flag.
17692 (cgraph_mark_functions_to_output): Likewise.
17693 (cgraph_expand_function): Likewise.
17694 (cgraph_expand_all_functions): Likewise.
17695 (cgraph_output_in_order): Likewise.
17696 * dwarf2out.c (reference_to_unused): Likewise.
17697 * passes.c do_per_function_toporder): Likewise.
17698
17699 2009-03-28 Jan Hubicka <jh@suse.cz>
17700
17701 Bring from lto-branch:
17702
17703 2008-09-03 Doug Kwan <dougkwan@google.com>
17704
17705 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
17706 enums instead of reason strings.
17707 * cgraph.c (cgraph_create_edge): Same.
17708 (cgraph_inline_failed_string): New function.
17709 * cgraph.h (cgraph_inline_failed_t): New enum type.
17710 (cgraph_inline_failed_string): New prototype.
17711 (struct cgraph_edge): Change type of INLINED_FAILED from constant
17712 char pointer to cgraph_inline_failed_t.
17713 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
17714 (cgraph_default_inline_p): Ditto.
17715 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
17716 to cgraph_inline_failed_t pointer.
17717 * cif-code.def: New file.
17718 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
17719 reason string.
17720 (cgraph_check_inline_limits): Change type of REASON to pointer to
17721 cgraph_inline_failed_t. Replace reason strings with enums.
17722 (cgraph_default_inline_p): Ditto.
17723 (cgraph_recursive_inlining_p): Ditto.
17724 (update_caller_keys): Change type of FAILED_REASON to
17725 cgraph_inline_failed_t.
17726 (cgraph_set_inline_failed): Change type of REASON to pointer to
17727 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
17728 convert enums to strings for text output.
17729 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
17730 to be of type cgraph_inline_failed_t. Replace reason strings with
17731 enums. Call cgraph_inline_failed_string to covert enums
17732 to strings for text output.
17733 (cgraph_decide_inlining): Replace reason strings with enums.
17734 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
17735 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
17736 for text output.
17737 * tree-inline.c (expand_call_inline): Change type of REASON
17738 to cgraph_inline_failed_t. Replace reason strings with enums.
17739 Call cgraph_inline_failed_string for text output.
17740 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
17741 (cgraph.o): Ditto.
17742
17743 2009-03-28 Jan Hubicka <jh@suse.cz>
17744
17745 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
17746 cgraph_clone_node): Remove master clone handling.
17747 (cgraph_is_master_clone, cgraph_master_clone): Remove.
17748 * cgraph.h (master_clone): Remove.
17749 (cgraph_is_master_clone, cgraph_master_clone): Remove.
17750 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
17751 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
17752
17753 2009-03-28 Jan Hubicka <jh@suse.cz>
17754
17755 * cgraph.c (cgraph_function_body_availability): Functions declared
17756 inline are always safe to assume that it is not going to be replaced.
17757
17758 2009-03-28 Richard Guenther <rguenther@suse.de>
17759
17760 PR tree-optimization/38513
17761 * tree-ssa-pre.c (eliminate): Remove redundant stores.
17762 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
17763 EXC_PTR_EXPR and FILTER_EXPR.
17764 (get_ref_from_reference_ops): Likewise.
17765
17766 2009-03-28 Richard Guenther <rguenther@suse.de>
17767
17768 PR tree-optimization/38968
17769 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
17770 Use FLOOR_MOD_EXPR to compute misalignment.
17771
17772 2009-03-28 Richard Guenther <rguenther@suse.de>
17773
17774 PR tree-optimization/37795
17775 * tree.h (combine_comparisons): Declare.
17776 * fold-const.c (combine_comparisons): Export.
17777 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
17778 comparisons.
17779 (ifcombine_iforif): Use combine_comparisons.
17780
17781 2009-03-28 Jan Hubicka <jh@suse.cz>
17782
17783 * tree-eh.c (inlinable_call_p): New function.
17784 (make_eh_edges): Use it.
17785 (verify_eh_edges): Use it.
17786 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
17787 * except.c (reachable_next_level): Add inlinable_function argument
17788 (sjlj_find_directly_reachable_regions): Update.
17789 (add_reachable_handler): Do not set saw_any_handlers.
17790 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
17791 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
17792 Add new inlinable call parameter.
17793 (can_throw_internal, can_throw_external): Update.
17794 * except.h (can_throw_internal_1, can_throw_external_1,
17795 foreach_reachable_handler): Update declaration.
17796
17797 2009-03-28 Joseph Myers <joseph@codesourcery.com>
17798
17799 * config/arm/t-arm-coff, config/h8300/coff.h,
17800 config/i386/i386-aout.h, config/i386/i386-coff.h,
17801 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
17802 config/pdp11/2bsd.h, config/rs6000/aix41.h,
17803 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
17804 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
17805 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
17806 sys-types.h: Remove.
17807 * Makefile.in: Remove protoize and fixproto support and references
17808 in comments.
17809 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
17810 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
17811 Remove.
17812 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
17813 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
17814 unprotoize$(exeext).
17815 (rest.encap): Don't depend on $(STMP_FIXPROTO)
17816 (.PHONY): Don't depend on proto.
17817 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
17818 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
17819 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
17820 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
17821 build/gen-protos.o, build/scan.o, xsys-protos.h,
17822 build/fix-header$(build_exeext), build/fix-header.o,
17823 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
17824 stmp-install-fixproto): Remove.
17825 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
17826 SYSCALLS.c or fixproto files.
17827 (install-common): Don't install protoize.
17828 (install-headers-tar, install-headers-cpio, install-headers-cp):
17829 Don't depend on $(STMP_FIXPROTO).
17830 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
17831 install fixproto files or write out fixproto settings.
17832 (uninstall): Don't uninstall protoize.
17833 * config.gcc (use_fixproto): Remove.
17834 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
17835 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
17836 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
17837 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
17838 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
17839 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
17840 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
17841 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
17842 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
17843 * config/t-vxworks (STMP_FIXPROTO): Remove.
17844 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
17845 STMP_FIXPROTO): Remove.
17846 * config.in, configure: Regenerate.
17847 * crtstuff.c (gid_t, uid_t): Don't undefine.
17848 * doc/install.texi: Change m68k-coff to m68k-elf in example.
17849 (arm-*-coff, arm-*-aout: Remove target entries.
17850 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
17851 Remove mention of AIX 4.1.
17852 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
17853 * doc/invoke.texi (Running Protoize): Remove.
17854 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
17855 (Protoize Caveats): Remove.
17856 * tsystem.h: Update comments on headers assumed to exist.
17857
17858 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
17859
17860 * genautomata.c: Add a new year to the copyright. Add a new
17861 reference.
17862 (struct insn_reserv_decl): Add comments for member bypass_list.
17863 (find_bypass): Remove.
17864 (insert_bypass): New.
17865 (process_decls): Use insert_bypass.
17866 (output_internal_insn_latency_func): Output all bypasses with the
17867 same input insn in one switch case.
17868
17869 * rtl.def (define_bypass): Describe bypass choice.
17870 * doc/md.texi (define_bypass): Ditto.
17871
17872 2009-03-27 Richard Guenther <rguenther@suse.de>
17873
17874 * gimplify.c (mark_addressable): Export.
17875 * tree-flow.h (mark_addressable): Declare.
17876 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
17877 * tree-ssa.c (verify_phi_args): Verify that address taken
17878 variables have TREE_ADDRESSABLE set.
17879
17880 2009-03-27 Richard Guenther <rguenther@suse.de>
17881
17882 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
17883 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
17884 Do not mark decls TREE_ADDRESSABLE.
17885 (build_fold_addr_expr): Adjust.
17886 (fold_addr_expr): Remove.
17887 (fold_unary): Use build_fold_addr_expr.
17888 (fold_comparison): Likewise.
17889 (split_address_to_core_and_offset): Likewise.
17890 * coverage.c (tree_coverage_counter_addr): Mark the array decl
17891 TREE_ADDRESSABLE.
17892 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
17893 (gimplify_modify_expr_to_memcpy): Mark source and destination
17894 addressable.
17895 * omp-low.c (create_omp_child_function): Mark the object decl
17896 TREE_ADDRESSABLE.
17897 (lower_rec_input_clauses): Mark the var we take the address of
17898 TREE_ADDRESSABLE.
17899 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
17900
17901 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17902
17903 PR middle-end/39315
17904 * cfgexpand.c (expand_one_stack_var_at): Change alignment
17905 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
17906
17907 2009-03-27 Richard Guenther <rguenther@suse.de>
17908
17909 PR tree-optimization/39120
17910 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
17911 constraints.
17912 (handle_lhs_call): Process return constraints. Add escape
17913 constraints if necessary.
17914 (handle_const_call): Fill out return constraints. Make nested
17915 case more precise. Avoid consttmp if possible.
17916 (handle_pure_call): Fill out return constraints. Avoid
17917 callused if possible.
17918 (find_func_aliases): Simplify call handling.
17919
17920 2009-03-27 Richard Guenther <rguenther@suse.de>
17921
17922 PR tree-optimization/39120
17923 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
17924 as a representative.
17925 (solve_graph): Do propagate CALLUSED.
17926 (handle_pure_call): Use a scalar constraint from CALLUSED for
17927 the return value.
17928 (find_what_p_points_to): CALLUSED shall not appear in poins-to
17929 solutions.
17930
17931 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17932
17933 PR c/39323
17934 * c-common.c (handle_aligned_attribute): Properly check alignment
17935 overflow. Use (1U << i) instead of (1 << i).
17936
17937 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
17938
17939 * expr.h (get_mem_align_offset): Updated.
17940
17941 * tree.h (tree_decl_common): Change align to "unsigned int" and
17942 move it before pointer_alias_set.
17943
17944 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17945 Jakub Jelinek <jakub@redhat.com>
17946
17947 PR target/38034
17948 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
17949 gr_register_operand with gr_reg_or_0_operand.
17950 (cmpxchg_rel_di): Likewise.
17951 (sync_lock_test_and_set<mode>): Likewise.
17952
17953 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17954
17955 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
17956 (true_regnum): Likewise.
17957
17958 * rtlanal.c (subreg_info): Moved to ...
17959 * rtl.h (subreg_info): Here. New.
17960 (subreg_get_info): New.
17961
17962 * rtlanal.c (subreg_get_info): Make it extern.
17963
17964 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17965
17966 PR target/39472
17967 * config/i386/i386.c (ix86_abi): New.
17968 (override_options): Handle -mabi=.
17969 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
17970 (ix86_call_abi_override): Likewise.
17971 (init_cumulative_args): Likewise.
17972 (function_arg_advance): Likewise.
17973 (function_arg_64): Likewise.
17974 (function_arg): Likewise.
17975 (ix86_pass_by_reference): Likewise.
17976 (ix86_function_value_regno_p): Likewise.
17977 (ix86_build_builtin_va_list_abi): Likewise.
17978 (setup_incoming_varargs_64): Likewise.
17979 (is_va_list_char_pointer): Likewise.
17980 (ix86_init_machine_status): Likewise.
17981 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
17982 (ix86_function_type_abi): Return enum calling_abi. Rewrite
17983 for 64bit. Replace DEFAULT_ABI with ix86_abi.
17984 (ix86_function_abi): Make it static and return enum calling_abi.
17985 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
17986 with ix86_abi.
17987 (ix86_fn_abi_va_list): Updated.
17988
17989 * config/i386/i386.h (ix86_abi): New.
17990 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
17991 (CONDITIONAL_REGISTER_USAGE): Likewise.
17992 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
17993 (machine_function): Likewise.
17994
17995 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
17996 with ix86_abi.
17997 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
17998 (STACK_BOUNDARY): Likewise.
17999 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
18000
18001 * config/i386/i386.opt (mabi=): New.
18002
18003 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
18004 return enum calling_abi.
18005 (ix86_function_type_abi): Likewise.
18006 (ix86_function_abi): Removed.
18007
18008 * doc/invoke.texi: Document -mabi= option for x86.
18009
18010 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18011
18012 * builtins.c (real_dconstp): Delete.
18013 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
18014
18015 2009-03-27 Dodji Seketeli <dodji@redhat.com>
18016 Jakub Jelinek <jakub@redhat.com>
18017
18018 PR debug/37959
18019 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
18020 (gen_subprogram_die): When a function is explicit, generate the
18021 DW_AT_explicit attribute.
18022 * langhooks.h (struct lang_hooks_for_decls): Add
18023 function_decl_explicit_p langhook.
18024 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
18025 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
18026
18027 2009-03-27 Jakub Jelinek <jakub@redhat.com>
18028
18029 * builtins.c (fold_builtin_memory_op): Optimize memmove
18030 into memcpy if we can prove source and destination don't overlap.
18031
18032 * tree-inline.c: Include gt-tree-inline.h.
18033 (clone_fn_id_num): New variable.
18034 (clone_function_name): New function.
18035 (tree_function_versioning): Use it.
18036 * Makefile.in (GTFILES): Add tree-inline.c.
18037
18038 2009-03-27 Mark Mitchell <mark@codesourcery.com>
18039
18040 * BASE-VER: Change to 4.5.0.
18041
18042 2009-03-27 Xinliang David Li <davidxl@google.com>
18043
18044 PR tree-optimization/39557
18045 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
18046
18047 2009-03-27 Xinliang David Li <davidxl@google.com>
18048
18049 PR tree-optimization/39548
18050 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
18051 candidate check.
18052
18053 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18054
18055 * c-common.c (pointer_int_sum): Use %wd on return from
18056 tree_low_cst.
18057
18058 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18059
18060 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
18061 on return from tree_low_cst.
18062
18063 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
18064
18065 PR c++/36799
18066 * ginclude/stdarg.h (va_copy): Define also for
18067 __GXX_EXPERIMENTAL_CXX0X__.
18068
18069 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18070
18071 PR c++/35652
18072 * builtins.h (c_strlen): Do not warn here.
18073 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18074 * c-common.c (pointer_int_sum): Take an explicit location.
18075 Warn about offsets out of bounds.
18076 * c-common.h (pointer_int_sum): Adjust declaration.
18077
18078 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18079
18080 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
18081 markup glitch.
18082
18083 2009-03-26 Jakub Jelinek <jakub@redhat.com>
18084
18085 PR c++/39554
18086 * opts.c (warn_if_disallowed_function_p): Don't assume
18087 get_callee_fndecl must return non-NULL.
18088
18089 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
18090
18091 PR rtl-optimization/39522
18092 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
18093 when reg_reloaded_valid is set.
18094
18095 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18096
18097 * config/spu/divv2df3.c: New file.
18098 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
18099 (DPBIT_FUNCS): Filter out _div_df.
18100
18101 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
18102
18103 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
18104 a jump insn, count that jump in the distance to the loop start.
18105
18106 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
18107
18108 PR target/39523
18109 * config/sh/sh.c (calc_live_regs): Fix condition for global
18110 registers except PIC_OFFSET_TABLE_REGNUM.
18111
18112 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
18113
18114 PR/39518
18115 * doc/invoke.texi (-mconsole): New.
18116 (-mcygwin): New.
18117 (-mno-cygwin): New.
18118 (-mdll): New.
18119 (-mnop-fun-dllimport): New.
18120 (-mthread): New.
18121 (-mwin32): New.
18122 (-mwindows): New.
18123 (sub section "i386 and x86-64 Windows Options"): New.
18124
18125 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
18126
18127 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
18128 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
18129
18130 2009-03-25 Richard Guenther <rguenther@suse.de>
18131
18132 PR middle-end/39497
18133 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
18134 of -Wno-error.
18135
18136 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
18137
18138 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
18139 neither of haifa/selective schedulers are working.
18140
18141 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18142
18143 * doc/invoke.texi (Debugging Options): Fix description of
18144 -fno-merge-debug-strings.
18145
18146 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
18147
18148 * config/cris/libgcc.ver: New version-script.
18149 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
18150
18151 * configure.ac <GAS features, nop mnemonic>: Add pattern
18152 crisv32-*-* for "nop".
18153 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
18154 * configure: Regenerate.
18155
18156 2009-03-24 Ira Rosen <irar@il.ibm.com>
18157
18158 PR tree-optimization/39529
18159 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
18160 mark_sym_for_renaming for the tag copied to the new vector
18161 pointer.
18162
18163 2009-03-24 Arthur Loiret <aloiret@debian.org>
18164
18165 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
18166 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
18167 EXTRA_SPEC_FUNCTIONS.
18168 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
18169 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
18170 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
18171 -march and -mtune options.
18172
18173 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
18174
18175 * config/m68k/t-rtems: Add m5329 multilib.
18176
18177 2009-03-24 Dodji Seketeli <dodji@redhat.com>
18178 Jakub Jelinek <jakub@redhat.com>
18179
18180 PR debug/39524
18181 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
18182 nodes.
18183
18184 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18185
18186 PR c/39495
18187 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
18188 instead of c_parser_expression_conv, if original_code isn't one of the
18189 4 allowed comparison codes, fail.
18190
18191 2009-03-23 Richard Guenther <rguenther@suse.de>
18192
18193 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
18194 * tree.h (struct tree_type): Likewise.
18195 * reload.h (struct insn_chain): Likewise.
18196 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
18197 * function.h (struct function): Likewise.
18198 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
18199
18200 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18201
18202 PR tree-optimization/39516
18203 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
18204
18205 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
18206
18207 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
18208 should be set true if BITS_PER_WORD of target is bigger than 32
18209
18210 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
18211
18212 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
18213 Translate -B-options to -rpath-link. Correct existing
18214 rpath-link and conditionalize on !nostdlib.
18215
18216 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18217
18218 * doc/extend.texi (Function Attributes, Variable Attributes):
18219 Fix typos.
18220 * doc/invoke.texi (Debugging Options, Optimize Options)
18221 (i386 and x86-64 Options, MCore Options): Likewise.
18222
18223 2009-03-20 Jakub Jelinek <jakub@redhat.com>
18224
18225 PR debug/37890
18226 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
18227 it for block local namespace aliases.
18228 (gen_decl_die): Pass context_die to gen_namespace_die.
18229
18230 2009-03-19 Jakub Jelinek <jakub@redhat.com>
18231
18232 PR c/39495
18233 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
18234 minimum or maximum value.
18235
18236 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
18237
18238 * reginfo.c (globalize_reg): Recompute derived reg sets.
18239
18240 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
18241
18242 PR target/39063
18243 * libgcc2.c (mprotect): Do not use signed arguments for
18244 VirtualProtect, use DWORD arguments. Also fix the 'may
18245 be used uninitialized' warning for the np variable.
18246
18247 2009-03-19 Jakub Jelinek <jakub@redhat.com>
18248
18249 PR target/39496
18250 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
18251 functions using regparm calling conventions when not optimizing.
18252 (ix86_function_sseregparm): Similarly for sseregparm calling
18253 conventions.
18254
18255 2009-03-19 Li Feng <nemokingdom@gmail.com>
18256
18257 PR middle-end/39500
18258 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
18259 dependence if the first conflict is after niter iterations.
18260
18261 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
18262
18263 PR middle-end/38609
18264 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
18265 functions with dynamic stack-pointer adjustments.
18266
18267 2009-03-19 Ben Elliston <bje@au.ibm.com>
18268
18269 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
18270 option; change to -msdata=data.
18271
18272 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18273
18274 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
18275 and -fopenmp.
18276
18277 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
18278
18279 PR target/35180
18280 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
18281
18282 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
18283
18284 * doc/invoke.texi (Code Gen Options): Expand discussion of
18285 -fno-common.
18286
18287 2009-03-18 Jakub Jelinek <jakub@redhat.com>
18288
18289 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
18290 * matrix-reorg.c (struct matrix_info): Likewise.
18291 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
18292 * rtl.h (struct mem_attrs): Likewise.
18293 * df.h (struct df): Likewise.
18294 * tree-data-ref.h (struct data_dependence_relation): Likewise.
18295 * ira-int.h (struct ira_allocno): Likewise.
18296 * df-scan.c (struct df_collection_rec): Likewise.
18297 * ira.c (struct equivalence): Likewise.
18298 * function.c (struct temp_slot): Likewise.
18299 * cfgloop.h (struct loop): Likewise.
18300
18301 PR debug/39485
18302 * function.c (use_register_for_decl): When not optimizing, disregard
18303 register keyword for variables with types containing methods.
18304
18305 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
18306
18307 PR middle-end/39447
18308 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
18309 (is_simple_operand): Call contains_component_ref_p before calling data
18310 reference analysis that would fail on COMPONENT_REFs.
18311
18312 * tree-vrp.c (search_for_addr_array): Fix formatting.
18313
18314 2009-03-18 Richard Guenther <rguenther@suse.de>
18315
18316 * tree-vect-transform.c (vect_loop_versioning): Fold the
18317 generated comparisons.
18318 * tree-vectorizer.c (set_prologue_iterations): Likewise.
18319 (slpeel_tree_peel_loop_to_edge): Likewise.
18320
18321 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18322
18323 PR middle-end/37805
18324 * opts.c (print_specific_help): In addition to `undocumented',
18325 accept `separate' and `joined' flags if passed alone. Describe
18326 output by the first matched one of those.
18327 (common_handle_option): Skip over empty strings.
18328 * gcc.c (display_help): Fix help string for `--help='.
18329 * doc/invoke.texi (Option Summary, Overall Options): With
18330 `--help=', classes and qualifiers can both be repeated, but
18331 only the latter can be negated. One should not pass only
18332 negated qualifiers. Fix markup and examples.
18333
18334 Revert
18335 2008-10-14 Jakub Jelinek <jakub@redhat.com>
18336 PR middle-end/37805
18337 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
18338 and -fhelp=separate.
18339
18340 2009-03-17 Jing Yu <jingyu@google.com>
18341
18342 PR middle-end/39378
18343 * function.h (struct rtl_data): Move is_thunk from here...
18344 (struct function): ...to here.
18345 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
18346 * varasm.c (assemble_start_function): Change is_thunk from crtl to
18347 cfun.
18348 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
18349 cfun.
18350 (alpha_does_function_need_gp, alpha_start_function): Likewise.
18351 (alpha_output_function_end_prologue): Likewise.
18352 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
18353 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
18354 (rs6000_output_function_epilogue): Likewise.
18355 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
18356
18357 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
18358
18359 PR target/39482
18360 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
18361 from different units in a single alternative.
18362 (*truncdfsf_i387): Ditto.
18363 (*truncxfsf2_mixed): Ditto.
18364 (*truncxfdf2_mixed): Ditto.
18365
18366 2009-03-17 Jakub Jelinek <jakub@redhat.com>
18367
18368 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
18369 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
18370
18371 PR debug/39474
18372 * tree-ssa-live.c (remove_unused_locals): Don't remove local
18373 unused non-artificial variables when not optimizing.
18374
18375 PR debug/39471
18376 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
18377 DW_TAG_imported_module even if decl is IMPORTED_DECL with
18378 NAMESPACE_DECL in its DECL_INITIAL.
18379
18380 PR middle-end/39443
18381 * optabs.c (set_user_assembler_libfunc): New function.
18382 * expr.h (set_user_assembler_libfunc): New prototype.
18383 * c-common.c: Include libfuncs.h.
18384 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
18385 for memcmp, memset, memcpy, memmove and abort.
18386 * Makefile.in (c-common.o): Depend on libfuncs.h.
18387
18388 PR debug/39412
18389 * dwarf2out.c (gen_inlined_enumeration_type_die,
18390 gen_inlined_structure_type_die, gen_inlined_union_type_die,
18391 gen_tagged_type_instantiation_die): Removed.
18392 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
18393 do nothing.
18394
18395 2009-03-17 Janis Johnson <janis187@us.ibm.com>
18396
18397 PR testsuite/38526
18398 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
18399 its use.
18400 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
18401 (check-parallel-%): Ditto.
18402 (check-consistency): Ditto.
18403
18404 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
18405
18406 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
18407 local variable rhs by NULL_TREE.
18408
18409 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18410
18411 PR target/39477
18412 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
18413
18414 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18415
18416 PR target/39476
18417 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
18418
18419 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18420
18421 PR target/39473
18422 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
18423 for ms->sysv ABI calls only in 64bit mode.
18424
18425 * config/i386/i386.md (untyped_call): Support 32bit.
18426
18427 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
18428
18429 * doc/extend.texi: Replace x86_65 with x86_64.
18430
18431 2009-03-16 Jakub Jelinek <jakub@redhat.com>
18432
18433 PR tree-optimization/39455
18434 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
18435 mismatches for POINTER_TYPE_P (type).
18436 (number_of_iterations_le): Likewise.
18437
18438 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
18439
18440 * config/picochip/picochip.c: Removed profiling support.
18441 * config/picochip/picochip.md: Removed profiling instruction.
18442 * config/picochip/picochip.h: Removed profiling builtin.
18443
18444 2009-03-16 Joseph Myers <joseph@codesourcery.com>
18445
18446 * doc/install.texi (--with-host-libstdcxx): Document.
18447
18448 2009-03-14 Anatoly Sokolov <aesok@post.ru>
18449
18450 PR target/34299
18451 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
18452 generate a warning if the function name does not begin with
18453 "__vector" and the function has either the 'signal' or 'interrupt'
18454 attribute, from here to ...
18455 (avr_declare_function_name): ...here. New function.
18456 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
18457 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
18458
18459 2009-03-14 Jakub Jelinek <jakub@redhat.com>
18460
18461 PR bootstrap/39454
18462 * cse.c (fold_rtx): Don't modify original const_arg1 when
18463 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
18464 separate variable instead.
18465 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
18466 from out of range shift counts.
18467 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
18468
18469 2009-03-13 Catherine Moore <clm@codesourcery.com>
18470
18471 * config/i386/x-mingw32 (host-mingw32.o): Replace
18472 diagnostic.h with $(DIAGNOSTIC_H).
18473
18474 2009-03-12 Jakub Jelinek <jakub@redhat.com>
18475
18476 PR target/39431
18477 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
18478 predicate.
18479 * config/i386/sync.md (sync_compare_and_swap<mode>,
18480 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
18481 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
18482 into a register.
18483 (sync_double_compare_and_swapdi_pic,
18484 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
18485 cmpxchg8b_pic_memory_operand instead of just memory_operand.
18486
18487 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18488
18489 PR target/39445
18490 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
18491
18492 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18493
18494 PR target/39327
18495 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18496 (avx_addsubv4df3): Likewise.
18497 (*avx_addsubv4sf3): Likewise.
18498 (sse3_addsubv4sf3): Likewise.
18499
18500 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18501
18502 PR target/38824
18503 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
18504
18505 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
18506
18507 PR debug/39432
18508 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
18509 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18510 registers for allocnos created from user-defined variables.
18511
18512 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18513
18514 PR target/39181
18515 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
18516 of non-integer mode as well.
18517
18518 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
18519
18520 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
18521 for functions for which the parameter types are unknown.
18522
18523 2009-03-11 Jakub Jelinek <jakub@redhat.com>
18524
18525 PR target/39137
18526 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
18527 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
18528 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
18529 * config/i386/i386.c (ix86_local_alignment): For
18530 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
18531 long long variables on the stack to avoid dynamic realignment.
18532 Allow the first argument to be a decl rather than type.
18533 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
18534
18535 2009-03-11 Nick Clifton <nickc@redhat.com>
18536
18537 PR target/5362
18538 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
18539 options.
18540 Add description to mno-lsim option.
18541 * config/mcore/mcore.h: Remove comment about deprecated m4align
18542 option.
18543 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
18544 * doc/invoke.texi: Add description of mno-lsim and
18545 mstack-increment options.
18546
18547 * config/fr30/fr30.opt: Document the -mno-lsim option.
18548 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
18549 and -mno-lsim options.
18550
18551 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18552
18553 * fold-const.c (fold_comparison): Only call fold_inf_compare
18554 if the mode supports infinities.
18555
18556 2009-03-11 Jason Merrill <jason@redhat.com>
18557
18558 PR debug/39086
18559 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
18560 end already did. Notice GIMPLE_CALL modifications of the result.
18561 Don't copy debug information from an ignored decl or a decl from
18562 another function.
18563
18564 2009-03-10 Richard Guenther <rguenther@suse.de>
18565 Nathan Froyd <froydnj@codesourcery.com>
18566
18567 PR middle-end/37850
18568 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
18569 (__divMODE3): Likewise.
18570
18571 2009-03-09 Jakub Jelinek <jakub@redhat.com>
18572
18573 PR tree-optimization/39394
18574 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
18575 DECL_SIZE_UNIT of variable length FIELD_DECLs.
18576
18577 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18578
18579 * recog.c (verfiy_changes): Disallow renaming of hard regs in
18580 inline asms for register asm ("") declarations.
18581
18582 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
18583
18584 * fold-const.c (fold_unary): Fix comment.
18585
18586 2009-03-07 Jan Hubicka <jh@suse.cz>
18587
18588 PR target/39361
18589 * tree-inline.c (setup_one_parameter): Do replacement of const
18590 argument by constant in SSA form.
18591
18592 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18593
18594 PR middle-end/38028
18595 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
18596 determine alignment passed to assign_stack_local.
18597 (assign_parms_unsplit_complex): Likewise.
18598 * except.c (sjlj_build_landing_pads): Likewise.
18599
18600 2009-03-06 Jakub Jelinek <jakub@redhat.com>
18601
18602 PR middle-end/39360
18603 * tree-flow.h (add_referenced_var): Return bool instead of void.
18604 * tree-dfa.c (add_referenced_var): Return result of
18605 referenced_var_check_and_insert call.
18606 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
18607 of referenced_var_check_and_insert.
18608
18609 PR debug/39372
18610 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
18611 (gen_variable_die): Emit DW_AT_location on abstract static variable's
18612 DIE, don't emit it if abstract origin already has it.
18613 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
18614 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
18615
18616 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18617
18618 * genpreds.c (needs_variable): Fix parentheses at variable name
18619 detection.
18620 (write_tm_constrs_h): Indent generated code.
18621
18622 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18623
18624 * doc/extend.texi (Function Attributes): Add documentation
18625 for isr attributes.
18626
18627 2009-03-06 Jakub Jelinek <jakub@redhat.com>
18628
18629 PR debug/39387
18630 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
18631 take locus from its DECL_SOURCE_LOCATION instead of input_location.
18632
18633 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
18634
18635 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
18636 the loop as bad.
18637
18638 2009-03-05 Jakub Jelinek <jakub@redhat.com>
18639
18640 PR debug/39379
18641 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
18642 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
18643
18644 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
18645
18646 * config/i386/i386.md (R8_REG, R9_REG): New constants.
18647 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
18648 constants instead of magic numbers.
18649 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
18650 (QI_REG_P): Ditto.
18651 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
18652 (x86_64_ms_abi_int_parameter_registers): Ditto.
18653 (x86_64_int_return_registers): Ditto.
18654 (ix86_maybe_switch_abi): Ditto.
18655 (ix86_expand_call): Ditto for clobbered_registers array.
18656 (ix86_hard_regno_mode_ok): Ditto.
18657 (x86_extended_QIreg_mentioned_p): Ditto.
18658
18659 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
18660
18661 PR tree-optimization/39349
18662 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
18663
18664 * combine.c (gen_lowpart_for_combine): Use omode when generating
18665 clobber.
18666
18667 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
18668
18669 PR rtl-optimization/39235
18670 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
18671
18672 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
18673
18674 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
18675
18676 2009-03-04 Richard Guenther <rguenther@suse.de>
18677
18678 PR tree-optimization/39362
18679 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
18680 that occur in abnormal PHIs should be varying.
18681
18682 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
18683
18684 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
18685 Extend comments.
18686 (simple_iv): Take loop as an argument instead of statement.
18687 * tree-scalar-evolution.h (simple_iv): Declaration changed.
18688 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
18689 to simple_iv.
18690 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
18691 Ditto.
18692 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
18693 * matrix-reorg.c (analyze_transpose): Ditto.
18694 * tree-data-ref.c (dr_analyze_innermost): Ditto.
18695 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
18696 * tree-predcom.c (ref_at_iteration): Ditto.
18697 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
18698
18699 2009-03-04 Richard Guenther <rguenther@suse.de>
18700
18701 PR tree-optimization/39358
18702 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
18703 escaped_id and callused_id.
18704 (solve_graph): Likewise.
18705
18706 2009-03-04 Richard Guenther <rguenther@suse.de>
18707
18708 PR tree-optimization/39339
18709 * tree-sra.c (try_instantiate_multiple_fields): Make it
18710 no longer ICE on the above.
18711
18712 2009-03-03 Joseph Myers <joseph@codesourcery.com>
18713
18714 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
18715 that fits within Pmode.
18716
18717 2009-03-03 Steve Ellcey <sje@cup.hp.com>
18718
18719 PR middle-end/10109
18720 * tm.texi (LIBCALL_VALUE): Update description.
18721
18722 2009-03-03 Steve Ellcey <sje@cup.hp.com>
18723
18724 PR middle-end/34443
18725 * doc/extend.texi (section): Update description.
18726
18727 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
18728
18729 PR middle-end/39345
18730 * tree-inline.c (remapped_type): New.
18731 (can_be_nonlocal): Call remapped_type instead of remap_type.
18732
18733 2009-03-03 Jakub Jelinek <jakub@redhat.com>
18734
18735 PR fortran/39354
18736 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
18737 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
18738
18739 2009-03-03 Richard Guenther <rguenther@suse.de>
18740
18741 PR middle-end/39272
18742 * tree.c (tree_nonartificial_location): New function.
18743 * tree.h (tree_nonartificial_location): Declare.
18744 * builtins.c (expand_builtin_memory_chk): Provide location
18745 of the call location for artificial function pieces.
18746 (maybe_emit_chk_warning): Likewise.
18747 (maybe_emit_sprintf_chk_warning): Likewise.
18748 (maybe_emit_free_warning): Likewise.
18749 * expr.c (expand_expr_real_1): Likewise.
18750
18751 2009-03-03 Jakub Jelinek <jakub@redhat.com>
18752
18753 PR tree-optimization/39343
18754 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
18755 COMPONENT_REF t has ARRAY_TYPE.
18756
18757 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
18758
18759 PR middle-end/39335
18760 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
18761 when the type precision of the induction variable should be
18762 larger than the type precision of nit.
18763 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
18764 * graphite.c (graphite_loop_normal_form): Same.
18765 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
18766
18767 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
18768
18769 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
18770 (*call_1_rex64_ms_sysv): Use named constants instead of magic
18771 numbers to describe clobbered registers.
18772 (*call_value_0_rex64_ms_sysv): Ditto.
18773 * config/i386/mmx.md (mmx_emms): Ditto.
18774 (mmx_femms): Ditto.
18775
18776 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
18777
18778 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
18779 of ABI_64.
18780
18781 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18782
18783 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
18784 (spu_section_type_flags): New function.
18785
18786 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
18787
18788 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
18789 reg_class_contents of FLOAT_REGS into a temporary.
18790
18791 2009-03-02 Richard Guenther <rguenther@suse.de>
18792 Ira Rosen <irar@il.ibm.com>
18793
18794 PR tree-optimization/39318
18795 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
18796 information to the vectorized statement.
18797
18798 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
18799
18800 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
18801 variable. Use defined names instead of magic constants for REX SSE
18802 registers.
18803
18804 2009-03-01 Richard Guenther <rguenther@suse.de>
18805
18806 PR tree-optimization/39331
18807 * omp-low.c (lower_send_shared_vars): Do not receive new
18808 values for the reference of DECL_BY_REFERENCE parms or results.
18809
18810 2009-03-01 Jan Hubicka <jh@suse.cz>
18811
18812 PR debug/39267
18813 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
18814 BLOCK_NONLOCALIZED_VAR): New macros.
18815 (tree_block): Add nonlocalized_vars.
18816 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
18817 gen_decl_die): Add origin argument. Allow generation of die with
18818 origin at hand only.
18819 (gen_member_die, gen_type_die_with_usage, force_decl_die,
18820 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
18821 of gen_*.
18822 (gen_block_die): Fix checking for unused blocks.
18823 (process_scope_var): Break out from .... ; work with origins only.
18824 (decls_for_scope) ... here; process nonlocalized list.
18825 (dwarf2out_ignore_block): Look for nonlocalized vars.
18826 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
18827 vars.
18828 (dump_scope_block): Dump them.
18829 * tree-inline.c (remap_decls): Handle nonlocalized vars.
18830 (remap_block): Likewise.
18831 (can_be_nonlocal): New predicate.
18832 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
18833
18834 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18835
18836 * configure: Regenerate.
18837
18838 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18839
18840 * optc-gen.awk: No need to duplicate option flags twice.
18841 Reuse help texts for duplicate options which do not have any.
18842
18843 * gcc.c (display_help): Document --version.
18844
18845 * gcc.c (main): If print_help_list and verbose_flag, ensure
18846 driver output comes before subprocess output.
18847
18848 * optc-gen.awk: Assign all remaining fields to help string,
18849 space-separated, for multi-line help in *.opt.
18850
18851 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
18852 -Wno-pedantic-ms-format is for MinGW targets only.
18853
18854 * doc/options.texi (Option file format): Fix bad indentation,
18855 restoring dropped sentence.
18856
18857 2009-02-28 Jan Hubicka <jh@suse.cz>
18858
18859 * tree-inline.c (tree_function_versioning): Output debug info.
18860
18861 2009-02-28 Jan Hubicka <jh@suse.cz>
18862
18863 PR debug/39267
18864 * tree-inline.c (setup_one_parameter): Do not copy propagate
18865 arguments when not optimizing.
18866
18867 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
18868
18869 PR target/39327
18870 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18871 (avx_addsubv4df3): Likewise.
18872 (*avx_addsubv4sf3): Likewise.
18873 (sse3_addsubv4sf3): Likewise.
18874 (*avx_addsubv2df3): Likewise.
18875 (sse3_addsubv2df3): Likewise.
18876 (avx_unpckhps256): Correct item selectors.
18877 (avx_unpcklps256): Likewise.
18878 (avx_unpckhpd256): Likewise.
18879 (avx_unpcklpd256): Likewise.
18880
18881 2009-02-28 Jan Hubicka <jh@suse.cz>
18882
18883 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
18884 static vars.
18885 (copy_arguments_for_versioning): If var is declared don't declare it.
18886 (tree_function_versioning): First setup substitutions and then copy
18887 args.
18888
18889 2009-02-27 Jan Hubicka <jh@suse.cz>
18890
18891 PR debug/39267
18892 * cgraph.h (varpool_output_debug_info): Remove.
18893 * cgraphunit.c (varpool_output_debug_info): Remove.
18894 * dwarf2out.c (deferred_locations_struct): New struct
18895 (deferred_locations): New type.
18896 (deferred_locations_list): New static var.
18897 (deffer_location): New function.
18898 (gen_variable_die): Use it.
18899 (decls_for_scope): Output info on local static vars.
18900 (dwarf2out_finish): Process deferred locations.
18901 * varpool.c (varpool_output_debug_info): Remove.
18902
18903 2009-02-27 Jan Hubicka <jh@suse.cz>
18904
18905 PR debug/39267
18906 * tree.h (TREE_PROTECTED): Fix comment.
18907 (BLOCK_HANDLER_BLOCK): Remove.
18908 (struct tree_block): Remove handler_block add body_block.
18909 (inlined_function_outer_scope_p): New.
18910 (is_body_block): Remove.
18911 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
18912 * dwarf2out.c (is_inlined_entry_point): Remove.
18913 (add_high_low_attributes): Use inlined_function_outer_scope_p.
18914 (gen_block_die): Use is_inlined_entry_point check. Remove body block
18915 code.
18916 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
18917 * gimplify.c (gimplify_expr): Gimplify body blocks.
18918 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
18919 block with multiple subblocks.
18920 (dump_scope_block): Prettier output; dump more flags and info.
18921 (dump_scope_blocks): New.
18922 (remove_unused_locals): Use dump_scope_blocks.
18923 * tree-flow.h (dump_scope_blocks): Declare.
18924 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
18925 * stmt.c (is_body_block): Remove.
18926 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
18927 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
18928
18929 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
18930
18931 PR middle-end/39308
18932 * graphite.c (graphite_loop_normal_form): Do not call
18933 number_of_iterations_exit from a gcc_assert.
18934
18935 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18936
18937 * config/s390/s390.c (s390_swap_cmp): Look for conditional
18938 jumps if COND is NULL.
18939 (find_cond_jump): New function.
18940 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
18941 * config/s390/s390.md: Remove z10_cobra attribute value.
18942
18943 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
18944
18945 * config/alpha/alpha.h (alpha_expand_mov): Return false if
18946 force_const_mem returns NULL_RTX.
18947
18948 2009-02-26 Jan Hubicka <jh@suse.cz>
18949
18950 PR debug/39267
18951 * cgraph.h (varpool_output_debug_info): Remove.
18952 * cgraphunit.c (varpool_output_debug_info): Remove.
18953 * dwarf2out.c (deferred_locations_struct): New struct
18954 (deferred_locations): New type.
18955 (deferred_locations_list): New static var.
18956 (deffer_location): New function.
18957 (gen_variable_die): Use it.
18958 (decls_for_scope): Output info on local static vars.
18959 (dwarf2out_finish): Process deferred locations.
18960 * varpool.c (varpool_output_debug_info): Remove.
18961
18962 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
18963
18964 PR rtl-optimization/39241
18965 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
18966 to subreg_offset_representable_p.
18967
18968 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
18969
18970 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
18971 execute function prototype. Get f and nregs from max_reg_num
18972 and get_insns. Remove the first backward pass as it's dead,
18973 guard the forward pass by flag_expensive_optimizations.
18974 (rest_of_handle_regmove): Delete.
18975 (pass_regmove): Replace it with regmove_optimize.
18976
18977 2009-02-25 Martin Jambor <mjambor@suse.cz>
18978
18979 PR tree-optimization/39259
18980 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
18981 calls_alloca function flags.
18982 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
18983 calls are detected.
18984
18985 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
18986
18987 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
18988 flags_set_1_rtx, flags_set_1_set): Delete.
18989 (regmove_optimize): Do not call mark_flags_life_zones.
18990
18991 2009-02-24 Julian Brown <julian@codesourcery.com>
18992
18993 PR target/35965
18994 * config/arm/arm.c (require_pic_register): Only set
18995 cfun->machine->pic_reg once per function.
18996
18997 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
18998
18999 * doc/invoke.texi (Link Options): Document an easier way to pass
19000 options that take arguments to the GNU linker using -Xlinker and -Wl.
19001
19002 2009-02-24 Steve Ellcey <sje@cup.hp.com>
19003
19004 PR target/33785
19005 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
19006
19007 2009-02-24 Richard Guenther <rguenther@suse.de>
19008
19009 PR debug/39285
19010 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
19011
19012 2009-02-24 Richard Guenther <rguenther@suse.de>
19013 Zdenek Dvorak <ook@ucw.cz>
19014
19015 PR tree-optimization/39233
19016 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
19017 from converting them to a generic type.
19018
19019 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
19020
19021 PR tree-optimization/39260
19022 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
19023 contains a condition with a real type.
19024 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
19025
19026 2009-02-23 Jason Merrill <jason@redhat.com>
19027
19028 PR c++/38880
19029 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
19030 narrowing_initializer_constant_valid_p.
19031 (narrowing_initializer_constant_valid_p): Don't return
19032 null_pointer_node for adding a pointer to itself.
19033
19034 2009-02-23 Jan Hubicka <jh@suse.cz>
19035
19036 PR c/12245
19037 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
19038 resizing.
19039
19040 2009-02-23 Jan Hubicka <jh@suse.cz>
19041
19042 PR tree-optimization/37709
19043 * tree.c (block_ultimate_origin): Move here from dwarf2out.
19044 * tree.h (block_ultimate_origin): Declare.
19045 * dwarf2out.c (block_ultimate_origin): Move to tree.c
19046 * tree-ssa-live.c (remove_unused_scope_block_p):
19047 Eliminate blocks containig no instructions nor live variables nor
19048 nested blocks.
19049 (dump_scope_block): New function.
19050 (remove_unused_locals): Enable removal of dead blocks by default;
19051 enable dumping at TDF_DETAILS.
19052
19053 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19054
19055 * config/i386/i386.c (classify_argument): Don't allow COImode
19056 and OImode.
19057 (function_arg_advance_32): Don't allow OImode.
19058 (function_arg_32): Likewise.
19059 (function_value_32): Likewise.
19060 (return_in_memory_32): Likewise.
19061 (function_arg_64): Remove OImode comment.
19062
19063 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19064
19065 PR target/39261
19066 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
19067 ix86_expand_vector_set for V4DImode in 64bit mode only.
19068 (ix86_expand_vector_init_one_var): Likewise.
19069
19070 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
19071
19072 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
19073
19074 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
19075
19076 PR bootstrap/39257
19077 * loop-iv.c: Revert last change.
19078 * emit-rtl.c: Likewise.
19079
19080 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19081
19082 PR target/39256
19083 * config/i386/i386.c (type_natural_mode): Remove an extra
19084 space in the warning message.
19085 (function_value_32): Handle 32-byte vector modes.
19086 (return_in_memory_32): Likewise.
19087
19088 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
19089
19090 * loop-iv.c (truncate_value): New function.
19091 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
19092 of lowpart_subreg.
19093 (lowpart_subreg): Move to...
19094 * emit-rtl.c: ...here.
19095
19096 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
19097
19098 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
19099 accidental and undocumented change at revision 140860.
19100
19101 2009-02-21 Joseph Myers <joseph@codesourcery.com>
19102
19103 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
19104 take gimple_seq * arguments.
19105 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
19106 types_compatible_p langhook.
19107
19108 2009-02-20 Mark Mitchell <mark@codesourcery.com>
19109 Joseph Myers <joseph@codesourcery.com>
19110
19111 * config/arm/arm.c (arm_builtin_va_list): New function.
19112 (arm_expand_builtin_va_start): Likewise.
19113 (arm_gimplify_va_arg_expr): Likewise.
19114 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
19115 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
19116 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
19117 (va_list_type): New variable.
19118 (arm_mangle_type): Mangle va_list_type appropriately.
19119
19120 2009-02-20 Jakub Jelinek <jakub@redhat.com>
19121
19122 PR middle-end/39157
19123 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
19124 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
19125 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
19126 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
19127 parameter to 1000 for -O1 by default.
19128 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
19129 parameter.
19130 * loop-invariant.c: Include params.h.
19131 (move_loop_invariants): Don't call move_single_loop_invariants on
19132 very large loops.
19133
19134 2009-02-20 Jaka Mocnik <jaka@xlab.si>
19135
19136 * calls.c (emit_library_call_value_1): Use slot_offset instead of
19137 offset when calculating bounds for indexing stack_usage_map. Fixes
19138 a buffer overflow with certain target setups.
19139
19140 2009-02-20 Jakub Jelinek <jakub@redhat.com>
19141
19142 PR target/39240
19143 * calls.c (expand_call): Clear try_tail_call if caller and callee
19144 disagree in promotion of function return value.
19145
19146 2009-02-19 Jakub Jelinek <jakub@redhat.com>
19147
19148 PR target/39175
19149 * c-common.c (c_determine_visibility): If visibility changed and
19150 DECL_RTL has been already set, call make_decl_rtl to update symbol
19151 flags.
19152
19153 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
19154
19155 PR c++/39188
19156 * varasm.c (assemble_variable): Don't check DECL_NAME when
19157 globalizing a variable.
19158
19159 2009-02-19 Joseph Myers <joseph@codesourcery.com>
19160
19161 PR c/38483
19162 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
19163 expression before any __builtin_trap call.
19164 * c-typeck.c (build_function_call): Convert and check function
19165 arguments before generating a call to a trap. Evaluate the
19166 function arguments before the trap.
19167
19168 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
19169
19170 PR target/39228
19171 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
19172 (UNSPEC_FXAM_MEM): New unspec.
19173 (fxam<mode>2_i387_with_temp): New insn and split pattern.
19174 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
19175 memory using fxam<mode>2_i387_with_temp to remove excess precision.
19176
19177 2009-02-19 Richard Guenther <rguenther@suse.de>
19178
19179 PR tree-optimization/39207
19180 PR tree-optimization/39074
19181 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
19182 storedanything_tree): New.
19183 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
19184 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
19185 (build_succ_graph): Add edges from STOREDANYTHING to all
19186 non-direct nodes.
19187 (init_base_vars): Initialize STOREDANYTHING.
19188 (compute_points_to_sets): Free substitution info after
19189 building the succ graph.
19190 (ipa_pta_execute): Likewise.
19191
19192 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
19193 field.
19194 (do_ds_constraint): Do not add to special var or non-pointer
19195 field solutions.
19196 (type_could_have_pointers): Split out from ...
19197 (could_have_pointers): ... here. For arrays use the element type.
19198 (create_variable_info_for): Initialize may_have_pointers.
19199 (new_var_info): Likewise.
19200 (handle_lhs_call): Make the HEAP variable unknown-sized.
19201 (intra_create_variable_infos): Use a type with pointers for
19202 PARM_NOALIAS, make it unknown-sized.
19203
19204 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
19205
19206 PR target/39224
19207 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
19208
19209 2009-02-18 Jason Merrill <jason@redhat.com>
19210
19211 PR target/39179
19212 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
19213 value if DECL_EXTERNAL.
19214 * tree-sra.c (sra_walk_gimple_assign): Likewise.
19215 * target.h (gcc_target::binds_local_p): Clarify "module".
19216 * tree.h (TREE_PUBLIC): Clarify "module".
19217
19218 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
19219
19220 PR target/38891
19221 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
19222 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
19223
19224 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
19225
19226 PR target/39082
19227 * c.opt (Wabi): Support C and ObjC.
19228 (Wpsabi): New.
19229
19230 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
19231
19232 * config/i386/i386.c (classify_argument): Warn once about the ABI
19233 change when passing union with long double.
19234
19235 * doc/invoke.texi: Update -Wabi for warning psABI changes.
19236
19237 2009-02-18 Joseph Myers <joseph@codesourcery.com>
19238
19239 PR c/35447
19240 * c-parser.c (c_parser_compound_statement): Always enter and leave
19241 a scope.
19242
19243 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19244
19245 PR target/34587
19246 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
19247
19248 2009-02-18 Jakub Jelinek <jakub@redhat.com>
19249
19250 PR tree-optimization/36922
19251 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
19252 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
19253 Likewise.
19254
19255 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19256
19257 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
19258 to 0 for EABI64.
19259
19260 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19261
19262 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
19263
19264 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19265
19266 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
19267 tree sharing.
19268
19269 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
19270 Richard Sandiford <rdsandiford@googlemail.com>
19271
19272 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
19273 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
19274 (loongson_biadd): ...this.
19275
19276 2009-02-17 Richard Guenther <rguenther@suse.de>
19277
19278 PR tree-optimization/39202
19279 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
19280 a var make sure to follow existing collapses.
19281
19282 2009-02-17 Richard Guenther <rguenther@suse.de>
19283
19284 PR middle-end/39214
19285 * langhooks.c (lhd_print_error_function): Check for NULL block.
19286
19287 2009-02-17 Richard Guenther <rguenther@suse.de>
19288
19289 PR tree-optimization/39204
19290 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
19291 of the PHI arg.
19292
19293 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
19294
19295 * config/soft-fp/double.h: Update from glibc CVS.
19296
19297 2009-02-17 Richard Guenther <rguenther@suse.de>
19298
19299 PR tree-optimization/39207
19300 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
19301 strict-aliasing warnings for pointers pointing to NULL.
19302
19303 2009-02-16 Joseph Myers <joseph@codesourcery.com>
19304
19305 PR c/35446
19306 * c-parser.c (c_parser_braced_init): Call pop_init_level when
19307 skipping until next close brace.
19308
19309 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
19310
19311 PR target/37049
19312 * config/i386/i386.c (ix86_expand_push): Set memory alignment
19313 to function argument boundary.
19314
19315 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
19316
19317 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
19318 in the lea_add. Reload eventually constraints it properly.
19319 * config/picochip/constraints.md: Remove the target constraint
19320 "b", since it is not needed anymore.
19321
19322 2009-02-16 Jakub Jelinek <jakub@redhat.com>
19323
19324 * gthr-dce.h: Uglify function parameter and local variable names.
19325 * gthr-gnat.h: Likewise.
19326 * gthr-mipssde.h: Likewise.
19327 * gthr-nks.h: Likewise.
19328 * gthr-posix95.h: Likewise.
19329 * gthr-posix.h: Likewise.
19330 * gthr-rtems.h: Likewise.
19331 * gthr-single.h: Likewise.
19332 * gthr-solaris.h: Likewise.
19333 * gthr-tpf.h: Likewise.
19334 * gthr-vxworks.h: Likewise.
19335 * gthr-win32.h: Likewise.
19336
19337 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
19338
19339 PR target/39196
19340 * config/i386/i386.md: Restrict the new peephole2 to move
19341 between MMX/SSE registers.
19342
19343 2009-02-15 Richard Guenther <rguenther@suse.de>
19344
19345 Revert
19346 2009-02-13 Richard Guenther <rguenther@suse.de>
19347
19348 * configure.ac: Enable LFS.
19349 * configure: Re-generate.
19350 * config.in: Likewise.
19351
19352 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19353
19354 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
19355 spu_srqwbyte, spu_srqwbytebc): Define.
19356 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
19357 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
19358 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
19359 "shrqby_<mode>"): New insn-and-split patterns.
19360 * config/spu/spu.c (expand_builtin_args): Determine and return
19361 number of operands using spu_builtin_description data.
19362 (spu_expand_builtin_1): Use it.
19363
19364 2009-02-13 Steve Ellcey <sje@cup.hp.com>
19365
19366 PR target/38056
19367 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
19368 TARGET_CONST_GP.
19369
19370 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19371
19372 PR target/39149
19373 * config/i386/i386.c (override_options): Correct warning
19374 messages for -malign-loops, -malign-jumps and -malign-functions.
19375
19376 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19377
19378 PR target/39152
19379 * config/i386/i386.md: Restrict the new peephole2 to move
19380 between the general purpose registers.
19381
19382 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19383
19384 PR target/39162
19385 * config/i386/i386.c (type_natural_mode): Add a new argument.
19386 Return the original mode and warn ABI change if vector size is 32byte.
19387 (function_arg_advance): Updated.
19388 (function_arg): Likewise.
19389 (ix86_function_value): Likewise.
19390 (ix86_return_in_memory): Likewise.
19391 (ix86_sol10_return_in_memory): Likewise.
19392 (ix86_gimplify_va_arg): Likewise.
19393 (function_arg_32): Don't warn ABX ABI change here.
19394 (function_arg_64): Likewise.
19395
19396 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
19397
19398 * loop-iv.c (implies_p): In the final case, test that operands 0
19399 of the two comparisons match.
19400
19401 * config/bfin/bfin.c (find_prev_insn_start): New function.
19402 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
19403 (find_next_insn_start): Move.
19404
19405 2009-02-13 Richard Guenther <rguenther@suse.de>
19406
19407 * configure.ac: Enable LFS.
19408 * configure: Re-generate.
19409 * config.in: Likewise.
19410
19411 2009-02-13 Joseph Myers <joseph@codesourcery.com>
19412
19413 PR c/35444
19414 * c-parser.c (c_parser_parms_list_declarator): Discard pending
19415 sizes on syntax error after some arguments have been parsed.
19416
19417 2009-02-12 Jakub Jelinek <jakub@redhat.com>
19418
19419 * doc/invoke.texi (-fira): Remove.
19420
19421 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19422
19423 * caller-save.c: Replace regclass.c with reginfo.c in comments.
19424 * recog.c: Likewise.
19425 * rtl.h: Likewise.
19426
19427 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
19428
19429 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
19430 (umul_ppmm): Likewise.
19431 (count_leading_zeros): Likewise.
19432 (count_trailing_zeros): Likewise.
19433 (UMUL_TIME): Likewise.
19434
19435 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19436
19437 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
19438 soft-fp/t-softfp to tmake_file.
19439
19440 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
19441 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
19442 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
19443 IA64_BUILTIN_INFQ]: New.
19444 (ia64_init_builtins): Initialize __builtin_infq,
19445 __builtin_fabsq and __builtin_copysignq if not HPUX.
19446 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
19447 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
19448
19449 * config/ia64/lib1funcs.asm (__divtf3): Define only if
19450 SHARED is defined.
19451 (__fixtfti): Likewise.
19452 (__fixunstfti): Likewise.
19453 (__floattitf): Likewise.
19454
19455 * config/ia64/libgcc-glibc.ver: New.
19456 * config/ia64/t-fprules-softfp: Likewise.
19457 * config/ia64/sfp-machine.h: Likewise.
19458
19459 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
19460 (LIBGCC2_TF_CEXT): Likewise.
19461 (TF_SIZE): Likewise.
19462 (TARGET_INIT_LIBFUNCS): Likewise.
19463
19464 * config/ia64/t-glibc (SHLINB_MAPFILES):
19465 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
19466
19467 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19468
19469 * config/i386/i386.c (construct_container): Rewrite processing
19470 BLKmode with X86_64_SSE_CLASS.
19471
19472 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
19473
19474 PR target/39152
19475 * config/i386/i386.md: Replace simplify_replace_rtx with
19476 replace_rtx in the new peephole2.
19477
19478 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
19479
19480 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
19481 loop unrolling do not happen at -O2.
19482
19483 2009-02-12 Michael Matz <matz@suse.de>
19484
19485 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
19486
19487 2009-02-12 Jakub Jelinek <jakub@redhat.com>
19488
19489 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
19490 for -g3.
19491
19492 2009-02-12 Ben Elliston <bje@au.ibm.com>
19493
19494 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
19495 patterns when updating the back chain. Missed in the 2009-02-10
19496 change.
19497
19498 2009-02-11 Janis Johnson <janis187@us.ibm.com>
19499
19500 * doc/extend.texi (Decimal Floating Types): Update identifier of
19501 draft TR and list of missing support.
19502
19503 2009-02-11 Jakub Jelinek <jakub@redhat.com>
19504
19505 PR middle-end/39154
19506 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
19507 bit to variable length decl's flags, add it also to its
19508 pointer replacement variable.
19509
19510 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
19511 Jakub Jelinek <jakub@redhat.com>
19512
19513 PR target/39118
19514 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
19515 (memory_blockage): New expander.
19516 (*memory_blockage): New insn pattern.
19517 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
19518 instead of general blockage at the end of function prologue when
19519 frame pointer is used to access red zone area. Do not emit blockage
19520 when profiling, it is emitted in generic code.
19521 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
19522 function epilogue when frame pointer is used to access red zone area.
19523
19524 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
19525
19526 PR target/38824
19527 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
19528 by arithmetic with memory operands.
19529 * config/i386/predicates.md (commutative_operator): New.
19530
19531 2009-02-10 Janis Johnson <janis187@us.ibm.com>
19532
19533 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
19534 bulleted lists.
19535
19536 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
19537
19538 * alias.h (record_alias_subset): Declare.
19539 * alias.c (record_alias_subset): Make global.
19540
19541 2009-02-10 Nick Clifton <nickc@redhat.com>
19542
19543 * tree-parloops.c: Change license to GPLv3.
19544 * ipa-struct-reorg.c: Change license to GPLv3.
19545 * ipa-struct-reorg.h: Change license to GPLv3.
19546
19547 2009-02-10 Steve Ellcey <sje@cup.hp.com>
19548
19549 PR c/39084
19550 * c-decl.c (start_struct): Return NULL on error.
19551
19552 2009-02-10 Jakub Jelinek <jakub@redhat.com>
19553
19554 PR middle-end/39124
19555 * cfgloopmanip.c (remove_path): Call remove_bbs after
19556 cancel_loop_tree, not before it.
19557
19558 PR target/39139
19559 * function.h (struct function): Add has_local_explicit_reg_vars bit.
19560 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
19561 VAR_DECLs were seen.
19562 * tree-ssa-live.c (remove_unused_locals): Recompute
19563 cfun->has_local_explicit_reg_vars.
19564 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
19565 copies or clearings if cfun->has_local_explicit_reg_vars.
19566
19567 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
19568
19569 PR target/39118
19570 * config/i386/i386.c (expand_prologue): Emit blockage at the end
19571 of function prologue when frame pointer is used to access
19572 red zone area.
19573
19574 2009-02-10 Richard Guenther <rguenther@suse.de>
19575
19576 PR middle-end/39127
19577 * gimplify.c (gimple_regimplify_operands): Always look if
19578 we need to create a temporary.
19579
19580 2009-02-10 Richard Guenther <rguenther@suse.de>
19581
19582 PR tree-optimization/39132
19583 * tree-loop-distribution.c (todo): New global var.
19584 (generate_memset_zero): Trigger TODO_rebuild_alias.
19585 (tree_loop_distribution): Return todo.
19586
19587 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
19588
19589 PR target/39119
19590 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
19591 (x86_64_reg_class_name): Removed.
19592 (classify_argument): Return 0 if bytes > 32. Return 0 if the
19593 first one isn't X86_64_SSE_CLASS or any other ones aren't
19594 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
19595 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
19596 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
19597 and 3 X86_64_SSEUP_CLASS.
19598 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
19599 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
19600
19601 2009-02-10 Ben Elliston <bje@au.ibm.com>
19602
19603 * config/rs6000/rs6000.md (allocate_stack): Always use an update
19604 form instruction to update the stack back chain word, even if the
19605 user has disabled the generation of update instructions.
19606 (movdi_<mode>_update_stack): New.
19607 (movsi_update_stack): Likewise.
19608 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
19609 always use an update form instruction to update the stack back
19610 chain word.
19611
19612 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
19613
19614 PR middle-end/38953
19615 * graphite.c (if_region_set_false_region): After moving a region in
19616 the false branch of a condition, remove the empty dummy basic block.
19617 (gloog): Remove wrong fix for PR38953.
19618
19619 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19620
19621 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
19622 generation due to implicit sign extension.
19623
19624 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
19625
19626 PR middle-end/38981
19627 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
19628 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
19629
19630 2009-02-09 Richard Guenther <rguenther@suse.de>
19631
19632 PR middle-end/35202
19633 * convert.c (convert_to_real): Disable (float)fn((double)x)
19634 to fnf(x) conversion if errno differences may occur and
19635 -fmath-errno is set.
19636
19637 2009-02-07 Anatoly Sokolov <aesok@post.ru>
19638
19639 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
19640 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
19641 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
19642
19643 2009-02-06 Joseph Myers <joseph@codesourcery.com>
19644
19645 PR c/35434
19646 * c-common.c (handle_alias_attribute): Disallow attribute for
19647 anything not a FUNCTION_DECL or VAR_DECL.
19648
19649 2009-02-06 Janis Johnson <janis187@us.ibm.com>
19650
19651 PR c/39035
19652 * real.c (do_compare): Special-case compare of zero against
19653 decimal float value.
19654
19655 2009-02-06 Joseph Myers <joseph@codesourcery.com>
19656
19657 PR c/36432
19658 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
19659 as indicating flexible array members unless the field itself is
19660 being declarared as the incomplete array.
19661
19662 2009-02-06 Jan Hubicka <jh@suse.cz>
19663
19664 PR tree-optimization/38844
19665 * ipa-inline.c (try_inline): Stop inlining recursion when edge
19666 is already inlined.
19667
19668 2009-02-06 Richard Guenther <rguenther@suse.de>
19669
19670 PR middle-end/38977
19671 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
19672 fork because we may expand it as __gcov_fork.
19673
19674 2009-02-06 Nick Clifton <nickc@redhat.com>
19675
19676 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
19677
19678 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
19679
19680 PR tree-optimization/35659
19681 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
19682 vn_phi_eq): Shortcut if hashcode does not match.
19683 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
19684 NULL operands.
19685 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
19686 and avoid iterative_hash_expr.
19687 (FOR_EACH_VALUE_ID_IN_SET): New.
19688 (value_id_compare): Remove.
19689 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
19690 sort expressions by value id.
19691
19692 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
19693
19694 PR target/38991
19695 * config/sh/predicates.md (general_movsrc_operand): Don't check
19696 the subreg of system registers here.
19697
19698 2009-02-05 Jakub Jelinek <jakub@redhat.com>
19699
19700 PR c++/39106
19701 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
19702 on the copied decl.
19703
19704 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
19705
19706 PR rtl-optimization/39110
19707 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
19708 addresses, not aligned ones.
19709
19710 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
19711 Richard Guenther <rguenther@suse.de>
19712
19713 PR tree-optimization/39100
19714 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
19715 comment says and add edges.
19716
19717 2009-02-05 Joseph Myers <joseph@codesourcery.com>
19718
19719 PR c/35435
19720 * c-common.c (handle_tls_model_attribute): Ignore attribute for
19721 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
19722
19723 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
19724
19725 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
19726 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
19727 register_bb_in_sese, new_sese, free_sese): Moved.
19728 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
19729 outermost_loop_in_scop, build_scop_iteration_domain,
19730 expand_scalar_variables_ssa_name, get_vdef_before_scop,
19731 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
19732 Use loop_in_sese_p instead of loop_in_scop_p.
19733 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
19734 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
19735 (scopdet_basic_block_info): Fix bug in scop detection.
19736 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
19737 eq_loop_to_cloog_loop): Remove.
19738 (nb_loops_around_loop_in_scop, nb_loop
19739 ref_nb_loops): Moved here...
19740 * graphite.h (ref_nb_loops): ... from here.
19741 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
19742 (loop_domain_dim, loop_iteration_vector_dim): Remove.
19743 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
19744 * testsuite/gcc.dg/graphite/scop-19.c: New
19745
19746 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
19747 Hans-Peter Nilsson <hp@axis.com>
19748
19749 PR rtl-optimization/37889
19750 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
19751 Move offset handling from PLUS to before the switch. Use new
19752 arguments when considering SYMBOL_REFs too.
19753 (rtx_addr_can_trap_p): Pass dummy offset and size.
19754 (enum may_trap_p_flags): Remove.
19755 (may_trap_p_1): Pass size from MEM_SIZE.
19756
19757 PR rtl-optimization/38921
19758 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
19759 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
19760 * rtlanal.c (may_trap_after_code_motion_p): Delete.
19761 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
19762
19763 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
19764
19765 AVX Programming Reference (January, 2009)
19766 * config/i386/sse.md (*vpclmulqdq): New.
19767
19768 2009-02-04 Jakub Jelinek <jakub@redhat.com>
19769
19770 PR tree-optimization/38977
19771 PR gcov-profile/38292
19772 * calls.c (special_function_p): Disregard __builtin_ prefix.
19773
19774 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
19775
19776 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
19777 non-indexable addresses even before reload.
19778
19779 2009-02-03 Joseph Myers <joseph@codesourcery.com>
19780
19781 PR c/29129
19782 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
19783 as having variable size. Do not give an error for unnamed
19784 parameters with [*] declarators. Give a warning for type names
19785 with [*] declarators and mark them as variable size.
19786 * c-parser.c (c_parser_sizeof_expression): Do not give an error
19787 for sizeof applied to [*] type names.
19788
19789 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
19790
19791 PR C++/36607
19792 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
19793
19794 2009-02-03 Jakub Jelinek <jakub@redhat.com>
19795
19796 * gcc.c (process_command): Update copyright notice dates.
19797 * gcov.c (print_version): Likewise.
19798 * gcov-dump.c (print_version): Likewise.
19799 * mips-tfile.c (main): Likewise.
19800 * mips-tdump.c (main): Likewise.
19801
19802 2009-02-03 Joseph Myers <joseph@codesourcery.com>
19803
19804 PR c/35433
19805 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
19806 for composite type involving a zero-length array type.
19807
19808 2009-02-03 Jakub Jelinek <jakub@redhat.com>
19809
19810 PR target/35318
19811 * function.c (match_asm_constraints_1): Skip over
19812 initial optional % in the constraint.
19813
19814 PR inline-asm/39059
19815 * c-parser.c (c_parser_postfix_expression): If fixed point is not
19816 supported, don't accept FIXED_CSTs.
19817 * c-decl.c (finish_declspecs): Error if fixed point is not supported
19818 and _Sat is used without _Fract/_Accum. Set specs->type to
19819 integer_type_node for cts_fract/cts_accum if fixed point is not
19820 supported.
19821
19822 2009-02-02 Catherine Moore <clm@codesourcery.com>
19823
19824 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
19825
19826 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19827
19828 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
19829 (ABI_HAS_64BIT_SYMBOLS): Use it.
19830 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
19831
19832 2009-02-02 Paul Brook <paul@codesourcery.com>
19833
19834 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
19835
19836 2009-02-02 Jakub Jelinek <jakub@redhat.com>
19837
19838 PR inline-asm/39058
19839 * recog.h (asm_operand_ok): Add constraints argument.
19840 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
19841 recurse on matching constraint.
19842 (check_asm_operands): Pass constraints as 3rd argument to
19843 asm_operand_ok. Don't look up matching constraint here.
19844 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
19845 to asm_operand_ok.
19846
19847 2009-02-02 Ben Elliston <bje@au.ibm.com>
19848
19849 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
19850 TARGET_NARROW_VOLATILE_BITFIELD macro names.
19851
19852 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19853
19854 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
19855 information. Remove some obsolete information. Reorganize.
19856
19857 * config/pa/fptr.c: Revert license to GPL 2.
19858 * config/pa/milli64.S: Likewise.
19859
19860 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
19861
19862 PR target/38904
19863 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
19864 LIBRARY name in, instead of hard-coding it.
19865 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
19866 extra target make frag to tmake_files according to EH model.
19867 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
19868 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
19869 frags that define makefile variable EH_MODEL appropriately.
19870 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
19871 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
19872 to "-sjlj" according to type of EH configured.
19873 (LIBGCC_SONAME): Concatenate it to shared library base name.
19874 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
19875 to "_sjlj" according to type of EH configured.
19876 (LIBGCC_SONAME): Concatenate it to shared library base name.
19877 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
19878 (SHLIB_LINK): Add missing semicolon to if-else construct.
19879 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
19880 string value of "pe_dll" command-line option.
19881 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
19882 (SHLIB_SONAME): Use it when overriding t-cygming default.
19883 (SHLIB_IMPLIB): Override t-cygming default.
19884 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
19885 string value of "pe_dll" command-line option.
19886
19887 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
19888
19889 PR target/38952
19890 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
19891 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
19892
19893 2009-01-31 Richard Guenther <rguenther@suse.de>
19894
19895 PR tree-optimization/38937
19896 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
19897 computing the transitive closure.
19898
19899 2009-01-30 Richard Guenther <rguenther@suse.de>
19900
19901 PR tree-optimization/39041
19902 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
19903 Propagate variable indices only if the types match for this stmt.
19904
19905 2009-01-30 Jakub Jelinek <jakub@redhat.com>
19906
19907 PR target/39013
19908 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
19909 inline but never defined.
19910
19911 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
19912
19913 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
19914 (*insv_h_di_reg_extimm): New insn.
19915 (*insv_l<mode>_reg_extimm): New insn.
19916
19917 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
19918
19919 * config/picochip/picochip.c (flag_conserve_stack): set
19920 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
19921 fconserve-stack. Reduce call-overhead used by inliner.
19922
19923 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
19924
19925 PR/38157
19926 * common.opt (flag_conserve_stack): Initialised to zero.
19927
19928 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
19929
19930 PR/39002
19931 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
19932 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
19933 method.
19934
19935 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
19936
19937 * ira-color.c (allocno_reload_assign): Update comments.
19938 * regmove.c (regmove_optimize): Likewise.
19939
19940 * ra.h: Removed.
19941
19942 2009-01-29 Robert Millan <rmh@aybabtu.com>
19943
19944 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
19945 * config/i386/kopensolaris-gnu.h: New file. Undefine
19946 `MD_UNWIND_SUPPORT'.
19947 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
19948
19949 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
19950
19951 PR tree-optimization/39007
19952 * tree-loop-distribution.c (generate_builtin): Use
19953 recompute_dominator to compute the immediate dominator of the
19954 basic block just after the loop.
19955
19956 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19957
19958 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
19959 (ASM_OUTPUT_DWARF_PCREL): Define.
19960
19961 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
19962
19963 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
19964 * doc/passes.texi: Remove entries about regclass, local-alloc, and
19965 global. Modify entries about regmove and IRA.
19966
19967 * ra-conflict.c: Remove the file.
19968
19969 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
19970
19971 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
19972 (pass_regclass_init): Rename to pass_reginfo_init.
19973
19974 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
19975
19976 * toplev.h (flag_ira): Remove.
19977
19978 * caller-save.c (setup_save_areas): Remove flag_ira.
19979
19980 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
19981
19982 * global.c: Remove the file.
19983
19984 * opts.c (decode_options): Remove flag_ira.
19985
19986 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
19987
19988 * regmove.c: Modify file description.
19989 (find_use_as_address, try_auto_increment): Define them only if
19990 AUTO_INC_DEC is defined.
19991 (replacement_quality, replace_in_call_usage, fixup_match_1,
19992 stable_and_no_regs_but_for_p): Remove.
19993 (reg_set_in_bb): Make it static.
19994 (regmove_optimize): Remove flag_ira and code which worked for
19995 !flag_ira.
19996
19997 * local-alloc.c: Remove the file.
19998
19999 * common.opt (fira): Remove.
20000
20001 * ira.c: Include except.h.
20002 (eliminable_regset): Move from global.c.
20003 (mark_elimination): Ditto. Remove flag_ira.
20004 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
20005 equiv_mem_modified, validate_equiv_mem_from_store,
20006 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
20007 contains_replace_regs, memref_referenced_p, memref_used_between_p,
20008 no_equiv, recorded_label_ref): Move from local-alloc.c.
20009 (update_equiv_regs): Ditto. Make it static.
20010 (print_insn_chain, print_insn_chains): Move it from global.c.
20011 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
20012 (build_insn_chain): Ditto. Make it static.
20013 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
20014 Rename to init_live_subregs.
20015 (gate_ira): Remove flag_ira.
20016
20017 * regclass.c: Rename reginfo.c. Change file description.
20018 (FORBIDDEN_INC_DEC_CLASSES): Remove.
20019 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
20020 (init_reg_sets_1): Remove code for evaluation of
20021 reg_class_superclasses and losing_caller_save_reg_set.
20022 (init_regs): Remove init_reg_autoinc.
20023 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
20024 ok_for_base_p_nonstrict): Remove.
20025 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
20026 (pass_regclass_init): Rename to pass_reginfo_init. Modify
20027 corresponding entries.
20028 (dump_regclass, record_operand_costs, scan_one_insn,
20029 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
20030 record_address_regs, auto_inc_dec_reg_p): Remove.
20031 (gt-regclass.h): Rename to gt-reginfo.h.
20032
20033 * rtl.h (dump_global_regs, retry_global_alloc,
20034 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
20035
20036 * Makefile.in (RA_H): Remove.
20037 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
20038 Rename regclass.o to reginfo.o.
20039 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
20040 gt-reginfo.h.
20041 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
20042 (GTFILES): Rename regclass.c to reginfo.c.
20043
20044 * passes.c (init_optimization_passes): Remove pass_local_alloc and
20045 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
20046
20047 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20048 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
20049 Remove flag_ira.
20050 (finish_spills): Ditto. Remove code for !flag_ira.
20051
20052 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
20053
20054 PR middle-end/35854
20055 * doc/invoke.texi (rtl debug options): Complete rewrite.
20056 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
20057 to auto_inc_dec".
20058 * mode-switching.c (pass_mode_switching): Rename pass from
20059 "mode-sw" to "mode_sw".
20060 * except.c (pass_convert_to_eh_ranges): Rename pass from
20061 "eh-ranges" to "eh_ranges".
20062 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
20063 to "subreg1".
20064
20065
20066 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
20067 Alexander Monakov <amonakov@ispras.ru>
20068
20069 PR middle-end/38857
20070 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
20071 register.
20072 (move_exprs_to_boundary): Change return type and pass through
20073 should_move from move_op. Relax assert. Update usage ...
20074 (schedule_expr_on_boundary): ... here. Use should_move instead of
20075 cant_move.
20076 (move_op_orig_expr_found): Indicate that insn was disconnected from
20077 stream.
20078 (code_motion_process_successors): Do not call after_merge_succs
20079 callback if original expression was not found when traversing any of
20080 the branches.
20081 (code_motion_path_driver): Change return type. Update prototype.
20082 (move_op): Update comment. Add a new parameter (should_move). Update
20083 prototype. Set *should_move based on indication provided by
20084 move_op_orig_expr_found.
20085
20086 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
20087
20088 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
20089 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
20090 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
20091 * config/rs6000/rs6000.c (rs6000_override_options): Default
20092 avoid-indexed-addresses on for Power6, off for everything else.
20093 (avoiding_indexed_address_p): New function.
20094 (rs6000_legitimize_address): Use it.
20095 (rs6000_legitimate_address): Likewise.
20096 * config/rs6000/rs6000.md (movXX_updateX): Likewise
20097
20098 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
20099
20100 PR tree-optimization/38997
20101 * tree-loop-distribution.c (generate_memset_zero): Use
20102 POINTER_PLUS_EXPR for a pointer addition.
20103
20104 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
20105
20106 * config/s390/s390.md (bswap<mode>2): New pattern added.
20107
20108 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20109
20110 * config/s390/s390.md (*tls_load_31): Added type attribute.
20111
20112 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20113
20114 * config/s390/s390.md: Fix a few comments.
20115
20116 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20117
20118 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
20119 (*tm<mode>_full): Fixed z10prop attribute.
20120 (*tst<mode>_extimm): Fixed z10prop attribute.
20121 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
20122 (*tstqiCCT_cconly): Fixed z10prop attribute.
20123 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
20124 (*movsi_larl): Fixed z10prop attribute.
20125 (*movsi_zarch): Fixed z10prop attribute.
20126 (*movsi_eas): Fixed z10prop attribute.
20127 (*movhi): Fixed z10prop attribute.
20128 (*movqi): Fixed z10prop attribute.
20129 (*movstrictqi): Fixed z10prop attribute.
20130 (*mov<mode>): Fixed z10prop attribute.
20131 (*movcc): Fixed z10prop attribute.
20132 (*sethighpartdi_64): Fixed z10prop attribute.
20133 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
20134 (*negdi2_sign_cc): Fixed z10prop attribute.
20135 (*negdi2_sign): Fixed z10prop attribute.
20136 (*absdi2_sign_cc): Fixed z10prop attribute.
20137 (*absdi2_sign): Fixed z10prop attribute.
20138 (*negabsdi2_sign_cc): Fixed z10prop attribute.
20139 (*negabsdi2_sign): Fixed z10prop attribute.
20140 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
20141 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
20142 (doloop_si64): Fixed z10prop attribute.
20143 (doloop_si31): Fixed z10prop attribute.
20144 (doloop_long): Fixed z10prop attribute.
20145 (indirect_jump): Fixed z10prop attribute.
20146 (nop): Fixed z10prop attribute.
20147 (main_base_64): Fixed z10prop attribute.
20148 (reload_base_64): Fixed z10prop attribute.
20149
20150 2009-01-28 Jakub Jelinek <jakub@redhat.com>
20151
20152 PR rtl-optimization/38740
20153 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
20154 if !optimize.
20155 * config/mips/mips.c (mips_reorg): Likewise.
20156
20157 2009-01-28 Richard Guenther <rguenther@suse.de>
20158
20159 PR tree-optimization/38926
20160 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
20161 with the correct value id to a value.
20162 (do_regular_insertion): Use the value number of edoubleprime
20163 for the value number of the expr.
20164
20165 Revert
20166 2008-08-21 Richard Guenther <rguenther@suse.de>
20167
20168 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
20169 a PHI ask VN if it is already available.
20170 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
20171 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
20172
20173 2009-01-28 Jakub Jelinek <jakub@redhat.com>
20174
20175 PR middle-end/38934
20176 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
20177 set to varying whenever max has TREE_OVERFLOW set, similarly
20178 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
20179
20180 2009-01-28 Richard Guenther <rguenther@suse.de>
20181
20182 PR middle-end/38908
20183 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
20184 uninitialized aggregate uses in call arguments.
20185
20186 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
20187
20188 PR tree-optimization/38984
20189 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
20190 the nothing_id variable if -fno-delete-null-pointer-checks.
20191
20192 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
20193
20194 PR target/38988
20195 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
20196 (set_got_offset_rex64): Ditto.
20197
20198 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
20199
20200 PR target/38941
20201 * doc/extend.texi: Improve local variable with asm reg.
20202
20203 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
20204
20205 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
20206 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
20207 was not supplied then set warn_packed_bitfield_compat to the
20208 default value of 1.
20209 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
20210 against 1.
20211
20212 2009-01-27 Richard Guenther <rguenther@suse.de>
20213
20214 PR tree-optimization/38503
20215 * cfgexpand.c (expand_gimple_basic_block): Ignore
20216 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
20217 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
20218 variables that cannot have TBAA applied.
20219 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
20220 statements.
20221
20222 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
20223
20224 PR middle-end/38969
20225 * calls.c (initialize_argument_information): Do not wrap complex
20226 arguments in SAVE_EXPR.
20227
20228 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
20229
20230 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
20231 (INSTALL_LIBGCC): Revert typo commit.
20232
20233 2009-01-26 Richard Guenther <rguenther@suse.de>
20234
20235 PR tree-optimization/38745
20236 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
20237 from special handling.
20238
20239 2009-01-26 Richard Guenther <rguenther@suse.de>
20240
20241 PR tree-optimization/38745
20242 * tree-ssa.c (execute_update_addresses_taken): Do not include
20243 variables that cannot possibly be a register in not_reg_needs.
20244 Do not clear TREE_ADDRESSABLE on vars that may not become
20245 registers.
20246 * tree-ssa.c (update_alias_info_1): Include those in the set
20247 of addressable vars.
20248
20249 2009-01-26 Richard Guenther <rguenther@suse.de>
20250
20251 PR middle-end/38851
20252 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
20253 * tree-ssa-dse.c: Include langhooks.h
20254 (execute_simple_dse): Remove stores with zero size.
20255
20256 2009-01-24 Jakub Jelinek <jakub@redhat.com>
20257
20258 PR c/38957
20259 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
20260 as PLUS_EXPR.
20261
20262 2009-01-24 Julian Brown <julian@codesourcery.com>
20263
20264 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
20265 config/arm/linux-atomic.c.
20266 * config/arm/linux-atomic.c: New.
20267
20268 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
20269
20270 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
20271 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
20272 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
20273
20274 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
20275
20276 PR c/38938
20277 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
20278 properly.
20279
20280 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
20281
20282 PR tree-optimization/38953
20283 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
20284 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
20285 (gloog): Split the exit of the scop when the scop exit is a loop exit.
20286 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
20287 changed the CFG.
20288
20289 2009-01-24 Paul Brook <paul@codesourcery.com>
20290
20291 * config/arm/neon.md (neon_type): Move to arm.md.
20292 (neon_mov<VSTRUCT>): Add neon_type attribute.
20293 * config/arm/arm.md (neon_type): Move to here.
20294 (conds): Add "unconditioal" and use as default for NEON insns.
20295
20296 2009-01-24 Ben Elliston <bje@au.ibm.com>
20297
20298 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
20299 void *' warning from -Wc++-compat.
20300 * Makefile.in (dominance.o-warn): Remove.
20301
20302 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
20303
20304 PR tree-optimization/38932
20305 * fold-const.c (fold_unary_ignore_overflow): New.
20306 * tree.h (fold_unary_ignore_overflow): Declare.
20307 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
20308 * tree-ssa-sccvn.c (visit_reference_op_load,
20309 simplify_unary_expression): Likewise.
20310
20311 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
20312
20313 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
20314 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
20315 regardless of their type.
20316 * c-common.c (handle_packed_attribute): Don't ignore packed on
20317 bitfields.
20318 * c.opt (Wpacked-bitfield-compat): New warning option.
20319 * stor-layout.c (place_field): Warn if offset of a field changed.
20320 * doc/extend.texi (packed): Mention the ABI change.
20321 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
20322 (Warning Options): Add it to the list.
20323
20324 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
20325
20326 * c-opts.c (c_common_post_options): Fix a typo in comments.
20327
20328 2009-01-22 Steve Ellcey <sje@cup.hp.com>
20329
20330 PR middle-end/38615
20331 * gimplify.c (gimplify_init_constructor): Fix promotion of const
20332 variables to static.
20333 * doc/invoke.texi (-fmerge-all-constants): Update description.
20334
20335 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
20336
20337 PR target/38931
20338 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
20339 (*movdi_1_rex64): Use type "mmx" for alternative 5.
20340
20341 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
20342
20343 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
20344 a word boundary.
20345 (LOCAL_ALIGNMENT): Similarly.
20346
20347 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
20348 Joseph Myers <joseph@codesourcery.com>
20349
20350 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
20351 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
20352 * config/arm/arm-tune.md: Regenerate.
20353 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
20354 -march=iwmmxt2.
20355
20356 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
20357
20358 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
20359 version number to five.
20360
20361 2009-01-22 Dodji Seketeli <dodji@redhat.com>
20362
20363 PR c++/38930
20364 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
20365 * c-common.c (set_underlying_type): Likewise.
20366 (is_typedef_decl ): Likewise
20367 * tree.h: Likewise
20368 (set_underlying_type): Likewise.
20369 (is_typedef_type): Likewise.
20370
20371 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
20372
20373 PR middle-end/38587
20374 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
20375 crossing setjmps.
20376
20377 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
20378
20379 PR bootstrap/37660
20380 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
20381 (LIBGCC_SPEC): Don't define.
20382 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
20383
20384 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
20385
20386 PR rtl-optimization/38879
20387 * alias.c (base_alias_check): Unaligned access via AND address can
20388 alias all surrounding object types except those with sizes equal
20389 or wider than the size of unaligned access.
20390
20391 2009-01-21 Dodji Seketeli <dodji@redhat.com>
20392
20393 PR c++/26693
20394 * c-decl.c (clone_underlying_type): Move this ...
20395 * c-common.c (set_underlying_type): ... here.
20396 Also, make sure the function properly sets TYPE_STUB_DECL() on
20397 the newly created typedef variant type.
20398 (is_typedef_decl ): New entry point.
20399 * tree.h: Added a new member member_types_needing_access_check to
20400 struct tree_decl_non_common.
20401 (set_underlying_type): New entry point.
20402 (is_typedef_type): Likewise.
20403
20404 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
20405
20406 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
20407 Check whether two instructions have memory references that
20408 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
20409 are helper functions for traversing.
20410 * alias.h (insn_alias_sets_confilict_p): New prototypes.
20411 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
20412 not to draw dependency edge for instructions with non-conflicting
20413 alias sets.
20414
20415 2009-01-20 Joseph Myers <joseph@codesourcery.com>
20416
20417 PR other/38758
20418 * longlong.h: Update copyright years. Use soft-fp license notice.
20419 Sync __clz_tab declaration with glibc.
20420
20421 2009-01-20 Steve Ellcey <sje@cup.hp.com>
20422
20423 PR target/30687
20424 * doc/extend.texi (syscall_linkage): New.
20425 (version_id): Modify.
20426
20427 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
20428 Richard Guenther <rguenther@suse.de>
20429
20430 PR tree-optimization/38747
20431 PR tree-optimization/38748
20432 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
20433 conversion if the base address is an indirect reference and the
20434 aliasing sets could cause issues.
20435
20436 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
20437
20438 * common.opt (fgraphite, fgraphite-identity): Add comment for
20439 explaining why these options are not documented.
20440
20441 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
20442
20443 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
20444 gimple_call_lhs is NULL.
20445
20446 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
20447
20448 PR target/38868
20449 * emit-rtl.c (adjust_address_1): Make sure memref is never
20450 overwritten.
20451
20452 2009-01-20 Ben Elliston <bje@au.ibm.com>
20453
20454 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20455 const qualifier from arg parameter. Remove unnecessary cast to char *.
20456 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20457 const qualifier from arg 2.
20458
20459 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
20460
20461 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
20462
20463 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
20464
20465 PR c/38869
20466 * rtl.h (reinit_regs): New prototype.
20467 * regclass.c: Include ira.h.
20468 (reinit_regs): New.
20469 * Makefile.in (regclass.o): Add ira.h.
20470 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
20471
20472 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
20473
20474 PR target/38736
20475 * c-common.c (handle_aligned_attribute): Use
20476 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
20477 default alignment value.
20478
20479 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
20480
20481 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
20482 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
20483
20484 * doc/extend.texi: Update __attribute__ ((aligned)). Document
20485 __BIGGEST_ALIGNMENT__.
20486
20487 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
20488
20489 2009-01-18 Richard Guenther <rguenther@suse.de>
20490
20491 PR tree-optimization/38819
20492 * tree-flow.h (operation_could_trap_helper_p): Declare.
20493 * tree-eh.c (operation_could_trap_helper_p): Export.
20494 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
20495 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
20496 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
20497 are about to insert a possibly trapping instruction and fail
20498 in this case.
20499
20500 2009-01-18 Andreas Schwab <schwab@suse.de>
20501
20502 * doc/install.texi (Configuration): Remove obsolete paragraph
20503 about use of --with-gnu-ld with --with-gnu-as.
20504
20505 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
20506
20507 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
20508 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
20509 Follow spelling conventions.
20510
20511 2009-01-18 Ben Elliston <bje@au.ibm.com>
20512
20513 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
20514 C++ warning about implicit conversion from void * to struct
20515 bitmap_head_def *.
20516 (bitmap_obstack_free): Likewise for bitmap_element *.
20517 * Makefile.in (bitmap.o-warn): Remove.
20518
20519 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
20520
20521 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
20522
20523 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
20524 Tobias Grosser <tobi.grosser@amd.com>
20525
20526 * graphite.c (graphite_trans_scop_block): Do not block single
20527 nested loops.
20528
20529 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
20530
20531 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
20532 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
20533 test with assertion.
20534
20535 2009-01-16 Richard Guenther <rguenther@suse.de>
20536
20537 PR tree-optimization/38835
20538 PR middle-end/36227
20539 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
20540 and INT + PTR -> (INT)(PTR p+ INT) folding.
20541 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
20542
20543 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
20544
20545 PR target/38554
20546 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
20547 the subreg from a lowpart subreg if it is also casting the value.
20548
20549 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
20550 Tobias Grosser <tobi.grosser@amd.com>
20551
20552 * graphite.c (compare_prefix_loops): New.
20553 (build_scop_canonical_schedules): Rewritten.
20554 (graphite_transform_loops): Move build_scop_canonical_schedules
20555 after build_scop_iteration_domain.
20556
20557 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
20558 Tobias Grosser <tobi.grosser@amd.com>
20559
20560 * graphite.c (add_conditions_to_domain): Add the loops to
20561 the dimension of the iteration domain. Do copy the domain
20562 only when it exists.
20563 (build_scop_conditions_1): Do not call add_conditions_to_domain.
20564 (add_conditions_to_constraints): New.
20565 (can_generate_code_stmt, can_generate_code): Removed.
20566 (gloog): Do not call can_generate_code.
20567 (graphite_transform_loops): Call add_conditions_to_constraints
20568 after building the iteration domain.
20569
20570 2009-01-16 Jakub Jelinek <jakub@redhat.com>
20571
20572 PR tree-optimization/38789
20573 * tree-ssa-threadedge.c
20574 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
20575 __builtin_constant_p.
20576
20577 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
20578
20579 * dce.c (delete_unmarked_insns): Reversed the order that insns are
20580 examined before deleting them.
20581
20582 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
20583
20584 * function.c (aggregate_value_p): Correctly extract the function
20585 type from CALL_EXPR_FN lookup.
20586
20587 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
20588
20589 * config/picochip/picochip.c (picochip_override_options): Revert
20590 CFI asm flag disable commited previously.
20591
20592 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
20593 Tobias Grosser <tobi.grosser@amd.com>
20594 Jan Sjodin <jan.sjodin@amd.com>
20595
20596 * graphite.c (scan_tree_for_params): On substractions negate
20597 all the coefficients of the term.
20598 (clast_to_gcc_expression_red): New. Handle reduction expressions
20599 of more than two operands.
20600 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
20601 (get_vdef_before_scop): Handle also the case of default definitions.
20602
20603 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
20604
20605 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
20606 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
20607 Also use them when walking CALL_INSN_FUNCTION_USAGE.
20608
20609 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
20610 Joey Ye <joey.ye@intel.com>
20611
20612 PR middle-end/37843
20613 * cfgexpand.c (expand_stack_alignment): Don't update stack
20614 boundary nor check incoming stack boundary here.
20615 (gimple_expand_cfg): Update stack boundary and check incoming
20616 stack boundary here.
20617
20618 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
20619
20620 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
20621
20622 2009-01-14 Jakub Jelinek <jakub@redhat.com>
20623
20624 PR rtl-optimization/38245
20625 * calls.c (expand_call): Add stack arguments to
20626 CALL_INSN_FUNCTION_USAGE even for pure calls (when
20627 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
20628 in regs and partially in memory or BLKmode arguments.
20629 (emit_library_call_value_1): Add stack arguments to
20630 CALL_INSN_FUNCTION_USAGE even for pure calls (when
20631 ACCUMULATE_OUTGOING_ARGS).
20632 * dce.c: Include tm_p.h.
20633 (find_call_stack_args): New function.
20634 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
20635 argument.
20636 (mark_insn): Call find_call_stack_args for CALL_Ps.
20637 (prescan_insns_for_dce): Walk insns backwards in bb rather than
20638 forwards. Allocate and free arg_stores bitmap if needed, pass it
20639 down to deletable_insn_p, don't mark stores set in arg_stores
20640 bitmap, clear the bitmap at the beginning of each bb.
20641 * Makefile.in (dce.o): Depend on $(TM_P_H).
20642
20643 2009-01-14 Michael Meissner <gnu@the-meissners.org>
20644
20645 PR target/22599
20646 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
20647 to make sure the insn is a conditional test (bug 22599). Reformat a
20648 few long lines.
20649
20650 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
20651
20652 PR middle-end/38431
20653 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
20654 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
20655 (gloog): Do not call cleanup_tree_cfg.
20656 (graphite_transform_loops): Call cleanup_tree_cfg after all
20657 scops have been code generated.
20658
20659 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
20660 * doc/gty.texi (Invoking the garbage collector): Added new node
20661 and section documenting ggc_collect.
20662
20663 2009-01-14 Richard Guenther <rguenther@suse.de>
20664
20665 PR tree-optimization/38826
20666 PR middle-end/38477
20667 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
20668 initialization notes only if we actually emitted a warning.
20669 (intra_create_variable_infos): Add constraints for a result decl
20670 that is passed by hidden reference.
20671 (build_pred_graph): Mark all related variables non-direct on
20672 address-taking.
20673
20674 2009-01-14 Nick Clifton <nickc@redhat.com>
20675
20676 * ira-conflicts.c: Include addresses.h for the definition of
20677 base_reg_class.
20678 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
20679 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
20680
20681 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
20682
20683 PR target/38811
20684 * Makefile.in (ira-lives.o): Add except.h.
20685
20686 * ira-lives.c: Include except.h.
20687 (process_bb_node_lives): Process can_throw_internal.
20688
20689 2009-01-13 Jakub Jelinek <jakub@redhat.com>
20690
20691 PR rtl-optimization/38774
20692 * combine.c (simplify_set): When undoing cc_use change, don't do
20693 PUT_CODE on the newly created comparison, but instead put back the
20694 old comparison.
20695
20696 2009-01-13 Joseph Myers <joseph@codesourcery.com>
20697
20698 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
20699 values. Remove duplicate arm8 entry.
20700
20701 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
20702
20703 PR tree-optimization/38786
20704 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
20705 the SSA_NAME case of expand_scalar_variables_expr.
20706 Set the type of an expression to the type of its assign statement.
20707 (expand_scalar_variables_expr): Also gather the scalar computation
20708 used to index the memory access. Do not pass loop_p.
20709 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
20710 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
20711 the gimple_stmt_iterator where it inserts new code.
20712 Do not pass loop_p.
20713 (copy_bb_and_scalar_dependences): Do not pass loop_p.
20714 (translate_clast): Update call to copy_bb_and_scalar_dependences.
20715
20716 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
20717
20718 * graphite.h (debug_value): Removed.
20719 * graphite.c (debug_value): Removed.
20720
20721 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
20722
20723 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
20724 ldrd/strd with two 32-bit instructions.
20725
20726 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
20727
20728 * config/arm/arm.c (struct processors): Pass for speed down into
20729 cost helper functions.
20730 (const_ok_for_op): Handle COMPARE and inequality nodes.
20731 (arm_rtx_costs_1): Rewrite.
20732 (arm_size_rtx_costs): Update prototype.
20733 (arm_rtx_costs): Pass speed down to helper functions.
20734 (arm_slowmul_rtx_costs): Rework cost calculations.
20735 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
20736 (arm_9e_rtx_costs): Likewise.
20737
20738 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
20739
20740 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
20741 relocations of local symbols wider than UNITS_PER_WORD are not valid.
20742 (alpha_legitimize_address): Do not split local symbols wider than
20743 UNITS_PER_WORD into HIGH/LO_SUM parts.
20744
20745 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
20746
20747 PR bootstrap/38580
20748 * gcc.c (process_command): Replace call to execvp with calls
20749 to pex_one and exit.
20750
20751 2009-01-03 Anatoly Sokolov <aesok@post.ru>
20752
20753 PR target/29141
20754 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
20755 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
20756 variant for devices with 3-byte PC.
20757 (__tablejump_elpm__): New.
20758
20759 2009-01-12 Jakub Jelinek <jakub@redhat.com>
20760
20761 PR c/32041
20762 * c-parser.c (c_parser_postfix_expression): Allow `->' in
20763 offsetof member-designator, handle it as `[0].'.
20764
20765 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20766
20767 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
20768 function when not using named sections on targets with named sections
20769 if branch distance is less than 262132.
20770
20771 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
20772
20773 * combine.c (combine_instructions): Recompute
20774 optimize_this_for_speed_p for each BB in the main combine loop.
20775
20776 2009-01-12 Tomas Bily <tbily@suse.cz>
20777
20778 PR middlend/38385
20779 * tree-loop-distribution.c (prop_phis): New function.
20780 (generate_builtin): Call prop_phis.
20781 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
20782
20783 2009-01-12 Jakub Jelinek <jakub@redhat.com>
20784
20785 PR tree-optimization/38807
20786 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
20787 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
20788
20789 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
20790
20791 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
20792 subreg of op0 to the original op0.
20793
20794 2009-01-11 Laurent GUERBY <laurent@guerby.net>
20795
20796 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
20797
20798 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
20799
20800 PR debug/7055
20801 * mips-tfile.c (parse_def): Fix parsing of def strings
20802 starting with digits.
20803
20804 2009-01-10 Jakub Jelinek <jakub@redhat.com>
20805
20806 PR target/38695
20807 * config/arm/arm.c (arm_is_long_call_p): Don't call
20808 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
20809
20810 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
20811
20812 * regrename.c (regrename_optimize): Fix dumping.
20813 (find_oldest_value_reg): Preserve REG_POINTER.
20814 (copy_hardreg_forward_1): Likewise.
20815
20816 2009-01-09 Diego Novillo <dnovillo@google.com>
20817
20818 * gimple.h (struct gimple_statement_base) <uid>: Document
20819 the restrictions on its use.
20820 (gimple_uid): Tidy.
20821 (gimple_set_uid): Tidy.
20822
20823 2009-01-09 Jakub Jelinek <jakub@redhat.com>
20824
20825 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
20826 zero guard even if align_bytes != 0 and count is smaller than
20827 size_needed.
20828
20829 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
20830
20831 PR rtl-optimization/38495
20832 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
20833 (add_range_and_copies_from_move_list): Print all added ranges.
20834 Add ranges to memory optimized destination.
20835
20836 2009-01-09 Jakub Jelinek <jakub@redhat.com>
20837
20838 PR target/38686
20839 PR target/38708
20840 * config/i386/i386.c (override_options): Reject
20841 -mstringop-strategy=rep_8byte with -m32.
20842 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
20843 to 1. Do count comparison against epilogue_size_needed at compile
20844 time even when count_exp was constant forced into register. For
20845 size_needed don't jump to epilogue, instead just avoid aligning
20846 and invoke the body algorithm. If need_zero_guard, add zero guard
20847 even if count is non-zero, but smaller than size_needed + number of
20848 bytes that could be stored for alignment.
20849 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
20850 to 1. If need_zero_guard, add zero guard even if count is non-zero,
20851 but smaller than size_needed + number of bytes that could be stored
20852 for alignment. Compare size_needed with epilogue_size_needed instead
20853 of desired_align - align, don't adjust size_needed, pass
20854 epilogue_size_needed to the epilogue expanders.
20855
20856 PR c/35742
20857 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
20858
20859 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20860
20861 * pa.c (last_address): Change to unsigned.
20862 (update_total_code_bytes): Change argument to unsigned. Don't
20863 check if insn addresses are set.
20864 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
20865 addresses are not set.
20866 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
20867
20868 2009-01-09 Nick Clifton <nickc@redhat.com>
20869
20870 * config/sh/symbian.c: Replace uses of DECL_INLINE with
20871 DECL_DECLARED_INLINE_P.
20872
20873 2009-01-09 Jakub Jelinek <jakub@redhat.com>
20874
20875 PR middle-end/38347
20876 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
20877 GET_MODE (op0) in operand_subword_force calls.
20878
20879 PR middle-end/38771
20880 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
20881 fold_convert arg0 operands to TREE_TYPE (op0) first.
20882
20883 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
20884
20885 * params.def (ira-max-conflict-table-size): Decrease default value
20886 to 1000.
20887
20888 2009-01-08 Jakub Jelinek <jakub@redhat.com>
20889
20890 PR tree-optimization/37031
20891 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
20892 on parameter_set.
20893 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
20894 allocate it using gc instead of heap, use VEC_quick_push instead of
20895 VEC_safe_push.
20896 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
20897 instead of heap, use VEC_quick_push instead of VEC_safe_push.
20898 * tree-data-ref.h (struct access_matrix): Change matrix to gc
20899 allocated vector from heap allocated.
20900 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
20901 * tree-loop-linear.c (linear_transform_loops): Allocate nest
20902 vector only after perfect_loop_nest_depth call.
20903
20904 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
20905 Jan Sjodin <jan.sjodin@amd.com>
20906
20907 PR tree-optimization/38559
20908 * graphite.c (debug_value, copy_constraint,
20909 swap_constraint_variables, scale_constraint_variable, ): New.
20910 (get_lower_bound, get_upper_bound): Removed.
20911 (graphite_trans_bb_strip_mine): Clean up this code that works
20912 only for constant number of iterations. Fully copy upper and
20913 lower bound constraints, not only the constant part of them.
20914 * graphite.h (debug_value): Declared.
20915
20916 2009-01-08 Ira Rosen <irar@il.ibm.com>
20917
20918 PR tree-optimization/37194
20919 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
20920 Don't add the cost of cost model guard in prologue to scalar
20921 outside cost in case of known number of iterations.
20922
20923 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
20924 Alan Modra <amodra@bigpond.net.au>
20925
20926 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
20927 non-word-aligned REG+CONST addressing.
20928
20929 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
20930
20931 PR target/38706
20932 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
20933 free_after_compilation when outputting a thunk.
20934 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
20935 Do not call free_after_compilation here.
20936
20937 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
20938
20939 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
20940 (ix86_valid_target_attribute_inner_p): Ditto.
20941
20942 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
20943
20944 PR tree-optimization/38492
20945 PR tree-optimization/38498
20946 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
20947 * tree-chrec.h (scev_is_linear_expression): Declared.
20948 * graphite.c (graphite_cannot_represent_loop_niter): New.
20949 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
20950 (graphite_loop_normal_form): Use gcc_assert.
20951 (scan_tree_for_params): Use CASE_CONVERT.
20952 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
20953 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
20954 Use gcc_assert. Discard scops that contain unhandled cases.
20955 (build_scop_conditions): Return a boolean status for unhandled cases.
20956 (strip_mine_profitable_p): Print the loop number, not its depth.
20957 (is_interchange_valid): Pass the depth of the loop nest, don't
20958 recompute it wrongly.
20959 (graphite_trans_bb_block): Same.
20960 (graphite_trans_bb_block): Print tentative of loop blocking.
20961 (graphite_trans_scop_block): Do not print that the loop has been
20962 blocked.
20963 (graphite_transform_loops): Do not handle scops that contain condition
20964 scalar phi nodes.
20965
20966 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
20967
20968 AVX Programming Reference (December, 2008)
20969 * config/i386/avxintrin.h (_mm256_stream_si256): New.
20970 (_mm256_stream_pd): Likewise.
20971 (_mm256_stream_ps): Likewise.
20972
20973 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
20974 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
20975 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
20976 (bdesc_special_args): Add __builtin_ia32_movntdq256,
20977 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
20978 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
20979 (ix86_expand_special_args_builtin): Likewise.
20980
20981 * config/i386/sse.md (AVXMODEDI): New.
20982 (avx_movnt<mode>): Likewise.
20983 (avx_movnt<mode>): Likewise.
20984 (<sse>_movnt<mode>): Remove AVX support.
20985 (sse2_movntv2di): Likewise.
20986
20987 2009-01-07 Richard Guenther <rguenther@suse.de>
20988
20989 PR middle-end/38751
20990 * fold-const.c (extract_muldiv): Remove obsolete comment.
20991 (fold_plusminus_mult_expr): Undo MINUS_EXPR
20992 to PLUS_EXPR canonicalization for the canonicalization.
20993
20994 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
20995
20996 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
20997 hosted cross-compilers generating less efficient code.
20998
20999 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
21000
21001 * function.h (rtl_data): Add a dbr_scheduled_p field.
21002 * reorg.c (dbr_schedule): Set it.
21003 (gate_handle_delay_slots): Check it.
21004 * config/mips/mips.c (mips_base_delayed_branch): Delete.
21005 (mips_reorg): Check flag_delayed_branch instead of
21006 mips_base_delayed_branch.
21007 (mips_override_options): Don't set mips_base_delayed_branch
21008 or flag_delayed_branch.
21009
21010 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
21011
21012 PR rtl-optimization/38426.
21013 * ira.c (ira): Set current_function_is_leaf earlier.
21014
21015 2009-01-06 Jakub Jelinek <jakub@redhat.com>
21016
21017 PR rtl-optimization/38722
21018 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
21019 too early, only set a flag and modify after last possible
21020 undo_all point.
21021
21022 2009-01-06 Janis Johnson <janis187@us.ibm.com>
21023
21024 PR c/34252
21025 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
21026 * real.c (decimal_single_format): Correct values of emin and emax.
21027 (decimal_double_format): Ditto.
21028 (decimal_quad_format): Ditto.
21029 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
21030 computation of DECnn_MIN and DECnn_MAX for corrected values of
21031 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
21032 __DECnn_MIN__, and adjust its computation for the corrected value
21033 of emin.
21034
21035 2009-01-06 Jan Hubicka <jh@suse.cz>
21036
21037 PR target/38744
21038 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
21039
21040 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
21041
21042 * doc/contrib.texi (Contributors): Slightly adjust the end note.
21043 Add Robert Clark to the list of testers.
21044
21045 2009-01-06 Jan Hubicka <jh@suse.cz>
21046 Kai Tietz <kai.tietz@onevision.com>
21047
21048 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
21049 * config/i386/i386.c (ix86_expand_call): Add clobbers.
21050
21051 2009-01-06 Jan Hubicka <jh@suse.cz>
21052 Kai Tietz <kai.tietz@onevision.com>
21053
21054 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
21055 for w64 ABI.
21056 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
21057 (ix86_nsaved_regs): Count only general purpose regs.
21058 (ix86_nsaved_sseregs): New.
21059 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
21060 to 16 for w64; compute padding and size of sse reg save area.
21061 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
21062 general purpose regs.
21063 (ix86_emit_save_sse_regs_using_mov): New.
21064 (ix86_expand_prologue): Save SSE regs if needed.
21065 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
21066 (ix86_emit_restore_sse_regs_using_mov): New.
21067 (ix86_expand_epilogue): Save SSE regs if needed.
21068
21069 2009-01-06 Jan Hubicka <jh@suse.cz>
21070 Kai Tietz <kai.tietz@onevision.com>
21071
21072 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
21073 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
21074 functions when accumulate outgoing args is off.
21075
21076 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
21077
21078 PR bootstrap/38742
21079 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
21080 before using pseudos_have_intersected_live_ranges_p.
21081
21082 * ira-int.h (ira_assert): Always define.
21083
21084 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
21085
21086 AVX Programming Reference (December, 2008)
21087 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
21088 (_mm256_permute2_pd): Likewise.
21089 (_mm_permute2_ps): Likewise.
21090 (_mm256_permute2_ps): Likewise.
21091 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
21092 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
21093
21094 * config/i386/i386.c (ix86_builtins): Remove
21095 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
21096 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
21097 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
21098 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
21099 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
21100 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
21101 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
21102 __builtin_ia32_vpermil2ps256.
21103 (ix86_init_mmx_sse_builtins): Updated.
21104 (ix86_expand_args_builtin): Likewise.
21105
21106 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21107
21108 * pa.c (output_call): Relocate non-jump insns in the delay slot of
21109 long absolute calls when generating PA 2.0 code.
21110
21111 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
21112
21113 PR rtl-optimization/38583
21114 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
21115
21116 * params.def (ira-max-conflict-table-size): New.
21117
21118 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
21119
21120 * ira.h (ira_conflicts_p): New external definition.
21121
21122 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
21123 table. Report this. Return result of building.
21124 (ira_build_conflicts): Use ira_conflicts_p. Check result of
21125 building conflict table.
21126
21127 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
21128 (ira_color): Use ira_conflicts_p.
21129
21130 * global.c: Include ira.h.
21131 (pseudo_for_reload_consideration_p, build_insn_chain): Use
21132 ira_conflicts_p.
21133
21134 * Makefile.in (global.o): Add ira.h.
21135
21136 * ira-build.c (mark_all_loops_for_removal,
21137 propagate_some_info_from_allocno): New.
21138 (remove_unnecessary_allocnos): Call
21139 propagate_some_info_from_allocno.
21140 (remove_low_level_allocnos): New.
21141 (remove_unnecessary_regions): Add parameter. Call
21142 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
21143 parameter to remove_unnecessary_regions.
21144 (ira_build): Remove all regions but root if the conflict table was
21145 not built. Update conflict hard regs for allocnos crossing calls.
21146
21147 * ira.c (ira_conflicts_p): New global.
21148 (ira): Define and use ira_conflicts_p.
21149
21150 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
21151 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
21152 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
21153
21154 2009-01-06 Ben Elliston <bje@au.ibm.com>
21155
21156 * gengtype-lex.l (YY_NO_INPUT): Define.
21157
21158 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
21159
21160 PR c/34911
21161 * c-common.c (handle_vector_size_attribute): Also reject
21162 BOOLEAN_TYPE types.
21163
21164 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
21165
21166 PR tree-optimization/38492
21167 * graphite.c (rename_map_elt, debug_rename_elt,
21168 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
21169 rename_map_elt_info, eq_rename_map_elts,
21170 get_new_name_from_old_name, bb_in_sese_p): Moved around.
21171 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
21172 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
21173 (sese_build_livein_liveouts): New.
21174 (new_sese, free_sese): New.
21175 (new_scop): Call new_sese.
21176 (free_scop): Call free_sese.
21177 (rename_variables_from_edge, rename_phis_end_scop): Removed.
21178 (register_old_new_names): Renamed register_old_and_new_names.
21179 (register_scop_liveout_renames, add_loop_exit_phis,
21180 insert_loop_close_phis, struct igp,
21181 default_liveout_before_guard, add_guard_exit_phis,
21182 insert_guard_phis, copy_renames): New.
21183 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
21184 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
21185 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
21186 (scop_adjust_phis_for_liveouts): New.
21187 (gloog): Call scop_adjust_phis_for_liveouts.
21188
21189 * graphite.h (struct sese): Documented. Added fields liveout,
21190 num_ver and livein.
21191 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
21192 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
21193 (struct scop): Added field liveout_renames.
21194 (SCOP_LIVEOUT_RENAMES): New.
21195
21196 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
21197
21198 PR tree-optimization/38510
21199 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
21200 (translate_clast): Call recompute_all_dominators before
21201 graphite_verify.
21202 (gloog): Call recompute_all_dominators before graphite_verify.
21203
21204 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
21205 Jan Sjodin <jan.sjodin@amd.com>
21206
21207 PR tree-optimization/38500
21208 * graphite.c (create_sese_edges): Call fix_loop_structure after
21209 splitting blocks.
21210
21211 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
21212
21213 * config.gcc: Add m32r*-*-rtems*.
21214 * config/m32r/rtems.h: New file.
21215
21216 2009-01-05 Ben Elliston <bje@au.ibm.com>
21217
21218 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
21219 (.po.pox): Likewise.
21220 (po/gcc.pot): Likewise.
21221
21222 2009-01-04 David S. Miller <davem@davemloft.net>
21223
21224 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
21225 (STARTING_FRAME_OFFSET): Always set to zero.
21226
21227 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
21228
21229 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
21230 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
21231 fixed-point types, and vectors of the same.
21232
21233 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
21234
21235 * config/mips/sync.md (*mb_barrier): Rename to...
21236 (*memory_barrier): ...this.
21237
21238 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
21239
21240 * doc/extend.texi (Function Attributes): Move @cindex after @item
21241 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
21242 and put in alphabetical order. Fix 'target' name and put in order.
21243 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
21244 typos.
21245
21246 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
21247
21248 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
21249 (memory_barrier): Expand as unspec instead of unspec_volatile.
21250 Remove mem:BLK from insn operands. Use Pmode scratch register.
21251 (*memory_barrier): Define as unspec instead of unspec_volatile.
21252 Use (match_dup 0) as input operand.
21253
21254 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
21255 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
21256 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
21257 scratch register. Remove operand 1.
21258 (*stbar): Define as unspec instead of unspec_volatile.
21259 Use (match_dup 0) as input operand, remove (const_int 8).
21260 (*membar): Define as unspec instead of unspec_volatile.
21261 Use (match_dup 0) as input operand, remove input operand 2.
21262
21263 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
21264 (memory_barrier): Expand as unspec instead of unspec_volatile.
21265 Remove mem:BLK from insn operands. Use Pmode scratch register.
21266 (*memory_barrier): Define as unspec instead of unspec_volatile.
21267 Use (match_dup 0) as input operand.
21268
21269 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
21270 Remove mem:BLK from insn operands. Use Pmode scratch register.
21271 Set volatile flag on operand 0.
21272 (*memory_barrier): New insn pattern.
21273
21274 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
21275 insn operands.
21276 (*memory_barrier): Use (match_dup 0) as input operand.
21277
21278 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
21279 Remove mem:BLK from insn operands. Use Pmode scratch register.
21280 Set volatile flag on operand 0.
21281 (*mb_internal): New insn pattern.
21282
21283 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
21284
21285 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
21286
21287 PR middle-end/38586
21288 * function.c (struct temp_slot): Move to the section of the file
21289 that deals with temp slots. Remove field 'address'.
21290 (temp_slot_address_table): New hash table of address -> temp slot.
21291 (struct temp_slot_address_entry): New struct, items for the table.
21292 (temp_slot_address_compute_hash, temp_slot_address_hash,
21293 temp_slot_address_eq, insert_temp_slot_address): Support functions
21294 for the new table.
21295 (find_temp_slot_from_address): Rewrite to use the new hash table.
21296 (remove_unused_temp_slot_addresses): Remove addresses of temp
21297 slots that have been made available.
21298 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
21299 worker function for remove_unused_temp_slot_addresses.
21300 (assign_stack_temp_for_type): Don't clear the temp slot address list.
21301 Add the temp slot address to the address -> temp slot map.
21302 (update_temp_slot_address): Update via insert_temp_slot_address.
21303 (free_temp_slots): Call remove_unused_temp_slot_addresses.
21304 (pop_temp_slots): Likewise.
21305 (init_temp_slots): Allocate the address -> temp slot map, or empty
21306 the map if it is already allocated.
21307 (prepare_function_start): Initialize temp slot processing.
21308
21309 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
21310
21311 PR middle-end/38584
21312 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
21313 Calculate the size of all stack vars assuming no packing of stack
21314 vars will happen, replacing a quadratic algorithm with a linear one.
21315
21316 2009-01-03 Jakub Jelinek <jakub@redhat.com>
21317
21318 PR target/38707
21319 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
21320 can't be used.
21321
21322 2009-01-03 Diego Novillo <dnovillo@google.com>
21323
21324 * doc/contrib.texi: Update contributions.
21325
21326 2009-01-03 Jakub Jelinek <jakub@redhat.com>
21327
21328 PR c++/38705
21329 * builtins.c (fold_builtin_memory_op): Give up if either operand
21330 is volatile. Set srctype or desttype to non-qualified version
21331 of the other type.
21332
21333 PR c/38700
21334 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
21335 and FUNCTION_DECLs.
21336
21337 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
21338
21339 PR rtl-optimization/35805
21340 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
21341 problem if fast dce is able to remove any instructions.
21342 * dce.c (dce_process_block): Fix dump message.
21343
21344 2009-01-02 Mark Mitchell <mark@codesourcery.com>
21345
21346 PR 33649
21347 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
21348
21349 2009-01-02 Jakub Jelinek <jakub@redhat.com>
21350
21351 PR middle-end/38690
21352 * tree-flow.h (op_code_prio, op_prio): New prototypes.
21353 * tree-pretty-print.c (op_code_prio): New function.
21354 (op_prio): No longer static. Use op_code_prio.
21355 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
21356 Use op_prio and op_code_prio to determine if () should be
21357 printed around operand(s) or not.
21358
21359 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
21360 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
21361 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
21362 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
21363 pp_character instead of pp_string for single letter printing.
21364
21365 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21366
21367 * doc/extend.texi: Fix '#pragma GCC option' typo.
21368
21369 2009-01-02 Richard Guenther <rguenther@suse.de>
21370
21371 * doc/install.texi (--enable-checking): Mention different
21372 default for stage1.
21373 (--enable-stage1-checking): Document.
21374
21375 2009-01-01 Andrew Pinski <pinskia@gmail.com>
21376
21377 PR middle-end/30142
21378 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
21379 case to be an error.
21380
21381 2009-01-02 Ben Elliston <bje@au.ibm.com>
21382
21383 * config/fp-bit.h (pack_d): Constify argument.
21384 * config/fp-bit.c (makenan): Constify return type. Remove casts.
21385 (isnan): Constify argument.
21386 (isinf): Likewise.
21387 (iszero): Likewise.
21388 (pack_d): Likewise.
21389 (_fpadd_parts): Constify return type.
21390 (_fpmul_parts): Likewise.
21391 (_fpdiv_parts): Likewise.
21392
21393 2009-01-01 Jakub Jelinek <jakub@redhat.com>
21394
21395 PR c/36489
21396 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
21397 warn about overwriting initializer with side-effects or
21398 -Woverride-init if !IMPLICIT.
21399 (output_init_element): Likewise. Pass IMPLICIT down to
21400 add_pending_init.
21401 (process_init_element): Add IMPLICIT argument. Pass it down
21402 to output_init_element.
21403 (push_init_element, pop_init_level, set_designator): Adjust
21404 process_init_element callers.
21405 (set_nonincremental_init, set_nonincremental_init_from_string):
21406 Adjust add_pending_init callers.
21407 (output_pending_init_elements): Adjust output_init_element callers.
21408 * c-tree.h (process_init_element): Adjust prototype.
21409 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
21410 process_init_element callers.
21411
21412 \f
21413 Copyright (C) 2009 Free Software Foundation, Inc.
21414
21415 Copying and distribution of this file, with or without modification,
21416 are permitted in any medium without royalty provided the copyright
21417 notice and this notice are preserved.