* config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
[gcc.git] / gcc / ChangeLog
1 2008-08-28 Nick Clifton <nickc@redhat.com>
2
3 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
4
5 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
6
7 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
8
9 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
10
11 2008-08-28 Paul Brook <paul@codesourcery.com>
12
13 * config/arm/vfp11.md: Update license notice.
14 * config/arm/cortex-r4.md: Ditto.
15
16 2008-08-28 Richard Guenther <rguenther@suse.de>
17
18 PR tree-optimization/37207
19 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
20 tuplification bug.
21
22 2008-08-28 Dodji Seketeli <dodji@redhat.com>
23
24 PR c++/36741
25 * tree.c (int_fits_type_p): Don't forget unsigned integers
26 of type sizetype which higher end word equals -1.
27
28 2008-08-28 Ira Rosen <irar@il.ibm.com>
29
30 * target.h (struct vectorize): Add new target builtin.
31 * tree-vectorizer.c (destroy_loop_vec_info): Call
32 vect_free_slp_instance instead of vect_free_slp_node.
33 * tree-vectorizer.h (enum slp_load_perm_type): New.
34 (struct _slp_instance): Add new fields.
35 (SLP_INSTANCE_LOAD_PERMUTATION): New.
36 (SLP_INSTANCE_LOADS): New.
37 (vect_free_slp_tree): Remove.
38 (vect_free_slp_instance): Declare.
39 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
40 (vectorizable_load): Add argument.
41 (vect_transform_slp_perm_load): New.
42 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
43 vectorizable_load.
44 (vect_get_place_in_interleaving_chain): New function.
45 (vect_free_slp_tree): Make static.
46 (vect_free_slp_instance): New function.
47 (vect_build_slp_tree): Add new arguments. Allow load permutations and
48 collect the load location in the interleaving chain.
49 (vect_supported_slp_permutation_p): New function.
50 (vect_supported_load_permutation_p): Likewise.
51 (vect_analyze_slp_instance): In case of loads permutation, call
52 vect_supported_load_permutation_p to check that the permutation is
53 supported.
54 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
55 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
56 (vect_create_mask_and_perm): New function.
57 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
58 (vectorizable_load): Add an argument. Don't keep the created vectors
59 statements in the node if permutation is required. Call
60 vect_transform_slp_perm_load to generate the permutation.
61 (vect_transform_stmt): Add new argument. Call vectorizable_load with
62 additional argument.
63 (vect_schedule_slp_instance): In case of loads permutation, allocate
64 vectorized statements structure for all the related SLP nodes. Call
65 vect_transform_stmt with addditional argument.
66 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
67 * config/spu/spu.c (spu_builtin_vec_perm): New.
68 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
69 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
70 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
71 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
72
73 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
74
75 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
76 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
77 __gthread_cond_signal, __gthread_cond_timedwait,
78 __gthread_cond_timedwait_recursive): New functions.
79 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
80 Likewise.
81 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
82 thread interfaces.
83
84 2008-08-28 Richard Guenther <rguenther@suse.de>
85
86 PR middle-end/37005
87 * fold-const.c (maybe_canonicalize_comparison_1): Require
88 undefined overflow only for canonicalizing A +- CST cmp CST.
89 Make sure to not generate new constants that are not inside
90 their TYPE_MIN/MAX_VALUE range.
91 (maybe_canonicalize_comparison): Remove undefined overflow
92 checking from here.
93 (fold_binary): Remove now duplicate folding.
94
95 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
96
97 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
98 use not updated in the last change.
99
100 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
101
102 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
103 (IRA_COVER_CLASSES): Add FPUL_REGS.
104
105 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
106
107 PR 37217
108 * c-common.c (conversion_warning): Check for null operands.
109
110 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
111
112 PR c/31673
113 * c-decl.c (check_for_loop_decls): Improve error message. Give
114 hint.
115
116 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
117
118 PR c/37186
119 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
120 (convert_for_assignment): Pass corrent OPT_W* parameter to
121 WARN_FOR_ASSIGNMENT.
122
123 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
124
125 PR c++/35321
126 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
127
128 2008-08-27 Paul Brook <paul@codesourcery.com>
129
130 * config.gcc: Loosen checks for arm uclinux eabi targets.
131
132 2008-08-27 Paul Brook <paul@codesourcery.com>
133
134 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
135 _clzsi2.
136 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
137
138 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
139
140 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
141 the enumerators of an ENUMERAL_TYPE.
142 * dbxout.c (dbxout_type): Ditto.
143
144 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
145
146 PR rtl-opt/37219
147 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
148 (fwprop_addr): Check that the loop_father is not the outer loop.
149
150 2008-08-26 Paul Brook <paul@codesourcery.com>
151
152 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
153 Remove documentation entry for fmul type.
154 Use fmuls to annotate single-precision multiplication patterns,
155 fmuld to annotate double-precision multiplication patterns,
156 fmacs to annotate single-precision multiply-accumulate patterns
157 and fmacd to annotate double-precision multiply-accumulate patterns.
158 * config/arm/vfp11.md: Update reservations accordingly.
159 * config/arm/arm.md: Note that certain values of the "type"
160 attribute are documented in vfp.md.
161 * config/arm/arm1020e.md: Remove out of date duplicate comment.
162 (v10_cvt): Use new fmul types.
163
164 2008-08-26 Paul Brook <paul@codesourcery.com>
165
166 * config/arm/vfp.md: Move pipeline description for VFP11 to...
167 * config/arm/vfp11.md: ...here. New.
168 * config/arm/arm.md: Include vfp11.md.
169
170 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
171
172 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
173 parameter to inform call.
174
175 2008-08-26 Jeff Law <law@redhat.com>
176
177 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
178 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
179 preferred class when copying a constant into a partial word register.
180
181 2008-08-26 Ben Elliston <bje@au.ibm.com>
182
183 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
184 * cp/typeck.c: Likewise.
185 * cp/tree.c: Likewise.
186 * gimple-low.c: Likewise.
187 * jump.c: Likewise.
188
189 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
190
191 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
192 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
193
194 * doc/passes.texi: Describe IRA.
195
196 * doc/tm.texi (IRA_COVER_CLASSES,
197 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
198
199 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
200 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
201 -fira-propagate-cost, -fno-ira-share-save-slots,
202 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
203
204 * flags.h (ira_algorithm): New enumeration.
205 (flag_ira_algorithm, flag_ira_verbose): New external variable
206 declarations.
207
208 * postreload.c (gate_handle_postreload): Don't do post reload
209 optimizations unless the reload is completed.
210
211 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
212 IRA.
213
214 * tree-pass.h (pass_ira): New external variable declaration.
215
216 * reload.h: Add 2008 to the Copyright.
217
218 * cfgloopanal.c: Include params.h.
219 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
220 mode.
221
222 * params.h (IRA_MAX_LOOPS_NUM): New macro.
223
224 * toplev.c (ira.h): New include.
225 (flag_ira_algorithm, flag_ira_verbose): New external variables.
226 (backend_init_target): Call ira_init.
227 (backend_init): Call ira_init_once.
228 (finalize): Call finish_ira_once.
229
230 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
231 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
232 external variables.
233
234 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
235 may_move_out_cost): New external variable declarations.
236 (move_table): New typedef.
237
238 * caller-save.c: Include headers output.h and ira.h.
239 (no_caller_save_reg_set): New global variable.
240 (save_slots_num, save_slots): New variables.
241 (reg_save_code, reg_restore_code, add_stored_regs): Add
242 prototypes.
243 (init_caller_save): Set up no_caller_save_reg_set.
244 (init_save_areas): Reset save_slots_num.
245 (saved_hard_reg): New structure.
246 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
247 (initiate_saved_hard_regs, new_saved_hard_reg,
248 finish_saved_hard_regs, saved_hard_reg_compare_func): New
249 functions.
250 (setup_save_areas): Add code for sharing stack slots.
251 (all_blocks): New variable.
252 (save_call_clobbered_regs): Process pseudo-register too.
253 (mark_set_regs): Process pseudo-register too.
254 (insert_one_insn): Put the insn after bb note in a empty basic
255 block. Add insn check.
256
257 * global.c (eliminable_regset): Make it external.
258 (mark_elimination): Use DF_LR_IN for IRA.
259 (pseudo_for_reload_consideration_p): New.
260 (build_insn_chain): Make it external. Don't ignore spilled
261 pseudos for IRA. Use pseudo_for_reload_consideration_p.
262 (gate_handle_global_alloc): New function.
263 (pass_global_alloc): Add the gate function.
264
265 * opts.c (decode_options): Set up flag_ira. Print the warning for
266 -fira.
267 (common_handle_option): Process -fira-algorithm and -fira-verbose.
268
269 * timevar.def (TV_IRA, TV_RELOAD): New passes.
270
271 * regmove.c (regmove_optimize): Don't do replacement of output for
272 IRA.
273
274 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
275 New external variable declarations.
276
277 * local-alloc.c (update_equiv_regs): Make it external. Return
278 true if jump label rebuilding should be done. Rescan new_insn for
279 notes.
280 (gate_handle_local_alloc): New function.
281 (pass_local_alloc): Add the gate function.
282
283 * alias.c (value_addr_p, stack_addr_p): New functions.
284 (nonoverlapping_memrefs_p): Use them for IRA.
285
286 * common.opt (fira, fira-algorithm, fira-coalesce,
287 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
288 fira-verbose): New options.
289
290 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
291 move_cost, may_move_in_cost, may_move_out_cost): Make the
292 variables external.
293 (move_table): Remove typedef.
294 (init_move_cost): Make it external.
295 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
296 functions.
297
298 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
299 setup_reg_classes): New function prototypes.
300 (eliminable_regset): New external variable declaration.
301 (build_insn_chain, update_equiv_regs): New function prototypes.
302
303 * Makefile.in (IRA_INT_H): New definition.
304 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
305 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
306 (reload1.o, toplev.o): Add dependence on ira.h.
307 (cfgloopanal.o): Add PARAMS_H.
308 (caller-save.o): Add dependence on output.h and ira.h.
309 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
310 ira-emit.o, ira-lives.o): New entries.
311
312 * passes.c (pass_ira): New pass.
313
314 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
315
316 * reload1.c (ira.h): Include the header.
317 (changed_allocation_pseudos): New bitmap.
318 (init_reload): Initiate the bitmap.
319 (compute_use_by_pseudos): Permits spilled registers in FROM.
320 (temp_pseudo_reg_arr): New variable.
321 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
322 IRA. Call alter_reg with the additional parameter. Don't clear
323 spilled_pseudos for IRA. Restore original insn chain for IRA.
324 Clear changed_allocation_pseudos at the end of reload.
325 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
326 (hard_regno_to_pseudo_regno): New variable.
327 (count_pseudo): Check spilled pseudos. Set up
328 hard_regno_to_pseudo_regno.
329 (count_spilled_pseudo): Check spilled pseudos. Update
330 hard_regno_to_pseudo_regno.
331 (find_reg): Use better_spill_reload_regno_p. Check
332 hard_regno_to_pseudo_regno.
333 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
334 code for IRA.
335 (eliminate_regs_1): Use additional parameter for alter_reg.
336 (finish_spills): Set up pseudo_previous_regs only for spilled
337 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
338 more arguments. Don't clear live_throughout and dead_or_set for
339 spilled pseudos. Use additional parameter for alter_reg. Call
340 mark_allocation_change. Set up changed_allocation_pseudos.
341 Remove sanity check.
342 (emit_input_reload_insns, delete_output_reload): Use additional
343 parameter for alter_reg. Call mark_allocation_change.
344 (substitute, gen_reload_chain_without_interm_reg_p): New
345 functions.
346 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
347
348 * testsuite/gcc.dg/20080410-1.c: New file.
349
350 * config/s390/s390.h (IRA_COVER_CLASSES,
351 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
352
353 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
354
355 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
356
357 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
358
359 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
360
361 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
362
363 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
364
365 2008-08-24 Jeff Law <law@redhat.com>
366 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
367 when ignoring unavailable registers.
368
369 2008-08-24 Jeff Law <law@redhat.com>
370 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
371 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
372 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
373 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
374
375 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
376 * ira-build.c (allocno_range_compare_func): Stabilize sort.
377
378 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
379 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
380 * reload1.c (find_reg): Process registers in register allocation order.
381
382 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
383 * toplev.c (backend_init_target): Move ira_init call from
384 here...
385 (lang_dependent_init_target): ...to here.
386
387 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
388 * ira.c (setup_class_subset_and_memory_move_costs): Don't
389 calculate memory move costs for NO_REGS.
390
391 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
392 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
393 STACK_REGS is defined.
394
395 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
396 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
397
398 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
399 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
400
401 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
402 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
403 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
404 barrier.
405
406 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
407 Dorit Nuzman <dorit@il.ibm.com>
408
409 * gcc/config/spu/spu.md (vec_extract_evenv4si,
410 vec_extract_evenv4sf, vec_extract_evenv8hi,
411 vec_extract_evenv16qi, vec_extract_oddv4si,
412 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
413 vec_interleave_highv4sf, vec_interleave_lowv4sf,
414 vec_interleave_highv4si, vec_interleave_lowv4si,
415 vec_interleave_highv8hi, vec_interleave_lowv8hi,
416 vec_interleave_highv16qi, vec_interleave_lowv16qi,
417 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
418
419 2008-08-25 Janis Johnson <janis187@us.ibm.com>
420
421 PR target/36756
422 * config/rs6000/rs6000.c (optimization_options): Don't default to
423 section anchors without toplevel reorder.
424
425 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
426
427 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
428 (mfc_end_critical_section): Likewise.
429
430 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
431
432 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
433 all type qualifiers from element type to vector type.
434
435 2008-08-25 David Daney <ddaney@avtrex.com>
436
437 * config/mips/mips.md (immediate_insn): Move up in file, fix
438 comment typo, reformat.
439 (fetchop_bit, atomic_hiqi_op memory_barrier,
440 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
441 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
442 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
443 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
444 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
445 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
446 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
447 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
448 sync_old_nand<mode>, sync_new_nand<mode>,
449 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
450 test_and_set_12): Moved to sync.md.
451 (sync.md): Include.
452 * config/mips/sync.md: New file.
453
454 2008-08-25 Richard Henderson <rth@redhat.com>
455
456 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
457 (regsave): Likewise.
458 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
459 (output_cfi_directive): Likewise.
460 (div_data_align): New.
461 (output_cfi): Use it.
462
463 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
464
465 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
466 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
467 (TARGET_OCTEON): New macro.
468 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
469 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
470 (ISA_HAS_POP): New macro.
471 * config/mips/driver-native.c (host_detect_local_cpu): Handle
472 Octeon.
473 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
474 Handle Octeon.
475 * config/mips/mips.md (cpu): Add octeon.
476 (type): Add pop attribute value.
477 (popcount<mode>2): New pattern.
478 * doc/invoke.texi (-march=@var{arch}): Add octeon.
479
480 2008-08-24 Jan Hubicka <jh@suse.cz>
481
482 * doc/invoke.texi (-fipa-cp-clone): New option.
483 (-fipa-cp): Update docs.
484 (--param ipcp-unit-growth):New.
485 * ipa-cp.c: Include fibheap.h, params.h
486 (ipcp_initialize_node_lattices): When not cloning, all externally
487 visible functions are bottom.
488 (ipcp_need_redirect_p): Accept clones.
489 (ipcp_insert_stage): Use cost driven heuristics.
490 (max_count, dead_nodes): New static vars.
491 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
492 ipcp_const_param_count): New functions.
493 * common.opt (ipa-cp-clone): New command line option.
494 * params.def (ipcp-unit-growth): New.
495
496 2008-08-24 Jan Hubicka <jh@suse.cz>
497
498 * tree-inline.c (tree_function_versioning): Look harder
499 for referenced vars.
500
501 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
502
503 PR tree-optimization/37185
504 * matrix-reorg.c (transform_access_sites): Update changed stmt.
505
506 2008-08-23 Jan Hubicka <jh@suse.cz>
507
508 * ipa-cp.c (ipcp_analyze_node): New function.
509 (ipcp_update_cloned_node): Use it.
510 (ipcp_init_stage): Likewise.
511 * ipa-inline.c (function_insertion_hook_holder): New static var.
512 (analyze_function): Break out from ....
513 (inline_generate_summary): Here; register insertion hook.
514 (cgraph_decide_inlining): Remove hook.
515 (add_new_function): New function.
516
517 2008-08-23 Jan Hubicka <jh@suse.cz>
518
519 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
520
521 2008-08-23 Jan Hubicka <jh@suse.cz>
522
523 * ipa-cp.c (constant_val_insert): Remove.
524 (ipcp_propagate_one_const): Remove.
525 (ipcp_create_replace_map): Always insert replacements to the map.
526 (ipcp_insert_stage): Do not try to insert statements by hand.
527 * tree-inline.c (insert_init_stmt): Break out from ...
528 (setup_one_parameter): ... here; allow NULL BB pointer.
529 (tree_function_versioning): Use setup_one_parameter to process
530 replacement map.
531
532 2008-08-23 Jan Hubicka <jh@suse.cz>
533
534 * tree.c (decl_address_ip_invariant_p): New function.
535 * tree.h (decl_address_ip_invariant_p): Declare.
536 * gimple.c (strip_invariant_refs): Break out from ...
537 (is_gimple_invariant_address): ... here
538 (is_gimple_ip_invariant_address): New function.
539 (is_gimple_ip_invariant): New function.
540 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
541 Declare.
542
543 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
544 (ipcp_lat_is_insertable): All constants are insertable.
545 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
546 IPA_CONST_VALUE_REF.
547 (ipcp_initialize_node_lattices): Propagate all types of operands.
548 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
549 (ipcp_create_replace_map): Reformat.
550 (ipcp_need_redirect_p): Simplify.
551 (ipcp_insert_stage): Check that argument is used before clonning.
552 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
553 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
554 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
555 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
556 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
557 (jump_func_type): Remove IPA_CONST_VALUE_REF.
558 * tree-inline.c (tree_function_versioning): Add variables referenced by
559 replacing trees.
560
561 2008-08-23 Jan Hubicka <jh@suse.cz>
562
563 PR target/37094
564 * i386.c (standard_80387_constant_p): Use optimize_size.
565
566 2008-08-23 Ira Rosen <irar@il.ibm.com>
567
568 PR tree-optimization/37161
569 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
570 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
571 (vect_determine_vectorization_factor): Move the scalar type
572 retrieval to vect_get_smallest_scalar_type.
573 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
574 scalar type. Remove redundant computation.
575 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
576 (vect_get_slp_defs): Take the type of RHS into account if
577 necessary by calling vect_get_smallest_scalar_type. Call
578 vect_get_constant_vectors with additional argument.
579
580 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
581
582 PR 35648
583 * doc/invoke.texi (Wwrite-strings): Clarify description.
584
585 2008-08-23 Ira Rosen <irar@il.ibm.com>
586
587 PR tree-optimization/37174
588 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
589 def stmt is a part of the loop before accessing its stmt_vec_info.
590
591 2008-08-22 Anatoly Sokolov <aesok@post.ru>
592
593 PR target/11259
594 * config/avr/avr.md (UNSPEC_SWAP): New constants.
595 (*swap): New insn pattern.
596 (*ashlqi3): Rename from ashlqi3 insn pattern.
597 (ashlqi3): New expanders.
598 (*lshrqi3): Rename from lshrqi3 insn pattern.
599 (lshrqi3): New expanders.
600 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
601 lshrqi3_const5, lshrqi3_const6): New splitters.
602 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
603 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
604 peephole2 patterns.
605
606 2008-08-22 Richard Guenther <rguenther@suse.de>
607
608 PR tree-optimization/37078
609 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
610 [+INF, +INF] ranges.
611
612 2008-08-22 Richard Guenther <rguenther@suse.de>
613
614 PR tree-optimization/37143
615 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
616 a conversion statement instead of a copy.
617
618 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
619
620 PR target/37184
621 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
622 CCCmode, CCOmode and CCSmode destination modes.
623
624 PR target/37191
625 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
626 from different units in a single alternative.
627 (*vec_extractv2sf_1): Ditto.
628 (*vec_extractv2si_0): Ditto.
629 (*vec_extractv2si_1): Ditto.
630 * config/i386/sse.md (sse2_storehpd): Ditto.
631 (sse2_storelpd): Ditto.
632 (sse2_loadhpd): Ditto.
633 (sse2_loadlpd): Ditto.
634
635 PR target/37197
636 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
637 (popcountsi2): Ditto.
638 (clzdi2_abm): Ditto.
639 (popcountdi2): Ditto.
640 (clzhi2_abm): Ditto.
641 (popcounthi2): Ditto.
642
643 2008-08-22 Richard Guenther <rguenther@suse.de>
644
645 PR middle-end/36548
646 PR middle-end/37125
647 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
648 if the multiplication does not overflow.
649
650 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
651
652 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
653
654 2008-08-21 Richard Henderson <rth@redhat.com>
655
656 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
657 spurrious comma from test.
658 * configure: Rebuild.
659
660 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
661
662 PR 30457
663 * builtins.c (fold_builtin_next_arg): Add warning about undefined
664 behaviour.
665
666 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
667
668 * c-tree.h (grokfield): New argument.
669 * c-decl.c (grokfield): Handle new location argument.
670 * c-parser.c (c_parser_struct_declaration): Pass location to
671 grokfield.
672
673 2008-08-21 Richard Guenther <rguenther@suse.de>
674
675 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
676
677 2008-08-21 Jan Hubicka <jh@suse.cz>
678
679 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
680 (cgraph_add_function_insertion_hook,
681 cgraph_remove_function_insertion_hook,
682 cgraph_call_function_insertion_hooks): New functions.
683 * cgraph.h (cgraph_add_function_insertion_hook,
684 cgraph_remove_function_insertion_hook,
685 cgraph_call_function_insertion_hooks): Declare.
686 * ipa-reference.c (function_insertion_hook_holder): New variable.
687 (check_operand, look_for_address_of): When checking late, do not care
688 about module bitmaps.
689 (add_new_function): New function.
690 (generate_summary): Register hooks; zero module bitmaps.
691 (propagate): Unregister hooks.
692 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
693 (add_new_function): New function.
694 (generate_summary): Register hook.
695 (propagate): Remove hook.
696
697 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
698
699 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
700 * ipa-cp.c (ipcp_update_cloned_node): New function.
701 (build_const_val): Handle functions correctly; bring type logic
702 into sync with tree-inline.c
703 (ipcp_init_stage): Take care of computing stuff needed by
704 indirect inlining; update clones.
705 (ipcp_generate_summary): Break out of ipcp_driver.
706 (ipcp_driver): Do only execution and transformation.
707 (pass_ipa_cp): Make IPA_PASS.
708 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
709 offset to address.
710 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
711 ipcp, some info is already available.
712 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
713 * tree-inline.c (remap_ssa_name): Unshare expression.
714
715 2008-08-21 Richard Guenther <rguenther@suse.de>
716
717 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
718 a PHI ask VN if it is already available.
719 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
720 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
721
722 2008-08-21 Richard Guenther <rguenther@suse.de>
723
724 PR middle-end/36817
725 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
726 makes sure to produce a result of the correct type.
727
728 2008-08-21 Jan Hubicka <jh@suse.cz>
729 Backport from LTO branch:
730
731 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
732 Jan Hubicka <jh@suse.cz>
733
734 * ipa-pure-const.c
735 (init_state, finish_state, set_function_state, generate_summary):
736 New functions.
737 (scan_stmt): Renamed from scan_function. Changed to keep state in
738 local static vars rather than cgraph aux field.
739 (propagate): Renamed from static_execute. Changed to keep state in
740 local static vars rather than cgraph aux field.
741 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
742 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
743
744 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
745
746 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
747 * ipa-reference.c (init_function_info, generate_summary,
748 propagate): New functions.
749 (analyze_function): Call init_function_info.
750 (static_execute): Stripped into generate_summary and propagate.
751 (pass_ipa_reference): Made into ipa_opt_pass.
752
753 2008-08-21 Richard Guenther <rguenther@suse.de>
754
755 PR tree-optimization/37181
756 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
757 folding result.
758 (extract_range_from_unary_expr): Likewise.
759
760 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
761
762 * diagnostic.c (pedwarn_at): Rename as pedwarn.
763 (pedwarn): Delete.
764 * toplev.h (pedwarn_at): Likewise.
765 * builtins.c: Update all calls to pedwarn.
766 * c-lex.c: Likewise.
767 * toplev.c: Likewise.
768 * c-tree.h: Likewise.
769 * c-decl.c: Likewise.
770 * c-errors.c: Likewise.
771 * c-typeck.c: Likewise.
772 * c-common.c: Likewise.
773 * c-parser.c: Likewise.
774
775 2008-08-20 Joseph Myers <joseph@codesourcery.com>
776
777 PR target/31070
778 * config/sparc/sparc.c (function_arg_slotno): Handle structure
779 with MODE_VECTOR_INT mode.
780
781 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
782
783 PR middle-end/179
784 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
785 initialized outside the current module.
786 (warn_uninitialized_var): Ignore left-hand side when walking the
787 trees. Ignore address expressions. Examine VUSE operands in gimple
788 statements with a variable declaration on the right-hand side.
789
790 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
791
792 PR bootstrap/37155
793 * rtlanal.c (subreg_offset_representable_p): Revert last change.
794
795 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
796
797 PR 35701
798 * c-common.c (conversion_warning): Do not warn if applying bit-and
799 operator to unsigned constant that fits in the target type.
800
801 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
802
803 PR c++/35602
804 * c-common.c (conversion_warning): Do not warn for artificial
805 expressions.
806
807 2008-08-20 Richard Guenther <rguenther@suse.de>
808
809 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
810 (extract_range_from_binary_expr): Fall back to constant propagation.
811 (extract_range_from_unary_expr): Likewise.
812
813 2008-08-20 Richard Guenther <rguenther@suse.de>
814
815 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
816 with TREE_THIS_VOLATILE on shared nodes.
817 (fold_stmt_r): Likewise.
818
819 2008-08-20 Jakub Jelinek <jakub@redhat.com>
820
821 PR c/37171
822 * c-parser.c (c_parser_attributes): For keywords use canonical
823 spelling for attr_name.
824
825 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
826
827 * value-prof.c (check_counter): Revert wrong call to error.
828
829 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
830
831 * profile.c: Update calls to inform.
832 * value-prof.c: Update calls to inform.
833
834 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
835
836 * diagnostic.c (inform): Add an explicit location_t parameter.
837 * toplev.h (inform): Update declaration.
838 * builtins.c: Update all calls to inform.
839 * c-common.c: Likewise.
840 * c-decl.c: Likewise.
841 * c-opts.c: Likewise.
842 * c-pch.c: Likewise.
843 * c-pragma.c: Likewise.
844 * c-typeck.c: Likewise.
845 * coverage.c: Likewise.
846 * opts.c: Likewise.
847 * toplev.c: Likewise.
848 * tree-cfg.c: Likewise.
849 * tree-ssa.c: Likewise.
850
851 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
852
853 PR target/37169
854 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
855 V2DI mode, for SSE4.1, use movq instead of vector set if the
856 second element is zero and inter-unit moves are OK.
857
858 2008-08-20 Richard Guenther <rguenther@suse.de>
859
860 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
861 properly handle conversion/copy chains after tuplification.
862
863 2008-08-20 Richard Guenther <rguenther@suse.de>
864
865 * passes.c (init_optimization_passes): Move the second
866 forwprop pass before alias computation. Remove the second
867 DCE pass. Remove the first dominator and phi copy/const
868 prop passes.
869
870 2008-08-20 Nick Clifton <nickc@redhat.com>
871
872 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
873 support of this feature. Do not assume that a sufficiently new
874 assembler will support the feature regardless of the target type.
875 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
876 * configure: Regenerate.
877
878 2008-08-20 Richard Guenther <rguenther@suse.de>
879
880 * tree-vrp.c (found_in_subgraph): Remove.
881 (live): New global static.
882 (live_on_edge): New function.
883 (blocks_visited): Remove.
884 (register_edge_assert_for_2): Use live_on_edge.
885 (find_conditional_asserts): Remove code dealing with
886 found_in_subgraph. Do not walk the CFG.
887 (find_switch_asserts): Likewise.
888 (find_assert_locations_1): Renamed from find_assert_locations.
889 Move finding assert locations for conditional and switch
890 statements first. Update live bitmap. Do not walk the CFG.
891 (find_assert_locations): New function.
892 (insert_range_assertions): Remove entry of CFG walk.
893 Adjust call to find_assert_locations.
894 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
895 that only can appear because of fake exit edges but assert we
896 never try to insert on those.
897 (fini_pre): Do not remove fake exit edges here...
898 (execute_pre): ...but here, before committing edge inserts.
899
900 2008-08-19 Richard Guenther <rguenther@suse.de>
901
902 * passes.c (init_optimization_passes): Exchange store-ccp
903 with a ccp pass.
904
905 2008-08-19 Rafael Espindola <espindola@google.com>
906
907 * varasm.c (weak_decls): Move earlier in the file.
908 (assemble_external): Add weak decls to the weak_decls list.
909 (declare_weak): Don't add decls to the weak_decls list.
910
911 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
912
913 PR target/37157
914 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
915 before (sse2_shufpd_<mode>).
916
917 2008-08-19 Jakub Jelinek <jakub@redhat.com>
918
919 PR debug/37156
920 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
921 * tree.c (block_nonartificial_location): Likewise.
922
923 2008-08-19 Richard Guenther <rguenther@suse.de>
924
925 PR tree-optimization/35972
926 PR tree-optimization/23094
927 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
928 parameter.
929 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
930 handle MISALIGNED_INDIRECT_REF.
931 (get_ref_from_reference_ops): New helper.
932 (vn_reference_lookup_pieces): Walk the use-def chain using the
933 alias-oracle if requested.
934 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
935 walking the use-def chain.
936 (compute_avail): But not here.
937 (create_component_ref_by_pieces_1): Properly handle
938 MISALIGNED_INDIRECT_REF.
939 (do_regular_insertion): Handle fully redundant
940 expressions after PHI-translation also for SSA_NAME values, not
941 only constants. Correctly use edoubleprime for that.
942
943 2008-08-19 Ira Rosen <irar@il.ibm.com>
944
945 * tree-vectorizer.c (supportable_widening_operation): Support
946 multi-step conversion, return the number of steps in such conversion
947 and the required intermediate types.
948 (supportable_narrowing_operation): Likewise.
949 * tree-vectorizer.h (vect_pow2): New function.
950 (supportable_widening_operation): Change argument types.
951 (supportable_narrowing_operation): Likewise.
952 (vectorizable_type_promotion): Add an argument.
953 (vectorizable_type_demotion): Likewise.
954 * tree-vect-analyze.c (vect_analyze_operations): Call
955 vectorizable_type_promotion and vectorizable_type_demotion with
956 additional argument.
957 (vect_get_and_check_slp_defs): Detect patterns.
958 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
959 types.
960 (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
961 vect_build_slp_tree with correct arguments. Calculate unrolling factor
962 according to the smallest type in the loop.
963 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
964 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
965 supportable_widening_operation with correct arguments.
966 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
967 operands lists according to the number of vector statements in left
968 or right node, if exists.
969 (vect_gen_widened_results_half): Remove unused argument.
970 (vectorizable_conversion): Call supportable_widening_operation,
971 supportable_narrowing_operation, and vect_gen_widened_results_half
972 with correct arguments.
973 (vectorizable_assignment): Change documentation, support multiple
974 types in SLP.
975 (vectorizable_operation): Likewise.
976 (vect_get_loop_based_defs): New function.
977 (vect_create_vectorized_demotion_stmts): Likewise.
978 (vectorizable_type_demotion): Support loop-aware SLP and general
979 multi-step conversion. Call vect_get_loop_based_defs and
980 vect_create_vectorized_demotion_stmts for transformation.
981 (vect_create_vectorized_promotion_stmts): New function.
982 (vectorizable_type_promotion): Support loop-aware SLP and general
983 multi-step conversion. Call vect_create_vectorized_promotion_stmts
984 for transformation.
985 (vectorizable_store): Change documentation, support multiple
986 types in SLP.
987 (vectorizable_load): Likewise.
988 (vect_transform_stmt): Pass SLP_NODE to
989 vectorizable_type_promotion and vectorizable_type_demotion.
990 (vect_schedule_slp_instance): Move here the calculation of number
991 of vectorized statements for each node from...
992 (vect_schedule_slp): ... here.
993 (vect_transform_loop): Call vect_schedule_slp without the last
994 argument.
995
996 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
997
998 PR bootstrap/37152
999 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
1000 to == in assert statement.
1001 (vectorizable_reduction): Fix typo.
1002
1003 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
1004
1005 PR bootstrap/37153
1006 * value-prof.c (check_counter): Dereference pointer to overall
1007 count when printing it.
1008
1009 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
1010
1011 * profile.h: Really add it.
1012
1013 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
1014
1015 * mcf.c: Really add it.
1016
1017 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
1018 Vinodha Ramasamy <vinodha@google.com>
1019
1020 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
1021 count_scale.
1022 * value-prof.c (check_counter): Fix the counter if
1023 flag_profile_correction is true.
1024 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1025 tree_mod_subtract_transform):
1026 Follow check_counter parameter change.
1027 * common.opt (fprofile-correction): New option.
1028 * mcf.c: New file.
1029 * profile.h: Likewise.
1030 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
1031 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
1032 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
1033 functions.
1034 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
1035 flag_profile_correction is set.
1036
1037 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
1038
1039 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
1040
1041 2008-08-18 Tomas Bily <tbily@suse.cz>
1042
1043 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
1044 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
1045 CONVERT_EXPR_P.
1046 * tree-data-ref.c (split_constant_offset_1): Likewise.
1047 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
1048 * tree-sra.c (sra_walk_expr): Likewise.
1049 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
1050 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
1051 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
1052 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
1053 Likewise.
1054 * gimple.c (gimple_assign_unary_nop_p): Likewise.
1055 * tree-vect-transform.c (vectorizable_type_demotion)
1056 (vectorizable_type_promotion): Likewise.
1057 * tree-inline.c (expand_call_inline):
1058 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1059 (forward_propagate_addr_expr_1, forward_propagate_comparison)
1060 (tree_ssa_forward_propagate_single_use_vars): Likewise.
1061 * expr.c (expand_expr_real_1): Likewise.
1062 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
1063 (gimple_assign_unary_useless_conversion_p): Likewise.
1064 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1065 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
1066 * fold-const.c (fold_unary): Likewise.
1067 * tree.h (CONVERT_EXPR_P): Likewise.
1068 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
1069 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
1070 * tree-vrp.c:
1071 (register_edge_assert_for_2, extract_range_from_unary_expr)
1072 (register_edge_assert_for_1): Likewise.
1073
1074 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1075
1076 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
1077 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
1078 (enum real_value_const): Delete.
1079 (get_real_const): Delete.
1080 * real.c (get_real_const): Delete.
1081 (dconst_e_ptr): Define.
1082 (dconst_third_ptr): Define.
1083 (dconst_sqrt2_ptr): Define.
1084 * builtins.c: Update all callers.
1085
1086 2008-08-18 Richard Guenther <rguenther@suse.de>
1087
1088 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
1089 statement iterator after statement removal.
1090
1091 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
1092
1093 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
1094 (detect_processor_freebsd): Likewise.
1095 (host_detect_local_cpu): Call newly added functions for FreeBSD.
1096
1097 2008-08-18 Richard Guenther <rguenther@suse.de>
1098
1099 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
1100 and loads have the correct types.
1101
1102 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1103
1104 PR cpp/7263
1105 * c-opts.c (cpp_opts): Remove static.
1106 * c-parser.c (cpp_opts): Declare it extern.
1107 (disable_extension_diagnostics): Handle cpp options.
1108 (enable_extension_diagnostics): Likewise.
1109
1110 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1111
1112 * diagnostics.c (permerror_at): Rename as permerror.
1113 (permerror): Delete.
1114 * toplev.h: Likewise.
1115
1116 2008-08-18 Richard Guenther <rguenther@suse.de>
1117
1118 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
1119 sdse1 and addressables2 passes. Replace dce1 with cddce1.
1120 Move call_cdce before build_alias. Move copyrename2,
1121 cunrolli and ccp2 beafore build_alias. Re-add addressable2
1122 right after final inlining.
1123 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
1124 (pass_build_cfg): But instead via TODO_dump_func.
1125
1126 2008-08-18 Richard Guenther <rguenther@suse.de>
1127
1128 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
1129 element index.
1130 (scalarize_init): If we failed to generate some initializers
1131 do not generate zeros for not instantiated members. Instead
1132 rely on the copy out.
1133 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
1134 about missing flow-sensitive alias info only if we have
1135 aliases computed.
1136
1137 2008-08-17 Nick Clifton <nickc@redhat.com>
1138
1139 * doc/extend.texi (Function Attributes): Fix typo in description
1140 if hot function attribute.
1141
1142 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
1143 Richard Sandiford <rdsandiford@googlemail.com>
1144
1145 * doc/install.texi (--with-mips-plt): Document.
1146 * doc/invoke.texi (-mplt, -mno-plt): Document.
1147 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
1148 and handle ${with_mips_plt}.
1149 * config/mips/mips.opt (mplt): New option.
1150 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
1151 (TARGET_ABICALLS_PIC2): Likewise.
1152 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
1153 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
1154 (ASM_SPEC): Use !mabi=* instead of !mabi*.
1155 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
1156 to decide whether to output ".option picX" directives.
1157 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
1158 Pass -call_nonpic rather than -KPIC for -mplt.
1159 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
1160 on the command line. Also remove it when -mabi=64 is used without
1161 -msym32.
1162 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
1163 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
1164 TARGET_ABICALLS_PIC0.
1165 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
1166 TARGET_ABICALLS.
1167 (mips16_build_function_stub): Only output ".option pic" directives
1168 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
1169 (mips16_build_call_stub): Fix comment and remove redundant
1170 ".set at"/"set .noat" directives.
1171 (mips_function_rodata_section): Use the default behaviour for
1172 TARGET_ABSOLUTE_ABICALLS.
1173 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
1174 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
1175 (mips_restore_gp): Do nothing if the current function doesn't use
1176 a global pointer.
1177 (mips_expand_prologue): Only save $gp if the current function uses it.
1178 Use a normal move for TARGET_ABICALLS_PIC0.
1179 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
1180
1181 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
1182
1183 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
1184 of function when handling GLOBAL_POINTER_REGNUM.
1185
1186 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1187
1188 PR ada/20548
1189 * common.opt (-fstack-check): Do not declare the variable here.
1190 (-fstack-check=): New option variant.
1191 * doc/invoke.texi (Code Gen Options): Document it.
1192 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
1193 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
1194 (STACK_CHECK_STATIC_BUILTIN): New macro.
1195 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
1196 * opts.c: Include expr.h.
1197 (common_handle_option) <OPT_fold_stack_check_>: New case.
1198 <OPT_fstack_check>: Likewise.
1199 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
1200 consistently in the test for variable-sized types. Adjust for
1201 new behaviour of flag_stack_check.
1202 * explow.c: Include except.h.
1203 (allocate_dynamic_stack_space): Do not take into account
1204 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
1205 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
1206 for variable-sized parameters. Treat all parameters whose size is
1207 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
1208 stack checking is enabled.
1209 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
1210 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
1211 if generic stack checking is enabled.
1212 (expand_function_end): Adjust for new behaviour of flag_stack_check.
1213 * reload1.c (reload): Likewise.
1214 * stmt.c (expand_decl): Assert that all automatic variables have
1215 fixed size at this point and remove dead code.
1216 * flags.h (stack_check_type): New enumeration type.
1217 (flag_stack_check): Declare.
1218 * toplev.c (flag_stack_check): New global variable.
1219 * Makefile.in (opts.o): Add dependency on EXPR_H.
1220 (explow.o): Add dependency on except.h.
1221
1222 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
1223
1224 * config/avr/avr.c (avr_override_options): Reduce value of
1225 PARAM_INLINE_CALL_COST.
1226
1227 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
1228
1229 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
1230 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
1231 lieu of TYPE_MODE (type) throughout.
1232
1233 2008-08-15 Joseph Myers <joseph@codesourcery.com>
1234
1235 * config/arm/arm.c (add_minipool_backward_ref): Check for
1236 8-byte-aligned entries in second case of forcing insertion after a
1237 particular entry. Change third case to avoid inserting
1238 non-8-byte-aligned entries before 8-byte-aligned ones.
1239
1240 2008-08-15 Richard Guenther <rguenther@suse.de>
1241
1242 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
1243 strip components for unknown size accesses.
1244
1245 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
1246
1247 * config/s390/2097.md New file.
1248 * config/s390/s390.md ("z10prop" attribute): Define none,
1249 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
1250 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
1251 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
1252 possible values and apply them to insns as appropriate.
1253 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
1254 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
1255 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
1256 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
1257 values.
1258 ("bfp" mode attribute): Removed. Every occurence replaced
1259 with <mode>.
1260 * config/s390/s390.c (struct "z10_cost"): Updated entries.
1261 * config/s390/2084.md (insn_reservation "x_itof"): Updated
1262 type attribute.
1263
1264 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1265
1266 PR c/28152
1267 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
1268 for keywords.
1269
1270 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
1271
1272 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
1273 additional argument. Support reduction when duplication is needed due
1274 to data-types of different sizes in the loop.
1275 (get_initial_def_for_induction): Fix printout.
1276 (vect_get_vec_def_for_stmt_copy): Support case where the
1277 vec_stmt_for_operand is a phi node.
1278 (vectorizable_reduction): Support reduction when duplication is needed
1279 due to data-types of different sizes in the loop.
1280 (vectorizable_call): Remove restriction to not vectorize in case we
1281 have data-types of different sizes in the loop.
1282 (vectorizable_conversion): Likewise.
1283 (vectorizable_operation): Likewise.
1284 (vectorizable_type_demotion): Likewise.
1285 (vectorizable_type_promotion): Likewise.
1286 (vectorizable_induction): Add restriction to not vectorize in case
1287 we have data-types of different sizes in the loop.
1288
1289 2008-08-14 Christophe Saout <christophe@saout.de>
1290 Uros Bizjak <ubizjak@gmail.com>
1291
1292 PR target/37101
1293 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
1294 (*vec_concatv2di_rex64_sse4_1): Ditto.
1295 (*vec_concatv2di_rex64_sse): Ditto.
1296
1297 2008-08-14 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR middle-end/37103
1300 * fold-const.c (fold_widened_comparison): Do not allow
1301 sign changes that change the result even if shorter type
1302 is wider than arg1_unw's type.
1303
1304 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
1305
1306 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
1307 Skip if the multilib testing specifies -march that does not
1308 agree with the one specified in the testcase.
1309
1310 2008-08-13 Joseph Myers <joseph@codesourcery.com>
1311
1312 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
1313 zero extend SImode values being converted to TFmode before passing
1314 to libcalls.
1315
1316 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1317
1318 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
1319 __PPU__ when targeting the Cell/B.E. PPU processor.
1320
1321 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
1322
1323 * gimple.h (gimple_call_set_chain): Accept SSA variables.
1324 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
1325 Rematerialize the static chain, if any.
1326 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
1327 static chain.
1328
1329 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
1330
1331 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
1332 (new_loc_descr): Likewise.
1333 (add_loc_descr): Likewise.
1334 (size_of_loc_descr): Likewise.
1335 (size_of_locs): Likewise.
1336 (output_loc_operands): Likewise.
1337 (output_loc_sequence): Likewise.
1338 (new_reg_loc_descr): New.
1339 (build_cfa_loc): Use it.
1340 (build_cfa_aligned_loc): Likewise.
1341 (one_reg_loc_descriptor): Likewise.
1342 (based_loc_descr): Likewise.
1343
1344 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1345
1346 PR 30551
1347 * doc/invoke.texi (Wmain): Update.
1348 * c-decl.c (start_decl): warn_main is only 0 or 1.
1349 (start_function): Likewise. Fix formatting.
1350 (finish_function): Delete redundant warning.
1351 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
1352 * c-opts (c_common_handle_option): -Wall only has effect if
1353 warn_main is uninitialized. OPT_Wmain is automatically
1354 handled. -pedantic also enables Wmain.
1355 (c_common_post_options): Handle all logic for Wmain here.
1356 * c-common.c (warn_main): Delete.
1357 (check_main_parameter_types): Make pedwarns conditional on
1358 OPT_Wmain.
1359 * c-common.h (warn_main): Delete.
1360
1361 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
1362
1363 PR middle-end/36701
1364 * expr.c (emit_group_store): Allocate stack temp with the
1365 largest alignment when copying from register to stack.
1366
1367 2008-08-13 Richard Guenther <rguenther@suse.de>
1368
1369 * tree.h (maybe_fold_offset_to_address): Declare.
1370 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
1371 (ccp_fold): Handle pointer conversions the same as fold_stmt.
1372 Likewise for POINTER_PLUS_EXPR.
1373 (maybe_fold_offset_to_reference): Enable disabled code.
1374 (maybe_fold_offset_to_address): New function.
1375 (fold_stmt_r): Use it.
1376 (fold_gimple_assign): Likewise.
1377 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
1378 (gimplify_expr): Likewise.
1379
1380 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1381
1382 * toplev.h (pedwarn_at): Fix declaration.
1383
1384 2008-08-13 Joseph Myers <joseph@codesourcery.com>
1385
1386 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1387 LINK_SPEC): Use %R in -Y P argument.
1388
1389 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1390
1391 PR c/15236
1392 * diagnostic.c (pedwarn_at): New.
1393 * toplev.h (pedwarn_at): Declare.
1394 * c-tree.h (build_enumerator): Update declaration.
1395 * c-decl.c (finish_enum): Update comment.
1396 (build_enumerator): Take a location parameter. Give a pedwarn but do
1397 not perform any conversion.
1398 * c-parser.c (c_parser_enum_specifier): Set correct location for
1399 enumerator.
1400
1401 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1402
1403 PR 35635
1404 * c-common.c (conversion_warning): Use a switch. Ignore boolean
1405 expressions except for conversions to signed:1 bitfields. Handle
1406 COND_EXPR with constant operands.
1407
1408 2008-08-13 Richard Guenther <rguenther@suse.de>
1409
1410 PR tree-optimization/15255
1411 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
1412 (struct oecount_s): New struct and VEC types.
1413 (cvec): New global.
1414 (oecount_hash): New function.
1415 (oecount_eq): Likewise.
1416 (oecount_cmp): Likewise.
1417 (zero_one_operation): New function.
1418 (build_and_add_sum): Likewise.
1419 (undistribute_ops_list): Perform un-distribution of multiplication
1420 and division on the chain of summands.
1421 (should_break_up_subtract): Also break up subtracts for factors.
1422 (reassociate_bb): Delete dead visited statements.
1423 Call undistribute_ops_list. Re-sort and optimize if it did something.
1424 * passes.c (init_optimization_passes): Move DSE before
1425 reassociation.
1426 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
1427 PHI nodes.
1428
1429 2008-08-12 Janis Johnson <janis187@us.ibm.com>
1430
1431 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
1432
1433 * doc/invoke.texi: Revert unintended checkin.
1434
1435 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
1436
1437 PR libgomp/26165
1438 * gcc.c (include_spec_function): Tweak call to find_a_file.
1439
1440 2008-08-12 Jakub Jelinek <jakub@redhat.com>
1441
1442 PR middle-end/37014
1443 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
1444 and TRUTH_ORIF_EXPR.
1445 * dojump.c (do_jump): Likewise.
1446
1447 PR tree-optimization/37084
1448 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
1449 if id->regimplify, don't assume stmt is a cast assignment.
1450
1451 2008-08-12 Anatoly Sokolov <aesok@post.ru>
1452
1453 * final.c (final_scan_insn): Use app_enable/app_disable functions.
1454
1455 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1456
1457 PR bootstrap/37097
1458 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
1459 by last change.
1460
1461 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1462
1463 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
1464 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
1465
1466 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
1467 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
1468 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
1469 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
1470 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
1471
1472 * doc/tm.texi (Storage Layout): Remove documentation for
1473 TARGET_FLOAT_FORMAT.
1474
1475 * simplify-rtx.c (simplify_binary_operation_1): Replace
1476 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
1477
1478 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1479
1480 * real.h (struct real_format): New member has_sign_dependent_rounding.
1481 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
1482 spu_single_format, ieee_double_format, mips_double_format,
1483 motorola_double_format, ieee_extended_motorola_format,
1484 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1485 ieee_extended_intel_96_round_53_format, ibm_extended_format,
1486 mips_extended_format, ieee_quad_format, mips_quad_format,
1487 vax_f_format, vax_d_format, vax_g_format): Initialize it.
1488 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1489
1490 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
1491 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
1492 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
1493 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
1494 (ROUND_TOWARDS_ZERO): Likewise.
1495
1496 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
1497 (FLOAT_MODE_FORMAT): New macro.
1498 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
1499 (MODE_COMPOSITE_P): ... this new macro.
1500 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1501 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
1502 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
1503
1504 * flags.h: Include "real.h".
1505
1506 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
1507 REAL_MODE_FORMAT_COMPOSITE_P.
1508 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
1509
1510 * doc/tm.texi (Storage Layout): Remove documentation of
1511 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1512 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
1513 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
1514 they only apply to libgcc2.a.
1515
1516 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1517
1518 * config/spu/float_disf.c: New file.
1519 * config/spu/float_unsdisf.c: New file.
1520 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
1521 (LIB2FUNCS_EXCLUDE): Define.
1522
1523 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1524 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1525
1526 * real.h (struct real_format): New member round_towards_zero.
1527 * real.c (round_for_format): Respect fmt->round_towards_zero.
1528 (ieee_single_format, mips_single_format, motorola_single_format,
1529 spu_single_format, ieee_double_format, mips_double_format,
1530 motorola_double_format, ieee_extended_motorola_format,
1531 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1532 ieee_extended_intel_96_round_53_format, ibm_extended_format,
1533 mips_extended_format, ieee_quad_format, mips_quad_format,
1534 vax_f_format, vax_d_format, vax_g_format): Initialize it.
1535 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1536
1537 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
1538 real_format to choose rounding mode when calling MPFR functions.
1539 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
1540 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
1541
1542 * real.h (real_to_decimal_for_mode): Add prototype.
1543 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
1544 Respect target rounding mode when generating decimal representation.
1545 (real_to_decimal): New stub for backwards compatibility.
1546 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
1547 real_to_decimal_for_mode instead of real_to_decimal.
1548
1549 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
1550
1551 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1552 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1553
1554 * real.c (spu_single_format): New variable.
1555 * real.h (spu_single_format): Declare.
1556
1557 * config/spu/spu.c (spu_override_options): Install SFmode format.
1558 (spu_split_immediate): Use integer mode to operate on pieces of
1559 floating-point values in all cases.
1560
1561 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
1562 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
1563 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
1564
1565 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1566
1567 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
1568
1569 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1570
1571 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
1572
1573 2008-08-12 Jakub Jelinek <jakub@redhat.com>
1574
1575 PR c++/36688
1576 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
1577 on the VAR_DECL instead of TYPE_READONLY on its type.
1578
1579 2008-08-12 Ira Rosen <irar@il.ibm.com>
1580
1581 * tree-vectorizer.c: Depend on langhooks.h.
1582 (supportable_widening_operation): Add two arguments. Support double
1583 type conversions.
1584 (supportable_narrowing_operation): Likewise.
1585 * tree-vectorizer.h (supportable_widening_operation): Add two
1586 arguments.
1587 (supportable_narrowing_operation): Likewise.
1588 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
1589 supportable_widening_operation with correct arguments.
1590 * tree-vect-transform.c (vectorizable_conversion): Likewise.
1591 (vectorizable_type_demotion): Support double type conversions.
1592 (vectorizable_type_promotion): Likewise.
1593 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
1594
1595 2008-08-11 Michael Matz <matz@suse.de>
1596
1597 * i386/i386.c (override_options): Move initialisation from
1598 flag_schedule_insns_after_reload to here from ...
1599 (optimization_options): ... here.
1600
1601 2008-08-11 Jakub Jelinek <jakub@redhat.com>
1602
1603 PR rtl-optimization/36998
1604 * dwarf2out.c (compute_barrier_args_size_1,
1605 compute_barrier_args_size): Temporarily remove assertions.
1606
1607 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1608
1609 PR middle-end/20644
1610 * tree-ssa.c (struct walk_data): Add new flag
1611 warn_possibly_uninitialized.
1612 (warn_uninitialized_var): Use it.
1613 (warn_uninitialized_vars): New.
1614 (execute_early_warn_uninitialized): Call it.
1615 (execute_late_warn_uninitialized): Likewise.
1616
1617 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
1618
1619 PR middle-end/36238
1620 * reload1.c (gen_reload): Guard calls to get_secondary_mem
1621 for memory subregs.
1622
1623 2008-08-09 Jan Hubicka <jh@suse.cz>
1624
1625 PR target/37055
1626 * optabs.c (maybe_emit_unop_insn): Remove produced code if
1627 expansion failed.
1628 (expand_fix): Be prepared for expansion to fail.
1629 (expand_sfix_optab): Remove instructions if expansion failed.
1630
1631 2008-08-09 Anatoly Sokolov <aesok@post.ru>
1632
1633 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
1634 avr31 architecture.
1635 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
1636 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1637
1638 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1639
1640 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
1641 mips/t-libgcc-mips16 to tmake_file.
1642 * config/mips/mips-protos.h (mips_call_type): New enum.
1643 (mips_pic_base_register, mips_got_load): Declare.
1644 (mips_restore_gp): Take an rtx argument.
1645 (mips_use_pic_fn_addr_reg_p): Declare.
1646 (mips_expand_call): Replace the sibcall_p argument with
1647 a mips_call_type argument. Add a lazy_p parameter.
1648 (mips_split_call): Declare.
1649 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
1650 (MIPS16_PIC_TEMP): Likewise.
1651 (reg_class): Delete M16_NA_REGS.
1652 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1653 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
1654 (mips_split_hi_p): Declare.
1655 * config/mips/mips.c (mips_split_hi_p): New array.
1656 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
1657 (mips_got_symbol_type_p): New function.
1658 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
1659 (mips16_stub_function_p): New function.
1660 (mips16_local_function_p): Likewise.
1661 (mips_use_pic_fn_addr_reg_p): Likewise.
1662 (mips_cannot_force_const_mem): Return false for HIGHs.
1663 Extend CONST_INT and symbolic handling to MIPS16, using
1664 mips_symbol_insns to check that the base symbol type is a
1665 legitimate constant. Reject GOT-based constants if
1666 TARGET_MIPS16_PCREL_LOADS.
1667 (mips_const_insns): Check targetm.cannot_force_const_mem when
1668 decomposing a symbolic base and a large offset.
1669 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
1670 When calling a function that needs $25 from MIPS16 code,
1671 move the target address into $25 separately and add a USE
1672 to the call insn.
1673 (mips16_gp_pseudo_reg): Insert the initializer immediately
1674 before the first real insn.
1675 (mips_pic_base_register, mips_got_load): New functions.
1676 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
1677 parameter to LOW_OUT. Say that it can be any valid SET_SRC
1678 when splitting a load-address operation. Split SYMBOL_GOT_DISP
1679 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
1680 (mips_call_tls_get_addr): Update the call to mips_expand_call,
1681 also passing NULL_RTX rather than const0_rtx as the aux argument.
1682 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
1683 instead of TARGET_EXPLICIT_RELOCS.
1684 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
1685 (mips_load_call_address): Replace the sibcall_p argument with
1686 a mips_call_type argument. Use mips_got_load.
1687 (mips16_local_alias): New structure.
1688 (mips16_local_aliases): New variable.
1689 (mips16_local_aliases_hash): New function.
1690 (mips16_local_aliases_eq): Likewise.
1691 (mips16_local_alias): Likewise.
1692 (mips16_stub_function): Likewise.
1693 (mips16_build_function_stub): Create a local alias for the target
1694 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
1695 .cpload directive and an R_MIPS_NONE relocation for the target
1696 function, then load the alias rather than the function itself.
1697 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
1698 (mips16_copy_fpr_return_value): Use mips16_stub_function and
1699 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
1700 (mips16_build_call_stub): Replace the FN parameter with an
1701 FN_PTR parameter. Force the address into a register if it
1702 isn't a call_insn_operand; don't rely on the caller to do this.
1703 If a call to a locally-defined and locally-binding MIPS16
1704 function must be made indirectly, redirect the call to the
1705 function's local alias. Use mips16_stub_function_p,
1706 mips16_stub_function, mips_expand_call and use_reg.
1707 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
1708 Use explicit %hi and %lo accesses where possible.
1709 Use MIPS_CALL to generate the correct code form of a
1710 jal instruction. Add clobbers of $18 instead of uses.
1711 Update the call to mips_emit_call_insn.
1712 (mips_expand_call): Replace the SIBCALL_P argument with a
1713 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
1714 Take a LAZY_P parameter. Call mips16_build_call_stub first,
1715 allowing it to modify the call address. Update the calls to
1716 mips_load_call_address and mips_emit_call_insn.
1717 (mips_split_call): New function.
1718 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
1719 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
1720 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
1721 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
1722 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
1723 if TARGET_MIPS16.
1724 (mips_cprestore_slot): New function.
1725 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
1726 and use mips_cprestore_slot.
1727 (mips_output_function_prologue): Handle TARGET_MIPS16 for
1728 LOADGP_OLDABI.
1729 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
1730 then use a copygp_mips16 instruction to set up $28.
1731 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
1732 (mips16_lay_out_constants): Call split_all_insns_noflow.
1733 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
1734 false if TARGET_MIPS16.
1735 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
1736 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
1737 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
1738 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
1739 MIPS16 code. Allow MIPS16 o32 PIC.
1740 (mips_override_options): Allow MIPS16 o32 PIC.
1741 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
1742 after reload if TARGET_USE_GOT.
1743 (UNSPEC_COPYGP): New constant.
1744 (length): Use a default length of 8 for MIPS16 GOT loads.
1745 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
1746 (*got_page<mode>): Check mips_split_hi_p.
1747 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
1748 (unspec_got<mode>, unspec_call<mode>): New expanders.
1749 (load_got<mode>, load_call<mode>): Remove the length attributes.
1750 Use a got attribute instead of a type attribute.
1751 (copygp_mips16): New insn.
1752 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
1753 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
1754 (sibcall, sibcall_value, call, call_value): Update the calls
1755 to mips_expand_call.
1756 (call_internal, call_value_internal): Use mips_split_call.
1757 (call_value_multiple_internal): Likewise.
1758 (call_split): Move after call_internal (the insn it is split from).
1759 (call_internal_direct, call_value_internal_direct): Turn into
1760 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
1761 (call_direct_split, call_value_direct_split): New patterns.
1762 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
1763 and use M16_REGS instead of M16_NA_REGS.
1764 * config/mips/predicates.md (const_call_insn_operand): Replace
1765 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
1766 mips_use_pic_fn_addr_reg_p check.
1767 (move_operand): Reject HIGHs if mips_split_hi_p.
1768 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
1769 (__mips16_floatunsisf): Inline __mips16_floatsisf.
1770 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
1771 * config/mips/libgcc-mips16.ver: New file.
1772 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
1773 $(srcdir)/config/mips/libgcc-mips16.ver.
1774
1775 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1776
1777 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
1778 (mips_unspec_address, mips_unspec_offset_high): Likewise.
1779 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
1780 (mips16_cfun_returns_in_fpr_p): Likewise.
1781
1782 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1783
1784 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
1785 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
1786 rather than 4 to PC.
1787
1788 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1789
1790 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
1791 (FUNCTION_PROFILER): Save the static chain pointer into $2
1792 beforehand and restore it aftewards.
1793 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
1794 address directly into $25 and call the function through $25;
1795 do not clobber $3. Pad the DImode version to cover the space
1796 left by the deleted $25 <- $3 move.
1797 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
1798 the removal of the $25 <- $3 move.
1799 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
1800 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
1801
1802 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1803 Daniel Jacobowitz <dan@codesourcery.com>
1804
1805 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1806 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1807 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1808 * config/mips/mips.c (mips_start_function_definition): New function.
1809 (mips_end_function_definition): Likewise.
1810 (mips_output_function_prologue): Use mips_start_function_definition.
1811 (mips_output_function_epilogue): Use mips_end_function_definition.
1812 (build_mips16_function_stub): Use mips_start_function_definition
1813 and mips_end_function_definition.
1814 (build_mips16_call_stub): Likewise.
1815
1816 2008-08-09 Richard Guenther <rguenther@suse.de>
1817
1818 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1819 * gimple.h (gimple_call_fn): Adjust comment.
1820 (gimple_call_set_fndecl): New function.
1821 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1822 longer having bare FUNCTION_DECL operand.
1823 (gimple_call_return_type): Likewise.
1824 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1825
1826 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1827 (gimple_mod_pow2): Likewise.
1828 (gimple_mod_subtract): Likewise.
1829 (gimple_ic): Likewise.
1830 (gimple_stringop_fixed_value): Likewise.
1831 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1832 longer having bare FUNCTION_DECL operand.
1833 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1834 * omp-low.c (optimize_omp_library_calls): Likewise.
1835 * cgraphunit.c (update_call_expr): Likewise.
1836 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1837 (execute_convert_to_rsqrt): Likewise.
1838 * cfgexpand.c (gimple_to_tree): Simplify.
1839 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1840 bare FUNCTION_DECL operand.
1841 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1842 (convert_gimple_call): Use gimple_call_fndecl.
1843 * c-common.c (c_warn_unused_result): Likewise.
1844
1845 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1846
1847 PR c/17880
1848 * c-typeck.c (digest_init): Call verify_sequence_points from here.
1849 (c_finish_return): Likewise.
1850 (c_start_case): Likewise.
1851 * c-common.c (warn_for_collisions_1): Use explicit location in
1852 warning.
1853 * c-parser.c (c_parser_condition): New. Call
1854 verify_sequence_points.
1855 (c_parser_paren_condition): Call c_parser_condition.
1856 (c_parser_for_statement): Call c_parser_condition.
1857
1858 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1859
1860 PR 36901
1861 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
1862 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1863 Moved from diagnostic.h
1864 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1865 DK_PERMERROR.
1866 (emit_diagnostic): New.
1867 (warning0, pedwarn0): Delete.
1868 (warning, warning_at, pedwarn, permerror): Return bool.
1869 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1870 Moved to diagnostic.c.
1871 (struct diagnostic_context): Use correct type for
1872 classify_diagnostic.
1873 (diagnostic_report_diagnostic): Update declaration.
1874 (emit_diagnostic): Declare.
1875 * errors.c (warning): Return bool.
1876 * errors.h (warning): Update declaration.
1877 * toplev.h (warning0, pedwarn0): Delete.
1878 (warning, warning_at, pedwarn, permerror): Return bool.
1879 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1880 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1881 inform. Update all calls.
1882 (diagnose_mismatched_decls): Check return value of warning/pedwarn
1883 before giving informative note.
1884 (implicit_decl_warning): Likewise.
1885 * c-typeck.c (build_function_call): Likewise.
1886 * tree-sssa.c (warn_uninit): Likewise.
1887 * builtins.c (gimplify_va_arg_expr): Likewise.
1888
1889 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1890
1891 PR 7651
1892 * doc/invoke.texi (-Wextra): Move warning from here...
1893 (-Wuninitialized): ... to here.
1894
1895 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1896
1897 PR 28875
1898 * flags.h (set_Wunused): Delete
1899 * toplev.c (process_options): Handle Wunused flags here.
1900 * opts.c (maybe_warn_unused_parameter): Delete.
1901 (common_handle_option): Replace set_Wunused by warn_unused.
1902 (set_Wextra): Do not handle Wunused-parameter here.
1903 (set_Wunused): Delete.
1904 * c-opts.c (c_common_handle_option): Replace set_Wunused by
1905 warn_unused.
1906 * common.opt (Wunused): Add Var and Init.
1907 (Wunused-function): Likewise.
1908 (Wunused-label): Likewise.
1909 (Wunused-parameter): Likewise.
1910 (Wunused-value): Likewise.
1911 (Wunused-variable): Likewise.
1912
1913 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
1914
1915 * doc/invoke.texi: Add cpu_type power7.
1916 * config.in (HAVE_AS_VSX): New.
1917 * config.gcc: Add cpu_type power7.
1918 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1919 VSX instructions.
1920 * configure: Regenerate.
1921 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1922 power5.
1923 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1924 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1925 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1926
1927 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
1928
1929 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1930 type to vectorize.builtin_conversion.
1931 (vectorizable_conversion): Likewise.
1932 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1933 integral type as input.
1934 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1935 FIX_TRUNC_EXPR.
1936 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1937 and ALTIVEC_BUILTIN_VCTSXS.
1938 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1939 formatting.
1940
1941 2008-08-08 Richard Guenther <rguenther@suse.de>
1942
1943 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1944 (surely_varying_stmt_p): Calls are varying only if they are
1945 non-builtin and not indirect or have no result.
1946 (ccp_fold): Re-instantiate code before the tuples merge.
1947
1948 2008-08-08 Richard Guenther <rguenther@suse.de>
1949
1950 PR tree-optimization/37056
1951 * gimple.h (gimple_assign_rhs_class): New helper function.
1952 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1953 unary operations properly.
1954
1955 2008-08-07 Jan Hubicka <jh@suse.cz>
1956
1957 * i386.h (ix86_size_cost): Declare.
1958 (ix86_cur_cost): New function macro.
1959 * i386.md (peepholes expanding size and splitters): Predicate by
1960 optimize_insn_for_speed_p.
1961 (peepholes reduce size and splitters): Predicate by
1962 optimize_insn_for_size_p.
1963 * i386.c (ix86_size_cost): Rename from ...
1964 (size_cost): This one.
1965 (override_options): Update.
1966 (decide_alg): Likewise.
1967 (ix86_expand_clear): Use RTL profile.
1968 (ix86_pad_returns): Use RTL profile.
1969
1970 2008-08-07 Jan Hubicka <jh@suse.cz>
1971
1972 * recog.c (split_all_insns): Set RTL profile
1973 (peephole2_optimize): Likewise.
1974 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1975 * combine.c (combine_instructions): Likewise.
1976
1977 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1978
1979 * c-common.c (c_common_reswords): Also warn about keyword "bool".
1980
1981 2008-08-07 Bob Wilson <bob.wilson@acm.org>
1982
1983 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1984 value in a6 after the set_frame_ptr insn.
1985
1986 2008-08-07 Richard Henderson <rth@redhat.com>
1987
1988 PR debug/37033
1989 * gcc.c (cpp_options): Pass along -g*.
1990
1991 2008-08-07 Joseph Myers <joseph@codesourcery.com>
1992
1993 * config/arm/arm.c (output_move_neon): Update comment describing
1994 big-endian vector layout.
1995 (arm_assemble_integer): Do not handle big-endian NEON vectors
1996 specially.
1997 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1998 neon_vget_lane<mode>_sext_internal,
1999 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
2000 element indices for big-endian.
2001
2002 2008-08-07 Richard Henderson <rth@redhat.com>
2003
2004 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
2005 * configure, config.in: Rebuild.
2006 * debug.h (dwarf2out_do_cfi_asm): Declare.
2007 * c-cppbuiltin.c (c_cpp_builtins): Use it.
2008 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
2009 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
2010 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
2011
2012 2008-08-07 Joseph Myers <joseph@codesourcery.com>
2013
2014 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
2015 movv2si_internal): Combine into mov<mode>_internal.
2016 (movv2si_internal_2): Remove.
2017
2018 2008-08-07 Jan Hubicka <jh@suse.cz>
2019
2020 PR target/37048
2021 * i386.md (single stringop patterns): Enable unconditionally.
2022
2023 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
2024
2025 PR target/36992
2026 * config/i386/emmintrin.h (_mm_move_epi64): Use
2027 __builtin_ia32_movq128.
2028
2029 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
2030 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
2031
2032 * config/i386/sse.md (sse2_movq128): New.
2033
2034 * doc/extend.texi: Document __builtin_ia32_movq128.
2035
2036 2008-08-07 Richard Guenther <rguenther@suse.de>
2037
2038 PR middle-end/37042
2039 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
2040 pointers can access anything.
2041
2042 2008-08-06 Jan Hubicka <jh@suse.cz>
2043
2044 * optabs.c (emit_unop_insn): Break out to ...
2045 (maybe_emit_unop_insn): ... this one.
2046 (expand_sfix_optab): Use maybe variant.
2047 * optabs.h (maybe_emit_unop_insn): Declare.
2048
2049 * i386.md (mov0 patterns): Enable by default.
2050 (FP conversion expanders): Disable expansion of code expanding
2051 sequences when instruction should be optimized for size.
2052 (single strinop patterns): Enable when optimizing for size.
2053 (string expanders): Disable expanding of code expanding sequences
2054 when optimizning instruction for size.
2055 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
2056 per BB basis.
2057 (ix86_fp_comparison_sahf_cost): Likewise.
2058 (ix86_expand_branch): Likewise.
2059 (ix86_expand_ashl_const): Likewise.
2060 (ix86_split_ashl): Likewise.
2061 (ix86_expand_strlen): Likewise.
2062 (ix86_emit_fp_unordered_jump): Likewie.
2063
2064 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2065
2066 * c-common.c: Fix typo.
2067 (c_common_reswords): Activate more C++ keyword warnings.
2068
2069 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
2070
2071 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2072
2073 PR 26785
2074 * diagnostic.c (permerror_at): New.
2075 * toplev.h (permerror_at): Declare.
2076
2077 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
2078 Ira Rosen <irar@il.ibm.com>
2079
2080 * tree-vect-transform.c (vect_model_simple_cost): Return
2081 immediately if stmt is pure SLP.
2082 (vect_model_store_cost): Ditto.
2083 (vect_model_load_cost): Ditto.
2084 (vectorizable_store): Remove PURE_SLP check before call
2085 to vect_model_store_cost.
2086 (vect_model_store_cost): When checking whether stmt describe
2087 strided access, add a check that it is not slp_node.
2088
2089 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2090
2091 PR 8715
2092 * c-common.c (warn_for_sign_compare): New. Handle separately the
2093 case that 'constant' is zero.
2094 * c-typeck.c (build_binary_op): Move code to c-common.c
2095
2096 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2097
2098 * config/alpha/alpha.c (alpha_preferred_reload_class,
2099 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
2100 alpha_output_mi_thunk_osf): Avoid C++ keywords.
2101 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
2102 * config/arm/arm.md: Likewise.
2103 * config/avr/avr-protos.h (preferred_reload_class,
2104 test_hard_reg_class, avr_simplify_comparison_p,
2105 out_shift_with_cnt, class_max_nregs): Likewise.
2106 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
2107 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
2108 preferred_reload_class, test_hard_reg_class): Likewise.
2109 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
2110 bfin_memory_move_cost, bfin_secondary_reload,
2111 bfin_output_mi_thunk): Likewise.
2112 * config/crx/crx.c (crx_secondary_reload_class,
2113 crx_memory_move_cost): Likewise.
2114 * config/frv/frv-protos.h (frv_secondary_reload_class,
2115 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
2116 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
2117 frv_secondary_reload_class, frv_class_likely_spilled_p,
2118 frv_class_max_nregs): Likewise.
2119 * config/h8300/h8300.c (h8300_classify_operand,
2120 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
2121 Likewise.
2122 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
2123 * config/ia64/ia64.c (ia64_preferred_reload_class,
2124 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
2125 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
2126 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
2127 Likewise.
2128 * config/m68hc11/m68hc11.c (preferred_reload_class,
2129 m68hc11_memory_move_cost): Likewise.
2130 * config/mcore/mcore.c (mcore_secondary_reload_class,
2131 mcore_reload_class): Likewise.
2132 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
2133 mips_class_max_nregs, mips_cannot_change_mode_class,
2134 mips_preferred_reload_class, mips_secondary_reload_class,
2135 mips_output_mi_thunk): Likewise.
2136 * config/mmix/mmix.c (mmix_preferred_reload_class,
2137 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
2138 Likewise.
2139 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2140 Likewise.
2141 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
2142 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
2143 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2144 * config/rs6000/rs6000.c (paired_expand_vector_init,
2145 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
2146 compare_section_name, rs6000_memory_move_cost): Likewise.
2147 * config/s390/s390.c (s390_emit_compare_and_swap,
2148 s390_preferred_reload_class, s390_secondary_reload,
2149 legitimize_pic_address, legitimize_tls_address,
2150 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
2151 s390_class_max_nregs): Likewise.
2152 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2153 * config/s390/s390.md: Likewise.
2154 * config/score/score-protos.h (score_secondary_reload_class,
2155 score_preferred_reload_class): Likewise.
2156 * config/score/score.c (score_preferred_reload_class,
2157 score_secondary_reload_class): Likewise.
2158 * config/score/score3.c (score3_output_mi_thunk,
2159 score3_preferred_reload_class, score3_secondary_reload_class,
2160 score3_hard_regno_mode_ok): Likewise.
2161 * config/score/score3.h (score3_preferred_reload_class,
2162 score3_secondary_reload_class): Likewise.
2163 * config/score/score7.c (score7_output_mi_thunk,
2164 score7_preferred_reload_class, score7_secondary_reload_class,
2165 score7_hard_regno_mode_ok): Likewise.
2166 * config/score/score7.h (score7_preferred_reload_class,
2167 score7_secondary_reload_class): Likewise.
2168 * config/sh/sh.c (prepare_move_operands, output_far_jump,
2169 output_branchy_insn, add_constant, gen_block_redirect,
2170 sh_insn_length_adjustment, sh_cannot_change_mode_class,
2171 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
2172 Likewise.
2173 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2174 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
2175 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
2176 xstormy16_preferred_reload_class): Likewise.
2177 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
2178 xtensa_expand_atomic, override_options,
2179 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
2180 Likewise.
2181 * reorg.c (try_merge_delay_insns): Likewise.
2182 * tree.c (merge_dllimport_decl_attributes): Likewise.
2183
2184 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
2185
2186 2008-08-06 Michael Matz <matz@suse.de>
2187
2188 * Makefile.in (write_entries_to_file): Quote words.
2189 * gengtype.c: (read_input_line): Skip over leading white-space.
2190
2191 2008-08-06 Marc Gauthier <marc@tensilica.com>
2192
2193 * config.gcc: Match more processor names for Xtensa.
2194 * configure.ac: Likewise.
2195 * doc/install.texi (Specific): Likewise.
2196 * configure: Regenerate.
2197
2198 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2199
2200 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
2201 * calls.c (avoid_likely_spilled_reg): Likewise.
2202 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2203 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
2204 * config/i386/i386.c (ix86_expand_special_args_builtin,
2205 ix86_secondary_reload): Likewise.
2206 * except.c (struct eh_region, gen_eh_region_catch,
2207 remove_unreachable_regions, duplicate_eh_regions,
2208 assign_filter_values, build_post_landing_pads,
2209 sjlj_find_directly_reachable_regions, remove_eh_handler,
2210 reachable_next_level, foreach_reachable_handler,
2211 can_throw_internal_1, can_throw_external_1,
2212 collect_one_action_chain): Likewise.
2213 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
2214 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
2215 * function.c (update_temp_slot_address, instantiate_new_reg,
2216 instantiate_virtual_regs_in_rtx,
2217 instantiate_virtual_regs_in_insn): Likewise.
2218 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
2219 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
2220 gimplify_cleanup_point_expr): Likewise.
2221 * ipa-cp.c (ipcp_lattice_changed): Likewise.
2222 * passes.c (next_pass_1): Likewise.
2223 * print-tree.c (print_node_brief, print_node): Likewise.
2224 * profile.c (branch_prob): Likewise.
2225 * tree-dump.c (dump_register): Likewise.
2226 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
2227 Likewise.
2228 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
2229 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
2230 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
2231 copy_arguments_for_versioning, copy_static_chain): Likewise.
2232 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
2233 add_new_name_mapping, register_new_name_mapping): Likewise.
2234 * tree-mudflap.c (mf_xform_derefs): Likewise.
2235 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
2236 get_init_expr, combine_chains): Likewise.
2237 * tree-pretty-print.c (dump_generic_node): Likewise.
2238 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
2239 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
2240 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
2241 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
2242
2243 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
2244
2245 PR middle-end/37010
2246 * calls.c (expand_call): Use the biggest preferred stack
2247 boundary.
2248
2249 2008-08-06 Michael Matz <matz@suse.de>
2250
2251 PR target/36613
2252 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
2253 for reused reload, instead of overwriting them.
2254
2255 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
2256
2257 PR middle-end/37009
2258 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
2259 for incoming stack boundary.
2260
2261 * function.c (assign_parm_find_entry_rtl): Update
2262 parm_stack_boundary.
2263
2264 * function.h (rtl_data): Add parm_stack_boundary.
2265
2266 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
2267 parm_stack_boundary for incoming stack boundary.
2268
2269 2008-08-06 Joseph Myers <joseph@codesourcery.com>
2270
2271 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
2272 for unrepresentable subregs or treat them as equal to other regs
2273 or subregs with the same register number.
2274
2275 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
2276
2277 PR middle-end/35432
2278 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
2279 if want_value.
2280
2281 2008-08-06 Jan Hubicka <jh@suse.cz>
2282
2283 * predict.c (maybe_hot_frequency_p): When profile is absent, all
2284 frequencies might be hot.
2285
2286 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
2287
2288 * reload.c (find_reloads): Force constants into literal pool
2289 also if they are wrapped in a SUBREG.
2290
2291 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2292
2293 PR target/35659
2294 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
2295 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
2296 Don't allow predicated instructions for data speculation.
2297 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
2298 declaration.
2299
2300 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2301
2302 * haifa-sched.c (extend_global): Split to extend_global_data and
2303 extend_region_data. Update all uses.
2304 (extend_all): Rename to extend_block_data.
2305
2306 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2307
2308 * sched-rgn.c (new_ready): Check if instruction can be
2309 speculatively scheduled before attempting speculation.
2310 (debug_rgn_dependencies): Remove wrongful assert.
2311
2312 2008-08-05 Bob Wilson <bob.wilson@acm.org>
2313
2314 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
2315
2316 2008-08-05 Bob Wilson <bob.wilson@acm.org>
2317
2318 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
2319 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
2320 va_size, and type_size.
2321
2322 2008-08-04 Jason Merrill <jason@redhat.com>
2323
2324 PR c++/37016
2325 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
2326 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
2327
2328 2008-08-05 Richard Henderson <rth@redhat.com>
2329
2330 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
2331 * configure: Rebuild.
2332
2333 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2334
2335 PR tree-opt/37024
2336 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
2337 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
2338 is a conversion.
2339
2340 2008-08-05 Richard Henderson <rth@redhat.com>
2341
2342 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
2343 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
2344 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
2345 * common.opt (fdwarf2-cfi-asm): New.
2346 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
2347 * config.in, configure: Rebuild.
2348 * dwarf2asm.c (dw2_asm_output_data_raw): New.
2349 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
2350 (dw2_force_const_mem): Externalize.
2351 * dwarf2asm.h: Update.
2352 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
2353 generate a real label.
2354 (output_cfi_directive): New.
2355 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
2356 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
2357 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
2358 and .cfi_lsda.
2359 (dwarf2out_end_epilogue): Emit .cfi_endproc.
2360 (output_loc_operands_raw, output_loc_sequence_raw): New.
2361 (output_cfa_loc_raw): New.
2362
2363 2008-08-05 Paul Brook <paul@codesourcery.com>
2364
2365 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
2366 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
2367 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
2368 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
2369 * config/arm/arm.h (TARGET_VFPD32): Define.
2370 (TARGET_VFP3): Use TARGET_VFPD32.
2371 (fputype): Add FPUTYPE_VFP3D16.
2372 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
2373 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
2374 * config/arm/arm-cores.def: Add cortex-r4f.
2375 * config/arm/arm-tune.md: Regenerate.
2376
2377 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2378
2379 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
2380 Reword some comments throughout the file.
2381
2382 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
2383 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
2384 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
2385 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
2386
2387 (MFC_START_ENABLE): Remove PPU-only define.
2388 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
2389 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
2390
2391 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
2392 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
2393 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
2394 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
2395 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
2396 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
2397 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
2398
2399 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
2400 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
2401 (mfc_sdcrt, mfc_sdcrtst): Likewise.
2402 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
2403
2404 (spu_read_machine_status): Fix typo.
2405
2406 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2407
2408 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
2409 SUBREG of multi-word hard register.
2410 * config/spu/spu.c (valid_subreg): Likewise.
2411 (adjust_operand): Handle SUBREGs of multi-word hard registers.
2412
2413 2008-08-04 Richard Guenther <rguenther@suse.de>
2414
2415 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
2416 the candidate with the stripped base if that base is different
2417 from the original base even for offset zero.
2418
2419 2008-08-04 Richard Guenther <rguenther@suse.de>
2420
2421 PR middle-end/36691
2422 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
2423 check for no_overflow.
2424
2425 2008-08-04 Richard Guenther <rguenther@suse.de>
2426
2427 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
2428
2429 2008-08-04 Paul Brook <paul@codesourcery.com>
2430
2431 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
2432 (arm_order_regs_for_local_alloc): New function.
2433 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
2434 prototype.
2435 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
2436
2437 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
2438
2439 PR target/37012
2440 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
2441 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
2442 (ix86_expand_epilogue): Likewise.
2443
2444 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
2445
2446 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
2447 in comments.
2448
2449 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
2450
2451 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
2452 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
2453 (*movv2sf_internal_rex64): Ditto.
2454
2455 2008-08-03 Jan Hubicka <jh@suse.cz>
2456
2457 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
2458 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
2459 * expmed.c (expand_smod_pow2): Likewise.
2460
2461 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
2462
2463 PR target/36992
2464 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
2465 alternative 0 of operand 1.
2466 (*vec_concatv2di_rex64_sse): Ditto.
2467 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
2468 of operand 1.
2469 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
2470 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
2471 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
2472 (*movv2sf_internal_rex64): Ditto.
2473
2474 2008-08-02 Richard Guenther <rguenther@suse.de>
2475
2476 PR target/35252
2477 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
2478 (ssedoublesizemode): New mode attribute.
2479 (sse_shufps): Call gen_sse_shufps_v4sf.
2480 (sse_shufps_1): Macroize.
2481 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
2482 (sse2_shufpd_1): Macroize.
2483 (vec_extract_odd, vec_extract_even): New expanders.
2484 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
2485 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
2486 * i386.c (ix86_expand_vector_init_one_nonzero): Call
2487 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
2488 (ix86_expand_vector_set): Likewise.
2489 (ix86_expand_reduc_v4sf): Likewise.
2490
2491 2008-08-01 Doug Kwan <dougkwan@google.com>
2492
2493 * matrix-reorg.c: Re-enable all code.
2494 (struct malloc_call_data): Change CALL_STMT to gimple type.
2495 (collect_data_for_malloc_call): Tuplify.
2496 (struct access_site_info): Change STMT to gimple type.
2497 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
2498 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
2499 (struct free_info): Change STMT to gimple type.
2500 (struct matrix_access_phi_node): Change PHI to gimple type.
2501 (get_inner_of_cast_expr): Remove.
2502 (may_flatten_matrices_1): Tuplify.
2503 (may_flatten_matrices): Ditto.
2504 (mark_min_matrix_escape_level): Ditto.
2505 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
2506 (ssa_accessed_in_call_rhs): New
2507 (ssa_accessed_in_assign_rhs): New
2508 (record_access_alloc_site_info): Tuplify.
2509 (add_allocation_site): Ditto.
2510 (analyze_matrix_allocation_site): Ditto.
2511 (analyze_transpose): Ditto.
2512 (get_index_from_offset): Ditto.
2513 (update_type_size): Ditto.
2514 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
2515 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
2516 (analyze_accesses_for_phi_node): Tuplify.
2517 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
2518 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
2519 (analyze_matrix_accesses): Tuplify.
2520 (check_var_data): New call-back type for check_var_notmodified_p.
2521 (check_var_notmodified_p): Tuplify and use call-back struct to
2522 return statement found.
2523 (can_calculate_expr_before_stmt): Factor out statement related code
2524 into ...
2525 (can_calculate_stmt_before_stmt): New.
2526 (check_allocation_function): Tuplify.
2527 (find_sites_in_func): Ditto.
2528 (record_all_accesses_in_func): Ditto.
2529 (transform_access_sites): Ditto.
2530 (transform_allocation_sites): Ditto.
2531 (matrix_reorg): Re-enable.
2532 (gate_matrix_reorg): Re-enable.
2533
2534 2008-08-01 Jakub Jelinek <jakub@redhat.com>
2535
2536 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
2537 for labels for which it hasn't been set yet. If it has been set,
2538 stop walking insns and continue with next worklist item.
2539 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
2540 if the only BARRIER is at the very end of a function.
2541
2542 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
2543
2544 * cfgexpand.c (expand_stack_alignment): Assert that
2545 stack_realign_drap and drap_rtx must match.
2546
2547 * function.c (instantiate_new_reg): If DRAP is used to realign
2548 stack, replace virtual_incoming_args_rtx with internal arg
2549 pointer.
2550
2551 2008-08-01 Richard Guenther <rguenther@suse.de>
2552
2553 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
2554 loop information only if we initialized it.
2555 (execute_pre): Call fini_pre with in_fre.
2556 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
2557 if we do not unroll because we hit max-completely-peeled-insns.
2558 Use our estimation for consistency, do allow shrinking.
2559
2560 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
2561
2562 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
2563 with MIN_STACK_BOUNDARY.
2564 (ix86_update_stack_boundary): Likewise.
2565 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
2566 STACK_BOUNDARY.
2567
2568 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
2569 (MIN_STACK_BOUNDARY): This.
2570
2571 2008-08-01 Richard Guenther <rguenther@suse.de>
2572
2573 PR middle-end/36997
2574 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
2575
2576 2008-08-01 Richard Guenther <rguenther@suse.de>
2577
2578 PR tree-optimization/36988
2579 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
2580 do not matter if that doesn't change volatile qualification.
2581
2582 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
2583
2584 * configure.ac: Do not generate libada-mk. Do not subst
2585 host_cc_for_libada.
2586 * libada-mk.in: Remove.
2587 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
2588 * configure: Regenerate.
2589
2590 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
2591
2592 * tree-pass.h: Added comment about not dumping passes with name
2593 starting with star in struct opt_pass.
2594 * passes.c (register_dump_files_1): Don't do dump for a pass with
2595 name starting with star.
2596 * doc/passes.texi (Pass manager): Mention pass names and special
2597 meaning of star prefix to avoid dump.
2598
2599 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
2600
2601 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
2602 to MIPS64r2.
2603 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
2604 (ISA_MIPS64R2): New macro.
2605 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
2606 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
2607 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
2608 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
2609 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
2610 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
2611 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
2612 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
2613 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
2614 Move up to keep list alphabetically sorted.
2615 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
2616 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
2617 processor.
2618 * doc/invoke.texi (MIPS Options): Add -mips64r2.
2619 (-march=@var{arch}): Add mips64r2.
2620
2621 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
2622
2623 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2624
2625 2008-07-31 Steve Ellcey <sje@cup.hp.com>
2626
2627 * expr.c (expand_assignment): Check for complete type.
2628
2629 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
2630
2631 PR debug/36977
2632 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
2633
2634 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
2635 for stack alignment.
2636
2637 * function.h (rtl_data): Add stack_realign_tried. Update comments.
2638
2639 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2640
2641 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
2642 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
2643
2644 2008-07-31 Jakub Jelinek <jakub@redhat.com>
2645
2646 PR rtl-optimization/36419
2647 * dwarf2out.c (barrier_args_size): New variable.
2648 (compute_barrier_args_size, compute_barrier_args_size_1): New
2649 functions.
2650 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
2651 if not called yet in the current function, use barrier_args_size
2652 array to find the new args_size value.
2653 (dwarf2out_frame_debug): Free and clear barrier_args_size.
2654
2655 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
2656
2657 PR debug/36980
2658 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
2659 rule 19.
2660
2661 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
2662
2663 PR debug/36976
2664 * dwarf2out.c (dwarf2out_args_size_adjust): New.
2665 (dwarf2out_stack_adjust): Use it.
2666 (dwarf2out_frame_debug_expr): Likewise.
2667
2668 2008-07-31 Richard Guenther <rguenther@suse.de>
2669
2670 PR tree-optimization/36978
2671 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
2672 the generated condition.
2673
2674 2008-07-31 Richard Guenther <rguenther@suse.de>
2675
2676 * passes.c (init_optimization_passes): Always call
2677 pass_early_warn_uninitialized.
2678 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
2679 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
2680 * doc/passes.texi (Warn for uninitialized variables): Adjust.
2681
2682 2008-07-31 Jakub Jelinek <jakub@redhat.com>
2683
2684 PR c/36970
2685 * builtins.c (maybe_emit_free_warning): New function.
2686 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
2687 maybe_emit_free_warning for BUILT_IN_FREE.
2688
2689 PR debug/36278
2690 * dwarf2out.c (get_context_die): New function.
2691 (force_decl_die, force_type_die): Use it.
2692 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
2693 returns NULL, force generation of DW_TAG_typedef and put that into
2694 DW_AT_import.
2695
2696 PR preprocessor/36649
2697 * c-pch.c (c_common_read_pch): Save and restore
2698 line_table->trace_includes across PCH restore.
2699
2700 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2701
2702 PR ada/36554
2703 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
2704
2705 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
2706
2707 PR 36974
2708 * final.c (call_from_call_insn): Handle COND_EXEC.
2709
2710 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
2711
2712 * builtins.c (std_gimplify_va_arg_expr): Replace
2713 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
2714 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2715
2716 2008-07-30 Joey Ye <joey.ye@intel.com>
2717 H.J. Lu <hongjiu.lu@intel.com>
2718
2719 * builtins.c (expand_builtin_setjmp_receiver): Replace
2720 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
2721 (expand_builtin_apply_args_1): Likewise.
2722 (expand_builtin_longjmp): Need DRAP for stack alignment.
2723 (expand_builtin_apply): Likewise.
2724
2725 * caller-save.c (setup_save_areas): Call assign_stack_local_1
2726 instead of assign_stack_local to allow alignment reduction.
2727
2728 * calls.c (emit_call_1): Need DRAP for stack alignment if
2729 return pops.
2730 (expand_call): Replace virtual_incoming_args_rtx with
2731 crtl->args.internal_arg_pointer.
2732 * stmt.c (expand_nl_goto_receiver): Likewise.
2733
2734 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
2735 alignment and store to stack_alignment_estimated and
2736 max_used_stack_slot_alignment.
2737 (expand_one_var): Likewise.
2738 (expand_stack_alignment): New function.
2739 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
2740 and stack_alignment_estimated fields in rtl_data. Call
2741 expand_stack_alignment at end.
2742
2743 * defaults.h (INCOMING_STACK_BOUNDARY): New.
2744 (MAX_STACK_ALIGNMENT): Likewise.
2745 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
2746 (SUPPORTS_STACK_ALIGNMENT): Likewise.
2747
2748 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
2749 stack alignment when generating virtual registers.
2750
2751 * function.c (assign_stack_local): Renamed to ...
2752 (assign_stack_local_1): This. Add a parameter to indicate
2753 if it is OK to reduce alignment.
2754 (assign_stack_local): Use it.
2755 (instantiate_new_reg): Instantiate virtual incoming args rtx
2756 to vDRAP if stack realignment and DRAP is needed.
2757 (assign_parms): Collect parameter/return type alignment and
2758 contribute to stack_alignment_estimated.
2759 (locate_and_pad_parm): Likewise.
2760 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
2761 with crtl->args.internal_arg_pointer.
2762
2763 * function.h (rtl_data): Add new field drap_reg,
2764 max_used_stack_slot_alignment, stack_alignment_estimated,
2765 stack_realign_needed, need_drap, stack_realign_processed and
2766 stack_realign_finalized.
2767 (stack_realign_fp): New macro.
2768 (stack_realign_drap): Likewise.
2769
2770 * global.c (compute_regsets): Frame pointer is needed when
2771 stack is realigned. Can eliminate frame pointer when stack is
2772 realigned and dynamic realigned argument pointer isn't used.
2773
2774 * reload1.c (update_eliminables): Frame pointer is needed
2775 when stack is realigned.
2776 (init_elim_table): Can eliminate frame pointer when stack is
2777 realigned and dynamic realigned argument pointer isn't used.
2778
2779 * rtl.h (assign_stack_local_1): Declare new funtion.
2780
2781 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
2782 (TARGET_GET_DRAP_RTX): Likewise.
2783 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
2784 TARGET_GET_DRAP_RTX.
2785
2786 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
2787
2788 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2789 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
2790
2791 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
2792 H.J. Lu <hongjiu.lu@intel.com>
2793
2794 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
2795 vdrap_reg, stack_realign and drap_reg_saved.
2796 (add_cfi): Don't allow redefining CFA when DRAP is used.
2797 (reg_save): Handle stack alignment.
2798 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
2799 alignment. Don't generate DWARF information for (set fp sp)
2800 when DRAP is used.
2801 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
2802 to INVALID_REGNUM.
2803 (int_loc_descriptor): Move prototype forward. Also define if
2804 DWARF2_UNWIND_INFO is true.
2805 (output_cfa_loc): Handle DW_CFA_expression.
2806 (build_cfa_aligned_loc): New.
2807 (based_loc_descr): Update assert for stack realign. For local
2808 variables, use sp+offset when stack is aligned without drap and
2809 fp+offset when stack is aligned with drap. For arguments, use
2810 cfa+offset when drap is used to align stack.
2811
2812 2008-07-30 Joey Ye <joey.ye@intel.com>
2813 H.J. Lu <hongjiu.lu@intel.com>
2814
2815 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2816 Break long line.
2817 (ix86_gen_andsp): New.
2818 (ix86_user_incoming_stack_boundary): Likewise.
2819 (ix86_default_incoming_stack_boundary): Likewise.
2820 (ix86_incoming_stack_boundary): Likewise.
2821 (ix86_can_eliminate): Likewise.
2822 (find_drap_reg): Likewise.
2823 (ix86_update_stack_boundary): Likewise.
2824 (ix86_get_drap_rtx): Likewise.
2825 (ix86_finalize_stack_realign_flags): Likewise.
2826 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2827 (TARGET_GET_DRAP_RTX): Likewise.
2828 (override_options): Overide option value for new options.
2829 (ix86_function_ok_for_sibcall): Remove check for
2830 force_align_arg_pointer.
2831 (ix86_handle_cconv_attribute): Likewise.
2832 (ix86_function_regparm): Likewise.
2833 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2834 (ix86_va_start): Replace virtual_incoming_args_rtx with
2835 crtl->args.internal_arg_pointer.
2836 (ix86_select_alt_pic_regnum): Check DRAP register.
2837 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2838 (ix86_compute_frame_layout): Compute frame layout wrt stack
2839 realignment.
2840 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2841 (ix86_expand_prologue): Decide if stack realignment is needed
2842 and generate prologue code accordingly.
2843 (ix86_expand_epilogue): Generate epilogue code wrt stack
2844 realignment is really needed or not.
2845
2846 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2847 (ABI_STACK_BOUNDARY): Likewise.
2848 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2849 (STACK_REALIGN_DEFAULT): Likewise.
2850 (INCOMING_STACK_BOUNDARY): Likewise.
2851 (MAX_STACK_ALIGNMENT): Likewise.
2852 (ix86_incoming_stack_boundary): Likewise.
2853 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2854 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2855 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2856 (machine_function): Remove force_align_arg_pointer.
2857
2858 * config/i386/i386.md (BX_REG): New.
2859 (R13_REG): Likewise.
2860
2861 * config/i386/i386.opt (mforce_drap): New.
2862 (mincoming-stack-boundary): Likewise.
2863 (mstackrealign): Add Init(-1).
2864
2865 * config/i386/i386-protos.h (ix86_can_eliminate): New
2866
2867 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
2868
2869 * doc/extend.texi: Update force_align_arg_pointer.
2870
2871 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
2872 -mstackrealign.
2873
2874 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2875 (INCOMING_STACK_BOUNDARY): Likewise.
2876 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2877 (TARGET_GET_DRAP_RTX): Likewise.
2878
2879 2008-07-30 Andreas Schwab <schwab@suse.de>
2880
2881 PR rtl-optimization/36929
2882 * dse.c (replace_inc_dec): Use emit_insn_before instead of
2883 add_insn_before and fix argument order.
2884 (replace_inc_dec_mem): Handle NULL rtx.
2885
2886 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
2887
2888 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2889 function.
2890 (arm_compute_initial_elimination_offset): Use it.
2891 (arm_compute_save_reg_mask): Include static chain save slot when
2892 calculating alignment.
2893 (arm_get_frame_offsets): Ditto.
2894 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2895 that we can use to decrement the stack when the stack decrement
2896 could be too big for an immediate value in a single insn.
2897 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2898
2899 2008-07-30 Richard Guenther <rguenther@suse.de>
2900
2901 PR tree-optimization/36967
2902 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2903 Release defs of statements we remove.
2904
2905 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
2906
2907 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2908 instead of NULL_RTVEC.
2909
2910 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
2911
2912 PR target/35866
2913
2914 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2915 vector modes.
2916
2917 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
2918
2919 * final.c (call_from_call_insn): New.
2920 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2921
2922 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2923
2924 * configure.ac: Substitute ADA_CFLAGS.
2925 * configure: Regenerate.
2926 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2927 * Makefile.in: Remove mention of X_* variables.
2928 * config/pa/x-ada-hpux10: Remove.
2929 * config/pa/x-ada: Remove.
2930
2931 * doc/fragments.texi: Update.
2932
2933 2008-07-30 Olivier Hainque <hainque@adacore.com>
2934
2935 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2936 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2937 __dso_handle explicitly here.
2938
2939 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2940
2941 PR 34389
2942 * c-typeck.c (build_binary_op): Encapsulate code into...
2943 * c-common.c (shorten_binary_op): ...this new function.
2944 (conversion_warning): Use the new function. Handle non-negative
2945 constant in bitwise-and.
2946 * c-common.h (shorten_binary_op): Declare.
2947
2948 2008-07-30 Olivier Hainque <hainque@adacore.com>
2949
2950 * scan.c (make_sstring_space): Add explicit conversions of
2951 allocator's return value.
2952 * fix-header.c (recognized_function): Likewise.
2953
2954 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2955
2956 * doc/cpp.texi: Update to GFDL 1.2.
2957 * doc/gcc.texi: Do not list GPL as Invariant Section.
2958 * doc/gccint.texi: Likewise. Update copyright years.
2959 * doc/install.texi: Update copyright years.
2960
2961 2008-07-30 Alan Modra <amodra@bigpond.net.au>
2962
2963 PR target/36955
2964 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2965 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2966
2967 2008-07-29 Jan Hubicka <jh@suse.cz>
2968
2969 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2970 (grokdeclarator): Likewise.
2971 * langhooks.c (lhd_warn_unused_global_decl): Use
2972 DECL_DECLARED_INLINE_P.
2973 * print-tree.c (print_node): Remove DECL_INLINE check.
2974
2975 2008-07-29 Richard Guenther <rguenther@suse.de>
2976
2977 PR tree-optimization/36945
2978 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2979 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2980 Record invariant addresses un-decomposed.
2981 (copy_reference_ops_from_call): Record reference call
2982 arguments properly. Simplify.
2983 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2984 helper split out from ...
2985 (create_component_ref_by_pieces): ... here. Simplify.
2986 Prepare for recursive invocation for call arguments.
2987 (create_expression_by_pieces): Adjust call to
2988 create_component_ref_by_pieces.
2989 (compute_avail): Process operand 2 of reference ops.
2990
2991 2008-07-29 Richard Guenther <rguenther@suse.de>
2992
2993 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2994
2995 2008-07-29 Jakub Jelinek <jakub@redhat.com>
2996
2997 * c-format.c (check_format_types): Revert unwanted checkin.
2998
2999 2008-07-29 Jan Hubicka <jh@suse.cz>
3000
3001 * flags.h (flag_really_no_inline): Remove.
3002 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
3003 * toplev.c (flag_really_no_inline): Remove.
3004 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
3005 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
3006 (cgraph_decide_inlining_incrementally): Likewise.
3007 (compute_inline_parameters): Likewise.
3008 * opts.c (decode_options): Simplify.
3009 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
3010 * common.opt (finline): Initialize to 1.
3011 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
3012
3013 2008-07-29 Jan Hubicka <jh@suse.cz>
3014
3015 * predict.c (always_optimize_for_size_p): New function.
3016 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
3017 optimize_edge_for_size_p, optimize_edge_for_speed_p,
3018 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
3019 functions.
3020 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
3021 * function.c (prepare_function_start): Set default profile.
3022 * function.h (rtl_data): Add maybe_hot_insn_p.
3023 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
3024 (construct_exit_block): Likewise.
3025 (tree_expand_cfg): Likewise.
3026 * basic-block.h
3027 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
3028 optimize_edge_for_size_p, optimize_edge_for_speed_p,
3029 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3030 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
3031 Declare.
3032
3033 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3034
3035 PR 34985
3036 * c-decl.c (merge_decls): Merge USED flags.
3037
3038 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
3039
3040 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
3041 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
3042 next_stack, lab_false and lab_over trees.
3043
3044 2008-07-28 Richard Guenther <rguenther@suse.de>
3045
3046 PR tree-optimization/36957
3047 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
3048 (useless_type_conversion_p): Remove.
3049 (types_compatible_p): Remove.
3050 * gimple.h (tree_ssa_useless_type_conversion): Declare.
3051 (useless_type_conversion_p): Declare.
3052 (types_compatible_p): Declare.
3053 (gimple_expr_type): Return the base type only if it is
3054 trivially convertible to the subtype.
3055
3056 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
3057
3058 * configure.ac: Use the m4_do macro to concatenate the warnings into
3059 one string in ACX_PROG_CC_WARNING_OPTS,
3060 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
3061 * configure: Regenerate.
3062
3063 2008-07-28 Richard Guenther <rguenther@suse.de>
3064
3065 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
3066 (insert_fake_stores): Remove.
3067 (realify_fake_stores): Likewise.
3068 (execute_pre): Remove dead code.
3069 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
3070 (find_func_aliases): Deal with it here instead.
3071 Re-enable gcc_unreachable call.
3072
3073 2008-07-28 Richard Guenther <rguenther@suse.de>
3074
3075 Merge from gimple-tuples-branch.
3076
3077 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
3078 * gimple.def: New file.
3079 * gsstruct.def: Likewise.
3080 * gimple-iterator.c: Likewise.
3081 * gimple-pretty-print.c: Likewise.
3082 * tree-gimple.c: Removed. Merged into ...
3083 * gimple.c: ... here. New file.
3084 * tree-gimple.h: Removed. Merged into ...
3085 * gimple.h: ... here. New file.
3086
3087 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
3088 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
3089 --enable-checking=gimple flag.
3090 * config.in: Likewise.
3091 * configure: Regenerated.
3092
3093 * tree-ssa-operands.h: Tuplified.
3094 * tree-vrp.c: Likewise.
3095 * tree-loop-linear.c: Likewise.
3096 * tree-into-ssa.c: Likewise.
3097 * tree-ssa-loop-im.c: Likewise.
3098 * tree-dump.c: Likewise.
3099 * tree-complex.c: Likewise.
3100 * cgraphbuild.c: Likewise.
3101 * tree-ssa-threadupdate.c: Likewise.
3102 * tree-ssa-loop-niter.c: Likewise.
3103 * tree-pretty-print.c: Likewise.
3104 * tracer.c: Likewise.
3105 * gengtype.c: Likewise.
3106 * tree-loop-distribution.c: Likewise.
3107 * tree-ssa-loop-unswitch.c: Likewise.
3108 * cgraph.c: Likewise.
3109 * cgraph.h: Likewise.
3110 * tree-ssa-loop-manip.c: Likewise.
3111 * value-prof.c: Likewise.
3112 * tree-ssa-loop-ch.c: Likewise.
3113 * tree-tailcall.c: Likewise.
3114 * value-prof.h: Likewise.
3115 * tree.c: Likewise.
3116 * tree.h: Likewise.
3117 * tree-pass.h: Likewise.
3118 * ipa-cp.c: Likewise.
3119 * tree-scalar-evolution.c: Likewise.
3120 * tree-scalar-evolution.h: Likewise.
3121 * target.h: Likewise.
3122 * lambda-mat.c: Likewise.
3123 * tree-phinodes.c: Likewise.
3124 * diagnostic.h: Likewise.
3125 * builtins.c: Likewise.
3126 * tree-ssa-alias-warnings.c: Likewise.
3127 * cfghooks.c: Likewise.
3128 * fold-const.c: Likewise.
3129 * cfghooks.h: Likewise.
3130 * omp-low.c: Likewise.
3131 * tree-ssa-dse.c: Likewise.
3132 * ipa-reference.c: Likewise.
3133 * tree-ssa-uncprop.c: Likewise.
3134 * toplev.c: Likewise.
3135 * tree-gimple.c: Likewise.
3136 * tree-gimple.h: Likewise.
3137 * tree-chrec.c: Likewise.
3138 * tree-chrec.h: Likewise.
3139 * tree-ssa-sccvn.c: Likewise.
3140 * tree-ssa-sccvn.h: Likewise.
3141 * cgraphunit.c: Likewise.
3142 * tree-ssa-copyrename.c: Likewise.
3143 * tree-ssa-ccp.c: Likewise.
3144 * tree-ssa-loop-ivopts.c: Likewise.
3145 * tree-nomudflap.c: Likewise.
3146 * tree-call-cdce.c: Likewise.
3147 * ipa-pure-const.c: Likewise.
3148 * c-format.c: Likewise.
3149 * tree-stdarg.c: Likewise.
3150 * tree-ssa-math-opts.c: Likewise.
3151 * tree-ssa-dom.c: Likewise.
3152 * tree-nrv.c: Likewise.
3153 * tree-ssa-propagate.c: Likewise.
3154 * ipa-utils.c: Likewise.
3155 * tree-ssa-propagate.h: Likewise.
3156 * tree-ssa-alias.c: Likewise.
3157 * gimple-low.c: Likewise.
3158 * tree-ssa-sink.c: Likewise.
3159 * ipa-inline.c: Likewise.
3160 * c-semantics.c: Likewise.
3161 * dwarf2out.c: Likewise.
3162 * expr.c: Likewise.
3163 * tree-ssa-loop-ivcanon.c: Likewise.
3164 * predict.c: Likewise.
3165 * tree-ssa-loop.c: Likewise.
3166 * tree-parloops.c: Likewise.
3167 * tree-ssa-address.c: Likewise.
3168 * tree-ssa-ifcombine.c: Likewise.
3169 * matrix-reorg.c: Likewise.
3170 * c-decl.c: Likewise.
3171 * tree-eh.c: Likewise.
3172 * c-pretty-print.c: Likewise.
3173 * lambda-trans.c: Likewise.
3174 * function.c: Likewise.
3175 * langhooks.c: Likewise.
3176 * ebitmap.h: Likewise.
3177 * tree-vectorizer.c: Likewise.
3178 * function.h: Likewise.
3179 * langhooks.h: Likewise.
3180 * tree-vectorizer.h: Likewise.
3181 * ipa-type-escape.c: Likewise.
3182 * ipa-type-escape.h: Likewise.
3183 * domwalk.c: Likewise.
3184 * tree-if-conv.c: Likewise.
3185 * profile.c: Likewise.
3186 * domwalk.h: Likewise.
3187 * tree-data-ref.c: Likewise.
3188 * tree-data-ref.h: Likewise.
3189 * tree-flow-inline.h: Likewise.
3190 * tree-affine.c: Likewise.
3191 * tree-vect-analyze.c: Likewise.
3192 * c-typeck.c: Likewise.
3193 * gimplify.c: Likewise.
3194 * coretypes.h: Likewise.
3195 * tree-ssa-phiopt.c: Likewise.
3196 * calls.c: Likewise.
3197 * tree-ssa-coalesce.c: Likewise.
3198 * tree.def: Likewise.
3199 * tree-dfa.c: Likewise.
3200 * except.c: Likewise.
3201 * except.h: Likewise.
3202 * cfgexpand.c: Likewise.
3203 * tree-cfgcleanup.c: Likewise.
3204 * tree-ssa-pre.c: Likewise.
3205 * tree-ssa-live.c: Likewise.
3206 * tree-sra.c: Likewise.
3207 * tree-ssa-live.h: Likewise.
3208 * tree-predcom.c: Likewise.
3209 * lambda.h: Likewise.
3210 * tree-mudflap.c: Likewise.
3211 * ipa-prop.c: Likewise.
3212 * print-tree.c: Likewise.
3213 * tree-ssa-copy.c: Likewise.
3214 * ipa-prop.h: Likewise.
3215 * tree-ssa-forwprop.c: Likewise.
3216 * ggc-page.c: Likewise.
3217 * c-omp.c: Likewise.
3218 * tree-ssa-dce.c: Likewise.
3219 * tree-vect-patterns.c: Likewise.
3220 * tree-ssa-ter.c: Likewise.
3221 * tree-nested.c: Likewise.
3222 * tree-ssa.c: Likewise.
3223 * lambda-code.c: Likewise.
3224 * tree-ssa-loop-prefetch.c: Likewise.
3225 * tree-inline.c: Likewise.
3226 * tree-inline.h: Likewise.
3227 * tree-iterator.c: Likewise.
3228 * tree-optimize.c: Likewise.
3229 * tree-ssa-phiprop.c: Likewise.
3230 * tree-vect-transform.c: Likewise.
3231 * tree-object-size.c: Likewise.
3232 * tree-outof-ssa.c: Likewise.
3233 * cfgloop.c: Likewise.
3234 * system.h: Likewise.
3235 * tree-profile.c: Likewise.
3236 * cfgloop.h: Likewise.
3237 * c-gimplify.c: Likewise.
3238 * c-common.c: Likewise.
3239 * tree-vect-generic.c: Likewise.
3240 * tree-flow.h: Likewise.
3241 * c-common.h: Likewise.
3242 * basic-block.h: Likewise.
3243 * tree-ssa-structalias.c: Likewise.
3244 * tree-switch-conversion.c: Likewise.
3245 * tree-ssa-structalias.h: Likewise.
3246 * tree-cfg.c: Likewise.
3247 * passes.c: Likewise.
3248 * ipa-struct-reorg.c: Likewise.
3249 * ipa-struct-reorg.h: Likewise.
3250 * tree-ssa-reassoc.c: Likewise.
3251 * cfgrtl.c: Likewise.
3252 * varpool.c: Likewise.
3253 * stmt.c: Likewise.
3254 * tree-ssanames.c: Likewise.
3255 * tree-ssa-threadedge.c: Likewise.
3256 * langhooks-def.h: Likewise.
3257 * tree-ssa-operands.c: Likewise.
3258 * config/alpha/alpha.c: Likewise.
3259 * config/frv/frv.c: Likewise.
3260 * config/s390/s390.c: Likewise.
3261 * config/m32c/m32c.c: Likewise.
3262 * config/m32c/m32c-protos.h: Likewise.
3263 * config/spu/spu.c: Likewise.
3264 * config/sparc/sparc.c: Likewise.
3265 * config/i386/i386.c: Likewise.
3266 * config/sh/sh.c: Likewise.
3267 * config/xtensa/xtensa.c: Likewise.
3268 * config/stormy16/stormy16.c: Likewise.
3269 * config/ia64/ia64.c: Likewise.
3270 * config/rs6000/rs6000.c: Likewise.
3271 * config/pa/pa.c: Likewise.
3272 * config/mips/mips.c: Likewise.
3273
3274 2008-07-28 Simon Baldwin <simonb@google.com>
3275
3276 * c-pragma.c (handle_pragma_message): New function.
3277 (init_pragma): Register handle_pragma_message.
3278 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
3279 documentation.
3280
3281 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
3282
3283 PR tree-optimization/35252
3284 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
3285 REALPART_EXPR to be considered as same load operation.
3286
3287 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
3288
3289 PR tree-optimization/36830
3290 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
3291 (expressions_equal_p): Return false if only one operand is null.
3292
3293 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
3294
3295 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
3296 version requirements.
3297
3298 2008-07-26 Olivier Hainque <hainque@adacore.com>
3299
3300 * collect2.c (symkind): New enum. Symbol kinds we care about.
3301 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
3302 code and head comment accordingly.
3303 (scan_prog_file): Use symkind names instead of bare integers.
3304
3305 2008-07-25 Jan Hubicka <jh@suse.cz>
3306
3307 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
3308 DECL_INLINE.
3309 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
3310 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
3311 * dojump.c (clear_pending_stack_adjust): Likewise.
3312 * print-tree.c (print_node): Ignore DECL_INLINE.
3313 * tree-inline.c (inlinable_function_p): Likewise.
3314
3315 2008-07-25 Michael Meissner <gnu@the-meissners.org>
3316
3317 * doc/extend.texi (hot attribute): Document that the hot attribute
3318 turns on -O3 for some ports.
3319 (cold attribute): Document that the cold attribute turns on -Os
3320 for some ports
3321
3322 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
3323 reflect function specific option support.
3324
3325 * target.h (struct target_option_hooks): Add fields to say whether
3326 the cold attribute implies -Os and the hot attribute implies -O3.
3327
3328 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
3329 By default, do not turn on -Os for cold functions.
3330 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
3331 not turn on -O3 for hot functions.
3332
3333 * c-common.c (handle_hot_attribute): Use target hook to determine
3334 if hot functions should enable -O3.
3335 (handle_cold_attribute): Use target hook to determine if cold
3336 functions should enable -Os.
3337
3338 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
3339 (override_options): Move disable scheduling to
3340 optimization_options.
3341 (optimization_options): Disable scheduling here, not
3342 override_options.
3343 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3344 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3345
3346 * config/ia64/ia64.c (ia64_override_options): Move setting
3347 scheduling flags to ia64_optimization_options.
3348 (ia64_optimization_options): Disable scheduling options here, and
3349 not in ia64_override_options.
3350 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3351 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3352
3353 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 PR target/36936
3356 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
3357
3358 2008-07-25 Martin Jambor <mjambor@suse.cz>
3359
3360 PR tree-optimization/36926
3361 * ipa-prop.c (ipa_analyze_call_uses): Call
3362 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
3363
3364 2008-07-25 Joseph Myers <joseph@codesourcery.com>
3365
3366 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
3367 movv2si_internal): Add mem = reg alternative.
3368
3369 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
3370
3371 PR bootstrap/36918
3372 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
3373 DEFAULT_PCC_STRUCT_RETURN to 127.
3374
3375 2008-07-24 Jan Hubicka <jh@suse.cz>
3376
3377 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
3378 (build_cgraph_edges): Likewise.
3379 * cgraph.c (cgraph_node): Do not update assembler hash.
3380 (cgraph_remove_node): Drop non-unit-at-a-time code.
3381 * tree-pass.h (pass_O0_always_inline): Remove.
3382 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
3383 * toplev.c (process_options): Flag unit-at-a-time does not imply
3384 no section anchors.
3385 * cgraphunit.c: Update comments.
3386 (decide_is_function_needed): Drop non-unit-at-a-time mode.
3387 (cgraph_assemble_pending_functions): Remove.
3388 (cgraph_reset_node): Drop non-unit-at-a-time code.
3389 (cgraph_finalize_function): Likewise.
3390 (cgraph_analyze_function): Likewise.
3391 (cgraph_finalize_compilation_unit): Likewise.
3392 (cgraph_expand_function): Likewise.
3393 (cgraph_optimize): Likesise.
3394 (save_inline_function_body): Likewise.
3395 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
3396 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
3397 * ipa-inline.c: Update comments.
3398 (enum inlining_mode): remove INLINE_SPEED.
3399 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
3400 (cgraph_mark_inline_edge): Likewise.
3401 (try_inline): Likewise.
3402 (cgraph_decide_inlining_incrementally): Likewise.
3403 (cgraph_gate_inlining): Remove.
3404 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
3405 (cgraph_gate_early_inlining): Likewise.
3406 (gate_inline_passes): Remove.
3407 (pass_inline_parameters, pass_ipa_inline): Remove gates.
3408 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
3409 pass_O0_always_inline): Remove.
3410 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
3411 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
3412 * opts.c (no_unit_at_a_time_default): Remove.
3413 (decode_options): Remove flag_unit_at_a_time reset and warning.
3414 * opts.h (no_unit_at_a_time_default): Remove.
3415 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
3416 early in GNU dialect.
3417 (merge_decls): Update comment; drop unit-at-a-time check.
3418 (finish_decl): Likewise.
3419 (grok_declaration): Remove flag_inline_trees code.
3420 (finish_functions): Return on function returning non-void on all
3421 statics.
3422 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
3423 * cfgexpand.c (expand_one_static_var): Remove.
3424 (expand_one_var): Remove expand_one_static_var call.
3425 (expand_used_vars_for_block): Remove flag_unit_a_time check.
3426 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
3427 and flag_unit_at_a-time compatibility checks.
3428 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
3429 * tree-inline.c (flag_inline_trees): Remove.
3430 (inlinable_function_p): Don't check it.
3431 (expand_call_inline): Remove non-unit-at-a-time code.
3432 * tree-inline.h (flag_inline_trees): Remove.
3433 * tree-optimize.c (execute_early_local_optimizations): Remove
3434 unit-at-a-time checks.
3435 (tree_rest_of_compilation): Likewise.
3436 * combine.c (setup_incoming_promotions): Likewise.
3437 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
3438 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
3439 * passes.c (pass_inline_parameters): Update comments; remove
3440 O0_alwaysinline pass.
3441 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
3442 (execute_one_pass): Likewise.
3443 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
3444 (ix86_function_sseregparm): Likewise.
3445 * arm.c (arm_function_in_section_p): Likewise.
3446 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
3447 * varpool.c: Update comments.
3448 (decide_is_variable_needed): Remove unit-at-a-time checks.
3449 (varpool_finalize_decl): Likewise.
3450
3451 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
3452
3453 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
3454 to 2 instead of -1.
3455 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
3456
3457 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
3458
3459 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
3460 imp symbol extension.
3461
3462 2008-07-23 Ian Lance Taylor <iant@google.com>
3463
3464 * tree-vrp.c (infer_value_range): Ignore asm statements when
3465 looking for memory accesses for -fdelete-null-pointer-checks.
3466
3467 2008-07-24 Ben Elliston <bje@au.ibm.com>
3468
3469 * config/spu/spu-c.c (__vector_keyword): New variable.
3470 (vector_keyword): Likewise.
3471 (spu_categorize_keyword): New function.
3472 (spu_macro_to_expand): Likewise.
3473 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
3474 compiling an ISO C dialect.
3475
3476 2008-07-24 Ben Elliston <bje@au.ibm.com>
3477
3478 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
3479 conventional usage.
3480
3481 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3482
3483 * configure: Regenerate.
3484 * configure.ac: Require texinfo 4.7.
3485 * doc/install.texi: Document texinfo 4.7 requirement.
3486
3487 2008-07-23 Martin Jambor <mjambor@suse.cz>
3488
3489 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
3490 rather than for DECL_SAVED_TREE.
3491 * ipa-prop.c: Include diagnostic.h.
3492 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
3493 thoroughly.
3494 (ipa_detect_param_modifications): Function rewritten from scratch.
3495 (ipa_compute_jump_functions): Changed accesses to modification flags.
3496 (ipa_free_node_params_substructures): Update flags destruction.
3497 (ipa_node_duplication_hook): Update flags duplication.
3498 (ipa_print_all_params_modified): Updated flag access.
3499 * ipa-prop.h (struct ipa_param_flags): New structure.
3500 (struct ipa_node_params): New field modification_analysis_done,
3501 modified_flags changed into param_flags.
3502 (ipa_is_ith_param_modified): Changed to use new flags.
3503 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
3504
3505 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
3506 ipa-cp.c and split into two functions.
3507 (ipa_print_node_jump_functions): New function.
3508 (compute_scalar_jump_functions): New function.
3509 (type_like_member_ptr_p): New function.
3510 (compute_pass_through_member_ptrs): New function.
3511 (fill_member_ptr_cst_jump_function): New function.
3512 (determine_cst_member_ptr): New function.
3513 (compute_cst_member_ptr_arguments): New function.
3514 (ipa_compute_jump_functions): Complete rewrite.
3515 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
3516 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
3517 (struct ipa_member_ptr_cst): New structure.
3518 (union jump_func_value): New field member_cst.
3519 * ipa-cp.c (ipcp_lat_is_insertable): New function.
3520 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
3521 jump function types.
3522 (ipcp_print_all_lattices): Slight fprintf rearrangement.
3523 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
3524 instead of ipcp_print_all_jump_functions.
3525 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
3526 only for replacable scalars.
3527
3528 * doc/invoke.texi (Optimize options): Add description of
3529 -findirect-inlining.
3530 * common.opt (flag_indirect_inlining): New flag.
3531 * opts.c (decode_options): Set flag_indirect_inlining when
3532 optimize >= 3.
3533
3534 * ipa-inline.c: Include ipa-prop.h.
3535 (inline_indirect_intraprocedural_analysis): New function.
3536 (inline_generate_summary): Allocate parameter and argument info
3537 structures, call inline_indirect_intraprocedural_analysis on each
3538 node when doing indirect inlining and deallocate indirect inlining
3539 data structures in the end.
3540 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
3541 (free_all_ipa_structures_after_iinln): New function.
3542 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
3543 done.
3544 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
3545
3546 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
3547 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3548 of computing the frequency separately.
3549 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3550 of computing the frequency separately.
3551 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
3552 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
3553 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
3554 (ipa_get_stmt_member_ptr_load_param): New function.
3555 (ipa_is_ssa_with_stmt_def): New function.
3556 (ipa_note_param_call): New function.
3557 (ipa_analyze_call_uses): New function.
3558 (ipa_analyze_stmt_uses): New function.
3559 (ipa_analyze_params_uses): New function.
3560 (ipa_free_node_params_substructures): Also free the param_calls linked
3561 list.
3562 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
3563 (ipa_print_node_param_flags): New function.
3564 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
3565 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
3566 * ipa-prop.h (struct ipa_param_flags): New field called.
3567 (struct ipa_param_call_note): New structure.
3568 (struct ipa_node_params): New fields param_calls and
3569 uses_analysis_done.
3570 (ipa_is_ith_param_called): New function.
3571 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3572 ipa_analyze_params_uses and dump parameter flags.
3573
3574 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
3575 ipa_propagate_indirect_call_infos if performing indirect inlining,
3576 pass a new parameter new_edges to it.
3577 (add_new_edges_to_heap): New fucntion.
3578 (cgraph_decide_inlining_of_small_functions): New vector
3579 new_indirect_edges for newly found indirect edges , call
3580 ipa_propagate_indirect_call_infos after inlining.
3581 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
3582 inlining if performing indirect inlining. Call
3583 free_all_ipa_structures_after_iinln when doing so too.
3584 (inline_generate_summary): Do not call
3585 free_all_ipa_structures_after_iinln here.
3586 * ipa-prop.c (update_jump_functions_after_inlining): New function.
3587 (print_edge_addition_message): New function.
3588 (update_call_notes_after_inlining): New function.
3589 (propagate_info_to_inlined_callees): New function.
3590 (ipa_propagate_indirect_call_infos): New function.
3591 * ipa-prop.h: Include cgraph.h
3592 (struct ipa_param_call_note): Fields reordered, new field processed.
3593 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
3594 flag indirect_call.
3595 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
3596 rediscovered call statements.
3597 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
3598 (dump_cgraph_node): Dump also the indirect_call flag.
3599 (cgraph_clone_edge): Copy also the indirect_call flag.
3600 * tree-inline.c (copy_bb): Do not check for fndecls from call
3601 expressions, check for edge availability when moving clones.
3602 (get_indirect_callee_fndecl): New function.
3603 (expand_call_inline): If callee declaration is not apprent from
3604 the statement, try calling get_indirect_callee_fndecl. Do not
3605 issue warnings or call sorry when not inlinings an indirect edge.
3606 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
3607
3608 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
3609 bit more frandly to matching.
3610 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
3611 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
3612 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
3613
3614 2008-07-23 Michael Meissner <gnu@the-meissners.org>
3615
3616 PR 36907
3617 * opth-gen.awk: Suppress function specific features when building
3618 target libraries.
3619 * optc-gen.awk: Ditto.
3620
3621 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3622
3623 PR 35058
3624 * diagnostic.c (pedwarn): Add opt parameter.
3625 (pedwarn0): New.
3626 * c-tree.h (pedwarn_init): Add opt parameter.
3627 (pedwarn_c90): Likewise.
3628 (pedwarn_c99): Likewise.
3629 * c-errors.c (pedwarn_c99): Likewise.
3630 (pedwarn_c90): Likewise.
3631 * toplev.h (pedwarn): Update declaration.
3632 (pedwarn0): Declare.
3633 * c-lex.c: All calls to pedwarn changed.
3634 * builtins.c: All calls to pedwarn changed.
3635 * toplev.c: All calls to pedwarn changed.
3636 * c-decl.c: All calls to pedwarn changed.
3637 * c-typeck.c: All calls to pedwarn changed.
3638 * c-common.c: All calls to pedwarn changed.
3639 * c-parser.c: All calls to pedwarn changed.
3640
3641 2008-07-23 Michael Meissner <gnu@the-meissners.org>
3642 Karthik Kumar <karthikkumar@gmail.com>
3643
3644 * attribs.c (file scope): Include c-common.h.
3645 (decl_attributes): Add support for #pragma GCC optimize and
3646 #pragma GCC option.
3647
3648 * targhooks.c (default_can_inline_p): New function that is the
3649 default for the TARGET_CAN_INLINE_P target hook.
3650
3651 * targhooks.h (default_can_inline_p): Add declaration.
3652
3653 * tree.c (cl_optimization_node): New static tree for building
3654 OPTIMIZATION_NODE tree.
3655 (cl_target_option_node): New static tree for building
3656 TARGET_OPTION_NODE tree.
3657 (cl_option_hash_table): New hash table for hashing
3658 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3659 (cl_option_hash_hash): New function to provide the hash value for
3660 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3661 (cl_option_hash_eq): New function to provide an equality test for
3662 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3663 (tree_code_size): Add support for OPTIMIZATION_NODE and
3664 TARGET_OPTION_NODE trees.
3665 (tree_code_structure): Add support for OPTIMIZATION_NODE and
3666 TARGET_OPTION_NODE trees.
3667 (build_optimization_node): Build a tree that has all of the
3668 current optimization options.
3669 (build_target_option_node): Build a tree that has the target
3670 options that might be changed on a per function basis.
3671
3672 * tree.h (file scope): Include options.h.
3673 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
3674 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3675 (TREE_OPTIMIZATION): Ditto.
3676 (TREE_TARGET_SPECIFIC): Ditto.
3677 (struct tree_function_decl): Add fields for remembering the
3678 current optimization options and target specific options.
3679 (struct tree_optimization_option): New tree variant that remembers
3680 the optimization options.
3681 (struct tree_target_option): New tree variant that remembers the
3682 target specific flags that might change for compiling a particular
3683 function.
3684 (union tree_node): Include tree_optimization_option and
3685 tree_target_option fields.
3686 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
3687 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
3688 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
3689 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
3690 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
3691 optimization and target options.
3692 (optimization_default_node): New macro to refer to global_trees
3693 field.
3694 (optimization_current_node): Ditto.
3695 (optimization_cold_node): Ditto.
3696 (optimization_hot_node): Ditto.
3697 (target_option_default_node): Ditto.
3698 (target_option_current_node): Ditto.
3699 (current_option_pragma): Ditto.
3700 (current_optimize_pragma): Ditto.
3701
3702 * target.h (struct gcc_target): Add valid_option_attribute_p,
3703 target_option_save, target_option_restore, target_option_print,
3704 target_option_pragma_parse, and can_inline_p hooks.
3705
3706 * toplev.h (parse_optimize_options): Add declaration.
3707 (fast_math_flags_struct_set_p): Ditto.
3708
3709 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
3710 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
3711 optimize is used.
3712
3713 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
3714 tree_can_inline_p hook to see if one function can inline another.
3715 (cgraph_decide_inlining): Ditto.
3716 (cgraph_decide_inlining_incrementally): Ditto.
3717
3718 * opts.c (decode_options): Add support for running multiple times
3719 to allow functions with different target or optimization options
3720 than was specified on the command line.
3721 (fast_math_flags_struct_set_p): New function that is similar to
3722 fast_math_flags_set_p, except it uses the values in the
3723 cl_optimization structure instead of global variables.
3724
3725 * optc-gen.awk: Add support for TargetSave to allow a back end to
3726 declare new fields that need to be saved when using function
3727 specific options. Include flags.h and target.h in the options.c
3728 source. Add support for Save to indicate which options can be set
3729 for individual functions. Generate cl_optimize_save,
3730 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
3731 cl_target_option_restore, cl_target_option_print functions to
3732 allow functions to use different optimization or target options.
3733
3734 * opt-functions.awk (var_type_struct): Return the type used for
3735 storing the field in a structure.
3736
3737 * opth-gen.awk: Add support for TargetSave to allow a back end to
3738 declare new fields that need to be saved when using function
3739 specific options. Add support for Save to indicate which options
3740 can be set for individual functions. Only generate one extern for
3741 Mask fields. Generate cl_optimization and cl_target_option
3742 structures to remember optimization and target options.
3743
3744 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
3745 collecting new tree nodes.
3746 (TS_TARGET_OPTION): Ditto.
3747
3748 * c-decl.c (merge_decls): Merge function specific target and
3749 optimization options.
3750
3751 * function.c (invoke_set_current_function_hook): If the function
3752 uses different optimization options, change the global variables
3753 to reflect this.
3754
3755 * coretypes.h (struct cl_optimization): Add forward reference.
3756 (struct cl_target_option): Ditto.
3757
3758 * c-pragma.c (option_stack): New static vector to remember the
3759 current #pragma GCC option stack.
3760 (handle_pragma_option): New function to support #pragma GCC option
3761 to change target options.
3762 (optimize_stack): New static vector to remember the current
3763 #pragma GCC optimize stack.
3764 (handle_pragma_optimize): New function to support #pragma GCC
3765 optimize to change optimization options.
3766 (init_pragma): Add support for #pragma GCC optimize and #pragma
3767 GCC option.
3768
3769 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
3770 optimization options.
3771 (TARGET_OPTION_NODE): New tree code for remembering certain target
3772 options.
3773
3774 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
3775 TARGET_OPTION_NODE trees.
3776
3777 * common.opt (-O): Add Optimization flag.
3778 (-Os): Ditto.
3779 (-fmath-errno): Ditto.
3780 (-falign-functions): Add UInteger flag to make sure flag gets full
3781 int in cl_optimization structure.
3782 (-falign-jumps): Ditto.
3783 (-falign-labels): Ditto.
3784 (-falign-loops): Ditto.
3785 (-fsched-stalled-insns): Ditto.
3786 (-fsched-stalled-insns-dep): Ditto.
3787
3788 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
3789 definition.
3790 (TARGET_OPTION_SAVE): Ditto.
3791 (TARGET_OPTION_RESTORE): Ditto.
3792 (TARGET_OPTION_PRINT): Ditto.
3793 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3794 (TARGET_CAN_INLINE_P): Ditto.
3795 (TARGET_INITIALIZER): Add new hooks.
3796
3797 * tree-inline.c (tree_can_inline_p): New function to determine
3798 whether one function can inline another. Check if the functions
3799 use compatible optimization options, and also call the backend
3800 can_inline_p hook.
3801
3802 * tree-inline.h (tree_can_inline_p): Add declaration.
3803
3804 * c-common.c (c_common_attribute): Add support for option and
3805 optimize attributes.
3806 (handle_option_attribute): Add support for the option attribute to
3807 allow the user to specify different target options for compiling a
3808 specific function.
3809 (handle_optimize_attribute): Add support for the optimize
3810 attribute to allow the user to specify different optimization
3811 options for compiling a specific function.
3812 (handle_hot_attribute): Turn on -O3 optimization for this one
3813 function if it isn't the default optimization level.
3814 (handle_cold_attribute): Turn on -Os optimization for this one
3815 function if it insn't the default optimization.
3816 (const_char_p): New const char * typedef.
3817 (optimize_args): New static vector to remember the optimization
3818 arguments.
3819 (parse_optimize_options): New function to set up the optimization
3820 arguments from either the optimize attribute or #pragma GCC optimize.
3821
3822 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3823 (builtin_define_std): Ditto.
3824
3825 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3826 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3827 (x86_64-*-*): Ditto.
3828
3829 * Makefile.in (TREE_H): Add options.h.
3830 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3831
3832 * doc/extend.texi (option attribute): Document new attribute.
3833 (optimize attribute): Ditto.
3834 (hot attribute): Document hot attribute sets -O3.
3835 (cold attribute): Document cold attribute sets -Os.
3836 (#pragma GCC option): Document new pragma.
3837 (#pragma GCC optimize): Ditto.
3838
3839 * doc/options.texi (TargetSave): Document TargetSave syntax.
3840 (UInteger): Document UInteger must be used for certain flags.
3841 (Save): Document Save option to create target specific options
3842 that can be saved/restored on a function specific context.
3843
3844 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3845 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3846
3847 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3848 (TARGET_OPTION_SAVE): Ditto.
3849 (TARGET_OPTION_RESTORE): Ditto.
3850 (TARGET_OPTION_PRINT): Ditto.
3851 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3852 (TARGET_CAN_INLINE_P): Ditto.
3853
3854 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3855 -mfpmath=sse,387.
3856 (-mfpmath=both): Ditto.
3857
3858 2008-07-23 Michael Meissner <gnu@the-meissners.org>
3859 Karthik Kumar <karthikkumar@gmail.com>
3860
3861 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3862 (TARGET_POPCNT): Ditto.
3863 (TARGET_SAHF): Ditto.
3864 (TARGET_AES): Ditto.
3865 (TARGET_PCLMUL): Ditto.
3866 (TARGET_CMPXCHG16B): Ditto.
3867 (TARGET_RECIP): Move switch into target_flags.
3868 (TARGET_FUSED_MADD): Ditto.
3869 (ix86_arch_features): Make an unsigned char type.
3870 (ix86_tune_features): Ditto.
3871 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3872 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3873 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3874
3875 * config/i386/i386.opt (arch): New TargetSave field to define
3876 fields that need to be saved for function specific option support.
3877 (tune): Ditto.
3878 (fpmath): Ditto.
3879 (branch_cost): Ditto.
3880 (ix86_isa_flags_explicit): Ditto.
3881 (tune_defaulted): Ditto.
3882 (arch_specified): Ditto.
3883 (-m128-long-double): Add Save flag to save option for target
3884 specific option support.
3885 (-m80387): Ditto.
3886 (-maccumulate-outgoing-args): Ditto.
3887 (-malign-double): Ditto.
3888 (-malign-stringops): Ditto.
3889 (-mfancy-math-387): Ditto.
3890 (-mhard-float): Ditto.
3891 (-mieee-fp): Ditto.
3892 (-minline-all-stringops): Ditto.
3893 (-minline-stringops-dynamically): Ditto.
3894 (-mms-bitfields): Ditto.
3895 (-mno-align-stringops): Ditto.
3896 (-mno-fancy-math-387): Ditto.
3897 (-mno-push-args): Ditto.
3898 (-mno-red-zone): Ditto.
3899 (-mpush-args): Ditto.
3900 (-mred-zone): Ditto.
3901 (-mrtd): Ditto.
3902 (-msseregparm): Ditto.
3903 (-mstack-arg-probe): Ditto.
3904 (-m32): Ditto.
3905 (-m64): Ditto.
3906 (-mmmx): Ditto.
3907 (-m3dnow): Ditto.
3908 (-m3dnowa): Ditto.
3909 (-msse): Ditto.
3910 (-msse2): Ditto.
3911 (-msse3): Ditto.
3912 (-msse4.1): Ditto.
3913 (-msse4.2): Ditto.
3914 (-msse4): Ditto.
3915 (-mno-sse4): Ditto.
3916 (-msse4a): Ditto.
3917 (-msse5): Ditto.
3918 (-mrecip): Move flag into target_flags.
3919 (-mcld): Ditto.
3920 (-mno-fused-madd): Ditto.
3921 (-mfused-madd): Ditto.
3922 (-mabm): Move flag into ix86_isa_flags.
3923 (-mcx16): Ditto.
3924 (-mpopcnt): Ditto.
3925 (-msahf): Ditto.
3926 (-maes): Ditto.
3927 (-mpclmul): Ditto.
3928
3929 * config/i386/i386-c.c: New file for #pragma support.
3930 (ix86_target_macros_internal): New function to #define or #undef
3931 target macros based when the user uses the #pragma GCC option to
3932 change target options.
3933 (ix86_pragma_option_parse): New function to add #pragma GCC option
3934 support.
3935 (ix86_target_macros): Move defining the target macros here from
3936 TARGET_CPU_CPP_BUILTINS in i386.h.
3937 (ix86_register_pragmas): Register the #pragma GCC option hook. If
3938 defined, initialize any subtarget #pragmas.
3939
3940 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3941 REGISTER_TARGET_PRAGMAS.
3942
3943 * config/i386/t-i386: New file for x86 dependencies.
3944 (i386.o): Make dependencies mirror the include files used.
3945 (i386-c.o): New file, add dependencies.
3946
3947 * config/i386/i386-protos.h (override_options): Add bool argument.
3948 (ix86_valid_option_attribute_tree): Add declaration.
3949 (ix86_target_macros): Ditto.
3950 (ix86_register_macros): Ditto.
3951
3952 * config/i386/i386.c (ix86_tune_features): Move initialization of
3953 the target masks to initial_ix86_tune_features to allow functions
3954 to have different target options. Make type unsigned char,
3955 instead of unsigned int.
3956 (initial_ix86_tune_features): New static vector to hold processor
3957 masks for the tune variables.
3958 (ix86_arch_features): Move initialization of the target masks to
3959 initial_ix86_arch_features to allow functions to have different
3960 target options. Make type unsigned char, instead of unsigned int.
3961 (initial_ix86_arch_features): New static vector to hold processor
3962 masks for the arch variables.
3963 (enum ix86_function_specific_strings): New enum to describe the
3964 string options used for attribute((option(...))).
3965 (ix86_target_string): New function to return a string that
3966 describes the target options.
3967 (ix86_debug_options): New function to print the current options in
3968 the debugger.
3969 (ix86_function_specific_save): New function hook to save the
3970 function specific global variables in the cl_target_option structure.
3971 (ix86_function_specific_restore): New function hook to restore the
3972 function specific variables from the cl_target_option structure to
3973 the global variables.
3974 (ix86_function_specific_print): New function hook to print the
3975 target specific options in the cl_target_option structure.
3976 (ix86_valid_option_attribute_p): New function hook to validate
3977 attribute((option(...))) arguments.
3978 (ix86_valid_option_attribute_tree): New function that is common
3979 code between attribute((option(...))) and #pragma GCC option
3980 support that parses the options and returns a tree holding the options.
3981 (ix86_valid_option_attribute_inner_p): New helper function for
3982 ix86_valid_option_attribute_tree.
3983 (ix86_can_inline_p): New function hook to decide if one function
3984 can inline another on a target specific basis.
3985 (ix86_set_current_function); New function hook to switch target
3986 options if the user used attribute((option(...))) or #pragma GCC
3987 option.
3988 (ix86_tune_defaulted): Move to static file scope from
3989 override_options.
3990 (ix86_arch_specified): Ditto.
3991 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3992 ix86_isa_flags.
3993 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3994 (OPTION_MASK_ISA_ABM_SET): Ditto.
3995 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3996 (OPTION_MASK_ISA_CX16_SET): Ditto.
3997 (OPTION_MASK_ISA_SAHF_SET): Ditto.
3998 (OPTION_MASK_ISA_AES_UNSET): Ditto.
3999 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
4000 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
4001 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
4002 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
4003 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
4004 (struct ptt): Move to static file scope from override_options.
4005 (processor_target_table): Ditto.
4006 (cpu_names): Ditto.
4007 (ix86_handle_option): Add support for options that are now isa options.
4008 (override_options): Add support for declaring functions that
4009 support different target options than were specified on the
4010 command line. Move struct ptt, processor_target_table, cpu_names,
4011 ix86_tune_defaulted, ix86_arch_specified to static file scope.
4012 Add bool argument. Fix up error messages so the appropriate error
4013 is given for either command line or attribute.
4014 (ix86_previous_fndecl): New static to remember previous function
4015 declaration to see if we need to change target options.
4016 (ix86_builtins_isa): New array to record the ISA of each builtin
4017 function.
4018 (def_builtin): Always create the builtin function, even if the
4019 current ISA doesn't support it.
4020 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
4021 tests for those builtins.
4022 (ix86_init_builtins): Remove TARGET_MMX test for calling
4023 ix86_init_mmx_sse_builtins.
4024 (ix86_expand_builtin): If the current ISA doesn't support a given
4025 builtin, signal an error.
4026 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
4027 (TARGET_SET_CURRENT_FUNCTION): Ditto.
4028 (TARGET_OPTION_SAVE): Ditto.
4029 (TARGET_OPTION_RESTORE): Ditto.
4030 (TARGET_OPTION_PRINT): Ditto.
4031 (TARGET_CAN_INLINE_P): Ditto.
4032
4033 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
4034
4035 * c-typeck.c (build_external_ref): Don't call assemble_external.
4036 * final.c (output_operand): Call assemble_external.
4037
4038 2008-07-21 DJ Delorie <dj@redhat.com>
4039
4040 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
4041 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4042
4043 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4044
4045 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
4046 original insn and splitter contents into ...
4047 ("*div<mode>3_fast"): ... this new pattern. Enable only if
4048 flag_unsafe_math_optimizations. Add dummy scratch register.
4049 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
4050 !flag_unsafe_math_optimizations. Returns number with next
4051 highest magnitude if this is still less or equal to the true
4052 quotient in magnitude.
4053
4054 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
4055
4056 * Makefile.in: Replace toplev.h with TOPLEV_H.
4057 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
4058 * c-lex.c (fe_file_change): Don't set in_system_header.
4059 * c-parser.c (c_token): Remove in_system_header.
4060 (c_lex_one_token): Don't set in_system_header.
4061 (c_parser_set_source_position_from_token): Don't set in_system_header.
4062 * diagnostic.c (diagnostic_report_diagnostic): Use location from
4063 diagnostic_info.
4064 (warning_at): New.
4065 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
4066 * flags.h (in_system_header): Remove.
4067 * function.c (saved_in_system_header): Remove.
4068 (push_cfun): Don't set in_system_header.
4069 (pop_cfun): Don't set in_system_header.
4070 (push_struct_function): Don't set in_system_header.
4071 * input.h (expanded_location): Add sysp.
4072 (in_system_header_at): New.
4073 (in_system_header): New.
4074 * toplev.c (in_system_header): Remove.
4075 * toplev.h: Include input.h
4076 (warning_at): New.
4077 * tree-cfg.c (execute_warn_function_return): Call warning_at.
4078 * tree-ssa.c (warn_uninit): Call warning_at.
4079 (warn_uninitialized_var): Update calls to warn_uninit.
4080 (warn_uninitialized_phi): Update calls to warn_uninit.
4081 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
4082 (expand_location): Initialize xloc.sysp.
4083 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
4084 (tree_decl_with_vis): Remove in_system_header_flag.
4085
4086 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4087
4088 PR target/36822
4089 * recog.c (asm_operand_ok): Change the order of the extra
4090 memory constraint checks.
4091
4092 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
4093
4094 PR tree-opt/36879
4095 * tree-switch-conversion.c (build_one_array): Call
4096 varpool_mark_needed_node and varpool_finalize_decl
4097 instead of assemble_variable.
4098
4099 2008-07-19 Jan Hubicka <jh@suse.cz>
4100
4101 * cgraph.c (cgraph_add_new_function): Do early local passes.
4102 * tree-nrv.c (gate_pass_return_slot): New gate.
4103 (pass_nrv): Add the gate.
4104 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
4105 functions.
4106 (coalesce_ssa_name): Coalesce SSA names.
4107 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
4108 not optimizing so unused user vars remains visible.
4109 * common.opt (flag_tree_ter): Always enable by default.
4110 * tree-ssa-ter.c: Include flags.h
4111 (is_replaceable_p): Check that locations match; when aliasing is missing
4112 be conservative about loads.
4113 * tree-optimize.c (gate_init_datastructures): Remove.
4114 (pass_init_datastructures): New.
4115 * passes.c: Reorder passes so we always go into SSA.
4116
4117 2008-07-19 Jan Hubicka <jh@suse.cz>
4118
4119 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
4120 * doc/invoke.texi (--combine): Likewise.
4121 (-finline-functions-called-once): Update levels when enabled.
4122 (-funit-at-a-time): Document new behaviour.
4123 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
4124 -fno-section-anchors when disabled explicitly.
4125 (inline params): They are not ignored now.
4126 (precompiled headers): Remove unit-at-a-time as being incompatible.
4127 * opts.c (decode_options): Handle unit-at-a-time as alias;
4128 imply -fno-section-anchors when toplevel reorder is disabled
4129 explicitly.
4130 * common.opt (ftoplevel-reorder): Set default value to 2.
4131 (funit-at-a-time): Set default value to 1.
4132 * config/rs6000/rs6000.c (optimization_options): Set section anchors
4133 to 2.
4134
4135 2008-07-19 Jan Hubicka <jh@suse.cz>
4136
4137 * builtins.c (expand_builtin_int_roundingfn,
4138 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
4139 it is not useful.
4140
4141 2008-07-19 Richard Guenther <rguenther@suse.de>
4142
4143 PR bootstrap/36864
4144 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
4145 * tree-ssa-sccvn.c (get_constant_value_id): New function.
4146 * tree-ssa-pre.c (get_expr_value_id): For newly created
4147 constant value-ids make sure to add the expression to its
4148 expression-set.
4149
4150 2008-07-19 Jakub Jelinek <jakub@redhat.com>
4151
4152 PR middle-end/36877
4153 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
4154 return value of the builtin is ignored.
4155
4156 2008-07-19 Olivier Hainque <hainque@adacore.com>
4157
4158 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
4159 bits, a C conformant malloc implementation has to provide.
4160 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
4161
4162 2008-07-19 Joseph Myers <joseph@codesourcery.com>
4163
4164 PR target/36780
4165 PR target/36827
4166 * reload.c (find_reloads_subreg_address): Only reload address if
4167 reloaded == 0, not for reloaded != 1.
4168
4169 Revert:
4170 2008-07-16 Joseph Myers <joseph@codesourcery.com>
4171 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
4172 (m32c_legitimate_address_p): Handle "++rii" addresses created by
4173 m32c_legitimize_reload_address.
4174
4175 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
4176 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
4177 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
4178
4179 2008-07-19 Olivier Hainque <hainque@adacore.com>
4180
4181 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
4182 argument, saying whether nested array are to be collapsed
4183 into a single array type DIE with multiple subscripts.
4184 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
4185 issues, centralize the nested array types collapsing control and
4186 disable the transformation for Ada.
4187
4188 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
4189
4190 PR target/36786
4191 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
4192 x86_64_shift_adj.
4193 (x86_64_shift_adj_2): New expander.
4194 (x86_64_shift_adj_3): Ditto.
4195 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
4196 to split TImode operands.
4197 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
4198 (ix86_split_lshr): Ditto.
4199
4200 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
4201
4202 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
4203 and __CHAR32_TYPE__.
4204 * c-typeck.c (digest_init): Support char16_t and char32_t.
4205 (set_nonincremental_init_from_string): Idem.
4206
4207 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
4208
4209 PR middle-end/36859
4210 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
4211 PREFERRED_STACK_BOUNDARY.
4212 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4213
4214 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
4215
4216 PR middle-end/36858
4217 * function.c (locate_and_pad_parm): Cap boundary earlier.
4218
4219 2008-07-17 Julian Brown <julian@codesourcery.com>
4220
4221 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
4222 no-op for targets which don't use DLLs.
4223
4224 2008-07-17 Martin Jambor <mjambor@suse.cz>
4225
4226 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
4227 that nodes are relevant by examining the node->analyzed flag.
4228 (ipcp_init_stage): Check which nodes are relevant, assert that the
4229 relevant ones are also required.
4230 (ipcp_propagate_stage): Check on the side arrays are properly
4231 allocated.
4232 (ipcp_print_all_jump_functions): Make sure not to touch any node
4233 that is not analyzed or an edge that does not have a corresponding
4234 entry in the on-the-side vectors.
4235 (ipcp_function_scale_print): Likewise.
4236 (ipcp_update_callgraph): Check that the node is relevant.
4237 (ipcp_insert_stage): Check that the node is relevant. Check there is
4238 an info for every node and edge.
4239 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
4240 (ipa_print_all_tree_maps): Likewise and a new variable info.
4241 (ipa_print_all_params_modified): Likewise.
4242 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
4243
4244 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
4245
4246 PR target/25343
4247 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
4248
4249 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
4250
4251 PR rtl-optimization/36753
4252 * fwprop.c (use_killed_between): Don't shortcut
4253 single-definition global registers.
4254
4255 2008-07-16 Jan Hubicka <jh@suse.cz>
4256
4257 * cgraph.h (varpool_empty_needed_queue): Declare.
4258 * cgraphunit.c (output_in_order): Mark all variables as needed;
4259 empty the queue.
4260 * varpool.c (varpool_assemble_node): Update debug queue.
4261 (varpool_assemble_pending_decls): Don't do it here.
4262 (varpool_empty_needed_queue): New function.
4263
4264 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4265
4266 * recog.c (peephole2_optimize): Fix formatting.
4267
4268 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4269
4270 * c-pch.c (get_ident): Avoid C++ keywords.
4271 * combine-stack-adj.c (single_set_for_csa): Likewise.
4272 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
4273 output_asm_insn): Likewise.
4274 * reload.c (push_secondary_reload, find_reusable_reload,
4275 push_reload, combine_reloads, find_reloads,
4276 debug_reload_to_stream): Likewise.
4277 * reload.h (struct reload): Likewise.
4278 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
4279 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
4280 emit_output_reload_insns): Likewise.
4281 * targhooks.c (default_secondary_reload): Likewise.
4282 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
4283
4284 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4285
4286 * recog.c (validate_change_1, validate_change,
4287 validate_unshare_change, validate_replace_rtx_1, struct
4288 funny_match, constrain_operands, peephole2_optimize): Avoid C++
4289 keywords.
4290 * reload.c (push_secondary_reload, secondary_reload_class,
4291 scratch_reload_class, find_valid_class, find_reusable_reload,
4292 push_reload, find_dummy_reload, find_reloads_address_1,
4293 find_reloads_address_part, find_equiv_reg): Likewise.
4294 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
4295 choose_reload_regs): Likewise.
4296 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
4297 Likewise.
4298 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4299 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
4300 * sched-rgn.c (concat_INSN_LIST): Likewise.
4301 * stor-layout.c (mode_for_size, mode_for_size_tree,
4302 smallest_mode_for_size): Likewise.
4303
4304 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4305
4306 * cfg.c (dump_reg_info): Avoid C++ keywords.
4307 * dwarf2asm.c (dw2_force_const_mem,
4308 dw2_asm_output_encoded_addr_rtx): Likewise.
4309 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
4310 * expmed.c (expand_shift): Likewise.
4311 * global.c (find_reg): Likewise.
4312 * graph.c (draw_edge): Likewise.
4313 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
4314 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
4315 widen_clz, widen_bswap, expand_parity, expand_unop,
4316 emit_cmp_and_jump_insn_1): Likewise.
4317 * postreload.c (reload_cse_simplify_operands): Likewise.
4318 * ra.h (add_neighbor): Likewise.
4319 * reg-stack.c (remove_regno_note, change_stack): Likewise.
4320 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
4321 record_reg_classes, copy_cost, record_address_regs,
4322 invalid_mode_change_p): Likewise.
4323 * regrename.c (regrename_optimize, scan_rtx_reg,
4324 dump_def_use_chain, find_oldest_value_reg,
4325 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
4326
4327 2008-07-16 David Edelsohn <edelsohn@gnu.org>
4328
4329 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
4330 MASK_POWERPC64 for power4 in previous commit.
4331
4332 2008-07-16 Olivier Hainque <hainque@adacore.com>
4333
4334 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
4335 instead of bare conversion to cast const-ness away.
4336
4337 2008-07-16 Anatoly Sokolov <aesok@post.ru>
4338
4339 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
4340 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
4341 * config/xtensa/xtensa.c (xtensa_function_value): New function.
4342 (TARGET_FUNCTION_VALUE): Define.
4343
4344 2008-07-16 David Edelsohn <edelsohn@gnu.org>
4345
4346 * config/rs6000/rs6000.c (processor_target_table): Add
4347 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
4348
4349 2008-07-16 Joseph Myers <joseph@codesourcery.com>
4350
4351 PR target/36827
4352 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
4353 (m32c_legitimate_address_p): Handle "++rii" addresses created by
4354 m32c_legitimize_reload_address.
4355
4356 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
4357
4358 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
4359 DECL_IN_SYSTEM_HEADER in sync.
4360
4361 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
4362
4363 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
4364 * tree-ssa-pre.c (pre_expr_eq): Ditto
4365 (get_constant_for_value_id): Take a type as an argument.
4366 (fully_constant_expression): Pass in type.
4367 (find_or_generate_expression): Short circuit constant case.
4368 (create_expression_by_pieces): Remove special casing of
4369 pointer_plus.
4370 (do_regular_insertion): Short circuit constant case.
4371 (do_partial_partial_insertion): Ditto.
4372
4373 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
4374
4375 PR target/36782
4376 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
4377
4378 2008-07-15 Bob Wilson <bob.wilson@acm.org>
4379
4380 * config/xtensa/libgcc-xtensa.ver: New file.
4381 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
4382
4383 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4384
4385 * df-problems.c (df_set_note): Avoid C++ keywords.
4386 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
4387 * dse.c (record_store, remove_useless_values): Likewise.
4388 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
4389 gen_reg_rtx_offset, operand_subword, change_address_1,
4390 change_address, adjust_address_1, offset_address,
4391 widen_memory_access, emit_copy_of_insn_after): Likewise.
4392 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
4393 * fwprop.c (should_replace_address, propagate_rtx_1,
4394 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
4395 Likewise.
4396 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
4397 gcse_emit_move_after, update_ld_motion_stores): Likewise.
4398 * lcm.c (compute_insert_delete, pre_edge_lcm,
4399 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
4400 * lower-subreg.c (resolve_reg_notes): Likewise.
4401 * mode-switching.c (optimize_mode_switching): Likewise.
4402
4403 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404
4405 * bt-load.c (add_btr_def, migrate_btr_def,
4406 branch_target_load_optimize): Avoid C++ keywords.
4407 * caller-save.c (insert_restore, insert_save, insert_one_insn):
4408 Likewise.
4409 * combine.c (subst, simplify_set, make_extraction,
4410 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
4411 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
4412 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
4413
4414 2008-07-15 Richard Guenther <rguenther@suse.de>
4415
4416 PR middle-end/36369
4417 * c-common.c (strict_aliasing_warning): Do not warn for
4418 TYPE_REF_CAN_ALIAS_ALL pointers.
4419 (c_common_get_alias_set): may_alias types are not special.
4420 * tree.c (build_pointer_type_for_mode): Look up the may_alias
4421 attribute and set can_ref_all accordingly.
4422 (build_reference_type_for_mode): Likewise.
4423 * doc/extend.texi (may_alias): Clarify.
4424
4425 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
4426
4427 PR target/36780
4428 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
4429 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
4430
4431 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4432
4433 PR target/31568
4434 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
4435 gcc_assert, instead call output_operand_lossage.
4436
4437 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
4438
4439 * builtins.c (std_canonical_va_list): Treat structure based
4440 va_list types.
4441
4442 2008-07-15 Ben Elliston <bje@au.ibm.com>
4443
4444 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
4445
4446 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
4447
4448 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
4449 is set.
4450
4451 2008-07-14 Jan Hubicka <jh@suse.cz>
4452
4453 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
4454 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
4455 fix predicates and constraints.
4456 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
4457 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
4458
4459 2008-07-14 Doug Kwan <dougkwan@google.com>
4460
4461 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
4462 additional option file arm/eabi.opt.
4463 * config/arm/eabi.h (File): New configuration file for EABI targets.
4464 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
4465 SUBSUBTARGET_EXTRA_SPECS.
4466 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
4467 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
4468 from STARTFILE_SPEC so that it can be referenced in an override.
4469 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
4470 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
4471 can be referenced in an override.
4472 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
4473 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
4474 so that it can be referenced in an override.
4475 (LINK_SPEC): Use BPABI_LINK_SPEC.
4476 * config/arm/eabi.opt (File): New.
4477
4478 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4479
4480 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
4481 (FIXED_VALUE_H): New variable.
4482 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
4483 input.h, fixed-value.h.
4484 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
4485 (BASIC_BLOCK_H): Use $(BITMAP_H).
4486 (FUNCTION_H): Add varray.h.
4487 (IPA_REFERENCE_H): Use $(BITMAP_H).
4488 (CGRAPH_H): Add $(BASIC_BLOCK_H).
4489 (DF_H): Use $(BITMAP_H).
4490 (GGC_H): Add statistics.h.
4491 (INSN_ADDR_H): New.
4492 (INSN_ATTR_H): Use it.
4493 (SYSTEM_H): Add safe-ctype.h, filenames.h.
4494 (INPUT_H): New.
4495 (SYMTAB_H): Add $(OBSTACK_H).
4496 (CPP_INTERNAL_H): New.
4497 (TREE_DUMP_H): Add tree-pass.h.
4498 (TREE_FLOW_H): Use $(BITMAP_H)
4499 (PRETTY_PRINT_H): Use $(INPUT_H).
4500 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
4501 (GSTAB_H): New.
4502 (BITMAP_H): New.
4503 (many object files): Fix lots of header dependencies throughout.
4504
4505 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4506
4507 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
4508 New macros.
4509 (s-gtyp-input): Use them to write tmp-gi.list.
4510 (echo_to_gi.list): Remove.
4511
4512 2008-07-14 Richard Guenther <rguenther@suse.de>
4513
4514 * tree-ssa-sccvn.c (pre_info): Remove.
4515 (switch_to_PRE_table): Likewise.
4516 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
4517 (set_hashtable_value_ids): Do not create value-ids for the
4518 optimistic tables.
4519 (run_scc_vn): Remove double test. Remove bogus special-case
4520 in value-number printing.
4521 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
4522 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
4523 SSA_NAME_VALUE.
4524 * tree-flow-inline.h (get_value_handle): Remove.
4525 * tree-flow.h (get_value_handle): Remove.
4526
4527 2008-07-14 Martin Jambor <mjambor@suse.cz>
4528
4529 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
4530 in which we generate arithmetics is not a subrange.
4531
4532 2008-07-14 Martin Jambor <mjambor@suse.cz>
4533
4534 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
4535
4536 2008-07-14 Richard Guenther <rguenther@suse.de>
4537
4538 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
4539
4540 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
4541
4542 PR target/36745
4543 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
4544 reload for symbol refs moved to r0 with -fPIC.
4545 (legitimize_pic_address): Use the target register as temporary
4546 reg if possible.
4547 (emit_symbolic_move): Adjust comment.
4548 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
4549 New expanders.
4550
4551 2008-07-14 Ben Elliston <bje@au.ibm.com>
4552
4553 * c-common.h (C_CPP_HASHNODE): New macro.
4554 * coretypes.h (struct cpp_token): Forward declare.
4555 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4556 the context-sensitive keyword method.
4557 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
4558 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
4559 expand_bool_pixel): New.
4560 (altivec_categorize_keyword): New function.
4561 (init_vector_keywords): New function.
4562 (rs6000_macro_to_expand): Likewise.
4563 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
4564 compiling an ISO C dialect.
4565
4566 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
4567
4568 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
4569 (create_expression_by_pieces): Fix typo.
4570 (do_regular_insertion): Use debug counter here too.
4571
4572 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
4573
4574 PR target/35492.
4575 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
4576 CONST_OK_FOR_LETTER_P. All port-local users changed.
4577 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
4578 implement Kp matching power-of-two.
4579 (CONSTRAINT_LEN): Define to match.
4580 * config/cris/cris.md: Replace all use of constraint K with Kc.
4581 ("*btst*): Use Kp for operand 0 of last alternative.
4582
4583 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4584
4585 PR testsuite/36440
4586 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
4587 and quad formats.
4588
4589 2008-07-13 Jan Hubicka <jh@suse.cz>
4590
4591 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
4592 to be mangled too.
4593
4594 2008-07-13 Richard Guenther <rguenther@suse.de>
4595
4596 PR middle-end/36811
4597 * langhooks.c (lhd_print_error_function): Deal with recursive
4598 BLOCK trees.
4599
4600 2008-07-12 Jan Hubicka <jh@suse.cz>
4601
4602 * cgraph.c (assembler_name_hash): New static var.
4603 (hash_node_by_assembler_name, eq_assembler_name): New.
4604 (cgraph_node_for_asm): Use hashtable.
4605 (cgraph_remove_node): Maintain hashtable.
4606 (change_decl_assembler_name): Sanity check that names are not changing
4607 after aliasing was processed.
4608 * cgraph.h (varpoon_node): Add next GGC marker.
4609 * tree.c (decl_assembler_name_equal): Constify.
4610 (decl_assembler_name_hash): New.
4611 * tree.h (decl_assembler_name_equal): Constify.
4612 (decl_assembler_name_hash): Update.
4613
4614 2008-07-12 David Daney <ddaney@avtrex.com>
4615
4616 * config/mips/driver-native.c (host_detect_local_cpu): Handle
4617 sb1 and r5000 cpus.
4618
4619 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
4620
4621 * doc/md.texi: Document the MIPS "v" constraint.
4622 * config/mips/mips.h (reg_class): Revert last change.
4623 (REG_CLASS_NAMES): Likewise.
4624 (REG_CLASS_CONTENTS): Likewise.
4625 * config/mips/mips.c (mips_regno_to_class): Likewise.
4626 * config/mips/constraints.md (v): Likewise, but add documentation.
4627 Add a comment to say that this constraint should not be used in
4628 gcc code.
4629
4630 2008-07-11 DJ Delorie <dj@redhat.com>
4631
4632 * config/h8300/h8300.md (length): Fix branch offset limit.
4633
4634 2008-07-11 Anatoly Sokolov <aesok@post.ru>
4635
4636 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
4637 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
4638 (avr_hard_regno_scratch_ok): New function.
4639 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4640 * config/avr/avr.md (all peepholes that request a scratch register):
4641 Remove avr_peep2_scratch_safe use.
4642
4643 2008-07-11 Tom Tromey <tromey@redhat.com>
4644 Ian Lance Taylor <iant@google.com>
4645
4646 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
4647 (struct c_common_resword): Define.
4648 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
4649 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
4650 (c_common_reswords, num_c_common_reswords): Declare.
4651 * c-common.c (c_common_reswords): New global const array.
4652 (num_c_common_reswords): New const int.
4653 * c-parser.c (struct resword, reswords): Don't define.
4654 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
4655 (c_parse_init): Clarify mask code. Use c_common_reswords rather
4656 than reswords. If warning about C++ keywords, give them a special
4657 RID code.
4658 (c_lex_one_token): Warn about C++ keywords. Call
4659 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
4660 (c_parser_external_declaration): Look for RID_xxx rather than
4661 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
4662 (c_parser_statement_after_labels): Likewise.
4663 (c_parser_objc_class_instance_variables): Likewise.
4664 (c_parser_objc_class_declaration): Likewise.
4665 (c_parser_objc_try_catch_statement): Likewise.
4666 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
4667 (declspecs_add_type): Likewise.
4668
4669 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
4670
4671 * ggc-page.c (alloc_page):
4672 Substituting xmalloc, xcalloc with
4673 XNEWVEC and XCNEWVAR macros which add the
4674 needed casts.
4675
4676 2008-07-11 Richard Guenther <rguenther@suse.de>
4677
4678 PR tree-optimization/36765
4679 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
4680 aliases from HEAP vars to SMTs.
4681
4682 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4683
4684 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
4685 * configure.ac (loose_warn): Move -Wc++-compat from here...
4686 (strict_warn): ...to here.
4687 * configure: Regenerate.
4688
4689 2008-07-10 Joseph Myers <joseph@codesourcery.com>
4690
4691 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
4692 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
4693 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
4694 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
4695 excluding more specific h8300-*-* and sh-*-* targets.
4696
4697 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
4698
4699 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
4700 (eliminate): Ditto.
4701 (execute_pre): Call loop_optimizer_finalize in early exit.
4702
4703 2008-07-10 Jakub Jelinek <jakub@redhat.com>
4704
4705 PR middle-end/36790
4706 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
4707 uids in the bitmap, not just VAR_DECL uids.
4708
4709 PR rtl-optimization/36419
4710 * combine-stack-adj.c (adjust_frame_related_expr): New function.
4711 (combine_stack_adjustments_for_block): Call it if needed. Delete
4712 correct insn.
4713 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
4714 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
4715 prologue sp adjustment.
4716
4717 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
4718
4719 PR other/28322
4720 * opts.c (print_ignored_options): Report postponed diagnostics for
4721 unknown -Wno-* options as warnings, not errors.
4722 (postpone_unknown_option_error): Renamed to...
4723 (postpone_unknown_option_warning): ... this.
4724
4725 2008-07-09 Doug Kwan <dougkwan@google.com>
4726
4727 Revert:
4728 2008-07-08 Doug Kwan <dougkwan@google.com>
4729
4730 * config/arm/arm.opt (mandroid): New option.
4731 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4732 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4733 (CC1_SPEC): Same.
4734 (CC1PLUS_SPEC): Same.
4735 (LIB_SPEC): Same.
4736 (STARTFILE_SPEC): Same.
4737 (ENDFILE_SPEC): Same.
4738 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4739 used.
4740
4741 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
4742
4743 PR target/35802
4744 * config/mips/mips.h (reg_class): Remove V1_REG.
4745 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4746 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
4747 instead of V1_REGS.
4748 (mips_get_tp): New function.
4749 (mips_legitimize_tls_address): Use it.
4750 * config/mips/constraints.md (v): Delete.
4751 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
4752 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
4753 After reload, split into a move and ...
4754 (*tls_get_tp_<mode>_split): ...this new instruction.
4755
4756 2008-07-09 David Daney <ddaney@avtrex.com>
4757
4758 * config/mips/driver-native.c: Include coretypes.h and tm.h.
4759
4760 2008-07-09 Jakub Jelinek <jakub@redhat.com>
4761
4762 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
4763 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
4764 Add c argument.
4765 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
4766 htab_delete should be called. Don't free c.
4767 (lookup_tmp_var): Create temp_htab lazily.
4768 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4769 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
4770 callers.
4771 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4772 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4773 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
4774 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
4775 * tree-sra.c (generate_element_init): Likewise.
4776 * tree-mudflap.c (execute_mudflap_function_ops,
4777 execute_mudflap_function_decls): Likewise.
4778 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
4779 * tree-gimple.h (struct gimplify_ctx): New type.
4780 (push_gimplify_context): Adjust prototype.
4781
4782 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
4783
4784 * tree-ssa-pre.c (phi_translate_1): Update placement of
4785 add_to_value calls.
4786
4787 2008-07-09 Anatoly Sokolov <aesok@post.ru>
4788
4789 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
4790 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
4791 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
4792 * targhooks.c (default_hard_regno_scratch_ok): New function.
4793 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
4794 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
4795 * recog.c: Include "target.h".
4796 (peep2_find_free_register): Add check for global regs. Add target
4797 specific check.
4798 * Makefile.in (recog.o): Depend on target.h.
4799
4800 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
4801
4802 * config/sh/sh.c (sh_canonical_va_list_type): New.
4803 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
4804
4805 2008-07-09 Raksit Ashok <raksit@google.com>
4806
4807 * doc/invoke.texi (Option Summary): Mention new option
4808 -Wdisallowed-function-list=...
4809 (Warning Options): Document -Wdisallowed-function-list=...
4810 * common.opt (Wdisallowed-function-list=): New flag.
4811 * flags.h (warn_disallowed_functions): External definition of new
4812 boolean warning flag.
4813 (warn_if_disallowed_function_p): Declare new function.
4814 * opts.c (warning_disallowed_functions): New static variable.
4815 (warn_disallowed_functions): New boolean warning flag.
4816 (warn_if_disallowed_function_p): New function.
4817 (add_comma_separated_to_vector): Rename
4818 add_instrument_functions_exclude_list to this.
4819 (common_handle_option): Handle new option. Rename calls to
4820 add_instrument_functions_exclude_list into calls to
4821 add_comma_separated_to_vector.
4822 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4823 based on flag warn_disallowed_functions.
4824
4825 2008-07-09 Christian Bruel <christian.bruel@st.com>
4826
4827 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4828 instead of get_attr_length.
4829
4830 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4831
4832 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4833 keywords.
4834 * genemit.c (gen_insn): Likewise.
4835 * gengtype.c (note_def_vec): Likewise.
4836 * gengtype.h (note_def_vec): Likewise.
4837 * genoutput.c (struct data, output_insn_data, process_template,
4838 gen_expand, gen_split, note_constraint): Likewise.
4839 * genrecog.c (new_decision, add_to_sequence, factor_tests,
4840 make_insn_sequence): Likewise.
4841 * gensupport.c (record_insn_name): Likewise.
4842
4843 2008-07-08 Doug Kwan <dougkwan@google.com>
4844
4845 * config/arm/arm.opt (mandroid): New option.
4846 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4847 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4848 (CC1_SPEC): Same.
4849 (CC1PLUS_SPEC): Same.
4850 (LIB_SPEC): Same.
4851 (STARTFILE_SPEC): Same.
4852 (ENDFILE_SPEC): Same.
4853 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4854 used.
4855
4856 2008-07-08 Raksit Ashok <raksit@google.com>
4857
4858 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4859 (set_storage_via_setmem): Fix expected_align parameter.
4860 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4861 missing from the list.
4862 * doc/md.texi (movmem): Explicitly state that expected alignment is
4863 to be expressed in bytes.
4864 (setmem): Explicitly state that expected alignment is to be expressed
4865 in bytes.
4866
4867 2008-07-08 Joseph Myers <joseph@codesourcery.com>
4868
4869 * reload.c (find_reloads_subreg_address): Do not require validity
4870 of address in original mode before reloading address.
4871
4872 2008-07-07 Tianwei Sheng <tianweis@google.com>
4873
4874 * df-core.c (df_remove_problem): Adjust the access to avoid out of
4875 bounds array access.
4876
4877 2008-07-08 Jakub Jelinek <jakub@redhat.com>
4878
4879 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4880
4881 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
4882
4883 Fix PR tree-optimization/23455
4884 Fix PR tree-optimization/35286
4885 Fix PR tree-optimization/35287
4886 * Makefile.in (OBJS-common): Remove tree-vn.o.
4887 (tree-vn.o): Remove.
4888 * dbgcnt.def: Add treepre_insert debug counter.
4889 * gcc/tree-flow.h (add_to_value): Updated for other changes.
4890 (debug_value_expressions): Ditto.
4891 (print_value_expressions): Ditto.
4892 * tree-pretty-print.c (dump_generic_node): Updated for
4893 VALUE_HANDLE removal.
4894 * tree-ssa-dom.c (record_equality): Ditto.
4895 (cprop_operand): Ditto.
4896 (lookup_avail_expr): Ditto.
4897 * tree-ssa-threadedge.c
4898 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4899 (simplify_control_stmt_condition): Ditto.
4900 * tree.c (tree_code_size): Ditto.
4901 (tree_node_structure): Ditto.
4902 (iterative_hash_expr): Ditto.
4903 * tree.def: Ditto.
4904 * tree.h (VALUE_HANDLE_ID): Ditto.
4905 (VALUE_HANDLE_EXPR_SET): Ditto.
4906 (struct tree_value_handle): Ditto.
4907 (union tree_node): Ditto.
4908 * treestruct.def: Ditto.
4909 * tree-vn.c: Removed.
4910 * tree-ssa-pre.c: Rewritten entirely.
4911 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4912 (constant_value_ids): Ditto.
4913 (vn_nary_op_t): Moved to header.
4914 (vn_phi_t): Ditto.
4915 (vn_reference_op_t): Ditto
4916 (vn_reference_t): Ditto.
4917 (next_value_id): New variable.
4918 (VN_INFO): Add an assert.
4919 (vn_constant_eq): New function.
4920 (vn_constant_hash): Ditto.
4921 (get_or_alloc_constant_value_id): Ditto.
4922 (value_id_constant_p): Ditto.
4923 (vn_reference_compute_hash): De-staticify.
4924 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4925 Disable some code with a FIXME. Remove VALUE_HANDLE use.
4926 (valueize_refs): Update opcode if it changes from ssa name to constant.
4927 (vn_reference_lookup_1): Add new argument.
4928 (vn_reference_lookup): Ditto.
4929 (vn_reference_lookup_pieces): New function.
4930 (vn_reference_insert): Add return type. Modify to deal with value ids.
4931 (vn_reference_insert_pieces): New function.
4932 (vn_nary_op_compute_hash): De-staticify.
4933 (vn_nary_op_eq): Ditto.
4934 (vn_nary_op_lookup_pieces): New function.
4935 (vn_nary_op_lookup): Add new argument.
4936 (vn_nary_op_insert_pieces): New function.
4937 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4938 (vn_phi_insert): Ditto.
4939 (visit_unary_op): Update for callee changes.
4940 (visit_binary_op): Ditto.
4941 (visit_reference_op_load): Ditto.
4942 (visit_reference_op_store): Ditto.
4943 (init_scc_vn): Init next_value_id, constant_to_value_id and
4944 constant_value_ids.
4945 (free_scc_vn): Free them.
4946 (set_hashtable_value_ids): New function.
4947 (run_scc_vn): Use it.
4948 (get_max_value_id): New function.
4949 (get_next_value_id): Ditto.
4950 (expressions_equal_p): Moved from tree-vn.c
4951 (sort_vuses): Ditto.
4952 (sort_vuses_heap): Ditto.
4953 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4954 above).
4955 * tree.c (iterative_hash_hashval_t): Made non-static
4956 * tree.h (iterative_hash_hashval_t): Declare it.
4957
4958 2008-07-08 Martin Jambor <mjambor@suse.cz>
4959
4960 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4961 instead of ipa_create_node_params.
4962 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4963 ipa_check_create_edge_args, free them with
4964 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4965
4966 * ipa-prop.c: Include flags.h and tree-inline.h.
4967 (ipa_node_params_vector): New variable.
4968 (ipa_edge_args_vector): New variable.
4969 (edge_removal_hook_holder): New variable.
4970 (node_removal_hook_holder): New variable.
4971 (edge_duplication_hook_holder): New variable.
4972 (node_duplication_hook_holder): New variable.
4973 (ipa_detect_param_modifications): Check for presence of modified flags.
4974 (ipa_compute_jump_functions): Check for presence of jump functions.
4975 (ipa_free_edge_args_substructures): New function.
4976 (ipa_create_node_params): Removed.
4977 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4978 (ipa_free_node_params_substructures): New function.
4979 (ipa_free_all_node_params): Changed to deallocate the on-the-side
4980 vector.
4981 (ipa_edge_removal_hook): New function.
4982 (ipa_node_removal_hook): New function.
4983 (duplicate_array): New function.
4984 (ipa_edge_duplication_hook): New function.
4985 (ipa_node_duplication_hook): New function.
4986 (ipa_register_cgraph_hooks): New function.
4987 (ipa_unregister_cgraph_hooks): New function.
4988 (free_all_ipa_structures_after_ipa_cp): New function.
4989
4990 * ipa-prop.h: Include vec.h.
4991 (ipa_node_params_t): New typedef with vector types for it.
4992 (ipa_edge_args_t): New typedef with vector types for it.
4993 (IPA_NODE_REF): Changed to access an on-the-side vector.
4994 (IPA_EDGE_REF): Changed to access an on-the-side vector.
4995 (ipa_check_create_node_params): New function.
4996 (ipa_check_create_edge_args): New function.
4997
4998 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
4999 all users.
5000
5001 2008-07-07 Tom Tromey <tromey@redhat.com>
5002
5003 * configure, config.in: Rebuilt.
5004 * configure.ac: Don't check for scandir or alphasort.
5005
5006 2008-07-07 Joseph Myers <joseph@codesourcery.com>
5007
5008 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
5009 types immediately after creating them.
5010
5011 2008-07-07 Joseph Myers <joseph@codesourcery.com>
5012
5013 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
5014
5015 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
5016
5017 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
5018 dump_constraint_graph.
5019 (dump_constraint_edge): New function.
5020 (dump_constraint_graph): New function.
5021 (debug_constraint_graph): New function.
5022 (dump_constraint): Removed useless comparison.
5023 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
5024 (dump_constraint_graph): Declare.
5025 (debug_constraint_graph): Declare.
5026 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
5027
5028 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
5029
5030 * config/i386/i386.c (is_va_list_char_pointer): New.
5031 (ix86_va_start): Replace compare with ms_va_list_type_node
5032 by is_va_list_char_pointer.
5033 (ix86_gimplify_va_arg): Likewise.
5034
5035 2008-07-07 Martin Jambor <mjambor@suse.cz>
5036
5037 * cgraph.c (cgraph_edge_max_uid): New variable.
5038 (struct cgraph_edge_hook_list): New type.
5039 (struct cgraph_node_hook_list): New type.
5040 (struct cgraph_2edge_hook_list): New type.
5041 (struct cgraph_2node_hook_list): New type.
5042 (first_cgraph_edge_removal_hook): New variable.
5043 (first_cgraph_node_removal_hook): New variable.
5044 (first_cgraph_edge_duplicated_hook): New variable.
5045 (first_cgraph_node_duplicated_hook): New variable.
5046 (cgraph_add_edge_removal_hook): New function.
5047 (cgraph_remove_edge_removal_hook): New function.
5048 (cgraph_call_edge_removal_hooks): New function.
5049 (cgraph_add_node_removal_hook): New function.
5050 (cgraph_remove_node_removal_hook): New function.
5051 (cgraph_call_node_removal_hooks): New function.
5052 (cgraph_add_edge_duplication_hook): New function.
5053 (cgraph_remove_edge_duplication_hook): New function.
5054 (cgraph_call_edge_duplication_hooks): New function.
5055 (cgraph_add_node_duplication_hook): New function.
5056 (cgraph_remove_node_duplication_hook): New function.
5057 (cgraph_call_node_duplication_hooks): New function.
5058 (cgraph_create_edge): Assign to edge uid.
5059 (cgraph_remove_edge): Call edge removal hooks.
5060 (cgraph_node_remove_callees): Call edge removal hooks.
5061 (cgraph_node_remove_callers): Call edge removal hooks.
5062 (cgraph_remove_node): Call node removal hooks.
5063 (cgraph_clone_edge): Call edge duplication hooks.
5064 (cgraph_clone_node): Call node duplication hooks.
5065
5066 * cgraph.h (cgraph_edge): New field uid.
5067 (cgraph_edge_hook): New type.
5068 (cgraph_node_hook): New type.
5069 (cgraph_2edge_hook): New type.
5070 (cgraph_2node_hook): New type.
5071
5072 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
5073
5074 * config.in: Regenerate.
5075
5076 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
5077
5078 * gcc.c (print_sysroot): New.
5079 (option_map, display_help, process_command): Handle the
5080 -print-sysroot option.
5081 (main): Print the sysroot if requested.
5082 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
5083
5084 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5085
5086 PR target/34780
5087 * unwind-pe.h (size_of_encoded_value): add attribute unused.
5088
5089 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
5090
5091 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
5092 (assign_parm_setup_block_p): Also check mode of entry_parm.
5093
5094 2008-07-07 Richard Guenther <rguenther@suse.de>
5095
5096 * tree-ssa-structalias.h (set_used_smts): Remove.
5097 * tree-ssa-structalias.c (used_smts): Likewise.
5098 (set_used_smts): Likewise.
5099 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
5100 call to set_used_smts.
5101
5102 2008-07-07 Richard Guenther <rguenther@suse.de>
5103
5104 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
5105 (new_var_info): Set it to false.
5106 (solution_set_add): Correctly handle pointers outside a var and
5107 inside a field.
5108 (type_safe): Treat variables with is_full_var properly.
5109 (do_sd_constraint): Likewise.
5110 (do_ds_constraint): Likewise.
5111 (process_constraint): Remove zeroing offset for !use_field_sensitive.
5112 (get_constraint_for_ptr_offset): New function.
5113 (get_constraint_for_component_ref): For addresses at least include
5114 the last field of the variable. Handle is_full_vars properly.
5115 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
5116 (handle_ptr_arith): Remove.
5117 (find_func_aliases): Simplify assignment handling.
5118 (create_function_info_for): For parameter and result varinfos set
5119 is_full_var flag.
5120 (create_variable_info_for): Set is_full_var flag whenever we
5121 just created a single varinfo for a decl.
5122 (init_alias_vars): Initialize use_field_sensitive from
5123 max-fields-for-field-sensitive parameter.
5124
5125 2008-07-07 Richard Guenther <rguenther@suse.de>
5126
5127 PR tree-optimization/36713
5128 * tree-flow-inline.h (is_call_used): New function.
5129 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
5130 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5131 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
5132
5133 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
5134
5135 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
5136
5137 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
5138
5139 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
5140
5141 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
5142 Nathan Sidwell <nathan@codesourcery.com>
5143
5144 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
5145 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
5146 tmake_file.
5147 * config/m68k/t-linux: New.
5148 * doc/install.texi: Document m68k-*-linux is now multilibbed by
5149 default.
5150
5151 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
5152
5153 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
5154 * config/m68k/m68k-devices.def: Remove multilibs that only differ
5155 by MAC/EMAC.
5156
5157 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5158
5159 * gcc.c (execute): Fix -Wc++-compat warning.
5160
5161 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
5162
5163 PR target/36720
5164 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
5165 constant for little endian.
5166
5167 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
5168
5169 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
5170 mips_base_mips16 instead of TARGET_MIPS16.
5171 (mips_base_mips16): Declare.
5172 * config/mips/mips.c (mips_base_mips16): Make global.
5173 (was_mips16_p): Remove GTY marker.
5174 (was_mips16_pch_p): New variable.
5175 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
5176 (mips_override_options): Force to non-MIPS16 mode initially.
5177 Do not complain about MIPS16 PIC incompatibilities here.
5178 Only allow -mgpopt if -mexplicit-relocs is in force for
5179 non-MIPS16 code.
5180
5181 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
5182
5183 * configure.ac: Check for caddr_t, define to char * if not defined.
5184 * configure: Regenerate.
5185 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
5186 (mmap_gt_pch_use_address): Likewise.
5187 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
5188
5189 2008-07-06 Richard Guenther <rguenther@suse.de>
5190
5191 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
5192 (new_var_info): Deal with it.
5193 (solution_set_add): Likewise.
5194 (bitpos_of_field): Make signed, fix.
5195 (struct fieldoff): Remove type and decl fields. Make size field
5196 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
5197 flags.
5198 (fieldoff_compare): Deal with it.
5199 (push_fields_onto_fieldstack): Remove has_union argument, glob
5200 adjacent non-pointer fields together.
5201 (create_function_info_for): Do not set has_union.
5202 (create_variable_info_for): Simplify.
5203
5204 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
5205
5206 * config.gcc (extra_headers): Add cross-stdarg.h for target
5207 x86_64-*-* and i?86-*-*.
5208 * config/i386/cross-stdarg.h: New.
5209 * builtins.c (std_fn_abi_va_list): New.
5210 (std_canonical_va_list_type): New.
5211 (stabilize_va_list): Replace va_list_type_node use by
5212 mtarget.canonical_va_list_type.
5213 (gimplify_va_arg_expr): Likewise.
5214 (expand_builtin_va_copy): Replace va_list_type_node use by
5215 mtarget.fn_abi_va_list.
5216 * tree-sra.c (is_va_list_type): New helper.
5217 (decl_can_be_decomposed_p): Replace
5218 va_list_type_node use by is_va_list_type.
5219 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
5220 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5221 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
5222 * config/i386/i386-protos.h (ix86_get_valist_type): New.
5223 (ix86_enum_va_list): New.
5224 * config/i386/i386.c (sysv_va_list_type_node): New.
5225 (ms_va_list_type_node): New.
5226 (ix86_function_type_abi): Remove sorry.
5227 (ix86_build_builtin_va_list_abi): New.
5228 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
5229 for 64-bit targets.
5230 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
5231 (ix86_init_builtins_va_builtins_abi): New.
5232 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
5233 for 64-bit targets.
5234 (ix86_handle_abi_attribute): New.
5235 (attribute_spec): Add sysv_abi and ms_abi.
5236 (ix86_fn_abi_va_list): New.
5237 (ix86_canonical_va_list_type): New.
5238 (ix86_enum_va_list): New.
5239 (TARGET_FN_ABI_VA_LIST): New.
5240 (TARGET_CANONICAL_VA_LIST_TYPE): New.
5241 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
5242 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
5243 (TARGET_CANONICAL_VA_LIST_TYPE): New.
5244 (TARGET_ENUM_VA_LIST): New.
5245 * expr.h (std_fn_abi_va_list): New.
5246 (std_canonical_va_list_type): New.
5247 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
5248 (TARGET_CANONICAL_VA_LIST_TYPE): New.
5249 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
5250 TARGET_CANONICAL_VA_LIST_TYPE.
5251 * target.h (struct gcc_target): Add fn_abi_va_list hook
5252 and canonical_va_list_type hook.
5253
5254 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5255
5256 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
5257 integral and pointer types.
5258
5259 2008-07-04 Roger Sayle <roger@eyesopen.com>
5260
5261 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
5262 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
5263
5264 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
5265
5266 PR target/36684
5267 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
5268
5269 2008-07-04 Jakub Jelinek <jakub@redhat.com>
5270
5271 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
5272 build_gimple_modify_stmt.
5273 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
5274 gimple operand. Use fold_build* instead of build*.
5275
5276 2008-07-04 Richard Guenther <rguenther@suse.de>
5277
5278 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
5279 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
5280 properly to compute the reachability set if we do field-sensitive PTA.
5281 * invoke.texi (max-fields-for-field-sensitive): Document default.
5282 * opts.c (decode_options): Set max-fields-for-field-sensitive to
5283 100 for optimize >= 2.
5284
5285 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5286
5287 * ggc-zone.c (lookup_page_table_if_allocated,
5288 set_page_table_entry, zone_find_object_size, alloc_small_page,
5289 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
5290 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
5291 -Wc++-compat and/or -Wcast-qual warnings.
5292
5293 2008-07-04 Alan Modra <amodra@bigpond.net.au>
5294
5295 PR target/36634
5296 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
5297 pic_offset_table_rtx to be marked as used here.
5298 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
5299 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
5300 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
5301 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
5302 !TARGET_SECURE_PLT.
5303
5304 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5305
5306 * alloc-pool.c (hash_descriptor, eq_descriptor,
5307 alloc_pool_descriptor): Fix -Wc++-compat warnings.
5308 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
5309 Likewise.
5310 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
5311 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
5312 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
5313 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
5314 Likewise.
5315
5316 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
5317
5318 * tree-flow.h (loop_only_exit_p): Declare.
5319 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
5320 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
5321 the number of iterations if it is constant. Otherwise, if this is the
5322 only possible exit of the loop, use the conservative estimate on the
5323 number of iterations of the entire loop if available.
5324
5325 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
5326
5327 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
5328 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
5329 Add synchronization functions.
5330 * config/sync.c: New file.
5331 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
5332 (LIBGCC_SYNC_CFLAGS): Likewise.
5333
5334 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
5335
5336 PR target/36710
5337 * config/i386/i386.md (mode): Add TF to "mode" attribute.
5338 (*pushtf_sse): New insn pattern.
5339 (pushtf splitters): New splitters.
5340
5341 2008-07-03 Michael Meissner <gnu@the-meissners.org>
5342
5343 PR middle-end/35736
5344 * predict.c (build_predict_expr): Use void_type_node for the tree
5345 type, instead of NULL_TREE.
5346
5347 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
5348
5349 * config/i386/i386.c (contains_aligned_value_p): Return true
5350 for TCmode.
5351 (ix86_data_alignment): Align TCmode to 128bits.
5352 (ix86_local_alignment): Likewise.
5353
5354 2008-07-03 Andrew Haley <aph@redhat.com>
5355
5356 PR bootstrap/33304
5357 * vec.h (VEC_TA): New.
5358 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
5359 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
5360 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
5361 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
5362 (C_COMMON_FIXED_TYPES): Remove first arg.
5363 (C_COMMON_FIXED_MODE_TYPES): Likewise.
5364 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
5365 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
5366 not to use empty macro arguments.
5367
5368 2008-07-02 Joseph Myers <joseph@codesourcery.com>
5369
5370 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
5371 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
5372 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
5373 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
5374 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
5375 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
5376 config/ia64/crtn.asm, config/m68hc11/larith.asm,
5377 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
5378 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
5379 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
5380 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
5381 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
5382 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
5383 config/rs6000/e500crtres64gpr.asm,
5384 config/rs6000/e500crtres64gprctr.asm,
5385 config/rs6000/e500crtrest32gpr.asm,
5386 config/rs6000/e500crtrest64gpr.asm,
5387 config/rs6000/e500crtresx32gpr.asm,
5388 config/rs6000/e500crtresx64gpr.asm,
5389 config/rs6000/e500crtsav32gpr.asm,
5390 config/rs6000/e500crtsav64gpr.asm,
5391 config/rs6000/e500crtsav64gprctr.asm,
5392 config/rs6000/e500crtsavg32gpr.asm,
5393 config/rs6000/e500crtsavg64gpr.asm,
5394 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
5395 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
5396 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
5397 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
5398 config/sparc/sol2-cn.asm: Remove .file directives.
5399
5400 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
5401
5402 * resource.c (mark_referenced_resources): Look inside
5403 UNSPEC_VOLATILEs and ASM_INPUTs.
5404
5405 2008-07-02 Ian Lance Taylor <iant@google.com>
5406
5407 * rtlanal.c (add_reg_note): New function.
5408 * rtl.h (add_reg_note): Declare.
5409 * auto-inc-dec.c (attempt_change): Use add_reg_note.
5410 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
5411 * builtins.c (expand_builtin_longjmp): Likewise.
5412 (expand_builtin_nonlocal_goto): Likewise.
5413 * calls.c (emit_call_1, expand_call): Likewise.
5414 * cfgexpand.c (add_reg_br_prob_note): Likewise.
5415 * cfglayout.c (fixup_reorder_chain): Likewise.
5416 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5417 (commit_one_edge_insertion): Likewise.
5418 * combine.c (move_deaths, distribute_notes): Likewise.
5419 * df-problems.c (df_set_note): Likewise.
5420 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
5421 (set_unique_reg_note): Likewise.
5422 (emit_copy_of_insn_after): Likewise.
5423 * expr.c (expand_expr_real): Likewise.
5424 * gcse.c (add_label_notes): Likewise.
5425 * haifa-sched.c (create_check_block_twin): Likewise.
5426 * jump.c (mark_jump_label_1): Likewise.
5427 * loop-doloop.c (add_test, doloop_modify): Likewise.
5428 * loop-unswitch.c (compare_and_jump_seq): Likewise.
5429 * lower-subreg.c (move_eh_region_note): Likewise.
5430 * optabs.c (emit_libcall_block): Likewise.
5431 * predict.c (predict_insn): Likewise.
5432 (combine_predictions_for_insn): Likewise.
5433 * recog.c (peephole2_optimize): Likewise.
5434 * regmove.c (try_auto_increment): Likewise.
5435 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
5436 * reload.c (find_reloads): Likewise.
5437 * reload1.c (fixup_eh_region_note): Likewise.
5438 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
5439 * reorg.c (delete_prior_computation): Likewise.
5440 (delete_computation, dbr_schedule): Likewise.
5441 * config/pa/pa.c (legitimize_pic_address): Likewise.
5442 * config/sh/sh.c (sh_reorg): Likewise.
5443
5444 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
5445
5446 PR target/36669
5447 * config/libgcc-glibc.ver: Add %exclude.
5448 * config/m32r/libgcc-glibc.ver: Likwise.
5449 * config/s390/libgcc-glibc.ver: Likwise.
5450 * config/sh/libgcc-glibc.ver: Likwise.
5451 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
5452
5453 * config/i386/libgcc-glibc.ver: New.
5454
5455 * config/i386/libgcc-x86_64-glibc.ver: Removed.
5456
5457 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
5458
5459 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
5460 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
5461 i[34567]86-*-linux*, x86_64-*-linux*. Add
5462 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
5463 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
5464 x86_64-*-linux*. Add i386/t-linux to tmake_file for
5465 i[34567]86-*-linux*, x86_64-*-linux*.
5466
5467 * libgcc-std.ver: Add empty GCC_4.4.0.
5468
5469 * mkmap-symver.awk: Support multiple versions per symbol.
5470
5471 * config/i386/i386.c (ix86_init_builtins): Always define
5472 __builtin_fabsq and __builtin_copysignq with fallbacks.
5473 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
5474 and __builtin_copysignq if SSE2 isn't available.
5475
5476 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
5477 (LIBGCC2_TF_CEXT): Likwise.
5478 (TF_SIZE): Likwise.
5479
5480 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
5481
5482 * config/i386/sfp-machine.h: Moved to libgcc.
5483
5484 * config/i386/sfp-machine.h: New.
5485 * config/i386/t-linux: Likwise.
5486
5487 * config/i386/t-darwin: Remove softfp_wrap_start and
5488 softfp_wrap_end.
5489 * config/i386/t-darwin64: Likewise.
5490
5491 * config/i386/t-fprules-softfp64: Renamed to ...
5492 * config/i386/t-fprules-softfp: This.
5493
5494 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
5495 and softfp_wrap_end.
5496
5497 2008-07-02 Jason Merrill <jason@redhat.com>
5498
5499 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
5500
5501 * tree.c (ctor_to_list): New fn.
5502 * tree.h: Declare it.
5503 (CONSTRUCTOR_ELT): New macro.
5504 (CONSTRUCTOR_NELTS): New macro.
5505
5506 2008-07-02 Richard Guenther <rguenther@suse.de>
5507
5508 * tree-ssa-structalias.c (struct variable_info): Reorder
5509 to fill padding on 64bit hosts. Make collapsed_to an int.
5510 (get_varinfo_fc): Deal with that.
5511 (new_var_info): Likewise.
5512 (collapse_rest_of_var): Likewise.
5513
5514 2008-07-02 Joshua Sumali <jsumali@redhat.com>
5515
5516 * doc/install.texi (--enable-java-home): Document.
5517 (--enable-aot-compile-rpm): Likewise.
5518 (--with-arch-directory): Likewise.
5519 (--with-os-directory): Likewise.
5520 (--with-origin-name): Likewise.
5521 (--with-arch-suffix): Likewise.
5522 (--with-jvm-root-dir): Likewise.
5523 (--with-jvm-jar-dir): Likewise.
5524 (--with-python-dir): Likewise.
5525
5526 2008-07-02 Richard Guenther <rguenther@suse.de>
5527
5528 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
5529 from decls explicitly. Merge operand checking from tuples.
5530
5531 2008-07-02 Martin Jambor <mjambor@suse.cz>
5532
5533 * tree-switch-conversion.c: Included timevar.h which I forgot before.
5534
5535 2008-07-02 Martin Jambor <mjambor@suse.cz>
5536
5537 * tree-switch-conversion.c: Included timevar.h
5538 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
5539
5540 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
5541
5542 2008-07-02 Martin Jambor <mjambor@suse.cz>
5543
5544 * tree-switch-conversion.c: Corrected various comments and
5545 whitespace issues
5546 (build_constructors): Fixed minor formatting mistakes.
5547
5548 * invoke.texi (Optimize Options): Corrected the
5549 switch-conversion-max-branch-ratio parameter.
5550
5551 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
5552
5553 * final.c (asm_insn_count): Return zero for an empty asm body.
5554
5555 2008-07-02 Richard Guenther <rguenther@suse.de>
5556
5557 * bitmap.h (bitmap_set_bit): Return bool.
5558 (bitmap_clear_bit): Likewise.
5559 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
5560 write to the bitmap if it would.
5561 (bitmap_clear_bit): Likewise.
5562 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
5563 bitmap_set_bit return value.
5564 (add_pred_graph_edge): Likewise.
5565 (add_graph_edge): Likewise.
5566 (do_sd_constraint): Likewise.
5567 (do_ds_constraint): Likewise.
5568
5569 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5570
5571 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
5572 Fix -Wc++-compat and/or -Wcast-qual warnings.
5573 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
5574 gen_regparm_prefix): Likewise.
5575 * vmsdbgout.c (write_modbeg, lookup_filename,
5576 vmsdbgout_source_line, vmsdbgout_init): Likewise.
5577
5578 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
5579
5580 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
5581 defaults.h definition apply.
5582
5583 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
5584
5585 * function.c (assign_parm_remove_parallels): New.
5586 (assign_parm_setup_block_p): Do not return true for non-BLKmode
5587 PARALLELs.
5588 (assign_parm_setup_block): Do not handle them.
5589 (assign_parm_setup_reg, assign_parm_setup_stack): Call
5590 assign_parm_remove_parallels.
5591
5592 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
5593
5594 * c-typeck.c (convert_for_assignment): Use
5595 vector_targets_convertible_p.
5596 * c-common.c (vector_targets_convertible_p): New.
5597 * c-common.h (vector_targets_convertible_p): New prototype.
5598 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
5599 opaque_p_V2SI_type_node.
5600
5601 2008-07-01 Steve Ellcey <sje@cup.hp.com>
5602
5603 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
5604 RFmode constants.
5605
5606 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
5607
5608 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
5609 TFmode constants via two element DImode vector for hosts with
5610 HOST_BITS_PER_WIDE_INT < 64.
5611 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
5612 also for HOST_BITS_PER_WIDE_INT < 64.
5613
5614 2008-07-01 Richard Guenther <rguenther@suse.de>
5615
5616 PR tree-optimization/36666
5617 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
5618 (get_constraint_exp_from_ssa_var): Split into ...
5619 (get_constraint_exp_for_temp): ... this ...
5620 (get_constraint_for_ssa_var): ... and that.
5621 Return constraint expressions for all touched sub-fields
5622 if the results address is not taken.
5623 (process_constraint): Remove assertion that aggregate
5624 assignments do not happen at this place.
5625 (get_constraint_for_component_ref): Add address_p argument.
5626 Return constraint expressions for all touched sub-fields
5627 if the results address is not taken.
5628 (do_deref): Use get_constraint_exp_for_temp.
5629 (get_constraint_for_1): Rename from ...
5630 (get_constraint_for): ... this. Add the old function as wrapper.
5631 (do_structure_copy): Use get_constraint_for_1.
5632
5633 2008-07-01 Martin Jambor <mjambor@suse.cz>
5634
5635 * Makefile.in (tree-switch-conversion.o): Add.
5636 (OBJS-common): Add tree-swtch-conversion.o.
5637 * passes.c (init_optimization_passes): Add pass_convert_switch.
5638 * tree-pass.h: (pass_convert_switch): Add.
5639 * tree-switch-conversion.c: New file.
5640 * gcc.dg/tree-ssa/cswtch.c: New testcase.
5641 * common.opt (ftree-cswtch): New option.
5642 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5643 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5644 * opts.c (decode_options): Set flag_tree_switch_conversion when
5645 optimization level is >= 2.
5646 * doc/invoke.texi (Optimize Options): Added description of
5647 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
5648
5649 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5650
5651 * config/darwin-driver.c (darwin_default_min_version): Fix
5652 -Wc++-compat warnings.
5653
5654 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
5655
5656 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
5657 of operand 0.
5658
5659 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
5660
5661 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
5662
5663 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
5664
5665 PR rtl-optimization/34744
5666 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
5667 (df_scan_free_internal): Free data structures not
5668 allocated in storage pools.
5669 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
5670 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
5671 df_scan_free_mws_vec.
5672 * dse.c (dse_step6): Free offset_map_p and offset_map_n
5673 unconditionally.
5674
5675 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * config/i386/i386.c (contains_aligned_value_p): Return true
5678 for __float128.
5679 (ix86_function_arg_boundary): Return its natural boundary
5680 for __float128.
5681 (return_in_memory_32): Don't check TDmode.
5682 (ix86_split_to_parts): Support splitting into 4 parts and
5683 support TFmode for 32bit target.
5684 (ix86_split_long_move): Support splitting into 4 parts.
5685 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
5686 for SSE2.
5687 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
5688 (ix86_init_builtins): Here.
5689 (ix86_scalar_mode_supported_p): Always return true for TFmode.
5690 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
5691 'q' and 'w', respectively.
5692
5693 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
5694 TARGET_64BIT.
5695 (movtf_internal): Likewise.
5696 (<code>tf2): Likewise.
5697 (*absnegtf2_sse): Likewise.
5698 (copysign<mode>3): Likewise.
5699 (copysign<mode>3_const): Likewise.
5700 (copysign<mode>3_var): Likewise.
5701 (define_split UNSPEC_COPYSIGN): Likewise.
5702 * config/i386/sse.md (*nandtf3): Likewise.
5703 (<code>tf3): Likewise.
5704 (*<code>tf3): Likewise.
5705
5706 2008-06-30 Joey Ye <joey.ye@intel.com>
5707 H.J. Lu <hongjiu.lu@intel.com>
5708
5709 * global.c (compute_regsets): Set frame_pointer_needed here.
5710 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
5711
5712 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5713
5714 * doc/install.texi (specific): Expand Windows build notes.
5715
5716 2008-06-30 Ira Rosen <irar@il.ibm.com>
5717
5718 PR tree-optimization/36648
5719 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
5720 number of prolog iterations by step. Fix the comment.
5721
5722 2008-06-30 Richard Guenther <rguenther@suse.de>
5723
5724 PR middle-end/36671
5725 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
5726 handle calls from ECF_MALLOC functions.
5727 (handle_pure_call): ECF_MALLOC functions do not return
5728 call-used memory.
5729 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
5730
5731 2008-06-29 Andreas Schwab <schwab@suse.de>
5732
5733 * config/m68k/m68k.c (print_operand): Always print a float
5734 constant in hex.
5735 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
5736 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
5737 Remove macros.
5738
5739 * config/rs6000/x-linux64: Remove never used file.
5740
5741 2008-06-29 Richard Guenther <rguenther@suse.de>
5742
5743 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
5744 prototype.
5745 (struct alias_info): Move ...
5746 * tree-ssa-alias.c: ... here.
5747 (update_alias_info): Declare.
5748 (compute_may_aliases): Call it.
5749 (update_alias_info): New function.
5750 * tree-ssa-structalias.c (update_alias_info): Move ...
5751 * tree-ssa-alias.c (update_alias_info_1): ... here.
5752 * tree-ssa-structalias.c (process_constraint_1): Remove
5753 unused from_call argument. Rename to ...
5754 (process_constraint): ... this. Delete old wrapper.
5755 (make_constraint_to): Adjust callers.
5756 (handle_const_call): Likewise.
5757 (handle_pure_call): Likewise.
5758 (init_base_vars): Likewise.
5759 (handle_lhs_call): Likewise. Remove unnecessary constraint.
5760 (find_func_aliases): We don't need structure copies for
5761 complex types.
5762 (make_constraint_from_anything): Remove.
5763 (create_variable_info_for): For globals make constraints
5764 from escaped, not from anything.
5765 (compute_points_to_sets): Do not call update_alias_info.
5766 (ipa_pta_execute): Use make_constraint_from.
5767
5768 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5769
5770 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
5771 (bitmap.o-warn, dominance.o-warn): New.
5772 * configure.ac (cxx_compat_warn): Delete.
5773 (loose_warn): Add -Wcast-qual and -Wc++-compat.
5774 * system.h: Remove #pragma diagnostic for -Wcast-qual and
5775 -Wc++-compat.
5776 * configure: Regenerate.
5777
5778 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
5779 warnings.
5780
5781 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5782
5783 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
5784 * df-scan.c (df_notes_rescan): Likewise.
5785 * ggc-page.c (set_page_table_entry): Likewise.
5786 * intl.c (gcc_gettext_width): Likewise.
5787 * varasm.c (get_unnamed_section, get_noswitch_section,
5788 get_section): Likewise.
5789
5790 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
5791
5792 * regrename.c (build_def_use): Don't copy RTX.
5793
5794 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
5795
5796 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
5797 (Type Attributes): Fix nesting of @table and @subsection. Adjust
5798 punctuation. Use @ref instead of @xref.
5799 (Function Names): Remove stray @display/@end display.
5800 (C++ Attributes): Use @ref instead of @xref.
5801 (Deprecated Features): Fix punctuation around @xref.
5802 (Backwards Compatibility): Likewise.
5803 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
5804
5805 2008-06-28 Joseph Myers <joseph@codesourcery.com>
5806
5807 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
5808 constants for E500 double.
5809
5810 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5811
5812 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
5813 element type of const_vector.
5814
5815 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
5816
5817 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
5818 Remove FLAGS_REG clobber from expander pattern.
5819 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
5820 (anddi3, andsi3, andhi3, andqi3): Ditto.
5821 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
5822 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
5823 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
5824 (ashlsi3, ashlhi3, ashlqi3): Ditto.
5825 (ashrsi3, ashrhi3, ashrqi3): Ditto.
5826 (lshrsi3, lshrhi3, lshrqi3): Ditto.
5827 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
5828 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
5829
5830 2008-06-28 Richard Guenther <rguenther@suse.de>
5831
5832 * tree-ssa-structalias.c (callused_id, var_callused,
5833 callused_tree): Add.
5834 (handle_pure_call): New function.
5835 (find_func_aliases): Call it.
5836 (find_what_p_points_to): Handle the call-used set.
5837 (clobber_what_escaped): Likewise.
5838 (compute_call_used_vars): New function.
5839 (init_base_vars): Init the call-used variable.
5840 (do_sd_constraint): Do not propagate the solution from CALLUSED
5841 but use CALLUSED as a placeholder.
5842 (solve_graph): Likewise.
5843 * tree-flow-inline.h (gimple_call_used_vars): New function.
5844 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
5845 (compute_call_used_vars): Declare.
5846 * tree-ssa-alias.c (set_initial_properties): Call
5847 compute_call_used_vars.
5848 (reset_alias_info): Clear call-used variables.
5849 (add_call_clobber_ops): Assert we are not called for const/pure
5850 functions. Remove handling of them.
5851 (add_call_read_ops): Handle pure functions by adding the
5852 call-used set of variables as VUSEs.
5853 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
5854 (delete_tree_ssa): Free it.
5855 * tree-dfa.c (remove_referenced_var): Clear the var from the
5856 call-used bitmap.
5857
5858 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
5859
5860 * tree.c (build_varargs_function_type_list): New.
5861 (build_function_type_list_1): New.
5862 (build_function_type_list): Use build_function_type_list_1.
5863 * tree.h (build_varargs_function_type_list): New.
5864
5865 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5866
5867 PR target/34856
5868 * config/spu/spu.c (spu_builtin_splats): Do not generate
5869 invalid CONST_VECTOR expressions.
5870 (spu_expand_vector_init): Likewise.
5871
5872 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
5873
5874 * optabs.c (libfunc_decls): New variable.
5875 (libfunc_decl_hash, libfunc_decl_eq): New functions.
5876 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
5877 for the same function twice.
5878
5879 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
5880
5881 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
5882 ix86_expand_binary_operator directly.
5883 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
5884 for operand 2.
5885 (*ashrti3_1): Ditto.
5886 (*lshrti3_1): Ditto.
5887 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
5888 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
5889 using only one splitter. Conditionaly execute splitter before or
5890 after peephole2 pass.
5891 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
5892 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
5893 Use only one alternative in asm template.
5894 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
5895 in asm template.
5896 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
5897 "J" operand constraint for operand 2.
5898 (*ashldi3_cconly_rex64): Ditto.
5899 (*ashrdi3_cmp_rex64): Ditto.
5900 (*ashrdi3_cconly_rex64): Ditto.
5901 (*lshrdi3_cmp_rex64): Ditto.
5902 (*lshrdi3_cconly_rex64): Ditto.
5903 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
5904 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
5905 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
5906 gen_x86_shrd_1.
5907
5908 2008-06-27 Jakub Jelinek <jakub@redhat.com>
5909
5910 * gimplify.c (omp_is_private): Don't return true if decl is not
5911 already private on #pragma omp for or #pragma omp parallel for.
5912
5913 PR debug/36617
5914 * tree-cfg.c (struct move_stmt_d): Replace block field with
5915 orig_block and new_block fields.
5916 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
5917 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
5918 (move_block_to_fn): Replace vars_map and new_label_map arguments
5919 with struct move_stmt_d pointer.
5920 (replace_block_vars_by_duplicates): New function.
5921 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
5922 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
5923 all subblocks of ORIG_BLOCK to the new function. Call
5924 replace_block_vars_by_duplicates.
5925 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
5926 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
5927 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
5928 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
5929 (expand_omp): Temporarily set input_location to the location of
5930 region's controlling stmt.
5931 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
5932 BIND_EXPR, push ctx->block_vars and gimplification vars into
5933 the BIND_EXPR and its block's BLOCK_VARS instead of directly
5934 into dest function.
5935 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
5936 there are any BLOCK_VARS.
5937 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
5938 OMP_PARALLEL or OMP_TASK stmt.
5939 (lower_omp): Save and restore input_location around the lower_omp_1
5940 call.
5941
5942 2008-06-27 Richard Guenther <rguenther@suse.de>
5943
5944 PR tree-optimization/36400
5945 PR tree-optimization/36373
5946 PR tree-optimization/36344
5947 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
5948 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
5949 (update_alias_info): Remove call clobbering code.
5950 (make_constraint_to): New helper function.
5951 (make_escape_constraint): Likewise.
5952 (handle_rhs_call): Use it on all pointer containing arguments.
5953 Also mark the static chain escaped.
5954 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
5955 instead of ANYTHING.
5956 (make_constraint_from): New helper split out from ...
5957 (make_constraint_from_anything): ... here.
5958 (find_func_aliases): Add constraints for escape sites.
5959 (intra_create_variable_infos): Make constraints from NONLOCAL
5960 for parameters.
5961 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
5962 as ANYTHING.
5963 (clobber_what_p_points_to): Remove.
5964 (clobber_what_escaped): New function.
5965 (init_base_vars): Init NONLOCAL and ESCAPED.
5966 (do_sd_constraint): Do not propagate the solution from ESCAPED
5967 but use ESCAPED as a placeholder.
5968 (solve_graph): Likewise.
5969 * tree-flow.h (clobber_what_p_points_to): Remove.
5970 (clobber_what_escaped): Declare.
5971 * tree-ssa-alias.c (set_initial_properties): Call it.
5972 Remove code clobbering escaped pointers.
5973
5974 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
5975
5976 * function.c (allocate_struct_function): Only allocate a unique
5977 funcdef_no if the decl is nonzero.
5978
5979 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
5980
5981 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
5982 * config/mips/mips.c (mips_split_const_insns): New function.
5983 * config/mips/mips.md (move_type): New attribute.
5984 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
5985 (dword_mode): New attribute.
5986 (type): Avoid long line. Map "move_type"s to "type"s,
5987 choosing "multi" for doubleword moves if appropriate.
5988 Swap MTC/MFC comments to match their declaration order.
5989 (extended_mips16): Default to "yes" if "move_type" is "sll0",
5990 "type" is "branch" or "jal" is "direct".
5991 (length): Handle "extended_mips16" first. Make the default
5992 "0" for "ghost" instructions. Set the length from "move_type".
5993 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
5994 of "type", with "sll0" for the register alternative. Remove the
5995 "extended_mips16" attribute.
5996 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
5997 of "type", with "shift_shift" for the register alternative.
5998 Remove the "length" attribute.
5999 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
6000 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
6001 of "type", with "andi" for the register alternative.
6002 (*zero_extendqihi2): Likewise.
6003 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
6004 of "andi" instead of a "type" of "arith".
6005 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
6006 instead of "type".
6007 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
6008 (mov_<store>r, *mov<mode>_ra): Likewise.
6009 (extendsidi2): Use "move_type" instead of "type", with "move"
6010 for the register alternative.
6011 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
6012 of "type", with "signext" for the register alternative.
6013 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
6014 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
6015 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
6016 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
6017 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
6018 (unnamed branch insn): Likewise.
6019 (*movdi_gp32_fp64): Fold into...
6020 (*movdi_32bit): ...here.
6021 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
6022 (*movdf_hardfloat): ...this new pattern.
6023 (*movdf_softfloat): Remove redundant FPR alternatives.
6024 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
6025 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
6026 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
6027 the "move" attribute.
6028 (*movdi_32bit): Use "move_type" instead of "type" and remove the
6029 "length" attribute. Use "fpload" and "fpstore" instead of "load"
6030 and "store" for COP loads and stores.
6031 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
6032 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
6033 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
6034 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
6035 (*movtf_mips16, *movv2sf): Likewise.
6036 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
6037 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
6038 (mfhc1<mode>): Use "move_type" instead of "move".
6039 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
6040 (loadgp_blockage): Remove the "length" attribute.
6041 (blockage, set_got_version, update_got_version): Likewise.
6042 (call_internal): Remove the "extended_mips16" attribute.
6043 (call_value_internal, call_value_multiple_internal): Likewise.
6044 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
6045 instead of "move".
6046 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
6047 the "length" attribute.
6048
6049 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6050
6051 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
6052 -Wcast-qual warnings.
6053 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
6054 handle_pragma_pop_macro): Likewise.
6055 * collect2.c (resolve_lib_name): Likewise.
6056 * config/arc/arc.c (arc_init): Likewise.
6057 * config/arm/arm.c (neon_builtin_compare,
6058 locate_neon_builtin_icode): Likewise.
6059 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
6060 * config/bfin/bfin.c (bfin_init_machine_status,
6061 bfin_optimize_loop): Likewise.
6062 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6063 * config/cris/cris.c (cris_init_expanders): Likewise.
6064 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
6065 * config/darwin.c (machopic_indirection_eq,
6066 machopic_indirection_name, machopic_output_indirection): Likewise.
6067 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
6068 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
6069 frv_optimize_membar): Likewise.
6070 * config/i386/cygwin.h (mingw_scan,
6071 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
6072 * config/i386/cygwin1.c (mingw_scan): Likewise.
6073 * config/i386/i386.c (machopic_output_stub): Likewise.
6074 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
6075 i386_pe_unique_section): Likewise.
6076 * config/ia64/ia64.c (ia64_init_machine_status,
6077 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
6078 Likewise.
6079 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
6080 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
6081 * config/m68k/m68k.c (m68k_handle_option,
6082 m68k_sched_md_init_global): Likewise.
6083 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
6084 mcore_unique_section): Likewise.
6085 * config/mips/mips.c (mips_block_move_straight,
6086 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
6087 Likewise.
6088 * config/mmix/mmix.c (mmix_init_machine_status,
6089 mmix_encode_section_info): Likewise.
6090 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
6091 * config/rs6000/rs6000.c (rs6000_init_machine_status,
6092 print_operand_address, output_toc, redefine_groups,
6093 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
6094 * config/s390/s390.c (s390_init_machine_status): Likewise.
6095 * config/score/score.c (score_block_move_straight,
6096 score_block_move_loop_body): Likewise.
6097 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6098 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6099 * emit-rtl.c (find_auto_inc): Likewise.
6100 * gcc.c (translate_options, process_command): Likewise.
6101 * reorg.c (dbr_schedule): Likewise.
6102 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
6103 * xcoffout.c (xcoffout_declare_function): Likewise.
6104
6105 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
6106
6107 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
6108 ipa-pta working again.
6109
6110 2008-06-27 David Edelsohn <edelsohn@gnu.org>
6111
6112 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
6113 genautomata.
6114
6115 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
6116
6117 * config.gcc (powerpc*-*-*): Add new core e500mc.
6118 * config/rs6000/e500mc.md: New file.
6119 * config/rs6000/rs6000.c (processor_costs): Add new costs for
6120 e500mc.
6121 (rs6000_override_options): Add e500mc case to
6122 processor_target_table. Altivec and Spe options not allowed
6123 with e500mc. Add isel instruction to e500mc by
6124 default. Initialize rs6000_cost for e500mc.
6125 (rs6000_issue_rate): Set issue rate for e500mc.
6126 * config/rs6000/rs6000.h (processor_type): Add
6127 PROCESSOR_PPCE500MC.
6128 (ASM_CPU_SPEC): Add e500mc.
6129 Set TARGET_ISEL to rs6000_isel.
6130 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
6131 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
6132 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
6133 Include e500mc.md.
6134 * doc/invoke.texi: Add e500mc to list of cpus.
6135
6136 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6137
6138 PR c/34867
6139 * c-lex.c (lex_charconst): Initialize unsignedp.
6140
6141 2008-06-27 Olivier Hainque <hainque@adacore.com>
6142
6143 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
6144 documented assumptions.
6145
6146 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
6147
6148 * dwarf2out.c: Remove trailing white spaces. Break long line
6149 in comments.
6150
6151 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
6152
6153 * libfuncs.h (LTI_synchronize): New libfunc_index.
6154 (synchronize_libfunc): Declare.
6155 * builtins.c (expand_builtin_synchronize): Consider using
6156 synchronize_libfunc before falling back on an asm blockage.
6157 * config/mips/mips.c: Include libfuncs.h
6158 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
6159
6160 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
6161
6162 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
6163 parameter. Copy stack_reg to r11 where appropriate.
6164 (no_global_regs_above): Add gpr parameter.
6165 (rs6000_stack_info): Only add padding for SPE save area if we
6166 are saving SPE GPRs and CR.
6167 (saveres_routine_syms): New variable.
6168 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
6169 Define.
6170 (rs6000_savres_routine_sym): New function.
6171 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
6172 split out of...
6173 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
6174 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
6175 Tweak FPR out-of-line saving.
6176 (rs6000_make_savres_rtx): New function.
6177 (rs6000_use_multiple_p): New function.
6178 (rs6000_savres_strategy): New function.
6179 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
6180 out-of-line if appropriate.
6181 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
6182 if we are optimizing for size.
6183 (GP_SAVE_INLINE): Define.
6184 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
6185 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
6186 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
6187 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
6188 (*save_fpregs_<mode>): Add use of r11.
6189 (*restore_gpregs_<mode>): New insn.
6190 (*return_and_restore_gpregs_<mode>): New insn.
6191 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
6192 use r11.
6193 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
6194 (*restore_gpregs_spe): New insn.
6195 (*return_and_restore_gpregs_spe): New insn.
6196 * config/rs6000/predicates.md (save_world_operation): Fix check.
6197
6198 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
6199
6200 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
6201 this point, so assert that.
6202
6203 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
6204
6205 * cfganal.c: Include vec.h and vecprim.h.
6206 (compute_idf): Import from...
6207 * tree-into-ssa (compute_idf): ...here.
6208 * basic-block.h (compute_idf): Export.
6209
6210 2008-06-26 Joseph Myers <joseph@codesourcery.com>
6211
6212 * c-decl.c (merge_decls): Use !current_function_decl to check for
6213 extern declaration of C99 inline function being at file scope.
6214
6215 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
6216
6217 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
6218
6219 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6220
6221 * alias.c (record_alias_subset, init_alias_analysis): Fix
6222 -Wc++-compat and/or -Wcast-qual warnings.
6223 * attribs.c (lookup_attribute_spec): Likewise.
6224 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
6225 copy_bb, connect_traces,
6226 find_rarely_executed_basic_blocks_and_cr): Likewise.
6227 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
6228 note_btr_set, migrate_btr_defs): Likewise.
6229 * builtins.c (result_vector, expand_builtin_memcpy,
6230 expand_builtin_mempcpy_args, expand_builtin_strncpy,
6231 builtin_memset_read_str, expand_builtin_printf,
6232 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
6233 Likewise.
6234 * caller-save.c (mark_set_regs): Likewise.
6235 * calls.c (expand_call, emit_library_call_value_1): Likewise.
6236 * cgraph.c (cgraph_edge): Likewise.
6237 * combine.c (likely_spilled_retval_1): Likewise.
6238 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
6239 htab_counts_entry_del, get_coverage_counts): Likewise.
6240 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
6241 new_cselib_val): Likewise.
6242 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
6243 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
6244 Likewise.
6245 * df-core.c (df_compact_blocks): Likewise.
6246 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
6247 * df-scan.c (df_grow_reg_info, df_ref_create,
6248 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
6249 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
6250 df_record_entry_block_defs, df_record_exit_block_uses,
6251 df_bb_verify): Likewise.
6252 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
6253 DF_REF_EXTRACT_MODE_CONST): New.
6254 * dominance.c (get_immediate_dominator, get_dominated_by,
6255 nearest_common_dominator, root_of_dom_tree,
6256 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
6257 -Wc++-compat and/or -Wcast-qual warnings.
6258 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
6259 record_store, replace_read, check_mem_read_rtx, scan_insn,
6260 dse_step1, dse_record_singleton_alias_set): Likewise.
6261 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6262
6263 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6264
6265 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
6266 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
6267 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
6268 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
6269 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
6270 add_ranges_num, add_ranges_by_labels, file_info_cmp,
6271 file_name_acquire, output_file_names, add_const_value_attribute,
6272 premark_used_types_helper, file_table_eq, file_table_hash,
6273 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
6274 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
6275 -Wcast-qual warnings.
6276 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
6277 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
6278 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
6279 gen_reg_rtx, start_sequence, init_emit): Likewise.
6280 * et-forest.c (et_new_occ, et_new_tree): Likewise.
6281 * except.c (init_eh_for_function, gen_eh_region,
6282 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
6283 arh_to_landing_pad, arh_to_label, add_action_record,
6284 add_call_site, switch_to_exception_section): Likewise.
6285 * expmed.c (synth_mult): Likewise.
6286 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
6287 store_expr): Likewise.
6288 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
6289 Likewise.
6290 * function.c (assign_stack_temp_for_type,
6291 allocate_struct_function, match_asm_constraints_1): Likewise.
6292 * gcov-io.c (gcov_allocate): Likewise.
6293 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
6294 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
6295 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
6296 record_one_set, insert_expr_in_table, insert_set_in_table,
6297 dump_hash_table, compute_hash_table_work, alloc_hash_table,
6298 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
6299 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
6300 -Wcast-qual warnings.
6301
6302 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6303
6304 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
6305 -Wcast-qual warnings.
6306 * gcc.c (process_command): Likewise.
6307 * genattrtab.c (oballoc): Use XOBNEW.
6308 (oballocvec): Define.
6309 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
6310 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
6311 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
6312 -Wc++-compat and/or -Wcast-qual warnings.
6313 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
6314 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
6315 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6316 gen_presence_absence_set, gen_automaton, gen_regexp_el,
6317 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
6318 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
6319 add_excls, process_presence_absence_names,
6320 process_presence_absence_patterns, add_presence_absence,
6321 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
6322 get_free_state, add_arc, get_free_automata_list_el,
6323 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
6324 transform_3, cache_presence, create_ainsns, create_automata,
6325 create_state_ainsn_table, dfa_insn_code_enlarge,
6326 output_trans_func, output_min_issue_delay_func,
6327 output_dead_lock_func, output_reset_func,
6328 output_get_cpu_unit_code_func, output_dfa_start_func,
6329 expand_automata): Likewise.
6330 * genextract.c (gen_insn): Likewise.
6331 * gengtype-lex.l: Likewise.
6332 * gengtype.c (read_input_list, adjust_field_type,
6333 process_gc_options): Likewise.
6334 * genoutput.c (note_constraint): Likewise.
6335 * genpreds.c (mangle, add_constraint): Likewise.
6336 * genrecog.c (process_define_predicate, new_decision,
6337 add_to_sequence): Likewise.
6338 * gensupport.c (record_insn_name): Likewise.
6339
6340 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6341
6342 * config/i386/driver-i386.c (detect_caches_amd,
6343 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
6344 and/or -Wcast-qual warnings.
6345 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
6346 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
6347 gt_pch_save): Likewise.
6348 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
6349 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
6350 * global.c (compute_regsets): Likewise.
6351 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
6352 finish_graph_dump_file): Likewise.
6353 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
6354 unlink_bb_notes): Likewise.
6355 * integrate.c (get_hard_reg_initial_val): Likewise.
6356 * ipa-prop.c (ipa_push_func_to_list): Likewise.
6357 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
6358 * local-alloc.c (update_equiv_regs): Likewise.
6359 * loop-invariant.c (check_invariant_table_size,
6360 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
6361 Likewise.
6362 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
6363 altered_reg_used, mark_altered): Likewise.
6364 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
6365 insert_var_expansion_initialization,
6366 combine_var_copies_in_loop_exit, apply_opt_in_copies,
6367 release_var_copies): Likewise.
6368 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
6369 analyze_matrix_decl, add_allocation_site, analyze_transpose,
6370 analyze_accesses_for_phi_node, check_var_notmodified_p,
6371 check_allocation_function, find_sites_in_func,
6372 record_all_accesses_in_func, transform_access_sites,
6373 transform_allocation_sites): Likewise.
6374 * omp-low.c (new_omp_region, create_omp_child_function_name,
6375 check_omp_nesting_restrictions, check_combined_parallel,
6376 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
6377 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
6378 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
6379 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
6380 Likewise.
6381 * opts-common.c (prune_options): Likewise.
6382 * opts.c (add_input_filename, print_filtered_help,
6383 get_option_state): Likewise.
6384 * params.c (add_params): Likewise.
6385 * passes.c (set_pass_for_id, next_pass_1,
6386 do_per_function_toporder, pass_fini_dump_file): Likewise.
6387 * postreload.c (reload_cse_simplify_operands): Likewise.
6388 * predict.c (tree_predicted_by_p, tree_predict_edge,
6389 clear_bb_predictions, combine_predictions_for_bb): Likewise.
6390
6391 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6392
6393 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
6394 warnings.
6395 * recog.c (check_asm_operands, validate_change_1): Likewise.
6396 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
6397 subst_asm_stack_regs): Likewise.
6398 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
6399 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
6400 * regmove.c (reg_is_remote_constant_p): Likewise.
6401 * regrename.c (regrename_optimize, scan_rtx_reg,
6402 kill_clobbered_value, kill_set_value, kill_autoinc_value):
6403 Likewise.
6404 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
6405 regstat_compute_calls_crossed): Likewise.
6406 * reload1.c (init_reload, new_insn_chain,
6407 has_nonexceptional_receiver, reload, copy_reloads,
6408 calculate_needs_all_insns, init_elim_table): Likewise.
6409 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
6410 * rtl.c (shallow_copy_rtx_stat): Likewise.
6411 * rtlanal.c (parms_set): Likewise.
6412 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
6413 sbitmap_resize, sbitmap_vector_alloc): Likewise.
6414 * sched-ebb.c (earliest_block_with_similiar_load,
6415 add_deps_for_risky_insns): Likewise.
6416 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
6417 schedule_region): Likewise.
6418 * see.c (eq_descriptor_pre_extension,
6419 hash_descriptor_pre_extension, hash_del_pre_extension,
6420 eq_descriptor_properties, hash_descriptor_properties,
6421 hash_del_properties, see_seek_pre_extension_expr,
6422 see_initialize_data_structures, see_print_register_properties,
6423 see_print_pre_extension_expr, see_delete_merged_def_extension,
6424 see_delete_unmerged_def_extension, see_emit_use_extension,
6425 see_pre_delete_extension, see_map_extension, see_commit_changes,
6426 see_analyze_merged_def_local_prop,
6427 see_analyze_merged_def_local_prop,
6428 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
6429 see_set_prop_merged_def, see_set_prop_unmerged_def,
6430 see_set_prop_unmerged_use, see_print_one_extension,
6431 see_merge_one_use_extension, see_merge_one_def_extension,
6432 see_store_reference_and_extension, see_update_uses_relevancy,
6433 see_update_defs_relevancy): Likewise.
6434 * statistics.c (hash_statistics_hash, hash_statistics_eq,
6435 hash_statistics_free, curr_statistics_hash): Likewise.
6436 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
6437 expand_asm_operands, expand_return, case_bit_test_cmp,
6438 expand_case): Likewise.
6439 * stor-layout.c (start_record_layout): Likewise.
6440 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
6441 gt_pch_save_stringpool): Likewise.
6442 * tree-data-ref.c (hash_stmt_vertex_info,
6443 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
6444 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
6445
6446 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
6447
6448 PR target/36627
6449 * config/i386/i386.md : Change constraints of HImode and QImode
6450 immediate operands from "i" to "n". Change SImode "ni" constraint to
6451 "i" and SImode "rmi" constraint to "g". Remove all constraints
6452 from const0_operand and const1_operand predicated operands.
6453 (i): Change QImode and HImode attribute from "i" to "n".
6454 (*subqi_2): Change HImode operands to QImode.
6455 (*subqi_3): Ditto.
6456
6457 2008-06-25 Olivier Hainque <hainque@adacore.com>
6458
6459 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
6460 sed substitutions.
6461
6462 2008-06-25 Richard Guenther <rguenther@suse.de>
6463
6464 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
6465 not overflow the result type.
6466
6467 2008-06-25 Richard Guenther <rguenther@suse.de>
6468
6469 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
6470 (vn_lookup): Likewise.
6471
6472 2008-06-25 Richard Guenther <rguenther@suse.de>
6473
6474 PR tree-optimization/35518
6475 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
6476 * tree-sra.c (instantiate_element): Use fold_build3 to build
6477 BIT_FIELD_REFs.
6478 (try_instantiate_multiple_fields): Likewise.
6479
6480 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
6481
6482 * config/rs6000/rs6000.md: Change all string instruction's clobber to
6483 be early clobbers.
6484
6485 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
6486
6487 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
6488 use_backchain_to_restore_sp to true
6489 if the offset of the link register save area would go over the 32k - 1
6490 offset limit of the load
6491 instructions.
6492
6493 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
6494
6495 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
6496 anchor for the type-punning blurb. Cross-reference "Structures
6497 unions enumerations and bit-fields implementation". Provide a
6498 cast-through-pointer example. Make final sentence self-contained.
6499 * doc/implement-c.texi (Structures unions enumerations and
6500 bit-fields implementation): Cross-reference the type-punning blurb
6501 in the -fstrict-aliasing documentation.
6502
6503 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
6504
6505 PR middle-end/36594
6506 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
6507 the memory instead of the memory itself for the save area.
6508
6509 2008-06-24 Olivier Hainque <hainque@adacore.com>
6510 Nicolas Roche <roche@adacore.com>
6511
6512 * gengtype.c (srcdir_len): size_t instead of int.
6513 (get_file_realbasename): New function. For F a filename, the real
6514 basename of F, with all the path components stripped.
6515 (get_file_srcdir_relative_path): New function. For F a filename, the
6516 relative path to F from $(srcdir).
6517 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
6518 get_file_realbasename. Adjust the head comment.
6519 (get_prefix_langdir_index): New function. For F a filename, return the
6520 lang_dir_names[] relative index of the language directory that is
6521 a prefix in F.
6522 (get_file_langdir): For F a filename, return the name of the language
6523 directory where F is located.
6524 (get_file_gtfilename): New function. The gt- output file name for an
6525 input filename F.
6526 (get_output_file_with_visibility): Replace in-line computations with
6527 uses of get_file_gtfilename and get_prefix_langdir_index.
6528 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
6529
6530 2008-06-24 Jakub Jelinek <jakub@redhat.com>
6531
6532 PR tree-optimization/36504
6533 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
6534 references without base address.
6535
6536 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
6537
6538 PR middle-end/36584
6539 * calls.c (expand_call): Increase alignment for recursive functions.
6540
6541 2008-06-23 Anatoly Sokolov <aesok@post.ru>
6542
6543 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
6544 (TARGET_FUNCTION_VALUE): New define.
6545 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
6546 * config/avr/avr.h (FUNCTION_VALUE): Remove.
6547
6548 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
6549
6550 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
6551 (fmod<mode>3): Ditto.
6552 (remainderxf3): Ditto.
6553 (remainder<mode>3): Ditto.
6554
6555 2008-06-23 Jakub Jelinek <jakub@redhat.com>
6556
6557 PR target/36533
6558 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
6559 REG is a hard register.
6560
6561 PR tree-optimization/36508
6562 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
6563 499, don't check it at all in release compilers.
6564
6565 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
6566
6567 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
6568 together with SSE_TARGET_MATH to disable insn pattern.
6569 (*fop_<MODEF:mode>_2_i387): Ditto.
6570 (*fop_<MODEF:mode>_3_i387): Ditto.
6571
6572 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
6573
6574 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
6575
6576 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6577
6578 PR middle-end/34906
6579 * gimplify.c (gimplify_asm_expr): Check the return code of
6580 parse_output_constraint call, set function return and is_inout
6581 value if it failed.
6582
6583 2008-06-22 Ian Lance Taylor <iant@google.com>
6584
6585 * c-lex.c (narrowest_unsigned_type): Change itk to int.
6586 (narrowest_signed_type): Likewise.
6587 * c-typeck.c (c_common_type): Change local variable mclass to enum
6588 mode_class, twice.
6589 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
6590 tcc_comparison, not the tree code itself.
6591 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
6592 (c_expand_expr): Cast modifier to enum expand_modifier.
6593 * c-common.h (C_RID_CODE): Add casts.
6594 (C_SET_RID_CODE): Define.
6595 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
6596 (c_lex_one_token): Add cast to avoid warning.
6597 (c_parser_objc_type_name): Rename local typename to type_name.
6598 (check_no_duplicate_clause): Change code parameter to enum
6599 omp_clause_code.
6600 (c_parser_omp_var_list_parens): Change kind parameter to enum
6601 omp_clause_code.
6602 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
6603 c_parser_omp_list_var_parens.
6604 (c_parser_omp_threadprivate): Likewise.
6605 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
6606 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
6607 * c-format.c (NO_FMT): Define.
6608 (printf_length_specs): Use NO_FMT.
6609 (asm_fprintf_length_specs): Likewise.
6610 (gcc_diag_length_specs): Likewise.
6611 (scanf_length_specs): Likewise.
6612 (strfmon_length_specs): Likewise.
6613 (gcc_gfc_length_specs): Likewise.
6614 (printf_flag_specs): Change 0 to STD_C89.
6615 (asm_fprintf_flag_specs): Likewise.
6616 (gcc_diag_flag_specs): Likewise.
6617 (gcc_cxxdiag_flag_specs): Likewise.
6618 (scanf_flag_specs): Likewise.
6619 (strftime_flag_specs): Likewise.
6620 (strfmon_flag_specs): Likewise.
6621 (print_char_table): Likewise.
6622 (asm_fprintf_char_table): Likewise.
6623 (gcc_diag_char_table): Likewise.
6624 (gcc_tdiag_char_table): Likewise.
6625 (gcc_cdiag_char_table): Likewise.
6626 (gcc_cxxdiag_char_table): Likewise.
6627 (gcc_gfc_char_table): Likewise.
6628 (scan_char_table): Likewise.
6629 (time_char_table): Likewis.
6630 (monetary_char_table): Likewise.
6631 * c-format.h (BADLEN): Likewise.
6632
6633 2008-06-21 Ian Lance Taylor <iant@google.com>
6634
6635 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
6636 Define END_OF_BASE_TREE_CODES around inclusion.
6637 * tree.c (tree_code_type): New global array.
6638 (tree_code_length, tree_code_name): Likewise.
6639 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
6640 $(lang_tree_files).
6641 (all-tree.def, s-alltree): New targets.
6642 (gencheck.h, s-gencheck): Remove.
6643 (tree.o): Depend upon all-tree.def.
6644 (build/gencheck.o): Remove gencheck.h dependency.
6645 (mostlyclean): Don't remove gencheck.h.
6646 * c-common.h (enum c_tree_code): Remove.
6647 * c-lang.c (tree_code_type): Remove.
6648 (tree_code_length, tree_code_name): Remove.
6649 * gencheck.c (tree_codes): Include all-tree.def, rather than
6650 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
6651 after it is used.
6652 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
6653 than tree.def.
6654 * cp/cp-tree.h (enum cplus_tree_code): Remove.
6655 (operator_name_info): Size to MAX_TREE_CODES.
6656 (assignment_operator_name_info): Likewise.
6657 * cp/cp-lang.c (tree_code_type): Remove.
6658 (tree_code_length, tree_code_name): Remove.
6659 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
6660 (assignment_operator_name_info): Likewise.
6661 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
6662 MAX_TREE_CODES.
6663 * cp/mangle.c (write_expression): Likewise.
6664 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
6665 * fortran/f95-lang.c (tree_code_type): Remove.
6666 (tree_code_length, tree_code_name): Remove.
6667 * java/java-tree.h (enum java_tree_code): Remove.
6668 * java/lang.c (tree_code_type): Remove.
6669 (tree_code_length, tree_code_name): Remove.
6670 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
6671 * objc/objc-act.h (enum objc_tree_code): Remove.
6672 * objc/objc-lang.c (tree_code_type): Remove.
6673 (tree_code_length, tree_code_name): Remove.
6674 * objcp/objcp-lang.c (tree_code_type): Remove.
6675 (tree_code_length, tree_code_name): Remove.
6676 * ada/ada-tree.h (enum gnat_tree_code): Remove.
6677 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
6678 * ada/misc.c (tree_code_type): Remove.
6679 (tree_code_length, tree_code_name): Remove.
6680
6681 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
6682
6683 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
6684 the grand_bitmap_obstack.
6685
6686 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6687
6688 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
6689 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
6690 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
6691 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
6692 move_stmt_r, new_label_mapper): Likewise.
6693 * tree-complex.c (cvc_lookup): Likewise.
6694 * tree-dfa.c (create_function_ann): Likewise.
6695 * tree-dump.c (dump_register): Likewise.
6696 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
6697 find_phi_replacement_condition): Likewise.
6698 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
6699 tree_function_versioning): Likewise.
6700 * tree-into-ssa.c (cmp_dfsnum): Likewise.
6701 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
6702 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
6703 get_nonlocal_debug_decl, convert_nonlocal_reference,
6704 convert_nonlocal_omp_clauses, get_local_debug_decl,
6705 convert_local_reference, convert_local_omp_clauses,
6706 convert_nl_goto_reference, convert_nl_goto_receiver,
6707 convert_tramp_reference, convert_call_expr): Likewise.
6708 * tree-outof-ssa.c (contains_tree_r): Likewise.
6709 * tree-parloops.c (reduction_phi, initialize_reductions,
6710 eliminate_local_variables_1, add_field_for_reduction,
6711 add_field_for_name, create_phi_for_local_result,
6712 create_call_for_reduction_1, create_loads_for_reductions,
6713 create_stores_for_reduction, create_loads_and_stores_for_name):
6714 Likewise.
6715 * tree-phinodes.c (allocate_phi_node): Likewise.
6716 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
6717 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
6718 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
6719 * tree-ssa-coalesce.c (compare_pairs): Likewise.
6720 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
6721 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
6722 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
6723 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
6724 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
6725 vn_nary_op_insert): Likewise.
6726 * tree-ssa.c (redirect_edge_var_map_add,
6727 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
6728 * tree-vectorizer.c (vectorize_loops): Likewise.
6729 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
6730 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
6731 tree_cons_stat, build1_stat, build_variant_type_copy,
6732 decl_init_priority_lookup, decl_fini_priority_lookup,
6733 decl_priority_info, decl_restrict_base_lookup,
6734 decl_restrict_base_insert, decl_debug_expr_lookup,
6735 decl_debug_expr_insert, decl_value_expr_lookup,
6736 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
6737 type_hash_add, get_file_function_name, tree_check_failed,
6738 tree_not_check_failed, tree_range_check_failed,
6739 omp_clause_range_check_failed, build_omp_clause,
6740 build_vl_exp_stat): Likewise.
6741 * value-prof.c (gimple_histogram_value,
6742 gimple_duplicate_stmt_histograms): Likewise.
6743 * var-tracking.c (attrs_list_insert, attrs_list_copy,
6744 unshare_variable, variable_union_info_cmp_pos, variable_union,
6745 dataflow_set_different_1, dataflow_set_different_2,
6746 vt_find_locations, variable_was_changed, set_variable_part,
6747 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
6748 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
6749 section_entry_hash, object_block_entry_eq,
6750 object_block_entry_hash, create_block_symbol,
6751 initialize_cold_section_name, default_function_rodata_section,
6752 strip_reg_name, set_user_assembler_name, const_desc_eq,
6753 build_constant_desc, output_constant_def, lookup_constant_def,
6754 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
6755 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
6756 default_internal_label): Likewise.
6757 * varray.c (varray_init, varray_grow): Likewise.
6758 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
6759
6760 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
6761
6762 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
6763 operators for "test" insn. Macroize insn using SWI mode macro.
6764 (*jcc_fused_2): Ditto.
6765 (*jcc_fused_3): Macroize insn using SWI mode macro.
6766 (*jcc_fused_4): Ditto.
6767
6768 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
6769
6770 * tree-ssa-pre.c: Fix typo in comment.
6771 (init_antic, fini_antic): Add explicit funtions for
6772 initializing and deinitializing ANTIC and AVAIL sets.
6773 (create_expression_by_pieces): Fix typo in comment.
6774 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
6775 (execute_pre): Eventually dump details about ANTIC_IN.
6776
6777 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6778
6779 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
6780 * gcc.c (translate_options, init_spec, store_arg, read_specs,
6781 add_to_obstack, file_at_path, find_a_file, execute,
6782 add_preprocessor_option, add_assembler_option, add_linker_option,
6783 process_command, insert_wrapper, do_option_spec, do_self_spec,
6784 spec_path, do_spec_1, is_directory, main, used_arg,
6785 getenv_spec_function): Likewise.
6786 * tlink.c (symbol_hash_lookup, file_hash_lookup,
6787 demangled_hash_lookup, symbol_push, file_push, frob_extension):
6788 Likewise.
6789
6790 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
6791
6792 * doc/rtl.texi: Updated subreg section.
6793
6794 2008-06-19 Jakub Jelinek <jakub@redhat.com>
6795
6796 PR c++/36523
6797 * cgraphunit.c (cgraph_process_new_functions): Don't clear
6798 node->needed and node->reachable.
6799 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
6800 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
6801 (expand_task_call): Don't call expand_task_copyfn.
6802 (expand_task_copyfn): Renamed to...
6803 (finalize_task_copyfn): ... this.
6804
6805 2008-06-19 Jan Hubicka <jh@suse.cz>
6806
6807 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
6808 clobbering framepointer.
6809
6810 2008-06-19 Jan Hubicka <jh@suse.cz>
6811
6812 * tree-optimize.c (execute_early_local_optimizations): Set
6813 cgraph_state only at first invocation.
6814
6815 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6816
6817 * system.h (-Wc++-compat): Activate as a warning, no an error.
6818
6819 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
6820
6821 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
6822 instead of "#" in insn asm template.
6823 (*jcc_fused_2): Ditto.
6824
6825 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
6826
6827 * config/i386/i386.h (ix86_tune_indices)
6828 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
6829 (TARGET_FUSE_CMP_AND_BRANCH): New define.
6830 * config/i386/i386.md (*jcc_fused_1): New insn pattern
6831 (*jcc_fused_2): Ditto.
6832 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
6833 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
6834 (print operand): Handle 'E' and 'e' code.
6835
6836 2008-06-19 Anatoly Sokolov <aesok@post.ru>
6837
6838 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
6839 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6840 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6841
6842 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
6843
6844 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
6845 node->decl.
6846 (cgraph_expand_function): Use local copy of decl.
6847 (cgraph_expand_all_functions): Remove redundant initialization of
6848 order_pos.
6849 (cgraph_optimize): Reword internal_error message.
6850
6851 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
6852
6853 * arm-protos.h (arm_return_in_memory): Remove public
6854 arm_return_in_memory() prototype.
6855 * arm.c (arm_return_in_memory): Add static prototype, add target
6856 hook macro, change definition and comments.
6857 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
6858
6859 2008-06-19 Ben Elliston <bje@au.ibm.com>
6860
6861 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
6862 real.c: Remove references to IEEE 754R.
6863 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
6864 * doc/libgcc.texi (Decimal float library routines): Likewise.
6865
6866 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6867
6868 * targhooks.h (struct gcc_target): New member unwind_word_mode.
6869 (default_unwind_word_mode): Add prototype.
6870 * targhooks.c (default_unwind_word_mode): New function.
6871 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
6872 instead of word_mode.
6873 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
6874 (TARGET_INITIALIZER): Use it.
6875
6876 * c-common.c (handle_mode_attribute): Support "unwind_word"
6877 mode attribute.
6878 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
6879
6880 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
6881 word_mode to access SjLj_Function_Context member "data".
6882 (sjlj_emit_dispatch_table): Likewise. Also, perform type
6883 conversion from targetm.eh_return_filter_mode () to
6884 targetm.unwind_word_mode () if they differ.
6885
6886 * builtin-types.def (BT_UNWINDWORD): New primitive type.
6887 (BT_FN_UNWINDWORD_PTR): New function type.
6888 (BT_FN_WORD_PTR): Remove.
6889 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
6890 * except.c (expand_builtin_extend_pointer): Convert pointer to
6891 targetm.unwind_word_mode () instead of word_mode.
6892
6893 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
6894 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
6895 (spu_unwind_word_mode): New function.
6896 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
6897 (TARGET_UNWIND_WORD_MODE): Define.
6898 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
6899
6900 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6901
6902 * config/spu/spu.c (reg_align): Remove.
6903 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
6904 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
6905 (spu_split_store): Likewise.
6906
6907 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
6908
6909 * gcc/tree-vn.c: Fix typo in comment.
6910
6911 2008-06-18 Jan Hubicka <jh@suse.cz>
6912
6913 * cgraphunit.c (cgraph_optimize): Output debug info when doing
6914 toplevel reorder too.
6915
6916 2008-06-18 Jan Hubicka <jh@suse.cz>
6917
6918 * c-opts.c (c_common_post_options): PCH is not compatible with
6919 no-unit-at-a-time.
6920 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
6921 -fno-toplevel-reorder by default now.
6922
6923 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6924
6925 PR documentation/30739
6926 * doc/install.texi (Prerequisites): Document dependency on awk.
6927
6928 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
6929 Ian Lance Taylor <iant@google.com>
6930
6931 PR rtl-optimization/35604
6932 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
6933 only want to change jump destinations, not eventual label comparisons.
6934
6935 2008-06-16 Jan Hubicka <jh@suse.cz>
6936
6937 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
6938 syntax errors.
6939 (cgraph_analyze_function): Likewise.
6940
6941 2008-06-16 Jan Hubicka <jh@suse.cz>
6942
6943 * cgraph.h (cgraph_mark_if_needed): New function.
6944 * cgraphunit.c (cgraph_mark_if_needed): New function.
6945 * c-decl.c (duplicate_decl): Use it.
6946
6947 2008-06-16 Jan Hubicka <jh@suse.cz>
6948
6949 * cgraph.c (cgraph_add_new_function): When in expansion state, do
6950 lowering.
6951
6952 2008-06-16 Jan Hubicka <jh@suse.cz>
6953
6954 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
6955
6956 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
6957 Kazu Hirata <kazu@codesourcery.com>
6958 Maxim Kuvyrkov <maxim@codesourcery.com
6959
6960 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
6961 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
6962 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
6963 EXTRA_SPEC_FUNCTIONS.
6964 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
6965 (DRIVER_SELF_SPECS): Adjust.
6966 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
6967 * config/mips/st.h, config/mips/t-st: New.
6968 * config/mips/driver-native.c, config/mips/x-native: New.
6969 * doc/invoke.texi (MIPS): Document 'native' value for -march and
6970 -mtune options.
6971
6972 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6973
6974 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
6975 from it.
6976 (ISA_HAS_FP_CONDMOVE): New macro.
6977 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
6978 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
6979 (ISA_HAS_NMADD3_NMSUB3): New macro.
6980 * config/mips/mips.c (mips_rtx_costs): Update.
6981 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
6982 compiling for ST Loongson 2E/2F.
6983 (madd<mode>): Rename to madd4<mode>. Update.
6984 (madd3<mode>): New pattern.
6985 (msub<mode>): Rename to msub4<mode>. Update.
6986 (msub3<mode>): New pattern.
6987 (nmadd<mode>): Rename to nmadd4<mode>. Update.
6988 (nmadd3<mode>): New pattern.
6989 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
6990 (nmadd3<mode>_fastmath): New pattern.
6991 (nmsub<mode>): Rename to nmsub4<mode>. Update.
6992 (nmsub3<mode>): New pattern.
6993 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
6994 (nmsub3<mode>_fastmath): New pattern.
6995 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
6996
6997 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
6998
6999 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
7000 (DF_REF_INSN_INFO): New.
7001 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
7002 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
7003 with a NULL DF_REF_INSN_INFO.
7004 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
7005 DF_INSN_SET.
7006 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
7007 DF_INSN_INFO_EQ_USES): New.
7008 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
7009 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
7010 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
7011 * df-core.c: Update comment for above changes.
7012 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
7013 DF_INSN_UID_* macros.
7014 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
7015 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
7016 insn rtx. Update all callers.
7017 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
7018 df_ref_create_structure, df_insn_refs_collect): Likewise.
7019 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
7020 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
7021 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
7022 macros to access the insn refs.
7023 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
7024 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
7025 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
7026 for accessing the refs.
7027 (try_fwprop_subst): Likewise.
7028 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
7029 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
7030 for accessing the refs.
7031 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
7032 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
7033 to look at the insn refs.
7034 (record_uses): Likewise.
7035 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
7036 function anymore.
7037 (mark_artificial_uses): Don't mark_insn for artificial refs.
7038 (mark_reg_rependencies): Likewise.
7039
7040 * doc/rtl.texi: Remove documentation of ADDRESSOF.
7041
7042 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7043
7044 * configure: Regenerate.
7045
7046 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
7047
7048 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
7049 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7050 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7051
7052 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
7053
7054 * config/avr/avr.c (avr_mcu_t): Add attiny167.
7055 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7056 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7057
7058 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
7059
7060 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
7061 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7062 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7063
7064 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
7065
7066 * tree-ssa-sccvn.c: Fix format of comments.
7067
7068 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
7069
7070 * cgraph.c: Remove unneeded forward declarations of eq_node()
7071 and hash_node().
7072
7073 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
7074
7075 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
7076 REG_RETVAL notes.
7077 (see_update_relevancy): Likewise.
7078 * fwprop.c (try_fwprop_subst): Likewise.
7079 * rtlanal.c (noop_move_p): Likewise.
7080 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
7081 notes to non-existing libcall blocks.
7082 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
7083 Remove orig_set.
7084 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
7085 (dead_libcall_p): Remove.
7086 (delete_trivially_dead_insns): Don't use it.
7087 * web.c (union_defs): Remove comment about keeping nops.
7088 * gcse.c (hash_scan_insn): Don't take libcall pointers.
7089 (compute_hash_table_work): Don't track libcall notes.
7090 (do_local_cprop): Don't take libcall pointers. Don't update
7091 libcall notes.
7092 (adjust_libcall_notes): Deleted.
7093 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
7094 ever have existed in the first place).
7095 (replace_store_insn): Don't try to remove libcall notes.
7096 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
7097 (resolve_reg_notes): Don't call them.
7098 (resolve_simple_move): Likewise.
7099 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
7100 Don't remove REG_RETVAL notes.
7101 * emit-rtl.c (try_split): Don't update libcall notes.
7102 (emit_copy_of_insn_after): Dito.
7103 * cselib.c (cselib_current_insn_in_libcall): Remove.
7104 (cselib_process_insn): Don't set/clear it.
7105 (new_elt_loc_list): Don't record it.
7106 (cselib_init): Don't initialize it.
7107 * cselib.c (struct elt_loc_list): Remove in_libcall field.
7108 * loop-invariant.c (find_invariant_insn): Don't look for libcall
7109 notes.
7110 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
7111 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
7112 (init_deps): Don't initialize it.
7113 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
7114 * combine.c (delete_noop_moves): Don't update libcall notes.
7115 (can_combine_p): Remove now pointless #if 0 block.
7116 (try_combine): Remove another obsolete #if 0 block.
7117 (distribute_notes): Don't distribute libcall notes.
7118 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
7119 * dce.c (libcall_dead_p): Remove.
7120 (delete_unmarked_insns): Don't handle libcall blocks.
7121 (preserve_libcall_for_dce): Remove.
7122 (prescan_insns_for_dce): Don't special-case libcall block insns.
7123 * reload1 (reload): Don't handle libcall notes.
7124 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
7125 documentation.
7126
7127 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
7128
7129 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
7130 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7131 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7132
7133 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
7134
7135 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
7136 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7137 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7138
7139 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7140
7141 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
7142
7143 2008-06-16 Ira Rosen <irar@il.ibm.com>
7144
7145 PR tree-optimization/36493
7146 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
7147 the arguments list. Use VECTYPE to create vector pointer.
7148 (vectorizable_store): Fail if accesses through a pointer to vectype
7149 do not alias the original memory reference operands.
7150 Call vect_create_data_ref_ptr without the removed argument.
7151 (vectorizable_load): Likewise.
7152 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
7153 removed argument.
7154
7155 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
7156
7157 PR target/36336
7158 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
7159 reg_equiv_constant.
7160
7161 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7162
7163 * config/mips/loongson2ef.md: New file.
7164 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7165 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7166 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7167 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
7168 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
7169 and loongson_2f.
7170 (loongson2ef.md): New include.
7171 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
7172 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
7173 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
7174 (loongson_gt_<mode>, loongson_extract_halfword)
7175 (loongson_insert_halfword_0, loongson_insert_halfword_2)
7176 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
7177 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
7178 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
7179 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
7180 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
7181 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
7182 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
7183 (vec_interleave_low<mode>): Define type attribute.
7184 * config/mips/mips.c (mips_ls2): New static variable.
7185 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
7186 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
7187 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
7188 Implement target scheduling hooks.
7189 (mips_multipass_dfa_lookahead): Update to handle tuning for
7190 Loongson 2E/2F.
7191 (mips_sched_init): Initialize data for Loongson scheduling.
7192 (mips_ls2_variable_issue): New static function.
7193 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
7194 Add sanity check.
7195 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
7196 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
7197 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
7198 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
7199 Handle ST Loongson 2E/2F cores.
7200 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
7201
7202 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7203
7204 * omp-low.c (extract_omp_for_data): Fix comment typo.
7205 * c.opt: Fix typo.
7206
7207 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7208
7209 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
7210 FIXME note about gcc/config.guess.
7211 * doc/options.texi (Option file format): Remove non-ASCII bytes.
7212 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
7213 * doc/cppopts.texi: Likewise.
7214 * doc/extend.texi: Likewise.
7215 * doc/gcc.texi: Likewise.
7216 * doc/gccint.texi: Likewise.
7217 * doc/gcov.texi: Likewise.
7218 * doc/gty.texi: Likewise.
7219 * doc/hostconfig.texi: Likewise.
7220 * doc/install.texi: Likewise.
7221 * doc/invoke.texi: Likewise.
7222 * doc/loop.texi: Likewise.
7223 * doc/makefile.texi: Likewise.
7224 * doc/md.texi: Likewise.
7225 * doc/passes.texi: Likewise.
7226 * doc/tm.texi: Likewise.
7227 * doc/tree-ssa.texi: Likewise.
7228 * doc/trouble.texi: Likewise.
7229
7230 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
7231 Nathan Sidwell <nathan@codesourcery.com>
7232 Maxim Kuvyrkov <maxim@codesourcery.com>
7233 Richard Sandiford <rdsandiford@googlemail.com>
7234
7235 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
7236 * config/mips/mips-protos.h (mips_expand_vector_init): New.
7237 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
7238 builtins.
7239 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
7240 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
7241 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
7242 V8QImode cases.
7243 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
7244 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
7245 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
7246 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
7247 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
7248 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
7249 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
7250 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
7251 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
7252 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
7253 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
7254 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
7255 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
7256 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
7257 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
7258 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
7259 (mips_builtins): Add Loongson builtins.
7260 (mips_loongson_2ef_bdesc): New.
7261 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
7262 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
7263 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
7264 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
7265 New.
7266 (mips_expand_vector_init): New.
7267 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
7268 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
7269 if appropriate.
7270 * config/mips/mips.md: Add unspec numbers for Loongson
7271 builtins. Include loongson.md.
7272 (MOVE64): Include Loongson vector modes.
7273 (SPLITF): Include Loongson vector modes.
7274 (HALFMODE): Handle Loongson vector modes.
7275 * config/mips/loongson.md: New.
7276 * config/mips/loongson.h: New.
7277 * config.gcc: Add loongson.h header for mips*-*-* targets.
7278 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
7279
7280 2008-06-14 Joseph Myers <joseph@codesourcery.com>
7281
7282 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
7283 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
7284 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
7285 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
7286 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
7287 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
7288 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
7289 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
7290 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
7291 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
7292 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
7293 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
7294 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
7295 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
7296 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
7297 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
7298 Remove use_fixproto=yes.
7299 (ia64*-*-hpux*): Remove comment about using fixproto.
7300 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
7301
7302 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7303
7304 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
7305 library rebuilds.
7306 * configure: Regenerate.
7307
7308 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
7309
7310 PR middle-end/36520
7311 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
7312 before evaluating it.
7313
7314 2008-06-13 Jakub Jelinek <jakub@redhat.com>
7315
7316 PR c/36507
7317 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
7318 nested inline functions.
7319 (start_decl, start_function): Don't invert DECL_EXTERNAL
7320 for nested inline functions.
7321
7322 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
7323
7324 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
7325 splits that must be made for correctness.
7326
7327 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
7328
7329 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
7330 (AVAIL_NON_MIPS16): Likewise.
7331 (mips_builtin_description): Replace target_flags with a predicate.
7332 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
7333 (dspr2_32): New availability predicates.
7334 (MIPS_BUILTIN): New macro.
7335 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
7336 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
7337 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
7338 Replace the TARGET_FLAGS parameters with AVAIL parameters.
7339 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
7340 (mips_dsp_32only_bdesc): Merge into...
7341 (mips_builtins): ...this new array.
7342 (mips_bdesc_map, mips_bdesc_arrays): Delete.
7343 (mips_init_builtins): Update after above changes.
7344 (mips_expand_builtin_1): Merge into...
7345 (mips_expand_builtin): ...here and update after above changes.
7346
7347 2008-06-12 Paul Brook <paul@codesourcery.com>
7348
7349 * longlong.h (__arm__): Define count_leading_zeros.
7350 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
7351 (clzsi2, clzdi2): New functions.
7352 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
7353 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
7354 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
7355 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
7356 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
7357 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
7358 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
7359 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
7360 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
7361 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
7362
7363 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
7364
7365 * config/m68k/m68k.c (m68k_tune_flags): New.
7366 (override_options): Compute m68k_tune_flags.
7367 (MULL_COST, MULW_COST): Update for various variants of CFV2.
7368 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
7369
7370 2008-06-12 Jakub Jelinek <jakub@redhat.com>
7371
7372 PR middle-end/36506
7373 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
7374
7375 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
7376
7377 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
7378 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
7379
7380 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
7381
7382 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
7383 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
7384
7385 2008-06-12 Jakub Jelinek <jakub@redhat.com>
7386
7387 PR middle-end/36506
7388 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
7389 reductions.
7390
7391 2008-06-12 Richard Guenther <rguenther@suse.de>
7392
7393 PR tree-optimization/36345
7394 * tree-flow.h (struct ptr_info_def): Align escape_mask,
7395 add memory_tag_needed flag.
7396 (may_alias_p): Declare.
7397 * tree-ssa-alias.c (may_alias_p): Export.
7398 (set_initial_properties): Use memory_tag_needed flag.
7399 (update_reference_counts): Likewise.
7400 (reset_alias_info): Reset memory_tag_needed flag.
7401 (create_name_tags): Check memory_tag_needed flag.
7402 (dump_points_to_info_for): Dump it.
7403 * tree-ssa-structalias.c (struct variable_info): Remove
7404 directly_dereferenced flag.
7405 (new_var_info): Do not initialize it.
7406 (process_constraint_1): Do not set it.
7407 (update_alias_info): Set is_dereferenced flag.
7408 (set_uids_in_ptset): Use may_alias_p.
7409 (set_used_smts): Check memory_tag_needed flag.
7410 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
7411 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
7412 memory_tag_needed flag.
7413 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
7414 from broken design.
7415
7416 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
7417
7418 * config/i386/i386.c (ix86_compute_frame_layout): Disable
7419 red zone for w64 abi.
7420 (ix86_expand_prologue): Likewise.
7421 (ix86_force_to_memory): Likewise.
7422 (ix86_free_from_memory): Likewise.
7423
7424 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
7425
7426 PR target/36425
7427 * config/rs6000/rs6000.c (rs6000_override_options): Set
7428 rs6000_isel conditionally to the absence of comand line override.
7429 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7430 Remove duplicate rs6000_isel setting.
7431 * config/rs6000/eabispe.h: Ditto.
7432
7433 2008-06-11 Richard Guenther <rguenther@suse.de>
7434
7435 * alias.c (get_alias_set): Use the element alias-set for arrays.
7436 (record_component_aliases): For arrays and vectors do nothing.
7437 * c-common.c (strict_aliasing_warning): Handle the cases
7438 of alias set zero explicitly.
7439 * Makefile.in (dfp.o-warn): Add -Wno-error.
7440
7441 2008-06-11 Joseph Myers <joseph@codesourcery.com>
7442
7443 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
7444 tune_32 tune_64.
7445 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
7446 tune_32 tune_64 to supported_defaults. Allow values not
7447 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
7448 x86_64. Do not override cpu_32 or cpu_64 values from target name.
7449 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
7450 with_cpu_64 to generic for 64-bit-supporting configurations, not
7451 with_cpu. Remove FIXMEs.
7452 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
7453 --with-arch-64, --with-tune-32, --with-tune-64): Document.
7454 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
7455 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
7456 arch_32 and arch_64.
7457
7458 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
7459 Olivier Hainque <hainque@adacore.com>
7460
7461 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
7462 Use DECL_SIZE_UNIT to retrieve the size of the field.
7463
7464 2008-06-11 Joseph Myers <joseph@codesourcery.com>
7465
7466 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
7467 with function calls after declarations. Lay out
7468 neon_float_type_node before further use.
7469
7470 2008-06-11 Richard Guenther <rguenther@suse.de>
7471
7472 * tree-flow.h (may_point_to_global_var): Declare.
7473 * tree-ssa-alias.c (may_point_to_global_var): New function.
7474 * tree-ssa-sink.c (is_hidden_global_store): Use it.
7475
7476 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
7477
7478 * configure.ac: Teach that fido supports .debug_line.
7479 * configure: Regenerate.
7480
7481 2008-06-10 Tom Tromey <tromey@redhat.com>
7482
7483 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
7484 debug hook.
7485
7486 2008-06-10 Joseph Myers <joseph@codesourcery.com>
7487
7488 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
7489 (encode_decimal64, decode_decimal64, encode_decimal128,
7490 decode_decimal128): Reverse order of 32-bit parts of value if host
7491 and target endianness differ.
7492
7493 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
7494
7495 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
7496 Avoid division by 0.
7497 (tree_mod_pow2_value_transform): Likewise.
7498 (tree_ic_transform): Likewise.
7499 (tree_stringops_transform): Likewise.
7500 (tree_mod_subtract_transform): Likewise.
7501 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
7502 (copy_edges_for_bb): Likewise.
7503 (initialize_cfun): Likewise.
7504
7505 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
7506
7507 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
7508 nonmemory_operand. Add "N" operand constraint.
7509 (*btsi): Ditto.
7510 (*jcc_btdi_mask_rex64): New instruction and split pattern.
7511 (*jcc_btsi_mask): Ditto.
7512 (*jcc_btsi_mask_1): Ditto.
7513
7514 2008-06-10 Joseph Myers <joseph@codesourcery.com>
7515
7516 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
7517 TYPE_CANONICAL for copied element type.
7518
7519 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
7520
7521 PR target/36473
7522 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
7523 Add m_CORE2 and m_GENERIC.
7524 * config/i386/predicates.md (bt_comparison_operator): New predicate.
7525 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
7526 (*btsi): Ditto.
7527 (*jcc_btdi_rex64): New instruction and split pattern.
7528 (*jcc_btsi): Ditto.
7529 (*jcc_btsi_1): Ditto.
7530 (*btsq): Fix Intel asm dialect operand order.
7531 (*btrq): Ditto.
7532 (*btcq): Ditto.
7533
7534 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
7535
7536 PR middle-end/36447
7537 * simplify-rtx.c (simplify_subreg): Add check for shift count
7538 greater than size.
7539
7540 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
7541
7542 * doc/md.texi: Synchronize with later constraints.md change.
7543 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
7544 with a C implementation.
7545 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
7546 MFLO handling.
7547 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
7548 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
7549 when moving to and from MD_REGNUM.
7550 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
7551 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
7552 Handle byte and halfword moves.
7553 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
7554 separately.
7555 * config/mips/constraints.md (h): Turn into NO_REGS.
7556 (l, x): Update documentation.
7557 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
7558 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
7559 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
7560 (HILO): New mode iterator.
7561 (MOVE128): Add TI.
7562 (any_div): New code iterator.
7563 (u): Extend code attribute to div and udiv.
7564 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
7565 d_operand in the splitters. Remove redundant CONST_INT checks.
7566 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
7567 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
7568 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
7569 accordingly, using normal moves instead of unspecs to move LO into
7570 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
7571 (<u>mulsidi3): Handle expansion in C code.
7572 (<u>mulsidi3_32bit_internal): Rename to...
7573 (<u>mulsidi3_32bit): ...this.
7574 (<u>mulsidi3_32bit_r4000): Fix insn separator.
7575 (*<u>mulsidi3_64bit): Rename to...
7576 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
7577 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
7578 to set LO and HI to the multiplication result. Use a normal move
7579 for MFLO and an unspec for MFHI.
7580 (*<u>mulsidi3_64bit_parts): Replace with...
7581 (<u>mulsidi3_64bit_hilo): ...this new instruction.
7582 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
7583 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
7584 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
7585 instead of HI. Split the instruction into a separate multiplication
7586 and MFHI if !TARGET_FIX_R4000.
7587 (<su>muldi3_highpart): Likewise.
7588 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
7589 and the "=h" clobber.
7590 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
7591 (<u>mulditi3): New expander.
7592 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
7593 (madsi): Remove "=h" clobber.
7594 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
7595 Force the modulus result to be a GPR and split the instruction into
7596 a division followed by an MFHI after reload.
7597 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
7598 (*lea_high64): Use d_operand in the define_peephole2. Likewise
7599 the MIPS16 HIGH define_split.
7600 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
7601 of acc<->gpr moves to "multi".
7602 (*movdi_64bit): Replace the single "x" alternative with
7603 alternatives for moving into and out of "a".
7604 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
7605 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
7606 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
7607 Use d_operand in the splitters. Remove redundant CONST_INT checks.
7608 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
7609 (movti): New expander.
7610 (*movti, *movti_mips16): New insns.
7611 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
7612 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
7613 (mthi<GPR:mode>_<HILO:mode>): Likewise.
7614 * config/mips/predicates.md (fpr_operand): Delete.
7615 (d_operand): New predicate.
7616
7617 2008-06-09 Michael Meissner <michael.meissner@amd.com>
7618
7619 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
7620 failure on some Bourne shells.
7621 (x86_64-*-*): Ditto.
7622
7623 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
7624
7625 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
7626
7627 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
7628
7629 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
7630 (sparc-sun-solaris2*): Likewise.
7631
7632 2008-06-09 Arnaud Charlet <charlet@adacore.com
7633
7634 * doc/install.texi: Update requirements to build the Ada compiler.
7635
7636 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
7637
7638 * df-scan.c (struct df_scan_problem_data): Remove the
7639 mw_link_pool alloc pool.
7640 (df_scan_free_internal): Don't free it.
7641 (df_scan_alloc): Don't allocate it.
7642 * df.h (struct df_link): Update comment.
7643
7644 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
7645
7646 * except.h: Correct checks for when SJLJ exceptions must be used.
7647
7648 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7649
7650 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
7651 default.
7652
7653 2008-06-08 Joseph Myers <joseph@codesourcery.com>
7654
7655 PR tree-optimization/36218
7656 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
7657 configure for the build system.
7658 (BUILD_LDFLAGS): Define.
7659 * configure: Regenerate.
7660 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
7661
7662 2008-07-08 Anatoly Sokolov <aesok@post.ru>
7663
7664 PR target/36424
7665 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
7666 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
7667 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
7668
7669 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
7670
7671 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
7672
7673 2008-06-07 Joseph Myers <joseph@codesourcery.com>
7674
7675 * config.gcc (Obsolete configurations): Remove list of
7676 configurations.
7677 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
7678 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
7679 targets matched by those patterns.
7680 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
7681 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
7682 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
7683 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
7684 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7685 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
7686 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
7687 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
7688 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
7689 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
7690 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
7691 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
7692 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
7693 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
7694 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
7695 Make code for Solaris 7 and greater unconditional for Solaris.
7696 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
7697 Remove --with-* handling.
7698 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
7699 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
7700 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
7701 LINK_OS_WINDISS_SPEC): Remove.
7702 * config/rs6000/sysv4.opt (mwindiss): Remove.
7703 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
7704 * configure: Regenerate.
7705 * doc/cpp.texi: Don't mention BeOS.
7706 * doc/extend.texi (interrupt): Don't mention MS1.
7707 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
7708 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
7709 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
7710 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
7711 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
7712 Remove.
7713 * doc/invoke.texi (MT Options): Remove.
7714 (-mwindiss): Remove.
7715 (CRIS Options): Remove cris-axis-aout references.
7716 (HPPA Options): Don't mention hppa1.1-*-pro.
7717 * doc/md.texi: (MorphoTech family): Remove.
7718 * libgcc2.c: Don't handle UWIN.
7719 * config/alpha/t-unicosmk: Remove.
7720 * config/alpha/unicosmk.h: Remove.
7721 * config/arm/kaos-arm.h: Remove.
7722 * config/arm/kaos-strongarm.h: Remove.
7723 * config/arm/strongarm-coff.h: Remove.
7724 * config/arm/strongarm-elf.h: Remove.
7725 * config/arm/strongarm-pe.h: Remove.
7726 * config/arm/t-strongarm-pe: Remove.
7727 * config/arm/t-xscale-coff: Remove.
7728 * config/arm/t-xscale-elf: Remove.
7729 * config/arm/xscale-coff.h: Remove.
7730 * config/arm/xscale-elf.h: Remove.
7731 * config/chorus.h: Remove.
7732 * config/cris/aout.h: Remove.
7733 * config/cris/aout.opt: Remove.
7734 * config/cris/t-aout: Remove.
7735 * config/i386/beos-elf.h: Remove.
7736 * config/i386/kaos-i386.h: Remove.
7737 * config/i386/ptx4-i.h: Remove.
7738 * config/i386/sco5.h: Remove.
7739 * config/i386/sco5.opt: Remove.
7740 * config/i386/sysv4-cpp.h: Remove.
7741 * config/i386/sysv5.h: Remove.
7742 * config/i386/t-beos: Remove.
7743 * config/i386/t-sco5: Remove.
7744 * config/i386/t-uwin: Remove.
7745 * config/i386/uwin.asm: Remove.
7746 * config/i386/uwin.h: Remove.
7747 * config/kaos.h: Remove.
7748 * config/mips/windiss.h: Remove.
7749 * config/mt: Remove directory.
7750 * config/pa/pa-osf.h: Remove.
7751 * config/pa/pa-pro-end.h: Remove.
7752 * config/pa/t-pro: Remove.
7753 * config/ptx4.h: Remove.
7754 * config/rs6000/beos.h: Remove.
7755 * config/rs6000/kaos-ppc.h: Remove.
7756 * config/rs6000/t-beos: Remove.
7757 * config/rs6000/windiss.h: Remove.
7758 * config/sh/kaos-sh.h: Remove.
7759 * config/sol2-6.h: Remove.
7760 * config/sparc/sol26-sld.h: Remove.
7761 * config/sparc/sysv4-only.h: Remove.
7762 * config/vax/bsd.h: Remove.
7763 * config/vax/t-memfuncs: Remove.
7764 * config/vax/ultrix.h: Remove.
7765 * config/vax/vaxv.h: Remove.
7766 * config/windiss.h: Remove.
7767
7768 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
7769
7770 PR rtl-optimization/36438
7771 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
7772 for vector shifts with constant scalar shift operands.
7773
7774 2008-06-06 Sandip Matte <sandip@rmicorp.com>
7775
7776 * doc/invoke.texi: Document -march=xlr.
7777 * config/mips/xlr.md: New file.
7778 * config/mips/mips.md: Include it.
7779 (cpu): Add "xlr".
7780 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
7781 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
7782 (mips_rtx_cost_data): Likewise.
7783
7784 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
7785
7786 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
7787 PRE_INC and PRE_DEC cases.
7788
7789 2008-06-06 Jakub Jelinek <jakub@redhat.com>
7790
7791 PR rtl-optimization/36419
7792 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
7793 the emitting jump insn.
7794
7795 PR target/36362
7796 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
7797 is not bool, boolify the whole *expr_p and convert to the desired type.
7798
7799 2008-06-06 Jakub Jelinek <jakub@redhat.com>
7800
7801 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
7802 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
7803 Add omp_private_outer_ref hook, add another argument to
7804 omp_clause_default_ctor hook.
7805 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
7806 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
7807 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
7808 hook_tree_tree_tree_tree_null.
7809 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
7810 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
7811 * hooks.c (hook_tree_tree_tree_tree_null): New function.
7812 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
7813 * tree.def (OMP_TASK): New tree code.
7814 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
7815 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
7816 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
7817 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
7818 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
7819 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
7820 OMP_CLAUSE_COLLAPSE_EXPR): Define.
7821 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7822 (OMP_DIRECTIVE_P): Add OMP_TASK.
7823 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
7824 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
7825 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
7826 and OMP_CLAUSE_UNTIED entries.
7827 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
7828 num_ops to 2.
7829 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7830 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
7831 * tree-pretty-print.c (dump_omp_clause): Handle
7832 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
7833 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7834 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
7835 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
7836 warning about unsigned iterators. Change decl/init/cond/incr
7837 arguments to TREE_VECs, check arguments for all collapsed loops.
7838 (c_finish_omp_taskwait): New function.
7839 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
7840 ws_clauses.
7841 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
7842 default_function_array_conversion on init. Add par_clauses argument.
7843 If decl is present in parallel's lastprivate clause, change it to
7844 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
7845 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
7846 collapse count in clauses.
7847 (c_parser_omp_for, c_parser_omp_parallel): Adjust
7848 c_parser_omp_for_loop callers.
7849 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
7850 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
7851 (c_parser_omp_clause_name): Handle collapse and untied clauses.
7852 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
7853 functions.
7854 (c_parser_omp_clause_schedule): Handle schedule(auto).
7855 Include correct location in the error message.
7856 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
7857 and PRAGMA_OMP_CLAUSE_UNTIED.
7858 (OMP_TASK_CLAUSE_MASK): Define.
7859 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
7860 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
7861 * tree-nested.c (convert_nonlocal_omp_clauses,
7862 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
7863 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
7864 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7865 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
7866 OMP_CLAUSE_DECL.
7867 (conver_nonlocal_reference, convert_local_reference,
7868 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
7869 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
7870 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
7871 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
7872 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
7873 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
7874 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
7875 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
7876 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7877 OMP_CLAUSE_UNTIED.
7878 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
7879 * c-common.h (c_finish_omp_taskwait): New prototype.
7880 * gimple-low.c (lower_stmt): Handle OMP_TASK.
7881 * tree-parloops.c (create_parallel_loop): Create 1 entry
7882 vectors for OMP_FOR_{INIT,COND,INCR}.
7883 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7884 (make_edges): Handle OMP_TASK.
7885 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
7886 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7887 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
7888 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
7889 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
7890 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7891 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7892 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
7893 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
7894 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
7895 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
7896 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
7897 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
7898 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
7899 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
7900 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
7901 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
7902 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
7903 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
7904 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
7905 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
7906 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
7907 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
7908 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
7909 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
7910 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
7911 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
7912 original iterator is present in lastprivate clause or if
7913 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
7914 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7915 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
7916 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
7917 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
7918 if it is set, lookup var in outer contexts too. Handle
7919 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
7920 to be implicitly determined firstprivate for task regions.
7921 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
7922 if it is set, lookup var in outer contexts too. Set
7923 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
7924 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
7925 OMP_CLAUSE_UNTIED. Take region_type as last argument
7926 instead of in_parallel and in_combined_parallel.
7927 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
7928 Adjust callers.
7929 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
7930 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
7931 (new_omp_context): Set default_kind to
7932 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
7933 (omp_region_type): New enum.
7934 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
7935 fields, add region_type.
7936 (new_omp_context): Take region_type as argument instead of is_parallel
7937 and is_combined_parallel.
7938 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
7939 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
7940 ctx->is_combined_parallel checks.
7941 (gimplify_omp_task): New function.
7942 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7943 OMP_CLAUSE_UNTIED.
7944 * omp-low.c (extract_omp_for_data): Use schedule(static)
7945 for schedule(auto). Handle pointer and unsigned iterators.
7946 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
7947 Add loops argument. Extract data for collapsed OMP_FOR loops.
7948 (expand_parallel_call): Assert sched_kind isn't auto,
7949 map runtime schedule to index 3.
7950 (struct omp_for_data_loop): New type.
7951 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
7952 Add loop, loops, collapse and iter_type fields.
7953 (workshare_safe_to_combine_p): Disallow combined for if
7954 iter_type is unsigned long long. Don't combine collapse > 1 loops
7955 unless all bounds and steps are constant. Adjust extract_omp_for_data
7956 caller.
7957 (expand_omp_for_generic): Handle pointer, unsigned and long long
7958 iterators. Handle collapsed OMP_FOR loops. Adjust
7959 for struct omp_for_data changes. If libgomp function doesn't return
7960 boolean_type_node, add comparison of the return value with 0.
7961 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
7962 pointer, unsigned and long long iterators. Adjust for struct
7963 omp_for_data changes.
7964 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
7965 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
7966 unsigned long long. Allocate loops array, pass it to
7967 extract_omp_for_data. For collapse > 1 loops use always
7968 expand_omp_for_generic.
7969 (omp_context): Add sfield_map and srecord_type fields.
7970 (is_task_ctx, lookup_sfield): New functions.
7971 (use_pointer_for_field): Use is_task_ctx helper. Change first
7972 argument's type from const_tree to tree. Clarify comment.
7973 In OMP_TASK disallow copy-in/out sharing.
7974 (build_sender_ref): Call lookup_sfield instead of lookup_field.
7975 (install_var_field): Add mask argument. Populate both record_type
7976 and srecord_type if needed.
7977 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
7978 in srecord_type.
7979 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
7980 and DECL_FIELD_OFFSET.
7981 (scan_sharing_clauses): Adjust install_var_field callers. For
7982 firstprivate clauses on explicit tasks allocate the var by value in
7983 record_type unconditionally, rather than by reference.
7984 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
7985 Use is_taskreg_ctx instead of is_parallel_ctx.
7986 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7987 (create_omp_child_function_name): Add task_copy argument, use
7988 *_omp_cpyfn* names if it is true.
7989 (create_omp_child_function): Add task_copy argument, if true create
7990 *_omp_cpyfn* helper function.
7991 (scan_omp_parallel): Adjust create_omp_child_function callers.
7992 Rename parallel_nesting_level to taskreg_nesting_level.
7993 (scan_omp_task): New function.
7994 (lower_rec_input_clauses): Don't run constructors for firstprivate
7995 explicit task vars which are initialized by *_omp_cpyfn*.
7996 Pass outer var ref to omp_clause_default_ctor hook if
7997 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
7998 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
7999 OMP_CLAUSE_REDUCTION_INIT.
8000 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
8001 avoid duplicate setting of fields. Handle
8002 OMP_CLAUSE_PRIVATE_OUTER_REF.
8003 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
8004 copy-out if TREE_READONLY, only copy-in.
8005 (expand_task_copyfn): New function.
8006 (expand_task_call): New function.
8007 (struct omp_taskcopy_context): New type.
8008 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
8009 New functions.
8010 (lower_omp_parallel): Rename to...
8011 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
8012 Call create_task_copyfn if srecord_type is needed. Adjust
8013 sender_decl type.
8014 (task_shared_vars): New variable.
8015 (check_omp_nesting_restrictions): Warn if work-sharing,
8016 barrier, master or ordered region is closely nested inside OMP_TASK.
8017 Add warnings for barrier if closely nested inside of work-sharing,
8018 ordered, or master region.
8019 (scan_omp_1): Call check_omp_nesting_restrictions even for
8020 GOMP_barrier calls. Rename parallel_nesting_level to
8021 taskreg_nesting_level. Handle OMP_TASK.
8022 (lower_lastprivate_clauses): Even if some lastprivate is found on a
8023 work-sharing construct, continue looking for them on parent parallel
8024 construct.
8025 (lower_omp_for_lastprivate): Add lastprivate clauses
8026 to the beginning of dlist rather than end. Adjust for struct
8027 omp_for_data changes.
8028 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
8029 not after it. Handle collapsed OMP_FOR loops, adjust for
8030 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
8031 (get_ws_args_for): Adjust extract_omp_for_data caller.
8032 (scan_omp_for): Handle collapsed OMP_FOR
8033 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
8034 (lower_omp_single_simple): If libgomp function doesn't return
8035 boolean_type_node, add comparison of the return value with 0.
8036 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
8037 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
8038 (parallel_nesting_level): Rename to...
8039 (taskreg_nesting_level): ... this.
8040 (is_taskreg_ctx): New function.
8041 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
8042 of is_parallel_ctx.
8043 (execute_lower_omp): Rename parallel_nesting_level to
8044 taskreg_nesting_level.
8045 (expand_omp_parallel): Rename to...
8046 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
8047 Call omp_task_call for OMP_TASK regions.
8048 (expand_omp): Adjust caller, handle OMP_TASK.
8049 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
8050
8051 * bitmap.c (bitmap_default_obstack_depth): New variable.
8052 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
8053 if argument is NULL and bitmap_default_obstack is already initialized.
8054 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
8055 at the end.
8056 * matrix-reorg.c (matrix_reorg): Likewise.
8057
8058 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
8059
8060 * config/i386/i386.md (*indirect_jump): Macroize using P
8061 mode iterator. Remove !TARGET_64BIT from insn constraints.
8062 (*tablejump_1): Ditto.
8063 (*indirect_jump_rex64): Remove insn pattern.
8064 (*tablejump_1_rex64): Ditto.
8065 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
8066 and eh_return_si insn patterns.
8067
8068 2008-06-06 Richard Guenther <rguenther@suse.de>
8069
8070 * tree-ssa-structalias.c (merge_smts_into): Remove.
8071 (find_what_p_points_to): Do not bother to compute the
8072 points-to set for pt_anything pointers.
8073 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
8074 for pt_anything pointers is ok.
8075
8076 2008-06-06 Jan Hubicka <jh@suse.cz>
8077
8078 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
8079
8080 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8081
8082 * cgraph.c: Fix typos in comments.
8083 (cgraph_availability_names): Fix string typo.
8084 * fold-const.c: Fix typos in comments.
8085 (fold_binary): Fix typo in warning.
8086 * genautomata.c: Fix typos in comments.
8087 (check_presence_pattern_sets): Fix typo in local variable.
8088 (output_description): Fix typo in output.
8089 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
8090 * hwint.h: Likewise.
8091 * matrix-reorg.c (check_allocation_function): Likewise.
8092 * omega.c (smooth_weird_equations): Likewise.
8093 * auto-inc-dec.c: Fix typos in comments.
8094 * bb-reorder.c: Likewise.
8095 * builtins.c: Likewise.
8096 * c-common.c: Likewise.
8097 * c-cppbuiltin.c: Likewise.
8098 * c-parser.c: Likewise.
8099 * c-pretty-print.c: Likewise.
8100 * cfgcleanup.c: Likewise.
8101 * cfgexpand.c: Likewise.
8102 * cfghooks.c: Likewise.
8103 * cfglayout.c: Likewise.
8104 * cfgloopmanip.c: Likewise.
8105 * cgraphunit.c: Likewise.
8106 * coverage.c: Likewise.
8107 * dbxout.c: Likewise.
8108 * df-byte-scan.c: Likewise.
8109 * df-core.c: Likewise.
8110 * df-problems.c: Likewise.
8111 * df-scan.c: Likewise.
8112 * dfp.c: Likewise.
8113 * dominance.c: Likewise.
8114 * domwalk.c: Likewise.
8115 * dse.c: Likewise.
8116 * dwarf2out.c: Likewise.
8117 * emit-rtl.c: Likewise.
8118 * et-forest.c: Likewise.
8119 * function.c: Likewise.
8120 * function.h: Likewise.
8121 * gcc.c: Likewise.
8122 * gcov-io.c: Likewise.
8123 * gcov.c: Likewise.
8124 * gcse.c: Likewise.
8125 * genattrtab.c: Likewise.
8126 * ggc-page.c: Likewise.
8127 * gimplify.c: Likewise.
8128 * gthr-lynx.h: Likewise.
8129 * haifa-sched.c: Likewise.
8130 * ipa-cp.c: Likewise.
8131 * ipa-inline.c: Likewise.
8132 * ipa-prop.h: Likewise.
8133 * ipa-pure-const.c: Likewise.
8134 * ipa-struct-reorg.c: Likewise.
8135 * ipa-struct-reorg.h: Likewise.
8136 * ipa-type-escape.c: Likewise.
8137 * ipa.c: Likewise.
8138 * loop-doloop.c: Likewise.
8139 * mips-tfile.c: Likewise.
8140 * mkmap-flat.awk: Likewise.
8141 * mkmap-symver.awk: Likewise.
8142 * modulo-sched.c: Likewise.
8143 * omp-low.c: Likewise.
8144 * optabs.c: Likewise.
8145 * optabs.h: Likewise.
8146 * opts.c: Likewise.
8147 * passes.c: Likewise.
8148 * postreload-gcse.c: Likewise.
8149 * postreload.c: Likewise.
8150 * predict.c: Likewise.
8151 * pretty-print.h: Likewise.
8152 * profile.c: Likewise.
8153 * protoize.c: Likewise.
8154 * ra-conflict.c: Likewise.
8155 * real.c: Likewise.
8156 * recog.c: Likewise.
8157 * regclass.c: Likewise.
8158 * regs.h: Likewise.
8159 * reload.c: Likewise.
8160 * rtl-error.c: Likewise.
8161 * rtlanal.c: Likewise.
8162 * scan.h: Likewise.
8163 * sched-rgn.c: Likewise.
8164 * see.c: Likewise.
8165 * stmt.c: Likewise.
8166 * target.h: Likewise.
8167 * tree-dfa.c: Likewise.
8168 * tree-eh.c: Likewise.
8169 * tree-flow-inline.h: Likewise.
8170 * tree-inline.c: Likewise.
8171 * tree-into-ssa.c: Likewise.
8172 * tree-loop-distribution.c: Likewise.
8173 * tree-nested.c: Likewise.
8174 * tree-parloops.c: Likewise.
8175 * tree-pass.h: Likewise.
8176 * tree-pretty-print.c: Likewise.
8177 * tree-profile.c: Likewise.
8178 * tree-scalar-evolution.c: Likewise.
8179 * tree-sra.c: Likewise.
8180 * tree-ssa-alias-warnings.c: Likewise.
8181 * tree-ssa-ccp.c: Likewise.
8182 * tree-ssa-coalesce.c: Likewise.
8183 * tree-ssa-dom.c: Likewise.
8184 * tree-ssa-dse.c: Likewise.
8185 * tree-ssa-forwprop.c: Likewise.
8186 * tree-ssa-live.c: Likewise.
8187 * tree-ssa-live.h: Likewise.
8188 * tree-ssa-loop-im.c: Likewise.
8189 * tree-ssa-loop-ivopts.c: Likewise.
8190 * tree-ssa-loop-niter.c: Likewise.
8191 * tree-ssa-loop-prefetch.c: Likewise.
8192 * tree-ssa-phiopt.c: Likewise.
8193 * tree-ssa-phiprop.c: Likewise.
8194 * tree-ssa-sccvn.c: Likewise.
8195 * tree-ssa-ter.c: Likewise.
8196 * tree-ssa-threadupdate.c: Likewise.
8197 * tree-ssa.c: Likewise.
8198 * tree-vect-analyze.c: Likewise.
8199 * tree-vect-transform.c: Likewise.
8200 * tree-vectorizer.c: Likewise.
8201 * tree-vn.c: Likewise.
8202 * tree-vrp.c: Likewise.
8203 * tree.c: Likewise.
8204 * tree.def: Likewise.
8205 * tree.h: Likewise.
8206 * unwind-dw2-fde.c: Likewise.
8207 * unwind.inc: Likewise.
8208 * value-prof.c: Likewise.
8209 * vmsdbgout.c: Likewise.
8210
8211 2008-06-05 David Edelsohn <edelsohn@gnu.org>
8212
8213 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
8214 always place FP constants in the TOC for TARGET_POWERPC64.
8215 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
8216
8217 2008-06-05 Joseph Myers <joseph@codesourcery.com>
8218
8219 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
8220 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
8221 enable for TARGET_E500_DOUBLE.
8222 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
8223 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
8224 floating-point modes like integer modes for E500 double.
8225 (rs6000_legitimate_offset_address_p): Likewise.
8226 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
8227 addressing for DDmode for E500 double.
8228 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
8229 modes as using 64-bits of registers for E500 double.
8230 (spe_build_register_parallel): Do not handle DDmode or TDmode.
8231 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
8232 specially for E500 double.
8233 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
8234 TDmode for E500 double.
8235 (rs6000_gimplify_va_arg): Only handle SDmode in registers
8236 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
8237 (rs6000_split_multireg_move): Do not handle TDmode specially for
8238 E500 double.
8239 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
8240 using 64-bit registers for E500 double.
8241 (emit_frame_save): Do not handle DDmode specially for E500 double.
8242 (gen_frame_mem_offset): Likewise.
8243 (rs6000_function_value): Do not call spe_build_register_parallel
8244 for DDmode or TDmode.
8245 (rs6000_libcall_value): Likewise.
8246 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
8247 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
8248 for E500 double.
8249
8250 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
8251
8252 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
8253 in comments.
8254
8255 2008-06-04 Junjie Gu <jgu@tensilica.com>
8256
8257 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
8258 comparison for frame pointers.
8259
8260 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
8261
8262 PR target/27386
8263 * config/avr/avr.h (PUSH_ROUNDING): Remove.
8264
8265 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
8266
8267 PR target/30243
8268 * builtins.c (expand_builtin_signbit): Don't take lowpart when
8269 register is already smaller or equal to required mode.
8270
8271 2008-06-04 Xinliang David Li <davidxl@google.com>
8272
8273 * tree-call-cdce.c: New file.
8274 (cond_dead_built_in_calls): New static variable.
8275 (input_domain): New struct.
8276 (check_pow): New function.
8277 (check_builtin_call): Ditto.
8278 (check_target_format): Ditto.
8279 (is_call_dce_candidate): Ditto.
8280 (gen_one_condition): Ditto.
8281 (gen_conditions_for_domain): Ditto.
8282 (get_domain): Ditto.
8283 (gen_conditions_for_pow_cst_base): Ditto.
8284 (gen_conditions_for_pow_int_base): Ditto.
8285 (gen_conditions_for_pow): Ditto.
8286 (get_no_error_domain): Ditto.
8287 (gen_shrink_wrap_conditions): Ditto.
8288 (shrink_wrap_one_built_in_call): Ditto.
8289 (shink_wrap_conditional_dead_built_in_calls): Ditto.
8290 (tree_call_cdce): Ditto.
8291 (gate_call_cdce): Ditto.
8292 (pass_call_cdce): New gimple pass.
8293 * passes.c: (init_optimization_passes): New pass.
8294 * tree-pass.h: New pass declaration.
8295 * opts.c (decode_options): New flag setting.
8296 * common.opt: Add -ftree-builtin-call-dce flag.
8297 * Makefile.in: Add new source file.
8298 * tempvar.def: New tv_id.
8299 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
8300
8301 2008-06-04 Richard Guenther <rguenther@suse.de>
8302
8303 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
8304 (is_call_clobbered): Always check var_ann->call_clobbered.
8305 (mark_call_clobbered): Always set var_ann->call_clobbered.
8306 (clear_call_clobbered): Always clear var_ann->call_clobbered.
8307 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
8308 (reset_alias_info): Clear call clobbering info on MTAGs and
8309 globals as well.
8310 (set_pt_anything): Set pt_global_mem.
8311 (create_tag_raw): Adjust comment.
8312 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
8313
8314 2008-06-04 Joseph Myers <joseph@codesourcery.com>
8315 Maxim Kuvyrkov <maxim@codesourcery.com>
8316
8317 * config/m68k/m68k.opt (mxgot): New option.
8318 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
8319 (m68k_output_addr_const_extra): New.
8320 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
8321 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
8322 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
8323 * doc/invoke.texi (M680x0 Options): Document -mxgot.
8324
8325 2008-06-04 Richard Guenther <rguenther@suse.de>
8326
8327 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
8328 negative or non-representable offsets.
8329
8330 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
8331
8332 * config/i386/i386.c (ix86_gen_leave): New.
8333 (ix86_gen_pop1): Likewise.
8334 (ix86_gen_add3): Likewise.
8335 (ix86_gen_sub3): Likewise.
8336 (ix86_gen_sub3_carry): Likewise.
8337 (ix86_gen_one_cmpl2): Likewise.
8338 (ix86_gen_monitor): Likewise.
8339 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
8340 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
8341 ix86_gen_one_cmpl2 and ix86_gen_monitor.
8342 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
8343 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
8344 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
8345 (ix86_expand_epilogue): Updated.
8346 (print_operand): Handle integer register operand for 'z'.
8347 (ix86_expand_strlensi_unroll_1): Likewise.
8348 (ix86_expand_strlen): Likewise.
8349 (ix86_expand_builtin): Likewise.
8350 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
8351 mov{q}/mov{l} and add{q}/add{l}.
8352
8353 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
8354
8355 * config/i386/i386.md (P): New mode iterator.
8356 (SFmode push_operand splitter): Macroize DImode and SImode pushes
8357 using P mode iterator.
8358 (DFmode push_operand splitter): Ditto.
8359 (XFmode push_operand splitter): Ditto.
8360 (DFmode float_extend SFmode push_operand splitter): Ditto.
8361 (XFmode float_extend SFmode push_operand splitter): Do not generate
8362 SImode pushes for 64bit target. Macroize Dimode and SImode
8363 pushes using P mode iterator.
8364 (XFmode float_extend DFmode push_operand splitter): Ditto.
8365
8366 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
8367
8368 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
8369 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
8370 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
8371 return type to int.
8372 (ix86_call_abi_override): Remove check for call_used_regs.
8373
8374 2008-06-03 Richard Guenther <rguenther@suse.de>
8375
8376 * tree-ssa-structalias.c (find_func_aliases): Add constraints
8377 for the lhs of calls if the return type contains pointers.
8378
8379 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
8380
8381 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
8382 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
8383 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
8384 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
8385 of cfun and DEFAULT_ABI to deceide abi mode.
8386 (DEFAULT_ABI): New.
8387 (REG_PARM_STACK_SPACE): Removed.
8388 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
8389 (STACK_BOUNDARY): Use default target to deceide stack boundary.
8390 * config/i386/i386-protos.h (ix86_cfun_abi): New.
8391 (ix86_function_abi): Likewise.
8392 (ix86_function_type_abi): Likewise.
8393 (ix86_call_abi_override): Likewise.
8394 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
8395 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
8396 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
8397 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
8398 specific defines.
8399 (X86_64_REGPARM_MAX): New.
8400 (X86_64_SSE_REGPARM_MAX): New.
8401 (X64_REGPARM_MAX): New.
8402 (X64_SSE_REGPARM_MAX): New.
8403 (X86_32_REGPARM_MAX): New.
8404 (X86_32_SSE_REGPARM_MAX): New.
8405 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
8406 (ix86_function_regparm): Handle user calling abi.
8407 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
8408 by DEFAULT_ABI versus SYSV_ABI check.
8409 (ix86_reg_parm_stack_space): New.
8410 (ix86_function_type_abi): New.
8411 (ix86_call_abi_override): New.
8412 (ix86_function_abi): New.
8413 (ix86_cfun_abi): New.
8414 (init_cumulative_args): Call abi specific initialization.
8415 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
8416 (function_arg_64): Extend SSE_REGPARM_MAX check.
8417 (function_arg (): Remove TARGET_64BIT_MS_ABI.
8418 (ix86_pass_by_reference): Likewise.
8419 (ix86_function_value_regno_p): Likewise.
8420 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
8421 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
8422 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
8423 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
8424 (setup_incoming_varargs_64): Adjust regparm for call abi.
8425 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
8426 (ix86_va_start): Likewise.
8427 (ix86_gimplify_va_arg): Likewise.
8428 (ix86_expand_prologue): Likewise.
8429 (output_pic_addr_const): Likewise.
8430 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
8431 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
8432 (x86_output_mi_thunk): Likewise.
8433 (x86_function_profiler): Likewise.
8434 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
8435 (SYSV_ABI, MS_ABI): New constants.
8436 (DEFAULT_ABI): New.
8437 (init_regs): Add prototype of function in regclass.c file.
8438 (OVERRIDE_ABI_FORMAT): New.
8439 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
8440 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
8441 (OUTGOING_REG_PARM_STACK_SPACE): New.
8442 (ix86_reg_parm_stack_space): New prototype.
8443 (CUMULATIVE_ARGS): Add call_abi member.
8444 (machine_function): Add call_abi member.
8445 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
8446 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
8447
8448 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
8449
8450 PR target/34879
8451 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
8452 (avr_builtin_setjmp_frame_value): New function.
8453 * config/avr/avr.md (nonlocal_goto_receiver): Define.
8454 (nonlocal_goto): Define.
8455
8456 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
8457
8458 * config/mips/mips.c (mips_emit_loadgp): Return early if
8459 there is nothing do to, otherwise emit a blockage if
8460 !TARGET_EXPLICIT_RELOCS || crtl->profile.
8461 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
8462
8463 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8464
8465 * configure.ac: Drop unneeded backslash ending up in config.in.
8466 * acinclude.m4: Likewise.
8467 * config.in: Regenerate.
8468
8469 2008-05-26 Jan Hubicka <jh@suse.cz>
8470
8471 * predict.c (maybe_hot_frequency_p): Break out of...
8472 (maybe_hot_bb_p): ... here.
8473 (maybe_hot_edge_p): New.
8474 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
8475 * basic-block.h (maybe_hot_edge_p): Declare.
8476
8477 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
8478
8479 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
8480 (*cmpfp_<mode>_cc): Ditto.
8481 (*fp_jcc_8<mode>_387): Ditto.
8482 (*fop_<MODEF:mode>_2_i387): Ditto.
8483 (*fop_<MODEF:mode>_3_i387): Ditto.
8484 (*fop_xf_2_i387): Ditto.
8485 (*fop_xf_3_i387): Ditto.
8486
8487 2008-06-02 Tomas Bily <tbily@suse.cz>
8488
8489 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
8490
8491 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
8492
8493 * config/mips/mips.c (mips_valid_offset_p): New function.
8494 (mips_valid_lo_sum_p): Likewise.
8495 (mips_classify_address): Use them.
8496 (mips_force_address): New function.
8497 (mips_legitimize_address): Use it.
8498 * config/mips/mips.md (MOVE128): New mode iterator.
8499 (movtf): Require TARGET_64BIT. Remove empty strings.
8500 (*movtf_internal): Rename to...
8501 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
8502 of "R" and use {,fp}{load,store} attributes instead of "multi".
8503 Use a separate define_split.
8504 (*movtf_mips16): New pattern.
8505
8506 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
8507
8508 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
8509 * config/mips/mips.c (mips_expand_before_return): New function.
8510 (mips_expand_epilogue): Call it.
8511 * config/mips/mips.md (return): Turn into a define_expand.
8512 (*return): New insn.
8513
8514 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
8515
8516 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
8517 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
8518 functions. Do not emit uses and clobbers of CONCATs; individually
8519 use and clobber their operands.
8520 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
8521 gen_clobber, emit_use and gen_use.
8522 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
8523 (expand_builtin_return): Likewise.
8524 * cfgbuild.c (count_basic_blocks): Likewise.
8525 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
8526 * explow.c (emit_stack_restore): Likewise.
8527 * expmed.c (extract_bit_field_1): Likewise.
8528 * expr.c (convert_move, emit_move_complex_parts): Likewise.
8529 (emit_move_multi_word, store_constructor): Likewise.
8530 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
8531 (thread_prologue_and_epilogue_insns): Likewise.
8532 * lower-subreg.c (resolve_simple_move): Likewise.
8533 * optabs.c (widen_operand, expand_binop): Likewise.
8534 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
8535 * reload.c (find_reloads): Likewise.
8536 * reload1.c (eliminate_regs_in_insn): Likewise.
8537 * stmt.c (expand_nl_goto_receiver): Likewise.
8538 * config/alpha/alpha.md (builtin_longjmp): Likewise.
8539 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
8540 * config/arm/arm.c (arm_load_pic_register): Likewise.
8541 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
8542 * config/arm/arm.md (untyped_return): Likewise.
8543 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
8544 * config/avr/avr.c (expand_prologue): Likewise.
8545 * config/bfin/bfin.c (do_unlink): Likewise.
8546 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
8547 * config/cris/cris.c (cris_expand_prologue): Likewise.
8548 * config/darwin.c (machopic_indirect_data_reference): Likewise.
8549 (machopic_legitimize_pic_address): Likewise.
8550 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
8551 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
8552 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
8553 (ix86_expand_convert_uns_didf_sse): Likewise.
8554 (ix86_expand_vector_init_general): Likewise.
8555 * config/ia64/ia64.md (eh_epilogue): Likewise.
8556 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
8557 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
8558 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
8559 (config/iq2000/iq2000.c): Likewise.
8560 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
8561 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8562 (builtin_longjmp): Likewise.
8563 * config/mn10300/mn10300.md (call, call_value): Likewise.
8564 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
8565 * config/pdp11/pdp11.md (abshi2): Likewise.
8566 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8567 * config/s390/s390.c (s390_emit_prologue): Likewise.
8568 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
8569 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
8570 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
8571 * config/sh/sh.c (prepare_move_operands): Likewise.
8572 (output_stack_adjust, sh_expand_epilogue): Likewise.
8573 (sh_set_return_address, sh_expand_t_scc): Likewise.
8574 * config/sparc/sparc.c (load_pic_register): Likewise.
8575 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
8576 * config/spu/spu.c (spu_expand_epilogue): Likewise.
8577 * config/v850/v850.c (expand_epilogue): Likewise.
8578
8579 2008-05-31 Anatoly Sokolov <aesok@post.ru>
8580
8581 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
8582 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
8583 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
8584 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
8585 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
8586 stack pointer register.
8587 (output_movhi): Remove code for interrupt specific writing to the
8588 stack pointer register.
8589
8590 2008-05-31 Richard Guenther <rguenther@suse.de>
8591
8592 PR tree-optimization/34244
8593 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
8594 (tree_expr_nonzero_warnv_p): Likewise.
8595 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
8596 ssa_name_nonnegative_p.
8597 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
8598 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
8599 not tree_expr_nonzero_warnv_p.
8600
8601 PR tree-optimization/36262
8602 Revert
8603 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
8604
8605 PR tree-optimization/34244
8606 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
8607 (record_numbers_of_iterations): New function.
8608 (execute_vrp): Cache the numbers of iterations of loops.
8609 * tree-scalar-evolution.c (scev_reset_except_niters):
8610 New function.
8611 (scev_reset): Use scev_reset_except_niters.
8612 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
8613
8614 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
8615
8616 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8617 __WORKAROUND_RETS when appropriate.
8618
8619 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
8620
8621 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
8622 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
8623 mode iterator.
8624 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
8625 *fop_df_comm_sse insn patterns using MODEF mode iterator.
8626 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
8627 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
8628 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
8629 *fop_df_1_mixed insn patterns using MODEF mode iterator.
8630 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
8631 *fop_df_1_sse insn patterns using MODEF mode iterator.
8632 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
8633 *fop_df_1_i387 insn patterns using MODEF mode iterator.
8634 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
8635 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
8636 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
8637 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
8638 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
8639 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
8640 (*fop_xf_4_i387): Use <MODE> for mode attribute.
8641 (*fop_xf_5_i387): Ditto.
8642 (*fop_xf_6_i387): Ditto.
8643
8644 2008-05-30 Richard Guenther <rguenther@suse.de>
8645
8646 * builtins.c (build_string_literal): Avoid generating
8647 a non-gimple_val result.
8648
8649 2008-05-30 DJ Delorie <dj@redhat.com>
8650
8651 * exec-tool.in: Use an environment variable (private) instead of a
8652 file (shared) as a semaphore, so as to not break parallel builds.
8653
8654 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
8655
8656 * optabs.c (maybe_encapsulate_block): Remove.
8657 (emit_libcall_block): Adjust accordingly.
8658 * optabs.h (maybe_encapsulate_block): Remove prototype.
8659
8660 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
8661 Don't use maybe_encapsulate_block.
8662
8663 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
8664
8665 * config/rs6000/rs6000.c (rs6000_legitimize_address,
8666 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
8667 rtx is a SYMBOL_REF before calling get_pool_constant.
8668
8669 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
8670
8671 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
8672
8673 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
8674
8675 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
8676 rather than OS names to choose INO_T_EQ definition.
8677 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
8678 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
8679
8680 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
8681
8682 PR target/36348
8683 * config/darwin-f.c: New.
8684 * config/t-darwin: Added rule to build darwin-f.o.
8685 * config.gcc: Defined new variable, fortran_target_objs.
8686 (*-*-darwin*): Set fortran_target_objs.
8687 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
8688 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
8689 * configure: Regenerated.
8690
8691 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
8692
8693 PR target/35771
8694 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
8695 canonical type if needed.
8696
8697 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
8698
8699 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
8700
8701 2008-05-29 Richard Guenther <rguenther@suse.de>
8702
8703 PR tree-optimization/36343
8704 PR tree-optimization/36346
8705 PR tree-optimization/36347
8706 * tree-flow.h (clobber_what_p_points_to): Declare.
8707 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
8708 pointed-to variable is dereferenced is irrelevant to whether
8709 the pointer can access the pointed-to variable.
8710 (clobber_what_p_points_to): New function.
8711 * tree-ssa-alias.c (set_initial_properties): Use it.
8712 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
8713 call clobber check for NMTs.
8714
8715 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
8716
8717 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
8718 for printing gcov_type.
8719
8720 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
8721
8722 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
8723 and the eh region information.
8724 * value-prof.c (gimple_move_stmt_histograms): New function.
8725 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
8726
8727 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
8728
8729 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
8730
8731 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
8732
8733 * value-prof.c (tree_ic_transform): Print counts.
8734 * tree-profile.c (tree_gen_ic_func_profiler):
8735 Clear __gcov_indreict_call_callee variable to avoid misattribution
8736 of the profile.
8737
8738 2008-05-28 Rafael Espindola <espindola@google.com>
8739
8740 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
8741 invalid sharing.
8742
8743 2008-05-28 Richard Guenther <rguenther@suse.de>
8744
8745 PR tree-optimization/36339
8746 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
8747 and clobbering code out of the loop.
8748
8749 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
8750
8751 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
8752 letters defined.
8753
8754 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
8755 s390_contiguous_bitmask_p, s390_symref_operand_p,
8756 s390_check_symref_alignment, s390_reload_larl_operand,
8757 s390_reload_symref_address): New functions.
8758 (s390_branch_condition_mnemonic): Support compare and branch
8759 instructions.
8760 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
8761 and 'W' constraints.
8762 (s390_secondary_reload): Add secondary reloads for unaligned
8763 symbol refs or symbol refs to floating point or QI/TI mode
8764 integer values.
8765 (legitimate_address_p): Accept symbol references as addresses.
8766 (s390_expand_insv): Use rotate and insert selected bits
8767 instruction for insv when building for z10.
8768 (print_operand_address): Handle symbol ref addresses.
8769 (print_operand): Output modifier 'c' added for signed byte values.
8770 (s390_encode_section_info): Mark symbol refs with
8771 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
8772
8773 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
8774 (length attribute): RRF, RRR have 4 byte length.
8775 (FPALL, INTALL): New mode iterators added.
8776 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
8777 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
8778 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
8779 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
8780 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
8781 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
8782 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
8783 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
8784 instructions.
8785 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
8786 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
8787 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
8788 reload<INTALL:mode><P:mode>_toreg_z10,
8789 reload<FPALL:mode><P:mode>_tomem_z10,
8790 reload<FPALL:mode><P:mode>_toreg_z10,
8791 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
8792 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
8793 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
8794 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
8795 definition.
8796 (movmem, clrmem, cmpmem): New splitters added.
8797
8798 * config/s390/predicates.md (larl_operand): Use
8799 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
8800 SYMBOL_REF_ALIGN1_P.
8801 (s390_signed_integer_comparison,
8802 s390_unsigned_integer_comparison): New predicates.
8803
8804 * config/s390/s390-protos.h (s390_check_symref_alignment,
8805 s390_contiguous_bitmask_p, s390_reload_larl_operand,
8806 s390_reload_symref_address,
8807 s390_compare_and_branch_condition_mask): Prototypes added.
8808
8809 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
8810 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
8811 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
8812
8813 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
8814
8815 * config/s390/s390.c (z10_cost): New cost function for z10.
8816 (s390_handle_arch_option, override_options): Support -march=z10 switch.
8817 (s390_issue_rate): Adjust issue rate for z10.
8818 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
8819 (processor_flags): Add PF_Z10.
8820 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
8821 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
8822 * gcc/config.gcc: Add z10.
8823
8824 2008-05-28 Richard Guenther <rguenther@suse.de>
8825
8826 PR tree-optimization/36291
8827 * tree-flow. h (struct gimple_df): Remove var_anns member.
8828 * tree-flow-inline.h (gimple_var_anns): Remove.
8829 (var_ann): Simplify.
8830 * tree-dfa.c (create_var_ann): Simplify.
8831 (remove_referenced_var): Clear alias info from var_anns of globals.
8832 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
8833 (delete_tree_ssa): Clear alias info from var_anns of globals.
8834 Do not free var_anns.
8835 (var_ann_eq): Remove.
8836 (var_ann_hash): Likewise.
8837
8838 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
8839
8840 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
8841 and loongson2f entries.
8842 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
8843 * config/mips/mips.h (processor_type): Add Loongson-2E
8844 and Loongson-2F entries.
8845 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
8846 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
8847 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
8848 * doc/invoke.texi (MIPS Options): Document loongson2e
8849 and loongson2f processor names.
8850
8851 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
8852
8853 PR target/35767
8854 PR target/35771
8855 * config/i386/i386.c (ix86_function_arg_boundary): Use
8856 alignment of canonical type.
8857 (ix86_expand_vector_move): Check unaligned memory access for
8858 all SSE modes.
8859
8860 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
8861
8862 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
8863 Moved to the front of file.
8864
8865 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
8866 H.J. Lu <hongjiu.lu@intel.com>
8867
8868 * dwarf2out.c (current_fde): New.
8869 (add_cfi): Use it.
8870 (lookup_cfa:): Likewise.
8871 (dwarf2out_end_epilogue): Likewise.
8872 (dwarf2out_note_section_used): Likewise.
8873
8874 2008-05-27 Michael Matz <matz@suse.de>
8875
8876 PR c++/27975
8877 * c.opt (Wenum-compare): New warning option.
8878 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
8879
8880 2008-05-27 Michael Matz <matz@suse.de>
8881
8882 PR middle-end/36326
8883 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
8884 non-BLKmode types.
8885 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
8886 into memory as tail calls.
8887
8888 2008-05-27 Richard Guenther <rguenther@suse.de>
8889
8890 PR tree-optimization/36339
8891 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
8892 pointers cause all addressable variables to be call clobbered.
8893
8894 2008-05-27 Richard Guenther <rguenther@suse.de>
8895
8896 PR tree-optimization/36245
8897 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
8898
8899 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
8900
8901 * config/s390/s390.md: Replace all occurences of the 'm'
8902 constraint with 'RT'.
8903
8904 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
8905
8906 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
8907 definitions added.
8908 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
8909 "*movdi_64".
8910 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
8911 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
8912 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
8913
8914 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
8915
8916 * reload.c: (find_reloads): Skip alternatives according to the
8917 "enabled" attribute. Constify the constraint variable.
8918 * recog.c (get_attr_enabled): Add default implementation.
8919 (extract_insn): Set the alternative_enabled_p array
8920 in the recog_data struct.
8921 (preprocess_constraints, constrain_operands): Skip
8922 alternatives according to the "enabled" attribute
8923 * recog.h (struct recog_data): New field alternative_enabled_p.
8924 (skip_alternative): New inline function.
8925 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
8926 (record_reg_classes): Skip alternative according to the
8927 "enabled" attribute.
8928
8929 * doc/md.texi: Add documention for the "enabled" attribute.
8930
8931 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
8932
8933 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
8934 * postreload.c (reload_cse_simplify_operands): Replace 'm'
8935 constraint with TARGET_MEM_CONSTRAINT.
8936 * recog.c (asm_operand_ok, preprocess_constraints,
8937 constrain_operands): Likewise.
8938 * regclass.c (record_reg_classes): Likewise.
8939 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
8940 * reload1.c (maybe_fix_stack_asms): Likewise.
8941 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8942 * recog.h: Adjust comment.
8943 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
8944 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
8945 * doc/md.texi: Add a note to description of 'm' constraint.
8946 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
8947
8948 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
8949
8950 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
8951 that the bitfield is of integral type before testing its precision.
8952
8953 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8954 Sa Liu <saliu@de.ibm.com>
8955
8956 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
8957 __modti3, __udivti3, __umodti3 and __udivmodti4.
8958 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
8959 that implement TImode mul and div functions.
8960 * config/spu/multi3.c: New. Implement __multi3.
8961 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
8962 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
8963 functions on SPU.
8964
8965 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
8966
8967 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
8968 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
8969 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
8970 tls_sysv_suffix): New mode and mode attribute iterators.
8971 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
8972 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
8973 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
8974 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
8975 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
8976 iterators.
8977
8978 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
8979
8980 PR tree-optimization/36329
8981 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
8982 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
8983 * cgraphbuild.c (initialize_inline_failed): Use the latter
8984 macro in lieu of the former.
8985 * ipa-inline.c (cgraph_mark_inline): Likewise.
8986 (cgraph_decide_inlining_of_small_function): Likewise.
8987 (cgraph_decide_inlining): Likewise.
8988 (cgraph_decide_inlining_incrementally): Likewise.
8989
8990 2008-05-26 Tristan Gingold <gingold@adacore.com>
8991 Anatoly Sokolov <aesok@post.ru>
8992
8993 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
8994 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
8995 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
8996 optimization for 'avr6' architecture.
8997
8998 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
8999
9000 PR target/34932
9001 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
9002
9003 2008-05-26 Richard Guenther <rguenther@suse.de>
9004
9005 * tree-ssa-sccvn.c (expr_has_constants): Declare.
9006 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
9007
9008 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
9009
9010 PR middle-end/36253
9011 * caller-save.c (insert_restore): Verify alignment of spill space.
9012 (insert_save): Likewise.
9013 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
9014 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
9015 (STACK_SLOT_ALIGNMENT): Likewise.
9016 * function.c (LOCAL_ALIGNMENT): Removed.
9017 (get_stack_local_alignment): New.
9018 (assign_stack_local): Use it. Set alignment on stack slot.
9019 (assign_stack_temp_for_type): Use get_stack_local_alignment.
9020 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
9021 (STACK_SLOT_ALIGNMENT): New.
9022 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
9023 stack slot in XFmode.
9024
9025 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
9026
9027 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
9028
9029 PR/36321
9030 * config/i386/i386.md (allocate_stack_worker_64): Make sure
9031 argument operand in rax isn't removed.
9032
9033 2008-05-26 Richard Guenther <rguenther@suse.de>
9034
9035 PR middle-end/36300
9036 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
9037 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
9038
9039 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
9040
9041 PR bootstrap/36331
9042 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
9043
9044 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
9045
9046 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
9047 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
9048
9049 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
9050
9051 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
9052 build a trampoline if we don't want one.
9053 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
9054 return zero for nested functions if we don't want a trampoline.
9055
9056 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
9057
9058 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
9059
9060 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
9061
9062 PR fortran/18428
9063 * c.opt: Removed undocumented option '-lang-fortran'.
9064 * c-common.h: Removed global variable 'lang_fortran'.
9065 * c-opts.c (c_common_handle_option): Removed code to handle
9066 option '-lang-fortran'. Updated includes.
9067 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
9068 definition of '__GFORTRAN__'.
9069 (define__GNUC__): Reimplemented to use BASEVER and
9070 cpp_define_formatted.
9071 (builtin_define_with_value_n): Removed.
9072 * c-incpath.h: Renamed to ...
9073 * incpath.h: ... this.
9074 * c-incpath.c: Renamed to ...
9075 * incpath.c: ... this. Updated includes.
9076 * fix-header.c: Updated includes.
9077 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
9078 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
9079 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
9080
9081 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
9082
9083 * tree.h: Update the table of flags used on tree nodes.
9084 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
9085 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
9086 (FORCED_LABEL): Add access check.
9087 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
9088 (ASM_INPUT_P): Likewise.
9089 (ASM_VOLATILE_P): Likewise.
9090 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
9091 (OMP_SECTION_LAST): Access private_flag directly.
9092 (OMP_RETURN_NOWAIT): Likewise.
9093 (OMP_PARALLEL_COMBINED): Likewise.
9094 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
9095 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
9096 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
9097 deprecated_flag directly.
9098
9099 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
9100
9101 * final.c (frame_pointer_needed): Removed.
9102 * flags.h (frame_pointer_needed): Likewise.
9103
9104 * function.h (rtl_data): Add frame_pointer_needed.
9105 (frame_pointer_needed): New.
9106
9107 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
9108
9109 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
9110
9111 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
9112
9113 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
9114 SRC is a REG.
9115
9116 2008-05-25 Alan Modra <amodra@bigpond.net.au>
9117
9118 * c-common.c (strip_array_types): Move function to..
9119 * tree.c: ..here.
9120 (get_inner_array_type): Delete.
9121 * c-common.h (strip_array_types): Move declaration to..
9122 * tree.h: ..here.
9123 (get_inner_array_type): Delete.
9124 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
9125 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
9126 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9127 * config/pa/pa.c (emit_move_sequence): Likewise.
9128
9129 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
9130
9131 * config/i386/i386.md (*sse_prologue_save_insn): Set length
9132 attribute to 34.
9133
9134 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
9135
9136 * function.c: Include target hook for nonlocal_goto frame value.
9137
9138 2008-05-24 Richard Guenther <rguenther@suse.de>
9139
9140 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
9141 variable can be only accessed through a pointer or a union.
9142
9143 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9144
9145 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
9146 * doc/extend.texi: Likewise.
9147
9148 2008-05-23 DJ Delorie <dj@redhat.com>
9149
9150 * config/m32c/jump.md (untyped_call): Add.
9151
9152 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
9153 for A24 to PSImode.
9154 (m32c_address_cost): Detail costs for indirect offsets.
9155
9156 2008-05-23 Rafael Espindola <espindola@google.com>
9157
9158 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
9159 if a node is a SUBREG.
9160 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
9161 is a SUBREG.
9162
9163 2008-05-23 Paul Brook <paul@codesourcery.com>
9164 Carlos O'Donell <carlos@codesourcery.com>
9165
9166 * doc/extend.texi: Clarify use of __attribute__((naked)).
9167 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
9168 * target.h (gcc_target): Add allocate_stack_slots_for_args.
9169 * function.c (use_register_for_decl): Use
9170 targetm.calls.allocate_stack_slots_for_args.
9171 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
9172 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
9173 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
9174
9175 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
9176
9177 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
9178
9179 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
9180
9181 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
9182 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
9183 is only rounded once.
9184
9185 2008-05-23 Richard Guenther <rguenther@suse.de>
9186
9187 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
9188
9189 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
9190 Jakub Jelinek <jakub@redhat.com>
9191
9192 PR target/36079
9193 * configure.ac: Handle --enable-cld.
9194 * configure: Regenerated.
9195 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
9196 * config/i386/i386.h (struct machine_function): Add needs_cld field.
9197 (ix86_current_function_needs_cld): New define.
9198 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
9199 (cld): New isns pattern.
9200 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
9201 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
9202 * config/i386/i386.opt (mcld): New option.
9203 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
9204 TARGET_CLD and ix86_current_function_needs_cld.
9205 (override_options): Use -mcld by default for 32-bit code if
9206 USE_IX86_CLD.
9207
9208 * doc/install.texi (Options specification): Document --enable-cld.
9209 * doc/invoke.texi (Machine Dependent Options)
9210 [i386 and x86-64 Options]: Add -mcld option.
9211 (Intel 386 and AMD x86-64 Options): Document -mcld option.
9212
9213 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
9214 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
9215 (return_in_memory_64): Likewise.
9216 (return_in_memory_ms_64): Likewise.
9217
9218 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9219
9220 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
9221 * builtins.c (fold_builtin_fpclassify): New.
9222 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
9223 * builtins.def (BUILT_IN_FPCLASSIFY): New.
9224 * c-common.c (handle_type_generic_attribute): Adjust to accept
9225 fixed arguments before an elipsis.
9226 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
9227 * doc/extend.texi: Document __builtin_fpclassify.
9228
9229 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
9230
9231 * omp-low.c (gate_expand_omp_ssa): Remove.
9232 (pass_expand_omp_ssa): Remove.
9233 (gate_expand_omp): Do not check for flag_openmp_ssa.
9234 * common.opt (-fopenmp-ssa): Remove.
9235 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
9236
9237 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
9238
9239 * config/sh/sh.opt (mfixed-range): New option.
9240 * config/sh/sh-protos.h (sh_fix_range): Declare.
9241 * config/sh/sh.c (sh_fix_range): New function.
9242 * config/sh/sh.h (sh_fixed_range_str): Declare.
9243 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
9244 is not empty.
9245 * doc/invoke.texi (SH Options): Document -mfixed-range.
9246
9247 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
9248
9249 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
9250 it before the redeclaration.
9251
9252 2008-05-22 Anatoly Sokolov <aesok@post.ru>
9253
9254 * config/avr/avr.c (get_sequence_length): Add new function.
9255 (expand_prologue, expand_epilogue): Remove duplicate code.
9256
9257 2008-05-22 Rafael Espindola <espindola@google.com>
9258
9259 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
9260 sharing.
9261
9262 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
9263
9264 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
9265 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
9266
9267 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
9268 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
9269 (vect_update_misalignment_for_peel): Likewise.
9270 (vector_alignment_reachable_p): Likewise.
9271 * tree-vect-transform.c (vectorizable_load): Likewise.
9272 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
9273 (get_vectype_for_scalar_type): Pass mode of scalar_type
9274 to UNITS_PER_SIMD_WORD.
9275
9276 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
9277 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9278 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9279 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9280 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9281
9282 2008-05-22 Ira Rosen <irar@il.ibm.com>
9283
9284 PR tree-optimization/36293
9285 * tree-vect-transform.c (vect_transform_strided_load): Don't check
9286 if the first load must be skipped because of a gap.
9287
9288 2008-05-22 Richard Guenther <rguenther@suse.de>
9289
9290 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
9291 more cases of offset disambiguation that is possible if
9292 strict-aliasing rules apply.
9293 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
9294 for basic offset and type-based disambiguation.
9295
9296 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9297
9298 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
9299 ix86_expand_vector_set on V16QImode for SSE4.1.
9300
9301 2008-05-21 Tom Tromey <tromey@redhat.com>
9302
9303 * c.opt (Wimport): Mark as undocumented.
9304 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
9305 -Wno-import.
9306 (Warning Options): Likewise.
9307 * doc/cppopts.texi: Don't mention -Wimport.
9308
9309 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
9310
9311 PR tree-optimization/36287
9312 PR tree-optimization/36286
9313 * lambda-code.c (build_access_matrix): Do not use the loop->num
9314 for computing the number of induction variables: use the loop depth
9315 instead.
9316
9317 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
9318
9319 PR/36280
9320 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
9321 option -f(no-)leading-underscore.
9322
9323 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9324
9325 * config/i386/i386.c (ix86_expand_vector_init_general): Use
9326 GET_MODE_NUNITS (mode).
9327
9328 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
9329
9330 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
9331 (-mmulhw): Add 464 to description.
9332 (-mdlmzb): Likewise.
9333 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
9334 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
9335 464fp entries.
9336 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
9337 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
9338 * config/rs6000/rs6000.md: Update comments for 464.
9339
9340 2008-05-21 Janis Johnson <janis187@us.ibm.com>
9341
9342 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
9343
9344 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9345
9346 * config/i386/sse.md (vec_extractv4sf): Removed.
9347 (vec_extractv2df): Likewise.
9348 (vec_extractv2di): Likewise.
9349 (vec_extractv4si): Likewise.
9350 (vec_extractv8hi): Likewise.
9351 (vec_extractv16qi): Likewise.
9352 (vec_extract<mode>): New.
9353
9354 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9355
9356 * config/i386/sse.md (vec_setv4sf): Removed.
9357 (vec_setv2df): Likewise.
9358 (vec_setv2di): Likewise.
9359 (vec_setv4si): Likewise.
9360 (vec_setv8hi): Likewise.
9361 (vec_setv16qi): Likewise.
9362 (vec_set<mode>): New.
9363
9364 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9365
9366 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
9367 goto for vec_concat and vec_interleave.
9368
9369 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
9370
9371 * config/i386/sse.md (vec_initv4sf): Removed.
9372 (vec_initv2df): Likewise.
9373 (vec_initv2di): Likewise.
9374 (vec_initv4si): Likewise.
9375 (vec_initv8hi): Likewise.
9376 (vec_initv16qi): Likewise.
9377 (vec_init<mode>): New.
9378
9379 2008-05-21 Joseph Myers <joseph@codesourcery.com>
9380
9381 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
9382
9383 2008-05-21 Tom Tromey <tromey@redhat.com>
9384
9385 * ggc-zone.c (lookup_page_table_if_allocated): New function.
9386 (zone_find_object_offset): Likewise.
9387 (gt_ggc_m_S): Likewise.
9388 (highest_bit): Likewise.
9389 * ggc-page.c (gt_ggc_m_S): New function.
9390 * stringpool.c (string_stack): Remove.
9391 (init_stringpool): Update.
9392 (ggc_alloc_string): Use ggc_alloc.
9393 (maybe_delete_ident): New function.
9394 (ggc_purge_stringpool): Likewise.
9395 (gt_ggc_m_S): Remove.
9396 * ggc-common.c (ggc_protect_identifiers): New global.
9397 (ggc_mark_roots): Call ggc_purge_stringpool. Use
9398 ggc_protect_identifiers.
9399 * ggc.h (ggc_protect_identifiers): Declare.
9400 (gt_ggc_m_S): Update.
9401 (ggc_purge_stringpool): Declare.
9402 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
9403 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
9404 special case.
9405 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
9406
9407 2008-05-21 David S. Miller <davem@davemloft.net>
9408
9409 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
9410 tmake_file.
9411
9412 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
9413
9414 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
9415 once finished.
9416
9417 2008-05-20 David Daney <ddaney@avtrex.com>
9418
9419 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
9420 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
9421 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9422 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9423 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
9424 (atomic_hiqi_op): New define_code_iterator.
9425 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
9426 mips_expand_compare_and_swap_12.
9427 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
9428 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
9429 (sync_<optab><mode>, sync_old_<optab><mode>,
9430 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
9431 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
9432 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
9433 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
9434 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
9435 (test_and_set_12): New insn.
9436 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
9437 sync_new_<optab><mode>, sync_old_nand<mode>,
9438 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
9439 clobber to operand 0 for SI and DI mode insns.
9440 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
9441 mips_gen_fn_4): New typedefs.
9442 (mips_gen_fn_ptrs): Define new union type.
9443 (mips_expand_compare_and_swap_12): Remove declaration.
9444 (mips_expand_atomic_qihi): Declare function.
9445 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
9446 (mips_expand_atomic_qihi): ... this. Use new generator function
9447 parameter.
9448 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
9449 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
9450 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
9451 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
9452 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
9453 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
9454 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
9455 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
9456 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
9457 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
9458 New macros.
9459
9460 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
9461
9462 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
9463 the missing break.
9464
9465 2008-05-20 Anatoly Sokolov <aesok@post.ru>
9466
9467 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
9468 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
9469 (avr_attribute_table): Add 'OS_main' function attribute.
9470 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
9471 functions with 'OS_main' attribute.
9472
9473 2008-05-20 Richard Guenther <rguenther@suse.de>
9474
9475 PR tree-optimization/35204
9476 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
9477 helper, split out from ...
9478 (DFS): ... here. Make the DFS walk non-recursive.
9479
9480 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
9481 Jan Sjodin <jan.sjodin@amd.com>
9482
9483 PR tree-optimization/36181
9484 * tree-parloops.c (loop_has_vector_phi_nodes): New.
9485 (parallelize_loops): Don't parallelize when the loop has vector
9486 phi nodes.
9487
9488 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
9489 Sebastian Pop <sebastian.pop@amd.com>
9490
9491 * tree-loop-linear.c (gather_interchange_stats): Look in the access
9492 matrix, and never look at the tree representation of the memory
9493 accesses.
9494 (linear_transform_loops): Computes parameters and access matrices.
9495 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
9496 when fails.
9497 (access_matrix_get_index_for_parameter): New.
9498 * tree-data-ref.h (struct access_matrix): New.
9499 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
9500 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
9501 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
9502 am_vector_index_for_loop): New.
9503 (struct data_reference): Add field access_matrix.
9504 (DR_ACCESS_MATRIX): New.
9505 (compute_data_dependences_for_loop): Update declaration.
9506 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
9507 * lambda.h (lambda_vector_vec_p): Declared.
9508 * lambda-code.c: Depend on pointer-set.h.
9509 (lambda_collect_parameters_from_af, lambda_collect_parameters,
9510 av_for_af_base, av_for_af, build_access_matrix,
9511 lambda_compute_access_matrices): New.
9512 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
9513
9514 2008-05-20 Joseph Myers <joseph@codesourcery.com>
9515
9516 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
9517 $SOURCEDIR/include.
9518
9519 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
9520 Sebastian Pop <sebastian.pop@amd.com>
9521
9522 PR tree-optimization/36206
9523 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
9524 FOLD_CONVERSIONS.
9525 (instantiate_scev_1): Rename flags to fold_conversions.
9526 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
9527 outeside instantiation_loop.
9528 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
9529 (evolution_function_is_affine_or_constant_p): Removed.
9530 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
9531 instantiate_scev.
9532 (analyze_siv_subscript): Pass in the loop nest number.
9533 Call evolution_function_is_affine_in_loop instead of
9534 evolution_function_is_affine_p.
9535 (analyze_overlapping_iterations): Pass in the loop nest number.
9536
9537 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
9538 Sebastian Pop <sebastian.pop@amd.com>
9539
9540 PR tree-optimization/36206
9541 * tree-chrec.h (chrec_fold_op): New.
9542 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
9543 and other trees.
9544
9545 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
9546
9547 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
9548 (DIRS_EQ): New.
9549 (remove_duplicates): Do not set inode on non-inode systems.
9550 Use DIRS_EQ.
9551
9552 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
9553
9554 * config.gcc (tm_file): Update comments about relative pathnames.
9555
9556 2008-05-20 Richard Guenther <rguenther@suse.de>
9557
9558 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
9559 * tree-ssa-sccvn.c (process_scc): Likewise.
9560 * tree-ssa-sink.c (execute_sink_code): Likewise.
9561 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9562 * tree-vrp.c (process_assert_insertions): Likewise.
9563 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
9564 (perform_tree_ssa_dce): Likewise.
9565 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9566 (dump_dominator_optimization_stats): Likewise.
9567 * tree-vectorizer.c (vectorize_loops): Likewise.
9568
9569 2008-05-20 Richard Guenther <rguenther@suse.de>
9570
9571 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
9572
9573 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
9574
9575 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
9576 (ix86_i386elf_return_in_memory): Likewise.
9577 (ix86_i386interix_return_in_memory): Likewise.
9578 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
9579 (SUBTARGET_RETURN_IN_MEMORY): New.
9580 * config/i386/i386elf.h: Likewise.
9581 * config/i386/ptx4-i.h: Likewise.
9582 * config/i386/sol2-10.h: Likewise.
9583 * config/i386/sysv4.h: Likewise.
9584 * config/i386/vx-common.h: Likewise.
9585 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
9586 * config/i386/i386.c (ix86_return_in_memory): Made static and
9587 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
9588 (ix86_i386elf_return_in_memory): Removed.
9589 (ix86_i386interix_return_in_memory): Removed.
9590 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
9591 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
9592
9593 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
9594
9595 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
9596
9597 2008-05-19 Xinliang David Li <davidxl@google.com>
9598
9599 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
9600 * opts.c: Ditto.
9601 * common.opt: Ditto.
9602 * doc/invoke.texi: Ditto.
9603
9604 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
9605
9606 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
9607 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
9608
9609 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
9610
9611 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
9612 sizes of operand array from 8/4 to 4/2.
9613 (ix86_expand_vector_init_general): Change size of operand array
9614 from 32 to 16. Remove op0, op1 and half_mode.
9615
9616 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
9617
9618 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
9619 (ix86_expand_vector_init_interleave): Likewise.
9620 (ix86_expand_vector_init_general): Use them. Assert
9621 word_mode == SImode when n_words == 4.
9622
9623 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
9624
9625 * config/i386/i386.c (ix86_secondary_reload): New static function.
9626 (TARGET_SECONDARY_RELOAD): New define.
9627 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
9628 * config/i386/i386.md (reload_outqi): Remove.
9629
9630 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9631
9632 PR middle-end/35509
9633 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
9634 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
9635 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
9636 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
9637 (fold_builtin_1): Likewise.
9638 * builtins.def (BUILT_IN_ISINF_SIGN): New.
9639 c-common.c (check_builtin_function_arguments): Handle
9640 BUILT_IN_ISINF_SIGN.
9641 * doc/extend.texi: Document __builtin_isinf_sign.
9642 * fold-const.c (operand_equal_p): Handle COND_EXPR.
9643
9644 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
9647 EH cleanup at the end of the pass, search for those that have been
9648 turned into forwarder blocks and do the cleanup on their successor.
9649
9650 2008-05-18 Richard Guenther <rguenther@suse.de>
9651
9652 * tree-cfg.c (verify_gimple_expr): Allow conversions from
9653 pointers to sizetype and vice versa.
9654
9655 2008-05-18 Xinliang David Li <davidxl@google.com>
9656
9657 * gcc/tree-ssa-dce.c: Coding style fix.
9658 (check_pow): Documentation comment.
9659 (check_log): Documenation comment. Coding style fix.
9660 (is_unnecessary_except_errno_call): Ditto.
9661 (gen_conditions_for_pow): Ditto.
9662 (gen_conditions_for_log): Ditto.
9663 (gen_shrink_wrap_conditions): Ditto.
9664 (shrink_wrap_one_built_in_calls): Ditto.
9665 * gcc/doc/invoke.texi: Better documentation string.
9666 * ChangeLog: Fix wrong change log entries from
9667 May 17 checkin on function call DCE.
9668
9669 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
9670
9671 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
9672
9673 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
9674
9675 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
9676 * df-problems.c (simulation routines): Fixed block comment to
9677 properly say how to add forwards scanning functions.
9678
9679 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
9680
9681 * tree-inline.c (setup_one_parameter): Remove dead code.
9682
9683 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
9684
9685 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
9686 a BIT_AND_EXPR only for an INTEGER_TYPE.
9687
9688 2008-05-17 Xinliang David Li <davidxl@google.com>
9689
9690 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
9691 (check_pow, check_log, is_unnecessary_except_errno_call): New
9692 functions to check for eliminating math functions that are pure
9693 except for setting errno.
9694 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
9695 general condition expressions for shrink-wrapping pow/log calls.
9696 (gen_shrink_wrap_conditions): Ditto.
9697 (shrink_wrap_one_built_in_call): Ditto.
9698 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
9699 (mark_operand_necessary): If debugging, output if OP is necessary.
9700 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
9701 unnecessary.
9702 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
9703 opt level >= 2.
9704 * gcc/common.opt: New user flag -ftree-builtin-dce.
9705 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
9706
9707 2008-05-16 David S. Miller <davem@davemloft.net>
9708
9709 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
9710 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
9711
9712 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
9713
9714 PR target/36246
9715 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
9716
9717 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9718
9719 * ifcvt.c (dead_or_predicable): Rename
9720 df_simulate_one_insn_backwards to df_simulate_one_insn.
9721 * recog.c (peephole2_optimize): Ditto.
9722 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
9723 Ditto.
9724 * df.h: Rename df_simulate_one_insn_backwards to
9725 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
9726 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
9727 scanning of defs and uses.
9728 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
9729 (df_simulate_one_insn_forwards): Removed.
9730
9731 2008-05-16 Doug Kwan <dougkwan@google.com>
9732
9733 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
9734 QNaN & SNaN.
9735 (real_from_string): Handle NaNs and Inf as approriate.
9736
9737 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
9738
9739 * doc/gty.texi (Source Files Containing Type Information): Note
9740 that headers should appear first in the gtfiles list.
9741
9742 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9743
9744 * tree.def (COND_EXEC): Properly documented this code.
9745
9746 2008-05-16 Diego Novillo <dnovillo@google.com>
9747
9748 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
9749 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
9750 the new field.
9751
9752 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9753
9754 * tree-ssa-dse (max_stmt_uid): Removed.
9755 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
9756 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
9757 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
9758 * function.h (cfun.last_stmt_uid): New field.
9759 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
9760 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
9761 New functions.
9762 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
9763 (create_stmt_ann): Initialize the ann->uid field.
9764 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
9765 with new calls.
9766 * tree-flow.h (renumber_gimple_stmt_uids): New function.
9767
9768 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
9769
9770 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
9771 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
9772 (init_empty_tree_cfg): Call it.
9773
9774 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9775
9776 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
9777 Update all users.
9778
9779 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9780
9781 * doc/invoke.text (-fdump-tree-*-verbose): New option.
9782 * tree-dump.c (dump_options): New verbose option.
9783 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
9784 Add verbose dump.
9785 * tree-pass.h (TDF_VERBOSE): New dump flag.
9786 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
9787 (tree-flow.h): Added include.
9788 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
9789
9790 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
9791
9792 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
9793
9794 From Jie Zhang <jie.zhang@analog.com>
9795 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9796 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
9797 mcpu=bf561-none and mcpu=bf561-0.2.
9798 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9799 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9800 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9801 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9802 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
9803 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
9804 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
9805 option.
9806 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
9807 (cputype_selected): Remove.
9808 (bfin_handle_option): Don't use cputype_selected.
9809 (override_options): When no mcpu option, enable all workarounds.
9810 Don't use bfin_workarounds.
9811 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
9812 processor type.
9813 (DEFAULT_CPU_TYPE): Don't define.
9814
9815 2008-05-16 Richard Guenther <rguenther@suse.de>
9816
9817 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
9818 on deletion of the last stmt.
9819
9820 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
9821
9822 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
9823 V8HImode for SSE2 and V16QImode for SSE4.1.
9824
9825 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
9826
9827 * cgraph.h (compute_inline_parameters): Made public.
9828 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
9829 variable_generate_summary, function_write_summary,
9830 variable_write_summary, variable_read_summary. Added generate_summary,
9831 write_summary, read_summary.
9832 * cgraphunit.c (cgraph_process_new_functions): Changed call from
9833 pass_ipa_inline.function_generate_summary, to
9834 compute_inline_parameters.
9835 * ipa-inline.c (compute_inline_parameters): Made public and added
9836 node parameter.
9837 (compute_inline_parameters_for_current): New function.
9838 (pass_inline_param): Now calls compute_inline_parameters_for_current.
9839 (inline_generate_summary): Removed parameter and made to loop over
9840 all cgraph nodes.
9841 (pass_ipa_inline): Updated for new IPA_PASS structure.
9842 * passes.c (execute_ipa_summary_passes): Now is called once per
9843 pass rather than once per node*pass.
9844
9845 2008-05-15 Anatoly Sokolov <aesok@post.ru>
9846
9847 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
9848 avr_have_mul_p, avr_asm_only_p): Remove variables.
9849 (avr_override_options): Remove initialization of removed variables.
9850 (avr_file_start): Convert removed variables to fields of
9851 'struct base_arch_s *avr_current_arch'.
9852 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
9853 (AVR_HAVE_MUL): (Ditto.).
9854 (AVR_HAVE_MOVW): (Ditto.).
9855 (AVR_HAVE_LPMX): (Ditto.).
9856 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
9857 avr_asm_only_p): Remove declaration.
9858
9859 2008-05-15 Diego Novillo <dnovillo@google.com>
9860
9861 * config/arm/arm.c (arm_return_in_memory): Fix return type.
9862 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
9863
9864 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
9865
9866 PR middle-end/36194
9867 * combine.c (check_conversion): Rename back to check_promoted_subreg.
9868 Don't call record_truncated_value from here.
9869 (record_truncated_value): Turn it into a for_each_rtx callback.
9870 (record_truncated_values): New function.
9871 (combine_instructions): Call note_uses with record_truncated_values.
9872 Change name of check_conversion to check_promoted_subreg.
9873
9874 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9875
9876 * doc/sourcebuild.texi: Document support for torture tests.
9877
9878 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
9879
9880 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
9881 to alternative 4 of operand 2.
9882
9883 2008-05-15 Richard Guenther <rguenther@suse.de>
9884
9885 * tree-pass.h (current_pass): Declare.
9886 (get_pass_for_id): Likewise.
9887 * passes.c (passes_by_id, passes_by_id_size): New globals.
9888 (set_pass_for_id): New function.
9889 (get_pass_for_id): Likewise.
9890 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
9891 (execute_function_todo): Flush per function statistics.
9892 * toplev.c (compile_file): Init statistics.
9893 (general_init): Do early statistics initialization.
9894 (finalize): Finish statistics.
9895 * statistics.h (statistics_early_init): Declare.
9896 (statistics_init): Likewise.
9897 (statistics_fini): Likewise.
9898 (statistics_fini_pass): Likewise.
9899 (statistics_counter_event): Likewise.
9900 (statistics_histogram_event): Likewise.
9901 * statistics.c: New file.
9902 * Makefile.in (OBJS-common): Add statistics.o.
9903 (statistics.o): Add dependencies.
9904 * doc/invoke.texi (-fdump-statistics): Document.
9905
9906 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
9907 (insert): Likewise.
9908 (execute_pre): Use statistics_counter_event.
9909 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
9910 (substitute_and_fold): Increment it. Use statistics_counter_event.
9911
9912 2008-05-15 Diego Novillo <dnovillo@google.com>
9913
9914 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
9915
9916 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
9917 * tree-ssa-alias.c (new_type_alias): Remove references to
9918 sub-variables from comment.
9919 * tree-ssa-operands.c (swap_tree_operands): Likewise.
9920
9921 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
9922
9923 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
9924 attribute to 1 only for insertps alternative.
9925
9926 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
9927
9928 * config/bfin/bfin.md (loadbytes): New pattern.
9929 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
9930 (bfin_init_builtins): Initialize it.
9931 (bdesc_1arg): Add it.
9932
9933 2008-05-15 Sa Liu <saliu@de.ibm.com>
9934
9935 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
9936 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
9937 * testsuite/lib/target-supports.exp: Add
9938 check_effective_target_fortran_integer_16.
9939
9940 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
9941
9942 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
9943 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
9944 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
9945 (TARGET_RETURN_IN_MEMORY): Define.
9946
9947 2008-05-15 Richard Guenther <rguenther@suse.de>
9948
9949 PR middle-end/36244
9950 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
9951 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
9952 represent unmodifiable vars.
9953
9954 2008-05-15 Richard Guenther <rguenther@suse.de>
9955
9956 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
9957 INDIRECT_REF and TARGET_MEM_REF.
9958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9959 TARGET_MEM_REF.
9960
9961 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
9962 H.J. Lu <hongjiu.lu@intel.com>
9963
9964 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
9965 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
9966 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
9967 insn alternatives. Add missing alternatives.
9968 (*vec_concatv2di_rex64_sse4_1): Likewise.
9969 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
9970 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
9971 Require TARGET_SSE.
9972
9973 2008-05-15 Richard Guenther <rguenther@suse.de>
9974
9975 PR tree-optimization/36009
9976 PR tree-optimization/36204
9977 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
9978 (determine_invariantness_stmt): Record the loop a store is
9979 always executed in.
9980 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
9981 dependency.
9982
9983 2008-05-15 Richard Guenther <rguenther@suse.de>
9984
9985 PR tree-optimization/34330
9986 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
9987 through the pointer will alias the SMT.
9988
9989 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
9990
9991 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
9992
9993 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
9994
9995 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
9996
9997 2008-05-14 Michael Meissner <michael.meissner@amd.com>
9998 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
9999
10000 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
10001 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
10002 (vashl_optab): New optab for vector/vector shifts.
10003 (vashr_optab): Ditto.
10004 (vlshr_optab): Ditto.
10005 (vrotl_optab): Ditto.
10006 (vrotr_optab): Ditto.
10007 (optab_subtype): New enum for optab_for_tree_code call.
10008 (optab_for_tree_code): Add enum optab_subtype argument.
10009
10010 * optabs.c (optab_for_tree_code): Take an additional argument to
10011 distinguish between a vector shift by a scalar and vector shift by
10012 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
10013 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
10014 vector shift by a vector.
10015 (expand_widen_pattern_expr): Pass additional argument to
10016 optab_for_tree_code.
10017
10018 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
10019 vrotl_optab, vrotr_optab.
10020
10021 * expr.c (expand_expr_real_1): Update calls to
10022 optab_for_tree_code to distinguish between vector shifted by a
10023 scalar and vector shifted by a vector.
10024 * tree-vectorizer.c (supportable_widening_operation): Ditto.
10025 (supportable_narrowing_operation): Ditto.
10026 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
10027 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
10028 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
10029 (vect_create_epilog_for_reduction): Ditto.
10030 (vectorizable_reduction): Ditto.
10031 (vectorizable_operation): Ditto.
10032 (vect_strided_store_supported): Ditto.
10033 (vect_strided_load_supported): Ditto.
10034 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
10035 * expmed.c (expand_shift): Ditto.
10036
10037 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
10038 scalar type.
10039 (ashr@var{m}3): Ditto.
10040 (vashl@var{m}3): Document new vector/vector shift standard name.
10041 (vashr@var{m}3): Ditto.
10042 (vlshr@var{m}3): Ditto.
10043 (vrotl@var{m}3): Ditto.
10044 (vrotr@var{m}3): Ditto.
10045
10046 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
10047 (PPERM_INVERT): Ditto.
10048 (PPERM_REVERSE): Ditto.
10049 (PPERM_REV_INV): Ditto.
10050 (PPERM_ZERO): Ditto.
10051 (PPERM_ONES): Ditto.
10052 (PPERM_SIGN): Ditto.
10053 (PPERM_INV_SIGN): Ditto.
10054 (PPERM_SRC1): Ditto.
10055 (PPERM_SRC2): Ditto.
10056
10057 * config/i386/sse.md (mulv2di3): Add SSE5 support.
10058 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
10059 allows a memory operand to be the value being added, and split it
10060 to improve vectorization.
10061 (sse5_pmacsdqh_mem): Ditto.
10062 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
10063 (sse5_mulv2div2di3_high): Ditto.
10064 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
10065 (vec_pack_trunc_v4si): Ditto.
10066 (vec_pack_trunc_v2di): Ditto.
10067 (sse5_pcmov_<mode>): Remove code that tried to use use
10068 andps/andnps instead of pcmov.
10069 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
10070 pmacsdqh instructions.
10071 (vec_widen_smult_lo_v4si): Ditto.
10072
10073 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
10074 (PPERM_INVERT): Ditto.
10075 (PPERM_REVERSE): Ditto.
10076 (PPERM_REV_INV): Ditto.
10077 (PPERM_ZERO): Ditto.
10078 (PPERM_ONES): Ditto.
10079 (PPERM_SIGN): Ditto.
10080 (PPERM_INV_SIGN): Ditto.
10081 (PPERM_SRC1): Ditto.
10082 (PPERM_SRC2): Ditto.
10083 (ix86_expand_sse_movcc): Move the SSE5 test after the if
10084 true/false tests.
10085 (ix86_expand_int_vcond): If SSE5 generate all possible integer
10086 comparisons.
10087 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
10088 says ignore whether the last reference is a memory operand.
10089
10090 2008-05-14 Michael Meissner <michael.meissner@amd.com>
10091 Paolo Bonzini <bonzini at gnu dot org>
10092
10093 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
10094 shift patterns.
10095
10096 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
10097 (vlshr<mode>3): Rename from vlshr<mode>3.
10098 (vashr<mode>3): Rename from vashr<mode>3.
10099 (mulv4sf3): Change the names of vector shift patterns.
10100 (mulv4si3): Ditto.
10101 (negv4sf2): Ditt.
10102
10103 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
10104 shift insns.
10105
10106 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
10107 (SI_SHLHI): Ditto.
10108 (SI_SHL): Ditto.
10109 (SI_SHLI): Ditto.
10110 (SI_ROTH): Ditto.
10111 (SI_ROTHI): Ditto.
10112 (SI_ROT): Ditto.
10113 (SI_ROTI): Ditto.
10114 (SPU_RL_0): Ditto.
10115 (SPU_RL_1): Ditto.
10116 (SPU_RL_2): Ditto.
10117 (SPU_RL_3): Ditto.
10118 (SPU_RL_4): Ditto.
10119 (SPU_RL_5): Ditto.
10120 (SPU_RL_6): Ditto.
10121 (SPU_RL_7): Ditto.
10122 (SPU_SL_0): Ditto.
10123 (SPU_SL_1): Ditto.
10124 (SPU_SL_2): Ditto.
10125 (SPU_SL_3): Ditto.
10126 (SPU_SL_4): Ditto.
10127 (SPU_SL_5): Ditto.
10128 (SPU_SL_6): Ditto.
10129 (SPU_SL_7): Ditto.
10130
10131 * config/spu/spu.md (v): New iterator macro to add v for vector types.
10132 (floatunssidf2_internal): Change vector/vector shift names.
10133 (floatunsdidf2_internal): Ditto.
10134 (mulv8hi3): Ditto.
10135 (ashrdi3): Ditto.
10136 (ashrti3): Ditto.
10137 (cgt_df): Ditto.
10138 (cgt_v2df): Ditto.
10139 (dftsv): Ditto.
10140 (vashl<mode>3): Rename from ashl<mode>3.
10141 (vashr<mode>3): Rename from ashr<mode>3.
10142 (vlshr<mode>3): Rename from lshr<mode>3.
10143 (vrotl<mode>3): Rename from rotl<mode>3.
10144
10145 2008-05-14 Michael Meissner <michael.meissner@amd.com>
10146
10147 PR target/36224
10148 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
10149 multiply gives the wrong value when doing widening multiplies.
10150 (vec_widen_smult_lo_v4si): Ditto.
10151
10152 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
10153
10154 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
10155 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
10156 emit_library_call_value.
10157 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
10158 * tree.h (ECF_LIBCALL_BLOCK): Removed.
10159 * calls.c (initialize_argument_information, precompute_arguments,
10160 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
10161 (precompute_arguments): Removed flags parameter.
10162 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
10163
10164 2008-05-14 Richard Guenther <rguenther@suse.de>
10165
10166 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
10167 Make sure to register the store if the use is a PHI_NODE.
10168
10169 2008-05-14 Olivier Hainque <hainque@adacore.com>
10170
10171 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
10172 memory if the component is to be referenced in BLKmode according
10173 to get_inner_reference.
10174
10175 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
10176
10177 * calls.c (emit_library_call_value_1): Restore code clearing
10178 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
10179
10180 2008-05-14 Olivier Hainque <hainque@adacore.com>
10181 Nicolas Roche <roche@adacore.com>
10182
10183 * configure.ac: Add support for a "gcc_subdir" variable in
10184 config-lang.in, to denote a subdirectory where the language/GCC
10185 integration files are to be found.
10186 * configure: Regenerate.
10187
10188 2008-05-14 Ira Rosen <irar@il.ibm.com>
10189
10190 PR tree-optimization/36098
10191 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
10192 value for the first load in the group in case of a gap.
10193 (vect_build_slp_tree): Check that there are no gaps in loads.
10194
10195 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
10196
10197 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
10198 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
10199 expand_copysign_bit, ): Change call to emit_no_conflict_block to
10200 emit_insn and remove unneeded code to construct extra args.
10201 (emit_no_conflict_block): Removed.
10202 * optabls.h: (emit_no_conflict_block): Removed.
10203 * cse.c (cse_extended_basic_block): Remove search for
10204 REG_NO_CONFLICT note.
10205 * global.c: Removed incorrect comment added in revision 117.
10206 * expr.c (convert_move): Change call to emit_no_conflict_block to
10207 emit_insn.
10208 * recog.c: Change comments so that they do not mention
10209 REG_NO_CONFLICT.
10210 * local_alloc.c (combine_regs): Removed last parameter.
10211 (no_conflict_p): Removed.
10212 (block_alloc): Removed note, no_conflict_combined_regno and set
10213 local vars. Removed all code to process REG_NO_CONFLICT blocks.
10214 (combine_regs): Removed already_dead and code to look for
10215 REG_NO_CONFLICT notes.
10216 * lower_subreg (remove_retval_note): Removed code to look for
10217 REG_NO_CONFLICT block.
10218 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
10219 (resolve_clobber): Remove code to process libcalls that have
10220 REG_NO_CONFLICT notes.
10221 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
10222 case.
10223 * combine.c (can_combine_p, distribute_notes): Removed
10224 REG_NO_CONFLICT case.
10225 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
10226 to emit_insns.
10227 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
10228 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
10229 Ditto.
10230 * reg-notes.def (NO_CONFLICT): Removed.
10231
10232 2008-05-14 David S. Miller <davem@davemloft.net>
10233
10234 * config/sparc/sparc.c (sparc_profile_hook): If
10235 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
10236 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
10237 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
10238
10239 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
10240
10241 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
10242
10243 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
10244
10245 PR target/36222
10246 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
10247 and op1 expansion before vector concat to have less live pseudos.
10248
10249 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
10250
10251 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
10252 ix86_expand_vector_set if supported.
10253
10254 2008-05-13 Diego Novillo <dnovillo@google.com>
10255 Kenneth Zadeck <zadeck@naturalbridge.com>
10256
10257 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
10258
10259 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
10260 phinodes_print_statistics, init_ssanames, fini_ssanames,
10261 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
10262 release_ssa_name, release_defs, replace_ssa_name_symbol,
10263 ssanames_print_statistics): Move ...
10264 * tree-flow.h: ... here.
10265 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
10266 Use FN instead of cfun.
10267 (make_ssa_name_fn): Rename from make_ssa_name.
10268 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
10269 * tree-flow-inline.h (make_ssa_name): Move from
10270 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
10271 * omp-low.c (expand_omp_parallel):
10272 * tree-flow-inline.h (redirect_edge_var_map_result):
10273 * tree-ssa.c (init_tree_ssa): Add argument FN.
10274 Use it instead of cfun. Update all users.
10275
10276 2008-05-13 Tom Tromey <tromey@redhat.com>
10277
10278 PR preprocessor/22168:
10279 * doc/cpp.texi (Top): Update menu.
10280 (Alternatives to Wrapper #ifndef): New node.
10281 (Other Directives): Document deprecation.
10282 (Obsolete Features): Remove menu.
10283 (Assertions): Merge node into Obsolete Features.
10284 (Obsolete once-only headers): Move earlier; rename to Alternatives
10285 to Wrapper #ifndef.
10286 * doc/cppopts.texi: Update.
10287 * c.opt (Wdeprecated): Enable for C and ObjC.
10288 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
10289 (C++ Dialect Options): Move -Wno-deprecated from here to...
10290 (Warning Options): ... here.
10291
10292 2008-05-13 Richard Guenther <rguenther@suse.de>
10293
10294 PR middle-end/36227
10295 * fold-const.c (fold_sign_changed_comparison): Do not allow
10296 changes in pointer-ness.
10297
10298 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
10299
10300 PR target/24713
10301 * config/sh/sh.c (sh_expand_prologue): Don't clear
10302 RTX_FRAME_RELATED_P for push insns.
10303
10304 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
10305
10306 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
10307
10308 2008-05-12 Anatoly Sokolov <aesok@post.ru>
10309
10310 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
10311 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
10312 Use 'machine->is_leaf' instead of 'leaf_func_p'.
10313
10314 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
10315
10316 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
10317 (*vec_concatv4sf_sse): This.
10318 (*sse2_concatv2si): Renamed to ...
10319 (*vec_concatv2si_sse2): This.
10320 (*sse1_concatv2si): Renamed to ...
10321 (*vec_concatv2si_sse): This.
10322 (*vec_concatv2di_rex): Renamed to ...
10323 (*vec_concatv2di_rex64): This.
10324 (*vec_concatv2si_sse4_1): New.
10325 (*vec_concatv2di_rex64_sse4_1): Likewise.
10326
10327 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
10328
10329 PR rtl-optimization/36111
10330 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
10331 that was created for swappable operands.
10332
10333 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
10334
10335 PR ada/36001
10336 * Makefile.in: Substitute GNATMAKE and GNATBIND.
10337 * configure.ac: Add call to ACX_PROG_GNAT.
10338
10339 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
10340
10341 * optc-gen.awk: Fix comment typo.
10342
10343 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10344
10345 * pretty-print.c (pp_integer_with_precision): Use
10346 HOST_LONG_LONG_FORMAT.
10347
10348 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
10349
10350 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
10351
10352 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
10353
10354 * config/i386/i386.c (bdesc_ptest): Removed.
10355 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
10356 (bdesc_args): Add __builtin_ia32_ptestz128,
10357 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
10358 (ix86_init_mmx_sse_builtins): Updated.
10359 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
10360 (ix86_expand_builtin): Updated.
10361
10362 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
10363
10364 * tree-cfg.c (valid_fixed_convert_types_p): New function.
10365 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
10366
10367 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
10368
10369 * value-prof.c (interesting_stringop_to_profile): Do not
10370 return early for BUILT_IN_MEMPCPY.
10371
10372 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
10373
10374 * calls.c (expand_call): Don't use callgraph to increase
10375 preferred_stack_boundary.
10376
10377 * cgraph.h (cgraph_rtl_info): Use unsigned on
10378 preferred_incoming_stack_boundary.
10379
10380 * final.c (rest_of_clean_state): Use unsigned on
10381 preferred_stack_boundary.
10382
10383 2008-05-09 Tom Tromey <tromey@redhat.com>
10384
10385 PR preprocessor/22231:
10386 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
10387 proceeding.
10388
10389 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
10390
10391 PR tree-optimization/36129
10392 * tree-ssa-ccp.c: Include value-prof.h.
10393 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
10394 built-in function was folded to a constant.
10395 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
10396
10397 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
10398 Sebastian Pop <sebastian.pop@amd.com>
10399
10400 * tree-scalar-evolution.c: Document instantiate_scev.
10401 (instantiate_parameters_1): Renamed instantiate_scev_1.
10402 Don't use the same loop for instantiation_loop and evolution_loop.
10403 (instantiate_scev): New.
10404 (instantiate_parameters): Moved...
10405 (resolve_mixers): Update call to instantiate_scev_1 to pass the
10406 same loop twice. Maintains the semantics for this function.
10407 * tree-scalar-evolution.h (instantiate_scev): Declare.
10408 (instantiate_parameters): ...here. Now static inline.
10409 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
10410 instead of resolve_mixers.
10411
10412 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10413
10414 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
10415
10416 2008-05-09 Tomas Bily <tbily@suse.cz>
10417
10418 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
10419 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
10420 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10421 * c-common.c (c_common_truthvalue_conversion): Likewise.
10422 * tree-object-size.c (compute_object_offset): Likewise.
10423 * tree-inline.c (estimate_num_insns_1): Likewise.
10424 * varasm.c (const_hash_1, compare_constant, copy_constant)
10425 (compute_reloc_for_constant, output_addressed_constants)
10426 (initializer_constant_valid_p): Likewise.
10427 * c-omp.c (check_omp_for_incr_expr): Likewise.
10428 * gimplify.c (gimplify_expr): Likewise.
10429 * c-typeck.c (c_finish_return): Likewise.
10430 * tree-vectorizer.c (supportable_widening_operation)
10431 (supportable_narrowing_operation): Likewise.
10432 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
10433 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
10434 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
10435 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
10436 (descr_info_loc): Likewise.
10437 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10438 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
10439 (fold_unary): Likewise.
10440 * builtins.c (get_pointer_alignment): Likewise.
10441 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
10442 (instantiate_parameters_1): Likewise.
10443 * tree.c (expr_align, stabilize_reference): Likewise.
10444 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
10445 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10446 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
10447 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10448 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
10449 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
10450 Likewise.
10451 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
10452 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
10453 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
10454 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
10455 (forward_propagate_comparison)
10456 (tree_ssa_forward_propagate_single_use_vars): Likewise.
10457 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
10458 * emit-rtl.c (component_ref_for_mem_expr)
10459 (set_mem_attributes_minus_bitpos): Likewise.
10460 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
10461 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
10462 Likewise.
10463 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
10464 (build_function_call, pointer_diff, build_compound_expr)
10465 (c_finish_return): Likewise.
10466 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
10467 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
10468 Likewise.
10469 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
10470 * expr.c (is_aligning_offset): Likewise.
10471 * tree-ssa-alias.c (is_escape_site): Likewise.
10472 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
10473 (check_all_va_list_escapes): Likewise.
10474 * tree-ssa-loop-ivopts.c (determine_base_object)
10475 (determine_common_wider_type): Likewise.
10476 * dojump.c (do_jump): Likewise.
10477 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
10478 * tree-gimple.c (is_gimple_cast): Likewise.
10479 * fold-const.c (decode_field_reference, )
10480 (fold_sign_changed_comparison, fold_unary, fold_comparison)
10481 (fold_binary): Likewise.
10482 * tree-ssa-alias-warnings.c (find_alias_site_helper)
10483 (already_warned_in_frontend_p): Likewise.
10484 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
10485 * tree.c (really_constant_p, get_unwidened): Likewise.
10486 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
10487 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
10488 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
10489 Likewise.
10490 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
10491 CONVERT_EXPR_P.
10492 (CONVERT_EXPR_P): Define.
10493 (CASE_CONVERT): Define.
10494
10495 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
10496
10497 PR middle-end/36117
10498 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
10499 (delete_unmarked_insns): When deleting a call, call
10500 delete_unreachable_blocks.
10501 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10502 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
10503
10504 2008-05-08 Richard Guenther <rguenther@suse.de>
10505
10506 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
10507 (-ftree-salias): Likewise.
10508 (salias-max-implicit-fields): Remove param documentation.
10509 (salias-max-array-elements): Likewise.
10510 * tree-pass.h (pass_create_structure_vars): Remove.
10511 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
10512 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
10513 * tree-ssa-alias.c (create_structure_vars): Remove.
10514 (gate_structure_vars): Likewise.
10515 (pass_create_structure_vars): Likewise.
10516 (gate_build_alias): Likewise.
10517 (pass_build_alias): Adjust to run always and dump the function.
10518 * common.opt (ftree-salias): Hide.
10519 * passes.c (init_optimization_passes): Remove
10520 pass_create_structure_vars, adjust comment.
10521 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
10522 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
10523 * opts.c (decode_options): Do not set flag_tree_salias.
10524 (common_handle_option): Add OPT_ftree_salias to the backward
10525 compatibility section.
10526
10527 2008-05-08 Richard Guenther <rguenther@suse.de>
10528
10529 * tree-flow-inline.h (var_can_have_subvars): Move ...
10530 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
10531 * tree-flow.h (var_can_have_subvars): Remove.
10532 (push_fields_onto_fieldstack): Remove.
10533 (sort_fieldstack): Likewise.
10534 (struct fieldoff): Move ...
10535 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
10536 alias_set and base_for_components fields.
10537 (sort_fieldstack): Make static.
10538 (push_fields_onto_fieldstack): Likewise. Remove code that
10539 handles anything but RECORD_TYPEs. Remove alias_set and
10540 base_for_components handling.
10541 (create_variable_info_for): Adjust.
10542
10543 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
10544
10545 * common.opt (Wframe-larger-than=): Shorten the help message
10546 to one line.
10547 * doc/invoke.texi (Wframe-larger-than=): Add more description.
10548
10549 2008-05-08 Rafael Espindola <espindola@google.com>
10550
10551 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
10552 trap.
10553 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
10554 trap and that both operands are gimple values.
10555 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
10556 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
10557 is a fp operation.
10558
10559 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
10560
10561 * read-rtl.c (join_c_conditions): Return the first string if the
10562 two strings are equal.
10563
10564 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
10565
10566 * gensupport.h (pred_data): Add a "num_codes" field.
10567 (add_predicate_code): Declare.
10568 * gensupport.c (add_predicate_code): New function.
10569 (std_pred_table): Add an "allows_const_p" field.
10570 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
10571 Remove the (incomplete) list of such codes from the codes field.
10572 (init_predicate_table): Use add_predicate_code. Add all
10573 RTX_CONST_OBJs if allows_const_p is true.
10574 * genrecog.c (process_define_predicate): Use add_predicate_code.
10575
10576 2008-05-08 David Daney <ddaney@avtrex.com>
10577 Richard Sandiford <rsandifo@nildram.co.uk>
10578
10579 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
10580 special case of constant zero operands.
10581 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
10582 old and new values. Special case constant zero values.
10583 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
10584 fails.
10585 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
10586 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
10587
10588 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
10589
10590 PR target/36090
10591 * simplify-rtx.c (simplify_plus_minus): Create CONST of
10592 similar RTX_CONST_OBJ before CONST_INT.
10593
10594 2008-05-08 Steve Ellcey <sje@cup.hp.com>
10595
10596 * stmt.c (expand_stack_restore): Change sa mode if needed.
10597
10598 2008-05-08 Richard Guenther <rguenther@suse.de>
10599
10600 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
10601 return type to bool.
10602 (ix86_sol10_return_in_memory): Likewise.
10603 (ix86_i386elf_return_in_memory): Likewise.
10604 (ix86_i386interix_return_in_memory): Likewise.
10605 * config/i386/i386.c (ix86_return_in_memory): Likewise.
10606 (ix86_sol10_return_in_memory): Likewise.
10607 (ix86_i386elf_return_in_memory): Likewise.
10608 (ix86_i386interix_return_in_memory): Likewise.
10609
10610 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
10611
10612 PR bootstrap/36180
10613 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
10614 fndecl argument.
10615 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
10616 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
10617 declared in front.
10618
10619 2008-05-08 Richard Guenther <rguenther@suse.de>
10620
10621 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
10622 * tree-data-ref.h (struct dr_alias): Remove subvars field.
10623 (DR_SUBVARS): Remove.
10624 * tree-dfa.c (dump_subvars_for): Remove.
10625 (debug_subvars_for): Likewise.
10626 (dump_variable): Do not dump subvars.
10627 (remove_referenced_var): Do not remove subvars.
10628 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
10629 (lookup_subvars_for_var): Remove.
10630 (get_subvars_for_var): Likewise.
10631 (get_subvars_at): Likewise.
10632 (get_first_overlapping_subvar): Likewise.
10633 (overlap_subvar): Likewise.
10634 * tree-flow.h (subvar_t): Remove.
10635 (struct var_ann_d): Remove subvars field.
10636 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
10637 argument. Remove special handling of SFTs.
10638 (compute_tag_properties): Likewise.
10639 (set_initial_properties): Likewise.
10640 (compute_call_clobbered): Likewise.
10641 (count_mem_refs): Likewise.
10642 (compute_memory_partitions): Likewise.
10643 (compute_flow_insensitive_aliasing): Likewise.
10644 (setup_pointers_and_addressables): Likewise.
10645 (new_type_alias): Likewise.
10646 (struct used_part): Remove.
10647 (used_portions): Likewise.
10648 (struct used_part_map): Likewise.
10649 (used_part_map_eq): Likewise.
10650 (used_part_map_hash): Likewise.
10651 (free_used_part_map): Likewise.
10652 (up_lookup): Likewise.
10653 (up_insert): Likewise.
10654 (get_or_create_used_part_for): Likewise.
10655 (create_sft): Likewise.
10656 (create_overlap_variables_for): Likewise.
10657 (find_used_portions): Likewise.
10658 (create_structure_vars): Likewise.
10659 * tree.def (STRUCT_FIELD_TAG): Remove.
10660 * tree.h (MTAG_P): Adjust.
10661 (struct tree_memory_tag): Remove base_for_components and
10662 unpartitionable flags.
10663 (struct tree_struct_field_tag): Remove.
10664 (SFT_PARENT_VAR): Likewise.
10665 (SFT_OFFSET): Likewise.
10666 (SFT_SIZE): Likewise.
10667 (SFT_NONADDRESSABLE_P): Likewise.
10668 (SFT_ALIAS_SET): Likewise.
10669 (SFT_UNPARTITIONABLE_P): Likewise.
10670 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
10671 (union tree_node): Remove sft field.
10672 * alias.c (get_alias_set): Remove special handling of SFTs.
10673 * print-tree.c (print_node): Remove handling of SFTs.
10674 * tree-dump.c (dequeue_and_dump): Likewise.
10675 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
10676 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
10677 * tree-predcom.c (set_alias_info): Do not set subvars.
10678 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
10679 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
10680 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
10681 (add_vars_for_offset): Remove.
10682 (add_virtual_operand): Remove special handling of SFTs.
10683 (add_call_clobber_ops): Likewise.
10684 (add_call_read_ops): Likewise.
10685 (get_asm_expr_operands): Likewise.
10686 (get_modify_stmt_operands): Likewise.
10687 (get_expr_operands): Likewise.
10688 (add_to_addressable_set): Likewise.
10689 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
10690 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10691 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
10692 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
10693 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
10694 (tree_node_structure): Likewise.
10695 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
10696 handling of SFTs.
10697 (find_what_p_points_to): Likewise.
10698
10699 2008-05-08 Sa Liu <saliu@de.ibm.com>
10700
10701 * config/spu/spu.md: Fixed subti3 pattern.
10702
10703 2008-05-08 Richard Guenther <rguenther@suse.de>
10704
10705 PR middle-end/36154
10706 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10707 sure to create a representative for trailing arrays for PTA.
10708
10709 2008-05-08 Richard Guenther <rguenther@suse.de>
10710
10711 PR middle-end/36172
10712 * fold-const.c (operand_equal_p): Two objects which types
10713 differ in pointerness are not equal.
10714
10715 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
10716
10717 * calls.c (compute_argument_block_size): Add argument tree fndecl.
10718 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
10719 (emit_library_call_value_1): Add new variable fndecl initialized by
10720 NULL_TREE. It should be the decl type of orgfun, but this information
10721 seems not to be available here, so it uses the default calling abi.
10722 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
10723 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
10724 by TARGET_RETURN_IN_MEMORY.
10725 * config/i386/i386-interix.h: Likewise.
10726 * config/i386/i386.h: Likewise.
10727 * config/i386/i386elf.h: Likewise.
10728 * config/i386/ptx4-i.h: Likewise.
10729 * config/i386/sol2-10.h: Likewise.
10730 * config/i386/sysv4.h: Likewise.
10731 * config/i386/vx-common.h: Likewise.
10732 * config/cris/cris.h: Removed #if 0 clause.
10733 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
10734 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
10735 argument.
10736 (ix86_sol10_return_in_memory): Likewise.
10737 (ix86_i386elf_return_in_memory): New.
10738 (ix86_i386interix_return_in_memory): New.
10739 * config/mt/mt-protos.h (mt_return_in_memory): New.
10740 * config/mt/mt.c: Likewise.
10741 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10742 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
10743 * config/bfin/bfin.h: Likewise.
10744 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
10745 argument.
10746 * config/bfin/bfin.c: Likewise.
10747 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10748 * config/alpha/unicosmk.h: Likewise.
10749 * config/i386/cygming.h: Likewise.
10750 * config/iq2000/iq2000.h: Likewise.
10751 * config/mips/mips.h: Likewise.
10752 * config/mn10300/mn10300.h: Likewise.
10753 * config/rs6000/rs6000.h: Likewise.
10754 * config/score/score.h: Likewise.
10755 * config/spu/spu.h: Likewise.
10756 * config/v850/v850.h: Likewise.
10757 * defaults.h: Likewise.
10758 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
10759 * expr.c (emit_block_move): Adjust use of
10760 OUTGOING_REG_PARM_STACK_SPACE.
10761 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
10762 OUTGOING_REG_PARM_STACK_SPACE.
10763 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
10764
10765 2008-05-08 Jakub Jelinek <jakub@redhat.com>
10766
10767 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
10768 on OMP_RETURN for OMP_FOR.
10769
10770 PR debug/35896
10771 * dwarf2out.c (dw_expand_expr, common_check): Removed.
10772 (fortran_common): New function.
10773 (gen_variable_die): Call fortran_common instead of common_check,
10774 adjust for it returning tree instead of rtx. Formatting.
10775
10776 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10777
10778 PR rtl/7335
10779 PR rtl/33826
10780 * see.c (see_copy_insn): Copy new pure const attributes for new call.
10781 * c-decl.c (merge_decls): Ditto.
10782 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
10783 to RTL_CONST_OR_PURE_CALL_P.
10784 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
10785 Initialized DECL_LOOPING_CONST_PURE.
10786 (process_call_operands): Set tree_side_effects properly.
10787 * tree.h (TREE_READONLY_DECL_P): Removed.
10788 (DECL_IS_PURE): Renamed to DECL_PURE_P.
10789 (DECL_LOOPING_OR_CONST_P): New macro.
10790 (struct tree_function_decl): Added looping_const_or_pure_p.
10791 (ECF_*) Renumbered.
10792 (ECF_LOOPING_OR_CONST_P): New macro.
10793 * rtlanal.c (pure_const_p): Removed.
10794 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
10795 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
10796 to RTL_CONST_CALL_P.
10797 * ipa-pure-const.c (pure_const_state_e): Added looping field.
10798 (check_decl, check_tree, check_call, scan_function): Initialize
10799 looping.
10800 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
10801 (static_execute): Set looping true for recursive functions.
10802 Undo setting state to IPA_NEITHER for recursive functions.
10803 * cse.c (cse_insn):
10804 * ifcvt.c (noce_can_store_speculate_p): Changed
10805 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
10806 RTL_CONST_OR_PURE_CALL_P.
10807 * dse.c (scan_insn): Ditto.
10808 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
10809 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
10810 RTL_CONST_OR_PURE_CALL_P.
10811 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
10812 pure_call_p to RTL_CONST_CALL_P.
10813 * gimplify.c (gimplify_call_expr): Clear side effects for
10814 non-looping pure and constant calls.
10815 * calls.c (emit_call_1): Set rtl flags from ecf flags.
10816 (flags_from_decl_or_type): Set ecf flags from decl flags.
10817 (initialize_argument_information): Turn off
10818 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
10819 Change const to pure if callee_copies is true rather than just
10820 turning off const.
10821 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
10822 way of marking pure calls.
10823 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
10824 Remove hack that was supposed to fix pr7335 and remove old
10825 way of marking pure calls.
10826 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
10827 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
10828 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
10829 RTL_CONST_OR_PURE_CALL_P.
10830 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
10831 * loop-invariant.c (find_exits, find_invariant_bb): Changed
10832 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
10833 * sched-deps.c (schedule_analyze): Ditto.
10834 * rtl.h (struct rtx_def): Use call field, unchanging field, and
10835 return_val field of calls to represent pure and const function info.
10836 (CONST_OR_PURE_CALL_P): Deleted macro.
10837 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10838 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
10839 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
10840 TREE_READONLY.
10841 * tree-optimize.c (execute_fixup_cfg): Added test for
10842 ECF_LOOPING_CONST_OR_PURE.
10843 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
10844 DECL_PURE_P.
10845 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
10846 effects for looping pure or const calls.
10847 (verify_gimple_expr): Added verification code.
10848 * config/alpha/alpha.c (alpha_legitimize_address,
10849 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
10850 RTL_CONST_CALL_P.
10851 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
10852 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
10853 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
10854 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
10855 RTL_CONST_OR_PURE_CALL_P.
10856 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
10857 and const calls to be deleted.
10858
10859 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
10860
10861 PR target/35714
10862 * config/i386/mmx.md (mmx_subv2sf3): New expander.
10863 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
10864 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
10865 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
10866 to handle nonimmediate operands.
10867 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
10868 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
10869 to handle nonimmediate operands.
10870 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
10871 (mmx_pmulhrwv4hi3): New expander. Use
10872 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10873 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
10874 (sse2_umulv1siv1di3): New expander. Use
10875 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10876 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
10877 (mmx_eq<mode>3): New expander. Use
10878 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10879 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
10880 (mmx_uavgv8qi3): New expander. Use
10881 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10882 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
10883 (mmx_uavgv4hi3): New expander. Use
10884 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10885
10886 * config/i386/sse.md
10887 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
10888 to handle nonimmediate operands.
10889 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
10890 to handle nonimmediate operands.
10891 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
10892 to handle nonimmediate operands.
10893 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
10894 to handle nonimmediate operands.
10895 (sse2_unpckhpd_exp): New expander. Use
10896 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10897 (sse2_unpcklpd_exp): New expander. Use
10898 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10899 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
10900 to handle nonimmediate operands.
10901 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
10902 to handle nonimmediate operands.
10903 (*sse2_<plusminus_insn><mode>3): Rename from
10904 sse2_<plusminus_insn><mode>3 insn pattern.
10905 (sse2_<plusminus_insn><mode>3): New expander. Use
10906 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10907 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
10908 (sse2_umulv2siv2di3): New expander. Use
10909 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10910 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
10911 (sse4_1_mulv2siv2di3): New expander. Use
10912 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10913 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
10914 (sse2_pmaddwd): New expander. Use
10915 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10916 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
10917 (sse2_eq<mode>3): New expander. Use
10918 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10919 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
10920 (sse4_1_eqv2di3): New expander. Use
10921 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10922 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10923 (sse2_uavgv16qi3): New expander. Use
10924 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10925 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10926 (sse2_uavgv16qi3): New expander. Use
10927 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10928 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
10929 (sse2_uavgv8hi3): New expander. Use
10930 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10931 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
10932 (ssse3_pmulhrswv8hi3): New expander. Use
10933 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10934 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
10935 (ssse3_pmulhrswv4hi3): New expander. Use
10936 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10937
10938 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
10939 (<sse>_vmmul<mode>3): Ditto.
10940 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
10941 (divv2df3): Ditto.
10942 (ssse3_pmaddubsw128): Use register_operand for operand 1.
10943 (ssse3_pmaddubsw): Ditto.
10944
10945 * config/i386/i386.c (struct_builtin_description)
10946 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
10947 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
10948 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
10949 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
10950 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
10951 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
10952 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
10953 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
10954 (ix86_fixup_binary_operands): Assert that src1
10955 and src2 must have the same mode when swapped.
10956 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
10957 and ix86_binary_operator_ok. Do not force operands in registers
10958 when optimizing.
10959
10960 2008-05-07 Jan Hubicka <jh@suse.cz>
10961
10962 * cgraph.c (dump_cgraph_node): Update.
10963 * cgraph.h (cgraph_local_info): Break out inline summary.
10964 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
10965 hook.
10966 * ipa-inline (inline_summary): New accestor function.
10967 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
10968 cgraph_decide_inlining, compute_inline_parameters): Update.
10969 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
10970
10971 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
10972
10973 Cleanup ColdFire scheduling support and add V4 pipeline model.
10974
10975 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
10976 (define_attr cpu): Add cfv4 value.
10977 (define_attr type, define_attr type1): Merge into a single 'type'
10978 attribute. Update all uses.
10979 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
10980 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
10981 Update all uses.
10982 (define_attr opx_mem, define_attr opy_mem): Remove.
10983 (define_attr op_mem): Clean up, update comment.
10984 (define_attr size): Use specific values instead of general int.
10985 (define_attr guess, define_attr split): Remove. Update all uses.
10986 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
10987 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
10988 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
10989 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
10990 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
10991 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
10992 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
10993 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
10994 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
10995 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
10996 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
10997 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
10998 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
10999 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
11000 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
11001 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
11002 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
11003 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
11004 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
11005 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
11006 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
11007 Update or set attributes.
11008 (stack_tie): New fake instruction.
11009
11010 * config/m68k/m68k.h (TUNE_CFV4): New macro.
11011 (m68k_sched_attr_size): Update declaration.
11012 (m68k_sched_attr_type2): Remove.
11013 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
11014 Declare new bypass predicates.
11015
11016 * config/m68k/m68k.c (m68k_sched_issue_rate,
11017 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
11018 implementations.
11019 (TARGET_SCHED_ISSUE_RATE,
11020 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
11021 (override_options): Handle scheduling for ColdFire V4 core.
11022 (m68k_expand_prologue): Emit stack_tie.
11023 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
11024 'OP_TYPE_FPN'. Update all uses.
11025 (sched_guess_p): Remove.
11026 (sched_address_type): Handle symbolic addresses.
11027 (sched_get_operand): New static function.
11028 (sched_operand_type): Merge into sched_attr_op_type.
11029 (sched_attr_op_type): Handle FP registers, handle quick constants,
11030 update.
11031 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
11032 (m68k_sched_attr_size): Update. Move logic to ...
11033 (sched_get_attr_size_int): New static function.
11034 (sched_get_opxy_mem_type): New static function.
11035 (m68k_sched_attr_op_mem): Update.
11036 (m68k_sched_attr_type2): Remove.
11037 (sched_cfv4_bypass_data): New static variable.
11038 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
11039 (m68k_sched_issue_rate): Implement scheduler hook.
11040 (struct _sched_ib: enabled_p): New field.
11041 (m68k_sched_variable_issue): Update. Handle V4.
11042 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
11043 sched_dump_class_func_t, sched_dump_split_class,
11044 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
11045 sched_dump_dfa_class, m68k_sched_dump): Remove.
11046 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
11047 hook.
11048 (m68k_sched_init_global): Remove statisctics dumping, introduce
11049 sanity check that all instructions have pipeline reservations. Handle
11050 ColdFire V4 core.
11051 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
11052 Handle ColdFire V4 core.
11053 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
11054 New static functions.
11055 (m68k_sched_address_bypass_p): New bypass predicate.
11056 (sched_get_indexed_address_scale): New static function.
11057 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
11058
11059 * cf.md: Update comments.
11060 (define_attr type2): Remove. Use 'type' attribute instead.
11061 Update all uses.
11062 (cf_ib): Rename to cfv123_ib. Update all uses.
11063 (cf_oep): Rename to cfv123_oep. Update all uses.
11064 (cf_chr): Rename to cfv123_chr. Update all uses.
11065 (cf_mem): Rename to cfv123_mem. Update all uses.
11066 (cf_mac): Move to more appropriate place.
11067 (cfv123_guess): New automaton and cpu_unit.
11068 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
11069 Update uses of 'size' attribute. Handle before reload scheduling.
11070 (cfv123_guess): New dummy reservation for unhandled instructions.
11071 (cfv4_*): Pipeline description of ColdFire V4 core.
11072 (ignore): New reservation to handle 'ignore' type.
11073
11074 2008-05-07 Ian Lance Taylor <iant@google.com>
11075
11076 PR middle-end/36013
11077 * gimplify.c (find_single_pointer_decl_1): Don't look through
11078 indirections.
11079 (find_single_pointer_decl): Adjust comments.
11080
11081 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11082
11083 PR middle-end/36137
11084 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
11085 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
11086
11087 PR middle-end/36106
11088 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
11089 integral type rather than floating point, then VIEW_CONVERT_EXPR
11090 to the floating point type.
11091
11092 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
11093
11094 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
11095 TFmode op0 to register.
11096
11097 2008-05-07 Alan Modra <amodra@bigpond.net.au>
11098
11099 * c-decl.c (grokdeclarator): Comment typo.
11100
11101 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
11102
11103 * tree-flow.h: Remove prototype for computed_goto_p.
11104 * tree-cfg.c (computed_goto_p): Make static.
11105
11106 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
11107
11108 PR target/35657
11109 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
11110 (contains_aligned_value_p): This. Handle _Decimal128.
11111 (ix86_function_arg_boundary): Only align _Decimal128 to its
11112 natural boundary and handle it properly.
11113
11114 2008-05-06 Martin Jambor <mjambor@suse.cz>
11115
11116 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
11117 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
11118 (ipcp_method_set_orig_node): Removed.
11119 (ipcp_cval_get_cvalue_type): Removed.
11120 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
11121 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
11122 (ipcp_cval_set_cvalue_type): Removed.
11123 (ipcp_cval_get_cvalue): Removed.
11124 (ipcp_cval_set_cvalue): Removed.
11125 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
11126 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
11127 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
11128 (ipcp_cval_meet): Renamed to ipa_lattice_meet
11129 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
11130 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
11131 (ipcp_get_ith_lattice): Changed parameters.
11132 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
11133 (ipcp_lattice_from_jfunc): Changed parameters.
11134 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
11135 (ipcp_method_cval_print): Added temporary variable info.
11136 (ipcp_redirect): Removed already unused local variable caller.
11137 (ipcp_redirect): New temporary variable orig_callee_info
11138 (ipcp_redirect): Removed newly unused local variable callee.
11139 (ipcp_redirect): Removed (a bit confusing) local variable type.
11140 (ipcp_insert_stage): Added local variable info.
11141 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
11142 renamed too
11143 (ipcp_formal_create): Removed.
11144 (ipcp_method_cval_set): Removed.
11145 (ipcp_propagate_stage): Renamed lattice variables.
11146 (ipcp_method_cval_set_cvalue_type): Removed.
11147 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
11148 (ipcp_print_all_lattices): Changed printed strings to refer to
11149 lattices rather than cvals.
11150 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
11151 (ipcp_propagate_const): Changed formal parameters.
11152 (build_const_val): Changed formal parameters.
11153 (ipcp_insert_stage): Removed useless variable cvalue
11154 (build_const_val): Changed formal parameters.
11155 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
11156 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
11157 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
11158 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
11159 (ipcp_print_func_profile_counts): Changed string from "method" to
11160 "function"
11161 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
11162 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
11163 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
11164 (ipcp_structures_print): Renamed to ipcp_print_all_structures
11165 (ipcp_profile_print): Renamed to ipcp_print_profile_data
11166 (ipcp_lat_is_const): Changed parameters and made inline.
11167 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
11168 (ipcp_redirect): Renamed to ipcp_need_redirect_p
11169 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
11170 the predicate condition directly
11171 (ipcp_propagate_stage): Added local variable args. Removed local
11172 variable callee. (Both are mere code simplifications.)
11173 (ipcp_method_dont_insert_const): Renamed to
11174 ipcp_node_not_modifiable_p.
11175 (ipcp_node_not_modifiable_p): Made inline.
11176 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
11177 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
11178 (ipcp_print_all_lattices): Removed variable cvalue
11179 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
11180 Updated comments.
11181
11182 2008-05-06 Olivier Hainque <hainque@adacore.com>
11183
11184 * tree-sra.c (try_instantiate_multiple_fields): Early return
11185 if field has POINTER_TYPE.
11186
11187 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
11188
11189 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
11190 by using 'q' specifier for instruction.
11191 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
11192
11193 2008-05-06 Anatoly Sokolov <aesok@post.ru>
11194
11195 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
11196 Change mode of zero_extract from QImode to HImode.
11197 (sign bit tests peepholes): (Ditto.).
11198
11199 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
11200
11201 * config/i386/mmx.md: Remove double backslashes from asm templates.
11202 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
11203 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
11204 to handle nonimmediate operands.
11205 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
11206 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
11207 to handle nonimmediate operands.
11208 (*mmx_<code>v2sf3_finite): New insn pattern.
11209 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
11210 (mmx_<code>v2sf3): New expander. Use
11211 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11212 (mmx_<plusminus_insn><mode>3): New expander. Use
11213 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11214 (*mmx_<plusminus_insn><mode>3): New insn pattern.
11215 (mmx_add<mode>3): Removed.
11216 (mmx_ssadd<mode>3): Ditto.
11217 (mmx_usadd<mode>3): Ditto.
11218 (mmx_sub<mode>3): Ditto.
11219 (mmx_sssub<mode>3): Ditto.
11220 (mmx_ussub<mode>3): Ditto.
11221 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
11222 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
11223 to handle nonimmediate operands.
11224 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
11225 insn pattern.
11226 (mmx_smulv4hi3_highpart): New expander. Use
11227 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11228 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
11229 insn pattern.
11230 (mmx_umulv4hi3_highpart): New expander. Use
11231 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11232 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
11233 (mmx_<code>v4hi3): New expander. Use
11234 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11235 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
11236 (mmx_<code>v8qi3): New expander. Use
11237 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11238 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
11239 (mmx_<code><mode>3): New expander. Use
11240 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11241
11242 2008-05-05 Jan Hubicka <jh@suse.cz>
11243
11244 PR tree-optimization/36118
11245 * passes.c (pass_init_dump_file): Fix dump header.
11246
11247 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
11248
11249 PR middle-end/36141
11250 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
11251 VCE for function decls.
11252
11253 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
11254
11255 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
11256
11257 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
11258
11259 * config/i386/i386.md (sat_plusminus): New.
11260 (plusminus_insn): Likewise.
11261 (plusminus_mnemonic): Likewise.
11262 (addsub): Removed.
11263 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
11264 (*<addsub><mode>3_cc_overflow): Renamed to ...
11265 (*<plusminus_insn><mode>3_cc_overflow): This.
11266 (*<addsub>si3_zext_cc_overflow): Renamed to ...
11267 (*<plusminus_insn>si3_zext_cc_overflow): This.
11268
11269 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
11270 (<plusminus_insn><mode>3): This.
11271 (*<addsub><mode>3): Renamed to ...
11272 (*<plusminus_insn><mode>3): This.
11273 (<sse>_vm<addsub><mode>3): Renamed to ...
11274 (<sse>_vm<plusminus_insn><mode>3): This.
11275 (sse3_h<addsub>v4sf3): Renamed to ...
11276 (sse3_h<plusminus_insn>v4sf3): This.
11277 (sse3_h<addsub>v2df3): Renamed to ...
11278 (sse3_h<plusminus_insn>v2df3): This.
11279 (<plusminus_insn><mode>3): New.
11280 (*<plusminus_insn><mode>3): Likewise.
11281 (sse2_<plusminus_insn><mode>3): Likewise.
11282 (add<mode>): Removed.
11283 (*add<mode>3): Likewise.
11284 (sse2_ssadd<mode>3): Likewise.
11285 (sse2_usadd<mode>3): Likewise.
11286 (sub<mode>3): Likewise.
11287 (*sub<mode>3): Likewise.
11288 (sse2_sssub<mode>3): Likewise.
11289 (sse2_ussub<mode>3): Likewise.
11290
11291 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
11292
11293 * gthr-single.h: Add in required interface elements as per gthr.h.
11294 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
11295 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
11296 Generalize UNUSED macro.
11297 (__gthread_once): Add.
11298 (__gthread_key_create): Add.
11299 (__gthread_key_delete): Add.
11300 (__gthread_getspecific): Add.
11301 (__gthread_setspecific): Add.
11302
11303 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
11304
11305 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
11306 the same size types for the indirect reference on the rhs, then
11307 create a VCE.
11308
11309 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
11310
11311 * config/i386/i386.md
11312 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
11313 one insn template instead of template series.
11314 (*xordi_1_rex64): Ditto.
11315 (*xordi_2_rex64): Ditto.
11316
11317 2008-05-05 Ira Rosen <irar@il.ibm.com>
11318
11319 PR tree-optimization/36119
11320 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
11321 in case of SLP.
11322
11323 2008-06-04 Jan Hubicka <jh@suse.cz>
11324
11325 tree-optimization/36100
11326 * tree-pass.h (pass_O0_always_inline): Declare.
11327 * ipa-inline.c (inline_transform): Remove dead code.
11328 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
11329 pass_O0_always_inline): New.
11330 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
11331
11332 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
11333
11334 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
11335 mnemonic in this_param move for TARGET_64BIT.
11336
11337 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
11338
11339 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
11340 (*strmovsi_rex_1): Ditto.
11341 (*strsetsi_1): Ditto.
11342 (*strsetsi_rex_1): Ditto.
11343
11344 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
11345 adddicc expanders using SWI mode iterator.
11346
11347 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
11348
11349 PR target/36121
11350 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
11351 argument handling.
11352
11353 2008-05-04 David S. Miller <davem@davemloft.net>
11354
11355 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
11356 (sparc*-*-linux*): Use linux.h in tm_file.
11357 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
11358 compiler defaulting to 32-bit.
11359 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
11360 no longer needed.
11361 * config/sparc/linux.h: Remove definitions now obtained
11362 properly from linux.h
11363 * config/sparc/linux64.h: Likewise.
11364 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
11365 don't want this setting for 32-bit builds in a biarch compiler.
11366 * doc/install.texi: Add sparc-linux to list of targets
11367 supporting --enable-targets=all.
11368
11369 2008-05-03 Andrew Pinski <pinskia@gmail.com>
11370
11371 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
11372
11373 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
11374
11375 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
11376 after V4SI_FTYPE_V8HI.
11377 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
11378 case V4SI_FTYPE_V2DF.
11379
11380 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
11381
11382 * doc/invoke.texi (max-flow-memory-locations): Removed.
11383 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
11384
11385 2008-05-03 Richard Guenther <rguenther@suse.de>
11386
11387 PR middle-end/34973
11388 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
11389
11390 2008-05-02 David S. Miller <davem@davemloft.net>
11391
11392 * config.gcc (need_64bit_hwint): Document libcpp dependency.
11393
11394 2008-05-02 Simon Baldwin <simonb@google.com>
11395
11396 PR bootstrap/36108
11397 * c-common.h (warn_array_subscript_range): Removed.
11398 * c-common.c (warn_array_subscript_range): Ditto.
11399 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
11400 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
11401
11402 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
11403
11404 * config/i386/i386.c (ix86_special_builtin_type): New.
11405 (bdesc_special_args): Likewise.
11406 (ix86_expand_special_args_builtin): Likewise.
11407 (ix86_init_mmx_sse_builtins): Updated.
11408 (ix86_expand_builtin): Updated.
11409 (ix86_expand_store_builtin): Removed.
11410 (ix86_expand_unop_builtin): Likewise.
11411
11412 * config/i386/mm3dnow.h (__v2sf): Moved to ...
11413 * config/i386/mmintrin.h (__v2sf): Here.
11414
11415 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
11416 const __v2sf.
11417 (_mm_loadl_pi): Likewise.
11418 (_mm_storeh_pi): Replace __v2si with __v2sf.
11419 (_mm_storel_pi): Likewise.
11420
11421 * doc/extend.texi: Correct __builtin_ia32_loadhps,
11422 __builtin_ia32_loadlps, __builtin_ia32_storehps,
11423 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
11424 __builtin_ia32_loadlpd.
11425
11426 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
11427
11428 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
11429 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
11430 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
11431 (ix86_init_mmx_sse_builtins): Updated.
11432 (ix86_expand_args_builtin): Likewise.
11433 (ix86_expand_builtin): Likewise.
11434 (ix86_expand_unop1_builtin): Renamed to ...
11435 (ix86_expand_unop_vec_merge_builtin): This.
11436
11437 2008-05-01 Jan Hubicka <jh@suse.cz>
11438
11439 PR bootstrap/36100
11440 * ipa-inline.c (inline_generate_summary): Make static.
11441 (inline_transform): Do not call inlining at -O0; make static.
11442 * passes.c (execute_todo): Add sanity check.
11443 (execute_one_ipa_transform_pass): Execute proper flags.
11444
11445 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
11446
11447 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
11448 (DECL_NONADDRESSABLE_P): Likewise.
11449 * alias.c (record_component_aliases): Fix comment.
11450
11451 2008-05-01 Simon Baldwin <simonb@google.com>
11452
11453 * c-common.h (warn_array_subscript_range): New function.
11454 * c-common.c (warn_array_subscript_range): Ditto.
11455 * tree-vrp.c (check_array_ref): Corrected code to agree with
11456 comment, ignoring only arrays of size 0 or size 1.
11457 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
11458
11459 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
11460
11461 * config/i386/i386.c (ix86_builtin_type): Replace
11462 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
11463 (bdesc_args): Updated.
11464 (ix86_init_mmx_sse_builtins): Likewise.
11465 (ix86_expand_args_builtin): Likewise.
11466
11467 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
11468 with __v1di.
11469
11470 * doc/extend.texi: Correct __builtin_ia32_palignr.
11471
11472 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
11473
11474 PR target/36095
11475 * config/i386/i386.c (bdesc_crc32): Removed.
11476 (ix86_expand_crc32): Likewise.
11477 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
11478 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
11479 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
11480 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
11481 UINT_FTYPE_UINT_UCHAR.
11482 (bdesc_args): Updated. Add crc32 builtins.
11483 (ix86_init_mmx_sse_builtins): Updated.
11484 (ix86_expand_args_builtin): Updated to support subreg.
11485
11486 * doc/extend.texi: Correct __builtin_ia32_crc32di.
11487
11488 2008-05-01 Jan Hubicka <jh@suse.cz>
11489
11490 * tree-pass.h (opt_pass): Add IPA_PASS.
11491 (varpool_node, cgraph_node): Forward declare.
11492 (ipa_opt_pass): Define.
11493 (pass_ipa_inline): Turn into ipa_opt_pass.
11494 (pass_apply_inline): Remove.
11495 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
11496 (apply_inline): Turn into ....
11497 (inline_transform): ... this one.
11498 (inline_generate_summary): New function.
11499 (pass_apply_inline): Remove.
11500 * function.h (ipa_opt_pass): Forward declare structure; typedef;
11501 vector.
11502 (struct function): Add ipa_transforms_to_apply.
11503 * passes.c (register_one_dump_file): Work on IPA_PASS.
11504 (init_optimization_passes): Remove pass_inline_parameters and
11505 pass_apply_inline.
11506 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
11507 (execute_one_pass) ... here; apply transforms when possible.
11508 (add_ipa_transform_pass, execute_ipa_summary_asses,
11509 execute_one_ipa_transform_pass): New.
11510 (execute_ipa_pass_list): Update for IPA_PASS type.
11511
11512 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
11513
11514 * config/i386/i386.c (ix86_builtin_type): Add
11515 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
11516 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
11517 (bdesc_args): Add SSE4a builtins.
11518 (ix86_init_mmx_sse_builtins): Updated.
11519 (ix86_expand_args_builtin): Likewise.
11520 (ix86_expand_builtin): Likewise.
11521
11522 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
11523
11524 * config/i386/i386.c (ix86_builtin_type): Add
11525 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
11526 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
11527 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
11528 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
11529 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
11530 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
11531 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
11532 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
11533 and DI_FTYPE_DI_DI_INT.
11534 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
11535 (ix86_init_mmx_sse_builtins): Updated.
11536 (ix86_expand_args_builtin): Likewise.
11537 (ix86_expand_builtin): Likewise.
11538 (ix86_expand_binop_imm_builtin): Removed.
11539
11540 * doc/extend.texi: Correct __builtin_ia32_palignr128.
11541
11542 2008-04-30 Richard Guenther <rguenther@suse.de>
11543
11544 PR tree-optimization/32921
11545 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
11546
11547 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
11548
11549 * config/arm/arm.c (arm_unwind_emit): Use
11550 crtl->all_throwers_are_sibcalls instead of
11551 cfun->all_throwers_are_sibcalls.
11552 (arm_output_fn_unwind): Likewise.
11553 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
11554 instead of cfun->uses_pic_offset_table.
11555 (frv_expand_prologue): Likewise.
11556 (frv_frame_pointer_required): Likewise.
11557 (frv_expand_fdpic_call): Likewise.
11558 (frv_emit_movsi): Likewise.
11559 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
11560 cfun->returns_pcc_struct instead of
11561 current_function_returns_pcc_struct.
11562 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
11563 instead of cfun->calls_eh_return.
11564 (m32c_pushm_popm): Likewise.
11565 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
11566 "extern" declaration.
11567
11568 2008-04-30 Richard Guenther <rguenther@suse.de>
11569
11570 PR tree-optimization/21636
11571 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
11572 constant address.
11573 (evaluate_stmt): Print the likely value.
11574 (ccp_visit_stmt): Avoid excessive vertical spacing.
11575
11576 2008-04-30 Rafael Espindola <espindola@google.com>
11577
11578 * builtins.c (fold_call_expr): Return realret.
11579 * tree-ssa-threadedge.c
11580 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11581 __builtin_object_size.
11582
11583 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
11584
11585 * gcc.c (wrapper_string): New variable.
11586 (insert_wrapper): New function.
11587 (execute): New option -wrapper.
11588 * doc/invoke.texi (Overall Options): New driver option -wrapper.
11589
11590 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
11591
11592 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
11593 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
11594 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
11595 from...
11596 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
11597 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
11598 config/rs6000/e500crtres64gprctr.asm,
11599 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
11600 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
11601 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
11602 config/rs6000/e500crtsav64gprctr.asm,
11603 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
11604 config/rs6000/e500crtsavg64gprctr.asm: New files.
11605 * config/rs6000/t-ppccomm: Add build rules for new files.
11606 (LIB2FUNCS_STATIC_EXTRA): Add new files.
11607 * config/rs6000/t-netbsd: Add build rules for new files.
11608 (LIB2FUNCS_STATIC_EXTRA): New variable.
11609 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
11610 (CRTSAVRES_DEFAULT_SPEC): Likewise.
11611 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
11612
11613 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
11614
11615 * config/i386/i386.c (ix86_builtin_type): Add
11616 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
11617 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
11618 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
11619 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
11620 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
11621 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
11622 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
11623 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
11624 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
11625 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
11626 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
11627 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
11628 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
11629 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
11630 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
11631 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
11632 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
11633 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
11634 V1DI_FTYPE_V2SI_V2SI.
11635 (bdesc_2arg): Moved to ...
11636 (bdesc_args): Here.
11637 (ix86_init_mmx_sse_builtins): Updated.
11638 (ix86_expand_args_builtin): Updated. Take a pointer
11639 to const struct builtin_description. Handle comparison
11640 builtin functions.
11641 (ix86_expand_sse_compare): Take a new argument for swapping operands.
11642 (ix86_expand_builtin): Updated.
11643
11644 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
11645 (ssse3_pmaddubsw128): This.
11646 (ssse3_pmaddubswv4hi3): Renamed to ...
11647 (ssse3_pmaddubsw): This.
11648
11649 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
11650 (__builtin_ia32_packssdw128): Likewise.
11651 (__builtin_ia32_packuswb128): Likewise.
11652 (__builtin_ia32_pmaddubsw): Likewise.
11653 (__builtin_ia32_pmaddubsw128): Likewise.
11654
11655 2008-04-30 Richard Guenther <rguenther@suse.de>
11656
11657 PR tree-optimization/14847
11658 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
11659 (recognize_bits_test): Use it.
11660 (recognize_single_bit_test): Likewise.
11661
11662 2008-04-30 Martin Jambor <mjambor@suse.cz>
11663
11664 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
11665 instead of setting number of formal parameters to zero.
11666 (ipcp_init_stage): Do not set the number of actual parameters to zero
11667 either.
11668 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
11669 which are called with variable number of arguments.
11670 (ipcp_insert_stage): Explicitely skipping all nodes which are
11671 called with variable number of arguments.
11672 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
11673 number of parameters.
11674
11675 * ipa-prop.h (struct ipa_node_params): Added flag
11676 called_with_var_arguments
11677 (ipa_set_param_count): Added. Changed sole setter to use it.
11678 (ipa_get_param_count): Added. All readers of param_count
11679 converted to use it instead.
11680 (ipa_set_called_with_variable_arg): Added.
11681 (ipa_is_called_with_var_arguments): Added.
11682 (ipa_get_ith_param): Added. All readers of param_decls converted
11683 to use it instead.
11684 (ipa_set_cs_argument_count): Added, sole writer to argument_count
11685 changed to use it.
11686 (ipa_get_cs_argument_count): Added, all readers of argument_count
11687 changed to cal it.
11688 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
11689 to use it.
11690
11691 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
11692 (struct ipcp_lattice): Renamed cval_type to type
11693 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
11694
11695 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
11696 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
11697 (ipcp_insert_stage): Changed the type of variable cvalue to tree
11698 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
11699 (build_const_val): Changed the type of parameter cvalue to tree
11700 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
11701 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
11702
11703 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
11704 constant
11705
11706 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
11707 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
11708 (ipa_add_method): Renamed to ipa_push_func_to_list
11709 (ipa_remove_method): Renamed to ipa_pop_func_from_list
11710 (ipa_callsite_param_count): Removed.
11711 (ipa_callsite_param_count_set): Removed.
11712 (ipa_callsite_param): Removed.
11713 (ipa_callsite_callee): Removed.
11714 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
11715 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
11716 (ipa_method_formal_count): Removed.
11717 (ipa_method_formal_count_set): Removed.
11718 (ipa_method_get_tree): Removed.
11719 (ipa_method_tree_map_create): Removed.
11720 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
11721 (ipa_create_param_decls_array): Creates the array itself
11722 (ipa_create_param_decls_array): Temporary variable info instead of
11723 a few dereferences.
11724 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
11725 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
11726 (get_type): Removed.
11727 (ipa_jf_get_info_type): Removed.
11728 (ipa_node_create): Renamed to ipa_create_node_params
11729 (ipa_free): Renamed to ipa_free_all_node_params
11730 (ipa_nodes_create): Renamed to ipa_create_all_node_params
11731 (ipa_edges_create): Renamed to ipa_create_all_edge_args
11732 (ipa_edges_free): Renamed to ipa_free_all_edge_args
11733 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
11734 (ipa_free_all_node_params): Deallocation to jump_functions moved to
11735 ipa_free_all_edge_args
11736 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
11737 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
11738 (ipa_create_methodlist_node): Removed.
11739 (ipa_methodlist_method): Removed.
11740 (ipa_methodlist_method_set): Removed.
11741 (ipa_methodlist_next_method): Removed.
11742 (ipa_methodlist_next_method_set): Removed.
11743 (ipa_method_is_modified): Removed.
11744 (ipa_method_modify_create): Removed.
11745 (ipa_method_modify_init): Temporary variable info instead of a few
11746 dereferences.
11747 (ipa_detect_param_modifications): Temporary variable info instead of
11748 a few dereferences.
11749 (ipa_compute_jump_functions): Temporary variable info instead of
11750 a few dereferences.
11751 (ipa_method_modify_set): Removed.
11752 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
11753 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
11754 than craph_node as the first parameter.
11755 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
11756 (ipa_method_modify_init): Removed.
11757 (ipa_compute_jump_functions): Added a temp variable instead of
11758 repeatadly dereferencing the cgraph_edge.aux pointer
11759 (ipa_callsite_param_set_type): Removed.
11760 (ipa_compute_jump_functions): i renamed to index and moved to
11761 an inner block
11762 (ipa_callsite_param_set_info_type_formal): Removed.
11763 (ipa_callsite_param_set_info_type): Removed.
11764 (ipa_callsite_param_map_create): Removed.
11765 (ipa_callsite_tree): Removed.
11766 (ipa_callsite_caller): Removed.
11767 (ipa_pop_func_from_list): return_method removed to return_func
11768
11769 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
11770 prefixed all values with IPA_. Changed all users.
11771 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
11772 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
11773 and FORMAL_IPATYPE IPA_PASS_THROUGH.
11774 (union parameter_info): Renamed to jump_func_value.
11775 (union jump_func_value): Renamed value to constant
11776 (struct ipa_jump_func): Renamed info_type to value
11777 (struct ipa_node): Renamed to ipa_node_params
11778 (struct ipa_node_params): Renamed ipa_arg_num to param_count
11779 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
11780 (struct ipa_node_params): Renamed ipa_mod to modified_flags
11781 (struct ipa_edge): Renamed to ipa_edge_args
11782 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
11783 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
11784 (struct ipa_methodlist): Renamed to ipa_func_list
11785 (struct ipa_func_list): method_p renamed to node, next_method
11786 renamed to next
11787 (ipa_methodlist_p): Removed, switched all users to struct pointer
11788 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
11789
11790 2008-04-30 Alan Modra <amodra@bigpond.net.au>
11791
11792 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
11793 (rs6000_emit_epilogue): Use backchain to restore only when we
11794 have a large frame. Make use of frame pointer to restore if we
11795 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
11796
11797 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
11798
11799 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
11800 Add mode to zero_extract.
11801 (sign bit tests peepholes): (Ditto.).
11802
11803 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
11804
11805 * config/i386/i386.c (ix86_builtins): Replace Prescott New
11806 Instructions in comments with SSE3.
11807 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
11808 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
11809 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
11810 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
11811 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
11812 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
11813 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
11814 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
11815 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
11816 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
11817 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
11818 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
11819 (bdesc_sse_args): Renamed to ...
11820 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
11821 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
11822 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
11823 IX86_BUILTIN_FABSQ.
11824 (bdesc_1arg): Moved to ...
11825 (bdesc_args): Here.
11826 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
11827 Instructions in comments with SSE3.
11828 (ix86_expand_sse_operands_builtin): Renamed to ...
11829 (ix86_expand_args_builtin): This. Updated.
11830 (ix86_expand_unop1_builtin): Update comments.
11831 (ix86_expand_builtin): Updated.
11832
11833 2008-04-29 Richard Guenther <rguenther@suse.de>
11834
11835 PR tree-optimization/36078
11836 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
11837 Update virtual SSA form after cleaning up the CFG.
11838
11839 2008-04-29 Richard Guenther <rguenther@suse.de>
11840
11841 PR middle-end/15255
11842 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
11843
11844 2008-04-29 Richard Guenther <rguenther@suse.de>
11845
11846 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
11847 (compute_may_aliases): Do not call finalize_ref_all_pointers.
11848 (compute_flow_insensitive_aliasing): Do not treat
11849 PTR_IS_REF_ALL pointers special.
11850 (get_smt_for): Likewise.
11851 (may_alias_p): Re-structure.
11852 (is_escape_site): A ref-all pointer conversion is not an escape site.
11853 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
11854 PTR_IS_REF_ALL pointers special.
11855 * tree-ssa-structalias.h (struct alias_info): Remove
11856 ref_all_symbol_mem_tag field.
11857 (PTR_IS_REF_ALL): Remove.
11858
11859 2008-04-29 Richard Guenther <rguenther@suse.de>
11860
11861 PR middle-end/36077
11862 * fold-const.c (extract_muldiv_1): In combining division constants
11863 make sure to never overflow.
11864
11865 2008-04-29 Nick Clifton <nickc@redhat.com>
11866
11867 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
11868
11869 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11870
11871 PR bootstrap/35169
11872 * optc-gen.awk: Work around HP-UX/IA awk bug.
11873
11874 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
11875
11876 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
11877 2008-04-25 commit.
11878
11879 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
11880
11881 PR target/36073
11882 * config/i386/i386.md
11883 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
11884 Change operand 1 predicate to nonimmediate_operand.
11885
11886 2008-04-28 Jakub Jelinek <jakub@redhat.com>
11887
11888 PR debug/36060
11889 * dwarf2out.c (struct die_struct): Mark as chain_circular through
11890 die_sub field.
11891 * gengtype.c (walk_type, write_func_for_structure): Handle
11892 chain_circular.
11893 * doc/gty.texi: Document chain_circular.
11894
11895 2008-04-28 Richard Guenther <rguenther@suse.de>
11896
11897 PR tree-optimization/36066
11898 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
11899 SCEV and loop.
11900
11901 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
11902
11903 PR target/36064
11904 * config/i386/i386.md
11905 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
11906 Use match_scratch instead of match_operand for operands 3 and 4.
11907
11908 2008-04-27 Richard Guenther <rguenther@suse.de>
11909
11910 PR tree-optimization/18754
11911 PR tree-optimization/34223
11912 * tree-pass.h (pass_complete_unrolli): Declare.
11913 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
11914 loop size before and after unconditionally of UL_NO_GROWTH in effect.
11915 Rewrite loop into loop closed SSA form if it is not already.
11916 (tree_unroll_loops_completely): Re-structure to iterate over
11917 innermost loops with intermediate CFG cleanups.
11918 Unroll outermost loops only if requested or the code does not grow
11919 doing so.
11920 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
11921 loops are available.
11922 (tree_vectorize): Instead do so here.
11923 (tree_complete_unroll): Also unroll outermost loops.
11924 (tree_complete_unroll_inner): New function.
11925 (gate_tree_complete_unroll_inner): Likewise.
11926 (pass_complete_unrolli): New pass.
11927 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
11928 uses outside of the loop.
11929 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
11930 form if it is available.
11931 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
11932 * passes.c (init_optimization_passes): Schedule complete inner
11933 loop unrolling pass before the first CCP pass after final inlining.
11934
11935 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
11936
11937 * targhooks.h (default_emutls_var_fields,
11938 default_emutls_var_init): Declare.
11939 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
11940 * target.h (struct gcc_target): Add struct emutls member.
11941 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
11942 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
11943 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
11944 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
11945 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
11946 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
11947 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
11948 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
11949 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
11950 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
11951 emit debug information.
11952 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
11953 * varasm.c: Include targhooks.h.
11954 (emutls_object_section, emutls_tmpl_section): New.
11955 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
11956 (EMUTLS_SEPARATOR): New.
11957 (prefix_name): New.
11958 (get_emutls_object_name): New.
11959 (default_emutls_var_fields): New, broken out of ...
11960 (get_emutls_object_type): ... here. Adjust to use target hooks.
11961 (get_emutls_init_templ_addr): Adjust to use target hooks.
11962 (emutls_decl): Adjust to use target hooks.
11963 (emutls_finish): Likewise.
11964 (default_emutls_var_init): New, broken out of ...
11965 (assemble_variable): ... here. Adjust to use target hooks.
11966 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
11967 SECCAT_EMUTLS_TMPL.
11968 * c-common.c (handle_section_attribute): Prevent overriding
11969 sections for emulated tls with special sections.
11970 * config/i386/i386.c (x86_64_elf_select_section): Add
11971 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
11972 (x86_64_elf_unique_section): Likewise.
11973 * config/vxworks.c: Include tree.h.
11974 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
11975 (vxworks_override_options): Set TLS scheme.
11976 * doc/tm.texi (Emulated TLS): New node.
11977
11978 2008-04-26 Simon Baldwin <simonb@google.com>
11979
11980 PR c/35652
11981 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
11982 with propagated string constants.
11983
11984 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
11985
11986 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
11987 constraint for operand 2 when operand 0 is memory operand.
11988 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
11989 operand 0 is memory operand.
11990 (fix_trunc<mode>_i387_with_temp): Ditto.
11991 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
11992 operand 2 when operand 1 is memory operand.
11993 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
11994 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
11995 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
11996 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11997 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
11998 operands 2,3 and 4 when operand 1 is memory operand.
11999 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
12000 is memory operand.
12001 (fistdi2_floor_with_temp): Ditto.
12002 (fist<mode>2_floor_with_temp): Ditto.
12003 (fistdi2_ceil_with_temp): Ditto.
12004 (fist<mode>2_ceil_with_temp): Ditto.
12005 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
12006
12007 2008-04-26 David Daney <ddaney@avtrex.com>
12008
12009 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
12010 unspec_volitile.
12011 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
12012 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12013 UNSPEC_UPDATE_GOT_VERSION): Renumber.
12014 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
12015 (compare_and_swap_12): New insn.
12016 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
12017 * config/mips/mips.c (mips_force_binary): New function.
12018 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
12019 (mips_expand_compare_and_swap_12): New function.
12020 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
12021
12022 2008-04-25 Jan Hubicka <jh@suse.cz>
12023
12024 PR testsuite/35843
12025 * cfgexpand.c (pass_expand): Turn into RTL pass.
12026 * passes.c (execute_one_pass): Do pass typechecking after execution.
12027 * tree-pass.h (pass_expand): Turn into RTL pass.
12028
12029 * function.h (struct rtl_data): Move here fields
12030 accesses_prior_frames, calls_eh_return, saves_all_registers,
12031 has_nonlocal_goto, has_asm_statement, is_thunk,
12032 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
12033 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
12034 arg_pointer_save_area_init from struct function; turn into bool.
12035 (struct function): Move
12036 calls_eh_return, saves_all_registers, has_nonlocal_goto,
12037 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
12038 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
12039 tail_call_emit, arg_pointer_save_area_init
12040 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
12041 (current_function_returns_struct, current_function_returns_pcc_struct,
12042 current_function_calls_setjmp, current_function_calls_alloca,
12043 current_function_accesses_prior_frames,
12044 current_function_calls_eh_return, current_function_is_thunk,
12045 current_function_stdarg, current_function_profile,
12046 current_function_limit_stack, current_function_uses_pic_offset_table,
12047 current_function_uses_const_pool, current_function_has_nonlocal_label,
12048 current_function_saves_all_registers,
12049 current_function_has_nonlocal_goto,
12050 current_function_has_asm_statement): Remove accesor macros.
12051 * ra-conflict.c (global_conflicts): Update.
12052 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
12053 (suitable_for_tail_call_opt_p): Update.
12054 * builtins.c (expand_builtin_return_addr): Update.
12055 (expand_builtin_setjmp_setup): Update.
12056 (expand_builtin_nonlocal_goto): Update.
12057 * final.c (final_start_function): Update.
12058 (profile_function): Update.
12059 (leaf_function_p): Update.
12060 (only_leaf_regs_used): Update.
12061 * df-scan.c (df_get_exit_block_use_set): Update.
12062 * dojump.c (clear_pending_stack_adjust): Update.
12063 * tree-stdarg.c (gate_optimize_stdarg): Update.
12064 * gimple-low.c (lower_function_body): Update.
12065 * global.c (compute_regsets): Update.
12066 (global_alloc): Update.
12067 * dwarf2out.c (dwarf2out_begin_prologue): Update.
12068 * expr.c (expand_assignment): Update.
12069 * dse.c (dse_step0): Update.
12070 (dse_step1): Update.
12071 * c-decl.c (store_parm_decls): Update.
12072 * local-alloc.c (combine_regs): Update.
12073 (find_free_reg): Update.
12074 * function.c (assign_parms_augmented_arg_list): Update.
12075 (assign_parm_find_data_types): Update.
12076 (assign_parms): Update.
12077 (allocate_struct_function): Update.
12078 (expand_function_start): Update.
12079 (expand_function_end): Update.
12080 (get_arg_pointer_save_area): Update.
12081 (thread_prologue_and_epilogue_insns): Update.
12082 (rest_of_match_asm_constraints): Update.
12083 * stor-layout.c (variable_size): Update.
12084 * gcse.c (gcse_main): Update.
12085 (bypass_jumps): Update.
12086 * gimplify.c (gimplify_function_tree): Update.
12087 * calls.c (emit_call_1): Update.
12088 (expand_call): Update.
12089 * bt-load.c (compute_defs_uses_and_gen): Update.
12090 * except.c (sjlj_assign_call_site_values): Update.
12091 (sjlj_emit_function_enter): Update.
12092 (can_throw_external): Update.
12093 (set_nothrow_function_flags): Update.
12094 (expand_builtin_unwind_init): Update.
12095 (expand_eh_return): Update.
12096 (convert_to_eh_region_ranges): Update.
12097 (output_function_exception_table): Update.
12098 * emit-rtl.c (gen_tmp_stack_mem): Update.
12099 * cfgexpand.c (expand_used_vars): Update.
12100 (tree_expand_cfg): Update.
12101 * cfgcleanup.c (rest_of_handle_jump): Update.
12102 * explow.c (allocate_dynamic_stack_space): Update.
12103 * varasm.c (assemble_start_function): Update.
12104 (force_const_mem): Update.
12105 (mark_constant_pool): Update.
12106 * tree-optimize.c (tree_rest_of_compilation): Update.
12107 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
12108 * tree-cfg.c (notice_special_calls): Update.
12109 (is_ctrl_altering_stmt): Update.
12110 (tree_can_make_abnormal_goto): Update.
12111 (tree_purge_dead_abnormal_call_edges): Update.
12112 * config/alpha/predicates.md: Update.
12113 * config/alpha/alpha.c (alpha_sa_mask): Update.
12114 (alpha_sa_size): Update.
12115 (alpha_does_function_need_gp): Update.
12116 (alpha_expand_prologue): Update.
12117 (alpha_start_function): Update.
12118 (alpha_output_function_end_prologue): Update.
12119 (alpha_expand_epilogue): Update.
12120 * config/frv/frv.c (frv_stack_info): Update.
12121 (frv_expand_epilogue): Update.
12122 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
12123 (s390_register_info): Update.
12124 (s390_frame_info): Update.
12125 (s390_init_frame_layout): Update.
12126 (s390_can_eliminate): Update.
12127 (save_gprs): Update.
12128 * config/spu/spu.c (spu_split_immediate): Update.
12129 (need_to_save_reg): Update.
12130 (spu_expand_prologue): Update.
12131 (spu_expand_epilogue): Update.
12132 * config/sparc/sparc.md: Update.
12133 * config/sparc/sparc.c (eligible_for_return_delay): Update.
12134 (sparc_tls_got): Update.
12135 (legitimize_pic_address): Update.
12136 (sparc_emit_call_insn): Update.
12137 (sparc_expand_prologue): Update.
12138 (output_return): Update.
12139 (print_operand): Update.
12140 (sparc_function_ok_for_sibcall): Update.
12141 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
12142 * config/m32r/m32r.md: Update.
12143 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
12144 (m32r_compute_frame_size): Update.
12145 (m32r_expand_prologue): Update.
12146 (m32r_expand_epilogue): Update.
12147 (m32r_legitimize_pic_address): Update.
12148 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
12149 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
12150 * config/i386/i386.c (ix86_frame_pointer_required): Update.
12151 (gen_push): Update.
12152 (ix86_save_reg): Update.
12153 (ix86_compute_frame_layout): Update.
12154 (ix86_expand_prologue): Update.
12155 (ix86_expand_epilogue): Update.
12156 * config/sh/sh.c (output_stack_adjust): Update.
12157 (calc_live_regs): Update.
12158 (sh5_schedule_saves): Update.
12159 (sh_expand_prologue): Update.
12160 (sh_expand_epilogue): Update.
12161 (sh_setup_incoming_varargs): Update.
12162 (sh_allocate_initial_value): Update.
12163 (sh_get_pr_initial_val): Update.
12164 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
12165 * config/sh/sh.md (label:): Update.
12166 * config/avr/avr.c (out_movhi_mr_r): Update.
12167 * config/crx/crx.h (enum): Update.
12168 * config/xtensa/xtensa.h (along): Update.
12169 * config/stormy16/stormy16.c Update.
12170 (xstormy16_compute_stack_layout): Update.
12171 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
12172 (fr30_expand_prologue): Update.
12173 * config/cris/cris.c (cris_conditional_register_usage): Update.
12174 (cris_reg_saved_in_regsave_area): Update.
12175 (cris_initial_frame_pointer_offset): Update.
12176 (cris_simple_epilogue): Update.
12177 (cris_expand_prologue): Update.
12178 (cris_expand_epilogue): Update.
12179 (cris_expand_pic_call_address): Update.
12180 (cris_asm_output_symbol_ref): Update.
12181 (cris_asm_output_label_ref): Update.
12182 * config/cris/cris.md Update.
12183 * config/iq2000/iq2000.c (compute_frame_size): Update.
12184 (iq2000_expand_epilogue): Update.
12185 * config/mt/mt.h (save_direction): Update.
12186 * config/mn10300/mn10300.c (mn10300_function_value): Update.
12187 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
12188 (ia64_secondary_reload_class): Update.
12189 * config/m68k/m68k.c (m68k_save_reg): Update.
12190 (m68k_expand_prologue): Update.
12191 (m68k_expand_epilogue): Update.
12192 (legitimize_pic_address): Update.
12193 * config/rs6000/rs6000.c (rs6000_got_register): Update.
12194 (first_reg_to_save): Update.
12195 (first_altivec_reg_to_save): Update.
12196 (compute_vrsave_mask): Update.
12197 (compute_save_world_info): Update.
12198 (rs6000_stack_info): Update.
12199 (spe_func_has_64bit_regs_p): Update.
12200 (rs6000_ra_ever_killed): Update.
12201 (rs6000_emit_eh_reg_restore): Update.
12202 (rs6000_emit_allocate_stack): Update.
12203 (rs6000_emit_prologue): Update.
12204 (rs6000_emit_epilogue): Update.
12205 (rs6000_output_function_epilogue): Update.
12206 (output_profile_hook): Update.
12207 (rs6000_elf_declare_function_name): Update.
12208 * config/rs6000/rs6000.h (rs6000_args): Update.
12209 * config/rs6000/rs6000.md: Update.
12210 * config/mcore/mcore.c (mcore_expand_prolog): Update.
12211 * config/arc/arc.c (arc_output_function_epilogue): Update.
12212 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
12213 * config/darwin.c (machopic_function_base_name): Update.
12214 * config/score/score3.c (score3_compute_frame_size): Update.
12215 (rpush): Update.
12216 (rpop): Update.
12217 (score3_epilogue): Update.
12218 * config/score/score7.c (score7_compute_frame_size): Update.
12219 (score7_prologue): Update.
12220 (score7_epilogue): Update.
12221 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
12222 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
12223 * config/arm/arm.c (use_return_insn): Update.
12224 (require_pic_register): Update.
12225 (arm_load_pic_register): Update.
12226 (arm_compute_save_reg0_reg12_mask): Update.
12227 (arm_compute_save_reg_mask): Update.
12228 (thumb1_compute_save_reg_mask): Update.
12229 (output_return_instruction): Update.
12230 (arm_output_function_prologue): Update.
12231 (arm_output_epilogue): Update.
12232 (arm_get_frame_offsets): Update.
12233 (arm_expand_prologue): Update.
12234 (thumb_pushpop): Update.
12235 (thumb_exit): Update.
12236 (thumb1_expand_prologue): Update.
12237 (thumb1_expand_epilogue): Update.
12238 (arm_unwind_emit): Update.
12239 (arm_output_fn_unwind): Update.
12240 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
12241 * config/arm/arm.md: Update.
12242 * config/pa/pa.md: Update.
12243 * config/pa/pa.c (legitimize_pic_address): Update.
12244 (compute_frame_size): Update.
12245 (hppa_expand_prologue): Update.
12246 (hppa_expand_epilogue): Update.
12247 (borx_reg_operand): Update.
12248 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
12249 (HARD_REGNO_RENAME_OK): Update.
12250 * config/mips/mips.c (mips_global_pointer): Update.
12251 (mips_save_reg_p): Update.
12252 (mips_compute_frame_info): Update.
12253 (mips_frame_pointer_required): Update.
12254 (mips_expand_prologue): Update.
12255 (mips_expand_epilogue): Update.
12256 (mips_can_use_return_insn): Update.
12257 (mips_reorg_process_insns): Update.
12258 * config/v850/v850.c (compute_register_save_size): Update.
12259 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
12260 * config/mmix/mmix.c (along): Update.
12261 (mmix_expand_epilogue): Update.
12262 * config/bfin/bfin.c (legitimize_pic_address): Update.
12263 (must_save_p): Update.
12264 (stack_frame_needed_p): Update.
12265 (add_to_reg): Update.
12266 (bfin_expand_prologue): Update.
12267 * stmt.c (expand_asm_operands): Update.
12268 * reload1.c (reload): Update.
12269 (init_elim_table): Update.
12270
12271 2008-04-25 Bob Wilson <bob.wilson@acm.org>
12272
12273 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
12274
12275 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
12276
12277 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
12278 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
12279 (mov<mode>): Removed.
12280 (*movv4sf_internal): Likewise.
12281 (*movv2df_internal): Likewise.
12282
12283 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
12284
12285 * config.gcc (crx-*-elf): Remove deprecation.
12286
12287 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
12288
12289 * config/i386/cygming-crtend.c (register_frame_ctor): Register
12290 __gcc_deregister_frame with atexit.
12291 (deregister_frame_dtor): Remove.
12292
12293 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
12294 Nathan Sidwell <nathan@codesourcery.com>
12295
12296 * config/rs6000/rs6000.opt (mspe): Remove Var property.
12297 (misel): Likewise.
12298 * config/rs6000/rs6000.h (rs6000_spe): Declare.
12299 (rs6000_isel): Likewise.
12300 * config/rs6000/rs6000.c (rs6000_spe): New variable.
12301 (rs6000_isel): New variable.
12302 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
12303
12304 2008-04-24 Jakub Jelinek <jakub@redhat.com>
12305
12306 PR c++/35758
12307 * c-common.c (handle_vector_size_attribute): Call
12308 lang_hooks.types.reconstruct_complex_type instead of
12309 reconstruct_complex_type.
12310 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
12311 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
12312 * langhooks.h (struct lang_hooks_for_types): Add
12313 reconstruct_complex_type hook.
12314 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
12315 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12316
12317 2008-04-24 Richard Guenther <rguenther@suse.de>
12318
12319 * c-common.h (check_builtin_function_arguments): Declare.
12320 * c-common.c (validate_nargs): New function.
12321 (check_builtin_function_arguments): Likewise.
12322 * c-typeck.c (build_function_call): Call
12323 check_builtin_function_arguments.
12324 * builtins.c (fold_builtin_classify): Remove error reporting code.
12325 (fold_builtin_unordered_cmp): Likewise.
12326 (fold_builtin_1): Likewise.
12327 (fold_builtin_n): Likewise.
12328
12329 2008-04-24 Jakub Jelinek <jakub@redhat.com>
12330
12331 PR tree-optimization/36008
12332 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
12333 the original op1, rather than delta by step.
12334
12335 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
12336 Sebastian Pop <sebastian.pop@amd.com>
12337
12338 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
12339 eliminate_local_variables_stmt, eliminate_local_variables,
12340 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
12341 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
12342 of code delimited by two edges in the CFG.
12343 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
12344 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
12345 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
12346 the case of parallelisation of reductions.
12347 (expr_invariant_in_region_p): New.
12348
12349 * tree-flow.h (gather_blocks_in_sese_region): Declared.
12350 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
12351
12352 2008-04-24 Ira Rosen <irar@il.ibm.com>
12353 Richard Guenther <rguenther@suse.de>
12354
12355 PR tree-optimization/36034
12356 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
12357 incapable of dealing with loads with gaps.
12358
12359 2008-04-24 Rafael Espindola <espindola@google.com>
12360
12361 * tree-flow.h (vrp_evaluate_conditional): Change signature.
12362 * tree-ssa-propagate.c (fold_predicate_in): Update call to
12363 vrp_evaluate_conditional.
12364 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
12365 (vrp_evaluate_conditional): Split the cond argument.
12366 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
12367 (simplify_stmt_for_jump_threading): Update call to
12368 vrp_evaluate_conditional.
12369
12370 2008-04-24 Ira Rosen <irar@il.ibm.com>
12371
12372 PR tree-optimization/35982
12373 * tree-vect-analyze.c (vect_check_interleaving): Check that the
12374 interleaved data-refs are of the same type.
12375
12376 2008-04-24 Danny Smith <dannysmith@users.net>
12377
12378 * c-format.c (check_format_info_main): Use strncmp rather than a
12379 magic prefix to handle multichar length specs.
12380 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
12381 Don't prefix "I64" and "I32" with '\0'.
12382
12383 2008-04-24 Jakub Jelinek <jakub@redhat.com>
12384
12385 PR target/36015
12386 * config/i386/i386.c (init_cumulative_args): Don't pass anything
12387 in registers for -m32 only if stdarg_p (fntype).
12388
12389 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
12390
12391 PR rtl-optimization/36006
12392 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
12393 temp to op0 in order to avoid invalid rtx sharing.
12394
12395 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
12396
12397 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
12398 check TREE_INVARIANT.
12399 * tree-gimple.c (is_gimple_address): New.
12400 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
12401 * tree-gimple.h (is_gimple_address): New.
12402 * tree.h (decl_address_invariant_p): New.
12403 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
12404 (build_string): Likewise.
12405 (decl_address_invariant_p): New, from is_gimple_invariant_address.
12406 (tree_invariant_p_1): Likewise.
12407 (save_expr): Use it.
12408 (tree_invariant_p): New.
12409 (skip_simple_arithmetic): Use it.
12410 (stabilize_reference_1): Use it.
12411 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
12412 simplify.
12413 (build1_stat): Drop code to compute TREE_INVARIANT.
12414 (build2_stat): Drop code to compute TREE_INVARIANT.
12415 (build3_stat): Drop code to compute TREE_INVARIANT.
12416 (build4_stat): Drop code to compute TREE_INVARIANT.
12417 (build5_stat): Drop code to compute TREE_INVARIANT.
12418 (build7_stat): Drop code to compute TREE_INVARIANT.
12419 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
12420 * tree.h (struct tree_base): Remove invariant_flag.
12421 (TREE_INVARIANT): Remove.
12422 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
12423 (fold_builtin_expect): Check TREE_CONSTANT.
12424 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
12425 * c-tree.h (c_expr_to_decl): Drop third parameter.
12426 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
12427 (build_c_cast): Don't set TREE_INVARIANT.
12428 (pop_init_level): Don't set TREE_INVARIANT.
12429 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
12430 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
12431 TREE_CONSTANT.
12432 (gimplify_init_constructor): Don't set TREE_INVARIANT.
12433 (gimplify_addr_expr): Adjust comment.
12434 * tree-mudflap.c (mf_build_string):
12435 * print-tree.c (print_node): Don't print TREE_INVARIANT.
12436 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
12437 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
12438 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
12439 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
12440 * langhooks.h (struct lang_hooks): Drop third parameter from
12441 expr_to_decl.
12442
12443 2008-04-23 Richard Guenther <rguenther@suse.de>
12444
12445 PR tree-optimization/27799
12446 PR tree-optimization/32921
12447 PR tree-optimization/32624
12448 * tree-ssa-structalias.c (merge_smts_into): Only merge the
12449 SMTs aliases and the tag itself into the solution.
12450 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
12451 merge the points-to solution back into the SMT aliases.
12452 (may_alias_p): Use alias_set_subset_of instead of
12453 aliases_conflict_p. A pointer which points to
12454 memory with alias set zero may access any variable.
12455
12456 2008-04-23 Richard Guenther <rguenther@suse.de>
12457
12458 * alias.c (alias_set_subset_of): Correctly handle asking
12459 if zero is a subset of an alias set with zero child.
12460 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
12461 (compute_flow_insensitive_aliasing): Correctly walk all
12462 pointers. Do not unnecessarily union sets.
12463
12464 2008-04-23 Richard Guenther <rguenther@suse.de>
12465
12466 PR middle-end/36021
12467 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
12468
12469 2008-04-22 Tomas Bily <tbily@suse.cz>
12470
12471 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
12472 unreachable case.
12473 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
12474 NON_LVALUE_EXPR.
12475 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12476 * tree-ssa-structalias.c (get_constraint_for): Likewise.
12477 * tree-inline.c (estimate_num_insns_1): Likewise.
12478 * varasm.c (const_hash_1, compare_constant, copy_constant)
12479 (compute_reloc_for_constant, output_addressed_constants): Likewise.
12480 * emit-rtl.c (component_ref_for_mem_expr)
12481 (set_mem_attributes_minus_bitpos): Likewise.
12482 * expr.c (highest_pow2_factor, expand_expr_real_1, )
12483 (is_aligning_offset): Likewise.
12484 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
12485 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
12486 * dojump.c (do_jump): Likewise.
12487 * builtins.c (get_pointer_alignment, get_memory_rtx)
12488 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
12489 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
12490
12491 2008-04-23 Jakub Jelinek <jakub@redhat.com>
12492
12493 PR rtl-optimization/36017
12494 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
12495 expanding the library call.
12496
12497 2008-04-22 Ian Lance Taylor <iant@google.com>
12498
12499 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
12500 than size_in_bytes.
12501
12502 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
12503
12504 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
12505 of LR/CTR moves for Power6.
12506
12507 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
12508
12509 PR middle-end/36003
12510 * passes.c (init_optimization_passes): Remove
12511 pass_fast_rtl_byte_dce.
12512
12513 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
12514
12515 PR target/29096
12516 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
12517 builtin functions to generate faster code.
12518 (_mm_cvtpu16_ps): Ditto.
12519 (_mm_cvtpi32x2_ps): Ditto.
12520
12521 2008-04-22 Nick Clifton <nickc@redhat.com>
12522
12523 * common.opt (ftree-loop-distribution): Add Optimization
12524 attribute.
12525
12526 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
12527 (frv_expand_builtin_va_start): Likewise.
12528
12529 * config/arm/arm.c (thumb_find_work_register): Fix location of
12530 argument register count.
12531
12532 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12533
12534 Support scheduling for ColdFire V1 and V3 microarchitecture.
12535 Improve scheduling of multiplication instructions.
12536
12537 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
12538 (mac): New instruction attribute.
12539 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
12540 (m68k_sched_mac): New variable.
12541 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
12542 Handle cfv1 and cfv3.
12543 (max_insn_size): New static variable.
12544 (struct _sched_ib): New type.
12545 (sched_ib): New static variable.
12546 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
12547 to fields of 'struct _sched_ib sched_ib'. Update all uses.
12548 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
12549 Update.
12550 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
12551 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
12552 new variables. Update.
12553 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
12554 Add modeling of cfv3 instruction buffer. Update.
12555 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
12556 * config/m68k/m68k.h (TUNE_CFV3): New macro.
12557 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
12558 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
12559 a particular reservation applies to.
12560 (type2): Reorganize attribute values. Rename alu to alu_reg,
12561 alu_l to alu, move_l to omove. Join move to alu. Split mul
12562 to mul_l and mul_w.
12563 (cf_ib_*): Simplify description of instruction buffer.
12564 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
12565 (cf_mem): Split into cf_mem1 and cf_mem2.
12566 (cf_v2_move_??): Rename to cfv12_alu_??.
12567 (cf_v2_move_l_??): Rename to cfv12_omove_??.
12568 (cf_v2_mul_??): Remove reservations.
12569 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
12570 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
12571 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
12572 appropriate place.
12573 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
12574 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
12575 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
12576 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
12577 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
12578 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
12579 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
12580 expansions of the above reservations for instructions of sizes
12581 1, 2 and 3 words.
12582
12583 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12584
12585 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
12586
12587 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
12588
12589 * coverage.c: Include tree-pass.h.
12590 (coverage_counter_alloc): Print da_file_name to the dump file.
12591
12592 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
12593
12594 * sbitmap.c (sbitmap_range_empty_p): New function.
12595 * sbitmap.h (sbitmap_range_empty_p): New function.
12596 * bitmap.h: Now includes obstack.h.
12597
12598 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
12599 Kenneth Zadeck <zadeck@naturalbridge.com>
12600
12601 * dbgcnt.def (ra_byte_scan): Added.
12602 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
12603 when the last hit happens for a counter.
12604 * timevar.def (TV_DF_BYTE_LR): New variable.
12605 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
12606 * passes.c (pass_fast_rtl_byte_dce): New pass.
12607 * fwprop.c (update_df): Added mode to call df_ref_create.
12608 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12609 DF_REF_EXTRACT_OFFSET.
12610 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
12611 DF_BYTE_LR_OUT, df_byte_lr): New macro.
12612 (df_mm): New enum.
12613 (df_ref_extract): Added mode field.
12614 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
12615 DF_REF_EXTRACT_OFFSET.
12616 (DF_REF_EXTRACT_MODE): New macro.
12617 (df_byte_lr_bb_info): New structure.
12618 (df_print_byte_regset, df_compute_accessed_bytes,
12619 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
12620 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
12621 df_byte_lr_simulate_uses,
12622 df_byte_lr_simulate_artificial_refs_at_top,
12623 df_byte_lr_simulate_artificial_refs_at_end,
12624 df_compute_accessed_bytes): New function.
12625 (df_ref_create): Add parameter.
12626 (df_byte_lr_get_bb_info): New inline function.
12627 * df-scan.c (df_ref_record, df_uses_record,
12628 df_ref_create_structure): Added mode parameter.
12629 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
12630 df_defs_record, df_uses_record, df_get_conditional_uses,
12631 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12632 df_entry_block_defs_collect, df_exit_block_uses_collect):
12633 Added mode parameter to calls to df_ref_record, df_uses_record,
12634 df_ref_create_structure.
12635 (df_ref_equal_p, df_ref_compare): Added test for modes.
12636 (df_ref_create_structure): Added code to set mode. Renamed
12637 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12638 DF_REF_EXTRACT_OFFSET.
12639 * df-core.c (df_print_byte_regset): New function.
12640 * df-byte-scan.c: New file.
12641 * df-problems.c (df_rd_transfer_function): Removed unnecessary
12642 calls to BITMAP_FREE.
12643 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
12644 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
12645 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
12646 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
12647 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
12648 df_byte_lr_local_compute, df_byte_lr_init,
12649 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12650 df_byte_lr_transfer_function, df_byte_lr_free,
12651 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
12652 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
12653 df_byte_lr_simulate_uses,
12654 df_byte_lr_simulate_artificial_refs_at_top,
12655 df_byte_lr_simulate_artificial_refs_at_end): New function.
12656 * dce.c (byte_dce_process_block): New function.
12657 (dce_process_block): au is now passed in rather than computed
12658 locally. Changed loops that look at artificial defs to not look
12659 for conditional or partial ones, because there never are any.
12660 (fast_dce): Now is able to drive byte_dce_process_block or
12661 dce_process_block depending on the kind of dce being done.
12662 (rest_of_handle_fast_dce): Add parameter to fast_dce.
12663 (rest_of_handle_fast_byte_dce): New function.
12664 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
12665 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
12666
12667 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
12668
12669 PR fortran/35019
12670 * gcc.h: Added fortran options that take arguments to
12671 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
12672 macros.
12673
12674 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
12675
12676 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
12677 scalarization if on the LHS and not a full access.
12678
12679 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12680
12681 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
12682
12683 2008-04-18 Rafael Espindola <espindola@google.com>
12684
12685 * tree-vrp.c (find_case_label_index): Fix the binary search.
12686 (find_case_label_range): New.
12687 (vrp_visit_switch_stmt): Use find_case_label_range.
12688 (simplify_switch_using_ranges): Use find_case_label_range.
12689
12690 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
12691
12692 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
12693 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
12694
12695 2008-04-18 Tom Tromey <tromey@redhat.com>
12696
12697 PR libcpp/15500:
12698 * doc/cpp.texi (Implementation-defined behavior): Mention
12699 -finput-charset.
12700
12701 2008-04-18 Ian Lance Taylor <iant@google.com>
12702
12703 * fold-const.c (pointer_may_wrap_p): New static function.
12704 (fold_comparison): Add another test for pointer overflow. Use
12705 pointer_may_wrap_p to disable some false positives.
12706
12707 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
12708
12709 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
12710 (fname_as_string): Match updated cpp_interpret_string prototype.
12711 (fix_string_type): Support char16_t* and char32_t*.
12712 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
12713 derivative) nodes. Register as builtin if C++0x.
12714 (c_parse_error): Support CPP_CHAR{16,32}.
12715 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
12716 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
12717 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
12718 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
12719 CTI_CHAR32_ARRAY_TYPE>: New elements.
12720 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
12721 char32_type_node, signed_char32_type_node, char16_array_type_node,
12722 char32_array_type_node): New defines.
12723 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
12724 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
12725 (lex_string): Support CPP_STRING{16,32}, match updated
12726 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
12727 (lex_charconst): Support CPP_CHAR{16,32}.
12728 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
12729 and CPP_STRING{16,32}.
12730
12731 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
12732
12733 PR bootstrap/35457
12734 * aclocal.m4: Regenerate.
12735 * configure: Regenerate.
12736
12737 2008-04-18 Jan Hubicka <jh@suse.cz>
12738
12739 * except.c (dw2_size_of_call_site_table,
12740 sjlj_size_of_call_site_table): Use vector API for call_site_record.
12741
12742 * cgraphbuild.c (build_cgraph_edges): Update.
12743 * tree-pass.h: Update comment.
12744 * final.c (leaf_function_p): Update.
12745 (leaf_renumber_regs): Update.
12746 (rest_of_clean_state): Update.
12747 * omp-low.c (expand_omp_parallel): Update.
12748 * ipa-reference.c (analyze_function): Update.
12749 * reorg.c (find_end_label): Update.
12750 (optimize_skip): Update.
12751 (fill_simple_delay_slots): Update.
12752 (fill_simple_delay_slots): Update.
12753 (make_return_insns): Update.
12754 (dbr_schedule): Update.
12755 * gimple-low.c (record_vars_into): Update.
12756 * cfgbuild.c (make_edges): Update.
12757 * function.c (assign_stack_local): Update.
12758 (assign_parm_adjust_stack_rtl): Update.
12759 (locate_and_pad_parm): Update.
12760 (allocate_struct_function): Do not initialize stack_alignment_needed
12761 and preferred_stack_boundary here.
12762 (stack_protect_prologue): Update.
12763 (stack_protect_epilogue): Update.
12764 (expand_function_start): Initialize stack_alignment_needed,
12765 preferred_stack_boundary and max_jumptable_ents.
12766 (expand_function_end): Update.
12767 (free_after_compilation): Do not NULLify epilogue_delay_list.
12768 * function.h (struct rtl_data): Add stack_protect_guard,
12769 stack_alignment_needed,
12770 preferred_stack_boundary, epilogue_delay_list.
12771 (struct function): Remove value_histograms, stack_alignment_needed,
12772 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
12773 last_label_uid,
12774 unexpanded_var_list, stack_protect_guard.
12775 (current_function_epilogue_delay_list): Remove.
12776 * ipa-type-escape.c (analyze_function): Update.
12777 * gimplify.c (pop_gimplify_context): Update comment.
12778 * calls.c (expand_call): Update.
12779 (emit_library_call_value_1): Update.
12780 * except.c (set_nothrow_function_flags): Update.
12781 * cfgexpand.c (get_decl_align_unit): Update.
12782 (create_stack_guard): Update.
12783 (estimated_stack_frame_size): Update.
12784 (expand_used_vars): Update.
12785 (tree_expand_cfg): Free histogram earliers, init expansion variables.
12786 * explow.c (allocate_dynamic_stack_space): Update.
12787 * tree-ssa-live.c (remove_unused_locals): Update.
12788 * varasm.c (mark_constant_pool): Update.
12789 * tree-inline.c (remap_decls): Update.
12790 (initialize_cfun): Update.
12791 (declare_return_variable): Update.
12792 (inline_forbidden_p): Update.
12793 (expand_call_inline): Update.
12794 (declare_inline_vars): Update.
12795 (tree_function_versioning): Update.
12796 * tree-flow.h (value_histograms): New.
12797 (VALUE_HISTOGRAMS): New macro.
12798 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
12799 last_label_uid.
12800 * tree-cfg.c (set_bb_for_stmt): Update.
12801 (replace_by_duplicate_decl): Update.
12802 (move_block_to_fn): Update.
12803 (new_label_mapper): Update.
12804 (dump_function_to_file): Update.
12805 * ipa-struct-reorg.c (build_data_structure): Update.
12806 * cfgrtl.c (print_rtl_with_bb): Update.
12807 * reload1.c (reload): Update.
12808 (reload): Update.
12809 * config/i386/i386.c (setup_incoming_varargs_64,
12810 ix86_compute_frame_layout): Update.
12811 * config/arc/arc.c (arc_output_function_epilogue): Update.
12812
12813 2008-04-18 Marius Strobl <marius@FreeBSD.org>
12814
12815 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
12816 for FreeBSD as well.
12817 * gthr-posix95.h: Likewise.
12818
12819 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
12820
12821 PR rtl-optimization/35838
12822 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
12823 out the byte offset of the first subreg.
12824
12825 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
12826
12827 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
12828 to split_ti instead of three separate calls with single member arrays.
12829 (subti3 splitter): Ditto.
12830 (adddi3 splitter): Ditto with split_di.
12831 (subdi3 splitter): Ditto.
12832 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
12833 two separate calls with single member arrays. Swap match_dup
12834 operands 1 and 2 to better fit into the array.
12835 (negdi2 splitter): Ditto with split_di.
12836 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
12837 two separate calls with single member arrays. Swap match_dup operands
12838 6 and 7 to better fit into the array.
12839
12840 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
12841
12842 * config/i386/i386.c (sse_builtin_type): New.
12843 (bdesc_sse_args): Likewise.
12844 (bdesc_sse_3arg): Removed.
12845 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12846 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
12847 IX86_BUILTIN_ROUNDPS.
12848 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
12849 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
12850 IX86_BUILTIN_ROUNDPS.
12851 (ix86_expand_sse_4_operands_builtin): Removed.
12852 (ix86_expand_sse_operands_builtin): New.
12853 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
12854 and CODE_FOR_sse4_1_roundps.
12855 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12856 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
12857
12858 2008-04-17 Alan Modra <amodra@bigpond.net.au>
12859
12860 PR target/35907
12861 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
12862 regs before frame pop when needed. If use_backchain_to_restore_sp
12863 then load backchain into a temp reg to restore vr and vrsave. Add
12864 code to restore vr after frame pop if possible.
12865
12866 2008-04-17 Richard Guenther <rguenther@suse.de>
12867
12868 * tree-vn.c (expressions_equal_p): Do not check type
12869 equality or compatibility before calling operand_equal_p.
12870 * fold-const.c (operand_equal_p): Check equivalence of
12871 integer constants before bailing out due to signedness or
12872 precision differences.
12873 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
12874 spurious differences in type qualification. Ignore types
12875 for COMPONENT_REFs at all.
12876
12877 2008-04-17 Christian Bruel <christian.bruel@st.com>
12878
12879 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
12880 msw_skip comparison.
12881
12882 2008-04-16 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR c/35739
12885 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
12886 reg type.
12887
12888 PR tree-optimization/35899
12889 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
12890 rather than TREE_OPERAND.
12891
12892 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
12893
12894 PR target/35944
12895 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
12896 temporary registers. Change operand predicate to general_operand.
12897 (remainderxf3): Ditto.
12898
12899 2008-04-16 Richard Guenther <rguenther@suse.de>
12900
12901 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
12902 * tree-affine.c (aff_combination_expand): Look through some
12903 conversions.
12904
12905 2008-04-15 Doug Kwan <dougkwan@google.com>
12906
12907 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
12908 for hex printing.
12909 * tree-pretty-print.c (dump_generic_node): Ditto.
12910 * final.c (output_addr_const): Ditto.
12911 * dwarf2out.c (output_cfi): Ditto.
12912 * c-pretty-print.c (pp_c_integer_constant): Ditto.
12913 * print-rtl.c (print_rtx): Ditto.
12914 * print-tree.c (print_node_brief, print_node): Ditto.
12915 * c-common.c (match_case_to_enum_1): Ditto.
12916 * sched-vis.c (print_value): Ditto.
12917 * config/i386/i386.c (print_operand): Cast to long unsigned int
12918 for hex printing.
12919
12920 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
12921 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
12922 MS Windows VirtualProtect function.
12923
12924 2008-04-15 Jan Hubicka <jh@suse.cz>
12925
12926 * gengtype.c (write_root): Param_is argument is OK.
12927 * expr.c (expand_expr_real_1): Update call of get_exception_*.
12928 * function.h: Include varray.h
12929 (rtl_eh): New stucture based on except.c one.
12930 (call_site_record): New forward declaration and vector type.
12931 * calls.c (emit_call_1): Do not call
12932 note_current_region_may_contain_throw.
12933 * except.c (eh_status): Remove cur_region, try_region since they are
12934 unused.
12935 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
12936 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
12937 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
12938 Remove call_site_data_used, call_site_data_size.
12939 Turn call_site_record into vector in function.h.
12940 (note_current_region_may_contain_throw): Remove.
12941 (get_exception_pointer, get_exception_filter): Do not take struct
12942 function argument; update.
12943 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
12944 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
12945 build_post_landing_pads, dw2_build_landing_pads,
12946 sjlj_assign_call_site_values, sjlj_mark_call_sites,
12947 sjlj_emit_function_enter, sjlj_emit_function_enter,
12948 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12949 sjlj_build_landing_pads, finish_eh_generation,
12950 remove_exception_handler_label, remove_eh_handler,
12951 maybe_remove_eh_handler, add_reachable_handler,
12952 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
12953 add_action_record, collect_one_action_chain, add_call_site,
12954 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
12955 sjlj_output_call_site_table, output_function_exception_table,
12956 * except.h (note_current_region_may_contain_throw): Remove
12957 (get_exception_pointer, get_exception_filter): Do not take struct
12958 function argument.
12959 * Makefile.in (GTFILES): Put varargs before struct function.
12960
12961 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
12962
12963 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
12964 punt for STRING_CST.
12965 (get_constraint_for): Deal with STRING_CST here instead.
12966
12967 2008-04-15 Richard Guenther <rguenther@suse.de>
12968
12969 * tree-ssa-propagate.c (substitute_and_fold): Substitute
12970 statements in a basic-block with a backward walk. Do not
12971 substitute into dead statements but instead remove those.
12972
12973 2008-04-15 Richard Guenther <rguenther@suse.de>
12974
12975 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
12976 to zero, thus disable creation of SFTs.
12977
12978 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
12979
12980 * tree-predcom.c (suitable_reference_p): Return false if the
12981 reference can throw.
12982
12983 2008-04-15 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR c/35751
12986 * c-decl.c (finish_decl): If extern or static var has variable
12987 size, set TREE_TYPE (decl) to error_mark_node.
12988
12989 2008-04-15 Rafael Espindola <espindola@google.com>
12990
12991 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
12992 variable arg1.
12993
12994 2008-04-15 Richard Guenther <rguenther@suse.de>
12995
12996 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12997 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
12998 (visit_reference_op_load): Do walk vuse-vdef chains on
12999 vn_reference_lookup.
13000 (visit_reference_op_store): But do not here.
13001 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
13002 vn_reference_lookup.
13003 (vn_lookup_with_vuses): But do so here.
13004
13005 2008-04-14 Ian Lance Taylor <iant@google.com>
13006
13007 * fold-const.c (fold_overflow_warning): Remove assertion.
13008
13009 2008-04-15 Ben Elliston <bje@au.ibm.com>
13010
13011 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
13012 temp1 local variables.
13013
13014 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
13015
13016 PR target/35661
13017 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
13018 ".text.unlikely" section as executable.
13019
13020 2008-04-14 James E. Wilson <wilson@tuliptree.org>
13021
13022 * config/ia64/ia64.c (rtx_needs_barrier): Handle
13023 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
13024 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
13025 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
13026 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
13027 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
13028 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
13029
13030 2008-04-14 Ian Lance Taylor <iant@google.com>
13031
13032 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
13033 * fold-const.c (fold_comparison): If appropriate, test
13034 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
13035 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
13036 reassociating a pointer type.
13037 * doc/invoke.texi (Optimize Options): Document that
13038 -fstrict-overflow applies to pointer wraparound.
13039
13040 2008-04-13 Jan Hubicka <jh@suse.cz>
13041
13042 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
13043
13044 2008-04-12 Andrew Pinski <pinskia@gmail.com>
13045
13046 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
13047 we are going to "save the world".
13048
13049 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
13050
13051 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
13052 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
13053 operand 0 constraint, not "=".
13054
13055 2008-04-11 James E. Wilson <wilson@tuliptree.org>
13056
13057 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
13058
13059 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
13060
13061 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
13062 of size of positions_needed * CHAR_BIT.
13063
13064 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
13065
13066 PR middle-end/35897
13067 * dse.c (store_info): Change positions_needed to unsigned
13068 HOST_WIDE_INT.
13069 (lowpart_bitmask): New.
13070 (record_store): Cast to unsigned HOST_WIDE_INT for
13071 positions_needed. Assert width <= size of positions_needed *
13072 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
13073 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
13074 lowpart_bitmask to set mask.
13075
13076 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
13077
13078 * config/bfin/constraints.md: New file.
13079 * config/bfin/bfin.md: Include it.
13080 (adddi3): Use satisfies_constraint functions instead of the old macros.
13081 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
13082 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
13083 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
13084 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
13085 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
13086 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
13087 EXTRA_CONSTRAINT): Delete.
13088 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
13089 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
13090 of the old macros.
13091 * config/bfin/bfin.c: Include "tm-constrs.h".
13092 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
13093 Use satisfies_constraint functions instead of the old macros.
13094 * doc/md.texi (Blackfin Constraints): Update file name reference.
13095
13096 2008-04-11 Richard Guenther <rguenther@suse.de>
13097
13098 PR tree-optimization/35869
13099 * tree-vrp.c (execute_vrp): Move switch statement update after
13100 jump threading. Schedule another cfg cleanup run.
13101
13102 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
13103
13104 PR c/35744
13105 * attribs.c (decl_attributes): Return early on errorneous node.
13106
13107 2008-04-10 Oleg Ryjkov <olegr@google.com>
13108
13109 * tree.h (struct tree_base): Added a new flag default_def_flag.
13110 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
13111
13112 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13113
13114 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
13115
13116 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13117
13118 PR target/35768
13119 * pa.md: Define mode iterator P. Define mode attribute dwc.
13120 (dcacheflush): Update pattern to use iterator P and attribute dwc.
13121 (icacheflush): Likewise.
13122 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
13123 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
13124
13125 2008-04-11 Ben Elliston <bje@au.ibm.com>
13126
13127 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
13128
13129 2008-04-10 Rafael Espindola <espindola@google.com>
13130
13131 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
13132 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
13133 (extract_range_from_expr): The same.
13134
13135 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
13136
13137 * config/mips/mips.md (GPR2): New mode iterator.
13138 (seq): Add comment.
13139 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
13140 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
13141 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
13142 Rewrite these to take two modes, the mode of comparison and the
13143 mode of the destination.
13144 * config/mips/mips.c (mips_expand_scc): Instead of having
13145 paradoxical subreg as destination, expand "narrowing" scc if mode
13146 of comparison is SI and target is requested in DI mode.
13147 (mips_emit_int_order_test): Update comment. Make mode of
13148 comparison match CMP0 rather than TARGET. When creating inverse
13149 target use mode of TARGET.
13150
13151 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
13152
13153 * gcov-dump.c (tag_summary): Only print summaries for the first
13154 GCOV_COUNTERS_SUMMABLE counters.
13155
13156 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
13157
13158 * config/i386/i386.md (absneg): New code iterator.
13159 (absnegprefix): New code attribute.
13160 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
13161 patterns using absneg code iterator.
13162 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
13163 using absneg code iterator.
13164 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
13165 *neg<mode>2 patterns using absneg code iterator.
13166 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
13167 *negextendsfdf2 patterns using absneg code iterator.
13168 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
13169 *negextendsfxf2 patterns using absneg code iterator.
13170 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
13171 *negextendsfdf2 patterns using absneg code iterator.
13172 * config/i386/sse.md (<code><mode>2): Macroize expander from
13173 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
13174
13175 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
13176
13177 * config/s390/s390.h: Remove the remains of the recent search
13178 & replace action of current_function_outgoing_args_size.
13179
13180 2008-04-10 Ira Rosen <irar@il.ibm.com>
13181
13182 PR tree-optimization/35821
13183 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
13184 NEW_STMT_LIST is not NULL.
13185
13186 2008-04-09 David Edelsohn <edelsohn@gnu.org>
13187
13188 PR libstdc++/35597
13189 * toplev.c (process_options): Remove -ffunction-sections debugging
13190 warning.
13191
13192 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
13193
13194 PR middle-end/PR28690
13195 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
13196 than gen_rtx_fmt_ee to perform more canonicalizations.
13197
13198 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13199
13200 PR driver/35665
13201 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
13202
13203 2008-04-09 Richard Guenther <rguenther@suse.de>
13204
13205 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
13206 (dump_function_to_file): Dump function arguments with types.
13207
13208 2008-04-08 Richard Guenther <rguenther@suse.de>
13209
13210 * fold-const.c (fold_widened_comparison): Do not allow
13211 sign-changes that change the result.
13212
13213 2008-04-08 Janis Johnson <janis187@us.ibm.com>
13214
13215 PR target/35839
13216 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
13217 kinds of indirect references.
13218
13219 2008-04-08 David Edelsohn <edelsohn@gnu.org>
13220
13221 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
13222 GNU Fortran language string.
13223
13224 2008-04-08 Rafael Espindola <espindola@google.com>
13225
13226 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
13227 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
13228 * tree.h (tree_call_nonnegative_warnv_p): New.
13229
13230 2008-04-08 Jan Hubicka <jh@suse.cz>
13231
13232 * function.c (free_after_compilation): Clear out regno_reg_rtx
13233 pointer.
13234
13235 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
13236
13237 Revert
13238 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
13239
13240 PR middle-end/PR28690
13241 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
13242 same precedence as REG_POINTER and MEM_POINTER operands.
13243
13244 2008-04-08 Richard Guenther <rguenther@suse.de>
13245
13246 PR middle-end/35834
13247 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
13248 for adding index to base.
13249
13250 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
13251
13252 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
13253 (MINGW_ENABLE_EXECUTE_STACK): New.
13254 (IN_LIBGCC2): For libgcc include windows.h file for
13255 function declarations.
13256
13257 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
13258
13259 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
13260 and tem2 if tem1 is not a REG or MULT.
13261
13262 2008-04-08 Jan Hubicka <jh@suse.cz>
13263
13264 * function.h (incomming_args): Break out of struct function.
13265 (function_subsections): Break out of struct function.
13266 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
13267 return_rtx and hard_reg_initial_vals from struct function.
13268 Kill inl_max_label_num.
13269 (current_function_pops_args, current_function_args_info,
13270 current_function_args_size, current_function_args_size,
13271 current_function_pretend_args_size,
13272 current_function_outgoing_args_size,
13273 current_function_internal_arg_pointer, current_function_return_rtx):
13274 Kill compatibility accestor macros.
13275 * builtins.c (expand_builtin_apply_args_1): Update.
13276 (expand_builtin_next_arg): Update.
13277 * df-scan.c (df_get_call_refs): Update.
13278 * dbxout.c (dbxout_function_end): Update.
13279 * dwarf2out.c (dwarf2out_switch_text_section): Update.
13280 (output_line_info): Update.
13281 (secname_for_decl): Update.
13282 (dwarf2out_var_location): Update.
13283 * function.c (free_after_compilation): Update.
13284 (assign_parm_find_stack_rtl): Update.
13285 (assign_parms): Update.
13286 (expand_dummy_function_end): Update.
13287 (expand_function_end): Update.
13288 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
13289 (expand_call): Update.
13290 (emit_library_call_value_1): Update.
13291 (store_one_arg): Update.
13292 * varasm.c (initialize_cold_section_name): Update.
13293 (unlikely_text_section): Update.
13294 (unlikely_text_section_p): Update.
13295 (assemble_start_function): Update.
13296 (assemble_end_function): Update.
13297 (default_section_type_flags): Update.
13298 (switch_to_section): Update.
13299 * integrate.c (set_decl_abstract_flags): Update.
13300 (get_hard_reg_initial_val): Update.
13301 (has_hard_reg_initial_val): Update.
13302 (allocate_initial_values): Update.
13303 * resource.c (init_resource_info): Update.
13304 * config/alpha/alpha.c (NUM_ARGS): Update.
13305 (direct_return): Update.
13306 (alpha_va_start): Update.
13307 (alpha_sa_size): Update.
13308 (alpha_initial_elimination_offset): Update.
13309 (alpha_expand_prologue): Update.
13310 (alpha_start_function): Update.
13311 (alpha_expand_epilogue): Update.
13312 (unicosmk_initial_elimination_offset):
13313 * config/alpha/alpha.md (call expander): Update.
13314 * config/s390/s390.c (s390_register_info): Update.
13315 (s390_register_info): Update.
13316 (s390_frame_info): Update.
13317 (s390_initial_elimination_offset): Update.
13318 (s390_build_builtin_va_list): Update.
13319 (s390_va_start): Update.
13320 * config/spu/spu.c (direct_return): Update.
13321 (spu_expand_prologue): Update.
13322 (spu_initial_elimination_offset): Update.
13323 (spu_build_builtin_va_list): Update.
13324 (spu_va_start): Update.
13325 * config/sparc/sparc.c (sparc_init_modes): Update.
13326 (sparc_compute_frame_size): Update.
13327 (function_value): Update.
13328 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
13329 * config/i386/i386.md (return expander): Update.
13330 * config/i386/i386.c (ix86_va_start): Update.
13331 (ix86_can_use_return_insn_p): Update.
13332 (ix86_compute_frame_layout): Update.
13333 (ix86_expand_epilogue): Update.
13334 * config/sh/sh.c (output_stack_adjust): Update.
13335 (calc_live_regs): Update.
13336 (sh_expand_prologue): Update.
13337 (sh_builtin_saveregs): Update.
13338 (sh_va_start): Update.
13339 (initial_elimination_offset): Update.
13340 (sh_allocate_initial_value): Update.
13341 (sh_function_ok_for_sibcall): Update.
13342 (sh_get_pr_initial_val): Update.
13343 * config/sh/sh.md (return expander): Update.
13344 * config/avr/avr.c (frame_pointer_required_p): UPdate.
13345 * config/crx/crx.c (crx_compute_frame): UPdate.
13346 (crx_initial_elimination_offset): UPdate.
13347 * config/xtensa/xtensa.c (compute_frame_size): Update
13348 (xtensa_builtin_saveregs): Update.
13349 (xtensa_va_start): Update.
13350 (order_regs_for_local_alloc): Update.
13351 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
13352 (xstormy16_expand_builtin_va_start): Update.
13353 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
13354 * config/m68hc11/m68hc11.md (return expanders): Update.
13355 * config/m68hc11/m68hc11.c (expand_prologue): Update.
13356 (expand_epilogue): Update.
13357 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
13358 (cris_simple_epilogue): Update.
13359 (cris_expand_prologue): Update.
13360 (cris_expand_epilogue): Update.
13361 * config/iq2000/iq2000.c (iq2000_va_start): Update.
13362 (compute_frame_size): Update.
13363 * config/mt/mt.c (mt_compute_frame_size): Update.
13364 * config/mn10300/mn10300.c (expand_prologue): Update.
13365 (expand_epilogue): Update.
13366 (initial_offset): Update.
13367 (mn10300_builtin_saveregs):
13368 * config/mn10300/mn10300.md (return expander): Update.
13369 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
13370 (ia64_initial_elimination_offset): Update.
13371 (ia64_initial_elimination_offset): Update.
13372 (ia64_expand_prologue): Update.
13373 * config/m68k/m68k.md (return expander): Update.
13374 * config/rs6000/rs6000.c (rs6000_va_start): Update.
13375 (rs6000_stack_info): Update.
13376 * config/mcore/mcore.c (layout_mcore_frame): Update.
13377 (mcore_expand_prolog): Update.
13378 * config/arc/arc.c (arc_compute_frame_size): Update.
13379 * config/score/score3.c (score3_compute_frame_size): Update.
13380 * config/score/score7.c (score7_compute_frame_size): Update.
13381 * config/arm/arm.c (use_return_insn): Update.
13382 (thumb_find_work_register): Update.
13383 (arm_compute_save_reg_mask): Update.
13384 (arm_output_function_prologue): Update.
13385 (arm_output_epilogue): Update.
13386 (arm_size_return_regs): Update.
13387 (arm_get_frame_offsets): Update.
13388 (arm_expand_prologue): Update.
13389 (thumb_exit): Update.
13390 (thumb_unexpanded_epilogue): Update.
13391 (thumb1_output_function_prologue): Update.
13392 * config/pa/pa.md (return expander): Update.
13393 * config/pa/pa.c (compute_frame_size): Update.
13394 (hppa_builtin_saveregs): Update.
13395 * config/mips/mips.c (mips_va_start): Update.
13396 (mips16_build_function_stub): Update.
13397 (mips_compute_frame_info): Update.
13398 (mips_restore_gp): Update.
13399 (mips_output_function_prologue): Update.
13400 (mips_expand_prologue): Update.
13401 * config/v850/v850.c (compute_frame_size): Update.
13402 (expand_prologue): * config/mmix/mmix.c (along): update.
13403 (mmix_initial_elimination_offset): update.
13404 (mmix_reorg): update.
13405 (mmix_use_simple_return): update.
13406 (mmix_expand_prologue): update.
13407 (mmix_expand_epilogue): Update.
13408 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
13409 (emit_link_insn): Update.
13410
13411 2008-04-08 Anatoly Sokolov <aesok@post.ru>
13412
13413 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
13414 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
13415 instructions.
13416 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
13417 atmega103 device.
13418
13419 2008-04-07 Jan Hubicka <jh@suse.cz>
13420
13421 * function.h (rtl): Rename to x_rtl.
13422 (crtl): New define.
13423 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
13424 frame_offset, stack_check_probe_note, arg_pointer_save_area,
13425 used_temp_slots avail_temp_slots, temp_slot_level,
13426 nonlocal_goto_handler_labels): Update accesstors.
13427 (rtl): New global variable.
13428 (struct function): Move some fileds to rtl_data.
13429 (get_arg_pointer_save_area): Update prototype.
13430 * builtins.c (expand_builtin_setjmp_receiver): Update call of
13431 get_arg_pointer_save_area.
13432 * expr.c (init_expr): Update
13433 * function.c (get_frame_size): Update
13434 (assign_stack_local): Update
13435 (expand_function_end): Update.
13436 (get_art_pointer_save_area): Update
13437 * function.h
13438 * emit-rtl.c (rtl): Declare.
13439 (regno_reg_rtx): Declare.
13440 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
13441 Update.
13442 (gen_reg_rtx): Update.
13443 * varasm.c (n_deferred_constatns): Update accestor.
13444 (init_varasm_status): Do not allocate varasm_status.
13445 (force_const_mem, get_pool_size, output_constant_pool): Update.
13446 * stmt.c (force_label_rtx): Do not use x_ prefixes.
13447 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
13448 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
13449 * sparc/sparc.h (INIT_EXPANDERS): Update.
13450 * ia64/ia64.h (INIT_EXPANDERS): Update.
13451
13452 2008-04-07 James E. Wilson <wilson@tuliptree.org>
13453
13454 * reload.c (push_secondary_reload): Add missing break to for loop.
13455
13456 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
13457
13458 PR middle-end/PR28690
13459 * rtlanal.c: Update copyright years.
13460 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
13461 as REG_POINTER and MEM_POINTER operands.
13462 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
13463 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
13464 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
13465 * gcse.c: Update copyright years.
13466 (pre_delete): Call gen_reg_rtx_and_attrs.
13467 (hoist_code): Likewise.
13468 (build_store_vectors): Likewise.
13469 (delete_store): Likewise.
13470 * loop-invariant.c (move_invariant_reg): Likewise.
13471 Update copyright years.
13472
13473 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
13474
13475 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
13476 control string instead of quoted.
13477
13478 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
13479
13480 * doc/rtl.texi: Rewrite of subreg section.
13481
13482 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
13483
13484 PR/35842
13485 * config/i386/i386.c (legitimize_pic_address): Add treating
13486 of dllimport SYM_REF's.
13487 (legitimize_dllimport_symbol): Add prototype.
13488
13489 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
13490
13491 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
13492 reference in constructor with non self-referential type.
13493
13494 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
13495
13496 Removal of Return with Depressed Stack Pointer support
13497 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
13498 (ECF_SP_DEPRESSED): Likewise.
13499 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
13500 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
13501 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13502 (expand_call): Do not test ECF_SP_DEPRESSED.
13503 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13504 * function.c (keep_stack_depressed): Delete.
13505 (handle_epilogue_set): Likewise.
13506 (update_epilogue_consts): Likewise.
13507 (emit_equiv_load): Likewise.
13508 (thread_prologue_and_epilogue_insns): Remove support for Return with
13509 Depressed Stack Pointer.
13510 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13511
13512 2008-04-06 Richard Guenther <rguenther@suse.de>
13513
13514 PR tree-optimization/35400
13515 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
13516 information from SSA_NAMEs.
13517
13518 2008-04-06 Anatoly Sokolov <aesok@post.ru>
13519
13520 * config/avr/avr.h (avr_mega_p): Remove declaration.
13521 (AVR_MEGA): Remove macro.
13522 * config/avr/avr.c (avr_mega_p): Remove variable.
13523 (avr_override_options): Remove inicializion of avr_mega_p.
13524 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
13525 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
13526 (avr_jump_mode): (Ditto.).
13527 (avr_output_progmem_section_asm_op): (Ditto.).
13528 (avr_asm_init_sections): (Ditto.).
13529 (avr_asm_init_sections): (Ditto.).
13530 (avr_rtx_costs): (Ditto.).
13531 * config/avr/avr.md: (Ditto.).
13532 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
13533 '__AVR_MEGA__'.
13534
13535 2008-04-06 Richard Guenther <rguenther@suse.de>
13536
13537 PR tree-optimization/35842
13538 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
13539 is_gimple_invariant_address.
13540
13541 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13542
13543 * gcc.c (default_compilers): Sync Fortran extensions list with
13544 that in fortran/lang-specs.h.
13545 * doc/invoke.texi: Likewise.
13546 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
13547 * dwarf2out.c (gen_compile_unit_die): Likewise.
13548
13549 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
13550
13551 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
13552
13553 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
13554
13555 PR target/12329
13556 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
13557 attribute is used for nested functions.
13558
13559 2008-04-05 Jan Hubicka <jh@suse.cz>
13560
13561 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
13562
13563 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
13564 letter argument.
13565 (dump_files): Update.
13566 (enable_rtl_dump_file): Do not accept letter argument.
13567 * tree-pass.h (dump_file_info): Remove letter argument.
13568 * toplev.c (decode_d_option): Update -da handling.
13569 * toplev.h (enable_rtl_dump_file): Update prototype.
13570 * passes.c (register_one_dump_file): Do not accept IPA argument; work
13571 it out based on pass type.
13572 (register_dump_files_1): Likewise.
13573 (init_optimization_passes): Update register_one_dump_file calls.
13574 (execute_one_pass): Sanity check that IPA passes are called at IPA
13575 level and RTL passes at RTL level.
13576 (execute_pass_list): IPA pass can not be after or subpass of
13577 GIMPLE/RTL pass.
13578 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
13579 disallov RTL subpasses of IPA subpasses.
13580
13581 2008-04-05 Ben Elliston <bje@au.ibm.com>
13582
13583 * tree-cfg.c (need_fake_edge_p): Return false for calls to
13584 builtins that return exactly once and do not throw. Cache call to
13585 call_expr_flags.
13586
13587 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
13588
13589 PR rtl-optimization/34916
13590 PR middle-end/35519
13591 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
13592 between instruction pairs.
13593
13594 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
13595
13596 * doc/invoke.texi: Document -mbitops for SH.
13597 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
13598 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
13599 * config/sh/sh.c (print_operand): Add %t operand code.
13600 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
13601 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
13602 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
13603 (extendqihi2): Likewise.
13604 (movqi_i): Likewise.
13605 (insv): Use bset, bclr and bst instructions for SH2A if possible.
13606 (extv): Use bld instruction for SH2A if possible.
13607 (extzv): Likewise.
13608 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
13609 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
13610 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
13611 (bset.b, bclr.b): Define peepholes.
13612 * config/sh/sh.opt (mbitops): New option.
13613
13614 2008-04-04 Janis Johnson <janis187@us.ibm.com>
13615
13616 PR target/35620
13617 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
13618 and view convert expression.
13619
13620 2008-04-04 Jakub Jelinek <jakub@redhat.com>
13621
13622 PR target/35364
13623 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13624
13625 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
13626
13627 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
13628
13629 * config/i386/cpuid.h (bit_AES): New.
13630 (bit_PCLMUL): Likewise.
13631
13632 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
13633 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
13634 SSE2 if AES or PCLMUL is enabled.
13635 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
13636 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13637 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
13638 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
13639 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
13640 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
13641 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13642 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
13643 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
13644 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
13645 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
13646 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
13647 __builtin_ia32_aeskeygenassist128 and
13648 __builtin_ia32_pclmulqdq128.
13649 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
13650 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
13651 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
13652
13653 * config/i386/i386.h (TARGET_AES): New.
13654 (TARGET_PCLMUL): Likewise.
13655 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
13656
13657 * config/i386/i386.md (UNSPEC_AESENC): New.
13658 (UNSPEC_AESENCLAST): Likewise.
13659 (UNSPEC_AESDEC): Likewise.
13660 (UNSPEC_AESDECLAST): Likewise.
13661 (UNSPEC_AESIMC): Likewise.
13662 (UNSPEC_AESKEYGENASSIST): Likewise.
13663 (UNSPEC_PCLMUL): Likewise.
13664
13665 * config/i386/i386.opt (maes): New.
13666 (mpclmul): Likewise.
13667
13668 * config/i386/sse.md (aesenc): New pattern.
13669 (aesenclast): Likewise.
13670 (aesdec): Likewise.
13671 (aesdeclast): Likewise.
13672 (aesimc): Likewise.
13673 (aeskeygenassist): Likewise.
13674 (pclmulqdq): Likewise.
13675
13676 * config/i386/wmmintrin.h: New.
13677
13678 * doc/extend.texi: Document AES and PCLMUL built-in function.
13679
13680 * doc/invoke.texi: Document -maes and -mpclmul.
13681
13682 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
13683
13684 * function.c (free_after_parsing): Replace with
13685 cxx_push_function_context from C++ front-end.
13686 (allocate_struct_function): Don't call langhook.
13687 * langhooks.h (struct lang_hooks_for_functions): Delete.
13688 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
13689 member "function".
13690 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
13691 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
13692 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
13693 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
13694 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
13695 remove LANG_HOOKS_FUNCTION_INITIALIZER.
13696 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
13697
13698 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
13699 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
13700
13701 2008-04-04 Jakub Jelinek <jakub@redhat.com>
13702
13703 PR c/35440
13704 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
13705 for all types.
13706
13707 2008-04-04 Richard Guenther <rguenther@suse.de>
13708
13709 PR middle-end/35823
13710 * fold-const.c (optimize_minmax_comparison): Use the correct
13711 type for the constant in the simplified comparison.
13712
13713 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
13714
13715 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
13716 Pass L2 size as "--param l2-cache-size" to the compiler.
13717 (decode_l2_cache): New function to decode L2 cache parameters using
13718 0x8000006 extended cpuid function.
13719 (detect_caches_amd): Determine parameters of L2 cache using
13720 decode_l2_caches function.
13721 (decode_caches_intel): Decode L2 cache parameters.
13722 (detect_caches_intel): Determine L2 cache parameters using
13723 decode_caches_intel and decode_l2_caches functions.
13724
13725 2008-04-03 Bob Wilson <bob.wilson@acm.org>
13726
13727 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
13728 secondary input reload for subword loads from the constant pool.
13729
13730 2008-04-03 Janis Johnson <janis187@us.ibm.com>
13731
13732 PR target/35713
13733 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
13734 constants of the appropriate size for runtime calculations.
13735
13736 PR c/35712
13737 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
13738 decimal-float literal constant zero.
13739
13740 2008-04-03 Jakub Jelinek <jakub@redhat.com>
13741
13742 PR c/35738
13743 * c-parser.c (c_parser_omp_atomic): Call
13744 default_function_array_conversion on the RHS.
13745
13746 PR middle-end/35818
13747 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
13748 call is_variable_sized if decl has incomplete type.
13749
13750 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
13751
13752 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
13753
13754 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
13755
13756 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
13757 iterators.
13758 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
13759 (sgt<u>): Merge sgt and sgtu into new expander.
13760 (sgt, sgtu): Remove expanders.
13761 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
13762 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
13763 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
13764 *sgtu_<mode>_mips16 into new pattern.
13765 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
13766 (sge<u>): Merge sge and sgeu into new expander.
13767 (sge, sgeu): Remove expanders.
13768 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
13769 new pattern.
13770 (*sge_<mode>, second *sge_<mode>): Remove patterns.
13771 (slt<u>): Merge slt and sltu into new expander.
13772 (slt, sltu): Remove expanders.
13773 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
13774 (*slt_<mode>, *sltu_<mode>): Remove patterns.
13775 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
13776 *sltu_<mode>_mips16 into new pattern.
13777 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
13778 (sle<u>): Merge sle and sleu into new expander.
13779 (sle, sleu): Remove expanders.
13780 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
13781 (*sle_<mode>, *sleu_<mode>): Remove patterns.
13782 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
13783 *sleu_<mode>_mips16 into new pattern.
13784 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
13785
13786 2008-04-03 Jan Hubicka <jh@suse.cz>
13787
13788 PR tree-optimization/35795
13789 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
13790 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13791 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13792 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13793 * score/score3.c (score3_output_mi_thunk): Likewise.
13794 * score/score7.c (score7_output_mi_thunk): Likewise.
13795 * mips/mips.c (mips_output_mi_thunk): Likewise.
13796
13797 2008-04-03 Richard Guenther <rguenther@suse.de>
13798
13799 * tree-vrp.c (extract_range_from_unary_expr): Handle all
13800 conversions. Simplify code.
13801
13802 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
13803
13804 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
13805
13806 2008-04-03 Tom Tromey <tromey@redhat.com>
13807 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13808
13809 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13810 * config/bfin/t-bfin-linux (generated_files): Add
13811 linux-sysroot-suffix.h.
13812 * doc/install.texi (Prerequisites): Require make 3.80.
13813 * doc/sourcebuild.texi (Front End Directory): Document new
13814 variable.
13815 * Makefile.in (generated_files): New variable.
13816 (ALL_HOST_OBJS): New variable.
13817 ($(ALL_HOST_OBJS)): New target.
13818
13819 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
13820
13821 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
13822 (remap_block): Call id->transform_lang_insert_block instead
13823 of langhook.
13824 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
13825 Set id.transform_lang_insert_block to NULL.
13826 (clone_body): Move to cp/optimize.c
13827 * tree-inline.h (struct copy_body_data): Change
13828 transform_lang_insert_block to function pointer.
13829 (copy_generic_body, copy_decl_no_change): Export.
13830 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
13831 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
13832 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
13833
13834 * c-tree.h (insert_block): Kill.
13835 * c-decl.c (insert_block): Kill.
13836
13837 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
13838
13839 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13840 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13841 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
13842 argument.
13843 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
13844 argument, call {push,pop}_function_context from here.
13845 * c-parser.c: Use c_{push,pop}_function_context.
13846
13847 * function.c (push_function_context_to): Move meat ...
13848 (push_function_context): ... here. Simplify.
13849 * function.c (pop_function_context_from): Move meat ...
13850 (pop_function_context): ... here. Simplify.
13851 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
13852 leave_nested).
13853 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13854 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13855 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
13856 * tree.h (push_function_context_to, pop_function_context_from): Remove.
13857
13858 2008-04-03 Ben Elliston <bje@au.ibm.com>
13859
13860 * expmed.c (extract_force_align_mem_bit_field): Remove.
13861
13862 2008-04-03 Richard Guenther <rguenther@suse.de>
13863
13864 PR middle-end/35800
13865 * expr.h (try_casesi): Adjust prototype.
13866 * expr.c (try_casesi): Take fallback label as extra parameter.
13867 Use that for gen_casesi if default_label is NULL.
13868 * stmt.c (expand_case): Pass fallback label to try_casesi,
13869 make sure to fill gaps with a fallback label if default_label
13870 is not present.
13871
13872 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
13873
13874 PR target/35801
13875 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
13876
13877 2008-04-03 Ben Elliston <bje@au.ibm.com>
13878
13879 * expmed.c (extract_split_bit_field): Remove if (0) code.
13880 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
13881 (do_ds_constraint): Likewise.
13882
13883 2008-04-02 Joseph Myers <joseph@codesourcery.com>
13884
13885 * doc/cppopts.texi (-dU): Document.
13886 * c-common.h (flag_dump_macros): Update comment.
13887 * c-opts.c (handle_OPT_d): Handle -dU.
13888 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
13889 dump_queued_macros, cb_used_define, cb_used_undef): New.
13890 (init_pp_output): Handle -dU.
13891 (cb_line_change): Call dump_queued_macros.
13892 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
13893
13894 2008-04-02 Anatoly Sokolov <aesok@post.ru>
13895
13896 * config/avr/predicates.md (io_address_operand): New predicate.
13897 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
13898 * config/avr/avr.c (avr_io_address_p): Remove function.
13899 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
13900 'avr_io_address_p' function.
13901 (out_movhi_r_mr): (Ditto.).
13902 (out_movqi_mr_r): (Ditto.).
13903 (out_movhi_mr_r): (Ditto.).
13904 (avr_address_cost): (Ditto.).
13905
13906 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
13907
13908 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
13909 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
13910 in 32bit mode when XMM registers are available to avoid store
13911 forwarding stalls.
13912 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
13913 corresponding post-reload splitters.
13914
13915 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
13916
13917 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
13918 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
13919 __builtin_ia32_roundss.
13920 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
13921 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
13922 __builtin_ia32_roundss.
13923 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
13924 IX86_BUILTIN_SHUFPD here.
13925
13926 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
13927
13928 * config/i386/i386.md (plogic): New.
13929 (plogicprefix): Likewise.
13930
13931 * config/i386/mmx.md (mmx_<code><mode>3): New.
13932 (mmx_and<mode>3): Removed.
13933 (mmx_ior<mode>3): Likewise.
13934 (mmx_xor<mode>3): Likewise.
13935
13936 * config/i386/sse.md (<code><mode>3): New.
13937 (*<code><mode>3): Likewise.
13938 (*<code><mode>3): Likewise.
13939 (<code><mode>3): Likewise.
13940 (*sse_<code><mode>3): Likewise.
13941 (*sse2_<code><mode>3): Likewise.
13942 (<code>tf3): Likewise.
13943 (*<code>tf3): Likewise.
13944 (and<mode>3): Likewise.
13945 (*and<mode>3): Likewise.
13946 (ior<mode>3): Removed.
13947 (*ior<mode>3): Likewise.
13948 (xor<mode>3): Likewise.
13949 (*xor<mode>3): Likewise.
13950 (*and<mode>3): Likewise.
13951 (*ior<mode>3): Likewise.
13952 (*xor<mode>3): Likewise.
13953 (and<mode>3): Likewise.
13954 (*sse_and<mode>3): Likewise.
13955 (*sse2_and<mode>3): Likewise.
13956 (andtf3): Likewise.
13957 (*andtf3): Likewise.
13958 (ior<mode>3): Likewise.
13959 (*sse_ior<mode>3): Likewise.
13960 (*sse2_ior<mode>3): Likewise.
13961 (iortf3): Likewise.
13962 (*iortf3): Likewise.
13963 (xor<mode>3): Likewise.
13964 (*sse_xor<mode>3): Likewise.
13965 (*sse2_xor<mode>3): Likewise.
13966 (xortf3): Likewise.
13967 (*xortf3): Likewise.
13968
13969 2008-04-02 Richard Guenther <rguenther@suse.de>
13970
13971 PR tree-optimization/14495
13972 PR tree-optimization/34793
13973 * tree-vrp.c (struct switch_update): New structure.
13974 (to_remove_edges, to_update_switch_stmts): New VECs.
13975 (simplify_switch_using_ranges): New function. Remove not taken
13976 case labels and edges.
13977 (simplify_stmt_using_ranges): Call it.
13978 (identify_jump_threads): Mark edges we have queued for removal
13979 so we don't thread them.
13980 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
13981 case label vector.
13982 * tree-cfg.c (group_case_labels): Deal with missing default label.
13983 (tree_verify_flow_info): Allow missing default label.
13984 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
13985 (emit_case_nodes): Likewise.
13986 (expand_case): Do not rely on the default label to be present.
13987 * expr.c (try_casesi): Deal with NULL default_label.
13988 (do_tablejump): Likewise.
13989
13990 2008-04-02 Richard Guenther <rguenther@suse.de>
13991
13992 PR tree-optimization/14495
13993 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
13994 SWITCH_EXPR here ...
13995 (vrp_visit_switch_stmt): ... but here (new function).
13996 (find_case_label_index): New helper function.
13997 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
13998
13999 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
14000
14001 * fwprop.c: Fix ISO-C99ism.
14002
14003 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
14004
14005 PR bootstrap/35752
14006 * Makefile.in (objdir): Set it here.
14007 * configure.ac: Not here. Find dynamic linker characteristics.
14008 * exec-tool.in: Use them.
14009 * aclocal.m4: Regenerate.
14010 * configure: Regenerate.
14011
14012 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
14013
14014 * expr.c (expand_var): Delete it.
14015 * expr.h (expand_var): Delete prototype.
14016 * function.c (expand_function_start): Use expand_decl instead.
14017 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
14018 langhook.
14019
14020 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
14021
14022 PR rtl-optimization/35542
14023 * fwprop.c (forward_propagate_and_simplify): Replace
14024 loc_reg_mentioned_in_p with reg_mentioned_p.
14025
14026 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
14027
14028 PR rtl-optimization/35281
14029 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
14030 (propagate_rtx_1): Handle PR_HANDLE_MEM.
14031 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
14032 (varying_mem_p): Move above propagate_rtx.
14033 (all_uses_available_at): Do not check MEMs.
14034
14035 2008-04-02 Rafael Espindola <espindola@google.com>
14036
14037 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
14038 (register_edge_assert_for_2): Split the cond argument.
14039 (register_edge_assert_for_1): Adjust for the change in
14040 register_edge_assert_for_2.
14041 (register_edge_assert_for): Split the cond argument.
14042 (find_switch_asserts): Adjust for the change in
14043 register_edge_assert_for.
14044
14045 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
14046
14047 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
14048 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
14049 offsets for 64-bit mingw.
14050 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
14051 abi for x86_64-pc-mingw.
14052
14053 2008-04-02 Richard Guenther <rguenther@suse.de>
14054
14055 * tree-vrp.c (extract_range_from_assert): Make sure to not
14056 produce range min/max with TREE_OVERFOW set.
14057 If merging a anti-range and a range keep the anti-range if
14058 the range covers all values of the type.
14059 (register_edge_assert_for_2): Only allow sign-changing
14060 conversions in detecting canonical range checks. Also
14061 register an assert for the unsigned name if useful.
14062
14063 PR tree-optimization/35787
14064 * tree-vrp.c (vrp_val_max): New function.
14065 (vrp_val_min): Likewise.
14066 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
14067 (vrp_val_is_min): Likewise.
14068 (supports_overflow_infinity): Use vrp_val_{min,max}.
14069 (negative_overflow_infinity): Likewise.
14070 (positive_overflow_infinity): Likewise.
14071 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
14072 (is_positive_overflow_infinity): Likewise.
14073 (is_overflow_infinity): Likewise.
14074 (avoid_overflow_infinity): Use vrp_val_{min,max} and
14075 vrp_val_is_{min,max}.
14076 (set_and_canonicalize_value_range): Canonicalize anti-ranges
14077 to ranges if possible. Avoid empty ranges.
14078
14079 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14080
14081 PR middle-end/35705
14082 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
14083 the expression is a function address.
14084
14085 2008-04-01 George Helffrich <george@gcc.gnu.org>
14086
14087 PR fortran/35154, fortran/23057
14088 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
14089 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
14090 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
14091 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
14092 in common.
14093 (dbxout_syms): Check for COMMON-based symbol and wrap in
14094 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
14095 in bracket for efficiency.
14096
14097 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
14098 using DW_TAG_common_block + member offset.
14099 (add_pubname_string): New function.
14100 (dw_expand_expr): New function to find block name and offset for
14101 COMMON var.
14102 (common_check): New function to check whether symbol in Fortran COMMON.
14103 (gen_variable_die): If COMMON, use DW_TAG_common_block.
14104
14105 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
14106
14107 PR c/35436
14108 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
14109
14110 2008-04-02 Ben Elliston <bje@au.ibm.com>
14111
14112 * config/v850/v850.md (casesi): Remove if (0) code.
14113 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14114 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14115
14116 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
14117
14118 * config/i386/i386.md (rex64suffix): New mode attribute.
14119 (floathi<mode>2): Disable expander for SSE math.
14120 (*floathi<mode>2_1): New insn insn_and_split pattern.
14121 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
14122 corresponding post-reload splitters.
14123 (*floathi<mode>2_i387): New macroized insn pattern.
14124 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
14125 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
14126 insn_and_split pattern.
14127 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
14128 New macroized instruction patterns and corresponding post-reload
14129 splitters.
14130 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
14131 and corresponding post-reload splitters.
14132 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
14133 New macroized instruction patterns.
14134 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
14135 macroized instruction patterns and corresponding post-reload splitters.
14136 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
14137 corresponding post-reload splitters.
14138 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
14139 New macroized instruction patterns.
14140 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
14141 corresponding post-reload splitters.
14142 (*floatsi<mode>2_i387): New macroized instruction patterns.
14143
14144 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
14145
14146 * config/i386/i386.md (smaxmin): New.
14147 (umaxmin): Likewise.
14148 (maxminiprefix): Likewise.
14149 (maxminfprefix): Likewise.
14150 (<code><mode>3): Likewise.
14151 (smin<mode>3): Removed.
14152 (smax<mode>3): Likewise.
14153
14154 * config/i386/mmx.md (mmx_<code>v2sf3): New.
14155 (mmx_<code>v4hi3): Likewise.
14156 (mmx_<code>v8qi3): Likewise.
14157 (mmx_smaxv2sf3): Removed.
14158 (mmx_sminv2sf3): Likewise.
14159 (mmx_umaxv8qi3): Likewise.
14160 (mmx_smaxv4hi3): Likewise.
14161 (mmx_uminv8qi3): Likewise.
14162 (mmx_sminv4hi3): Likewise.
14163
14164 * config/i386/sse.md (<addsub><mode>3): New.
14165 (*<addsub><mode>3): Likewise.
14166 (<sse>_vm<addsub><mode>3): Likewise.
14167 (<maxmin><mode>3): Likewise.
14168 (*<maxmin><mode>3_finite): Likewise.
14169 (*<maxmin><mode>3): Likewise.
14170 (<sse>_vm<maxmin><mode>3): Likewise.
14171 (sse3_h<addsub>v4sf3): Likewise.
14172 (sse3_h<addsub>v2df3): Likewise.
14173 (<maxmin>v16qi3): Likewise.
14174 (*<maxmin>v16qi3): Likewise.
14175 (<maxmin>v8hi3): Likewise.
14176 (*<maxmin>v8hi3): Likewise.
14177 (*sse4_1_<maxmin><mode>3): Likewise.
14178 (*sse4_1_<maxmin><mode>3): Likewise.
14179 (add<mode>3): Removed.
14180 (*add<mode>3): Likewise.
14181 (<sse>_vmadd<mode>3): Likewise.
14182 (sub<mode>3): Likewise.
14183 (*sub<mode>3): Likewise.
14184 (<sse>_vmsub<mode>3): Likewise.
14185 (smin<mode>3): Likewise.
14186 (*smin<mode>3_finite): Likewise.
14187 (*smin<mode>3): Likewise.
14188 (<sse>_vmsmin<mode>3): Likewise.
14189 (smax<mode>3): Likewise.
14190 (*smax<mode>3_finite): Likewise.
14191 (*smax<mode>3): Likewise.
14192 (<sse>_vmsmax<mode>3): Likewise.
14193 (sse3_haddv4sf3): Likewise.
14194 (sse3_haddv2df3): Likewise.
14195 (sse3_hsubv4sf3): Likewise.
14196 (sse3_hsubv2df3): Likewise.
14197 (umaxv16qi3): Likewise.
14198 (*umaxv16qi3): Likewise.
14199 (smaxv8hi3): Likewise.
14200 (*smaxv8hi3): Likewise.
14201 (*sse4_1_smax<mode>3): Likewise.
14202 (*sse4_1_umax<mode>3): Likewise.
14203 (uminv16qi3): Likewise.
14204 (*uminv16qi3): Likewise.
14205 (sminv8hi3): Likewise.
14206 (*sminv8hi3): Likewise.
14207 (*sse4_1_smin<mode>3): Likewise.
14208 (*sse4_1_umin<mode>3): Likewise.
14209
14210 2008-04-01 Rafael Espindola <espindola@google.com>
14211
14212 * tree-cfg.c (verify_expr): remove in_phi.
14213 (verify_stmt): Don't call walk_tree with verify_expr. Use
14214 is_gimple_min_invariant instead of is_gimple_val.
14215
14216 2008-04-01 Joseph Myers <joseph@codesourcery.com>
14217
14218 * doc/include/gpl_v3.texi: Update for manpage generation.
14219 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
14220 gpl.texi.
14221 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
14222 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
14223 gpl_v3.texi instead of gpl.texi.
14224 (gpl.pod): New.
14225
14226 2008-04-01 Jakub Jelinek <jakub@redhat.com>
14227
14228 PR pch/13675
14229 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
14230
14231 2008-04-01 Rafael Espindola <espindola@google.com>
14232
14233 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
14234 (extract_code_and_val_from_cond): Use
14235 extract_code_and_val_from_cond_with_ops.
14236
14237 2008-04-01 Jan Hubicka <jh@suse.cz>
14238
14239 * function.c (free_after_compilation): Free epilogue_delay_list.
14240 (prepare_function_start): Assert that previous compilation was freed.
14241
14242 2008-04-01 Jan Hubicka <jh@suse.cz>
14243 Jim Wilson <wilson@tuliptree.org>
14244 Andreas Tobler <andreast@gcc.gnu.org>
14245
14246 PR middle-end/35781
14247 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
14248 rtl.emit instead cfun->emit.
14249 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
14250 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
14251
14252 2008-04-01 Ben Elliston <bje@au.ibm.com>
14253
14254 * doc/c-tree.texi (Function Basics): Fix grammatical error.
14255
14256 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
14257
14258 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
14259 New options
14260 (fprofile-use): Add var flag_profile_use
14261 * coverage.c (coverage_begin_output): Do not open a gcno file for
14262 output only if -ftest-coverage is set.
14263 Do not add getpwd() to gcda file path.
14264 (build_gcov_info): Check the new flag
14265 flag_profile_datafile_relative_path.
14266 (coverage_init): Use profile_data_prefix.
14267 Read profile counter only if flag_profile_use is set.
14268 * opts.c (common_handle_option): New option fprofile-use=,
14269 fprofile-dir=, fprofile-generate=.
14270 * toplev.c (profile_data_prefix): New variable definition.
14271 * toplev.h (profile_data_prefix): New declaration.
14272 * doc/invoke.tex (Option Summary, Optimization Options):
14273 Add new options.
14274
14275 2008-03-31 James E. Wilson <wilson@tuliptree.org>
14276
14277 * varasm.c (output_constant_pool_1): In LABEL_REF check,
14278 use tmp consistently.
14279
14280 PR target/35695
14281 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
14282 * config/ia64/ia64.c (rtx_needs_barrier): Handle
14283 UNSPEC_FR_RECIP_APPROX_RES.
14284 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
14285
14286 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
14287
14288 PR c/35750
14289 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
14290
14291 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
14292
14293 PR middle-end/30186
14294 * fold-const.c (fold_indirect_ref_1): Support accessing non first
14295 element of the vector via a pointer.
14296
14297 2008-03-31 Ian Lance Taylor <iant@google.com>
14298
14299 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
14300
14301 2008-03-31 Jan Hubicka <jh@suse.cz>
14302
14303 * builtins.c (expand_builtin_setjmp_receiver): Update call of
14304 get_arg_pointer_save_area.
14305 * expr.c (init_expr): Just clear out rtl.expr.
14306 * function.c (free_after_compilation): Clear out whole RTL structure.
14307 (get_func_frame_size): Merge into ...
14308 (get_frame_size): ... this one.
14309 (assign_stack_local_1): Merge into ...
14310 (assign_stack_local): ... this one.
14311 (expand_function_end): Update call of get_arg_pointer_save_area.
14312 (get_art_pointer_save_area): Remove cfun argument.
14313 * function.h (emit_status): regno_pointer_align does not need length
14314 attribute. Move x_regno_reg_rtx to ...
14315 (regno_reg_rtx): ... new global array.
14316 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
14317 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
14318 apply_args_value, forced_labels, stack_pointer_delta):
14319 Update accestors.
14320 (struct varasm_status): Move here from varasm.c
14321 (struct rtl_data): New. Move here some fields from struct function.
14322 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
14323 frame_offset, stack_check_probe_note, arg_pointer_save_area,
14324 used_temp_slots avail_temp_slots, temp_slot_level,
14325 nonlocal_goto_handler_labels): Update accesstors.
14326 (rtl): New global variable.
14327 (struct function): Move some fileds to rtl_data.
14328 (get_arg_pointer_save_area): Update prototype.
14329 * emit-rtl.c (rtl): Declare.
14330 (regno_reg_rtx): Declare.
14331 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
14332 Update.
14333 (gen_reg_rtx): Update.
14334 (init_virtual_regs): Do not tate emit_status argument.
14335 (init_emit): Do not allocate emit.
14336 * varasm.c (varasm_statuc): Move to function.h.
14337 (n_deferred_constatns): Update accestor.
14338 (init_varasm_status): Do not allocate varasm_status.
14339 (force_const_mem, get_pool_size, output_constant_pool): Update.
14340 * stmt.c (force_label_rtx): Do not use x_ prefixes.
14341 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
14342
14343 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
14344
14345 PR rtl-optimization/35729
14346 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
14347 references.
14348
14349 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
14350
14351 PR target/32000
14352 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
14353 load/store if memory is unaligned.
14354 (*movti_rex64): Likewise.
14355
14356 * config/i386/predicates.md (misaligned_operand): New.
14357
14358 2008-03-31 Andrew Pinski <pinskia@gmail.com>
14359
14360 PR tree-opt/35431
14361 * tree-ssa-phiopt.c (conditional_replacement): Return early for
14362 complex types.
14363
14364 2008-03-31 Jan Beulich <jbeulich@novell.com>
14365
14366 * config/ia64/constraints.md: Add 'j' constraint.
14367 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
14368 (movdi_internal): Likewise.
14369
14370 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
14371
14372 PR c/35748
14373 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
14374
14375 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
14376
14377 PR target/35757
14378 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
14379 proper error message for the third argument on blendpd and
14380 blendps.
14381
14382 * config/i386/sse.md (blendbits): New.
14383 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
14384
14385 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
14386
14387 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
14388
14389 2008-03-30 Richard Guenther <rguenther@suse.de>
14390
14391 PR middle-end/31023
14392 * fold-const.c (fold_sign_changed_comparison): Do leave
14393 conversions to base-types alone.
14394
14395 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
14396
14397 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
14398 the link register if one altivec register is be saved.
14399
14400 2008-03-30 Ben Elliston <bje@au.ibm.com>
14401
14402 * final.c (final_scan_insn): Remove if (0) code.
14403
14404 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
14405
14406 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
14407
14408 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
14409
14410 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
14411 of V4SFmode to ix86_binary_operator_ok.
14412
14413 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
14414
14415 * config/i386/i386.c (override_options): Initialize
14416 ix86_veclib_handler to ix86_veclibabi_svml when
14417 -mveclibabi=svml is used.
14418 (ix86_veclibabi_svml): New function for SVML ABI style
14419 vectorization support.
14420 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
14421
14422 2008-03-28 Rafael Espindola <espindola@google.com>
14423
14424 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
14425 (tree_binary_nonnegative_warnv_p): Make it public.
14426 (tree_single_nonnegative_warnv_p): Make it public.
14427 (tree_invalid_nonnegative_warnv_p): Make it public.
14428 (tree_unary_nonzero_warnv_p): Make it public.
14429 (tree_binary_nonzero_warnv_p): Make it public
14430 (tree_single_nonzero_warnv_p): Make it public.
14431 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
14432 (extract_range_from_binary_expr): Split the expr argument.
14433 (extract_range_from_unary_expr): Split the expr argument.
14434 (extract_range_from_comparison): Split the expr argument.
14435 (extract_range_from_expr): Use the new aux functions.
14436 (vrp_evaluate_conditional_warnv): Use
14437 vrp_evaluate_conditional_warnv_with_ops.
14438 * tree.h (tree_unary_nonzero_warnv_p): Declare.
14439 (tree_binary_nonzero_warnv_p): Declare.
14440 (tree_single_nonzero_warnv_p): Declare.
14441 (tree_expr_nonzero_warnv_p): Declare.
14442 (tree_unary_nonnegative_warnv_p): Declare.
14443 (tree_binary_nonnegative_warnv_p): Declare.
14444 (tree_single_nonnegative_warnv_p): Declare.
14445 (tree_invalid_nonnegative_warnv_p): Declare.
14446
14447 2008-03-28 Richard Guenther <rguenther@suse.de>
14448
14449 PR tree-optimization/30317
14450 PR tree-optimization/30911
14451 PR tree-optimization/34793
14452 * tree-vrp.c (set_and_canonicalize_value_range): New function.
14453 (struct assert_locus_d): New member EXPR.
14454 (register_new_assert_for): Add EXPR parameter to support
14455 ASSERT_EXPR <name, expr OP limit>.
14456 (register_edge_assert_for_1): Adjust callers.
14457 (find_assert_locations): Likewise.
14458 (process_assert_insertions_for): Build condition from expression.
14459 (extract_range_from_assert): Handle ASSERT_EXPRs
14460 of the form ASSERT_EXPR <name, expr OP limit>.
14461 (register_edge_assert_for_2): New helper registering
14462 asserts for comparisons. Recognize range tests of the form
14463 (unsigned)i - CST1 OP CST2.
14464 (register_edge_assert_for_1): Use it.
14465 (register_edge_assert_for): Likewise.
14466 (needs_overflow_infinity): Integer sub-types
14467 do not need overflow infinities.
14468 (vrp_val_is_max): The extreme values of integer sub-types
14469 are those of the base type.
14470 (vrp_val_is_min): Likewise.
14471 * tree.def (ASSERT_EXPR): Document extra allowed conditional
14472 expressions.
14473
14474 2008-03-28 Nick Clifton <nickc@redhat.com>
14475
14476 PR target/31110
14477 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
14478 Return GENERAL_REGS for stack adjustment reloads.
14479
14480 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
14481
14482 PR target/31334
14483 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
14484 const_vector when all the vectors are constant.
14485
14486 2008-03-27 Bob Wilson <bob.wilson@acm.org>
14487
14488 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
14489 comparisons.
14490 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
14491 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
14492 (scc_sf): New.
14493 (s<code>_sf): Use new scc_sf attribute for opcode names.
14494
14495 2008-03-27 Tom Tromey <tromey@redhat.com>
14496
14497 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
14498 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
14499 config/spu/t-spu-elf, config/i386/t-interix,
14500 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
14501 config/i386/x-darwin, config/i386/x-mingw32,
14502 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
14503 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
14504 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
14505 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
14506 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
14507 config/rs6000/x-darwin, config/rs6000/t-rs6000,
14508 config/score/t-score-elf, config/arm/t-strongarm-pe,
14509 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
14510 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
14511 Revert automatic dependency patch.
14512
14513 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 PR target/35657
14516 * config/i386/i386.c (ix86_function_arg_boundary): Align
14517 decimal floating point to its natural boundary.
14518
14519 2008-03-27 Richard Guenther <rguenther@suse.de>
14520
14521 PR middle-end/35716
14522 * fold-const.c (fold_comparison): Restrict distinct decl
14523 comparison folding to VAR_DECLs and PARM_DECLs. Do not
14524 solely rely on operand_equal_p.
14525
14526 2008-03-27 Richard Guenther <rguenther@suse.de>
14527
14528 PR c/32511
14529 * c-common.c (handle_weak_attribute): Reject combination of
14530 weak and inline.
14531
14532 2008-03-27 Richard Guenther <rguenther@suse.de>
14533
14534 PR tree-optimization/32810
14535 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
14536 conversions from DECL_INITIAL.
14537 (fold_const_aggregate_ref): Likewise from constructor elements.
14538
14539 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
14540
14541 * tree-affine.h (aff_combination_expand): Declare.
14542 (get_inner_reference_aff): Likewise.
14543 * tree-affine.c (aff_combination_expand): Split out from
14544 tree_to_aff_combination_expand.
14545 (get_inner_reference_aff): New function.
14546 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
14547 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
14548 (struct lim_aux_data): sm_done field removed.
14549 (mem_ref_loc_p, mem_ref_locs_p): New types.
14550 (struct mem_ref): Added id, stored, accesses_in_loop,
14551 indep_loop, dep_loop, indep_ref, dep_ref fields.
14552 Removed is_stored, locs and next fields.
14553 (memory_accesses): New variable.
14554 (movement_possibility): Do not allow moving statements
14555 that store to memory.
14556 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
14557 New functions.
14558 (determine_max_movement): For statements with memory references,
14559 find the outermost loop in that the reference is independent.
14560 (move_computations_stmt): Mark the virtual operands for renaming.
14561 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
14562 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
14563 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
14564 add_vop_ref_mapping, create_vop_ref_mapping_loop,
14565 create_vop_ref_mapping, analyze_memory_references,
14566 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
14567 get_all_locs_in_loop, ref_always_accessed_p,
14568 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
14569 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
14570 store_motion_loop, store_motion): New functions.
14571 (struct vop_to_refs_elt): New type.
14572 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
14573 memref_hash, memref_eq, hoist_memory_references): Rewritten.
14574 (schedule_sm): Replaced by...
14575 (execute_sm): ... this.
14576 (determine_lsm_ref, hoist_memory_references,
14577 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
14578 find_more_ref_vops, free_mem_ref, free_mem_refs,
14579 determine_lsm_loop, determine_lsm): Removed.
14580 (tree_ssa_lim_finalize): Free data structures used by store motion.
14581 (tree_ssa_lim): Call analyze_memory_references. Use
14582 store_motion instead of determine_lsm.
14583
14584 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
14585
14586 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
14587 rename tmake_file to m68hc11/t-m68hc11.
14588 (mcore): Set inhibit_libc to true.
14589 * config.host (alpha*-dec-*vms*): Set extra_programs.
14590 (interix3*): Don't use host_xmake_file.
14591 * configure.ac: Let config.gcc override inhibit_libc.
14592 * configure: Regenerate.
14593
14594 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
14595 * config/t-openbsd-thread: Remove commented out lines.
14596
14597 * config/x-interix: Remove.
14598
14599 * config/m68hc11/t-m68hc11-gas: Rename to...
14600 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
14601
14602 * config/mcore/t-mcore: Remove T_CFLAGS.
14603 * config/mcore/t-mcore-pe: Likewise.
14604
14605 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
14606
14607 * configure.ac: Replace custom __GNU_SOURCE test with
14608 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
14609 * aclocal.m4: Regenerate.
14610 * configure: Regenerate.
14611 * config.in: Regenerate.
14612
14613 2008-03-27 Richard Guenther <rguenther@suse.de>
14614
14615 * fold-const.c (target.h): Include.
14616 (fold_comparison): Fold comparison of addresses of decls
14617 that bind locally or of constants. Consolidate address folding code.
14618 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
14619 results from fold_binary_to_constant.
14620 (compare_values_warnv): Likewise.
14621
14622 2008-03-27 Andrew Pinski <pinskia@gmail.com>
14623
14624 PR middle-end/35429
14625 * fold-const.c (fold_truthop): Check for integeral types when folding
14626 a == 0 && b == 0 and a != 0 || b != 0 .
14627
14628 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
14629
14630 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
14631
14632 2008-03-26 Andreas Schwab <schwab@suse.de>
14633
14634 * doc/invoke.texi: Fix use of @item vs. @itemx.
14635
14636 2008-03-26 Tom Tromey <tromey@redhat.com>
14637
14638 * Makefile.in (build/gensupport.o, build/print-rtl.o,
14639 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
14640 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
14641 build/gencodes.o, build/genconditions.o, build/genconfig.o,
14642 build/genconstants.o, build/genemit.o, build/genextract.o,
14643 build/genflags.o, build/genmddeps.o, build/genopinit.o,
14644 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
14645 options.h.
14646
14647 2008-03-26 Richard Guenther <rguenther@suse.de>
14648
14649 Revert
14650 2008-03-26 Richard Guenther <rguenther@suse.de>
14651
14652 * fold-const.c (target.h): Include.
14653 (fold_comparison): Fold comparison of addresses of two decls
14654 that bind locally. Consolidate address folding code.
14655
14656 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14657
14658 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
14659 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
14660 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
14661 dconstsqrt2, dconstthird, dconste and/or dconst10.
14662 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
14663 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
14664 dconstsqrt2, dconste): Delete.
14665 (init_emit_once): Likewise. Simplify initializing dconstm1.
14666 Constify variable.
14667 * real.c (get_real_const): New.
14668 * real.h (dconst3, dconst10, dconstm2, dconstthird,
14669 dconstsqrt2, dconste): Delete.
14670 (real_value_const, get_real_const): New.
14671
14672 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
14673
14674 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
14675
14676 * config/i386/i386.c (ix86_function_arg_boundary): Check
14677 BIGGEST_ALIGNMENT instead of 128.
14678 (setup_incoming_varargs_64): Likewise.
14679
14680 2008-03-26 Tom Tromey <tromey@redhat.com>
14681
14682 * Makefile.in (DEPFILES): Add missing '/'.
14683
14684 2008-03-26 Richard Guenther <rguenther@suse.de>
14685
14686 * fold-const.c (target.h): Include.
14687 (fold_comparison): Fold comparison of addresses of two decls
14688 that bind locally. Consolidate address folding code.
14689
14690 2008-03-26 Nick Clifton <nickc@redhat.com>
14691
14692 PR target/31232
14693 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
14694 not allow INT+INT as a legitimate addressing mode.
14695
14696 2008-03-26 Richard Guenther <rguenther@suse.de>
14697
14698 * tree-flow.h (widen_bitfield): Remove declaration.
14699 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
14700 (widen_bitfield): Remove function.
14701 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
14702 code.
14703
14704 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
14705
14706 PR target/31558
14707 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
14708 error_mark_node's.
14709
14710 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
14711
14712 PR rtl-optimization/35232
14713 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
14714 (forget_old_reloads_1, forget_marked_reloads): Don't clear
14715 reg_reloaded_call_part_clobbered here.
14716 (reload_regs_reach_end_p): New function.
14717 (reload_reg_rtx_for_input): New variable.
14718 (reload_reg_rtx_for_output): Likewise.
14719 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
14720 when reassigning a pseudo register. Load reloadreg from
14721 reload_reg_rtx_for_input, moving the mode and register
14722 calculation to...
14723 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
14724 instead of the original when deciding whether an input reload
14725 would be a no-op or whether an output reload can be deleted.
14726 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
14727 when setting up new_spill_reg_store. Load it from
14728 reload_reg_rtx_for_output, moving the mode and register
14729 calculation to...
14730 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
14731 instead of the original when deciding whether an output reload
14732 would be a no-op. Do the same when modifying insn notes.
14733 Use rtx_equal_p instead of == to compare the registers.
14734 (inherit_piecemeal_p): Take a mode and two register numbers
14735 as argument.
14736 (emit_reload_insns): Clear new_spill_reg_store for every hard
14737 register in the reload register. Remove spill registers
14738 from reg_reloaded_valid before considering whether to record
14739 inheritance information for them. Use reload_reg_rtx_for_output
14740 instead of reg_rtx when recording output reloads. Use
14741 reload_reg_rtx_for_input instead of reg_rtx when recording
14742 input reloads. Set or clear reg_reloaded_call_part_clobbered
14743 at the same time as setting reg_reloaded_valid.
14744 (delete_output_reload): Add a new_reload_reg parameter and use it
14745 instead of rld[j].reg_rtx.
14746 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
14747 calls accordingly.
14748
14749 2008-03-25 Tom Tromey <tromey@redhat.com>
14750
14751 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
14752 (build/genattr.o): Likewise.
14753 (build/genattrtab.o): Likewise.
14754 (build/gencodes.o): Likewise.
14755 (build/genconfig.o): Likewise.
14756 (build/genconstants.o): Likewise.
14757 (build/genemit.o): Likewise.
14758 (build/genextract.o): Likewise.
14759 (build/genflags.o): Likewise.
14760
14761 2008-03-25 Bob Wilson <bob.wilson@acm.org>
14762
14763 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
14764 instead of size_int for integer types.
14765 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
14766 to match type of MINUS_EXPR.
14767
14768 2008-03-25 Tom Tromey <tromey@redhat.com>
14769
14770 * configure: Rebuilt.
14771 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
14772 Makefile.
14773
14774 2008-03-25 Tom Tromey <tromey@redhat.com>
14775
14776 * config/x-solaris (host-solaris.o): Update.
14777 * config/x-linux (host-linux.o): Update.
14778 * config/x-hpux (host-hpux.o): Update.
14779 * config/x-darwin (host-darwin.o): Update.
14780 * config/v850/t-v850e (v850-c.o): Update.
14781 * config/v850/t-v850 (v850-c.o): Update.
14782 * config/t-vxworks (vxworks.o): Update.
14783 * config/t-sol2 (sol2-c.o, sol2.o): Update.
14784 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
14785 * config/spu/t-spu-elf (spu-c.o): Update.
14786 (spu.o): Remove.
14787 * config/sh/t-symbian (sh-c.o): Update.
14788 (symbian.o): Update.
14789 * config/sh/t-sh (sh-c.o): Update.
14790 * config/score/t-score-elf (score7.o, score3.o): Update.
14791 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
14792 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
14793 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
14794 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
14795 (rs6000.o): Remove.
14796 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
14797 * config/m32c/t-m32c (m32c-pragma.o): Update.
14798 * config/ia64/t-ia64 (ia64-c.o): Update.
14799 * config/i386/x-mingw32 (host-mingw32.o): Update.
14800 * config/i386/x-i386 (driver-i386.o): Update.
14801 * config/i386/x-darwin (host-i386-darwin.o): Update.
14802 * config/i386/x-cygwin (host-cygwin.o): Update.
14803 * config/i386/t-nwld (nwld.o): Update.
14804 * config/i386/t-netware (netware.o): Update.
14805 * config/i386/t-interix (winnt.o): Update.
14806 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
14807 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
14808 msformat-c.o): Update.
14809 * config/bfin/t-bfin-linux (generated_files): Add
14810 linux-sysroot-suffix.h.
14811 * config/arm/t-wince-pe (pe.o): Update.
14812 * config/arm/t-strongarm-pe (pe.o): Update.
14813 * config/arm/t-pe (pe.o): Update.
14814 * config/arm/t-arm (arm-c.o): Update.
14815 * doc/install.texi (Prerequisites): Require make 3.80.
14816 * Makefile.in: Remove .o targets.
14817 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
14818 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
14819 (simple_generated_h, simple_generated_c): Move earlier.
14820 (generated_files): New variable.
14821 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
14822 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
14823 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
14824 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
14825 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
14826 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
14827 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
14828 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
14829 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
14830 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
14831 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
14832 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
14833 (.c.o): Remove.
14834 (COMPILE.base, COMPILE): New variables.
14835 (%.o): New pattern rule.
14836 (ALL_HOST_OBJS): New variable.
14837 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
14838 (dummy-checksum.o, cc1-checksum.o): Remove.
14839 (DRIVER_SHLIB): New variable.
14840 (DRIVER_DEFINES): Use it.
14841 (gencondmd.c): Move out of build/.
14842 (s-conditions): Update.
14843 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
14844 (ALL_BUILD_OBJS): Likewise.
14845 (build/%.o): Use BUILDCOMPILE.
14846 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
14847 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
14848 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
14849 build/gencheck.o, build/gencodes.o, build/genconditions.o,
14850 build/genconfig.o, build/genconstants.o, build/genemit.o,
14851 build/genextract.o, build/genflags.o, build/genmddeps.o,
14852 build/genopinit.o, build/genoutput.o, build/genpeep.o,
14853 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
14854 build/gen-protos.o, build/scan.o, build/fix-header.o,
14855 build/scan-decls.o): Simplify.
14856 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
14857 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
14858 prefix.o, toplev.o): Reduce to variable setting.
14859 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
14860 ($(out_object_file), gcc-options.o): New targets.
14861 ($(ALL_HOST_OBJS)): New target. Include dependency files.
14862 * configure: Rebuilt.
14863 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
14864 * doc/sourcebuild.texi (Front End Directory): Document new variable.
14865
14866 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
14867
14868 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
14869 complain when we hit an error, return ERROR_MARK_NODE.
14870
14871 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
14872
14873 * config/sh/constraints.md (Pso, Psz): New constraints.
14874 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
14875 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
14876
14877 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
14878
14879 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
14880 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
14881
14882 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
14883
14884 * config/sh/sh.md (prefetch): Add condition for SH2A target.
14885 (prefetch_sh2a): New.
14886
14887 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
14888 Naveen.H.S <naveen.hs@kpitcummins.com>
14889
14890 * config/sh/constraints.md (I28): New constraint.
14891 * config/sh/sh.c (broken_move): Add support for movi20s.
14892 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
14893
14894 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
14895 Jayant Sonar <Jayant.sonar@kpitcummins.com>
14896 Naveen.H.S <naveen.hs@kpitcummins.com>
14897
14898 * config/sh/sh.c (SH_ATTRIBUTES): Define.
14899 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14900 (print_operand): Handle resbank in %@ operand code.
14901 (sh_encode_section_info): New.
14902 (push_regs): Add conditions for resbank.
14903 (sh_expand_epilogue): Likewise.
14904 (sh_insert_attributes): Likewise.
14905 (sh_attribute_table): Likewise.
14906 (sh_handle_resbank_handler_attribute): New.
14907 (sh2a_handle_function_vector_handler_attribute): New.
14908 (sh2a_is_function_vector_call): New.
14909 (sh2a_get_function_vector_number): New.
14910 (sh2a_function_vector_p): New.
14911 (sh_cfun_resbank_handler_p): New.
14912 * config/sh/sh.md (calli): Emit jsr/n if possible.
14913 (calli_tbr_rel): New.
14914 (calli_pcrel): Emit jsr/n if possible.
14915 (return_i): Emit rts/n if possible.
14916 (call_valuei_tbr_rel): New.
14917 (call_valuei_pcrel): Add condition for SH2A target.
14918 (call_value): Likewise.
14919 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
14920 (sh2a_get_function_vector_number): Likewise.
14921 (sh2a_is_function_vector_call): Likewise.
14922 * doc/extend.texi: Document TBR relative addressing of SH2A.
14923 (resbank): Add description for SH2A.
14924
14925 2008-03-24 Richard Guenther <rguenther@suse.de>
14926
14927 PR c/22371
14928 * gimplify.c (gimplify_modify_expr): For frontend type-correct
14929 pointer assignments change conversions according to middle-end rules.
14930 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
14931 * configure.ac: Include type checking in yes.
14932 * configure: Regenerate.
14933
14934 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14935
14936 * diagnostic.c (diagnostic_count_diagnostic): Delete.
14937 (diagnostic_report_diagnostic): Update. Handle ICEs here.
14938
14939 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
14940
14941 * gthr-vxworks.h (UNUSED): Define.
14942
14943 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
14944
14945 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
14946
14947 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
14948
14949 * doc/extend.texi (Function Attributes): Add missing comma in the
14950 example of the "alloc_size" attribute.
14951
14952 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
14953
14954 Revert:
14955 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
14956
14957 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14958 32bit host.
14959
14960 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
14961
14962 PR target/35496
14963 * stor-layout.c (update_alignment_for_field): Set minimum alignment
14964 of the underlying type of a MS bitfield layout to the natural
14965 alignment of the type.
14966
14967 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
14968
14969 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14970 to their natural alignment to avoid store forwarding stalls.
14971
14972 2008-03-22 Richard Guenther <rguenther@suse.de>
14973
14974 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
14975 For PHI nodes verify the address is invariant.
14976 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
14977 (get_symbol_constant_value): Use is_gimple_min_invariant.
14978 (maybe_fold_stmt_indirect): Likewise.
14979
14980 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
14981
14982 PR rtl-optimization/33927
14983 * Makefile.in (dse.o): Depend on $(TM_P_H).
14984 * expr.h (extract_low_bits): Declare.
14985 * expmed.c (extract_low_bits): New function.
14986 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
14987 * dse.c: Include tm_p.h.
14988 (find_shift_sequence): Remove the read_reg argument and return the
14989 read value. Emit the instructions instead of returning them.
14990 Iterate on new_mode rather than calculating it each time.
14991 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
14992 source to NEW_MODE and extract_low_bits to convert the shifted
14993 value to READ_MODE.
14994 (replace_read): Allow the load and store to have different mode
14995 classes. Use extract_low_bits when SHIFT == 0. Create the shift
14996 or extraction instructions before trying the replacement. Update
14997 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
14998
14999 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
15000
15001 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
15002 to their natural alignment to avoid store forwarding stalls.
15003
15004 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15005
15006 PR target/27946
15007 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
15008 encouraging but not allowing gprs for input;
15009 change the input constraint to !f#r.
15010 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
15011 gprs for output;
15012 change the output constraint to !f#r.
15013
15014 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
15015
15016 PR target/13958
15017 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
15018 corresponding post-reload splitters.
15019 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
15020 when x87 FP math is selected.
15021 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
15022 New function prototype.
15023 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
15024 unreachable function to ease macroization of insn patterns.
15025
15026 2008-03-21 Martin Jambor <mjambor@suse.cz>
15027
15028 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
15029 reference dumps if ddr is NULL or dependence is unknown.
15030
15031 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
15032
15033 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
15034 unsigned extension into account.
15035 (ATOMIC_COMPARE_AND_SWAP): Likewise.
15036 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
15037 Do computations on a scratch register.
15038
15039 2008-03-21 Richard Guenther <rguenther@suse.de>
15040
15041 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15042 Use is_gimple_min_invariant instead of TREE_INVARIANT.
15043 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15044 * tree-ssa-dom.c (record_equality): Likewise.
15045 * tree-inline.c (copy_body_r): Likewise.
15046 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
15047 TREE_INVARIANT.
15048
15049 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
15050
15051 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
15052 as 'delete_unused' argument.
15053
15054 2008-03-20 Richard Guenther <rguenther@suse.de>
15055
15056 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
15057 special casing of constant qualifiers.
15058 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
15059 care about them in general.
15060 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
15061 regardless of their type.
15062 (fold_stmt_r): Forcefully fold *& if we end up with that.
15063
15064 2008-03-20 Paul Brook <paul@codesourcery.com>
15065
15066 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
15067 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
15068 linker flags.
15069 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
15070 definition.
15071 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
15072 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
15073
15074 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
15075
15076 * common.opt (Wmudflap): New option.
15077 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
15078 (mx_register_decls): Likewise.
15079 (mudflap_finish_file): Likewise.
15080 * doc/invoke.texi: Document -Wno-mudflap.
15081
15082 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
15083
15084 * c-format.c (replace_format_name_to_system_name): New.
15085 (cmp_attribs): New.
15086 (convert_format_name_to_system_name): New.
15087 (decode_format_attr): Add use of convert_format_name_to_system_name.
15088 (format_types_orig): Add gnu_ prefix to names.
15089 (check_format_info_main): Special treating of \0 escaped names for
15090 supporting multi-character format specifiers as I32, I64.
15091 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
15092 (gnu_target_overrides_format_attributes): New.
15093 * c-format.h: Add structure target_ovr_attr to hold
15094 system specific formatter names.
15095 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
15096 msformat-c.o file to c_target_objs and cxx_target_objs.
15097 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
15098 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
15099 (TARGET_N_FORMAT_TYPES): New.
15100 * config/i386/msformat-c.c: New.
15101 * config/i386/t-cygming: Add build rule for msformat-c.o.
15102 * doc/extend.texi: Add new format names gnu_* and ms_* and
15103 further details.
15104 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
15105
15106 2008-03-20 Ira Rosen <irar@il.ibm.com>
15107
15108 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
15109 optimizations turned on under -O3.
15110 (ftree-vectorize): Add that the flag is turned on with -O3.
15111
15112 2008-03-20 Ben Elliston <bje@au.ibm.com>
15113
15114 * regmove.c (try_auto_increment): Fix spelling error in comment.
15115 * final.c (final_scan_insn): Likewise.
15116
15117 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
15118
15119 PR target/14552
15120 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
15121 allocator preferences for "y" and "r" class registers.
15122 ("*mov<mode>_internal"): Ditto.
15123 ("*movv2sf_internal_rex64"): Ditto.
15124 ("*movv2sf_internal"): Ditto.
15125
15126 2008-03-19 Michael Matz <matz@suse.de>
15127
15128 PR middle-end/35616
15129 * calls.c (expand_call): Check overlap of arguments with call
15130 address for sibcalls.
15131
15132 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
15133
15134 PR target/35496
15135 * stor-layout.c (update_alignment_for_field): Set minimum alignment
15136 of the underlying type of a MS bitfield layout to the natural
15137 alignment of the type.
15138
15139 2008-03-19 Jan Hubicka <jh@suse.cz>
15140
15141 PR other/35094
15142 * toplev.c (decode_d_option): Handle all CPP flags.
15143 * tree-vrp.c: Update tree_pass descriptors.
15144 * regrename.c: Update tree_pass descriptors.
15145 * fwprop.c: Update tree_pass descriptors.
15146 * doc/invoke.texi: Remove documentation of dropped -d? flags.
15147 * tree-into-ssa.c: Update tree_pass descriptors.
15148 * tree-dump.c: Update tree_pass descriptors.
15149 * tree-complex.c: Update tree_pass descriptors.
15150 * tree-dump.h: Update tree_pass descriptors.
15151 * see.c: Update tree_pass descriptors.
15152 * cgraphbuild.c: Update tree_pass descriptors.
15153 * tracer.c: Update tree_pass descriptors.
15154 * tree-loop-distribution.c: Update tree_pass descriptors.
15155 * cgraph.c: Update tree_pass descriptors.
15156 * postreload-gcse.c: Update tree_pass descriptors.
15157 * postreload.c: Update tree_pass descriptors.
15158 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
15159 * tree-tailcall.c: Update tree_pass descriptors.
15160 * tree-pass.h (tree_opt_pass): Rename to ...
15161 (opt_pass) ... this one; add "type" field and remove letter field.
15162 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
15163 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
15164 all_lowering_passes): Update declaration.
15165 * ipa-cp.c: Update tree_pass descriptors.
15166 * final.c: Update tree_pass descriptors.
15167 * omp-low.c: Update tree_pass descriptors.
15168 * tree-ssa-dse.c: Update tree_pass descriptors.
15169 * ipa-reference.c: Update tree_pass descriptors.
15170 * tree-ssa-uncprop.c: Update tree_pass descriptors.
15171 * auto-inc-dec.c: Update tree_pass descriptors.
15172 * reorg.c: Update tree_pass descriptors.
15173 * cgraphunit.c: Update tree_pass descriptors.
15174 * tree-ssa-copyrename.c: Update tree_pass descriptors.
15175 * tree-ssa-ccp.c: Update tree_pass descriptors.
15176 * df-core.c: Update tree_pass descriptors.
15177 * mode-switching.c: Update tree_pass descriptors.
15178 * tree-nomudflap.c: Update tree_pass descriptors.
15179 * modulo-sched.c: Update tree_pass descriptors.
15180 * ipa-pure-const.c: Update tree_pass descriptors.
15181 * cse.c: Update tree_pass descriptors.
15182 * web.c: Update tree_pass descriptors.
15183 * tree-stdarg.c: Update tree_pass descriptors.
15184 * tree-ssa-math-opts.c: Update tree_pass descriptors.
15185 * tree-ssa-dom.c: Update tree_pass descriptors.
15186 * tree-nrv.c: Update tree_pass descriptors.
15187 * tree-ssa-alias.c: Update tree_pass descriptors.
15188 * loop-init.c: Update tree_pass descriptors.
15189 * gimple-low.c: Update tree_pass descriptors.
15190 * ipa-inline.c: Update tree_pass descriptors.
15191 * tree-ssa-sink.c: Update tree_pass descriptors.
15192 * global.c: Update tree_pass descriptors.
15193 * ifcvt.c: Update tree_pass descriptors.
15194 * jump.c: Update tree_pass descriptors.
15195 * predict.c: Update tree_pass descriptors.
15196 * tree-ssa-loop.c: Update tree_pass descriptors.
15197 * recog.c: Update tree_pass descriptors.
15198 * dse.c: Update tree_pass descriptors.
15199 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
15200 * tree-eh.c: Update tree_pass descriptors.
15201 * regmove.c: Update tree_pass descriptors.
15202 * local-alloc.c
15203 * function.c: Update tree_pass descriptors.
15204 * tree-vectorizer.c: Update tree_pass descriptors.
15205 * gcse.c: Update tree_pass descriptors.
15206 * ipa-type-escape.c: Update tree_pass descriptors.
15207 * tree-if-conv.c: Update tree_pass descriptors.
15208 * init-regs.c: Update tree_pass descriptors.
15209 * ipa.c: Update tree_pass descriptors.
15210 * tree-ssa-phiopt.c: Update tree_pass descriptors.
15211 * rtl-factoring.c: Update tree_pass descriptors.
15212 * lower-subreg.c: Update tree_pass descriptors.
15213 * bt-load.c: Update tree_pass descriptors.
15214 * tree-dfa.c: Update tree_pass descriptors.
15215 * except.c: Update tree_pass descriptors.
15216 * emit-rtl.c: Update tree_pass descriptors.
15217 * cfgexpand.c: Update tree_pass descriptors.
15218 * tree-cfgcleanup.c: Update tree_pass descriptors.
15219 * cfgcleanup.c: Update tree_pass descriptors.
15220 * tree-ssa-pre.c: Update tree_pass descriptors.
15221 * tree-sra.c: Update tree_pass descriptors.
15222 * tree-mudflap.c: Update tree_pass descriptors.
15223 * tree-ssa-copy.c: Update tree_pass descriptors.
15224 * cfglayout.c: Update tree_pass descriptors.
15225 * tree-ssa-forwprop.c: Update tree_pass descriptors.
15226 * tree-ssa-dce.c: Update tree_pass descriptors.
15227 * tree-ssa.c: Update tree_pass descriptors.
15228 * regclass.c: Update tree_pass descriptors.
15229 * integrate.c: Update tree_pass descriptors.
15230 * tree-optimize.c: Update tree_pass descriptors.
15231 * tree-ssa-phiprop.c: Update tree_pass descriptors.
15232 * tree-object-size.c: Update tree_pass descriptors.
15233 * combine.c: Update tree_pass descriptors.
15234 * tree-outof-ssa.c: Update tree_pass descriptors.
15235 * bb-reorder.c: Update tree_pass descriptors.
15236 * stack-ptr-mod.c: Update tree_pass descriptors.
15237 * var-tracking.c: Update tree_pass descriptors.
15238 * tree-profile.c: Update tree_pass descriptors.
15239 * tree-vect-generic.c: Update tree_pass descriptors.
15240 * reg-stack.c: Update tree_pass descriptors.
15241 * sched-rgn.c: Update tree_pass descriptors.
15242 * tree-ssa-structalias.c: Update tree_pass descriptors.
15243 * tree-cfg.c: Update tree_pass descriptors.
15244 * passes.c (current_pass): Update declaration.
15245 (finish_optimization_passes): Update.
15246 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
15247 (register_one_dump_file, register_dump_files_1, next_pass_1):
15248 Update arguments.
15249 (init_optimization_passes): Update handling of new types.
15250 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
15251 * ipa-struct-reorg.c: Update tree_pass descriptors.
15252 * tree-ssa-reassoc.c: Update tree_pass descriptors.
15253 * combine-stack-adj.c: Update tree_pass descriptors.
15254 * cfgrtl.c: Update tree_pass descriptors.
15255 * dce.c: Update tree_pass descriptors.
15256 * tree-ssanames.c: Update tree_pass descriptors.
15257
15258 2008-03-19 Richard Guenther <rguenther@suse.de>
15259
15260 PR middle-end/35609
15261 * tree-ssa.c (walk_data): New structure.
15262 (warn_uninitialized_var): If not always_executed warn with "maybe"
15263 instead of "is".
15264 (execute_early_warn_uninitialized): Compute post-dominators.
15265 Initialize always_executed before processing each basic block.
15266
15267 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
15268
15269 PR target/35504
15270 * config/i386/i386.c (x86_this_parameter): Calculate correct location
15271 of "this" pointer when "regparm = N" or "fastcall" is in effect.
15272
15273 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15274
15275 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
15276
15277 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
15278
15279 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
15280 is true.
15281 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
15282 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
15283 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
15284 target after ignore has been set, and move there also the commputation
15285 of subtarget and original_target.
15286 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
15287 (LANG_HOOKS_INITIALIZER): Remove it.
15288 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
15289
15290 2008-03-18 Richard Guenther <rguenther@suse.de>
15291
15292 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
15293 found an expression with constants, note that in the VN for the lhs.
15294 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
15295 fold them to constants if possible. Run cleanup_cfg if done so.
15296 (execute_pre): Return todo.
15297 (do_pre): Likewise.
15298 (execute_fre): Likewise.
15299 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
15300 of constants.
15301 (get_prop_source_stmt): Look through pointer conversions.
15302
15303 2008-03-18 Jan Hubicka <jh@suse.cz>
15304
15305 * tree-pretty-print.c: Include predict.h.
15306 (dump_generic_node): Dump predictor.
15307 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
15308 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
15309 * gimple-low.c (lower_stmt): Likewise.
15310 * expr.c (expand_expr_real): Likewise.
15311 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
15312 them.
15313 (build_predict_expr, build_predict_expr): New.
15314 * predict.h (predictor_name, build_predict_expr): Update.
15315 * c-typeck.c (c_finish_bc_stmt): Add prediction.
15316 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
15317 * predict.def (PRED_CONTINUE): Update hitrate.
15318 * tree.def (PREDICT_EXPR): Define.
15319 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
15320 do not handle BIND_EXPR.
15321 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
15322 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
15323 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
15324 operands.
15325
15326 2008-03-18 Michael Matz <matz@suse.de>
15327
15328 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
15329
15330 2008-03-18 Richard Guenther <rguenther@suse.de>
15331
15332 * tree-gimple.h (is_gimple_invariant_address): Declare.
15333 (is_gimple_constant): Likewise.
15334 * tree-gimple.c (is_gimple_constant): New function.
15335 (is_gimple_invariant_address): Likewise.
15336 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
15337 and is_gimple_invariant_address.
15338 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
15339 previous change.
15340 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
15341 an addressable base.
15342
15343 2008-03-18 Jakub Jelinek <jakub@redhat.com>
15344
15345 PR middle-end/35611
15346 * gimplify.c (gimplify_expr): Gimplify second operand of
15347 OMP_ATOMIC_LOAD.
15348
15349 2008-03-17 Richard Guenther <rguenther@suse.de>
15350
15351 PR tree-optimization/19637
15352 * fold-const.c (fold_unary): Remove restrictions of removing
15353 intermediate pointer-conversions (P2)(P1)P0.
15354 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
15355 conversion to void pointer.
15356 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
15357
15358 2008-03-16 James E. Wilson <wilson@tuliptree.org>
15359
15360 PR debug/31510
15361 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
15362 emulated thread local variables.
15363
15364 2008-03-16 Richard Guenther <rguenther@suse.de>
15365
15366 PR middle-end/35607
15367 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15368 expand TREE_INVARIANT operations that are not gimple invariant.
15369
15370 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
15371
15372 * doc/extend.texi (Alignment): Say that the ABI controls
15373 the __alignof__ for non-strict-alignment targets rather
15374 than being a recommendation.
15375
15376 2008-03-15 Paul Brook <paul@codesourcery.com>
15377
15378 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
15379 annotations.
15380 (arm_output_fn_unwind): Mark functions that can not be unwound.
15381
15382 2008-03-15 Paul Brook <paul@codesourcery.com>
15383
15384 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
15385 extension instructions.
15386
15387 2008-03-15 Richard Guenther <rguenther@suse.de>
15388
15389 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
15390 and fold constant aggregate refs.
15391 (fold_const_aggregate_ref): Handle string constants
15392 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
15393 (evaluate_stmt): Simplify now that ccp_fold folds constant
15394 aggregate refs.
15395
15396 2008-03-15 Paul Brook <paul@codesourcery.com>
15397
15398 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
15399 (extzv): Use gen_extzv_t2.
15400 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
15401
15402 2008-03-15 Richard Guenther <rguenther@suse.de>
15403
15404 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
15405 (fold_const_aggregate_ref): Likewise.
15406 (get_value): Return NULL if we don't have any values.
15407 (ccp_finalize): Set const_val to NULL after freeing it.
15408 * tree-flow.h (get_symbol_constant_value): Declare.
15409 (fold_const_aggregate_ref): Likewise.
15410 * tree-ssa-sccvn.c (try_to_simplify): Use them.
15411
15412 2008-03-15 Richard Guenther <rguenther@suse.de>
15413
15414 PR middle-end/35593
15415 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
15416 to not produce negative array indices if not allowed. Add
15417 parameter to indicate that.
15418 (maybe_fold_offset_to_component_ref): Allow negative array
15419 indices only for the first member of a structure.
15420 (maybe_fold_offset_to_reference): Allow negative array indices.
15421 (maybe_fold_stmt_addition): Likewise.
15422
15423 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
15424 Anatoly Sokolov <aesok@post.ru>
15425
15426 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
15427 (avr_arch): Add ARCH_AVR6.
15428 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
15429 (initial_elimination_offset): Initialize and use 'avr_pc_size'
15430 instead of fixed value 2.
15431 (print_operand_address): Use gs() asm specifier instead of pm().
15432 (avr_assemble_integer): (Ditto.).
15433 (avr_output_addr_vec_elt): (Ditto.).
15434 (print_operand): Handle "!" code.
15435 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
15436 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
15437 (AVR_HAVE_EIJMP_EICALL): Define.
15438 (AVR_3_BYTE_PC): Redefine.
15439 (AVR_2_BYTE_PC): (Ditto.).
15440 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
15441 (LINK_SPEC): Add atmega2560 and atmega2561.
15442 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
15443 (crtm2561.o).
15444 * config/avr/avr.md (call_insn): Use eicall instead of icall
15445 for 3 byte PC devices.
15446 (call_value_insn): (Ditto.).
15447 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
15448 (indirect_jump): Use only for for 2 byte PC devices.
15449 (*tablejump): (Ditto.).
15450 (*indirect_jump_avr6): Add insn.
15451 (*tablejump_rjmp): Don't use for 3 byte PC devices.
15452 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
15453 instead of ijmp for 3 byte PC devices.
15454 (__tablejump2__): (Ditto.).
15455 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
15456 (MULITLIB_DIRNAMES): (Ditto.).
15457 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
15458
15459 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
15460
15461 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
15462 "sse2_umulsidi3". Use V1DI mode for operand 0.
15463 ("mmx_psadbw"): Use V1DI mode for operand 0.
15464 * config/i386/i386-modes.def (V1SI): New vector mode.
15465 * config/i386/i386.c (struct builtin_description)
15466 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
15467 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
15468 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
15469 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
15470 v1di_ftype_v8qi_v8qi type.
15471 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
15472
15473 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
15474 __builtin_ia32_pmuludq]: Fix the mode of return value.
15475
15476 2008-03-15 Richard Guenther <rguenther@suse.de>
15477
15478 PR middle-end/35595
15479 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
15480 being a PHI_NODE.
15481
15482 2008-03-14 Bob Wilson <bob.wilson@acm.org>
15483
15484 * doc/invoke.texi (Option Summary, Xtensa Options): Document
15485 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
15486 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
15487 unless TARGET_SERIALIZE_VOLATILE is enabled.
15488 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
15489 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
15490 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
15491
15492 2008-03-14 Richard Guenther <rguenther@suse.de>
15493
15494 PR tree-optimization/34172
15495 * tree-flow.h (refs_may_alias_p): Declare.
15496 (get_single_def_stmt): Likewise.
15497 (get_single_def_stmt_from_phi): Likewise.
15498 (get_single_def_stmt_with_phi): Likewise.
15499 * tree-dfa.c (refs_may_alias_p): New function.
15500 (get_single_def_stmt): Likewise.
15501 (get_single_def_stmt_from_phi): Likewise.
15502 (get_single_def_stmt_with_phi): Likewise.
15503 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
15504 (vn_reference_lookup_1): New helper function.
15505 (vn_reference_lookup): Walk the virtual use-def chain to
15506 continue searching for a match if the def does not alias the
15507 reference we are looking for.
15508
15509 2008-03-14 David Edelsohn <edelsohn@gnu.org>
15510
15511 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
15512 archive and Perzl. Update The Written Word listing.
15513
15514 2008-03-14 Richard Guenther <rguenther@suse.de>
15515
15516 PR tree-optimization/34043
15517 PR tree-optimization/33989
15518 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
15519 when doing FRE.
15520 (bitmap_find_leader): Use extra argument to verify dominance
15521 relationship inside a basic-block.
15522 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
15523 (find_leader_in_sets): Adjust.
15524 (create_component_ref_by_pieces): Take extra argument for
15525 dominance check, handle lookup failures.
15526 (find_or_generate_expression): Likewise.
15527 (create_expression_by_pieces): Likewise.
15528 (insert_into_preds_of_block): Adjust.
15529 (create_value_expr_from): If asked for, verify all operands
15530 are in the blocks AVAIL_OUT set.
15531 (make_values_for_stmt): Check for SSA_NAMEs that are life
15532 over an abnormal edge.
15533 (compute_avail): Remove such check.
15534 (do_SCCVN_insertion): New function.
15535 (eliminate): If we do not find a leader suitable for replacement
15536 insert a replacement expression from SCCVN if available.
15537 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
15538 (struct vn_ssa_aux): Add needs_insertion flag.
15539 * tree-ssa-sccvn.c (may_insert): New global flag.
15540 (copy_reference_ops_from_ref): Value-number union member access
15541 based on its size, not type and member if insertion is allowed.
15542 (visit_reference_op_load): For a weak match from union type
15543 punning lookup a view-converted value and insert a SSA_NAME
15544 for that value if that is not found.
15545 (visit_use): Make dumps shorter. Do not disallow value numbering
15546 SSA_NAMEs that are life over an abnormal edge to constants.
15547 (free_scc_vn): Release inserted SSA_NAMEs.
15548 (run_scc_vn): New flag to specify whether insertion is allowed.
15549 Process SSA_NAMEs in forward order.
15550 * tree-ssa-loop-im.c (for_each_index): Handle invariant
15551 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
15552 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
15553 pointer type to/from integral types that do not change the
15554 precision to regular conversions.
15555
15556 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
15557
15558 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15559 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15560 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
15561 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
15562 input arguments and the mode of return value. Built-in functions
15563 that operate on whole 64-bit MMX register now use V1DI mode.
15564
15565 2008-03-13 Alon Dayan <alond@il.ibm.com>
15566 Olga Golovanevsky <olga@il.ibm.com>
15567
15568 PR tree-optimization/35041
15569 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
15570 to locate the right position in a statement.
15571
15572 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
15573
15574 PR target/34000
15575 PR target/35553
15576 * config/i386/xmmintrin.h: Change all static inline functions to
15577 extern inline and add __gnu_inline__ attribute.
15578 * config/i386/bmintrin.h: Ditto.
15579 * config/i386/smmintrin.h: Ditto.
15580 * config/i386/tmmintrin.h: Ditto.
15581 * config/i386/mmintrin-common.h: Ditto.
15582 * config/i386/ammintrin.h: Ditto.
15583 * config/i386/emmintrin.h: Ditto.
15584 * config/i386/pmmintrin.h: Ditto.
15585 * config/i386/mmintrin.h: Ditto.
15586 * config/i386/mm3dnow.h: Ditto.
15587
15588 2008-03-13 Jakub Jelinek <jakub@redhat.com>
15589
15590 PR middle-end/35185
15591 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
15592 (lower_omp_2): New function.
15593 (lower_omp_1, lower_omp): Rewritten.
15594
15595 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
15596
15597 PR 35054
15598 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
15599 with the phrase "Microsoft Windows compilers".
15600 (Push/Pop Macro Pragmas): New subsection. Document
15601 #pragma push_macro and pragma pop_macro.
15602
15603 2008-03-12 Paul Brook <paul@codesourcery.com>
15604
15605 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
15606
15607 2008-03-12 Paul Brook <paul@codesourcery.com>
15608
15609 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
15610 (thumb2_alusi3_short): Exclude PLUS and MINUS.
15611 (thumb2_addsi_shortim): Rename ...
15612 (thumb2_addsi_short): ... to this. Allow register operands.
15613 (thumb2_subsi_short): New pattern.
15614 (thumb2_one_cmplsi2_short,
15615 thumb2_negsi2_short): New patterns and peepholes.
15616
15617 2008-03-12 Paul Brook <paul@codesourcery.com>
15618
15619 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
15620
15621 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
15622
15623 * config/i386/i386.md (int_cond): New code iterator.
15624 (fp_cond): Ditto.
15625 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
15626 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
15627 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
15628 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
15629 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
15630 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
15631 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
15632 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
15633
15634 2008-03-12 Paul Brook <paul@codesourcery.com>
15635
15636 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
15637 instead of {arm,thumb}_compute_save_reg_mask.
15638 (output_return_instruction): Ditto.
15639 (thumb_unexpanded_epilogue): Ditto.
15640 (thumb1_expand_prologue): Ditto.
15641 (thumb1_output_function_prologue): Ditto.
15642 (arm_set_return_address): Ditto.
15643 (thumb_set_return_address): Ditto.
15644 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
15645 regs to achieve stack alignment.
15646 (thumb1_compute_save_reg_mask): Fix compiler warning.
15647 (arm_output_epilogue): Use offsets->saved_regs_mask.
15648 Adjust stack pointer by poping call clobered registers.
15649 (arm_expand_prologue): Use offsets->saved_regs_mask.
15650 Adjust stack pointer by pushing extra registers.
15651 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
15652
15653 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
15654
15655 PR tree-opt/35422
15656 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
15657 conversion to the operands of a multiplication.
15658
15659 2008-03-12 Richard Guenther <rguenther@suse.de>
15660
15661 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
15662 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
15663 * timevar.def (TV_TREE_PHIPROP): Add.
15664 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
15665 pass description. Use TV_TREE_PHIPROP.
15666 * tree-ssa-forwprop.c: Remove phiprop code.
15667
15668 2008-03-12 Jakub Jelinek <jakub@redhat.com>
15669
15670 PR middle-end/35549
15671 * omp-low.c (maybe_lookup_decl): Constify first argument.
15672 (use_pointer_for_field): Change last argument from bool to
15673 omp_context *. Disallow shared copy-in/out in nested
15674 parallel if decl is shared in outer parallel too.
15675 (build_outer_var_ref, scan_sharing_clauses,
15676 lower_rec_input_clauses, lower_copyprivate_clauses,
15677 lower_send_clauses, lower_send_shared_vars): Adjust callers.
15678
15679 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
15680 Ira Rosen <irar@il.ibm.com>
15681
15682 * tree-vectorizer.c (free_stmt_vec_info): New function.
15683 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
15684 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
15685 * tree-vectorizer.h (free_stmt_vec_info): Declare.
15686 * tree-vect-transform.c (vectorizable_conversion): Free
15687 vec_oprnds0 if it was allocated.
15688 (vect_permute_store_chain): Remove unused VECs.
15689 (vectorizable_store): Free VECs that are allocated in the..
15690 function.
15691 (vect_transform_strided_load, vectorizable_load): Likewise.
15692 (vect_remove_stores): Simplify the code.
15693 (vect_transform_loop): Move code to vect_remove_stores().
15694 Call vect_remove_stores() and free_stmt_vec_info().
15695
15696 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15697
15698 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
15699 TARGET_HPUX. Revise comment.
15700 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
15701 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
15702 Use sr4 variant of `be' instruction when not generating PIC code.
15703 (attr_length_call): Adjust for above change.
15704
15705 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
15706
15707 * ipa-reference.c (static_execute): Remove module_statics_const and
15708 associated setting code.
15709
15710 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
15711
15712 PR target/35540
15713 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
15714 predicate for operand 1.
15715 (paritysi2_cmp): Use register_operand predicate for operand 2.
15716 Use earlyclobber modifier for operand 1. Remove support for
15717 memory operands.
15718 (paritydi2_cmp): Use register_operand predicate for operand 3.
15719 Use earlyclobber modifier for operand 1. Remove support for
15720 memory operands.
15721
15722 2008-03-11 Paul Brook <paul@codesourcery.com>
15723 Vladimir Prus <vladimir@codesourcery.com>
15724
15725 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
15726 (arm_compute_save_reg0_reg12_mask): Always
15727 check if register 11 must be saved. Always safe hard frame pointer
15728 when frame_pointer_needeed.
15729 (arm_compute_save_reg_mask): Save IP and PC
15730 only with apcs frames.
15731 (arm_output_epilogue): Adjust Thumb2 codepath to
15732 be also invoked and work for ARM non-apcs frames.
15733 (arm_expand_prologue): Don't bother saving IP
15734 for non-apcs frame, since it's not clobbered by
15735 prologue code. Implement non-apcs frame
15736 layout.
15737
15738 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
15739
15740 PR rtl-optimization/35281
15741 * expr.c (convert_move): Use a new pseudo for the intermediate
15742 from_mode->word_mode result.
15743
15744 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
15745
15746 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
15747 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
15748 * toplev.c (compile_file): Don't call it.
15749
15750 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
15751
15752 PR middle-end/35526
15753 * expr.c (store_expr): Call emit_block_move if the mode
15754 of "temp" RTX is BLKmode.
15755
15756 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
15757 Richard Guenther <rguenther@suse.de>
15758
15759 PR tree-optimization/31358
15760 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
15761 the step with a NULL_TREE.
15762 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
15763 to sizetype if type is a pointer type.
15764 (add_candidate_1): Don't convert the base and step to
15765 the generic type if the orginal type is a pointer type.
15766 (add_iv_value_candidates): Use sizetype for the step
15767 if type is a pointer type.
15768 (cand_value_at): Likewise.
15769 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
15770 for pointer types.
15771 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
15772 Don't convert the tem affine to the type.
15773 (add_elt_to_tree): Use sizetype for the step if a pointer.
15774 Use POINTER_PLUS_EXPR for pointers.
15775 (aff_combination_to_tree): Use sizetype for the step if a
15776 pointer.
15777
15778 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
15779
15780 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
15781 Remove commutativity hint.
15782
15783 2008-03-10 Jakub Jelinek <jakub@redhat.com>
15784
15785 PR c/35438
15786 PR c/35439
15787 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
15788 errorneous type. Check that v is a VAR_DECL.
15789
15790 PR middle-end/35099
15791 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
15792
15793 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 PR tree-optimization/35494
15796 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
15797 may be overriden at link and run time.
15798
15799 2008-03-10 Richard Guenther <rguenther@suse.de>
15800
15801 PR tree-optimization/34677
15802 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
15803 (poolify_tree): Likewise.
15804 (modify_expr_template): Likewise.
15805 (poolify_modify_stmt): Likewise.
15806 (insert_fake_stores): Handle all component-ref style stores
15807 in addition to INDIRECT_REF. Also handle complex types.
15808 Do not poolify the inserted load.
15809 (realify_fake_stores): Do not rebuild the tree but only
15810 make it a SSA_NAME copy.
15811 (init_pre): Remove initialzation of modify_expr_template.
15812 Do not allocate modify_expr_node_pool.
15813 (fini_pre): Do not free modify_expr_node_pool.
15814
15815 2008-03-10 Paul Brook <paul@codesourcery.com>
15816
15817 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
15818 to avoid conflicts.
15819
15820 2008-03-10 Paul Brook <paul@codesourcery.com>
15821 Mark Shinwell <shinwell@codesourcery.com>
15822
15823 * config/arm/cortex-r4.md: New.
15824 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
15825 insn attributes.
15826 * config/arm/arm.md: Include cortex-r4.md.
15827 (insn): Add smmls, sdiv and udiv values.
15828 (generic_sched): Don't use generic scheduling for Cortex-R4.
15829 (arm_issue_rate): New function.
15830 (TARGET_SCHED_ISSUE_RATE): Define.
15831
15832 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
15833
15834 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
15835
15836 2008-03-10 Richard Guenther <rguenther@suse.de>
15837
15838 * tree-ssa-pre.c (get_sccvn_value): Simplify.
15839 (compute_avail): Do not add stmt uses to AVAIL_OUT.
15840
15841 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
15842
15843 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
15844 Set default to true.
15845
15846 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15847
15848 * c.opt (Wsynth): Deprecate.
15849 * doc/invoke.texi (Option Summary, Warning Options): Document
15850 -Wno-format-contains-nul.
15851
15852 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
15853
15854 PR target/35496
15855 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
15856 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
15857
15858 2008-03-09 Ira Rosen <irar@il.ibm.com>
15859
15860 * config/rs6000/rs6000.c (builtin_description): Rename vector
15861 left shift operations.
15862 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
15863 (altivec_vsl<VI_char>): Rename to ...
15864 (ashl<mode>3): ... new name.
15865 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
15866 gen_ashlv4si3.
15867 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
15868
15869 2008-03-08 Richard Guenther <rguenther@suse.de>
15870
15871 * coverage.h (tree_coverage_counter_addr): Declare.
15872 * coverage.c (tree_coverage_counter_addr): New function.
15873 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
15874 before using again.
15875 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
15876 (tree_gen_one_value_profiler): Likewise.
15877 (tree_gen_ic_profiler): Likewise.
15878 (tree_gen_average_profiler): Likewise.
15879 (tree_gen_ior_profiler): Likewise.
15880
15881 2008-03-08 Richard Guenther <rguenther@suse.de>
15882
15883 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
15884 (vn_binary_op_insert): Likewise.
15885 (vn_unary_op_lookup): Likewise.
15886 (vn_unary_op_insert): Likewise.
15887 (vn_nary_op_lookup): Declare.
15888 (vn_nary_op_insert): Likewise.
15889 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
15890 and binary hashes, use a single obstack for unary_op_pool
15891 and binary_op_pool.
15892 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
15893 a single struct vn_nary_op_s. Store tree code length and
15894 a variable number of operands.
15895 (struct vn_reference_op_struct): Remove unused op2.
15896 (vn_reference_op_eq): Do not compare op2.
15897 (vn_reference_op_compute_hash): Do not compute hash of op2.
15898 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
15899 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
15900 with vn_nary_op_compute_hash.
15901 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
15902 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
15903 vn_nary_op_lookup.
15904 (vn_unary_op_insert, vn_binary_op_insert): Replace with
15905 vn_nary_op_insert.
15906 (visit_unary_op): Call nary functions.
15907 (visit_binary_op): Likewise.
15908 (process_scc): Adjust for struct vn_tables_s changes.
15909 (allocate_vn_table): Likewise.
15910 (free_vn_table): Likewise.
15911 * tree-vn.c (vn_add): Call nary functions.
15912 (vn_lookup): Likewise.
15913
15914 2008-03-08 Jakub Jelinek <jakub@redhat.com>
15915
15916 PR target/35498
15917 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
15918 wdst back after sync_compare_and_swapqhi_internal.
15919
15920 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
15921
15922 PR target/22152
15923 * config/i386/i386-modes.def (V1DI): New vector mode.
15924 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
15925 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
15926 (MMXMODE248): Ditto.
15927 (MMXMODE): Add V1DI mode.
15928 (mmxvecsize): Change DI mode to V1DI mode.
15929 ("mov<mode>): Use MMXMODEI8 mode iterator.
15930 ("*mov<mode>_internal_rex64"): Ditto.
15931 ("*mov<mode>_internal"): Ditto.
15932 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
15933 ("mmx_sub<mode>3"): Ditto.
15934 ("mmx_adddi3"): Remove insn pattern.
15935 ("mmx_subdi3"): Ditto.
15936 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
15937 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
15938 ("mmx_ashl<mode>3"): Ditto.
15939 ("mmx_lshrdi3"): Remove insn pattern.
15940 ("mmx_ashldi3"): Ditto.
15941 * config/i386/i386.c (classify_argument): Handle V1DImode.
15942 (function_arg_advance_32): Ditto.
15943 (function_arg_32): Ditto.
15944 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
15945 mmx_addv1di3 insn pattern.
15946 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
15947 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
15948 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
15949 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
15950 Remove definitions of built-in functions.
15951 (V1DI_type_node): New node.
15952 (v1di_ftype_v1di_int): Ditto.
15953 (v1di_ftype_v1di_v1di): Ditto.
15954 (v2si_ftype_v2si_si): Ditto.
15955 (v4hi_ftype_v4hi_di): Remove node.
15956 (v2si_ftype_v2si_di): Ditto.
15957 (ix86_init_mmx_sse_builtins): Handle V1DImode.
15958 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
15959 Redefine builtins using def_builtin_const with *_ftype_*_int node.
15960 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
15961 Add new builtins using def_builtin_const.
15962 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
15963 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
15964 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
15965 * config/i386/mmintrin.h (__v1di): New typedef.
15966 (_mm_add_si64): Cast arguments to __v1di type.
15967 (_mm_sub_si64): Ditto.
15968 (_mm_sll_pi16): Cast __count to __v4hi type.
15969 (_mm_sll_pi32): Cast __count to __v2si type.
15970 (_mm_sll_si64): Cast arguments to __v1di type.
15971 (_mm_srl_pi16): Cast __count to __v4hi type.
15972 (_mm_srl_pi32): Cast __count to __v2si type.
15973 (_mm_srl_si64): Cast arguments to __v1di type.
15974 (_mm_sra_pi16): Cast __count to __v4hi type.
15975 (_mm_sra_pi32): Cast __count to __v2si type.
15976 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
15977 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
15978 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
15979 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
15980 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
15981 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
15982 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
15983 (_mm_srai_pi32): Use __builtin_ia32_psradi.
15984 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
15985 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15986 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15987 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
15988
15989 2008-03-07 Joseph Myers <joseph@codesourcery.com>
15990
15991 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
15992
15993 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
15994
15995 PR target/35373
15996 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
15997 reg+const addressing for Altivec modes. Don't generate reg+reg
15998 addressing for TFmode or TDmode quantities.
15999
16000 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
16001
16002 * c-common.c (vector_types_convertible_p): Call langhook
16003 instead of comptypes.
16004
16005 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16006
16007 PR tree-opt/35402
16008 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
16009 integral and scalar float variables which have a
16010 NULL DECL_INITIAL.
16011
16012 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
16013
16014 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
16015 dwarf_register_span hook when emitting unwind information for
16016 register-to-memory saves.
16017 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
16018 (rs6000_frame_related): Remove call to spe_synthesize_frame.
16019
16020 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16021
16022 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
16023 for the same VAR_DECL.
16024
16025 2008-03-06 Tom Tromey <tromey@redhat.com>
16026
16027 * treelang: Delete.
16028 * doc/standards.texi (Standards): Don't mention treelang.
16029 * doc/invoke.texi (Overall Options): Don't mention treelang.
16030 * doc/install.texi (Prerequisites): Don't mention bison or
16031 treelang.
16032 (Configuration): Don't mention treelang.
16033 (Building): Likewise.
16034 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
16035
16036 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
16037
16038 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
16039 word-extractions out of a multi-word object.
16040
16041 2008-03-06 Richard Guenther <rguenther@suse.de>
16042
16043 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
16044 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
16045 result type and precision.
16046 * expr.c (get_inner_reference): Set unsignedp based on the result
16047 type of BIT_FIELD_REF.
16048 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
16049 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
16050 (try_instantiate_multiple_fields): Likewise. Use the correct type
16051 for BIT_FIELD_REF.
16052 (sra_build_assignment): Likewise.
16053 (sra_build_elt_assignment): Likewise.
16054 (sra_explode_bitfield_assignment): Likewise.
16055 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
16056 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
16057 set BIT_FIELD_REF_UNSIGNED.
16058 (vectorizable_load): Likewise.
16059
16060 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
16061
16062 * cse.c (cse_extended_basic_block): Invalidate artificial defs
16063 at bb start.
16064
16065 2008-03-06 Richard Guenther <rguenther@suse.de>
16066
16067 * alias.c (struct alias_set_entry): Move has_zero_child field
16068 to pack with alias_set.
16069
16070 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
16071
16072 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
16073 32bit host.
16074
16075 2008-03-05 Ian Lance Taylor <iant@google.com>
16076
16077 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
16078
16079 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
16080
16081 * fwprop.c (update_df): Support width and offset parameters of
16082 df_ref_create.
16083 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
16084 global_conflicts): Change DF_REF_EXTRACT to either
16085 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
16086 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16087 * df-scan.c (df_ref_record, df_defs_record,
16088 df_ref_create_structure, df_def_record_1, df_uses_record,
16089 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
16090 df_bb_refs_collect, df_entry_block_defs_collect,
16091 df_exit_block_uses_collect): Support new width and offset fields.
16092 (ref_extract_pool): New storage pool.
16093 (df_free_ref): New function.
16094 (df_reg_chain_unlink, df_free_collection_rec,
16095 df_sort_and_compress_refs): Call df_free_ref.
16096 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
16097 of df_ref_extract.
16098 (df_ref_create_structure): Allocate df_ref_extract if offset and
16099 width fields are used.
16100 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
16101 (df_uses_record): Get offset and width from ZERO_EXTRACT
16102 and SIGN_EXTRACT.
16103 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
16104 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
16105 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16106 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
16107 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
16108 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16109 (df_ref_extract): New structure.
16110 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
16111 (df_ref_create): Add width and offset parameters.
16112
16113 2008-03-05 Richard Guenther <rguenther@suse.de>
16114
16115 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16116 Use ranges_overlap_p.
16117 (offset_overlaps_with_access): Rename
16118 to ranges_overlap_p and move ...
16119 * tree-flow-inline.h (ranges_overlap_p): ... here.
16120
16121 * tree.h (get_inner_reference, handled_component_p): Update
16122 comments.
16123
16124 * tree.h (record_component_aliases, get_alias_set,
16125 alias_sets_conflict_p, alias_sets_must_conflict_p,
16126 objects_must_conflict_p): Move declarations ...
16127 * alias.h (record_component_aliases, get_alias_set,
16128 alias_sets_conflict_p, alias_sets_must_conflict_p,
16129 objects_must_conflict_p): ... here.
16130 Include coretypes.h.
16131 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
16132
16133 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
16134
16135 * cfg.c: Include tree-flow.h.
16136 (remove_edge_raw): Call redirect_edge_var_map_clear.
16137 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
16138 * tree-flow-inline.h (redirect_edge_var_map_def): New.
16139 (redirect_edge_var_map_result): New.
16140 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
16141 PENDING_STMT use with redirect_edge_var_map_*.
16142 * tree-ssa.c (edge_var_maps): New definition.
16143 (redirect_edge_var_map_add): New.
16144 (redirect_edge_var_map_clear): New.
16145 (redirect_edge_var_map_dup): New.
16146 (redirect_edge_var_map_vector): New.
16147 (redirect_edge_var_map_destroy): New.
16148 (ssa_redirect_edge): Replace PENDING_STMT use with
16149 redirect_edge_var_map_*.
16150 (flush_pending_stmts): Same.
16151 (delete_tree_ssa): Destroy edge var map.
16152 * tree-flow.h (struct _edge_var_map): New.
16153 Define edge_var_map vector type.
16154 Declare redirect_edge_var_map_* prototypes.
16155 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
16156 * tree-cfg.c (reinstall_phi_args): Replace
16157 PENDING_STMT use with redirect_edge_var_map_*.
16158
16159 2008-03-05 Richard Guenther <rguenther@suse.de>
16160
16161 PR tree-optimization/35472
16162 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
16163 whose single use_stmt has a overlapping set of loaded and
16164 stored symbols as that use_stmt might be a noop assignment then.
16165
16166 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
16167
16168 * gthr-rtems.h: Implement __gthread_mutex_destroy.
16169
16170 2008-03-05 Richard Guenther <rguenther@suse.de>
16171
16172 PR c++/35336
16173 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
16174 should be constants.
16175 * tree-cfg.c (verify_expr): Verify it.
16176 * fold-const.c (fold_truthop): Remove code generating
16177 BIT_FIELD_REFs of structure bases.
16178 (fold_binary): Likewise.
16179 (fold_ternary): Position and size of BIT_FIELD_REFs are
16180 always host integers.
16181 (make_bit_field_ref): Remove.
16182 (optimize_bit_field_compare): Remove.
16183 (all_ones_mask_p): Remove.
16184
16185 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
16186
16187 PR gcc/33009
16188 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
16189 (split_block_and_df_analyze): New. Split basic block and rebuild
16190 dataflow.
16191 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
16192 SPLIT_BLOCK.
16193 (split_pattern_seq): Likewise.
16194 (erase_matching_seqs): Likewise.
16195 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
16196
16197 2008-03-04 Geoff Keating <geoffk@apple.com>
16198
16199 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
16200 declaration and code.
16201 (tree_invalid_nonnegative_warnv_p): Likewise.
16202
16203 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
16204
16205 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
16206 examples. Truncate option-names then causing overfull hbox.
16207
16208 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16209
16210 PR target/35222
16211 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
16212 on hpux10.
16213 * configure: Rebuilt.
16214
16215 2008-03-04 Rafael Espindola <espindola@google.com>
16216
16217 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
16218 (tree_unary_nonnegative_warnv_p): New.
16219 (tree_binary_nonnegative_warnv_p): New.
16220 (tree_single_nonnegative_warnv_p): New.
16221 (tree_invalid_nonnegative_warnv_p): New.
16222 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
16223
16224 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16225
16226 PR 28322
16227 * opts.c (handle_option): Postpone 'unknown option' errors only for
16228 warning options.
16229
16230 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
16231
16232 PR target/35453
16233 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
16234 (_SIDD_XXX): This.
16235
16236 2008-03-04 Rafael Espindola <espindola@google.com>
16237
16238 * fold-const.c (tree_unary_nonzero_warnv_p): New.
16239 (tree_binary_nonzero_warnv_p): New.
16240 (tree_single_nonzero_warnv_p): New.
16241 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
16242
16243 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
16244
16245 PR middle-end/35456
16246 * fold-const.c (fold_cond_expr_with_comparison): Prevent
16247 transformations for modes that have signed zeros.
16248 * ifcvt.c (noce_try_abs): Ditto.
16249
16250 2008-03-04 Joseph Myers <joseph@codesourcery.com>
16251
16252 * config/i386/i386.c (override_options): Force
16253 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
16254
16255 2008-03-04 Jan Hubicka <jh@suse.cz>
16256
16257 PR c++/35262
16258 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
16259 in last commit.
16260
16261 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
16262
16263 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
16264 label to probe the stack.
16265
16266 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
16267
16268 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
16269 (__gthr_win32_mutex_destroy): Declare.
16270 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
16271 __gthr_win32_mutex_destroy.
16272 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
16273
16274 2008-03-03 Jan Hubicka <jh@suse.cz>
16275
16276 PR c++/35262
16277 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
16278 aggressive on inlining cold calls.
16279
16280 2008-03-03 Richard Guenther <rguenther@suse.de>
16281
16282 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
16283 struct copies into the expression table.
16284 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
16285 (try_to_simplify): Likewise.
16286 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
16287 integral and pointer arguments which do not change the
16288 precision to NOP_EXPRs.
16289 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
16290 VIEW_CONVERT_EXPR case.
16291
16292 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
16293
16294 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
16295 defined in a loop at depth 0 is invariant.
16296 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
16297 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
16298 be called at loop depth 0.
16299
16300 2008-03-02 Jakub Jelinek <jakub@redhat.com>
16301
16302 PR driver/35420
16303 * gcc.c (process_command): Update copyright notice dates.
16304 * gcov.c (print_version): Likewise.
16305 * gcov-dump.c (print_version): Likewise.
16306 * mips-tfile.c (main): Likewise.
16307 * mips-tdump.c (main): Likewise.
16308
16309 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16310
16311 PR 24924
16312 * c-common.c (flag_permissive): Delete.
16313 (constant_expression_warnings): Check flags first.
16314 (constant_expression_error): New.
16315 * c-common.h (flag_permissive): Delete.
16316 (constant_expression_error): Declare.
16317 * flags.h (flag_permissive): Declare. Update description.
16318 * diagnostic.c (pedwarn): Update.
16319 (permerror): New.
16320 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
16321 (permissive_error_kind): New.
16322 * toplev.c (flag_permissive): Define. Update description.
16323 * toplev.h (permissive_error_kind): Declare.
16324 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
16325 (pedwarn_c90): Use pedantic_warning_kind.
16326 * c-opts.c (c_common_post_options): flag_permissive does not affect
16327 flag_pedantic_errors.
16328
16329 2008-03-02 Joseph Myers <joseph@codesourcery.com>
16330
16331 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
16332 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
16333 __absvsi2, __absvDI2): Use unsigned arithmetic.
16334
16335 2008-03-02 Andi Kleen <ak@suse.de>
16336 Richard Guenther <rguenther@suse.de>
16337
16338 * struct-equiv.c: Remove file.
16339 * cfg_cleanup.c (condjump_equiv_p): Remove.
16340 * Makefile.in (OBJS-common): Remove struct-equiv.o.
16341 (struct-equiv.o): Remove rule.
16342 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
16343 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
16344 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
16345
16346 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
16347
16348 * ifcvt.c (noce_process_if_block): Try to handle only the then
16349 block if the else block exists but isn't suitable.
16350
16351 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
16352
16353 PR gcc/35063
16354 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
16355 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
16356 regression from previous patch.
16357
16358 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
16359
16360 PR gcc/35063
16361 * gthr.h: Add __gthread_mutex_destroy as a function that must be
16362 implemented.
16363 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
16364 * gthr-single.h (__gthread_mutex_destroy): Likewise.
16365 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
16366 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
16367 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
16368 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
16369 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
16370 (__gthread_mutex_destroy_function): Rename to
16371 __gthread_mutex_destroy.
16372 * gthr-dce.h (__gthread_mutex_destroy): Call
16373 pthread_mutex_destroy.
16374 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
16375 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
16376 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
16377
16378 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
16379
16380 * df-scan.c (df_ref_chain_change_bb): Simplify.
16381 (df_insn_change_bb): Add new_bb argument. Simplify. Call
16382 set_block_for_insn if there's any change.
16383 * df.h ((df_insn_change_bb): Fix prototype.
16384 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
16385 df_insn_change_bb, don't call set_block_for_insn.
16386 * emit-rtl.c (reorder_insns): Likewise.
16387 * haifa-sched.c (move_insn): Likewise.
16388
16389 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
16390
16391 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
16392
16393 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
16394
16395 * tree-flow-inline.h (next_readonly_imm_use): Return
16396 NULL_USE_OPERAND_P after the end.
16397
16398 2008-03-01 Richard Guenther <rguenther@suse.de>
16399
16400 PR tree-optimization/35411
16401 * tree-sra.c (sra_build_assignment): Split conversion to
16402 final type to a separate statement if we are not assigning
16403 to a register.
16404
16405 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16406
16407 * fold-const.c (fold_convertible_p): Correct the logic to follow
16408 that in fold_convert().
16409
16410 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
16411
16412 PR c++/35315
16413 * tree-inline.c (build_duplicate_type): When we make a
16414 duplicate type, make it unique in the canonical types system.
16415
16416 2008-02-29 Tom Tromey <tromey@redhat.com>
16417
16418 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
16419 input_file_stack_history, input_file_stack_restored): Remove.
16420 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
16421 * input.h (struct file_stack): Remove.
16422 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
16423 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
16424 Likewise.
16425 * diagnostic.h (struct diagnostic_context) <last_module>: Change
16426 type.
16427 (diagnostic_last_module_changed): Add 'map' argument.
16428 (diagnostic_set_last_function): Likewise.
16429 * diagnostic.c (undiagnostic_report_current_module): Iterate using
16430 line map, not input_file_stack.
16431 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
16432
16433 2008-02-29 Paul Brook <paul@codesourcery.com>
16434
16435 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
16436
16437 2008-02-29 Paul Brook <paul@codesourcery.com>
16438
16439 * config/arm/ieee754-df.S (muldf3): Use RET macros.
16440
16441 2008-02-29 Richard Guenther <rguenther@suse.de>
16442
16443 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
16444 vn_lookup_or_add.
16445 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
16446 value for comparing for a store match.
16447 (simplify_unary_expression): Do nothing for SSA_NAMEs.
16448 (try_to_simplify): Do not do a full-blown reference lookup.
16449
16450 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
16451
16452 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
16453 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
16454
16455 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
16456
16457 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
16458
16459 * tree-loop-linear.c (try_interchange_loops): Compare memory access
16460 strides against cache sizes.
16461
16462 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
16463
16464 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
16465 constant to fpul.
16466
16467 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
16468
16469 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
16470 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
16471 is smaller than the original promoted value.
16472 (simplify_subreg): If OP is a SUBREG, try to preserve its
16473 SUBREG_PROMOTED_VAR_P information.
16474
16475 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
16476
16477 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
16478 (VN_INFO_GET): Allocate new objects on the obstack.
16479 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
16480 for rpo_numbers_temp, for consistency.
16481 (free_scc_vn): Free the obstack.
16482
16483 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
16484
16485 * doc/invoke.texi: Document -ftree-loop-distribution.
16486 * tree-loop-distribution.c: New.
16487 * tree-pass.h (pass_loop_distribution): New.
16488 * graphds.h (struct graph): Add htab_t indices.
16489 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
16490 * tree-vectorizer.c (rename_variables_in_loop): Extern.
16491 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
16492 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
16493 * tree-data-ref.c (debug_data_dependence_relations): New.
16494 (dump_data_dependence_relation): Also print data references.
16495 (free_data_ref): Extern.
16496 (same_access_functions): Moved...
16497 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
16498 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
16499 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
16500 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
16501 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
16502 (stmts_from_loop): Skip LABEL_EXPR.
16503 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
16504 New.
16505 (build_rdg): Initialize rdg->indices htab.
16506 (free_rdg, stores_from_loop, ref_base_address,
16507 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
16508 have_similar_memory_accesses_1, ref_base_address_1,
16509 remove_similar_memory_refs): New.
16510 * tree-data-ref.h: Depend on tree-chrec.h.
16511 (debug_data_dependence_relations, free_data_ref): Declared.
16512 (same_access_functions): ... here.
16513 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
16514 New.
16515 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
16516 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
16517 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
16518 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
16519 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
16520 rdg_vertex_for_stmt): Declared.
16521 (struct rdg_edge): Add level.
16522 (RDGE_LEVEL): New.
16523 (free_rdg, stores_from_loop, remove_similar_memory_refs,
16524 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
16525 Declared.
16526 (rdg_has_similar_memory_accesses): New.
16527 * tree-vect-analyze.c: Remove unused static decls.
16528 * lambda.h (dependence_level): New.
16529 * common.opt (ftree-loop-distribution): New.
16530 * tree-flow.h (mark_virtual_ops_in_bb,
16531 slpeel_tree_duplicate_loop_to_edge_cfg,
16532 rename_variables_in_loop): Declared.
16533 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
16534 (OBJS-common): Add tree-loop-distribution.o.
16535 (tree-loop-distribution.o): New rule.
16536 * tree-cfg.c (mark_virtual_ops_in_bb): New.
16537 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
16538 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
16539
16540 2008-02-28 Joseph Myers <joseph@codesourcery.com>
16541
16542 PR target/33963
16543 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
16544 other than structures and unions.
16545
16546 2008-02-28 Richard Guenther <rguenther@suse.de>
16547
16548 Revert:
16549 2008-02-26 Richard Guenther <rguenther@suse.de>
16550
16551 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16552 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16553 (lookup_decl_from_uid): Declare.
16554 (remove_decl_from_map): Likewise.
16555 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16556 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16557 (decl_for_uid_map): New global hashtable mapping DECL_UID
16558 to the decl tree.
16559 (init_ttree): Allocate it.
16560 (insert_decl_to_uid_decl_map): New helper function.
16561 (make_node_stat): Insert new decls into the map.
16562 (copy_node_stat): Likewise.
16563 (lookup_decl_from_uid): New function.
16564 (remove_decl_from_map): Likewise.
16565 (print_decl_for_uid_map_statistics): New helper.
16566 (dump_tree_statistics): Call it.
16567
16568 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16569 (referenced_var_iterator): Adjust.
16570 (FOR_EACH_REFERENCED_VAR): Adjust.
16571 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16572 (num_referenced_vars): Adjust.
16573 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16574 (first_referenced_var): Remove.
16575 (end_referenced_vars_p): Likewise.
16576 (next_referenced_var): Likewise.
16577 (referenced_var_iterator_set): New helper function.
16578 * tree-dfa.c (referenced_var_lookup): Adjust.
16579 (referenced_var_check_and_insert): Likewise.
16580 (remove_referenced_var): Likewise.
16581 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16582 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16583 (verify_call_clobbering): Likewise.
16584 (verify_memory_partitions): Likewise.
16585 (init_tree_ssa): Allocate bitmap instead of hashtable for
16586 referenced_vars.
16587 (delete_tree_ssa): Adjust.
16588 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16589 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16590 (compute_tag_properties): Likewise.
16591 (set_initial_properties): Likewise.
16592 (find_partition_for): Likewise.
16593 (update_reference_counts): Likewise.
16594 (dump_may_aliases_for): Likewise.
16595 * tree-ssa-operands.c (add_virtual_operand): Likewise.
16596 (add_call_clobber_ops): Likewise.
16597 (add_call_read_ops): Likewise.
16598 (get_asm_expr_operands): Likewise.
16599 * tree-into-ssa.c (dump_decl_set): Likewise.
16600 (update_ssa): Likewise.
16601 * tree-sra.c (scan_function): Likewise.
16602 (decide_instantiations): Likewise.
16603 (scalarize_parms): Likewise.
16604 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16605 (dsa_named_for): Likewise.
16606 * tree-ssa-structalias.c (update_alias_info): Likewise.
16607 (merge_smts_into): Likewise.
16608
16609 2008-02-27 David Daney <ddaney@avtrex.com>
16610
16611 PR target/34409
16612 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
16613 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
16614 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
16615 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
16616 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
16617
16618 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
16619
16620 PR target/25477
16621 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
16622 (BUILT_IN_NEXTTOWARD): Remove.
16623 (BUILT_IN_NEXTTOWARDF): Ditto.
16624 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
16625 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
16626
16627 2008-02-27 Tom Tromey <tromey@redhat.com>
16628
16629 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
16630 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
16631
16632 2008-02-27 Jan Beulich <jbeulich@novell.com>
16633
16634 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
16635 update the respective field on newdecl.
16636
16637 2008-02-27 Revital Eres <eres@il.ibm.com>
16638
16639 PR rtl-optimization/34999
16640 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
16641 crossing edges that ends with a call insn.
16642 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
16643 call insn and clear the EDGE_CROSSING flag of the crossing edge
16644 when fixing fallthru edges.
16645
16646 2008-02-27 Richard Guenther <rguenther@suse.de>
16647
16648 PR middle-end/35390
16649 * fold-const.c (fold_unary): Return the correct argument,
16650 converted to the result type.
16651
16652 2008-02-27 Richard Guenther <rguenther@suse.de>
16653
16654 PR middle-end/34971
16655 * expr.c (expand_expr_real_1): Assert on rotates that operate
16656 on partial modes.
16657 * fold-const.c (fold_binary): Use the types precision, not the
16658 bitsize of the mode if folding rotate expressions. Build rotates
16659 only for full modes.
16660
16661 2008-02-27 Jakub Jelinek <jakub@redhat.com>
16662
16663 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
16664 and CPP_PRAGMA_EOL.
16665 * c-pragma.c (pragma_ns_name): New typedef.
16666 (registered_pp_pragmas): New variable.
16667 (c_pp_lookup_pragma): New function.
16668 (c_register_pragma_1): If flag_preprocess_only, do nothing
16669 for non-expanded pragmas, for expanded ones push pragma's
16670 namespace and name into registered_pp_pragmas vector.
16671 (c_invoke_pragma_handler): Register OpenMP pragmas even when
16672 flag_preprocess_only, don't register GCC pch_preprocess
16673 pragma if flag_preprocess_only.
16674 * c-opts.c (c_common_init): Call init_pragma even if
16675 flag_preprocess_only.
16676 * c-pragma.c (c_pp_lookup_pragma): New prototype.
16677 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
16678 cpp_register_pragma if flag_preprocess_only.
16679
16680 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16681
16682 PR c/28800
16683 * c-parser.c (c_parser_translation_unit): Warn for empty
16684 translation unit, not empty source file.
16685
16686 2008-02-26 Paul Brook <paul@codesourcery.com>
16687
16688 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
16689 operand for Thumb-2.
16690 * config/arm/arm.h (reg_class): Add CORE_REGS.
16691 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
16692 (BASE_REG_CLASS): Use CORE_REGS.
16693 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
16694 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
16695 (REGNO_OK_FOR_INDEX_P): Exclude SP.
16696 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
16697 ARM_REGNO_OK_FOR_INDEX_P.
16698 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
16699 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
16700 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
16701 (ldm/stm peepholes): Ditto.
16702 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
16703 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
16704 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
16705 * config/arm/constraints.md: Enable "k" constraint on ARM.
16706
16707 2008-02-27 Ben Elliston <bje@au.ibm.com>
16708
16709 * config/rs6000/rs6000.c: Annotate cache line size field in all
16710 instances of struct processor_costs.
16711
16712 2008-02-26 David Edelsohn <edelsohn@gnu.org>
16713
16714 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
16715 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
16716 jump_bypass): New counters.
16717 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
16718 * dce.c (gate_ud_dce): Same.
16719 (gate_fast_dce): Same.
16720 * dse.c (gate_dse1): New function.
16721 (gate_dse2): New function.
16722 (gate_dse): Merge results of new gate functions.
16723 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
16724 (gate_handle_jump_bypass): Add dbg_cnt.
16725 (gate_handle_gcse): Add dbg_cnt.
16726 * ifcvt.c (gate_handle_if_conversion): Same.
16727 (gate_handle_if_after_combine): Same.
16728 (gate_handle_if_after_reload): Same.
16729 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
16730
16731 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
16732
16733 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
16734 line sizes.
16735 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
16736
16737 2008-02-26 Jason Merrill <jason@redhat.com>
16738
16739 PR c++/35315
16740 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
16741 alone if it's the naming decl for the type's main variant.
16742
16743 2008-02-26 Tom Tromey <tromey@redhat.com>
16744
16745 * system.h (USE_MAPPED_LOCATION): Poison.
16746 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
16747 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
16748 (make_goto_expr_edges): Likewise.
16749 (remove_bb): Likewise.
16750 (execute_warn_function_return): Likewise.
16751 * basic-block.h (struct edge_def) <goto_locus>: Change type to
16752 location_t.
16753 * c-common.c (fname_decl): Remove old location code.
16754 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
16755 location code.
16756 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
16757 variant.
16758 (ASM_INPUT_SOURCE_LOCATION): Likewise.
16759 (gen_rtx_ASM_INPUT): Likewise.
16760 (gen_rtx_ASM_INPUT_loc): Likewise.
16761 (get_rtx_asm_OPERANDS): Remove.
16762 * cfglayout.c (insn_locators_alloc): Remove old location code.
16763 (set_curr_insn_source_location): Likewise.
16764 (curr_insn_locator): Likewise.
16765 * print-tree.c (print_node): Remove old location code.
16766 * tree-mudflap.c (mf_varname_tree): Remove old location code.
16767 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
16768 * cfgexpand.c (expand_gimple_cond_expr): Don't use
16769 location_from_locus.
16770 (construct_exit_block): Remove old location code.
16771 * emit-rtl.c (force_next_line_note): Remove old location code.
16772 * profile.c (branch_prob): Remove old location code.
16773 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
16774 LOC_LINE): Remove old-location variants.
16775 * langhooks.c (lhd_print_error_function): Remove old location
16776 code.
16777 * configure, config.in: Rebuilt.
16778 * configure.ac (--enable-mapped-location): Remove.
16779 * c-decl.c (c_init_decl_processing): Remove old location code.
16780 (finish_function): Likewise.
16781 * recog.c (decode_asm_operands): Remove old location code.
16782 * c-pch.c (c_common_read_pch): Remove old location code.
16783 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
16784 variants.
16785 * gimple-low.c (lower_function_body): Remove old location code.
16786 * toplev.c (unknown_location): Remove.
16787 (push_srcloc): Remove old-location variant.
16788 (process_options): Remove old location code.
16789 (lang_dependent_init): Likewise.
16790 * input.h (UNKNOWN_LOCATION): Move definition.
16791 (location_t): Undeprecate.
16792 (source_locus): Remove.
16793 (location_from_locus): Remove.
16794 (struct location_s): Remove.
16795 Remove all old-location code.
16796 (input_line, input_filename): Remove.
16797 * final.c (final_scan_insn): Remove old location code.
16798 * diagnostic.c (diagnostic_build_prefix): Remove
16799 USE_MAPPED_LOCATION test.
16800 * tree.h (gimple_stmt) <locus>: Now a location_t.
16801 (tree_exp) <locus>: Likewise.
16802 (DECL_IS_BUILTIN): Remove old-location variant.
16803 (annotate_with_file_line, annotate_with_locus): Likewise.
16804 (expr_locus, set_expr_locus): Update.
16805 * tree.c (build1_stat): Remove old location code.
16806 (last_annotated_node): Remove.
16807 (annotate_with_file_line): Remove old-location variant.
16808 (annotate_with_locus): Likewise.
16809 (expr_location): Remove old location code.
16810 (set_expr_location): Likewise.
16811 (expr_has_location): Likewise.
16812 (expr_locus): Likewise.
16813 (set_expr_locus): Likewise.
16814 (expr_filename): Don't use location_from_locus.
16815 (expr_lineno): Likewise.
16816 * rtl-error.c (location_for_asm): Remove old location code.
16817 * c-lex.c (cb_line_change): Remove old location code.
16818 (fe_file_change): Likewise.
16819 (cb_def_pragma): Likewise.
16820 (c_lex_with_flags): Likewise.
16821 * gengtype.c (do_typedef): Don't special-case location types.
16822 (define_location_structures): Remove.
16823 (main): Don't call define_location_structures.
16824 * tree-pretty-print.c (dump_implicit_edges): Remove old location
16825 code.
16826
16827 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16828
16829 PR 26264
16830 * builtins.def (BUILT_IN_STDARG_START): Remove.
16831 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
16832 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16833 * tree-inline.c (inline_forbidden_p_1): Likewise.
16834
16835 2008-02-26 Richard Guenther <rguenther@suse.de>
16836
16837 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16838 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16839 (lookup_decl_from_uid): Declare.
16840 (remove_decl_from_map): Likewise.
16841 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16842 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16843 (decl_for_uid_map): New global hashtable mapping DECL_UID
16844 to the decl tree.
16845 (init_ttree): Allocate it.
16846 (insert_decl_to_uid_decl_map): New helper function.
16847 (make_node_stat): Insert new decls into the map.
16848 (copy_node_stat): Likewise.
16849 (lookup_decl_from_uid): New function.
16850 (remove_decl_from_map): Likewise.
16851 (print_decl_for_uid_map_statistics): New helper.
16852 (dump_tree_statistics): Call it.
16853
16854 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16855 (referenced_var_iterator): Adjust.
16856 (FOR_EACH_REFERENCED_VAR): Adjust.
16857 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16858 (num_referenced_vars): Adjust.
16859 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16860 (first_referenced_var): Remove.
16861 (end_referenced_vars_p): Likewise.
16862 (next_referenced_var): Likewise.
16863 (referenced_var_iterator_set): New helper function.
16864 * tree-dfa.c (referenced_var_lookup): Adjust.
16865 (referenced_var_check_and_insert): Likewise.
16866 (remove_referenced_var): Likewise.
16867 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16868 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16869 (verify_call_clobbering): Likewise.
16870 (verify_memory_partitions): Likewise.
16871 (init_tree_ssa): Allocate bitmap instead of hashtable for
16872 referenced_vars.
16873 (delete_tree_ssa): Adjust.
16874 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16875 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16876 (compute_tag_properties): Likewise.
16877 (set_initial_properties): Likewise.
16878 (find_partition_for): Likewise.
16879 (update_reference_counts): Likewise.
16880 (dump_may_aliases_for): Likewise.
16881 * tree-ssa-operands.c (add_virtual_operand): Likewise.
16882 (add_call_clobber_ops): Likewise.
16883 (add_call_read_ops): Likewise.
16884 (get_asm_expr_operands): Likewise.
16885 * tree-into-ssa.c (dump_decl_set): Likewise.
16886 (update_ssa): Likewise.
16887 * tree-sra.c (scan_function): Likewise.
16888 (decide_instantiations): Likewise.
16889 (scalarize_parms): Likewise.
16890 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16891 (dsa_named_for): Likewise.
16892 * tree-ssa-structalias.c (update_alias_info): Likewise.
16893 (merge_smts_into): Likewise.
16894
16895 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16896
16897 PR 34351
16898 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
16899 * c-opts.c (c_common_handle_option): Wall enables
16900 Wvolatile-register-var.
16901 * common.opt: Move Wvolatile-register-var to...
16902 * c.opt: ...here.
16903
16904 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16905
16906 * common.opt (Wlarger-than=): New.
16907 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
16908 -Wlarger-than=.
16909 * opts.c (common_handle_option): Handle -Wlarger-than=.
16910 * optc-gen.awk: Likewise.
16911 * opth-gen.awk: Likewise.
16912 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
16913 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16914
16915 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16916
16917 * c-common.c (match_case_to_enum_1): Add appropriate
16918 OPT_W* parameter to warning.
16919 (c_do_switch_warnings): Likewise.
16920 * c-typeck.c (warning_init): Add one more parameter following
16921 'warning' function.
16922 (push_init_level): Update call to warning_init.
16923 (pop_init_level): Likewise.
16924 (add_pending_init): Likewise.
16925 (output_init_element: Likewise.
16926
16927 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16928
16929 PR 28322
16930 * toplev.c (toplev_main): If there are warnings or error, print
16931 errors for ignored options.
16932 * opts.c (ignored_options): New static variable.
16933 (postpone_unknown_option_error): New.
16934 (print_ignored_options): New.
16935 (handle_option): Postpone errors for unknown -Wno-* options.
16936 * opts.h (print_ignored_options): Declare.
16937
16938 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
16939
16940 * config/mips/mips.md (loadgp_blockage, blockage): Change type
16941 to "ghost".
16942
16943 2008-02-25 Richard Guenther <rguenther@suse.de>
16944
16945 Revert:
16946 2008-02-25 Richard Guenther <rguenther@suse.de>
16947
16948 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16949 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16950 (lookup_decl_from_uid): Declare.
16951 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16952 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16953 (decl_for_uid_map): New global hashtable mapping DECL_UID
16954 to the decl tree.
16955 (init_ttree): Allocate it.
16956 (insert_decl_to_uid_decl_map): New helper function.
16957 (make_node_stat): Insert new decls into the map.
16958 (copy_node_stat): Likewise.
16959 (lookup_decl_from_uid): New function.
16960 (print_decl_for_uid_map_statistics): New helper.
16961 (dump_tree_statistics): Call it.
16962
16963 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16964 (referenced_var_iterator): Adjust.
16965 (FOR_EACH_REFERENCED_VAR): Adjust.
16966 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16967 (num_referenced_vars): Adjust.
16968 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16969 (first_referenced_var): Remove.
16970 (end_referenced_vars_p): Likewise.
16971 (next_referenced_var): Likewise.
16972 (referenced_var_iterator_set): New helper function.
16973 * tree-dfa.c (referenced_var_lookup): Adjust.
16974 (referenced_var_check_and_insert): Likewise.
16975 (remove_referenced_var): Likewise.
16976 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16977 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16978 (verify_call_clobbering): Likewise.
16979 (verify_memory_partitions): Likewise.
16980 (init_tree_ssa): Allocate bitmap instead of hashtable for
16981 referenced_vars.
16982 (delete_tree_ssa): Adjust.
16983 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16984 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16985 (compute_tag_properties): Likewise.
16986 (set_initial_properties): Likewise.
16987 (find_partition_for): Likewise.
16988 (update_reference_counts): Likewise.
16989 (dump_may_aliases_for): Likewise.
16990 * tree-ssa-operands.c (add_virtual_operand): Likewise.
16991 (add_call_clobber_ops): Likewise.
16992 (add_call_read_ops): Likewise.
16993 (get_asm_expr_operands): Likewise.
16994 * tree-into-ssa.c (dump_decl_set): Likewise.
16995 (update_ssa): Likewise.
16996 * tree-sra.c (scan_function): Likewise.
16997 (decide_instantiations): Likewise.
16998 (scalarize_parms): Likewise.
16999 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
17000 (dsa_named_for): Likewise.
17001 * tree-ssa-structalias.c (update_alias_info): Likewise.
17002 (merge_smts_into): Likewise.
17003
17004 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
17005
17006 PR fortran/29549
17007 * doc/invoke.texi (-fcx-limited-range): Document new option.
17008 * toplev.c (process_options): Handle -fcx-fortran-rules.
17009 * common.opt: Add documentation for -fcx-fortran-rules.
17010
17011 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
17012
17013 PR c/35162
17014 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
17015 actual behaviour and C99.
17016
17017 2008-02-26 Ben Elliston <bje@au.ibm.com>
17018
17019 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
17020 (ASM_CPU_POWER6_SPEC): Likewise.
17021 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
17022 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
17023 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
17024
17025 2008-02-25 Richard Guenther <rguenther@suse.de>
17026
17027 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
17028 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
17029 (lookup_decl_from_uid): Declare.
17030 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
17031 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
17032 (decl_for_uid_map): New global hashtable mapping DECL_UID
17033 to the decl tree.
17034 (init_ttree): Allocate it.
17035 (insert_decl_to_uid_decl_map): New helper function.
17036 (make_node_stat): Insert new decls into the map.
17037 (copy_node_stat): Likewise.
17038 (lookup_decl_from_uid): New function.
17039 (print_decl_for_uid_map_statistics): New helper.
17040 (dump_tree_statistics): Call it.
17041
17042 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
17043 (referenced_var_iterator): Adjust.
17044 (FOR_EACH_REFERENCED_VAR): Adjust.
17045 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
17046 (num_referenced_vars): Adjust.
17047 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
17048 (first_referenced_var): Remove.
17049 (end_referenced_vars_p): Likewise.
17050 (next_referenced_var): Likewise.
17051 (referenced_var_iterator_set): New helper function.
17052 * tree-dfa.c (referenced_var_lookup): Adjust.
17053 (referenced_var_check_and_insert): Likewise.
17054 (remove_referenced_var): Likewise.
17055 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
17056 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
17057 (verify_call_clobbering): Likewise.
17058 (verify_memory_partitions): Likewise.
17059 (init_tree_ssa): Allocate bitmap instead of hashtable for
17060 referenced_vars.
17061 (delete_tree_ssa): Adjust.
17062 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
17063 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
17064 (compute_tag_properties): Likewise.
17065 (set_initial_properties): Likewise.
17066 (find_partition_for): Likewise.
17067 (update_reference_counts): Likewise.
17068 (dump_may_aliases_for): Likewise.
17069 * tree-ssa-operands.c (add_virtual_operand): Likewise.
17070 (add_call_clobber_ops): Likewise.
17071 (add_call_read_ops): Likewise.
17072 (get_asm_expr_operands): Likewise.
17073 * tree-into-ssa.c (dump_decl_set): Likewise.
17074 (update_ssa): Likewise.
17075 * tree-sra.c (scan_function): Likewise.
17076 (decide_instantiations): Likewise.
17077 (scalarize_parms): Likewise.
17078 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
17079 (dsa_named_for): Likewise.
17080 * tree-ssa-structalias.c (update_alias_info): Likewise.
17081 (merge_smts_into): Likewise.
17082
17083 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
17084
17085 PR target/35258
17086 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
17087 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
17088 * alias.h (nonoverlapping_memrefs_p): Likewise.
17089
17090 2008-02-25 Jan Beulich <jbeulich@novell.com>
17091
17092 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
17093 * config/i386/netware-libgcc.exp: Add __bswap?i2,
17094 __emultls_get_address, __emultls_register_common,
17095 __floatundi?f, and _Unwind_GetIPInfo.
17096 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
17097 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
17098 (gen_regparm_prefix): Likewise.
17099 (i386_nlm_encode_section_info): Sync with
17100 config/i386/winnt.c:i386_pe_encode_section_info().
17101 (i386_nlm_maybe_mangle_decl_assembler_name): New.
17102 i386_nlm_mangle_decl_assembler_name): New.
17103 (netware_override_options): New.
17104 * config/i386/netware.h (netware_override_options): Declare.
17105 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
17106 (i386_nlm_mangle_decl_assembler_name): Declare.
17107 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
17108
17109 2008-02-25 Ben Elliston <bje@au.ibm.com>
17110
17111 PR other/32948
17112 * c-decl.c (grokdeclarator): Remove unused local variables
17113 `typedef_type' and `type_as_written'.
17114 * bb-reorder.c
17115 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
17116 unused local variable `has_hot_blocks'.
17117 (fix_crossing_conditional_branches): Remove unused local variable
17118 `prev_bb'.
17119
17120 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
17121
17122 PR middle-end/19984
17123 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
17124 using DEF_C99_BUILTIN.
17125 (BUILT_IN_NANF): Ditto.
17126 (BUILT_IN_NANL): Ditto.
17127
17128 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
17129 Revital Eres <eres@il.ibm.com>
17130
17131 * modulo-sched.c (calculate_must_precede_follow): Address TODO
17132 regarding the order of two dependent insns in the same row.
17133
17134 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
17135
17136 * stor-layout.c (layout_decl): Do not bump the alignment of a
17137 bit-field to more than byte alignment if it is packed.
17138
17139 2008-02-24 David Edelsohn <edelsohn@gnu.org>
17140
17141 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
17142 e300c2 and e300c3.
17143
17144 2008-02-24 Diego Novillo <dnovillo@google.com>
17145
17146 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
17147
17148 PR 33738
17149 * tree-vrp.c (vrp_evaluate_conditional): With
17150 -Wtype-limits, emit a warning when comparing against a
17151 constant outside the natural range of OP0's type.
17152 * c.opt (Wtype-limits): Move ...
17153 * common.opt (Wtype-limits): ... here.
17154
17155 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
17156
17157 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
17158 * config/rs6000/e300c2c3.md: New file.
17159 * config/rs6000/rs6000.c (processor_costs): Add new costs for
17160 e300c2 and e300c3.
17161 (rs6000_override_options): Add e300c2 and e300c3 cases to
17162 processor_target_table. Do not allow usage of Altivec or Spe
17163 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
17164 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
17165 * config/rs6000/rs6000.h (processor_type): Add
17166 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
17167 (ASM_CPU_SPEC): Add e300c2 and e300c3.
17168 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
17169 and ppce300c3. Include e300c2c3.md.
17170
17171 2008-02-23 David Edelsohn <edelsohn@gnu.org>
17172
17173 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
17174 instead of TARGET_STRICT_ALIGN.
17175
17176 2008-02-23 Joseph Myers <joseph@codesourcery.com>
17177
17178 * explow.c (memory_address): Assert that the generated address is
17179 valid.
17180
17181 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17182
17183 PR target/25477
17184 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
17185 * config/darwin-ppc-ldouble-patch.def: New file.
17186 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
17187 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
17188 SUBTARGET_INIT_BUILTINS if defined.
17189 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
17190 New functions.
17191
17192 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
17193
17194 PR rtl-opt/33512
17195 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
17196 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
17197
17198 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
17199
17200 PR pch/35027
17201 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
17202 file" warning condtional on -Winvalid-PCH.
17203
17204 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
17205
17206 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
17207
17208 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
17209
17210 PR target/22076
17211 PR target/34256
17212 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
17213 prevent reload from using MMX registers.
17214 (*mov<mode>_internal): Ditto.
17215 (*movv2sf_internal_rex64): Ditto.
17216 (*movv2sf_internal): Ditto.
17217
17218 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17219
17220 PR documentation/31569
17221 * doc/install.texi2html: Use makeinfo --no-number-sections.
17222
17223 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
17224
17225 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
17226 ensure that we can address an entire entity > 8 bytes. Don't
17227 generate reg+reg addressing for such data.
17228
17229 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
17230
17231 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
17232 strings when optimizing for size, unless the target cares about
17233 alignment.
17234
17235 2008-02-22 Tom Tromey <tromey@redhat.com>
17236
17237 * regclass.c (current_pass): Remove declaration.
17238
17239 2008-02-22 Anatoly Sokolov <aesok@post.ru>
17240
17241 * config/avr/libgcc.S (__RAMPZ__): Define.
17242 (__do_copy_data): Add for devices with 128KB code memory.
17243
17244 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
17245
17246 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
17247 Use spe_abi.
17248 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
17249
17250 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
17251
17252 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
17253 GENNONACR_REGS.
17254
17255 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17256
17257 PR c/19999
17258 * c-typeck.c (build_binary_op): Warn about floating point
17259 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
17260
17261 2008-02-21 Janis Johnson <janis187@us.ibm.com>
17262
17263 PR target/34526
17264 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
17265 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
17266 add vrsave.
17267 (rs6000_override_options): Set altivec_abi as default, not override,
17268 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
17269 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
17270 is used; use new member spe_abi.
17271 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
17272 spe_abi and altivec_abi.
17273
17274 2008-02-22 Tomas Bily <tbily@suse.cz>
17275
17276 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
17277
17278 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17279
17280 PR bootstrap/35273
17281 * config.build (build_file_translate): Set to `CMD //c' only if
17282 it works.
17283 * Makefile.in (build_file_translate): Improve comment.
17284
17285 2008-02-21 Jan Hubicka <jh@suse.cz>
17286
17287 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
17288 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
17289 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
17290
17291 2008-02-21 Michael Matz <matz@suse.de>
17292
17293 PR target/35264
17294 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
17295
17296 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
17297
17298 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
17299 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
17300 as insn constraint.
17301 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
17302 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
17303 SSE_VEC_FLOAT_MODE_P as insn constraint.
17304 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
17305 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
17306 sse4a_movntdf using MODEF mode iterator.
17307 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
17308 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
17309 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
17310 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
17311 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
17312 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
17313 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
17314
17315 2008-02-21 Richard Guenther <rguenther@suse.de>
17316
17317 * tree.def (PAREN_EXPR): New tree code.
17318 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
17319 and PAREN_EXPR.
17320 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
17321 * expr.c (expand_expr_real_1): Likewise.
17322 * tree-inline.c (estimate_num_insns_1): Likewise.
17323 * tree-complex.c (expand_complex_move): Likewise.
17324 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
17325 as plain x.
17326
17327 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
17328
17329 PR target/35225
17330 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
17331
17332 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
17333
17334 PR target/35190
17335 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
17336
17337 * config/sh/sh.c (find_barrier): Don't go past
17338 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
17339
17340 2008-02-20 DJ Delorie <dj@redhat.com>
17341
17342 * config/h8300/h8300.md (insv): Force source operand to be a register.
17343
17344 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
17345 as a jump, not as a plain insn.
17346
17347 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
17348
17349 * doc/invoke.texi (Warning Options): Add new option
17350 -Wframe-larger-than=.
17351 (-Wframe-larger-than): Document.
17352
17353 * flags.h (warn_frame_larger_than, frame_larger_than_size):
17354 Add declarations for new option variables.
17355
17356 * final.c (final_start_function): Check the frame size
17357 before emission and issue a Wframe-larger-than warning.
17358
17359 * opts.c (warn_frame_larger_than, frame_larger_than_size):
17360 Add definitions for new option variables.
17361 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
17362
17363 * common.opt (Wframe-larger-than=): New option.
17364
17365 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
17366
17367 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
17368 (<sse>_div<mode>3): Ditto.
17369 (<sse>_vmdiv<mode>3): Ditto.
17370 (<sse>_vmsqrt<mode>2): Ditto.
17371 (*smax<mode>3): Ditto.
17372 (sse5_frcz<mode>2): Ditto.
17373 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
17374 as insn constraint.
17375
17376 2008-02-20 Richard Guenther <rguenther@suse.de>
17377
17378 PR middle-end/35265
17379 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
17380 be happy with INTEGRAL_TYPE_P.
17381
17382 2008-02-20 Richard Guenther <rguenther@suse.de>
17383
17384 * fold-const.c (split_tree): Associate floatig-point expressions
17385 if flag_associative_math is set.
17386
17387 2008-02-20 Richard Guenther <rguenther@suse.de>
17388
17389 * tree.h (fold_real_zero_addition_p): Declare.
17390 * fold-const.c (fold_real_zero_addition_p): Export.
17391 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
17392 floating-point operations with zero and one.
17393
17394 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
17395
17396 * doc/install.texi: Correct references to CFLAGS, replacing them
17397 with BOOT_CFLAGS. Document flags used during bootstrap for
17398 target libraries.
17399
17400 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
17401
17402 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
17403 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
17404 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
17405 insn constraint.
17406 (smin<mode>3): Ditto from similar patterns.
17407 (smax<mode>3): Ditto.
17408 (*ieee_smin<mode>3): Ditto.
17409 (*ieee_smax<mode>3): Ditto.
17410 * config/i386/sse.md (sse): New mode attribute.
17411 (mov<mode>): Macroize expander from movv4sf and movv2df using
17412 SSEMODEF2P mode iterator.
17413 (<sse>_movnt<mode>): Ditto from similar patterns. Use
17414 SSE_VEC_FLOAT_MODE_P as insn constraint.
17415 (storent<mode>): Ditto.
17416 (storent<mode>): Macroize expander from storentsf and storentdf using
17417 MODEF mode iterator.
17418 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
17419 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
17420 (abs<mode>2): Ditto from similar patterns.
17421 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
17422 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
17423 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
17424 (<sse>_vmsqrt<mode>2): Ditto.
17425 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
17426 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
17427 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
17428 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
17429 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
17430 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
17431 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
17432 insn constraint.
17433 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
17434 iterator and SSE_FLOAT_MODE_P as insn constraint.
17435 (<sse>_ucomi): Ditto from similar patterns.
17436 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
17437 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
17438 SSE_VEC_FLOAT_MODE_P as insn constraint.
17439 (vcond<mode>): Ditto from similar patterns.
17440 (and<mode>3, *and<mode>3): Ditto.
17441 (<sse>_nand<mode>3): Ditto.
17442 (ior<mode>3, *ior<mode>3): Ditto.
17443 (xor<mode>3, *xor<mode>3): Ditto.
17444 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
17445 iterator and SSE_FLOAT_MODE_P as insn constraint.
17446 (*nand<mode>3): Ditto from similar patterns.
17447 (*ior<mode>3): Ditto.
17448 (*xor<mode>3): Ditto.
17449
17450 2008-02-20 Ira Rosen <irar@il.ibm.com>
17451
17452 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
17453 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
17454 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
17455
17456 2008-02-19 Jan Hubicka <jh@suse.cz>
17457
17458 * predict.c (tree_bb_level_predictions): Remove variable next
17459 mistakely introduced by previous commit.
17460
17461 2008-02-19 Jan Hubicka <jh@suse.cz>
17462
17463 * predict.c (predict_paths_leading_to): Rewrite.
17464 (predict_paths_for_bb): New.
17465 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
17466
17467 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17468
17469 PR bootstrap/35218
17470 * Makefile.in (build_file_translate): New.
17471 (gcc-vers.texi): Use it for translating $(abs_srcdir).
17472 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
17473 * configure.ac (build_file_translate): Substitute it.
17474 * configure: Regenerate.
17475
17476 2008-02-19 Jan Hubicka <jh@suse.cz>
17477
17478 PR rtl-optimization/34408
17479 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
17480 invalid sharing.
17481
17482 2008-02-19 Jan Hubicka <jh@suse.cz>
17483
17484 PR middle-end/28779
17485 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
17486 call_expr.
17487
17488 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
17489
17490 PR Ada/35186
17491 * config/i386/i386-modes.def: Revert the last DI alignment
17492 change until Ada people can look into it.
17493
17494 2008-02-19 Nick Clifton <nickc@redhat.com>
17495
17496 * opts.c (print_specific_help): Fix typo in --help text.
17497
17498 2008-02-19 Jakub Jelinek <jakub@redhat.com>
17499
17500 PR target/35239
17501 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
17502 32-bit inline asm without asm alternatives for host GCC < 3.0.
17503
17504 2008-02-19 Richard Guenther <rguenther@suse.de>
17505
17506 PR tree-optimization/34989
17507 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
17508 Allow propagation to INDIRECT_REF if we can simplify only.
17509
17510 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17511
17512 * c-common.c (warn_for_collisions_1): Use appropriate option when
17513 warning.
17514
17515 2008-02-19 Nick Clifton <nickc@redhat.com>
17516
17517 PR other/31349
17518 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
17519 (handle_options): Fix indentation.
17520 (print_filtered_help): If no language-specific options were
17521 displayed tell the user how to list all the options supported by
17522 the language's front-end.
17523 (print_specific_help): Fix indentation and remove duplicate line.
17524 (common_handle_option): Handle the -v option.
17525 For --help enable the display of undocumented options if the -v
17526 switch has been included on the command line.
17527 For --help= check for overlaps in the arguments between the option
17528 classes and the language names and issue a warning when they
17529 cannot be disambiguated.
17530 * c.opt (v): Pass on to the common option handler.
17531
17532 2008-02-19 Revital Eres <eres@il.ibm.com>
17533
17534 * modulo-sched.c (sms_schedule): Change dump message when
17535 create_ddg function fails.
17536 (try_scheduling_node_in_cycle): Rename row to cycle.
17537 (print_partial_schedule): Rename CYCLE to ROW.
17538
17539 2008-02-19 Christian Bruel <christian.bruel@st.com>
17540 Zdenek Dvorak <ook@ucw.cz>
17541
17542 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
17543
17544 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
17545
17546 PR target/33555
17547 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
17548 (*x86_movdicc_0_m1_se): Ditto.
17549
17550 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
17551
17552 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
17553 (CMPtype): Define as __gcc_CMPtype.
17554 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
17555 (CMPtype): Define as __gcc_CMPtype.
17556
17557 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
17558
17559 Support valgrind 3.3 for --enable-checking=valgrind.
17560 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
17561 here.
17562 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
17563 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
17564 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
17565 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
17566 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
17567 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
17568 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
17569 respectively.
17570 * ggc-zone.c: Similar.
17571 * ggc-page.c: Similar.
17572
17573 2008-02-19 Paul Brook <paul@codesourcery.com>
17574
17575 PR target/35071
17576 * config/arm/ieee754-df.S: Fix do_it typo.
17577 * config/arm/ieee754-sf.S: Fix do_it typo.
17578
17579 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
17580
17581 PR target/35189
17582 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
17583 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
17584 (OPTION_MASK_ISA_SSE_SET): Likewise.
17585 (OPTION_MASK_ISA_SSE2_SET): Likewise.
17586 (OPTION_MASK_ISA_SSE3_SET): Likewise.
17587 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
17588 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
17589 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
17590 (OPTION_MASK_ISA_SSE4_SET): Likewise.
17591 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
17592 (OPTION_MASK_ISA_SSE5_SET): Likewise.
17593 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
17594 (OPTION_MASK_ISA_MMX_UNSET): Updated.
17595 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
17596 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
17597 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
17598 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
17599 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
17600 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
17601 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
17602 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
17603 (OPTION_MASK_ISA_SSE4): Removed.
17604 (ix86_handle_option): Turn on bits in ix86_isa_flags and
17605 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
17606 (override_options): Don't turn on implied SSE/MMX bits in
17607 ix86_isa_flags.
17608
17609 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
17610
17611 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17612 32bit host.
17613
17614 2008-02-18 Joey Ye <joey.ye@intel.com>
17615
17616 PR middle-end/34921
17617 * tree-nested.c (insert_field_into_struct): Set type alignment
17618 to field alignment if the former is less than the latter.
17619
17620 2008-02-18 Jakub Jelinek <jakub@redhat.com>
17621
17622 * BASE-VER: Set to 4.4.0.
17623
17624 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17625
17626 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
17627 * doc/cfg.texi: Likewise.
17628 * doc/extend.texi: Likewise.
17629 * doc/gty.texi: Likewise.
17630 * doc/invoke.texi: Likewise.
17631 * doc/loop.texi: Likewise.
17632 * doc/md.texi: Likewise.
17633 * doc/passes.texi: Likewise.
17634 * doc/rtl.texi: Likewise.
17635 * doc/sourcebuild.texi: Likewise.
17636 * doc/tm.texi: Likewise.
17637 * doc/tree-ssa.texi: Likewise.
17638
17639 2008-02-17 Richard Guenther <rguenther@suse.de>
17640
17641 PR middle-end/35227
17642 * tree-complex.c (init_parameter_lattice_values): Handle parameters
17643 without default definition.
17644
17645 2008-02-17 Richard Guenther <rguenther@suse.de>
17646
17647 PR tree-optimization/35231
17648 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
17649 if A | B != 1.
17650
17651 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
17652
17653 Revert:
17654 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
17655 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17656 libgcc_cmp_return mode.
17657
17658 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17659
17660 PR c/28368
17661 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
17662
17663 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
17664
17665 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
17666 multilibs.
17667
17668 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17669
17670 * doc/c-tree.texi: Use `@.' where appropriate.
17671 * doc/extend.texi: Likewise.
17672 * doc/install.texi: Likewise.
17673 * doc/invoke.texi: Likewise.
17674 * doc/loop.texi: Likewise.
17675 * doc/makefile.texi: Likewise.
17676 * doc/md.texi: Likewise.
17677 * doc/passes.texi: Likewise.
17678 * doc/standards.texi: Likewise.
17679 * doc/tm.texi: Likewise.
17680
17681 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17682
17683 PR middle-end/35196
17684 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
17685 in entry_bb.
17686 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
17687 rather than in entry_bb.
17688
17689 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
17690
17691 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17692 libgcc_cmp_return mode.
17693
17694 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17695
17696 PR middle-end/35130
17697 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
17698 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
17699
17700 2008-02-15 Richard Guenther <rguenther@suse.de>
17701 Zdenek Dvorak <ook@ucw.cz>
17702
17703 PR tree-optimization/35164
17704 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
17705 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
17706 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
17707 Only propagate addresses which do not have abnormal SSA_NAMEs
17708 in their operands.
17709
17710 2008-02-15 Joseph Myers <joseph@codesourcery.com>
17711
17712 PR target/35088
17713 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
17714
17715 2008-02-15 Jan Hubicka <jh@suse.cz>
17716
17717 PR middle-end/35149
17718 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
17719
17720 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
17721
17722 PR middle-end/34621
17723 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
17724 when calculating alignment_pad.
17725
17726 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
17727
17728 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
17729 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
17730 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
17731 and STACK_BOUNDARY define.
17732
17733 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
17734
17735 PR preprocessor/35061
17736 * c-pragma.c (handle_pragma_pop_macro): Check that
17737 pushed_macro_table has been allocated.
17738
17739 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
17740
17741 PR middle-end/35136
17742 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
17743 (force_gimple_operand): Likewise.
17744 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
17745 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
17746 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
17747 (find_interesting_uses_address): Check addressability and alignment
17748 of the base expression only after substituting bases of IVs into it.
17749
17750 2008-02-14 Michael Matz <matz@suse.de>
17751
17752 PR target/34930
17753 * function.c (instantiate_virtual_regs_in_insn): Reload address
17754 before falling back to reloading the whole operand.
17755
17756 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
17757
17758 * config/s390/s390.c (s390_mainpool_start): Emit the pool
17759 before the first section switch note.
17760
17761 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17762
17763 * doc/bugreport.texi: Update copyright years.
17764 * doc/c-tree.texi: Likewise.
17765 * doc/cfg.texi: Likewise.
17766 * doc/cpp.texi: Likewise.
17767 * doc/cppinternals.texi: Likewise.
17768 * doc/fragments.texi: Likewise.
17769 * doc/frontends.texi: Likewise.
17770 * doc/gcc.texi: Likewise.
17771 * doc/gty.texi: Likewise.
17772 * doc/hostconfig.texi: Likewise.
17773 * doc/implement-c.texi: Likewise.
17774 * doc/libgcc.texi: Likewise.
17775 * doc/loop.texi: Likewise.
17776 * doc/makefile.texi: Likewise.
17777 * doc/options.texi: Likewise.
17778 * doc/passes.texi: Likewise.
17779 * doc/rtl.texi: Likewise.
17780 * doc/sourcebuild.texi: Likewise.
17781 * doc/standards.texi: Likewise.
17782 * doc/tree-ssa.texi: Likewise.
17783 * doc/trouble.texi: Likewise.
17784
17785 * doc/extend.texi: Use @: or add comma where appropriate.
17786 * doc/invoke.texi: Likewise.
17787 * doc/tm.texi: Likewise.
17788
17789 2008-02-14 Alan Modra <amodra@bigpond.net.au>
17790
17791 PR target/34393
17792 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
17793 to a reg.
17794
17795 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
17796
17797 * doc/md.texi (clz, ctz): Add reference.
17798 * doc/rtl.texi (clz, ctz): Likewise.
17799
17800 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17801
17802 PR other/35148
17803 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
17804 srcdir.
17805
17806 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
17807
17808 * config/s390/s390.c (struct constant_pool): New field
17809 emit_pool_after added.
17810 (s390_mainpool_start): Set the emit_pool_after flag according
17811 to the section switch notes.
17812 (s390_mainpool_finish): Consider emit_pool_after when emitting
17813 the literal pool at the end of the function.
17814 (s390_chunkify_start): Force literal pool splits at section
17815 switch notes.
17816
17817 2008-02-13 Michael Matz <matz@suse.de>
17818
17819 PR debug/35065
17820 * var-tracking.c (clobber_variable_part): Correctly traverse the
17821 list.
17822
17823 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17824
17825 PR 29673
17826 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
17827 Add -fdump-ipa-inline.
17828 * tree-dump.c (dump_files): Remove tree-inlined dump.
17829 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
17830
17831 2008-02-12 Richard Guenther <rguenther@suse.de>
17832
17833 PR tree-optimization/35171
17834 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
17835 default defs.
17836
17837 2008-02-12 Richard Guenther <rguenther@suse.de>
17838
17839 PR middle-end/35163
17840 * fold-const.c (fold_widened_comparison): Use get_unwidened in
17841 value-preserving mode. Disallow final truncation.
17842
17843 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
17844
17845 PR middle-end/35136
17846 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
17847 code from here to...
17848 (force_gimple_operand): ...here.
17849
17850 2008-02-12 Jakub Jelinek <jakub@redhat.com>
17851
17852 PR c++/35144
17853 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
17854 non-compatible pointers.
17855 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
17856 different FIELD_DECLs, try harder by comparing field offsets, sizes
17857 and types.
17858
17859 PR inline-asm/35160
17860 * function.c (match_asm_constraints_1): Don't replace the same input
17861 multiple times.
17862
17863 2008-02-12 Anatoly Sokolov <aesok@post.ru>
17864
17865 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
17866 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
17867 (expand_epilogue): Restore RAMPZ register.
17868 * config/avr/avr.md (RAMPZ_ADDR): New constant.
17869
17870 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
17871
17872 * config/i386/cygwin.asm: (__alloca): Correct calling
17873 convention and alignment.
17874 (__chkstk): Force 8 byte stack alignment.
17875
17876 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
17877 Richard Guenther <rguenther@suse.de>
17878
17879 PR tree-optimization/33992
17880 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
17881 the zero we compare against.
17882
17883 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
17884
17885 PR libfortran/35063
17886 * gthr-win32.h (__gthread_mutex_destroy_function): New function
17887 to CloseHandle after unlocking to prevent accumulation of handle
17888 count.
17889
17890 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17891
17892 PR middle_end/34150
17893 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
17894 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
17895 and update LABEL_NUSES during and after reload.
17896
17897 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
17898
17899 PR middle-end/34627
17900 * combine.c (simplify_if_then_else): Make sure the comparison is
17901 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
17902
17903 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
17904
17905 PR bootstrap/35051
17906 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
17907 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
17908 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
17909 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
17910 * tree.h (get_type_static_bounds): Likewise.
17911
17912 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17913
17914 * doc/invoke.texi (Option Summary, C++ Dialect Options)
17915 (Objective-C and Objective-C++ Dialect Options, Warning Options):
17916 Make -Wfoo language annotations match what the compiler outputs.
17917
17918 2008-02-08 Sa Liu <saliu@de.ibm.com>
17919
17920 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
17921 intrinsics spu_convts, spu_convtu, spu_convtf.
17922
17923 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
17924
17925 * doc/extend.texi (Function Attributes) <noinline>: Mention
17926 asm ("") as method to keep calls.
17927
17928 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17929
17930 PR other/32754
17931 * doc/options.texi (Options): Replace references to opts.sh with
17932 optc-gen.awk.
17933 * opts-common.c: Likewise.
17934 * optc-gen.awk: Likewise.
17935
17936 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
17937
17938 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
17939
17940 2008-02-07 Richard Henderson <rth@redhat.com>
17941
17942 PR rtl-opt/33410
17943 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
17944 EXPR_LIST for the REG_EQUAL instead of a comparison with a
17945 funny mode.
17946
17947 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
17948
17949 PR tree-optimization/35085
17950 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
17951 for operand entry oe2 in addition to operand entry oe3 in order to
17952 expose more opportunities for vectorizer sum reduction.
17953
17954 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17955
17956 PR other/35107
17957 * Makefile.in (LIBS): Remove $(GMPLIBS).
17958 (cc1-dummy, cc1): Add $(GMPLIBS).
17959
17960 2008-02-06 Jan Hubicka <jh@suse.cz>
17961
17962 PR target/23322
17963 * i386.md (moddf_integer): Do not produce partial memory stalls for
17964 targets where it hurts.
17965
17966 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
17967
17968 PR target/35083
17969 * optabs.c (expand_float): Do not check for decimal modes when
17970 expanding unsigned integer through signed conversion.
17971
17972 2008-02-06 Nick Clifton <nickc@redhat.com>
17973
17974 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
17975 inside the clobber with a match_operand and duplicated operand
17976 number in the constraint.
17977 (ineqbranchsi): Delete redundant comment.
17978
17979 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
17980
17981 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
17982 builtin_define ("__USE_INIT_FINI__").
17983 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
17984 -msx multilibs.
17985 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
17986
17987 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17988
17989 PR documentation/30330
17990 * doc/invoke.texi (C++ Dialect Options)
17991 (Objective-C and Objective-C++ Dialect Options, Warning Options):
17992 For each warning option -Wfoo that allows -Wno-foo, ensure both
17993 -Wfoo and -Wno-foo are listed in the option index. Fix index
17994 entry of -Wswitch-default, index -Wnormalized= including the
17995 `=', and -Wlarger-than-@var{len} including @var{len}.
17996
17997 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
17998
17999 * config/i386/i386.md (floatunssisf2): Use
18000 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
18001 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
18002 Macroize expander using MODEF mode iterator.
18003
18004 2008-02-05 Diego Novillo <dnovillo@google.com>
18005
18006 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
18007
18008 PR 33738
18009 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
18010
18011 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18012
18013 PR other/35070
18014 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
18015
18016 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
18017
18018 PR target/35084
18019 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
18020 to indicate if a message should be generated.
18021 (init_cumulative_args): Updated.
18022 (function_value_32): Likewise.
18023
18024 2008-02-05 Joseph Myers <joseph@codesourcery.com>
18025
18026 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
18027
18028 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
18029
18030 PR target/35083
18031 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
18032 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
18033
18034 2008-02-04 Diego Novillo <dnovillo@google.com>
18035
18036 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
18037
18038 PR 33738
18039 * tree-vrp.c (vrp_evaluate_conditional): With
18040 -Wtype-limits, emit a warning when comparing against a
18041 constant outside the natural range of OP0's type.
18042
18043 2008-02-04 Richard Guenther <rguenther@suse.de>
18044
18045 PR middle-end/33631
18046 * expr.c (count_type_elements): Give for unions instead of
18047 guessing.
18048
18049 2008-02-04 Richard Guenther <rguenther@suse.de>
18050
18051 PR middle-end/35043
18052 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
18053 to TYPE_DOMAINs base type instead of using bitsizetype here.
18054
18055 2008-02-03 Jason Merrill <jason@redhat.com>
18056
18057 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
18058
18059 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18060
18061 PR other/29972
18062 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
18063 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
18064 (RS/6000 and PowerPC Options): Fix typos and markup.
18065 * doc/passes.texi (Tree-SSA passes): Likewise.
18066
18067 2008-02-02 Michael Matz <matz@suse.de>
18068
18069 PR target/35045
18070 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
18071 from record_last_reg_set_info.
18072 (record_last_reg_set_info): Take an RTX argument, iterate over all
18073 constituent hardregs.
18074 (record_last_set_info, record_opr_changes): Change calls to
18075 new signature or to record_last_reg_set_info_regno.
18076
18077 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18078
18079 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
18080
18081 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
18082
18083 PR rtl-optimization/34773
18084 * reg-notes.def (EQUAL): Mention significance of combination of
18085 REG_EQUAL and REG_RETVAL.
18086 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
18087 insn that has a REG_RETVAL.
18088
18089 2008-02-01 Roger Sayle <roger@eyesopen.com>
18090
18091 PR bootstrap/33781
18092 * configure.ac (--enable-fixed-point): Disable unless explicitly
18093 requested on IRIX.
18094 * configure: Regenerate.
18095
18096 2008-02-01 Richard Guenther <rguenther@suse.de>
18097
18098 PR other/35042
18099 * invoke.texi (-finline-limit): Remove no longer true parts
18100 of the documentation. Note that there is no default value.
18101
18102 2008-02-01 Andrew Pinski <pinskia@gmail.com>
18103 Mark Mitchell <mark@codesourcery.com>
18104 Ben Elliston <bje@au.ibm.com>
18105
18106 PR c/29326
18107 * doc/extend.texi (Other Builtins): Document.
18108
18109 2008-01-31 Tom Browder <tom.browder@gmail.com>
18110
18111 * doc/c-tree.texi (Types): Fix grammar.
18112 (Expression trees): Ditto.
18113 * doc/passes.texi (Tree-SSA passes): Ditto.
18114
18115 * doc/configterms.texi (Configure Terms): Fix typo.
18116 * doc/cpp.texi (Common Predefined Macros): Ditto.
18117 * doc/md.texi (Machine Constraints): Ditto.
18118
18119 * doc/makefile.texi (Makefile): Add comma.
18120
18121 2008-01-31 Tom Browder <tom.browder@gmail.com>
18122 Gerald Pfeifer <gerald@pfeifer.com>
18123
18124 * doc/sourcebuild.texi (Front End): Remove references to CVS
18125 and CVSROOT/modules.
18126 (Texinfo Manuals): Replace reference to CVS by one to SVN.
18127 (Back End): Remove reference to CVS.
18128
18129 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
18130
18131 PR target/34900
18132 * config/mips/mips.c (gen_load_const_gp): New function, taking a
18133 comment from...
18134 (mips16_gp_pseudo_reg): ...here.
18135 * config/mips/mips.md (load_const_gp): Replace with...
18136 (load_const_gp_<mode>): ...this :P-based insn.
18137
18138 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18139
18140 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
18141 options. Minor fixes.
18142 (-std): Move reference to standards closer to where language
18143 standards are first mentioned.
18144
18145 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
18146
18147 PR rtl-optimization/34995
18148 * reload.c (alternative_allows_const_pool_ref): Take an rtx
18149 parameter and return a bool. If the rtx parameter is nonnull,
18150 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
18151 (find_reloads): Update call accordingly. Pass the new operand
18152 if it needed no address reloads, otherwise pass null.
18153
18154 2008-01-30 Richard Henderson <rth@redhat.com>
18155
18156 PR c/34993
18157 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
18158 for unbounded arrays.
18159
18160 2008-01-30 Silvius Rus <rus@google.com>
18161
18162 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
18163
18164 2008-01-30 Jan Hubicka <jh@suse.cz>
18165
18166 PR target/34982
18167 * i386.c (init_cumulative_args): Use real function declaration when
18168 calling locally.
18169
18170 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
18171
18172 PR rtl-optimization/34998
18173 * global.c (build_insn_chain): Treat non-subreg_lowpart
18174 SUBREGs of pseudos as clobbering all the words covered by the
18175 SUBREG, not just all the bytes.
18176 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
18177 original df_ref rather than an extract parameter.
18178 (global_conflicts): Update call accordingly.
18179
18180 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
18181
18182 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
18183 the overflow check to make it easier to read.
18184 (__fixtfdi): Change the type of the ll member in union
18185 long_double to UDItype_x.
18186
18187 2008-01-30 Jakub Jelinek <jakub@redhat.com>
18188
18189 PR middle-end/34969
18190 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
18191 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
18192 * tree-inline.c (fold_marked_statements): Call
18193 cgraph_update_edges_for_call_stmt if folding a call statement.
18194 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
18195 debug_generic_stmt calls, reset it back afterwards.
18196
18197 PR c/35017
18198 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
18199 static decls.
18200 * c-typeck.c (build_external_ref): Don't pedwarn about
18201 static vars in current function's scope.
18202
18203 2008-01-29 Joseph Myers <joseph@codesourcery.com>
18204
18205 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
18206
18207 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
18208
18209 PR c/35002
18210 * ipa-struct-reorg.c: Fix spelling.
18211 * params.def: Ditto.
18212
18213 2008-01-29 Richard Guenther <rguenther@suse.de>
18214
18215 PR middle-end/35006
18216 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
18217 field.
18218 * tree-inline.c (remap_type): Increment remapping_type_depth
18219 around remapping types.
18220 (copy_body_r): Only add referenced variables if they are referenced
18221 from code, not types.
18222
18223 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
18224
18225 PR c++/34055
18226 PR c++/34103
18227 PR c++/34219
18228 PR c++/34606
18229 PR c++/34753
18230 PR c++/34754
18231 PR c++/34755
18232 PR c++/34919
18233 PR c++/34961
18234 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
18235 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
18236
18237 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
18238
18239 PR target/34412
18240 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
18241 pointer for tiny stack.
18242
18243 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
18244
18245 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
18246
18247 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
18248
18249 * config/vx-common.h: Fix typo in comment.
18250
18251 2008-01-28 Ian Lance Taylor <iant@google.com>
18252
18253 PR c++/34862
18254 PR c++/33407
18255 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18256 coalesce pointers if they have different DECL_NO_TBAA_P values.
18257 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
18258 between variables with different DECL_NO_TBAA_P values.
18259
18260 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
18261
18262 PR 31535
18263 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
18264 are not legitimate small data references on SPE targets.
18265
18266 2008-01-28 David Daney <ddaney@avtrex.com>
18267
18268 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
18269
18270 2008-01-28 David Daney <ddaney@avtrex.com>
18271
18272 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
18273
18274 2008-01-27 Joseph Myers <joseph@codesourcery.com>
18275
18276 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
18277 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
18278 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
18279 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
18280 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
18281 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
18282 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
18283 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
18284
18285 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
18286
18287 * basic-block.h (condjump_equiv_p): Fix comment.
18288
18289 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
18290
18291 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
18292 print_generic_stmt_indented): Fix comment.
18293
18294 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
18295
18296 * configure.ac (__stack_chk_fail): Add detecion for availability
18297 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
18298 * configure: Regenerate.
18299
18300 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
18301
18302 PR middle-end/34688
18303 * final.c (output_addr_const): Handle TRUNCATE.
18304
18305 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
18306
18307 PR target/34711
18308 * tree-ssa-loop-ivopts.c (comp_cost): New type.
18309 (zero_cost, infinite_cost): New constants.
18310 (struct cost_pair): Change type of cost to comp_cost.
18311 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
18312 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
18313 New functions.
18314 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
18315 split_address_cost, ptr_difference_cost, difference_cost,
18316 get_computation_cost_at, get_computation_cost,
18317 determine_use_iv_cost_generic, determine_use_iv_cost_address,
18318 determine_use_iv_cost_condition, determine_use_iv_costs,
18319 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
18320 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
18321 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
18322 Change type of cost to comp_cost.
18323 (determine_iv_cost): Increase cost of non-original ivs, instead
18324 of decreasing the cost of original ones.
18325 (get_address_cost): Indicate the complexity of the addressing mode
18326 in comp_cost.
18327 (try_add_cand_for): Prefer using ivs not specific to some object.
18328 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
18329
18330 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
18331 Janis Johnson <janis187@us.ibm.com>
18332
18333 PR target/34814
18334 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
18335 (TARGET_INSTANTIATE_DECLS): Likewise.
18336 * target.h (expand_to_rtl_hook): New target hook.
18337 (instantiate_decls): Likewise.
18338 * function.c (instantiate_decl): Make non-static. Rename to...
18339 (instantiate_decl_rtl): ... this.
18340 (instantiate_expr): Use instantiate_decl_rtl.
18341 (instantiate_decls_1): Likewise.
18342 (instantiate_decls): Likewise.
18343 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
18344 * function.h (instantiate_decl_rtl): Add prototype.
18345 * cfgexpand.c (target.h): New include.
18346 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
18347 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
18348 (TARGET_INSTANTIATE_DECLS): Likewise.
18349 (TARGET_INITIALIZER): New target hooks added.
18350 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
18351 New prototype.
18352 * config/rs6000/rs6000.c (tree-flow.h): New include.
18353 (machine_function): Add sdmode_stack_slot field.
18354 (rs6000_alloc_sdmode_stack_slot): New function.
18355 (rs6000_instantiate_decls): Likewise.
18356 (rs6000_secondary_memory_needed_rtx): Likewise.
18357 (rs6000_check_sdmode): Likewise.
18358 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
18359 (TARGET_INSTANTIATE_DECLS): Likewise.
18360 (rs6000_hard_regno_mode_ok): Allow SDmode.
18361 (num_insns_constant): Likewise. Handle _Decimal32 constants.
18362 (rs6000_emit_move): Handle SDmode.
18363 (function_arg_advance): Likewise.
18364 (function_arg): Likewise.
18365 (rs6000_gimplify_va_arg): Likewise. Add special handling of
18366 SDmode var args for 32-bit compiles.
18367 (rs6000_secondary_reload_class): Handle SDmode.
18368 (rs6000_output_function_epilogue): Likewise.
18369 (rs6000_function_value): Simplify if statement.
18370 (rs6000_libcall_value): Likewise.
18371 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
18372 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
18373 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
18374 (movsd_hardfloat): New define_insn.
18375 (movsd_softfloat): Likewise.
18376 (movsd_store): Likewise.
18377 (movsd_load): Likewise.
18378 (extendsddd2): Likewise.
18379 (extendsdtd2): Likewise.
18380 (truncddsd2): Likewise.
18381 (movdd_hardfloat64): Fixup comment.
18382 (UNSPEC_MOVSD_LOAD): New constant.
18383 (UNSPEC_MOVSD_STORE): Likewise.
18384
18385 2008-01-26 Jakub Jelinek <jakub@redhat.com>
18386
18387 PR c++/34965
18388 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
18389 TRUTH_XOR_EXPR.
18390 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
18391 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
18392 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
18393 and TRUTH_XOR_EXPR.
18394
18395 2008-01-26 David Edelsohn <edelsohn@gnu.org>
18396
18397 PR target/34794
18398 * config.gcc: Separate AIX 5.3 from AIX 6.1.
18399 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18400 __LONGDOUBLE128 too.
18401 * config/rs6000/aix61.h: New file.
18402
18403 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
18404
18405 PR rtl-optimization/34959
18406 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
18407 popcount and parity rtxes the same mode as their operand.
18408 Truncate or extend the result to the return value's mode
18409 if necessary.
18410
18411 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
18412
18413 PR target/34981
18414 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
18415 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
18416 to GOT_VERSION_REGNUM.
18417 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
18418 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
18419 * config/mips/mips.c (mips_emit_call_insn): New function.
18420 (mips_call_tls_get_addr): Call mips_expand_call directly.
18421 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
18422 emit_call_insn.
18423 (mips16_build_call_stub): Likewise. Return the call insn or null.
18424 (mips_expand_call): Update the call to mips16_build_call_stub
18425 accordingly and a remove redundant condition. Assert that MIPS16
18426 stubs do not use lazy binding. Use mips_emit_call_insn and return
18427 the call insn.
18428 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
18429 TARGET_USE_GOT.
18430 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
18431 (mips_avoid_hazard): Remove hazard_set handling.
18432 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
18433 (UNSPEC_RESTORE_GP): ...this.
18434 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
18435 (FAKE_CALL_REGNO): Rename to...
18436 (GOT_VERSION_REGNUM): ...this.
18437 (type): Add "ghost" value. Add an associated insn reservation.
18438 (hazard_set): Remove.
18439 (exception_receiver): Rename to...
18440 (restore_gp): ...this and update the unspec identifier accordingly.
18441 (exception_receiver, nonlocal_got_receiver): New expanders.
18442 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
18443 FAKE_CALL_REGNO. Remove hazard_set attribute.
18444 (set_got_version, update_got_version): New patterns.
18445
18446 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
18447
18448 PR target/34970
18449 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
18450
18451 2008-01-25 Joseph Myers <joseph@codesourcery.com>
18452
18453 PR other/31955
18454 * doc/install.texi2html: Generate gcc-vers.texi.
18455
18456 2008-01-25 DJ Delorie <dj@redhat.com>
18457
18458 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18459
18460 2008-01-25 Joseph Myers <joseph@codesourcery.com>
18461
18462 * config/c4x: Remove directory.
18463 * config.gcc (crx-*, mt-*): Mark obsolete.
18464 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
18465 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
18466 sh-*-rtemscoff*): Remove cases.
18467 * defaults.h (C4X_FLOAT_FORMAT): Remove.
18468 * real.c (encode_c4x_single, decode_c4x_single,
18469 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
18470 c4x_extended_format): Remove.
18471 * real.h (c4x_single_format, c4x_extended_format): Remove.
18472 * doc/extend.texi (interrupt, naked): Remove mention of attributes
18473 on C4x.
18474 (Pragmas): Remove comment about c4x pragmas.
18475 * doc/install.texi (c4x): Remove target-specific instructions.
18476 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
18477 * doc/md.texi (Machine Constraints): Remove C4x documentation.
18478 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
18479 refer to C4x source files as examples.
18480 (C4X_FLOAT_FORMAT): Remove documentation.
18481
18482 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
18483
18484 * config/bfin/bfin.c (override_options): Reorder tests so that
18485 flag_pic gets enabled for -msep-data.
18486
18487 2008-01-25 Richard Guenther <rguenther@suse.de>
18488
18489 PR middle-end/32244
18490 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
18491 to its bitfield precision if required.
18492
18493 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18494
18495 PR middle-end/33880
18496 * tree-nested.c (walk_omp_for): New function.
18497 (convert_nonlocal_reference, convert_local_reference): Call
18498 walk_omp_for on OMP_FOR.
18499 (convert_call_expr): Call walk_body on OMP_FOR's
18500 OMP_FOR_PRE_INIT_BODY.
18501
18502 2008-01-25 Richard Guenther <rguenther@suse.de>
18503
18504 PR tree-optimization/34966
18505 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
18506 default defs and PHI_NODEs we have to insert after the
18507 defining statement.
18508
18509 2008-01-24 Nick Clifton <nickc@redhat.com>
18510
18511 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
18512 Provide a default definition.
18513 (LIBGCC2_UNITS_PER_WORD): Likewise.
18514
18515 * config/stormy16/stormy16.c: Include df.h for the prototype
18516 for df_regs_ever_live_p.
18517 (xstormy16_expand_builtin_va_start): Convert the stack offset
18518 into a component_ref and then use POINTER_PLUS_EXPR to add it
18519 to the incoming_virtual_args_rtx.
18520 (xstormy16_gimplify_va_arg_expr): Rename to
18521 xstormy16_gimplify_va_arg_expr.
18522 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
18523 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
18524 xstormy16_gimplify_va_arg_expr.
18525 Fix up some formatting issues.
18526
18527 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
18528 Move to predicates.md.
18529 (xs_hi_general_operand): Likewise.
18530 (xs_hi_nonmemory_operand): Likewise.
18531 * config/stormy16/predicates.md:
18532 (xstormy16_carry_plus_operand): New predicate.
18533 (xs_hi_general_operand): New predicate.
18534 (xs_hi_nonmemory_operand): New predicate.
18535 * config/stormy16/stormy16-protos.h:
18536 (xstormy16_carry_plus_operand): Delete prototype.
18537 (xs_hi_general_operand): Likewise.
18538 (xs_hi_nonmemory_operand): Likewise.
18539
18540 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
18541 modifiers as they are no longer needed and they can trigger
18542 reload spill failures.
18543
18544 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
18545 with a match_operand in order to help reload.
18546
18547 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
18548 constraint with 'e' for the 8th alternative as this version of
18549 the mov.w instruction only accepts the lower 8 registers.
18550
18551 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
18552
18553 PR target/34856
18554 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
18555 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
18556 vector elements.
18557
18558 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18559
18560 PR middle-end/33333
18561 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
18562
18563 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
18564
18565 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
18566 New functions.
18567 (remove_structure): Update allocations list before removing structure.
18568
18569 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
18570
18571 * ipa-struct-reorg.c (is_safe_cond_expr,
18572 create_new_stmts_for_cond_expr): Use integer_zerop function,
18573 that recognize not only zero-pointer, but zero-integer too.
18574
18575 2008-01-25 Ben Elliston <bje@au.ibm.com>
18576
18577 PR other/22232
18578 * fixproto: Escape "." in sed expression that strips leading "./".
18579
18580 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
18581
18582 PR driver/34904
18583 * gcc.c (SWITCH_OK): Removed.
18584 (SWITCH_LIVE): Changed to bit.
18585 (SWITCH_FALSE): Likewise.
18586 (SWITCH_IGNORE): Likewise.
18587 (switchstr): Change live_cond to unsigned int.
18588 (process_command): Replace SWITCH_OK with 0.
18589 (do_self_spec): Likewise.
18590 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
18591 (give_switch): Likewise.
18592 (used_arg): Likewise.
18593 (do_spec_1): Set the SWITCH_IGNORE bit.
18594 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
18595 bits. Set the SWITCH_LIVE bit.
18596
18597 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
18598
18599 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
18600
18601 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
18602
18603 PR tree-optimization/34472
18604 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
18605 parameter to a "bool *" and set *DATA to false if there is
18606 an unsafe access. Do not delete the structure here.
18607 (check_cond_exprs): Delete it here instead.
18608 (check_cond_exprs, exclude_cold_structs): Do not increase
18609 I when removing a structure.
18610
18611 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
18612
18613 PR target/34856
18614 * config/i386/i386.c (ix86_expand_vector_init): Consider only
18615 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
18616
18617 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
18618
18619 PR middle-end/34934
18620 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
18621 a fixed vector for stack.
18622
18623 2008-01-24 Ben Elliston <bje@au.ibm.com>
18624
18625 PR c++/25701
18626 * doc/gcc.texi (Software development): Add a direntry for g++.
18627
18628 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
18629
18630 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
18631 stale and straggling -fforce-addr comments above.
18632
18633 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
18634 define.
18635 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
18636 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
18637
18638 2008-01-23 Michael Matz <matz@suse.de>
18639
18640 PR debug/34895
18641 * dwarf2out.c (force_type_die): Use modified_type_die instead of
18642 gen_type_die.
18643
18644 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
18645
18646 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
18647 malloc result type.
18648
18649 2008-01-23 Anatoly Sokolov <aesok@post.ru>
18650
18651 * config/avr/avr.c (avr_current_arch): New variable.
18652 (avr_arch_types): Add 'avr31' and 'avr51' entries.
18653 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
18654 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
18655 (avr_override_options): Init 'avr_current_arch'.
18656 (base_arch_s): Move from here...
18657 * config/avr/avr.h (base_arch_s): ... here. Add new members
18658 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
18659 'mega' to 'have_jmp_call'.
18660 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
18661 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
18662 macros.
18663 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
18664 architectures.
18665 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18666 MULTILIB_MATCHES): Ditto.
18667
18668 2008-01-23 Richard Guenther <rguenther@suse.de>
18669
18670 PR middle-end/31529
18671 * cgraphunit.c (cgraph_reset_node): Always mark the node
18672 not reachable if it is not queued already.
18673
18674 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
18675
18676 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
18677 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
18678 (cputype_selected): New static variable.
18679 (bfin_handle_option): Set it if -mcpu is used.
18680 (override_option): Select default set of workarounds if no cpu type
18681 selected on the command line.
18682 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
18683
18684 From Michael Frysinger <michael.frysinger@analog.com>
18685 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
18686 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
18687
18688 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
18689 for bf547, bf523, bf524, and bf526.
18690 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
18691 bf526.
18692 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
18693 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
18694 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
18695 __ADSPBF547__ and __ADSPBF54x__ for bf547.
18696 * doc/invoke.texi (Blackfin Options): Document that
18697 -mcpu now accept bf547, bf523, bf524, and bf526.
18698
18699 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
18700
18701 PR rtl-optimization/34628
18702 * combine.c (try_combine): Stop and undo after the first combination
18703 if an autoincrement side-effect on the first insn has effectively
18704 been lost.
18705
18706 2008-01-22 David Edelsohn <edelsohn@gnu.org>
18707
18708 PR target/34529
18709 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
18710 Offset addresses are not valid for Altivec or paired float modes.
18711
18712 2008-01-22 Jakub Jelinek <jakub@redhat.com>
18713
18714 PR c++/34607
18715 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
18716 if DECL_INITIAL (decl) is error_mark_node.
18717
18718 PR c++/34914
18719 * c-common.c (handle_vector_size_attribute): Only allow
18720 integral, scalar float and fixed point types. Handle OFFSET_TYPE
18721 the same way as pointer, array etc. types.
18722 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
18723
18724 PR c++/34917
18725 * tree.c (build_type_attribute_qual_variant): Call
18726 build_qualified_type if attributes are equal, but quals are not.
18727
18728 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18729
18730 PR 32102
18731 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
18732 * flags.h (warn_strict_aliasing): Remove.
18733 (warn_strict_overflow): Remove.
18734 * opts.c (warn_strict_aliasing): Remove.
18735 (warn_strict_overflow): Remove.
18736 * c-opts.c (c_common_handle_option): -Wall only sets
18737 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
18738 (c_common_post_options): Give default values to -Wstrict-aliasing
18739 and -Wstrict-overflow if they are uninitialized.
18740 * common.opt (Wstrict-aliasing): Specify Var and Init.
18741 (Wstrict-overflow): Likewise.
18742
18743 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
18744
18745 PR rtl-optimization/26854
18746 PR rtl-optimization/34400
18747 PR rtl-optimization/34884
18748 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
18749 DF_RD->gen.
18750 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
18751 (df_rd_bb_info.expanded_lr_out): Deleted
18752 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
18753 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
18754 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18755 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18756 Removed code to allocate, initialize or free expanded_lr_out.
18757 (df_rd_bb_local_compute_process_def): Restructured to make more
18758 understandable.
18759 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
18760 sets if the sets are being trimmed.
18761
18762 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
18763
18764 PR bootstrap/32287
18765 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
18766 (as_vers): Likewise.
18767 * configure: Regenerated.
18768
18769 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18770
18771 PR middle-end/33092
18772 * tree-pass.h (pass_build_alias): New pass.
18773 * tree-ssa-alias.c (gate_build_alias): New.
18774 (pass_build_alias): New.
18775 * passes.c (init_optimization_passes): Add pass_build_alias after
18776 pass_create_structure_vars.
18777
18778 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
18779
18780 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
18781 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
18782 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
18783 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
18784 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
18785 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
18786 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
18787 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
18788 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
18789 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
18790 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
18791 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
18792 * config/s390/s390.md (FP_ALL): New mode iterator.
18793 (_d): New mode attribute.
18794 ("*signbit<mode>2>"): Changed mode of first operand.
18795 ("isinf<mode>2"): Changed mode of first operand.
18796 ("*TDC_insn"): Adaptation for DFP modes.
18797
18798 2008-01-22 Ben Elliston <bje@au.ibm.com>
18799
18800 * tree.c (check_qualified_type): Improve function description.
18801
18802 2008-01-21 Jason Merrill <jason@redhat.com>
18803
18804 PR c++/34196
18805 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
18806 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
18807 if it is set.
18808
18809 2008-01-21 DJ Delorie <dj@redhat.com>
18810
18811 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
18812 return zero.
18813
18814 2008-01-21 Richard Guenther <rguenther@suse.de>
18815
18816 PR middle-end/34856
18817 * tree-cfg.c (verify_expr): Allow all invariant expressions
18818 instead of just constant class ones as reference argument.
18819 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
18820 like any other constant.
18821 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18822
18823 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
18824
18825 * regmove.c (fixup_match_1): Update call crossed frequencies.
18826
18827 2008-01-21 Richard Guenther <rguenther@suse.de>
18828
18829 PR c/34885
18830 * tree-inline.c (setup_one_parameter): Deal with mismatched
18831 types using a VIEW_CONVERT_EXPR.
18832
18833 2008-01-21 Alon Dayan <alond@il.ibm.com>
18834 Olga Golovanevsky <olga@il.ibm.com>
18835
18836 PR tree-optimization/34701
18837 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
18838 when the structure size is not a power of 2.
18839
18840 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
18841
18842 * doc/install.texi: Add doc for --enable-checking=df.
18843
18844 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
18845
18846 PR rtl-optimization/34808
18847 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
18848
18849 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
18850
18851 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
18852 input.
18853
18854 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
18855
18856 PR rtl-optimization/26854
18857 PR rtl-optimization/34400
18858 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
18859 DF_RD->gen.
18860 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
18861 (df_rd_bb_info.expanded_lr_out): New.
18862 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
18863 * loop_iv.c (iv_analysis_loop_init): Ditto.
18864 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18865 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18866 Added code to allocate, initialize or free expanded_lr_out.
18867 (df_rd_bb_local_compute_process_def): Restructured to make
18868 more understandable.
18869 (df_rd_confluence_n): Add code to do nothing with fake edges and
18870 code to no apply invalidate_by_call sets if the sets are being trimmed.
18871 (df_lr_local_finalize): Renamed to df_lr_finalize.
18872 (df_live_local_finalize): Renamed to df_live_finalize.
18873
18874 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
18875
18876 PR target/34831
18877 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
18878 deciding whether to use reciprocal instructions.
18879
18880 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
18881
18882 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
18883 dwarf2out_note_section_used if cold_text_section is NULL.
18884
18885 2008-01-19 Jakub Jelinek <jakub@redhat.com>
18886
18887 PR gcov-profile/34610
18888 * tree-cfg.c (make_edges): Mark both outgoing edges from
18889 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
18890 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
18891 from OMP_FOR and OMP_CONTINUE outgoing edges.
18892
18893 * tree-profile.c (tree_profiling): Return early if
18894 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
18895 at the end.
18896 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
18897 from cfun to child_cfun.
18898 * function.h (struct function): Add after_tree_profile bit.
18899
18900 2008-01-19 Anatoly Sokolov <aesok@post.ru>
18901
18902 * config/avr/avr.S (_exit): Disable interrupt.
18903
18904 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
18905 Steven Bosscher <stevenb.gcc@gmail.com>
18906
18907 PR rtl-optimization/26854
18908 PR rtl-optimization/34400
18909 * df-problems.c (df_live_scratch): New scratch bitmap.
18910 (df_live_alloc): Allocate df_live_scratch when doing df_live.
18911 (df_live_reset): Clear the proper bitmaps.
18912 (df_live_bb_local_compute): Only process the artificial defs once
18913 since the order is not important.
18914 (df_live_init): Init the df_live sets only with the variables
18915 found live by df_lr.
18916 (df_live_transfer_function): Use the df_lr sets to prune the
18917 df_live sets as they are being computed.
18918 (df_live_free): Free df_live_scratch.
18919
18920 2008-01-18 Ian Lance Taylor <iant@google.com>
18921
18922 * common.opt: Add fmerge-debug-strings.
18923 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
18924 flag_merge_debug_strings rather than flag_merge_constants.
18925 * doc/invoke.texi (Option Summary): Mention
18926 -fmerge-debug-strings.
18927 (Debugging Options): Document -fmerge-debug-strings.
18928
18929 2008-01-18 Ian Lance Taylor <iant@google.com>
18930
18931 PR c++/33407
18932 * tree.h (DECL_IS_OPERATOR_NEW): Define.
18933 (struct tree_function_decl): Add new field operator_new_flag.
18934 * tree-inline.c (expand_call_inline): When inlining a call to
18935 operator new, force the return value to go into a variable, and
18936 set DECL_NO_TBAA_P on that variable.
18937 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
18938
18939 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
18940
18941 PR debug/34484
18942 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
18943 DWARF2_DEBUGGING_INFO.
18944 (dwarf2out_note_section_used): Ditto. Add prototype.
18945 (have_multiple_function_sections, text_section_used,
18946 cold_text_section_used, *cold_text_sections): Move declarations
18947 before their uses.
18948
18949 2008-01-17 Bob Wilson <bob.wilson@acm.org>
18950
18951 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
18952 field and add signal_ra.
18953 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
18954 assignments to frame state pc. Move end of stack check after
18955 MD_FALLBACK_FRAME_STATE_FOR.
18956 (uw_update_context_1): Use frame state signal_regs if set, instead
18957 of checking signal_frame flag.
18958 (uw_update_context): Use frame state signal_ra if set.
18959 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
18960 * config/xtensa/linux-unwind.h: New file.
18961
18962 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
18963
18964 * modulo-sched.c (get_sched_window): Fix comment typo.
18965
18966 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
18967
18968 PR tree-optimization/34648
18969 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
18970
18971 2008-01-17 Anatoly Sokolov <aesok@post.ru>
18972
18973 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
18974 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
18975
18976 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
18977
18978 PR rtl-optimization/34400
18979 * df-core.c (df_worklist_dataflow_overeager,
18980 df_worklist_dataflow_doublequeue): New functions.
18981 (df_worklist_dataflow): Two different worklist solvers.
18982 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
18983 New param.
18984
18985 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
18986
18987 PR testsuite/34821
18988 * doc/invoke.texi: Document the dependence on pthread for fopenmp
18989 and ftree-parallelize-loops.
18990
18991 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
18992
18993 PR rtl-optimization/34826
18994 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
18995
18996 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
18997
18998 * global.c (find_reg): Mark the eh regs as used if necessary.
18999 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
19000 * ra.h (struct allocno): no_eh_reg field added. Changed
19001 no_stack_reg type to bitfield.
19002
19003 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
19004
19005 * tree.c (substitute_in_expr): Add missing 'break'.
19006
19007 2008-01-17 Richard Guenther <rguenther@suse.de>
19008
19009 PR tree-optimization/34825
19010 * tree-ssa-math-opts.c (is_division_by): Do not recognize
19011 x / x as division to handle.
19012
19013 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19014
19015 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
19016 "-pthread" is specified.
19017 * pa-hpux11.h (LIB_SPEC): Likewise.
19018
19019 2008-01-16 Janis Johnson <janis187@us.ibm.com>
19020 Peter Bergner <bergner@vnet.ibm.com>
19021
19022 PR rtl-optimization/33796
19023 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
19024
19025 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19026
19027 PR libgfortran/34699
19028 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
19029 static links.
19030 * pa-hpux10.h (LINK_SPEC): Likewise.
19031 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
19032
19033 2008-01-16 Richard Guenther <rguenther@suse.de>
19034
19035 PR middle-end/32628
19036 * fold-const.c (fold_convert_const_int_from_int): Do not
19037 set overflow if that occured only because of a sign extension
19038 change when converting from/to a sizetype with the same
19039 precision and signedness.
19040
19041 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
19042
19043 PR debug/34249
19044 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
19045 location address to the correct place. Update copyright year.
19046
19047 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
19048
19049 * lambda-code.c (lambda_transform_legal_p): Handle the case of
19050 no dependences in the dependence_relations vector.
19051
19052 2008-01-16 Jan Hubicka <jh@suse.cz>
19053
19054 PR rtl-optimization/31396
19055 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
19056 * cfg.c (dump_reg_info): Print it.
19057 * regs.h (struct reg_info_t): add freq_calls_crossed.
19058 (REG_FREQ_CALLS_CROSSED): New macro.
19059 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
19060 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
19061 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
19062 regmove_optimize): Update call crossed frequencies.
19063 * local-alloc.c (struct qty): Add freq_calls_crossed.
19064 (alloc_qty): Copute freq_calls_crossed.
19065 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
19066 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
19067 * ra.h (struct allocno): Add freq_calls_crossed.
19068
19069 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
19070
19071 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
19072 libgomp when compiling with ftree-parallelize-loops.
19073 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
19074
19075 2008-01-16 Richard Guenther <rguenther@suse.de>
19076
19077 PR tree-optimization/34769
19078 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
19079 * tree.c (int_cst_value): Instead make this function more
19080 permissive in what it accepts as valid input. Document this
19081 function always sign-extends the value.
19082
19083 2008-01-16 Jakub Jelinek <jakub@redhat.com>
19084 Richard Guenther <rguenther@suse.de>
19085
19086 PR c/34668
19087 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
19088 (gimple_fold_indirect_ref_rhs): ... this.
19089 (gimple_fold_indirect_ref): New function with foldings
19090 that preserve lvalueness.
19091 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
19092 * tree-flow.h (gimple_fold_indirect_ref): Declare.
19093 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
19094 to fold an INDIRECT_REF, fall back to the old use of
19095 fold_indirect_ref_1.
19096
19097 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
19098
19099 * tree-data-ref.c (subscript_dependence_tester_1): Call
19100 free_conflict_function.
19101 (compute_self_dependence): Same.
19102
19103 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
19104
19105 PR debug/34249
19106 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
19107 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
19108 function global.
19109 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
19110 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
19111 for DWARF2_UNWIND_INFO targets.
19112
19113 2008-01-16 Richard Guenther <rguenther@suse.de>
19114
19115 PR c/34768
19116 * c-typeck.c (common_pointer_type): Do not merge inconsistent
19117 type qualifiers for function types.
19118
19119 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
19120
19121 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
19122 loop_iterator li from previous commit.
19123
19124 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
19125
19126 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
19127
19128 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
19129
19130 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
19131 (parallelize_loops): Don't parallelize irreducible components.
19132
19133 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19134
19135 PR c++/24924
19136 * c-opts (c_common_post_options): Do not enable CPP
19137 flag_pedantic_errors by default.
19138
19139 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
19140
19141 PR rtl-optimization/31944
19142 * cse.c (remove_pseudo_from_table): New function.
19143 (merge_equiv_classes): Use above function to remove pseudo-registers.
19144 (invalidate): Likewise.
19145
19146 2008-01-13 Richard Guenther <rguenther@suse.de>
19147
19148 PR middle-end/34601
19149 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
19150 instead of TYPE_MODE to deal with calls from expand_one_error_var.
19151
19152 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
19153
19154 * gcse.c (cprop_jump): Call validate_unshare_change instead of
19155 validate_change to unshare the source of the PC set.
19156
19157 2008-01-12 Jan Hubicka <jh@suse.cz>
19158
19159 PR middle-end/32135
19160 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
19161 references above array bounds. This might trigger bounds checks for
19162 pointers to arrays.
19163
19164 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
19165
19166 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
19167 new_replaceable_dependencies.
19168
19169 2008-01-12 Doug Kwan <dougkwan@google.com>
19170
19171 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
19172 instead of OPT_Wreturn_type in warning due to ignored return type
19173 qualifiers.
19174 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
19175 options included in -Wextra.
19176 * c.opt: New option -Wignored_qualifiers.
19177 * doc/invoke.texi (Warning Options, -Wextra): Add new option
19178 -Wignore_qualifiers.
19179 (-Wignored-qualifiers): Document.
19180 (-Wreturn-type): Remove description of functionality now handled
19181 by -Wignored-qualifiers.
19182
19183 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
19184
19185 PR ada/33788
19186 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
19187 NOP_EXPR if it is between integral types with the same precision.
19188
19189 2008-01-12 Jan Hubicka <jh@suse.cz>
19190
19191 PR other/28023
19192 * invoke.texi (max-inline-recursive-depth): Fix default value.
19193
19194 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
19195
19196 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
19197 correct type.
19198
19199 2008-01-11 Bob Wilson <bob.wilson@acm.org>
19200
19201 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
19202
19203 2008-01-11 James E. Wilson <wilson@specifix.com>
19204
19205 PR target/26015
19206 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
19207
19208 2008-01-11 Anatoly Sokolov <aesok@post.ru>
19209
19210 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
19211 save/restore frame pointer register and don't use 'call-prologues'
19212 optimization in function with "OS_task" attribute.
19213
19214 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
19215
19216 PR middle-end/31309
19217 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
19218 when copying to memory.
19219
19220 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
19221
19222 PR rtl-optimization/30905
19223 * cfgcleanup.c: Include dce.h
19224 (crossjumps_occured): New global variable.
19225 (try_crossjump_bb): Exit loop after finding a fallthru edge.
19226 If something changed, set crossjumps_occured to true.
19227 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
19228 Don't add/remove fake edges to exit here...
19229 (cleanup_cfg): ...but do it here, when crossjumping.
19230 Run a fast DCE when successful crossjumps occured in the latest
19231 iteration of try_optimize_cfg.
19232
19233 2008-01-11 Richard Guenther <rguenther@suse.de>
19234
19235 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
19236 (struct vn_unary_op_s): Likewise.
19237 (vn_reference_insert): Free old reference on hash collision.
19238
19239 2008-01-10 Raksit Ashok <raksit@google.com>
19240
19241 PR rtl-optimization/27971
19242 * combine.c (find_split_point): Split PLUS expressions which are
19243 inside a MEM rtx, and whose first operand is complex.
19244
19245 2008-01-10 DJ Delorie <dj@redhat.com>
19246
19247 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
19248 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
19249 (m32c_hard_regno_ok): Call the underlying function.
19250
19251 2008-01-10 Richard Guenther <rguenther@suse.de>
19252
19253 PR middle-end/34683
19254 * tree-cfg.c (tree_merge_blocks): Do not go through the
19255 full-blown folding and stmt updating path if we just deal
19256 with virtual operands.
19257 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
19258 test for abnormal SSA_NAMEs.
19259
19260 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
19261
19262 PR middle-end/34641
19263 * reload.c (push_reload): Add assertions. All constants from
19264 reg_equiv_constant should have been used for replacing the respective
19265 pseudo earlier.
19266 (find_reloads_address): Invoke find_reloads_address_part for
19267 constant taken from the reg_equiv_constant array.
19268
19269 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
19270
19271 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
19272 field (valnum) the first in the struct. Replace bools with
19273 unit bit fields.
19274
19275 2008-01-10 Richard Guenther <rguenther@suse.de>
19276
19277 PR tree-optimization/34651
19278 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
19279 types and ordering for masking and converting.
19280
19281 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
19282
19283 PR tree-optimization/34017
19284 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
19285 also for PHI_NODE expressions.
19286
19287 2008-01-09 Jan Hubicka <jh@suse.cz>
19288
19289 PR tree-optimization/34708
19290 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
19291 based on number of case labels.
19292 (init_inline_once): Remove switch_cost.
19293 * tree-inline.h (eni_weights_d): Remove switch_cost.
19294
19295 2008-01-09 Richard Guenther <rguenther@suse.de>
19296 Andrew Pinski <andrew_pinski@playstation.sony.com>
19297
19298 PR middle-end/30132
19299 * gimplify.c (gimplify_cond_expr): Do not create an addressable
19300 temporary if an rvalue is ok or an lvalue is not required.
19301
19302 2008-01-09 Richard Guenther <rguenther@suse.de>
19303
19304 PR middle-end/34458
19305 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
19306 adjust return type.
19307
19308 2008-01-09 Richard Guenther <rguenther@suse.de>
19309
19310 PR middle-end/34679
19311 * tree.c (host_integerp): Check for sizetype only if the
19312 type is an integer type.
19313
19314 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
19315
19316 PR debug/26364
19317 * opts.c (decode_options): Disable inlining of functions called
19318 once if not in unit-at-a-time mode.
19319
19320 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
19321
19322 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
19323
19324 2008-01-08 Richard Guenther <rguenther@suse.de>
19325
19326 PR middle-end/31863
19327 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
19328 out early if the result will be unused.
19329
19330 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
19331
19332 PR target/34709
19333 Revert:
19334
19335 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
19336 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
19337 for TARGET_RECIP.
19338
19339 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
19340
19341 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
19342 for vectorization tuned.
19343
19344 2008-01-08 Richard Guenther <rguenther@suse.de>
19345
19346 PR tree-optimization/34683
19347 * tree-ssa-operands.c (operand_build_cmp): Export.
19348 * tree-ssa-operands.h (operand_build_cmp): Declare.
19349 * tree-vn.c (vuses_compare): Remove.
19350 (sort_vuses): Use operand_build_cmp.
19351 (sort_vuses_heap): Likewise.
19352 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
19353 to re-use old VEC if available. Do not sort already sorted VUSEs.
19354 (vdefs_to_vec): Do not sort already sorted VDEFs.
19355
19356 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19357
19358 PR middle-end/34694
19359 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
19360
19361 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
19362
19363 PR target/34702
19364 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
19365 limitations of reciprocal sequences on x86 targets.
19366
19367 2008-01-08 Richard Guenther <rguenther@suse.de>
19368
19369 PR tree-optimization/34683
19370 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
19371
19372 2008-01-07 Jakub Jelinek <jakub@redhat.com>
19373
19374 PR target/34622
19375 * config/darwin.c (darwin_mergeable_string_section): Don't use
19376 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
19377
19378 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
19379
19380 PR target/34682
19381 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
19382 negxf2. Macroize expander using X87MODEF mode iterator. Change
19383 predicates of op0 and op1 to register_operand.
19384 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
19385 expander using X87MODEF mode iterator. Change predicates of
19386 op0 and op1 to register_operand.
19387 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
19388 corresponding patterns and macroize using MODEF macro. Change
19389 predicates of op0 and op1 to register_operand and remove
19390 "m" constraint. Disparage "r" alternative with "!".
19391 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
19392 macroize using X87MODEF macro. Change predicates of op0 and op1
19393 to register_operand and remove "m" constraint. Disparage "r"
19394 alternative with "!".
19395 (absneg splitter with memory operands): Remove.
19396 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
19397 patterns and macroize using X87MODEF mode iterator.
19398 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
19399 Change predicate of op1 to register_operand.
19400 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
19401 for memory operands.
19402
19403 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
19404
19405 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
19406
19407 2008-01-07 Richard Guenther <rguenther@suse.de>
19408
19409 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
19410 fields.
19411
19412 2008-01-07 Richard Guenther <rguenther@suse.de>
19413
19414 PR tree-optimization/34683
19415 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
19416 VOPs of the needed size to save memory. Use VEC_quick_push
19417 to save compile-time.
19418 (vdefs_to_vec): Likewise.
19419
19420 2008-01-07 Sa Liu <saliu@de.ibm.com>
19421
19422 * config/spu/spu.md (divdf3): Genetate inline code for double
19423 division. The implementation doesn't handle INF or NAN, therefore it
19424 only applies when -ffinite-math-only is given.
19425
19426 2008-01-06 Paolo Carlini <pcarlini@suse.de>
19427
19428 PR libstdc++/34680
19429 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
19430 * doc/cpp.texi ([Common Predefined Macros]): Document.
19431
19432 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
19433
19434 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
19435 order to use commutative addition instead of subtraction.
19436
19437 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
19438 Mircea Namolaru <namolaru@il.ibm.com>
19439 Vladimir Yanovsky <yanov@il.ibm.com>
19440 Revital Eres <eres@il.ibm.com>
19441
19442 PR tree-optimization/34263
19443 * tree-outof-ssa.c (process_single_block_loop_latch,
19444 contains_tree_r): New functions.
19445 (analyze_edges_for_bb): Call process_single_block_loop_latch
19446 function to empty single-basic-block latch block if possible.
19447
19448 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
19449
19450 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
19451 for TARGET_RECIP.
19452 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
19453
19454 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
19455
19456 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
19457
19458 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
19459
19460 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
19461
19462 2008-01-05 Jakub Jelinek <jakub@redhat.com>
19463
19464 PR tree-optimization/34618
19465 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
19466 flag from T.
19467
19468 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
19469
19470 PR target/34673
19471 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
19472 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
19473 Update copyright year.
19474
19475 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
19476 Update copyright year.
19477 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
19478 using NR fixup.
19479
19480 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
19481
19482 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
19483 edge does not point to current bb before changing need_assert.
19484
19485 2008-01-04 Richard Guenther <rguenther@suse.de>
19486
19487 PR middle-end/34029
19488 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
19489 for verifying purposes if they are is_gimple_min_invariant.
19490
19491 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
19492
19493 PR tree-optimization/34448
19494 PR tree-optimization/34465
19495 * gimplify.c (gimplify_init_constructor): Add new parameter
19496 notify_temp_creation. Use it.
19497 (gimplify_modify_expr_rhs): Take volatiles into account when
19498 optimizing constructors.
19499 Do not optimize constructors if gimplify_init_constructor will dump to
19500 memory.
19501 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
19502 * gcc.c-torture/compile/pr34448.c: New.
19503
19504 2008-01-04 Jakub Jelinek <jakub@redhat.com>
19505
19506 PR gcov-profile/34609
19507 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
19508 return_slot if result is TREE_ADDRESSABLE.
19509
19510 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
19511
19512 * config/mips/mips.md (sqrt_condition): Tweak comment.
19513 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
19514
19515 2008-01-03 Tom Tromey <tromey@redhat.com>
19516
19517 PR c/34457
19518 * c-common.c (c_type_hash): Handle VLAs.
19519
19520 2008-01-03 Jan Hubicka <jh@suse.cz>
19521
19522 PR tree-optimization/31081
19523 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
19524 0 when inlining and not inlining to first basic block.
19525 (remap_decl): When var is initialized to 0, don't set default_def.
19526 (expand_call_inline): Set entry_bb.
19527 * tree-inline.h (copy_body_data): Add entry_bb.
19528
19529 2008-01-03 Jakub Jelinek <jakub@redhat.com>
19530
19531 PR c++/34619
19532 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
19533 before returning.
19534
19535 PR tree-optimization/29484
19536 * tree-inline.c (inline_forbidden_p_2): New function.
19537 (inline_forbidden_p): Disallow inlining if some static var
19538 has an address of a local LABEL_DECL in its initializer.
19539 * doc/extend.texi (Labels as Values): Document &&foo behaviour
19540 vs. inlining.
19541
19542 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
19543
19544 PR tree-optimization/34635
19545 * tree-data-ref.c (add_other_self_distances): Make sure that the
19546 evolution step is constant.
19547
19548 2008-01-03 Jakub Jelinek <jakub@redhat.com>
19549
19550 PR middle-end/34608
19551 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
19552
19553 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
19554
19555 * tree-sra.c (scalarize_init): Insert the generate_element_init
19556 statements after the generate_element_zero statements.
19557
19558 2008-01-02 Richard Guenther <rguenther@suse.de>
19559
19560 PR middle-end/34093
19561 PR middle-end/31976
19562 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
19563 for very large number of operands instead of ICEing.
19564
19565 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
19566
19567 PR target/34013
19568 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
19569 while stack probing.
19570
19571 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
19572
19573 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
19574 in C++0x mode.
19575
19576 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
19577
19578 PR libmudflap/26442
19579 * tree-mudflap.c (mx_register_decls): Guard warning by
19580 !DECL_ARTIFICIAL check.
19581
19582 2008-01-01 Jakub Jelinek <jakub@redhat.com>
19583
19584 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
19585 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
19586 sse5_perm<mode>): Fix constraints.