OSDN Git Service

2008-11-05 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-11-05  Richard Guenther  <rguenther@suse.de>
2
3         PR middle-end/37742
4         * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
5         qualified pointer conversion before stripping qualifiers.
6         * gimplify.c (create_tmp_from_val): Use correctly qualified type.
7         * tree-flow.h (may_propagate_address_into_dereference): Declare.
8         * tree-ssa-ccp.c (may_propagate_address_into_dereference): New function.
9         (ccp_fold): Use it.
10         * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
11         properly canonicalize binary ops.
12         (forward_propagate_addr_expr_1): Use
13         may_propagate_address_into_dereference.
14
15 2008-11-05  Uros Bizjak  <ubizjak@gmail.com>
16
17         PR middle-end/37286
18         * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
19         Initialize uninitialized input registers with a NaN.
20
21 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
22
23         PR middle-end/37833
24
25         * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
26
27 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
28
29         PR middle-end/37943
30
31         * graphite.c (scopdet_basic_block_info): Fix loops with multiple
32         exits and conditions.
33         * testsuite/gcc.dg/graphite/pr37943.c: New.
34
35 2008-11-04  Jakub Jelinek  <jakub@redhat.com>
36             Andrew Pinski  <andrew_pinski@playstation.sony.com>
37
38         PR c/35430
39         * c-common.c (warn_for_sign_compare): For complex result_type
40         use component's type.
41
42 2008-11-04  Jakub Jelinek  <jakuB@redhat.com>
43
44         * print-tree.c (print_node): Use code instead of TREE_CODE (node).
45
46         * print-tree.c (print_node): Don't print DECL_INITIAL
47         for PARM_DECL.
48
49         PR c/37106
50         * c-common.c (parse_optimize_options): Save and restore
51         flag_strict_aliasing around decode_options call.
52
53 2008-11-04  Uros Bizjak  <ubizjak@gmail.com>
54
55         * config/i386/driver-i386.c (enum vendor_signatures): New enum.
56         (host_detect_local_cpu): Use it instead of casted strings to
57         compare vendor signatures.
58
59 2008-11-03  Mikael Pettersson  <mikpe@it.uu.se>
60
61         PR target/37989
62         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
63         or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
64
65 2008-11-03  Catherine Moore  <clm@codesourcery.com>
66
67         * config/mips.c (mips_conditional_register_usage):  Handle the
68         DSP control register.
69         * doc/extend.texi: Document the DSP control register.
70
71 2008-11-03  Steve Ellcey <sje@cup.hp.com>
72             Jakub Jelinek  <jakub@redhat.com>
73
74         * omp-low.c (expand_omp_for_generic): If iter_type has different
75         precision than type and type is a pointer type, cast n1 and n2
76         first to an integer type with the same precision as pointers
77         and only afterwards to iter_type.
78
79 2008-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
80
81         * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
82         (UNSPEC_GOTSYM_OFF): New unspec.
83         (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
84         (pic_add_dot_plus_eight): Likewise.
85         (tls_load_dot_plus_eight): Likewise.  Update peephole2.
86         * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
87         UNSPEC_PIC_BASE operands.
88         * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
89         (arm_output_addr_const_extra): Handle it.
90
91 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
92
93         * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
94         integer class to full integer class if the offset is not word-aligned.
95
96 2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
97
98         PR rtl-opt/37782
99         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
100         mode count is in.
101         (doloop_optimize): Update call to doloop_modify.
102
103 2008-11-03  Eric Botcazou  <ebotcazou@adacore.com>
104
105         * tree-sra.c (bitfield_overlaps_p): Fix oversight.
106
107 2008-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
108
109         PR other/37463
110         * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
111         gcc_cv_as_cfi_directive.
112         (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
113         merging read-only and read-write sections or assembler emits
114         read-write .eh_frame sections.
115         * configure: Regenerate.
116         
117 2008-11-03  Nathan Froyd  <froydnj@codesourcery.com>
118
119         Revert:
120         2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
121
122         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
123         problem.
124         (rs6000_emit_prologue): Invert logic.
125         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
126         (reg:P 11) instead of match_operand.
127         (*save_fpregs_<mode>): Likewise.
128         (*restore_gpregs_<mode>): Likewise.
129         (*return_and_restore_gpregs_<mode>): Likewise.
130         (*return_and_restore_fpregs_<mode>): Likewise.
131         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
132         (reg:P 11) insted of match_operand.
133         (*restore_gpregs_spe): Likewise.
134         (*return_and_restore_gpregs_spe): Likewise.
135
136 2008-11-03  Harsha Jagasia  <harsha.jagasia@amd.com>
137
138         PR tree-optimization/37684
139         * gcc.dg/graphite/pr37684.c: New.
140         * graphite.c (exclude_component_ref): New.
141         (is_simple_operand): Call exclude_component_ref.
142
143 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
144
145         PR tree-optimization/36908
146         * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
147         * tree-loop-distribution.c (number_of_rw_in_rdg): New.
148         (number_of_rw_in_partition): New.
149         (partition_contains_all_rw): New.
150         (ldist_gen): Do not distribute when one of the partitions
151         contains all the memory operations.
152
153 2008-11-03  Sebastian Pop  <sebastian.pop@amd.com>
154
155         * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
156         EDGE_IRREDUCIBLE_LOOP.
157
158 2008-11-03  Bernd Schmidt  <bernd.schmidt@analog.com>
159
160         * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
161         where we have one entry point in the loop which isn't the head.
162
163 2008-11-03  Richard Guenther  <rguenther@suse.de>
164
165         PR middle-end/37573
166         * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
167
168 2008-11-03  Jakub Jelinek  <jakub@redhat.com>
169
170         PR middle-end/37858
171         * passes.c (execute_one_pass): Don't look at cfun->curr_properties
172         for ipa and simple ipa passes.
173
174 2008-11-02  Richard Guenther  <rguenther@suse.de>
175
176         PR tree-optimization/37542
177         * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
178         * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
179         (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
180         (vn_nary_op_insert_stmt): Likewise.
181         (visit_use): Likewise.
182
183 2008-11-02  Anatoly Sokolov  <aesok@post.ru>
184
185         * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
186         (*swap): Remove.
187         (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
188         rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
189         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
190         ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
191         lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
192         peephole2's): Replace unspec with rotate.
193         * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
194
195 2008-11-02  Richard Guenther  <rguenther@suse.de>
196
197         PR tree-optimization/37991
198         * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
199         * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
200         (set_ssa_val_to): Print if the value changed.
201         (simplify_binary_expression): Strip useless conversions.
202
203 2008-11-01  Hans-Peter Nilsson  <hp@axis.com>
204
205         PR target/37939
206         * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
207         operand.
208
209 2008-11-01  Richard Guenther  <rguenther@suse.de>
210
211         PR middle-end/37976
212         * builtins.c (fold_builtin_strspn): Return a size_t.
213         (fold_builtin_strcspn): Likewise.
214
215 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
216
217         * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
218         attribute for struct return convention.
219
220 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
221
222         * config/rs6000/crtsavres.asm: Really, really delete.
223
224 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
225
226         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
227         problem.
228         (rs6000_emit_prologue): Invert logic.
229         * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
230         (reg:P 11) instead of match_operand.
231         (*save_fpregs_<mode>): Likewise.
232         (*restore_gpregs_<mode>): Likewise.
233         (*return_and_restore_gpregs_<mode>): Likewise.
234         (*return_and_restore_fpregs_<mode>): Likewise.
235         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
236         (reg:P 11) insted of match_operand.
237         (*restore_gpregs_spe): Likewise.
238         (*return_and_restore_gpregs_spe): Likewise.
239
240 2008-10-28  Luis Machado  <luisgpm@br.ibm.com>
241
242         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
243         list of word switches that take args.
244
245 2008-10-30  Jakub Jelinek  <jakub@redhat.com>
246
247         * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
248         (s390_output_pool_entry): Call it through for_each_rtx.
249
250         PR middle-end/37730
251         * expr.c (store_constructor): For vectors, if target is a MEM, use
252         target's MEM_ALIAS_SET instead of elttype alias set.
253
254 2008-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
255
256         PR target/37909
257         * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
258         no address.
259
260 2008-10-29  David Edelsohn  <edelsohn@gnu.org>
261
262         PR target/37878
263         * config/rs6000/predicates.md (word_offset_memref_operand):
264         Restructure code and look inside auto-inc/dec addresses.
265         
266 2008-10-29  Steve Ellcey  <sje@cup.hp.com>
267
268         PR target/32277
269         * libgcov.c ( __gcov_indirect_call_profiler): Check
270         TARGET_VTABLE_USES_DESCRIPTORS.
271
272 2008-10-29  Stefan Schulze Frielinghaus  <xxschulz@de.ibm.com>
273
274         * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
275         (INITIAL_FRAME_POINTER_OFFSET): Remove.
276         * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
277         offset if eliminating soft frame pointer.
278         * config/spu/spu.md (stack_protect_set, stack_protect_test)
279         (stack_protect_test_si): Add initial machine description
280         for Stack Smashing Protector
281
282 2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
283
284         PR 11492
285         * c-common.c (min_precision): Move to...
286         * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
287         * tree.h (tree_int_cst_min_precision): Declare.
288         * c-common.h (min_precision): Delete declaration.
289         * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
290         multiplication of non-negative integer constants.
291         * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
292         tree_int_cst_min_precision.
293         (finish_enum): Likewise.
294
295 2008-10-29  Joseph Myers  <joseph@codesourcery.com>
296
297         PR middle-end/36578
298         * convert.c (convert_to_real): Do not optimize conversions of
299         binary arithmetic operations between binary and decimal
300         floating-point types.  Consider mode of target type in determining
301         decimal type for arithmetic.  Unless
302         flag_unsafe_math_optimizations, do not optimize binary conversions
303         where this may change rounding behavior.
304         * real.c (real_can_shorten_arithmetic): New.
305         * real.h (real_can_shorten_arithmetic): Declare.
306
307 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
308         
309         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
310         ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
311         * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
312         appropriate.
313         (must_save_p): For some workarounds, interrupts need to clobber a
314         P register.
315         (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
316         and LC1 for WA_05000257.
317         (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
318         WA_05000283 and WA_05000315.
319         * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
320         (movbi): Add alternative to set CC to 1; improve code for setting
321         CC to 0.
322         (dummy_load): New pattern.
323
324 2008-10-29  Jakub Jelinek  <jakub@redhat.com>
325
326         PR middle-end/37870
327         * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
328         BLKmode for non-memory, convert using a wider MODE_INT mode
329         or through memory.
330
331         PR middle-end/37913
332         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
333         that haven't been removed yet.
334
335 2008-10-29  Bernd Schmidt  <bernd.schmidt@analog.com>
336
337         * config/bfin/bfin.c (struct machine_function): New member
338         has_loopreg_clobber.
339         (bfin_expand_movmem): Set it when generating memcpy insns.
340         (n_regs_saved_by_prologue, expand_prologue_reg_save,
341         expand_epilogue_reg_restore): If we have hardware loops,
342         memcpy insns (indicated by has_loopreg_clobber) or function
343         calls, we need to save the loop registers.
344
345 2008-10-28  H.J. Lu  <hongjiu.lu@intel.com>
346
347         * config/i386/i386.c (core2_cost): Fix typos in comments.
348
349 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
350
351         PR c/37924
352         * combine.c (make_compound_operation): Don't call make_extraction with
353         non-positive length.
354         (simplify_shift_const_1): Canonicalize count even if complement_p.
355
356 2008-10-28  Joseph Myers  <joseph@codesourcery.com>
357
358         * convert.c (strip_float_extensions): Do not remove or introduce
359         conversions between binary and decimal floating-point types.
360
361 2008-10-28  Jakub Jelinek  <jakub@redhat.com>
362
363         PR middle-end/37931
364         * fold-const.c (distribute_bit_expr): Convert common, left and
365         right arguments to type.
366
367 2008-10-28  Nick Clifton  <nickc@redhat.com>
368
369         * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
370         * config/mn10300/mn10300.c (fp_regs_to_save): Test the
371         call_really_used_regs array rather than the call_used_regs array.
372         (mn10300_get_live_callee_saved_regs, expand_prologue,
373         expand_epilogue, output_tst): Likewise.
374
375 2008-10-27  Jakub Jelinek  <jakub@redhat.com>
376
377         PR target/37378
378         * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
379         (df_get_entry_block_def_set): Neither here.
380         (df_get_regular_block_artificial_uses): Add EH_USES registers.
381
382         PR tree-optimization/37879
383         * predict.c (tree_estimate_probability): Check if last_stmt is
384         non-NULL before dereferencing it.
385
386 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
387
388         * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
389         (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
390         (ira_fast_allocation): Remove the prototype.
391         
392         * ira-color.c (update_copy_costs, allocno_cost_compare_func,
393         assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
394         (color_pass): Modify the updated costs.
395         (ira_color): Rename to color.  Make it static.
396         (ira_fast_allocation): Rename to fast_allocation.  Make it static.
397         (ira_color): New function.
398         
399         * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
400         change.
401
402         * ira-lives.c (last_call_num, allocno_saved_at_call): New
403         variables.
404         (set_allocno_live, clear_allocno_live, mark_ref_live,
405         mark_ref_dead): Invalidate corresponding element of
406         allocno_saved_at_call.
407         (process_bb_node_lives): Increment last_call_num.  Setup
408         allocno_saved_at_call.  Don't increase ALLOCNO_CALL_FREQ if the
409         allocno was already saved.
410         (ira_create_allocno_live_ranges): Initiate last_call_num and
411         allocno_saved_at_call.
412
413         * ira-build.c (ira_create_allocno): Initiate
414         ALLOCNO_UPDATED_COVER_CLASS_COST.
415         (create_cap_allocno, propagate_allocno_info,
416         remove_unnecessary_allocnos): Remove setting updated costs.
417         (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
418
419         * ira.c (ira):  Don't call ira_fast_allocation.
420
421         * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
422         updated costs.
423         
424 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
425
426         PR middle-end/37813
427         * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
428
429         * ira-int.h (ira_hard_regno_cover_class): New.
430
431         * ira-lives.c (mark_reg_live, mark_reg_dead,
432         process_bb_node_lives): Use ira_hard_regno_cover_class.
433
434         * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
435         (setup_hard_regno_cover_class): New function.
436         (ira_init): Call setup_hard_regno_cover_class.
437
438         * ira-costs.c (cost_class_nums): Add comment.
439         (find_allocno_class_costs): Initiate cost_class_nums.
440         (setup_allocno_cover_class_and_costs): Check cost_class_nums.
441
442 2008-10-27  Vladimir Makarov  <vmakarov@redhat.com>
443
444         PR middle-end/37884
445         * ira-build.c (copy_live_ranges_to_removed_store_destinations):
446         Rename to copy_info_to_removed_store_destinations.  Propagate
447         conflict hard regs and register stack attribute.
448
449 2008-10-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
450
451         PR middle-end/37316
452         * pa.c (function_arg_padding):  Pad complex and vector types
453         upward in 64-bit runtime.
454         (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
455
456 2008-10-26  Matthias Klose  <doko@ubuntu.com>
457
458         * doc/install.texi: Document requirements on antlr.
459
460 2008-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
461
462         * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
463         first.
464
465 2008-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
466
467         PR target/37841
468         * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
469         is defined, use it to modify the constant offset.
470
471         * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
472
473         * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
474         and short arguments to the correct location as mandated by the ABI.
475
476 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
477
478         PR rtl-optimization/37769
479         * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
480
481 2008-10-24  Kaz Kojima  <kkojima@gcc.gnu.org>
482
483         * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
484         unwind-dw2-Os-4-200.o.
485
486 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
487
488         * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
489         (convert_for_assignment): Remove ic_argpass_nonproto cases.
490
491 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
492
493         PR tree-optimization/36038
494         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
495         add sizetype IV with initial value zero instead of pointer type.
496
497 2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
498
499         PR c/7543
500         * value-prof.c (gimple_stringop_fixed_value): Use parentheses
501         around bit operation.
502         * profile.c (is_edge_inconsistent): Likewise.
503         * fold-const.c (truth_value_p): Move from here...
504         * tree.h (truth_value_p): ... to here.
505         * c-tree.h (c_expr): Update description of original_code.
506         * c-typeck.c (parser_build_unary_op): Set original_code.
507         (parser_build_binary_op): Update call to warn_about_parentheses.
508         * c-common.c (warn_about_parentheses): Take two additional
509         arguments of the operands. Use a switch. Quote operators
510         appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
511         Add warning about !x | y and !x & y.
512         * c-common.h (warn_about_parentheses): Update declaration.
513
514 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
515
516         * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
517         check_p_tool, check_p_vars, check_p_subno, check_p_comma,
518         check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
519         New variables.
520         (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
521         (check-%): For test targets listed in lang_checks_parallelized
522         if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
523         run the testing in multiple make goals, possibly parallel, and
524         afterwards run dg-extract-results.sh to merge the sum and log files.
525
526 2008-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
527
528         * config/mips/mips.c (mips_canonicalize_move_class): New function.
529         (mips_move_to_gpr_cost): Likewise.
530         (mips_move_from_gpr_cost): Likewise.
531         (mips_register_move_cost): Make more fine-grained.
532
533 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
534
535         * graphite.c (graphite_apply_transformations): Check for
536         -fgraphite-identity.
537         * toplev.c (process_options): Add graphite_identity.
538         * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
539
540 2008-10-23  Bernd Schmidt  <bernd.schmidt@analog.com>
541
542         * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
543         mulhisihl and mulhisihh builtins.
544
545         From Jie Zhang  <jie.zhang@analog.com>
546         * config/bfin/bfin.md (composev2hi): Put operands into vector
547         with correct order.
548         
549 2008-10-22  Chao-ying Fu  <fu@mips.com>
550
551         * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
552
553 2008-10-22  Bernd Schmidt  <bernd.schmidt@analog.com>
554
555         From Mike Frysinger  <michael.frysinger@analog.com>
556         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
557         BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
558         * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
559         and bf518.  Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
560         Add 0.6 for bf533, bf532, and bf531.  Add 0.5 for bf538 and bf539.
561         Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
562         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
563         for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
564         for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518.  Define
565         __ADSPBF51x__ for all of them.
566         * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
567         -mcpu bf512, bf514, bf516, and bf518.
568         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
569         bf512-none, bf514-none, bf516-none, and bf518-none.
570         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
571         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
572         * doc/invoke.texi (Blackfin Options): Document that
573         -mcpu now accepts bf512, bf514, bf516, and bf518.
574
575 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
576
577         PR middle-end/37882
578         * fold-const.c (build_range_type): For 1 .. signed_max
579         range call build_nonstandard_inter_type if signed_type_for
580         returned a type with bigger precision.
581
582 2008-10-22  Richard Guenther  <rguenther@suse.de>
583
584         * tree.def (COMPLEX_TYPE): Constrain element type.
585         * tree.c (build_complex_type): Assert that.
586         * tree-ssa-structalias.c (could_have_pointers): Complex types
587         cannot have pointers.
588
589 2008-10-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
590
591         PR c/30949
592         * c-typeck.c (convert_for_assignment): Do not give declaration's
593         location for builtins. Spell out which type was expected and which
594         was given.
595
596 2008-10-22  Nick Clifton  <nickc@redhat.com>
597
598         * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define.  Do not allow
599         the fdpic register to be a target when running in fdpic mode.
600
601 2008-10-22 Rafael Espindola  <espindola@google.com>
602
603         * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
604         newly created statements.
605
606 2008-10-22  Kaz Kojima  <kkojima@gcc.gnu.org>
607
608         PR target/37633
609         * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
610         * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
611         * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
612
613 2008-10-22  Jakub Jelinek  <jakub@redhat.com>
614
615         PR target/37880
616         * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
617         Adjust -mcmodel=medium description for 2005-07-31 changes.
618
619 2008-10-22  Jan Hubicka  <jh@suse.cz>
620             Jakub Jelinek  <jakub@redhat.com>
621
622         PR middle-end/35853
623         * doc/invoke.texi: Remove references to obsoleted -d dumps.
624
625 2008-10-21  Richard Henderson  <rth@redhat.com>
626
627         PR 37815
628         * emit-rtl.c (get_spill_slot_decl): Export.
629         * emit-rtl.h (get_spill_slot_decl): Declare.
630         * var-tracking.c (vt_add_function_parameters): Relax assertion
631         on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
632
633 2008-10-21  Bob Wilson  <bob.wilson@acm.org>
634
635         * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
636         REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
637         of from insn.
638
639 2008-10-21  Adam Nemet  <anemet@caviumnetworks.com>
640
641         PR middle-end/37669
642         * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
643         processed by get_maxval_strlen.
644
645 2008-10-21  David Edelsohn  <edelsohn@gnu.org>
646
647         PR target/35485
648         * tree.c (get_file_function_name): Copy first_global_object_name.
649         Centralize call to clean_symbol_name.
650
651 2008-10-21  Sandra Loosemore  <sandra@codesourcery.com>
652
653         * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
654         * config/svr4.h (SVR4_ASM_SPEC): New.
655         (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
656         * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
657
658         * doc/invoke.texi (Option Summary): Add -T to linker options.
659         (Link Options): Document -T.
660         
661 2008-10-21  Jakub Jelinek  <jakub@redhat.com>
662
663         * tree-inline.c (tree_inlinable_function_p): Remove tuples
664         debugging hack.
665
666         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
667
668         PR debug/37020
669         * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
670
671 2008-10-20  Daniel Berlin  <dberlin@dberlin.org>
672
673         * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
674         part of expression.
675
676 2008-10-20  Tobias Schlüter  <tobi@gcc.gnu.org>
677
678         * doc/install.texi: Fix typos in previous patch.
679
680 2008-10-19  Tobias Schlüter  <tobi@gcc.gnu.org>
681
682         * doc/install.texi: Document in-tree building of gcc and mpfr.
683
684 2008-10-19  Richard Guenther  <rguenther@suse.de>
685
686         * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
687
688 2008-10-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
689
690         PR c/30260
691         * c-decl.c (finish_enum): Convert non-integer enumerators to enum
692         type.
693         (build_enumerator): Convert enumerators that fit in integer to
694         integer type.
695
696 2008-10-18  Uros Bizjak  <ubizjak@gmail.com>
697
698         * config/i386/i386.md (unnamed peephole2): Do not force memory
699         operands of arith or logical instructions into registers for
700         non-TARGET_READ_MODIFY targets.
701
702         (ffs_cmove): Change operand 0 predicate to register_operand.
703         Change operand 1 predicate to nonimmediate_operand.
704         (ffsdi2): Ditto.
705         (*ffs_no_cmove): Change operand 0 predicate to register_operand.
706
707 2008-10-18  Richard Guenther  <rguenther@suse.de>
708
709         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
710         VIEW_CONVERT_EXPR case against invalid gimple.
711
712 2008-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>
713
714         * c-parser.c (c_parser_binary_expression): Silence the
715         uninitialized variable warning emitted for binary_loc.
716
717 2008-10-16  Daniel Berlin  <dberlin@dberlin.org>
718
719         * tree-ssa-pre.c (phi_translate_set): Add constants to phi
720         translation cache.
721
722 2008-10-16  Joseph Myers  <joseph@codesourcery.com>
723
724         PR c/33192
725         * c-typeck.c (build_unary_op): Use omit_one_operand for
726         IMAGPART_EXPR of real argument.
727
728 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
729
730         PR tree-optimization/37664
731         * fold-const.c (fold_binary): When optimizing comparison with
732         highest or lowest type's value, don't consider TREE_OVERFLOW.
733
734 2008-10-16  David Edelsohn  <edelsohn@gnu.org>
735
736         PR target/35483
737         * Makefile.in (coverage.o): Depend on $(TM_P_H).
738         * coverage.c: Include tm_p.h.
739         * config/rs6000/x-aix (jc1): Override LDFLAGS.
740         * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
741         dollar signs from PREFIX.
742         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
743         instead of manual strip_name_encoding.
744
745 2008-10-16  Richard Guenther  <rguenther@suse.de>
746
747         PR middle-end/37418
748         * tree-ssa.c (useless_type_conversion_p_1): Do not treat
749         volatile qualified functions or methods as relevant.
750
751 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
752
753         PR tree-optimization/37525
754         * tree.c (int_fits_type_p): Rewrite using double_int.  Zero extend
755         sizetype unsigned constants, both in the case of C and bounds.
756
757 2008-10-15  Jan Hubicka  <jh@suse.cz>
758
759         * ira-emit.c (change_regs): Return false when replacing reg by itself.
760
761 2008-10-14  Vladimir Makarov  <vmakarov@redhat.com>
762
763         PR target/37633
764         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
765         HARD_REGNO_CALL_PART_CLOBBERED.
766
767 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
768
769         PR middle-end/37535
770         * ira-lives.c (mark_early_clobbers): Remove.
771         (make_pseudo_conflict, check_and_make_def_use_conflicts,
772         check_and_make_def_conflicts,
773         make_early_clobber_and_input_conflicts,
774         mark_hard_reg_early_clobbers): New functions.
775         (process_bb_node_lives): Call
776         make_early_clobber_and_input_conflicts and
777         mark_hard_reg_early_clobbers.  Make hard register inputs live again.
778
779         * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
780         early clobbers of pseudo-registers.
781         
782 2008-10-15  Vladimir Makarov  <vmakarov@redhat.com>
783
784         PR middle-end/37674
785         * ira-build.c (ira_flattening): Recalculate
786         ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
787         from the scratch instead of the propagation.
788         
789 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
790
791         * doc/rtl.texi (const_double): Remove the "addr" operand.
792         Describe CONST_DOUBLE_* macros under const_double rather
793         than const_vector.
794         (const_fixed): Fix the operand description.
795         (const): Add an @findex directive.
796         (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
797         after the constant rtl table.
798         (fix): Combine floating-point and fixed-point descriptions.
799         Fix hyphenation.
800         * sched-deps.c (sched_analyze_2): Remove reference to
801         CONST_DOUBLE_CHAIN.
802
803 2008-10-15  Richard Sandiford  <rdsandiford@googlemail.com>
804
805         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
806         UNSPEC_GOTSYM_OFFs.
807         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
808         for UNSPEC_GOTSYM_OFFs.
809         * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
810         (add_GOT_to_pic_reg): Use it.
811         * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
812
813 2008-10-15  Jan Sjodin  <jan.sjodin@amd.com>
814             Harsha Jagasia  <harsha.jagasia@amd.com>
815
816         PR tree-optimization/37485
817         * graphite.c (gmp_cst_to_tree): Moved.
818         (iv_stack_entry_is_constant): New.
819         (iv_stack_entry_is_iv): New.
820         (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
821         (loop_iv_stack_insert_constant): New.
822         (loop_iv_stack_pop): Use new datatpype.
823         (loop_iv_stack_get_iv): Same.
824         (loop_iv_stack_get_iv_from_name): Same.
825         (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
826         (loop_iv_stack_patch_for_consts): New.
827         (loop_iv_stack_remove_constants): New.
828         (graphite_create_new_loop): Use loop_iv_stack_push_iv.
829         (translate_clast): Call loop_iv_stack_patch_for_consts and
830         loop_iv_stack_remove_constants.
831         (gloog): Use new datatype.  Redirect construction edge to end
832         block to avoid accidental deletion.
833         * graphite.h (enum iv_stack_entry_kind): New.  Tag for data in
834         iv stack entry.
835         (union iv_stack_entry_data): New.  Data in iv stack entry.
836         (struct iv_stack_entry): New.  Datatype for iv stack entries.
837
838 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
839
840         * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
841         * graphite.c (free_scop): Same.
842         (build_scops): Same.
843         (free_scattering): New.
844         (build_cloog_prog): Call free_scattering.
845         (patch_phis_for_virtual_defs): Fix memleak.
846         (graphite_trans_bb_strip_mine): Same.
847         (limit_scops): Same.
848
849 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
850             Harsha Jagasia  <harsha.jagasia@amd.com>
851
852         PR tree-optimization/37828
853         * graphite.c (graphite_trans_loop_block): Do not loop block
854         single nested loops.
855
856 2008-10-15  Sebastian Pop  <sebastian.pop@amd.com>
857
858         PR tree-optimization/37686
859         * tree-loop-linear.c (linear_transform_loops): Build a
860         loop nest vector.  Pass it to lambda_compute_access_matrices.
861         * tree-data-ref.h (struct access_matrix): Store the loop nest
862         relative to which it encodes the information.
863         (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
864         (am_vector_index_for_loop): Reimplemented: iterate over the
865         loop nest for finding the loop index in the access matrix.
866         (lambda_compute_access_matrices): Update declaration.
867         * lambda-code.c (build_access_matrix): Pass the loop nest and
868         record it.
869         (lambda_compute_access_matrices): Same.
870
871 2008-10-15  Andreas Krebbel  <krebbel1@de.ibm.com>
872
873         * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
874         * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
875         TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
876         already implies hard float.  Also fix several insn condition
877         with TARGET_DFP which shall require TARGET_HARD_DFP instead.
878
879 2008-10-15  David Edelsohn  <edelsohn@gnu.org>
880
881         PR target/35483
882         Based on patches by Laurent Vivier.
883         * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
884         * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
885         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
886         dollar sign to underscore.
887         (ASM_OUTPUT_EXTERNAL): Same.
888         (ASM_OUTPUT_LABELREF): New.
889         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
890
891         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
892         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
893         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
894         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
895
896 2008-10-15  Jakub Jelinek  <jakub@redhat.com>
897
898         PR tree-optimization/36881
899         * tree-switch-conversion.c (check_final_bb): For flag_pic, check
900         that each value doesn't need runtime relocations, for !flag_pic
901         check that each value is just a valid initializer constant.
902
903 2008-10-14  Richard Sandiford  <rdsandiford@googlemail.com>
904
905         * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
906         LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
907         COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
908         Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
909         GR_AND_ACC_REGS.
910         (REG_CLASS_NAMES): Update accordingly.
911         (REG_CLASS_CONTENTS): Likewise.  Use the class name in the comments,
912         rather than an unpredictable descriptive string.
913         * config/mips/mips.c (mips_register_move_cost): Remove comment.
914         (mips_register_move_cost): Check for specific COP*_REGS classes,
915         instead of ALL_COP_AND_GR_REGS.
916         (mips_ira_cover_classes): New function.
917         (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
918         (TARGET_IRA_COVER_CLASSES): Define.
919
920 2008-10-14  Douglas Gregor  <doug.gregor@gmail.com>
921
922         PR c++/37553
923         * tree.c (build_type_attribute_qual_variant): Hash on the
924         unqualified type, and don't overwrite an existing
925         (type_hash_eq): Make the TYPE_NAME of the types significant, to
926         allow distinguishing between wchar_t and its underlying type. This
927         also means that we'll retain a little more typedef information.
928
929 2008-10-14  Andrey Belevantsev  <abel@ispras.ru>
930             Dmitry Melnik  <dm@ispras.ru>
931             Dmitry Zhurikhin  <zhur@ispras.ru>
932             Alexander Monakov  <amonakov@ispras.ru>
933             Maxim Kuvyrkov  <maxim@codesourcery.com>
934
935         * target.h (struct gcc_target): Update prototypes of needs_block_p
936         and gen_spec_check.
937         * haifa-sched.c (create_check_block_twin): Update calls to the above.
938         * sel-sched.c (create_speculation_check): Likewise.
939         * doc/tm.texi: Provide documentation for new target hooks.
940                 
941         * config/ia64/ia64.c: Include sel-sched.h.  Rewrite speculation hooks.
942         (ia64_gen_spec_insn): Removed.
943         (get_spec_check_gen_function, insn_can_be_in_speculative_p,
944         ia64_gen_spec_check): New static functions.
945         (ia64_alloc_sched_context, ia64_init_sched_context,
946         ia64_set_sched_context, ia64_clear_sched_context,
947         ia64_free_sched_context, ia64_get_insn_spec_ds,
948         ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
949         (ia64_needs_block_p): Change prototype.
950         (ia64_gen_check): Rename to ia64_gen_spec_check.
951         (ia64_adjust_cost): Rename to ia64_adjust_cost_2.  Add new parameter
952         into declaration, add special memory dependencies handling.
953         (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
954         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
955         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
956         TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
957         Define new target hooks.
958         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
959         (ia64_optimization_options): Turn on selective scheduling with -O3,
960         disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
961         default with selective scheduling.
962         (ia64_override_options): Initialize align_loops and align_functions
963         to 32 and 64, respectively.  Set global selective scheduling flags
964         according to target-dependent flags.
965         (rtx_needs_barrier): Support UNSPEC_LDS_A.
966         (group_barrier_needed): Use new mstop-bit-before-check flag.
967         Add heuristic.
968         (dfa_state_size): Make global.
969         (spec_check_no, max_uid): Remove.
970         (mem_ops_in_group, current_cycle): New variables.
971         (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
972         Initialize new variables.
973         (is_load_p, record_memory_reference): New functions.
974         (ia64_dfa_sched_reorder): Lower priority of loads when limit is
975         reached.
976         (ia64_variable_issue): Change use of current_sched_info to
977         sched_deps_info.  Update comment.  Note if a load or a store is issued.
978         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
979         advance if maximal number of loads or stores was issued on current
980         cycle.
981         (scheduled_good_insn): New static helper function.
982         (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
983         a group barrier is needed.  Fix vertical spacing.  Guard the code
984         doing state transition with last_scheduled_insn check.
985         Mark that a stop bit should be before current insn if there was a 
986         cycle advance.  Update current_cycle and mem_ops_in_group.
987         (ia64_h_i_d_extended): Change use of current_sched_info to
988         sched_deps_info. Reallocate stops_p by larger chunks.
989         (struct _ia64_sched_context): New structure.
990         (ia64_sched_context_t): New typedef.
991         (ia64_alloc_sched_context, ia64_init_sched_context,
992         ia64_set_sched_context, ia64_clear_sched_context,
993         ia64_free_sched_context): New static functions.
994         (gen_func_t): New typedef.
995         (get_spec_load_gen_function): New function.
996         (SPEC_GEN_EXTEND_OFFSET): Declare.      
997         (ia64_set_sched_flags): Check common_sched_info instead of *flags.
998         (get_mode_no_for_insn): Change the condition that prevents use of
999         special hardware registers so it can now handle pseudos.
1000         (get_spec_unspec_code): New function.
1001         (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
1002         ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
1003         (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
1004         during selective scheduling.
1005         (ia64_speculate_insn): Use ds_get_speculation_types when
1006         determining whether we need to change the pattern.
1007         (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
1008         (ia64_spec_check_src_p): Support new speculation/check codes.
1009         (struct bundle_state): New field.
1010         (issue_nops_and_insn): Initialize it.
1011         (insert_bundle_state): Minimize mid-bundle stop bits.
1012         (important_for_bundling_p): New function.
1013         (get_next_important_insn): Use important_for_bundling_p.
1014         (bundling): When shifting TImode from unimportant insns, ignore
1015         also group barriers.  Assert that best state is found before
1016         the backward bundling pass.  Print number of mid-bundle stop bits.
1017         Minimize mid-bundle stop bits.  Check correct calculation of
1018         mid-bundle stop bits.
1019         (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
1020         (final_emit_insn_group_barriers): Emit stop bits before insns starting
1021         a new cycle.
1022         (sel2_run): New variable.
1023         (ia64_reorg): When flag_selective_scheduling2 is set, run the
1024         selective scheduling pass instead of schedule_ebbs.
1025         
1026         * config/ia64/ia64.md (speculable1, speculable2): New attributes.
1027         (UNSPEC_LDS_A): New UNSPEC.
1028         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
1029         movti_internal, movsf_internal, movdf_internal,
1030         movxf_internal): Make visible.  Add speculable* attributes.
1031         (output_c_nc): New mode attribute.
1032         (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
1033         mov<mode>_nc, zero_extend<mode>di2_nc,
1034         advanced_load_check_nc_<mode>): New insns.
1035         (zero_extend*): Add speculable* attributes.
1036
1037         * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
1038         (msched-stop-bits-after-every-cycle): Likewise.
1039         (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
1040         Likewise.
1041         (msched-spec-verbose): Remove.
1042         (msched-prefer-non-data-spec-insns,
1043         msched-prefer-non-control-spec-insns,
1044         msched-count-spec-in-critical-path,
1045         msel-sched-dont-check-control-spec): Use Target  Report Var
1046         instead of Common Report Var.
1047
1048         * config/ia64/itanium2.md: Remove incorrect bypass.
1049         
1050         * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
1051
1052 2008-10-14  Jakub Jelinek  <jakub@redhat.com>
1053
1054         PR middle-end/37805
1055         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
1056         and -fhelp=separate.
1057
1058 2008-10-14  Ben Elliston  <bje@au.ibm.com>
1059
1060         * config/rs6000/rs6000.md (cell_micro): Fix formatting.
1061
1062 2008-10-13  Joseph Myers  <joseph@codesourcery.com>
1063
1064         * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
1065         non-integer modes.
1066
1067 2008-10-13  Matthias Klose  <doko@ubuntu.com>
1068
1069         * config/pa/linux-atomic.c: Work around missing header file
1070         for hppa64-linux-gnu targets.
1071
1072 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1073             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
1074             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
1075             Grace Cao  <grace_cao@playstation.sony.com>
1076
1077         * doc/invoke.texi (-mgen-cell-microcode): Document.
1078         (-mwarn-cell-microcode): Document.
1079         * cfglayout.c (locator_location): Export.
1080         * rtl.h (locator_location): Define prototype.
1081         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
1082         New predicate.
1083         * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
1084         * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
1085         (mwarn-cell-microcode): New option.
1086         * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
1087         (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
1088         cell and not already set.
1089         Turn off string instructions if not generating cell microcode.
1090         (rs6000_final_prescan_insn): New function that warns about microcoded
1091         instructions.
1092         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
1093         * config/rs6000/rs6000.md
1094         Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
1095         the instruction would have been microcoded on the Cell.  Set
1096         cell_micro to always on unnamed patterns for the string instructions.
1097         (cell_micro): Update definition, remove load/store conditional
1098         microcoded.
1099         (sign_extend:DI): Define new pattern for non microcoded version.
1100         (sign_extend:SI): Likewise.
1101         (compare (div:P)): Set cell_micro to not.
1102         (andsi3): Define as an expand.
1103         (andsi3_mc): New pattern.
1104         (andsi3_nomc): New pattern.
1105         (andsi3_internal0_nomc): New pattern.
1106         (andsi3_internal2): Rename to ...
1107         (andsi3_internal2_mc): this and enable iff generating microcode.
1108         (andsi3_internal3): Rename to ...
1109         (andsi3_internal3_mc): this and enable iff generating microcode.
1110         (andsi3_internal4): Enable iif generating microcode.
1111         (andsi3_internal5): Rename to ..
1112         (andsi3_internal5_mc): this and enable iff generating microcode.
1113         (andsi3_internal5_nomc): New pattern.
1114         (extzvdi_internal1): Enable iff generating microcode.
1115         (extzvdi_internal2): Likewise.
1116         (rotlsi3_internal7): Set cell_micro to always if non immediate form.
1117         (anddi3): Change to expand.
1118         (anddi3_mc): Rename from anddi3.
1119         (anddi3_no_mc): New pattern.
1120         (anddi3_internal2): Rename to ..
1121         (anddi3_internal2_mc): this and enable iff generating microcode.
1122         (anddi3_internal2_nomc): New pattern.
1123         (anddi3_internal3): Rename to ..
1124         (anddi3_internal3_mc): this and enable iff generating microcode.
1125         (anddi3_internal3_nomc): New pattern.
1126         (movti_string): Set cell_micro to always if TARGET_STRING.
1127         (stmsi8): Set cell_micro to always.
1128         (stmsi7): Likewise.
1129         (stmsi6): Likewise.
1130         (stmsi5): Likewise.
1131         (stmsi4): Likewise.
1132         (stmsi3): Likewise.
1133         (stmsi8_power): Likewise.
1134         (stmsi7_power): Likewise.
1135         (stmsi6_power): Likewise.
1136         (stmsi5_power): Likewise.
1137         (stmsi4_power): Likewise.
1138         (stmsi3_power): Likewise.
1139         (movsi_update2): Enable iff generating microcode.
1140         (movhi_update3): Likewise.
1141         (lmw): Set cell_micro to always.
1142
1143 2008-10-13  Richard Sandiford  <rdsandiford@googlemail.com>
1144
1145         * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
1146         * config/s390/s390.c (machine_function): Remove
1147         decomposed_literal_pool_addresses_ok_p.
1148         (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
1149         the difference of two labels.
1150         (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
1151         (s390_pool_offset): New function.
1152         (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
1153         (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
1154
1155 2008-10-13  Nathan Froyd  <froydnj@codesourcery.com>
1156
1157         * doc/install.texi (powerpc-*-*): Require binutils 2.15.
1158         (powerpc*-*-linux-gnu*): Describe.
1159         * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
1160         * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1161         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1162         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1163         config/rs6000/e500crtres32gpr.asm,
1164         config/rs6000/e500crtres64gpr.asm,
1165         config/rs6000/e500crtres64gprctr.asm,
1166         config/rs6000/e500crtrest32gpr.asm,
1167         config/rs6000/e500crtrest64gpr.asm,
1168         config/rs6000/e500crtresx32gpr.asm,
1169         config/rs6000/e500crtresx64gpr.asm,
1170         config/rs6000/e500crtsav32gpr.asm,
1171         config/rs6000/e500crtsav64gpr.asm,
1172         config/rs6000/e500crtsav64gprctr.asm,
1173         config/rs6000/e500crtsavg32gpr.asm,
1174         config/rs6000/e500crtsavg64gpr.asm,
1175         config/rs6000/e500crtsavg64gprctr.asm: Use it.
1176         * config/rs6000/crtsavres.asm: Really remove.
1177
1178 2008-10-13  Kai Tietz  <kai.tietz@onevision.com>
1179
1180         Fix PR/25502
1181         * c-format.c (convert_format_name_to_system_name): Use
1182         TARGET_OVERRIDES_FORMAT_INIT.
1183         * config.gcc (extra_options): Add for mingw targets mingw.opt.
1184         * config/i386/mingw.opt: New.
1185         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
1186         * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
1187         (ms_printf_length_specs): Removed const specifier.
1188         * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
1189         * doc/invoke.texi (Wno-pedantic-ms-format): New.
1190
1191 2008-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1192
1193         * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
1194         * doc/install.texi: Bump recommended MPFR to 2.3.2.
1195
1196 2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>
1197
1198         PR middle-end/37808
1199         * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
1200         sure that ref has valid bb.
1201         
1202 2008-10-12  Richard Henderson  <rth@redhat.com>
1203
1204         PR middle-end/37447
1205         * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
1206         * alias.c (value_addr_p, stack_addr_p): Remove.
1207         (nonoverlapping_memrefs_p): Remove IRA special case.
1208         * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
1209         * emit-rtl.h (set_mem_attrs_for_spill): Declare.
1210         * reload1.c (alter_reg): Use it.
1211
1212 2008-10-12  Uros Bizjak  <ubizjak@gmail.com>
1213
1214         * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
1215         of registers instead of eax, ebx, ecx and edx.  Use for loop
1216         and check register for non-zero value before the call
1217         to decode_caches_intel.
1218
1219 2008-10-11  Kenneth Zadeck <zadeck@naturalbridge.com>
1220
1221         PR rtl-optimization/37448
1222         * df.h: (df_ref_class): New enum.
1223         (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
1224         (struct df_ref): Replaced with union df_ref_d.
1225         (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
1226         New members of df_ref_d union.
1227         (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
1228         DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
1229         DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
1230         DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
1231         DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
1232         DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
1233         (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
1234         (df_scan_bb_info, df_bb_regno_first_def_find,
1235         df_bb_regno_last_def_find, df_find_def, df_find_use,
1236         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
1237         debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
1238         df_ref_create, df_ref_remove, df_compute_accessed_bytes,
1239         df_get_artificial_defs, df_get_artificial_uses, union_defs)
1240         Replaced struct df_ref * with df_ref.
1241         * df-scan.c (df_collection_rec, df_null_ref_rec,
1242         df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
1243         df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
1244         df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
1245         df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
1246         df_reorganize_refs_by_reg_by_reg,
1247         df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
1248         df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
1249         df_sort_and_compress_refs, df_install_ref, df_install_refs,
1250         df_ref_record, df_get_conditional_uses, df_get_call_refs,
1251         df_bb_refs_record, df_exit_block_uses_collect,
1252         df_record_exit_block_uses, df_reg_chain_mark,
1253         df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
1254         df_ref * with df_ref.
1255         (df_ref_record, df_uses_record, df_ref_create_structure): Added
1256         df_ref_class parameter.
1257         (df_scan_problem_data): Added new pools for different types of refs.
1258         (df_scan_free_internal, df_scan_alloc, df_free_ref,
1259         df_ref_create_structure): Processed new ref pools.
1260         (df_scan_start_dump): Added counts of refs and insns.
1261         (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
1262         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1263         df_entry_block_defs_collect, df_exit_block_uses_collect): Added
1264         code to pass df_ref_class down to ref creation functions.
1265         (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
1266         df_reg_chain_mark): Use macros to hide references to df_refs.
1267         (df_ref_chain_change_bb): Removed.
1268         (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
1269         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
1270         Enhanced to understand df_ref union structure.
1271         * fwprop.c (local_ref_killed_between_p, use_killed_between,
1272         all_uses_available_at, update_df, try_fwprop_subst,
1273         forward_propagate_subreg, forward_propagate_and_simplify,
1274         forward_propagate_into, fwprop, fwprop_addr): Replaced struct
1275         df_ref * with df_ref.
1276         (use_killed_between, all_uses_available_at): Use macros to hide
1277         references to df_refs.
1278         * regstat.c (regstat_bb_compute_ri,
1279         regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
1280         df_ref.
1281         * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
1282         see_handle_relevant_refs, see_analyze_one_def,
1283         see_update_relevancy, see_propagate_extensions_to_uses): Replaced
1284         struct df_ref * with df_ref.
1285         * ra-conflict.c (record_one_conflict, clear_reg_in_live,
1286         global_conflicts): Replaced struct df_ref * with df_ref.
1287         * ddg.c (create_ddg_dep_from_intra_loop_link,
1288         add_cross_iteration_register_deps, build_inter_loop_deps):
1289         Replaced struct df_ref * with df_ref.
1290         (create_ddg_dep_from_intra_loop_link,
1291         add_cross_iteration_register_deps): Use macros to hide references
1292         to df_refs.
1293         * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
1294         df_ref * with df_ref.
1295         * df-core.c (df_bb_regno_first_def_find,
1296         df_bb_regno_last_def_find, df_find_def, df_find_use,
1297         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
1298         debug_df_ref): Replaced struct df_ref * with df_ref.
1299         (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
1300         * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
1301         df_ref.
1302         * web.c (union_defs, entry_register, replace_ref, web_main):
1303         Replaced struct df_ref * with df_ref.
1304         (union_defs, replace_ref): Use macros to hide references to df_refs.
1305         * global.c (compute_regs_asm_clobbered, build_insn_chain):
1306         Replaced struct df_ref * with df_ref.
1307         * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
1308         * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
1309         Replaced struct df_ref * with df_ref.
1310         * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
1311         mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
1312         with df_ref.
1313         * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
1314         * df-byte-scan.c (df_compute_accessed_bytes_extract,
1315         df_compute_accessed_bytes_strict_low_part,
1316         df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
1317         Replaced struct df_ref * with df_ref.
1318         (df_compute_accessed_bytes): Use macros to hide references to df_refs.
1319         * init-regs.c (initialize_uninitialized_regs): Replaced struct
1320         df_ref * with df_ref.
1321         * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
1322         check_dependency, check_dependencies, record_uses): Replaced
1323         struct df_ref * with df_ref.
1324         (invariant_for_use, check_dependency): Use macros to hide
1325         references to df_refs.
1326         * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
1327         get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
1328         iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
1329         (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
1330         references to df_refs.
1331         * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
1332         with df_ref.
1333         * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
1334         * df-problems.c (df_rd_bb_local_compute_process_def,
1335         df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
1336         df_chain_unlink_1, df_chain_unlink, df_chain_copy,
1337         df_chain_remove_problem, df_chain_create_bb_process_use,
1338         df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
1339         df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
1340         df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
1341         df_byte_lr_simulate_artificial_refs_at_top,
1342         df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
1343         df_note_bb_compute, df_note_add_problem, df_simulate_defs,
1344         df_simulate_uses, df_simulate_artificial_refs_at_end,
1345         df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
1346         df_ref.
1347         (df_chain_dump): Use macros to hide references to df_refs.
1348         * config/mips/mips.c (r10k_simplify_address): Replaced struct
1349         df_ref * with df_ref.
1350         * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
1351         mark_artificial_uses, mark_reg_dependencies,
1352         byte_dce_process_block): Replaced struct df_ref * with df_ref.
1353
1354 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1355
1356         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
1357         head comment.
1358         (array_ref_element_size): Likewise.
1359         (array_ref_low_bound): Likewise.
1360         (array_ref_up_bound): Likewise.
1361         * expr.c (contains_packed_reference): Likewise.
1362         (array_ref_element_size): Likewise.
1363         (array_ref_low_bound): Likewise.
1364         (array_ref_up_bound): Likewise.
1365         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
1366         with ARRAY_RANGE_REF.
1367         (idx_find_step): Likewise.
1368         (idx_record_use): Likewise.
1369         (strip_offset_1): Likewise.
1370         (idx_remove_ssa_names): Likewise.
1371
1372 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
1373             Andi Kleen  <ak@linux.intel.com>
1374
1375         * config/i386/cpuid.h (__cpuid_count): New defines.
1376         * config/i386/driver-i386.c (struct cache_desc): New structure.
1377         (describe_cache): Use struct cache_desc to pass cache descriptions.
1378         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
1379         (detect_caches_amd): Use struct cache_desc to describe caches.
1380         (decode_caches_intel): Use struct cache_desc to pass cache
1381         descriptions.  Update descriptions to match latest (rev -032,
1382         December 2007) CPUID documentation.  Do not check valid bit here.
1383         Check for Xeon MP value 0x49 problems.
1384         (detect_caches_cpuid2): New function, split from detect_caches_intel.
1385         Check valid bit before calling decode_caches_intel.  Detect number
1386         of times to repeat CPUID instruction.
1387         (detect_caches_cpuid4): New function.
1388         (detect_caches_intel): Depending on max_level, call
1389         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
1390         only when other methods fail to provide valid L2 cache description.
1391
1392 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1393
1394         PR middle-end/37608
1395         * pa.md (call, call_value): Generate an rtx for register r4 and pass
1396         it to PIC call patterns.
1397         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
1398         code generation and attributes from pattern.  Change peephole2 to
1399         split for noreturn case.  Revise split pattern for non noreturn case.
1400         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
1401         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
1402         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
1403         asserts.
1404
1405 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
1406
1407         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
1408         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
1409         and fp_type.
1410         (divdf3): Reformat long line.
1411
1412 2008-10-11  Michael J. Eager  <eager@eagercon.com>
1413
1414         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
1415         -mfpu options.
1416         (rs6000_handle_option): Process -mfpu options.
1417         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
1418         (enum fpu_type_t): New.
1419         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
1420         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
1421         fp_type.
1422         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
1423         (floatdidf2): Add TARGET_SINGLE_FPU condition.
1424         * config/rs6000/rs6000.opt (-mfpu): New.
1425         (-mxilinx-fpu): New.
1426         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
1427         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
1428         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
1429         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
1430         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
1431
1432 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
1433
1434         PR target/35760
1435         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
1436         LO_SUM on Darwin if mode has just one unit.
1437
1438 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
1439
1440         PR debug/37002
1441         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
1442         has been optimized out.
1443
1444 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
1445
1446         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
1447         instead of PIC_DIRECT_ADDR_P.
1448         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
1449         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
1450         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
1451         (PIC_OFFSET_P): Rename to...
1452         (PCREL_SYMOFF_P): ...this.
1453         (PIC_DIRECT_ADDR_P): Delete.
1454         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
1455         PIC_OFFSET_P.
1456         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
1457         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
1458         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
1459         * config/sh/sh.c (print_operand): Remove CONST handling.
1460         (unspec_caller_rtx_p): Rewrite to use split_const and check
1461         the operands of UNSPEC bases.
1462         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
1463         with (unspec [A B] UNSPEC_SYMOFF).
1464         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
1465         UNSPEC_PCREL_SYMOFF.
1466         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
1467         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
1468         (UNSPEC_EXTRACT_U16): Likewise.
1469         (UNSPEC_SYMOFF): Likewise.
1470         (UNSPEC_PCREL_SYMOFF): Likewise.
1471         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
1472         of constants.
1473         (movsi_const_16bit): Likewise.
1474         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
1475         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
1476         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
1477         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
1478         with (unspec [A B] UNSPEC_SYMOFF).
1479         (symPLT_label2reg): Replace (minus A (minus B pc)) with
1480          (unspec [A B] PCREL_UNSPEC_SYMOFF).
1481         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
1482         (Csu): Likewise UNSPEC_EXTRACT_U16.
1483         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
1484         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
1485
1486 2008-10-10  Stepan Kasal  <skasal@redhat.com>
1487
1488         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
1489         for loop strip mining and loop blocking.
1490
1491 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
1492
1493         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
1494         vary types depending on debug info.
1495
1496 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
1497
1498         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
1499         before ensuring it's already computed.
1500
1501 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
1502
1503         * rtl.h (locator_eq): New decl.
1504         * cfglayout.c (locator_scope): New function.
1505         (insn_scope): Use it.
1506         (locator_eq): New function.
1507         (fixup_reorder_chain): Search for last insn in src bb
1508         that has locator set or first insn in dest bb.  Use
1509         locator_eq instead of == to compare locators.
1510         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1511         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
1512         == to compare locators.
1513
1514         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
1515         as used.
1516         * gimple-low.c (lower_function_body, lower_gimple_return,
1517         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
1518         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
1519         goto_block on edges if goto_locus is known.
1520
1521         PR middle-end/37774
1522         * tree.h (get_object_alignment): Declare.
1523         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
1524         get_object_alignment if needed.
1525         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
1526         handling to ...
1527         (get_object_alignment): ... here.  New function.  Try harder to
1528         determine alignment from get_inner_reference returned offset.
1529
1530 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
1531
1532         * graphite.c (gloog): Don't call find_unreachable_blocks
1533         before delte_unreachable_blocks.
1534
1535         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
1536         goto_locus of true_edge into RTL locator.
1537
1538 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
1539
1540         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
1541         (*jcc_btdi_mask_rex64): Ditto.
1542         (*jcc_btsi): Ditto.
1543         (*jcc_btsi_mask): Ditto.
1544         (*jcc_btsi_1): Ditto.
1545         (*jcc_btsi_mask_1): Ditto.
1546
1547 2008-10-08  Paul Brook  <paul@codesourcery.com>
1548
1549         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
1550         compatible profiler (__gnu_mcount_nc).
1551         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1552
1553 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1554
1555         * config/i386/i386.c (initial_ix86_tune_features): Add
1556         X86_TUNE_USE_VECTOR_FP_CONVERTS.
1557         * config/i386/i386.h (ix86_tune_indices): Likewise.
1558         (TARGET_USE_VECTOR_FP_CONVERTS): New.
1559
1560         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
1561         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
1562         for FP to FP splitters.
1563
1564 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1565
1566         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
1567         splitter.
1568
1569 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
1570
1571         PR target/36635
1572         PR target/37290
1573         PR rtl-optimization/37341
1574         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
1575         to ORIG_BB, pass through ORIG_BB recursively.
1576         (cse_condition_code_reg): Adjust caller.
1577
1578 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
1579
1580         * sdbout.c (sdbout_one_type): Treat the value type
1581         CONST_DECL for enumerals.
1582
1583 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         * config/i386/i386.md: Remove trailing white spaces.
1586
1587 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
1588
1589         PR rtl-optimization/37448
1590         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
1591         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
1592         Make unsigned long.
1593         (struct output_info) [count]: Renamed total_created and made
1594         unsigned long.
1595         (struct output_info) [size]: Renamed total_allocated and made
1596         unsigned long.
1597         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
1598         Properly keep track of desc->size.
1599         (print_statistics, dump_alloc_pool_statistics): Enhance the
1600         printing of statistics to print the number of elements and to use
1601         unsigned longs.
1602         
1603 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1604
1605         PR middle-end/37576
1606         * opts.h (CL_SAVE): Move up to flags range.
1607         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
1608         CL_COMMON): Renumber.
1609         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
1610         * opts.c (common_handle_option): Revert last change.
1611
1612 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1613
1614         * config/i386/i386-protos.h (ix86_schedule): New.
1615
1616         * config/i386/i386.c (ix86_schedule): New.
1617         (override_options): Add schedule to processor_alias_table.  Set
1618         ix86_schedule from the schedule field in processor_alias_table.
1619         (ix86_function_specific_save): Save ix86_schedule.
1620         (ix86_function_specific_restore): Restore ix86_schedule.
1621
1622         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
1623         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
1624         and generic32.
1625
1626         * config/i386/i386.opt: Add schedule.
1627
1628         * config/i386/ppro.md: Remove generic32.
1629
1630 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
1631
1632         PR c/35437
1633         * expr.c (count_type_elements): Handle ERROR_MARK.
1634
1635 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1636
1637         PR debug/29609
1638         PR debug/36690
1639         PR debug/37616
1640         * basic-block.h (struct edge_def): Add goto_block field.
1641         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
1642         one insn with locus corresponding to edge's goto_locus if !optimize.
1643         * profile.c (branch_prob): Copy edge's goto_block.
1644         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
1645         emitted jumps.
1646         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
1647         locator in between the merged basic blocks if !optimize and needed.
1648         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
1649         goto_locus into RTL locator.  For unconditional jump use that
1650         locator for the jump insn.
1651         (expand_gimple_cond): Convert goto_block and goto_locus into
1652         RTL locator for all remaining edges.  For unconditional jump
1653         use that locator for the jump insn.
1654         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
1655         there is more than one edge or insn locator along the forwarding
1656         edges and !optimize.  If there is just one, set e->goto_locus.
1657         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
1658         edge's goto_block.
1659         (move_block_to_fn): Adjust edge's goto_block.
1660
1661 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1662
1663         PR middle-end/37731
1664         * expmed.c (expand_mult): Properly check DImode constant in
1665         CONST_DOUBLE.
1666
1667 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
1668
1669         PR debug/37738
1670         * dwarf2out.c (common_block_die_table): New variable.
1671         (common_block_die_table_hash, common_block_die_table_eq): New
1672         functions.
1673         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
1674         COMMON block in the current scope rather than globally.  Optimize
1675         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
1676         DW_OP_addr SYMBOL_REF+off.
1677
1678 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1679
1680         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
1681         Return true for non-addressable GIMPLE operands.
1682
1683 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1684
1685         PR target/24765
1686         * config/i386/i386.c (initial_ix86_tune_features): Remove
1687         X86_TUNE_USE_BIT_TEST.
1688         * config/i386/i386.h (ix86_tune_indices): Likewise.
1689         (TARGET_USE_BIT_TEST): Removed.
1690
1691 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1692
1693         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
1694
1695 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
1696
1697         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
1698         (mul<mode>3_mul3): ... into this new template.
1699
1700 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
1701
1702         * gimplify.c (gimplify_arg): Add location argument.  Use it.
1703         (gimplify_call_expr): Pass location to gimplify_arg.
1704         (gimplify_modify_expr_to_memcpy): Same.
1705         (gimplify_modify_expr_to_memset): Same.
1706
1707 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1708
1709         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1710         Update calls to build_unary_op and build_indirect_ref for location
1711         changes.
1712
1713 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
1714
1715         build_modify_expr.
1716         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
1717         * c-typeck.c (array_to_pointer_conversion): Pass location to
1718         build_unary_op.
1719         (function_to_pointer_conversion): Use error_at and warning_at.
1720         (build_indirect_ref): Same.
1721         (build_array_ref): Pass location to build_binary_op.
1722         (parser_build_unary_op): Do not set location after calling
1723         build_unary_op.
1724         (build_unary_op): Add location argument.  Use it throughout.  Set
1725         EXPR_LOCATION before returning new tree.
1726         (build_modify_expr): Same.
1727         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
1728         returning node.
1729         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
1730         build_indirect_ref, build_modify_expr.
1731         (c_finish_omp_for): Same.  Use error_at instead of error.
1732         * c-common.c (c_common_truthvalue_conversion): Pass location to
1733         build_unary_op.
1734         (warn_for_div_by_zero): Add location argument.
1735         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
1736         build_unary_op, warn_for_div_by_zero.
1737         * c-parser.c (c_parser_typeof_specifier): Use
1738         protected_set_expr_location.
1739         (c_parser_statement_after_labels): Same.
1740         (c_parser_condition): Same.
1741         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
1742         (c_parser_conditional_expression): Use protected_set_expr_location.
1743         (c_parser_unary_expression): Pass location to build_indirect_ref.
1744         (c_parser_postfix_expression_after_primary): Pass location to
1745         build_indirect_ref, build_unary_op.
1746         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
1747
1748 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
1749
1750         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
1751         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
1752         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
1753         r14000 and r16000.
1754         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
1755         (mips_issue_rate): Handle PROCESSOR_R10000.
1756         * config/mips/mips.md (cpu): Add r10000.
1757         Include r10000.md.
1758         * config/mips/10000.md: New file.
1759
1760 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1761
1762         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
1763         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
1764         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
1765
1766 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1767
1768         * config/darwin-protos.h (machopic_function_base_name): Delete.
1769         (machopic_function_base_sym): Likewise.
1770         (machopic_gen_offset): Declare.
1771         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
1772         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
1773         * config/darwin.c (machopic_function_base_name): Delete.
1774         (machopic_function_base_sym): Likewise.
1775         (gen_pic_offset): Rename to...
1776         (machopic_gen_offset): ...this and remove the pic_base argument.
1777         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
1778         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
1779         crtl->uses_pic_offset_table.
1780         (machopic_indirect_data_reference): Use new machopic_gen_offset
1781         interface.
1782         (machopic_legitimize_pic_address): Likewise.
1783         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
1784
1785         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
1786         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
1787         * config/i386/i386.c (output_set_got): Likewise.
1788         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
1789         instead of a MINUS.
1790         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
1791         (legitimate_address_p): Likewise.
1792         (output_pic_addr_const): Likewise.
1793         (output_addr_const_extra): Likewise.
1794         (ix86_delegitimize_address): Expect darwin_local_data_pic to
1795         match an UNSPEC rather than a MINUS.
1796         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
1797         (builtin_setjmp_receiver): Use machopic_gen_offset.
1798         * config/i386/predicates.md (pic_symbolic_operand): Handle
1799         UNSPEC_MACHOPIC_OFFSET.
1800
1801         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1802         Use machopic_gen_offset and machopic_operand_p.
1803         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
1804         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
1805         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
1806         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
1807         Set crtl->uses_pic_offset_table.
1808
1809 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
1810
1811         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1812         Declare.
1813         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
1814         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
1815         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
1816         (constant_pool_expr_p): Use split_const and check the base.
1817         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
1818         instead of a MINUS.
1819         (legitimate_constant_pool_address_p): Check toc_relative_p
1820         instead of constant_pool_expr_p.
1821         (print_operand_address): Always use output_addr_const for
1822         constant pool addresses.
1823         (rs6000_output_addr_const_extra): New function.
1824         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
1825
1826 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
1827
1828         PR middle-end/37535
1829
1830         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
1831         (mark_ref_live, mark_ref_dead): Use them.
1832         (def_conflicts_with_inputs_p): Remove.
1833         (mark_early_clobbers): New function.
1834         (process_bb_node_lives): Call preprocess_constraints and
1835         mark_early_clobbers.
1836
1837         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
1838
1839 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
1840
1841         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
1842         lib with -mthread switch.
1843
1844 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
1845
1846         PR c++/37410
1847         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
1848         function in two, making it call a new and reusable
1849         dwarf2out_imported_module_or_decl() that takes the containing
1850         BLOCK of the declaration in argument.
1851         (dwarf2out_imported_module_or_decl_real): New function.
1852         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
1853         IMPORTED_DECL in account.
1854         * tree.def: Added IMPORTED_DECL node type.
1855         * tree.h: Added accessors for IMPORTED_DECL nodes.
1856         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
1857
1858 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1859
1860         * doc/gimple.texi: Fix some typos, wrap some long lines,
1861         fix some broken wraps with continuations.
1862         * tree-ssa-reassoc.c: Fix comment typos.
1863
1864 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1865
1866         PR target/37603
1867         * pa.c (legitimize_pic_address): Force function labels to memory in
1868         word mode.
1869
1870 2008-10-04  Anton Blanchard  <anton@samba.org>
1871
1872         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
1873         (rs6000_split_atomic_op): Same.
1874         (rs6000_split_compare_and_swap): Same.
1875         (rs6000_split_compare_and_swapqhi): Same.
1876
1877 2008-10-04  Richard Guenther  <rguenther@suse.de>
1878
1879         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
1880         instead of pointer equality.
1881         (vn_nary_op_eq): Likewise.
1882
1883 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1884
1885         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT 
1886         condition.
1887         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
1888         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
1889
1890 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
1891
1892         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
1893         Revert previous change.
1894
1895 2008-10-03  Tom Tromey  <tromey@redhat.com>
1896
1897         * stringpool.c (ggc_alloc_string): Terminate string.
1898
1899 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
1900
1901         * gimplify.c (gimplify_function_tree): For -finstrument-functions
1902         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
1903         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
1904
1905         PR debug/37726
1906         * gimplify.c (declare_vars): Use gimple_bind_block instead of
1907         gimple_block.
1908
1909 2008-10-03  Pascal Obry  <obry@adacore.com>
1910
1911         * gcov.c (create_file_names): Properly handle UNIX and DOS
1912         directory separators.
1913         (make_gcov_file_name): Likewise + convert the ':' DOS drive
1914         separator to '~' to ensure clean filenames on Windows.
1915
1916 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
1917
1918         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
1919         Add a null terminator to the stripped name.
1920
1921 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
1922
1923         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
1924         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1925         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
1926         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
1927         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1928         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
1929         TARGET_SINGLE_FLOAT.
1930
1931 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
1932
1933         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
1934
1935 2008-10-02  Richard Guenther  <rguenther@suse.de>
1936
1937         PR middle-end/37713
1938         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
1939         and VECTOR_TYPE recurse with useless_type_conversion_p which
1940         properly handles void pointer conversion.
1941
1942 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>  
1943
1944         PR target/37528
1945         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
1946         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
1947
1948 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1949
1950         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1951         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
1952         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
1953         they translate to non builtins.
1954         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
1955         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
1956         __builtin_vec_promote, __builtin_vec_extract, and
1957         __builtin_vec_insert.
1958         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
1959         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
1960         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
1961         * config/rs6000/altivec.h (vec_extract): Define
1962         (vec_insert): Define.
1963         (vec_splats): Define.
1964         (vec_promote): Define.
1965
1966 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1967             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
1968             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
1969
1970         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
1971         Altivec intrinsics.
1972         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
1973         prototype.  Add new parameter, blk.
1974         Use BLKmode for the MEM if blk is true.
1975         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
1976         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
1977         ALTIVEC_BUILTIN_STVRXL.
1978         Update usage of altivec_expand_lv_builtin.
1979         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
1980         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
1981         (altivec_init_builtins): If compiling for the Cell, also define the
1982         cell VMX builtins.
1983         * config/rs6000/rs6000.h (rs6000_builtins): Define
1984         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
1985         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
1986         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
1987         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
1988         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
1989         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
1990         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
1991         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
1992         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
1993         UNSPEC_STVRX, and UNSPEC_STVRXL.
1994         (altivec_lvlx): New pattern.
1995         (altivec_lvlxl): New pattern.
1996         (altivec_lvrx): New pattern.
1997         (altivec_lvrxl): New pattern.
1998         (altivec_stvlx): New pattern.
1999         (altivec_stvlxl): New pattern.
2000         (altivec_stvrx): New pattern.
2001         (altivec_stvrxl): New pattern.
2002         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
2003         (vec_lvlxl): Likewise.
2004         (vec_lvrx): Define if PPU is defined.
2005         (vec_lvrxl): Likewise.
2006         (vec_stvlx): Define if PPU is defined.
2007         (vec_stvlxl): Likewise.
2008         (vec_stvrx): Define if PPU is defined.
2009         (vec_stvrxl): Likewise.
2010
2011 2008-10-01  Geert Bosch  <bosch@adacore.com>
2012
2013         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
2014
2015 2008-10-01  Richard Guenther  <rguenther@suse.de>
2016
2017         PR tree-optimization/37617
2018         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
2019         do not add to the NEW_SETS.
2020
2021 2008-10-01  Richard Guenther  <rguenther@suse.de>
2022
2023         PR middle-end/37285
2024         * tree-vrp.c (execute_vrp): If we optimized away the default
2025         case make sure to promote the label that got in place of it
2026         to a default case label.
2027
2028 2008-10-01  Richard Henderson  <rth@redhat.com>
2029
2030         PR tree-opt/35737
2031         * tree-complex.c (set_component_ssa_name): Don't optimize
2032         is_gimple_min_invariant values with ssa_names in abnormal phis.
2033
2034 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
2035
2036         PR tree-optimization/37662
2037         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
2038         commutative binary operation if they are in the wrong order and
2039         fold_build2 produces non-GIMPLE.
2040
2041 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
2042
2043         PR tree-optimization/37662
2044         PR tree-optimization/37663
2045         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
2046         get_value_range with non-SSA_NAME.  Don't assert operands have been
2047         folded, instead just bail out.
2048
2049 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2050
2051         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
2052
2053 2008-09-30  Richard Guenther  <rguenther@suse.de>
2054
2055         PR middle-end/37491
2056         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
2057         build restrict-qualified pointers.
2058         (vectorizable_store): Move alias check later.
2059         (vectorizable_load): Likewise.
2060
2061 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
2062
2063         * c-common.c (empty_if_body_warning): Remove.
2064         * c-common.h (empty_if_body_warning): Remove.
2065         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
2066         here the -Wempty-body warning for `if' and `else' statements.
2067         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
2068
2069 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2070
2071         * config/i386/i386.opt: Add msse2avx.
2072
2073         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
2074         * config/i386/linux64.h (ASM_SPEC): Likewise.
2075
2076         * doc/invoke.texi: Document -msse2avx.
2077
2078 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2079
2080         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
2081
2082 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
2083
2084         * ifcvt.c (noce_emit_store_flag): If using condition from original
2085         jump, reverse it if if_info->cond was reversed.
2086
2087 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2088
2089         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2090         non-constant memory if it cannot be forced to constant memory.
2091         Overhaul surrounding code and factor out common condition.
2092
2093 2008-09-29  Jeff Law <law@redhat.com>
2094
2095         * reload1.c (alter_reg): Add missing curly braces.
2096
2097 2008-09-29  Michael J. Eager  <eager@eagercon.com>
2098
2099         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
2100         are easy.
2101         * config/rs6000/rs6000.c (rs6000_override_options): Move
2102         rs6000_init_hard_regno_mode_ok after all options changed.
2103         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
2104         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
2105         -msimple-fpu flags.  Add warning messages if single FP not configured.
2106         (rs6000_file_start): Output gnu_attribute for single-float.
2107         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
2108         (rs6000_legitimize_address): Likewise.
2109         (rs6000_legitimize_reload_address): Likewise.
2110         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
2111         TARGET_SINGLE_FLOAT.
2112         (function_arg_advance): Likewise (partial conversion).
2113         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
2114         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
2115         TARGET_SINGLE_FLOAT.
2116         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
2117         (rs6000_emit_prologue): Likewise.
2118         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
2119         TARGET_SINGLE_FLOAT.
2120         (rs6000_libcall_value): Likewise.
2121         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
2122         (TARGET_DOUBLE_FLOAT): New default to 1
2123         (TARGET_SIMPLE_FPU): New default to 0
2124         (TARGET_SINGLE_FPU): New default to 0
2125         (TARGET_SINGLE_FLOAT_MODE): New.
2126         (TARGET_DOUBLE_FLOAT_MODE): New.
2127         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
2128         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
2129         UNITS_PER_FP_WORD
2130         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
2131         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
2132         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
2133         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
2134         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
2135         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
2136         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
2137         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
2138         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2139         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
2140         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
2141         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
2142         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
2143         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
2144         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
2145         cmptf_internal1, *cmptf_internal2): Condition on
2146         TARGET_DOUBLE_FLOAT.
2147         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
2148         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
2149         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
2150         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
2151         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
2152         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
2153         TARGET_SINGLE_FLOAT.
2154         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
2155         * config/rs6000/rs6000.opt (-msingle-float): New.
2156         (-mdouble-float): New.
2157         (-msimple-fpu): New.
2158         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
2159         -msingle-float, -mdouble-float, -msimple-fpu options.
2160         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
2161         _SOFT_DOUBLE for -msingle-float.
2162         * config.gcc: New config for target=powerpc-xilinx-eabi.
2163
2164 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
2165
2166         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
2167         have exit and entry.
2168         (new_scop): Take entry and exit edge to define new SCoP.
2169         (sd_region_p): New structure used during SCoP detection.
2170         (move_scops): Delete.
2171         (move_sd_regions): New.
2172         (scopdet_info): Change the definition from edges back to basic_blocks.
2173         (scopdet_edge_info):  Work on basic_blocks and rename to
2174         scopdet_basic_block_info.
2175         (split_difficult_bb): At the moment removed. We should later
2176         add it at another place.
2177         (build_scops_1): Work on basic_blocks.
2178         (bb_in_sd_region): New.
2179         (find_single_entry_edge): New.
2180         (find_single_exit_edge): New.
2181         (create_single_entry_edge): New.
2182         (sd_region_without_exit): New.
2183         (create_single_exit_edge): New.
2184         (unmark_exit_edges): New.
2185         (mark_exit_edges): New.
2186         (create_sese_edges): New.
2187         (build_graphite_scops): New.
2188         (build_scops): Make SCoPs SESE.
2189         (limit_scops): Use the new functions.
2190
2191 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
2192
2193         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
2194
2195 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2196
2197         PR target/37640
2198         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
2199         address to a register before taking the lower part.
2200
2201 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2202
2203         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
2204         for SHmedia.
2205
2206 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2207             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
2208
2209         PR tree-opt/36891
2210         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
2211         the newly created variable.
2212         Create a VECTOR_CST of all 1s for vector types.
2213
2214 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
2215
2216         PR middle-end/36575
2217         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
2218
2219 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
2220
2221         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
2222         order to convert between modes.
2223         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
2224
2225 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2226
2227         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
2228         if needed.
2229
2230 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
2231
2232         Revert:
2233         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2234         * ira-lives.c:...
2235         * doc/rtl.texi:...
2236
2237 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
2238
2239         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
2240         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
2241         them to yield false with MIPS16.
2242
2243 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
2244
2245         PR middle-end/37275
2246         * dwarf2out.c (tls_mem_loc_descriptor): New function.
2247         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
2248         mem_loc_descriptor failed.  Accept UNSPEC.
2249         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
2250         fail if one of the loc_descriptor calls for pieces failed.
2251         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
2252         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
2253         if loc_descriptor_from_tree_1 on offset failed.
2254
2255         PR middle-end/37576
2256         * opts.c (common_handle_option): Don't call print_specific_help with
2257         CL_SAVE as first argument.
2258
2259 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2260             Steve Ellcey  <sje@cup.hp.com>
2261
2262         * configure: Regenerate for new libtool.
2263         * aclocal.m4: Ditto.
2264
2265 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
2266
2267         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
2268         alias set on MEM when saving stack pointer.
2269         * config/rs6000/rs6000.md (allocate_stack): Likewise
2270
2271 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
2272
2273         PR tree-optimization/37574
2274         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
2275         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
2276         instead of vector_type for constants. Take computation out of loop.
2277         (vect_get_vec_def_for_operand): Use only vectype for constant case,
2278         and use only vector_type for invariant case.
2279         (get_initial_def_for_reduction): Use vectype instead of vector_type.
2280
2281 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
2282
2283         PR c/37645
2284         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
2285         the decl is a VAR_DECL or FUNCTION_DECL.
2286
2287 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2288
2289         PR middle-end/37535
2290         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
2291         (mark_ref_live, mark_ref_dead): Use them.
2292         (def_conflicts_with_inputs_p): Remove.
2293         (mark_early_clobbers): New function.
2294         (process_bb_node_lives): Call preprocess_constraints and
2295         mark_early_clobbers.
2296
2297         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
2298
2299 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2300
2301         PR middle-end/37448
2302         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
2303         (ira_compress_allocno_live_ranges): New prototype.
2304
2305         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
2306         (coalesced_allocnos_living_at_program_points): New.
2307         (coalesced_allocnos_live_at_points_p,
2308         set_coalesced_allocnos_live_points): New functions.
2309         (coalesce_spill_slots): Rewrite.
2310         
2311         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
2312         ira_compress_allocno_live_ranges): New functions.
2313
2314         * ira-build.c (ira_flattening): Call
2315         ira_compress_allocno_live_ranges.
2316         (ira_build): Ditto.
2317
2318 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
2321         optimization.
2322
2323 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
2324
2325         * combine.c (make_compound_operation): Handle the 'E' format.
2326         (count_rtxs): Likewise.
2327         (update_table_tick): Likewise.
2328         (get_last_value_validate): Likewise.
2329
2330 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2331
2332         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
2333
2334 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
2335
2336         * matrix-reorg.c (transform_allocation_sites): Initializers 
2337         added to avoid the warning.
2338
2339 2008-09-25  Martin Jambor  <mjambor@suse.cz>
2340
2341         * cgraph.c (free_nodes): New variable.
2342         (NEXT_FREE_NODE): New macro.
2343         (cgraph_create_node): Reuse nodes from the free list.  Do not
2344         update uid if doing so.
2345         (cgraph_remove_node): Add the node to the free list.
2346
2347 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
2348
2349         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2350
2351 2008-09-24  Richard Henderson  <rth@redhat.com>
2352
2353         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
2354         * unwind-dw2.c (execute_stack_op): Handle it.
2355
2356 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
2357
2358         Revert:
2359         2008-09-24  Michael J. Eager  <eager@eagercon.com>
2360
2361 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
2362
2363         * c-common.c (fname_decl): New location argument.
2364         * c-common.h (fname_decl): Same.
2365         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
2366         {warning,error}.
2367         (c_parser_typeof_specifier): Same.
2368         (c_parser_parms_list_declarator): Same.
2369         (c_parser_asm_string_literal): Same.
2370         (c_parser_compound_statement_nostart): Same.
2371         (c_parser_label): Same.
2372         (c_parser_do_statement): Same.
2373         (c_parser_asm_statement): Same.
2374         (c_parser_unary_expression): Same.
2375         (c_parser_sizeof_expression): Same.
2376         (c_parser_postfix_expression): Same.
2377         (c_parser_pragma): Same.
2378         (c_parser_omp_clause_collapse): Same.
2379         (c_parser_omp_clause_num_threads): Same.
2380         (c_parser_omp_clause_schedule): Same.
2381         (c_parser_omp_all_clauses): Same.
2382         (c_parser_omp_sections_scope): Same.
2383         (c_parser_omp_for_loop): Same.  Pass condition's location to
2384         c_objc_common_truthvalue_conversion.
2385         (c_parser_enum_specifier): Remove comment.
2386
2387 2008-09-24  Michael J. Eager  <eager@eagercon.com>
2388
2389         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
2390         are easy.
2391         * config/rs6000/rs6000.c (rs6000_override_options): Move
2392         rs6000_init_hard_regno_mode_ok after all options changed.
2393         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
2394         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
2395         -msimple-fpu flags.  Add warning messages if single FP not configured.
2396         (rs6000_file_start): Output gnu_attribute for single-float.
2397         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
2398         (rs6000_legitimize_address): Likewise.
2399         (rs6000_legitimize_reload_address): Likewise.
2400         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
2401         TARGET_SINGLE_FLOAT.
2402         (function_arg_advance): Likewise.
2403         (function_arg): Likewise.
2404         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
2405         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
2406         TARGET_SINGLE_FLOAT.
2407         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
2408         (rs6000_emit_prologue): Likewise.
2409         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
2410         TARGET_SINGLE_FLOAT.
2411         (rs6000_libcall_value): Likewise.
2412         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
2413         (TARGET_DOUBLE_FLOAT): New default to 1
2414         (TARGET_SIMPLE_FPU): New default to 0
2415         (TARGET_SINGLE_FPU): New default to 0
2416         (TARGET_SINGLE_FLOAT_MODE): New.
2417         (TARGET_DOUBLE_FLOAT_MODE): New.
2418         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
2419         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
2420         UNITS_PER_FP_WORD
2421         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
2422         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
2423         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
2424         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
2425         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
2426         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
2427         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
2428         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
2429         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2430         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
2431         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
2432         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
2433         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
2434         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
2435         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
2436         cmptf_internal1, *cmptf_internal2): Condition on
2437         TARGET_DOUBLE_FLOAT.
2438         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
2439         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
2440         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
2441         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
2442         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
2443         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
2444         TARGET_SINGLE_FLOAT.
2445         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
2446         * config/rs6000/rs6000.opt (-msingle-float): New.
2447         (-mdouble-float): New.
2448         (-msimple-fpu): New.
2449         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
2450         -msingle-float, -mdouble-float, -msimple-fpu options.
2451         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
2452         _SOFT_DOUBLE for -msingle-float.
2453         * config.gcc: New config for target=powerpc-xilinx-eabi.
2454
2455 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
2456
2457         * config/sparc/constraints.md: New file.
2458         * config/sparc/sparc.md: Include it.
2459         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
2460         (sparc_extra_constraint_check): Delete.
2461         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
2462         (memory_ok_for_ldd): New predicate.
2463         (sparc_extra_constraint_check): Delete.
2464         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
2465         (CONST_OK_FOR_LETTER_P): Likewise.
2466         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2467         (EXTRA_CONSTRAINT): Likewise.
2468
2469 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
2470
2471         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
2472
2473 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2474
2475         * alias.c (find_base_value): Use FIND_BASE_TERM.
2476         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
2477
2478 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2479
2480         * config/i386/i386.c: Include cselib.h.
2481         (ix86_pic_register_p): New function.
2482         (ix86_delegitimize_address): Use it to check for the PIC register.
2483
2484 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2485
2486         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
2487         * config/i386/i386.c (ix86_find_base_term): Don't check for
2488         SYMBOL_REF and LABEL_REF.
2489
2490 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
2491
2492         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
2493         constant PLUS in a CONST.
2494
2495 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
2496
2497         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
2498         check for sibcall support for w64.
2499
2500 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
2501
2502         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
2503
2504 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
2505
2506         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
2507         parser_build_binary_op.
2508         * c-decl.c (build_enumerator): Pass location to build_binary_op.
2509         * c-typeck.c (build_array_ref): Same.
2510         (parser_build_unary_op): New location argument.
2511         (pointer_diff): Pass location to build_binary_op,
2512         c_objc_common_truthvalue_conversion.
2513         (build_modify_expr): Same.
2514         (build_unary_op): New location argument.
2515         (build_binary_op): New location argument.
2516         (c_objc_common_truthvalue_conversion): Pass location to
2517         c_*common_truthvalue_conversion.
2518         * c-convert.c (convert): Same.
2519         * c-common.c (binary_op_error): New location argument.
2520         (pointer_int_sum): Pass location to build_binary_op.
2521         (c_common_truthvalue_conversion): New location argument.
2522         (warn_for_sign_compare): Same.
2523         * c-common.h: Add location argument to c_common_truthvalue_conversion,
2524         binary_op_error, build_binary_op, warn_for_sign_compare.
2525         * c-parser.c (c_parser_condition): Pass location to
2526         c_*common_truthvalue_conversion.
2527         (c_parser_conditional_expression): Save condition's location and pass
2528         it on down.
2529         (c_parser_binary_expression): Same, but for the binary operator's
2530         location.
2531         (c_parser_omp_for_loop): Pass location to
2532         c_objc_common_truthvalue_conversion.
2533
2534 2008-09-23  Martin Jambor  <mjambor@suse.cz>
2535
2536         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
2537         (cgraph_node_remove_callees): New temporary f.  Hold the next item
2538         in f when looping.
2539         (cgraph_node_remove_callers): Likewise.
2540
2541         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
2542         (ipa_node_removal_hook): Likewise.
2543
2544         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
2545         gimple_call_copy_skip_args and moved to the gimple_call section.
2546         * gimple.c (gimple_copy_call_skip_args): Renamed to
2547         gimple_call_copy_skip_args.  Changed al users.
2548
2549 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
2550
2551         * ira-color.c (start_allocno_priorities): Rename to
2552         setup_allocno_priorities.  Use costs and
2553         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
2554         range lengths.  Get rid off doubles.
2555         (ira_fast_allocations): Call start_allocno_priorities.
2556         
2557 2008-09-22  David Daney  <ddaney@avtrex.com>
2558
2559         PR target/37593
2560         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
2561         register if TARGET_LONG_CALLS.
2562
2563 2008-09-22  Richard Guenther  <rguenther@suse.de>
2564
2565         PR tree-optimization/37145
2566         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
2567         value-numbering union accesses with their offset and size only.
2568         (visit_reference_op_load): Fix simplification of inserted conversions.
2569         * tree-ssa-pre.c (find_or_generate_expression): Do not
2570         recursively generate expressions if running FRE.
2571
2572 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
2573
2574         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
2575         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
2576         New patterns.
2577
2578 2008-09-22  Richard Guenther  <rguenther@suse.de>
2579
2580         PR tree-optimization/37145
2581         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
2582         (phi_translate_1): Constant fold references.
2583
2584 2008-09-22  Ira Rosen  <irar@il.ibm.com>
2585
2586         PR tree-optimization/37482
2587         * tree-vectorizer.h (struct _slp_instance): Add new field.
2588         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
2589         (get_earlier_stmt): New function.
2590         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
2591         function.
2592         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
2593         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
2594         asserts that GSI points to the scalar statement being vectorized.
2595         Set new statement location according to GSI.
2596         (vect_schedule_slp_instance): Use GSI of
2597         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
2598
2599 2008-09-21  Jan Hubicka  <jh@suse.cz>
2600
2601         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
2602         (ipcp_insert_stage): Update dead_nodes bitmap.
2603
2604 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
2605
2606         PR target/37528 
2607         * config/i386/t-cygming (SHLIB_LC): Remove.
2608         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
2609         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
2610
2611 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
2612
2613         PR middle-end/37170
2614         PR middle-end/37280
2615         * final.c (mark_symbol_ref_as_used): New helper function.
2616         (output_operand): Instead of just looking inside MEMs for
2617         SYMBOL_REFs, use new helper function and for_each_rtx.
2618         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
2619         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
2620         Make head comment more general.
2621         * config/darwin.c (machopic_output_indirection): Handle weak
2622         references here, like in assemble_external.
2623
2624 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2625
2626         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
2627         (sparc_emit_float_lib_cmp): Change return type.
2628         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
2629         (gen_compare_operator): New function.
2630         (sparc_emit_float_lib_cmp): Return the new operator to be used in
2631         the comparison sequence.  Minor tweaks.
2632         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
2633         that the final operator and the result of sparc_emit_float_lib_cmp
2634         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
2635         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
2636         buneq, bunge, bunle, bltgt): Assert that the final operator and the
2637         result of sparc_emit_float_lib_cmp match for software TFmode.
2638         (movqicc, movhicc, movsicc, movdicc): Merge into...
2639         (mov<I:mode>cc): ...this.
2640         (movsfcc, movdfcc, movtfcc): Merge into...
2641         (mov<F:mode>cc): ...this.
2642         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
2643         into...
2644         (mov<I:mode>_cc_v9): ...this.
2645         (movdi_cc_sp64_trunc): Delete.
2646         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
2647         movdi_cc_reg_sp64): Merge into...
2648         (mov<I:mode>_cc_reg_sp64): ...this.
2649         (movsf_cc_sp64): Rename into...
2650         (movsf_cc_v9): ...this.
2651         (movdf_cc_sp64): Rename into...
2652         (movdf_cc_v9): ...this.
2653         (movtf_cc_hq_sp64): Rename into...
2654         (movtf_cc_hq_v9): ...this.
2655         (movtf_cc_sp64): Rename into...
2656         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
2657
2658 2008-09-21  Diego Novillo  <dnovillo@google.com>
2659
2660         * doc/gccint.texi: Include generic.texi and gimple.texi.
2661         Re-order index.
2662         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
2663         (GIMPLE): Move to gimple.texi.
2664         (Annotations): Remove references to to stmt_ann_t and
2665         ssa_name_ann_t.
2666         (SSA Operands): Rename from 'Statement Operands'.
2667         * doc/generic.texi: New.
2668         * doc/gimple.texi: New.
2669         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
2670         * Makefile.in (TEXI_GCCINT_FILES):
2671         * gimple.c (gimple_copy_call_skip_args): Rename from
2672         giple_copy_call_skip_args.  Update all users.
2673         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
2674
2675 2008-09-21  Ira Rosen  <irar@il.ibm.com>
2676
2677         PR tree-optimization/37539
2678         * tree-vect-transform.c (vect_transform_strided_load): Save vector
2679         statement in related statement field only for the first load of the
2680         group of loads with the same data reference.
2681
2682 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
2683
2684         * config/mips/mips.h (TUNE_OCTEON): New macro.
2685         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
2686         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
2687         * config/mips/octeon.md: New file.
2688         * config/mips/mips.md: Include octeon.md.  Restore
2689         semi-alphabetical order of include files.
2690
2691 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         PR target/37571
2694         * config/i386/i386.md (*jcc_fused_1): Removed.
2695         (*jcc_fused_2): Likewise.
2696         (*jcc_fused_3): Likewise.
2697         (*jcc_fused_4): Likewise.
2698
2699 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2700
2701         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
2702         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
2703         * target.h (gcc_target): Add ira_cover_classes.
2704         * ira.c: Remove IRA_COVER_CLASSES guards.
2705         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
2706         instead of IRA_COVER_CLASSES.
2707         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
2708         (setup_class_translate): Likewise.
2709         (setup_reg_class_intersect_union): Likewise.
2710         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
2711         test of targetm.ira_cover_classes.
2712         * opts.c (decode_options): Use targetm.ira_cover_classes instead
2713         of IRA_COVER_CLASSES.
2714         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
2715         (TARGET_INITIALIZER): Include it.
2716         * targhooks.h (default_ira_cover_classes): Declare.
2717         * targhooks.c (default_ira_cover_classes): New function.
2718
2719 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
2720         
2721         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
2722         
2723 2008-09-19  Ian Lance Taylor  <iant@google.com>
2724
2725         * varasm.c (narrowing_initializer_constant_valid_p): Return
2726         NULL_TREE if ENDTYPE is not an integer.
2727
2728 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2729
2730         PR tree-opt/30930
2731         * tree-ssa.c (execute_update_addresses_taken): Also update
2732         DECL_GIMPLE_REG_P for vector and complex types.
2733
2734 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
2735             Jan Hubicka  <jh@suse.cz>
2736
2737         PR middle-end/37567
2738         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
2739         empty before freeing them.
2740         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
2741
2742 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
2743
2744         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
2745         * config/xtensa/predicates.md (tls_symbol_operand): New.
2746         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
2747         (TARGET_CANNOT_FORCE_MEM): Define.
2748         (xtensa_tls_symbol_p): New.
2749         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
2750         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
2751         (xtensa_tls_module_base): New.
2752         (xtensa_call_tls_desc): New.
2753         (xtensa_legitimize_tls_address): New.
2754         (xtensa_legitimize_address): Handle TLS symbols.
2755         (xtensa_tls_referenced_p_1): New.
2756         (xtensa_tls_referenced_p): New.
2757         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
2758         UNSPEC_DTPOFF.
2759         (XTENSA_BUILTIN_THREAD_POINTER): New.
2760         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
2761         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
2762         builtin.  Add declarations for __builtin_thread_pointer and
2763         __builtin_set_thread_pointer.
2764         (xtensa_fold_builtin): Recognize new builtins.
2765         (xtensa_expand_builtin): Expand new builtins.
2766         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
2767         (TARGET_THREADPTR): Define.
2768         (HAVE_AS_TLS): Define default value.
2769         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
2770         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
2771         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
2772         (UNSPECV_SET_TP): New.
2773         (sym_TPOFF, sym_DTPOFF): New.
2774         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
2775         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
2776         * configure: Regenerated.
2777         
2778 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2779
2780         PR target/37394
2781         * config/ia64/ia64.c (ia64_optimization_options): Move
2782         checking and setting flag_schedule_insns_after_reload and
2783         ia64_flag_schedule_insns2 back to ...
2784         (ia64_override_options): Here.
2785
2786 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2787
2788         PR rtl-opt/37451
2789         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
2790         zero extend count after the correction to it is done.
2791         (doloop_optimize): Update call to doloop_modify, don't zero extend
2792         count before call.
2793
2794 2008-09-18  Martin Jambor  <mjambor@suse.cz>
2795
2796         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
2797
2798         * ipa-prop.c: Correct comments.
2799         * ipa-prop.h: Likewise.
2800
2801 2008-09-18  Jan Hubicka  <jh@suse.cz>
2802
2803         PR middle-end/37448
2804         * ipa-reference.c (ipa_reference_local_vars_info_d,
2805         ipa_reference_global_vars_info_d,
2806         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
2807         ipa_reference_vars_info_t): Move here from ipa-reference.h
2808         (node_duplication_hook_holder, node_removal_hook_holder): New.
2809         (get_reference_vars_info_from_cgraph): Rename to ...
2810         (get_reference_vars_info): ... this one, use cgraph uids.
2811         (get_local_reference_vars_info, get_global_reference_vars_info):
2812         Use cgraph instead of decl.
2813         (ipa_reference_get_read_local, ipa_reference_get_written_local):
2814         Remove.
2815         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
2816         ipa_reference_get_written_global,
2817         ipa_reference_get_not_written_global): Use cgraph argument.
2818         (check_call): Simplify avail check.
2819         (scan_stmt_for_static_refs): Update.
2820         (propagate_bits): Update.
2821         (merge_callee_local_info): Remove.
2822         (init_function_info): Use cgraph nodes.
2823         (clean_function_local_data): Break out from ...
2824         (clean_function): ... here.
2825         (copy_local_bitmap, copy_global_bitmap): New functions.
2826         (duplicate_node_data, remove_node_data): New functions.
2827         (generate_summary): Register hooks; use visibility instead of
2828         master clones.
2829         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
2830         * ipa-reference.h (ipa_reference_local_vars_info_d,
2831         ipa_reference_global_vars_info_d,
2832         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
2833         ipa_reference_vars_info_t): Move to ipa-reference.c
2834         (ipa_reference_get_read_local, ipa_reference_get_written_local):
2835         Remove.
2836         (ipa_reference_get_read_global, ipa_reference_get_written_global,
2837         ipa_reference_get_not_read_global,
2838         ipa_reference_get_not_written_global): Update prototype.
2839         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
2840         (init_state): Remove.
2841         (node_duplication_hook_holder, node_removal_hook_holder): New.
2842         (get_function_state, set_function_state): Use VECtor.
2843         (analyze_function): Check body availability.
2844         (add_new_function): Likewise.
2845         (duplicate_node_data, remove_node_data): New.
2846         (generate_summary): Register hooks; do not care about clones.
2847         (propafate): Do not care about clones; recursive functions are
2848         not looping.
2849         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
2850         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
2851         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
2852         static.
2853         * tree-flow.h (function_ann_d): Remove reference_vars_info.
2854         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
2855         Update call of ipa-reference accesors.
2856
2857 2008-09-18  Simon Baldwin  <simonb@google.com>
2858
2859         * c-opts.c (c_common_handle_option): Add handling for
2860         -Wbuiltin-macro-redefined command line option.
2861         * c.opt: Added builtin-macro-redefined option.
2862         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
2863         documentation.
2864
2865 2008-09-18  Richard Guenther  <rguenther@suse.de>
2866
2867         PR tree-optimization/37258
2868         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
2869         and signedness for integral types.
2870         (vn_phi_eq): Require compatible types.
2871
2872 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
2873
2874         PR debug/34037
2875         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
2876         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
2877         VAR_DECL.
2878         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
2879         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
2880         ggc_free other TREE_LIST nodes from that chain.
2881         * function.c (instantiate_decls): Instantiate also DECL_RTL
2882         of vars in cfun->local_decls, free that list afterwards.
2883
2884 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
2885
2886         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
2887         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
2888
2889 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
2890
2891         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
2892         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
2893
2894 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
2895
2896         PR tree-optimization/37102
2897         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
2898         from a node. Check to see if another PHI is dead.
2899         (eliminate_useless_phis): Rename from eliminate_virtual_phis and 
2900         remove real PHIs which have no uses.
2901         (rewrite_out_of_ssa): Call eliminate_useless_phis.
2902
2903 2008-09-18  Richard Guenther  <rguenther@suse.de>
2904
2905         PR middle-end/37284
2906         * tree-cfg.c (remove_useless_stmts_1): Remove
2907         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
2908
2909 2008-09-18  Nick Clifton  <nickc@redhat.com>
2910
2911         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
2912         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
2913         to frv_secondary_reload_class.
2914         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2915         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
2916         (frv_secondary_reload_class): Omit unused parameter.
2917         (frv_secondary_reload): New function.  Handle the case when
2918         secondary_reload_class() is called before the reload_(in|out)
2919         _optabs have been initialised.
2920         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
2921         unused parameter.
2922         * config/frv/frv.md: Define an exclusion set between fr550_m0
2923         and fr550_f0.
2924
2925 2008-09-18  Richard Guenther  <rguenther@suse.de>
2926
2927         PR tree-optimization/37456
2928         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
2929         want to insert after ends a BB insert on the single fallthru
2930         outgoing edge.
2931
2932 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
2933
2934         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
2935         Mention -march=z9-109, z9-ec and z10.
2936
2937 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
2938
2939         PR rtl-optimization/37544
2940         * regrename.c (maybe_mode_change): Exit early when copy_mode
2941         is narrower than orig_mode and narrower than new_mode.
2942
2943 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
2944
2945         PR middle-end/37499
2946         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
2947
2948         * sched-rgn.c (ref_counts): Remove.
2949         (insn_referenced): New static variable.
2950         (INSN_REF_COUNT): Remove.
2951         (sched_run_compute_dependencies): Use insn_referenced instead of
2952         INSN_REF_COUNT.
2953         (add_branch_dependences): Likewise.  Delete dead assignment.
2954
2955 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
2956
2957         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
2958         consumer is an asm.  Add comment why this is important.
2959         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
2960         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
2961
2962 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
2963
2964         * expr.c (emit_group_store): Do not shift before moving via a
2965         stack slot.
2966
2967 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2968
2969         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
2970         from aggregate to non-aggregate type if the bit pattern is not fully
2971         preserved afterwards.
2972
2973 2008-09-17  Richard Guenther  <rguenther@suse.de>
2974
2975         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
2976         (verify_gimple_assign): ... this.  Split into ...
2977         (verify_gimple_assign_unary): ... this,
2978         (verify_gimple_assign_binary): ... that,
2979         (verify_gimple_assign_single): ... and this.
2980         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
2981         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
2982         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
2983         (verify_types_in_gimple_reference): Be forgiving with
2984         VIEW_CONVERT_EXPRs.
2985         (verify_gimple_phi): Deal with virtual operands.
2986
2987         * tree.def (PREDICT_EXPR): Change to tcc_expression.
2988
2989 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2990
2991         * tree.c (get_callee_fndecl): Don't call the language hook.
2992         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
2993         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
2994         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
2995
2996 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
2997
2998         * tree.c (protected_set_expr_location): Don't unnecessarily
2999         check for error_mark_node.
3000
3001 2008-09-17  Art Haas  <ahaas@impactweather.com>
3002
3003         * ipa-reference.c (analyze_function): Declare step only if
3004         ENABLE_CHECKING is defined.
3005
3006 2008-09-17  Jan Hubicka  <jh@suse.cz>
3007
3008         PR c++/18071
3009         * tree.h (DECL_INLINE): remove.
3010         (DECL_DECLARED_INLINE_P): Update docs.
3011         (DECL_NO_INLINE_WARNING_P): new.
3012         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
3013         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
3014
3015 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
3016             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3017
3018         PR bootstrap/37441
3019         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
3020         false.
3021
3022 2008-09-17  Jan Hubicka  <jh@suse.cz>
3023
3024         * ipa-reference.c (ipa_obstack): Remove.
3025         (local_info_obstack, global_info_obstack): New.
3026         (add_static_var): We now handle variables only.
3027         (mark_address_taken, mark_load, mark_store): New functions based on ...
3028         (check_operand): ... remove.
3029         (get_asm_stmt_operands): Rename to ...
3030         (check_asm_memory_clobber): ... this. Look only for memory clobber.
3031         (scan_stmt_for_static_refs): Rewrite.
3032         (scan_op_for_static_refs): Rename to ...
3033         (scan_initializer_for_static_refs): do not look for VAR_DECL
3034         initializers; stop recursion on types and decls.
3035         (ipa_init): Use proper obstacks.
3036         (analyze_variable): Use scan_initializer_for_static_refs.
3037         (init_function_info): Use local obstack.
3038         (analyze_function): Simplify.
3039         (add_new_function): We don't need visited_nodes obstack.
3040         (generate_summary): Use proper obstacks; cleanup after propagation.
3041
3042 2008-09-17  Richard Guenther  <rguenther@suse.de>
3043
3044         PR middle-end/37385
3045         PR tree-optimization/37491
3046         * alias.c (get_alias_set): Use the canonical type.
3047         * tree-vect-transform.c (vectorizable_store): Use the type of
3048         the lhs for the vector type.  Adjust checking.
3049         (vectorizable_load): Adjust checking.
3050
3051 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
3052             Adam Nemet  <anemet@caviumnetworks.com>
3053
3054         PR rtl-optimization/37483
3055         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
3056         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
3057         Rearrange code to better match the original comment.  Check
3058         t_unconditional first.  Improve comment.
3059
3060 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
3061
3062         PR c/37529
3063         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
3064         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
3065
3066         PR c++/37530
3067         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
3068         GIMPLE_TRY if cleanup sequence is empty.
3069
3070 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3071
3072         PR middle-end/37263
3073         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
3074         eliminate IV if the cost are the same.
3075
3076 2008-09-16  Richard Guenther  <rguenther@suse.de>
3077
3078         PR middle-end/37380
3079         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
3080         if not necessary.
3081
3082 2008-09-16  Richard Guenther  <rguenther@suse.de>
3083
3084         PR tree-optimization/37508
3085         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
3086
3087 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3088
3089         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
3090
3091 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3092
3093         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
3094         use gen_floatdidf2 directly.
3095         (floatunssidf2): Likewise.
3096         (floatsidf_ppc64_mfpgpr): Remove.
3097         (floatsidf_ppc64): Remove.
3098         (floatunssidf_ppc64): Remove.
3099
3100 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
3101
3102         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
3103         rather than update_cost_queue.
3104
3105         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
3106         in every call starting with the second one, instead of only when
3107         alias_bitmap_obstack.elements != NULL.
3108
3109         * tree-predcom.c (filter_suitable_components): Free all refs in
3110         act->refs vector before calling release_component.
3111         (add_ref_to_chain): Free ref if not adding it to chain->refs.
3112
3113         * tree-data-ref.c (free_subscripts): Free all subscript objects.
3114
3115         * tree-loop-linear.c (linear_transform_loops): Initialize
3116         lambda_obstack only after calling perfect_loop_nest_depth.
3117         Goto free_and_continue instead of just continue for later failures.
3118
3119         PR middle-end/37479
3120         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
3121
3122         PR libmudflap/36397
3123         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
3124
3125 2008-09-14  Andreas Schwab  <schwab@suse.de>
3126
3127         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
3128
3129 2008-09-14  Jan Hubicka  <jh@suse.cz>
3130
3131         * invoke.texi (-fconserve-stack): Document.
3132         * opts.c (decode_options): Handle conserve_stack.
3133         * common.opt (fconvserve_stack): New.
3134
3135 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
3136
3137         * config.host: Add x-aix to host_xmake_file.
3138         * config/rs6000/t-aix52: Do not override LDFLAGS.
3139         * config/rs6000/x-aix: New file.
3140
3141 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
3142
3143         PR target/19636
3144         PR target/24894
3145         PR target/31644
3146         PR target/31786
3147         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
3148         is not recognized as a valid register usage. Allow REG_X to be used
3149         as a base pointer.
3150         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
3151         forces a reload when using a base register.
3152
3153 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
3154
3155         * config/i386/cygming-crtend.c (register_frame_ctor): If
3156         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
3157         directly with atexit.
3158         (deregister_frame_ctor): Rename to ...
3159         (deregister_frame_dtor): Use to call __gcc_deregister_frame
3160         if !DEFAULT_USE_CXA_ATEXIT.
3161
3162 2008-09-13  Jan Hubicka  <jh@suse.cz>
3163
3164         * cgraph.c: Include value-prof.h
3165         * Makefile.in (cgraph.o): Add value-prof.h dependency.
3166
3167 2008-09-13  Jan Hubicka  <jh@suse.cz>
3168
3169         PR middle-end/32581
3170         * tree-profile.c (add_abnormal_goto_call_edges): New function.
3171         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
3172         tree_gen_one_value_profiler, tree_gen_average_profiler,
3173         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
3174
3175 2008-09-13  Jan Hubicka  <jh@suse.cz>
3176
3177         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
3178         too many bytes on misalligned blocks.
3179
3180 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3181
3182         * doc/cfg.texi: Fix some typos.
3183         * doc/extend.texi: Likewise.
3184         * doc/install.texi: Likewise.
3185         * doc/invoke.texi: Likewise.
3186         * doc/rtl.texi: Likewise.
3187         * doc/tree-ssa.texi: Likewise.
3188
3189 2008-09-13  Richard Guenther  <rguenther@suse.de>
3190
3191         PR middle-end/30141
3192         * tree-nested.c (finalize_nesting_tree_1): Generate valid
3193         gimple stores for memory rhs.
3194
3195 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3196
3197         PR rtl-optimization/37489
3198         * cse.c (fold_rtx): Don't return const_true_rtx for float
3199         compare if FLOAT_STORE_FLAG_VALUE is undefined.
3200
3201 2008-09-13  Jan Hubicka  <jh@suse.cz>
3202
3203         PR tree-optimization/37392
3204         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
3205
3206 2008-09-13  Martin Jambor  <mjambor@suse.cz>
3207             Jan Hubicka  <jh@suse.cz>
3208
3209         * cgraph.c (free_edges): New variable.
3210         (NEXT_FREE_EDGE): New macro.
3211         (cgraph_free_edge): New function.
3212         (cgraph_remove_edge): Call cgraph_remove_edge_1.
3213         (cgraph_node_remove_callees): Likewise.
3214         (cgraph_node_remove_callers): Likewise.
3215         (cgraph_create_edge): Reuse edges from the free list.  Do not
3216         update uid if doing so.
3217         (cgraph_remove_*_hook): Add free call.
3218
3219 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3220
3221         * ira-color.c (conflict_allocno_vec): Delete.
3222         (update_cost_queue_elem): New structure.
3223         (update_cost_queue): New variable.
3224         (update_cost_queue_tail): Likewise.
3225         (update_cost_queue_elems): Likewise.
3226         (allocno_update_cost_check): Delete.
3227         (initiate_cost_update): Allocate update_cost_queue_elems
3228         instead of allocno_update_cost_check.
3229         (finish_cost_update): Update the free()s accordingly.
3230         (start_update_cost): New function.
3231         (queue_update_cost): Likewise.
3232         (get_next_update_cost): Likewise.
3233         (update_copy_costs_1): Inline into...
3234         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
3235         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
3236         once we've established they are equal.  Don't allocate update
3237         costs if there is nothing to add to them.
3238         (update_conflict_hard_regno_costs): Remove ALLOCNO and
3239         DIVISOR arguments.  Use a queue instead of recursive calls;
3240         process all the allocnos in the initial queue, rather than
3241         a single allocno.
3242         (assign_hard_reg): Use queue_update_cost instead of
3243         conflict_allocno_vec.  Queue coalesced allocnos instead
3244         of calling update_conflict_hard_regno_costs for each one.
3245         Just call update_conflict_hard_regno_costs once for the
3246         entire queue.
3247         (ira_color): Remove conflict_allocno_vec handling.
3248
3249 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
3250
3251         PR tree-optimization/37484
3252         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
3253         (save_var_name): Same.
3254         (initialize_cloog_names): Same.
3255         (initialize_cloog_names): Same.
3256
3257 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
3258
3259         * tree-scalar-evolution.c (set_instantiated_value): Set
3260         instantiated_below.
3261
3262 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
3263
3264         PR rtl-opt/37377
3265
3266         * ira-build.c (common_loop_tree_node_dominator): Remove.
3267         (copy_live_ranges_to_removed_store_destinations): New function.
3268         (regno_top_level_allocno_map): Move to top level from ...
3269         (ira_flattening): ... here.  Use
3270         copy_live_ranges_to_removed_store_destinations.
3271
3272         * ira-emit.c (generate_edge_moves): Fix a comment.
3273
3274 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
3275
3276         PR target/37466
3277         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
3278         scratch register after 'set' pattern.
3279
3280 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3281
3282         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
3283         information passed to mark_reg_pointer.
3284         * explow.c (force_reg): Likewise.
3285
3286 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3287
3288         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
3289         when building for the celledp architecture.
3290
3291 2008-09-12  Richard Guenther  <rguenther@suse.de>
3292
3293         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
3294
3295 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
3296
3297         PR rtl-optimization/37424
3298         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
3299         the regnos instead of the addresses.
3300
3301 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
3302
3303         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
3304
3305 2008-09-11  Richard Guenther  <rguenther@suse.de>
3306
3307         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
3308         entering the weaker equivalence recording.
3309
3310         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
3311
3312 2008-09-11  Jeff Law <law@redhat.com>
3313
3314         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
3315         by assign_stack_local on the IRA path for stack slot sharing
3316         as well as the non-IRA path.
3317
3318 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
3319
3320         * config/i386/i386.h: Fix whitespace issues.
3321
3322 2008-09-11  Martin Jambor  <mjambor@suse.cz>
3323
3324         * ipa-prop.h (struct ipa_param_flags): Removed.
3325         (struct ipa_param_descriptor): New structure.
3326         (struct ipa_node_params): ipcp_lattices, param_decls and
3327         param_flags moved to ipa_param_description.
3328         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
3329         descriptors.  Renamed all users.
3330         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
3331         changed to access descriptors.  Renamed all users.
3332         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
3333         to access descriptors. Renamed all users.
3334         * ipa-cp.c (ipcp_init_cloned_node): Call
3335         ipa_initialize_node_params instead of ipa_count_formal_params and
3336         ipa_create_param_decls_array.
3337         (ipcp_analyze_node): Likewise.
3338         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
3339         descriptors.  Renamed all users.
3340         (ipcp_initialize_node_lattices): Remove allocation.
3341         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3342         ipa_initialize_node_params instead of ipa_count_formal_params and
3343         ipa_create_param_decls_array.
3344         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
3345         ipa_populate_param_decls, made static, added parameter info,
3346         renamed mt to node, removed allocation, changed to use
3347         descriptors.
3348         (ipa_count_formal_params): Made static, added parameter info,
3349         renamed mt to node.
3350         (ipa_initialize_node_params): New function.
3351         (ipa_check_stmt_modifications): Changed to use descriptors.
3352         (ipa_detect_param_modifications): Removed allocation, changed to
3353         use descriptors.
3354         (ipa_note_param_call): Changed to use descriptors.
3355         (ipa_analyze_params_uses): Removed allocation.
3356         (ipa_free_node_params_substructures): Changed to use descriptors.
3357         (ipa_edge_duplication_hook): Use the unused attribute.
3358         (ipa_node_duplication_hook): Use the unused attribute, changed to
3359         use descriptors, changed to duplicate descriptors.
3360
3361         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
3362         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
3363         indirect inlining.  Made static.
3364         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
3365         functions called only once.
3366         (cgraph_decide_recursive_inlining): Don't call
3367         ipa_propagate_indirect_call_infos, pass new_edges to
3368         cgraph_mark_inline_edge instead.
3369         (cgraph_decide_inlining_of_small_functions): Don't call
3370         ipa_propagate_indirect_call_infos, pass new_edges to
3371         cgraph_mark_inline_edge instead.
3372         (cgraph_decide_inlining): Don't call
3373         ipa_propagate_indirect_call_infos.
3374         * ipa-prop.c: Check that vectors are allocated.
3375
3376         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
3377         iff a new cgraph edges have been created.
3378         (cgraph_decide_inlining): New variable redo_always_inline.
3379         Flattening and always_inlining loop until callgraph stabilizes.
3380         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
3381         true iff new cgraph edges have been created.
3382         (propagate_info_to_inlined_callees): Likewise.
3383         (ipa_propagate_indirect_call_infos): Likewise.
3384
3385 2008-09-11  Richard Guenther  <rguenther@suse.de>
3386
3387         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
3388         (set_prologue_iterations): Likewise.
3389         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
3390         Likewise.
3391         (vect_update_init_of_dr): Likewise.
3392         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
3393         type verification.
3394         * fold-const.c (fold_unary): Do not generate calculations
3395         in sub-types.
3396
3397 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
3398
3399         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
3400         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
3401         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
3402
3403         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
3404         a bool.
3405         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
3406         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
3407         before finalizing the changes.
3408         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
3409         for BIT_IOR_EXPR.
3410         (simplify_truth_ops_using_ranges): New.
3411         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
3412         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
3413         whether a simplification was made.
3414         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
3415         use a switch statement and also call simplify_truth_ops_using_ranges.
3416
3417 2008-09-11  Jan Hubicka  <jh@suse.cz>
3418
3419         * ggc-common.c (loc_array): Make static.
3420         * dce.c (rest_of_handle_ud_dce): Free worklist.
3421
3422 2008-09-11  Jan Hubicka  <jh@suse.cz>
3423
3424         * cgraph.c (cgraph_release_function_body): Plug memory leak on
3425         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
3426         function so we are sure we do not dangle it forever.
3427         * function.c (outer_function_chain, find_function_data): Remove.
3428         (function_context_stack): New.
3429         (push_function_context, pop_function_context): Update.
3430         * function.h (struct function): Remove pointer outer.
3431         (outer_function_chain, find_function_data): Remove.
3432         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
3433
3434 2008-09-11  Jan Hubicka  <jh@suse.cz>
3435
3436         PR middle-end/37448
3437         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
3438
3439 2008-09-11  Jan Hubicka  <jh@suse.cz>
3440
3441         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
3442
3443 2008-09-11  Jan Hubicka  <jh@suse.cz>
3444
3445         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
3446         (free_var_map_entry): New function.
3447         (redirect_edge_var_map_destroy): Use it.
3448
3449 2008-09-11  Jan Hubicka  <jh@suse.cz>
3450
3451         PR middle-end/37448
3452         * tree-inline.c (add_lexical_block): Replace with ...
3453         (prepend_lexical_block): ... prepend at begginig.
3454         (remap_blocks): Use it and reverse later.
3455         (expand_call_inline): Use prepend_lexical_block.
3456
3457 2008-09-11  Jan Hubicka  <jh@suse.cz>
3458
3459         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
3460
3461 2008-09-11  Jan Hubicka  <jh@suse.cz>
3462
3463         * function.c (free_after_compilation): Call insn_locators_free.
3464         * cfglayout.c (insn_locators_free): New function.
3465         * rtl.h (insn_locators_free): Declare.
3466
3467 2008-09-11  Jan Hubicka  <jh@suse.cz>
3468
3469         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
3470         vector pointer.
3471         (cond_move_process_if_block): Update call.
3472
3473 2008-09-11  Jan Hubicka  <jh@suse.cz>
3474
3475         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
3476         * vec.c: Include hashtab.h
3477         (vec_descriptor, ptr_hash_entry): New structures.
3478         (vec_desc_hash, vec_ptr_map): New static variables.
3479         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
3480         register_overhead, free_overhead, vec_heap_free): New functions.
3481         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
3482         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
3483         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
3484         New functions.
3485
3486 2008-09-11  Ira Rosen  <irar@il.ibm.com>
3487
3488         PR tree-optimization/37474
3489         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
3490         length of load permutation.
3491
3492 2008-09-11  Andreas Schwab  <schwab@suse.de>
3493
3494         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
3495
3496 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
3497
3498         PR target/37382
3499         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
3500         * dse.c (find_shift_sequence): Use extract_low_bits instead of
3501         simplify_gen_subreg.
3502
3503 2008-09-11  Ira Rosen  <irar@il.ibm.com>
3504
3505         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
3506         for alias check.
3507
3508 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3509
3510         PR middle-end/37338
3511         * gimplify.c (gimplify_body): Call default_rtl_profile.
3512
3513         PR target/36904
3514         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
3515         instead of tok->val.node if not expanding to something else.  Handle
3516         intervening CPP_PADDING tokens.
3517         (altivec_categorize_keyword): Remove unneeded comparisons.
3518
3519 2008-09-10  Richard Guenther  <rguenther@suse.de>
3520
3521         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
3522
3523 2008-09-10  Richard Guenther  <rguenther@suse.de>
3524
3525         PR middle-end/37432
3526         * tree-inline.c (insert_init_stmt): Make sure to not
3527         insert invalid gimple stores.
3528
3529 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
3530
3531         PR tree-optimization/37388
3532         * toplev.c (process_options): Fail and warn when graphite
3533         flags are used, but the compiler has not been configured
3534         with graphite libraries.
3535         * graphite.c (graphite_transform_loops): Remove printfs
3536         to dump_file for the case when graphite is not available.
3537
3538 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3539
3540         PR target/37434:
3541         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
3542         the even element into register.
3543         (ix86_expand_vector_init_general): Don't use
3544         ix86_expand_vector_init_interleave on V16QImode and V8HImode
3545         if we can't move from GPR to SSE register directly.
3546
3547 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
3548
3549         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
3550         not lose track of the number of NOPs needed.  Number of NOPs needed
3551         for sync vs. loads workaround was switched; corrected.  Run second
3552         pass for all workarounds.  No NOPs needed after call insns.  Change
3553         second pass to use find_next_insn_start and find_load helpers in order
3554         to properly detect parallel insns.
3555         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
3556
3557 2008-09-10  Jan Hubicka  <jh@suse.cz>
3558
3559         * value-prof.c (gimple_ic): Fix tuplification bug.
3560         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
3561         var warning.
3562
3563 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3564
3565         PR tree-optimization/37353
3566         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
3567         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
3568         calls instead of cond_dead_built_in_calls.
3569         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
3570         initalize the vector only before adding first entry.  Use VEC_safe_push
3571         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
3572         shrink_wrap_conditional_dead_built_in_calls call.
3573
3574 2008-09-10  Ira Rosen  <irar@il.ibm.com>
3575
3576         PR tree-optimization/37385
3577         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
3578         argument, and use it as a vector type if not NULL.
3579         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
3580         vectorized rhs.
3581         (vect_setup_realignment): Call vect_create_data_ref_ptr with
3582         additional argument.
3583         (vectorizable_load): Likewise.
3584
3585 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
3586
3587         * config/i386/i386.md (SWI32): New mode iterator.
3588         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
3589         of SWI.
3590
3591 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3592
3593         PR rtl-optimization/37435
3594         * caller-save.c (insert_restore, insert_save): Check the mode by
3595         reg_save_code.
3596
3597 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3598
3599         PR other/37265
3600         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
3601         splay tree lookup.
3602         (dw2_output_indirect_constant_1): Use unstripped name in symbol
3603         reference.
3604
3605 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
3606
3607         * doc/invoke.texi (ARM Options): Correct errors in discussion
3608         of -mfloat-abi, -mhard-float, and -msoft-float.
3609
3610 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
3611             Jan Hubicka  <jh@suse.cz>
3612
3613         PR middle-end/37356
3614         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
3615         calling gimple_regimplify_operands on it.  Iterate over all newly
3616         added statements, not just the last one.
3617         (insert_init_stmt): Insert stmt into seq first, then call
3618         gimple_regimplify_operands on it.  Don't create new gimplification
3619         context, nor find referenced vars.
3620
3621 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
3622
3623         PR other/37419
3624         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
3625         to pointer to vector pointer.
3626         * ipa-prop.c (ipa_propagate_indirect_call_infos,
3627         propagate_info_to_inlined_callees): Likewise.
3628         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
3629         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
3630         ipa_check_create_edge_args.
3631         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
3632         argument to pointer to vector pointer.
3633         (cgraph_decide_inlining_of_small_function): Adjust
3634         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
3635         calls.
3636
3637         PR target/37438
3638         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
3639         optimizing for size, not speed.
3640
3641         PR rtl-optimization/37408
3642         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
3643         if parm is promoted.
3644
3645 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
3646
3647         PR tree-optimization/37375
3648         * tree-scalar-evolution.c (scev_info_str): Add field
3649         instantiated_below.
3650         (new_scev_info_str, eq_scev_info, find_var_scev_info,
3651         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
3652         set_instantiated_value): Pass instantiated_below.
3653         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
3654         to above functions.
3655         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
3656         the definitions are not instantiated.
3657
3658         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
3659         (block_before_loop): New.
3660         * tree-data-ref.c (dr_analyze_indices): Update uses of
3661         instantiate_scev.
3662         * graphite.c (block_before_scop): New.
3663         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
3664         basic block, not a loop for determining the parameters.
3665         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
3666         scop.
3667         (idx_record_params, find_params_in_bb, find_scop_parameters,
3668         build_loop_iteration_domains, add_conditions_to_domain): Update calls
3669         to instantiate_scev.
3670
3671         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
3672
3673 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3674
3675         PR rtl-opt/37333
3676
3677         * ira-build.c (ira_create_allocno): Setup frequency to 0.
3678
3679         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
3680         Check zero freq and increase if necessary.
3681
3682 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3683
3684         * ira-conflicts.c (process_regs_for_copy): Check that the hard
3685         regno is in the right range.  Add comments.
3686
3687 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3688
3689         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
3690         warnings.
3691         * mips-tfile.c (copy_object): Cast alloca result to int *.
3692         * mips-tdump.c (print_symbol): Cast xmalloc return values to
3693         proper types.
3694         Rename class to sclass.
3695         (read_tfile): Cast read_seek return values to proper types.
3696         Cast xcalloc return value to proper type.
3697
3698 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3699
3700         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
3701         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
3702         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
3703
3704 2008-09-09  Jan Hubicka  <jh@suse.cz>
3705
3706         * profile.c (is_edge_inconsistent): Add debug output; ignore
3707         negative count on fake edges.
3708         (is_inconsistent): Add debug output.
3709
3710 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3711
3712         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
3713         dump message.
3714         (choose_ready): When first insn is chosen from the ready list, also
3715         dump it.
3716
3717 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3718
3719         PR rtl-optimization/37360
3720         * haifa-sched.c (max_issue): Do not assert that we never issue more
3721         insns than issue_rate.  Add comment.
3722
3723 2008-09-09  Richard Guenther  <rguenther@suse.de>
3724
3725         * tree-cfg.c (verify_types_in_gimple_op): Remove.
3726         (verify_types_in_gimple_call): Rename to ...
3727         (verify_gimple_call): ... this.  Enhance.
3728         (verify_types_in_gimple_cond): Remove.
3729         (verify_gimple_comparison): New function ...
3730         (verify_types_in_gimple_assign): ... split out from here.
3731         (verify_types_in_gimple_return): Rename to ...
3732         (verify_gimple_return): ... this.  Enhance.
3733         (verify_types_in_gimple_switch): Rename to ...
3734         (verify_gimple_switch): ... this.  Enhance.
3735         (verify_gimple_goto): New function.
3736         (verify_types_in_gimple_phi): Rename to ...
3737         (verify_gimple_phi): ... this.  Enhance.
3738         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
3739         Fold in single-statement cases from verify_types_in_gimple_seq_2.
3740         (verify_types_in_gimple_seq_2): Remove cases handled in
3741         verify_types_in_gimple_stmt.
3742
3743 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
3744
3745         * config/bfin/bfin.c (n_regs_to_save): New static variable.
3746         (push_multiple_operation, pop_multiple_operation): Set it.
3747         (workaround_rts_anomaly): New function.
3748         (workaround_speculation): New function, broken out of bfin_reorg.
3749         (bfin_reorg): Call the new functions.
3750
3751 2008-09-09  Richard Guenther  <rguenther@suse.de>
3752
3753         PR middle-end/37354
3754         PR middle-end/30165
3755         * gimplify.c (gimplify_conversion): Change conversions of
3756         non-register type to VIEW_CONVERT_EXPRs.
3757         (gimplify_addr_expr): If we need to make the operand
3758         addressable make sure to use a properly initialized
3759         temporary for that so it gets a valid gimple store.
3760
3761 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
3762
3763         * function.h (struct function): Add function_start_locus.
3764         * cfgexpand.c (gimple_expand_cfg): Use it.
3765         * c-parser.c (c_parser_declaration_or_fndef): Set it.
3766
3767 2008-09-09  Richard Guenther  <rguenther@suse.de>
3768
3769         PR tree-optimization/37433
3770         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
3771         function calls.
3772
3773 2008-09-09  Richard Guenther  <rguenther@suse.de>
3774
3775         PR tree-optimization/37387
3776         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
3777         and bits to a common type.
3778
3779 2008-09-09  Nick Clifton  <nickc@redhat.com>
3780
3781         * config/v850/v850.md (return): Restore frame size restriction.
3782
3783 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
3784
3785         * c-common.c (c_expand_decl): Remove.
3786         * c-common.h (anon_aggr_type_p): Remove prototype.
3787         (DECL_ANON_UNION_ELEMS): Remove.
3788         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
3789         * c-decl.c (anon_aggr_type_p): Remove.
3790         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
3791         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
3792         * langhooks.h (struct lang_hooks): Remove expand_decl.
3793         * langhooks.c (lhd_expand_decl): Remove.
3794         * stmt.c (expand_anon_union_decl): Remove.
3795         * tree.h (expand_anon_union_decl): Remove prototype.
3796
3797 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3798
3799         PR target/36609
3800         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
3801         zero.
3802         * config/avr/avr.md  (QISI) : Define mode iterator.
3803         (negated_tst<mode>) : Redefine as split using mode macro.
3804         (reversed_tstqi): Define insn as reversed compare with zero.
3805         (reversed_tsthi): Ditto.
3806         (reversed_tstsi): Ditto.
3807
3808 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3809
3810         PR middle-end/37393
3811         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
3812         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
3813
3814         PR middle-end/37414
3815         * predict.c (optimize_function_for_size_p): Don't segfault if
3816         FUN is NULL.
3817         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
3818         tree_swap_operands_p): Don't test cfun != NULL before calling
3819         optimize_function_for_s*_p.
3820
3821 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
3822
3823         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
3824         end of the search.
3825
3826 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
3827
3828         * crx/crx.h (IRA_COVER_CLASSES): Define.
3829
3830 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3831
3832         PR middle-end/37337
3833         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
3834         even when a stmt has been gimple_modified_p, but after fold_stmt is
3835         not any longer.  Remove unneeded may_have_exposed_new_symbols
3836         initializations.
3837
3838 2008-09-08  Richard Guenther  <rguenther@suse.de>
3839
3840         PR tree-optimization/37421
3841         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
3842         valueize the RHS.
3843
3844 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
3845
3846         PR middle-end/37415
3847         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
3848
3849 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3850
3851         PR driver/37409
3852         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
3853         * pa-hpux10.h (LINK_SPEC): Likewise.
3854         * pa-hpux11.h (LINK_SPEC): Likewise.
3855
3856 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3857
3858         * pa32-regs.h (IRA_COVER_CLASSES): Define.
3859         * pa64-regs.h (IRA_COVER_CLASSES): Define.
3860
3861 2008-09-07  Helge Deller  <deller@gmx.de>
3862
3863         * pa/linux-atomic.c: New file.
3864         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
3865         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
3866
3867 2008-09-07  Richard Guenther  <rguenther@suse.de>
3868             Ira Rosen  <irar@il.ibm.com>
3869
3870         PR tree-optimization/36630
3871         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
3872         Call STRIP_NOPS before calling evolution_part_in_loop_num.
3873
3874 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
3875             Ira Rosen  <irar@il.ibm.com>
3876
3877         PR tree-optimization/35642
3878         * config/rs6000/altivec.md (mulv8hi3): Implement.
3879
3880 2008-09-06  Jeff Law <law@redhat.com>
3881
3882         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
3883
3884 2008-09-06  Jan Hubicka  <jh@suse.cz>
3885
3886         PR tree-optimization/14703
3887         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
3888         declarations.
3889         * passes.c (init_optimization_passes): Recompute inline parameters.
3890
3891 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
3892
3893         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
3894         DECL being null.
3895
3896 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
3897             Peter Fuerst  <post@pfrst.de>
3898
3899         * doc/invoke.texi: Document -mr10k-cache-barrier=.
3900         * doc/extend.texi: Document __builtin_mips_cache.
3901         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
3902         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
3903         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
3904         __GCC_HAVE_BUILTIN_MIPS_CACHE.
3905         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
3906         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
3907         (set_push_mips_isas): New variable.
3908         (mips_r10k_cache_barrier): New variable.
3909         (cache): New availability predicate.
3910         (mips_builtins): Add an entry for __builtin_mips_cache.
3911         (mips_build_cvpointer_type): New function.
3912         (MIPS_ATYPE_CVPOINTER): New macro.
3913         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
3914         mode is VOIDmode.
3915         (r10k_simplified_address_p, r10k_simplify_address)
3916         (r10k_uncached_address_p, r10k_safe_address_p)
3917         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
3918         (r10k_needs_protection_p_call, r10k_needs_protection_p)
3919         (r10k_insert_cache_barriers): New functions.
3920         (mips_reorg_process_insns): Delete cache barriers after a
3921         branch-likely instruction.
3922         (mips_reorg): Call r10k_insert_cache_barriers.
3923         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
3924         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
3925         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
3926         (mips_cache, r10k_cache_barrier): New define_insns.
3927
3928 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
3929
3930         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
3931         * ira-color.c (setup_allocno_left_conflicts_num): Use
3932         hard_reg_set_equal_p instead of a comparison with
3933         ira_zero_hard_reg_set.
3934         * ira.c (setup_reg_subclasses): Likewise.
3935         (setup_cover_and_important_classes): Likewise.
3936         (setup_class_translate): Likewise.
3937         (setup_reg_class_intersect_union): Likewise.
3938         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
3939         (ira_init_once): Don't initialize them.
3940
3941 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
3942
3943         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
3944
3945 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
3946
3947         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
3948
3949 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3950
3951         Improved branch hints, safe hints, and scheduling.
3952
3953         * haifa-sched.c (sched_emit_insn) : Define.
3954         * sched-int.h (sched_emit_insn) : Add prototype.
3955         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
3956         -mhint-max-distance -msafe-hints) : Document.
3957         * config/spu/spu.c (spu_flag_var_tracking): New.
3958         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
3959         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
3960         TARGET_ASM_FILE_START): Define.
3961         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
3962         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
3963         (spu_emit_branch_hint): Add blocks argument.
3964         (insert_branch_hints, insert_nops): Remove.
3965         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
3966         uses_ls_unit, spu_sched_init_global, spu_sched_init,
3967         spu_sched_reorder, asm_file_start): New functions.
3968         (clock_var, spu_sched_length, pipe0_clock,
3969         pipe1_clock, prev_clock_var, prev_priority,
3970         spu_ls_first, prev_ls_clock): New static variables.
3971         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
3972         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
3973         (nopn_nv): Add a non-volatile version of nop.
3974         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
3975         -mhint-max-distance, -msafe-hints): New options.
3976
3977 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
3978             Samuel Tardieu  <sam@rfc1149.net>
3979
3980         * opts.c (decode_options): Combine nested if statements.
3981
3982         PR target/37283
3983         * opts.c (decode_options): Handle more relationships among
3984         unit-at-a-time, toplevel-reorder, and section-anchors.
3985
3986 2008-09-05  David Daney  <ddaney@avtrex.com>
3987
3988         * doc/install.texi (--enable-reduced-reflection): Document new option.
3989
3990 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
3991
3992         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
3993         constantpool_mem_p.
3994         (constantpool_operand): New.
3995         (move_operand): Disallow sub-word modes for the constant pool.
3996         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
3997         (xtensa_secondary_reload_class): Replace with....
3998         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
3999         Set icode for sub-word reloads from the constant pool.
4000         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
4001         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4002         * config/xtensa/xtensa.md (reload<mode>_literal): New.
4003         * config/xtensa/xtensa-protos.h: Update prototypes.
4004
4005 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
4006
4007         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
4008         (REG_CLASS_NAMES): Update.
4009         (REG_CLASS_CONTENTS): Update.
4010         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
4011         of ALL_REGS for regs 77 and 78.
4012         * function.c (instantiate_virtual_regs_in_insn): Assert that
4013         return value of simplify_gen_subreg is not NULL.
4014
4015 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
4016
4017         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
4018         (gen_rtvec_v): Fix coding standards.
4019
4020 2008-09-04  Jan Hubicka  <jh@suse.cz>
4021
4022         * i386.c (decide_alg): Be more conservative about optimizing for size.
4023
4024 2008-09-04  Ian Lance Taylor  <iant@google.com>
4025
4026         * varasm.c (narrowing_initializer_constant_valid_p): New
4027         static function.
4028         (initializer_constant_valid_p): Call it.
4029
4030 2008-09-04  Jeff Law  <law@redhat.com>
4031
4032         * fold-const.c (native_encode_real): Fix computation of WORDS.
4033         (native_interpret_real): Likewise.
4034
4035 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
4036
4037         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
4038
4039 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4040
4041         * ira-conflicts.c (process_regs_for_copy): Check insn to check
4042         that the cost is already taken into account in ira-costs.c
4043
4044         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
4045
4046         * ira-build.c (print_copy, print_copies, ira_debug_copy,
4047         ira_debug_copies): New.
4048         (ira_bulid): Call print_copies.
4049
4050         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
4051
4052 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
4053
4054         PR target/32783
4055         * config/rs6000/rs6000.c (optimization_options): Remove check of
4056         flag_toplevel_order.
4057
4058 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4059
4060         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
4061         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
4062         second operand is a reg_imm10_operand.
4063         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
4064         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
4065         (*seq_<GPR:mode><GPR2:mode>): Rename to
4066         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
4067         ISA_HAS_SEQ_SNE.
4068         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
4069         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
4070         ISA_HAS_SEQ_SNE.
4071         (*sne_<GPR:mode><GPR2:mode>): Rename to
4072         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
4073         ISA_HAS_SEQ_SNE.
4074
4075 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4076
4077         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
4078         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
4079         combining an arithmetic right shift by more than 31 and a
4080         trunction.  Don't match for out-of-range shift amounts.  Set
4081         attribute mode to <MODE>.
4082         (*lshr32_trunc<mode>): Name the pattern combining a logical right
4083         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
4084         (*<optab>_trunc<mode>_exts): New pattern for truncated right
4085         shifts by less than 32.
4086         (extv): Change predicate on first operand to accept registers.
4087         Change predicate of the other operands from immediate_operand to
4088         const_int_operand.  Expand exts when source is a register.
4089         (extzv): Change predicate of the constant operands from
4090         immediate_operand to const_int_operand.
4091         (extzv<mode>): Change predicate of the constant operands from
4092         immediate_operand to const_int_operand and no constraint. Also
4093         remove mode.
4094         (*extzv_trunc<mode>_exts): New pattern.
4095
4096 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
4097
4098         * config/mips/mips.h (ISA_HAS_CINS): New macro.
4099         * config/mips/mips-protos.h (mask_low_and_shift_p,
4100         mask_low_and_shift_len): Declare.
4101         * config/mips/mips.c (mask_low_and_shift_p,
4102         mask_low_and_shift_len): New functions.
4103         (mips_print_operand): Handle new operand prefix "m".
4104         * config/mips/mips.md (*cins<mode>): New pattern.
4105
4106 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4107
4108         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
4109         optimizing for size.
4110
4111 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
4112
4113         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
4114         regardless of epilogue_completed.
4115
4116 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4117
4118         PR middle-end/37359
4119         * ira-lives.c (process_bb_node_lives): Check setjmp.
4120
4121 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
4122
4123         PR middle-end/37243
4124         * ira-build.c (form_loop_tree): Reverse BB walk.
4125         (create_bb_allocnos): Likewise.
4126         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
4127         (mark_reg_store): Rename to...
4128         (mark_ref_live): ...this and take a df_ref argument instead of
4129         note_stores arguments.  Assert that we have a register.
4130         (mark_reg_clobber): Delete.
4131         (def_conflicts_with_inputs_p): New function.
4132         (mark_reg_conflicts): Delete.
4133         (mark_reg_death): Rename to...
4134         (mark_ref_dead): ...this and take a df_ref argument instead of
4135         a register.  Assert that we have a register.
4136         (process_bb_node_lives): Hoist frequency calculation out of
4137         instruction walk.  Convert from a forwards scan to a backwards scan.
4138         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
4139         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
4140         (create_allocno_live_ranges): Don't create regs_set.
4141
4142 2008-09-04  Ian Lance Taylor  <iant@google.com>
4143
4144         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
4145         or REG_LABEL_TARGET.
4146         * calls.c (emit_library_call_value_1): Use MEM_P rather than
4147         comparing MODE with MEM.
4148         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
4149         comparing with GF_PREDICT_TAKEN.
4150         (gimple_get_lhs): Change code to enum gimple_code.
4151         (gimple_set_lhs): Likewise.
4152         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
4153         * omp-low.c (find_omp_clause): Change kind parameter to enum
4154         omp_clause_code.
4155         * tree-flow.h (find_omp_clause): Update declaration.
4156         * regrename.c (clear_dead_regs): Change kind parameter to enum
4157         reg_note.
4158         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
4159         GET_MODE.
4160         * see.c (see_get_extension_data): Change return type to enum
4161         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
4162         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
4163         (see_gen_normalized_extension): Change extension_code parameter to
4164         enum entry_type.
4165         (see_seek_pre_extension_expr): Change extension_code to enum
4166         entry_type.
4167         (see_merge_one_def_extension): Likewise.
4168         (see_handle_relevant_defs): Likewise.
4169         (see_handle_relevant_uses): Likewise.
4170         (see_analyze_one_def): Likewise.
4171         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
4172         GIMPLE_ASM rather than ASM_EXPR.
4173         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
4174         GIMPLE_RETURN rather than RETURN_EXPR.
4175         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
4176         (evaluate_stmt): Likewise.
4177         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
4178         to enum vect_relevant.
4179         (vect_mark_stmts_to_be_vectorized): Change assertion to not
4180         compare gimple codes with tree codes.
4181
4182 2008-09-04  Paul Brook  <paul@codesourcery.com>
4183
4184         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
4185
4186 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
4187
4188         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
4189         pointer check lost in the recent no-unit-at-a-time patch.
4190
4191 2008-09-04  Jan Hubicka  <jh@suse.cz>
4192
4193         PR middle-end/37343
4194         * tree-switch-conversion.c (check_final_bb): Accept only IP
4195         invariants.
4196
4197 2008-09-04  Jan Hubicka  <jh@suse.cz>
4198
4199         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4200         Break out from ...
4201         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
4202         using_ranges argument.
4203         (vrp_evaluate_conditional): Avoid bogus warning for type range.
4204         (vrp_visit_cond_stmt): Update call of
4205         vrp_evaluate_conditional_warnv_with_ops
4206
4207 2008-09-04  Jan Hubicka  <jh@suse.cz>
4208
4209         PR tree-optimization/37345
4210         PR tree-optimization/37358
4211         PR tree-optimization/37357
4212         * tree.c (build_function_type_skip_args): Build distinct type copy;
4213         set TYPE_CONTEXT.
4214         (build_function_decl_skip_args): Set type of new decl not orig decl;
4215         clear DECL_VINDEX for methods turned into functions.
4216
4217 2008-09-04  Nick Clifton  <nickc@redhat.com>
4218
4219         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
4220         * configure: Regenerate.
4221         * config.in: Regenerate.
4222         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
4223         alignment field, if it is supported.
4224
4225 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
4226
4227         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
4228         libraries.
4229
4230 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
4231
4232         * config/rs6000/rs6000.c (processor_target_table): Do not
4233         enable VMX for POWER6.
4234
4235 2008-09-03  Anton Blanchard  <anton@samba.org>
4236
4237         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
4238         emit memory barrier before operation.
4239
4240 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
4241
4242         PR testsuite/37325
4243         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
4244         default_elf_asm_output_external.
4245
4246 2008-09-03  Jeff Law  <law@redhat.com>
4247
4248         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
4249
4250 2008-09-03  Richard Henderson  <rth@redhat.com>
4251
4252         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
4253         memory barrier to below the test-and-set.
4254         (alpha_split_lock_test_and_set_12): Likewise.
4255
4256 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4257
4258         PR rtl-opt/37243
4259
4260         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
4261         all_allocnos.
4262
4263         * ira-color.c (print_loop_title): Use all_allocnos.
4264         (color_pass): Ditto.  Don't add border_allocnos.  Check that
4265         subloop allocno in the correspdoning bitmap all_allocnos.
4266
4267         * ira-emit.c (change_loop): Use all_allocnos.
4268
4269         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
4270         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
4271         (create_cap_allocno): Remove setting mentioned_allocnos.
4272         (create_insn_allocnos): Ditto.
4273         (remove_unnecessary_allocnos): Use all_allocnos.
4274         (check_allocno_creation): Check that allocnos are in the
4275         corresponding bitmap all_allocnos.
4276
4277 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4278
4279         PR rtl-opt/37243
4280
4281         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
4282         (process_regs_for_copy): Process subregs.  Refine check when cost
4283         is taken into account in ira-costs.c.
4284         (process_reg_shuffles): Use REG_SUBREG_P.
4285         (add_insn_allocno_copies): Ditto.  Ignore modes.
4286
4287         * ira-color.c (conflict_allocno_vec): New.
4288         (COST_HOP_DIVISOR): New macro.
4289         (update_copy_costs_1): Use it.
4290         (update_conflict_hard_regno_costs): New function.
4291         (assign_hard_reg): Use it.
4292         (ira_color): Allocate and free conflict_allocno_vec.
4293
4294 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4295
4296         PR rtl-opt/37296
4297
4298         * ira-int.h (ira_sort_insn_chain): Remove.
4299
4300         * ira.c (basic_block_order_nums, chain_insn_order,
4301         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
4302         (ira): Don't call ira_sort_insn_chain.
4303
4304         * reload1.c (reload): Don't call ira_sort_insn_chain.
4305
4306 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4307
4308         PR middle-end/37293
4309         * cgraphunit.c (update_call_expr): Remove eh regions from statements
4310         which become non throw.
4311         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
4312         update_call_expr after updating the flags on the decl.
4313
4314 2008-09-03  Jan Hubicka  <jh@suse.cz>
4315
4316         PR tree-optimization/37315
4317         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
4318         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
4319         (cgraph_analyze_functions): Use node->analyzed
4320         (cgraph_mark_functions_to_output): Likewise.
4321         (cgraph_expand_function): All functions can be released after
4322         expanding.
4323         (cgraph_optimize): Use gimple_has_body_p.
4324         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
4325         (cgraph_decide_inlining_incrementally): Likewise.
4326         (inline_transform): Inline transform.
4327         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
4328         copy fields needed.
4329         (inlinable_function_p): Drop gimple_body check.
4330         (expand_call_inline): Use gimple_has_body_p.
4331         * gimple.c (gimple_has_body_p): New.
4332         * gimple.h (gimple_has_body_p): Add prototype.
4333         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
4334         (dump_function_to_file): Use gimple_has_body_p check.
4335
4336 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
4337
4338         PR c++/37346
4339         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
4340         substatements.
4341         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
4342
4343 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4344
4345         From Michael Frysinger  <michael.frysinger@analog.com>
4346         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
4347         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
4348         for bf538.
4349
4350 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
4351
4352         Add picoChip port.
4353         * doc/extend.texi: Document picoChip builtin functions.
4354         * doc/invoke.texi: Document picoChip options.
4355         * doc/contrib.texi: Add picoChip contribution.
4356         * doc/md.texi: Document picoChip constraints.
4357         * config.gcc: Add picochip-*-*.
4358         * config/picochip/: Add new port.
4359
4360 2008-09-03  Richard Guenther  <rguenther@suse.de>
4361
4362         PR tree-optimization/37328
4363         * tree-sra.c (sra_build_assignment): Gimplify properly.
4364         (generate_copy_inout): Take the correct stmt as definition,
4365         remove bogus assert.
4366
4367 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4368
4369         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
4370         attributes.
4371
4372         From Michael Frysinger  <michael.frysinger@analog.com>
4373         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
4374
4375 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
4376
4377         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
4378         (__gthread_setspecific): Revert 2008-08-31 change to
4379         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
4380
4381 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
4382
4383         * diagnostic.c (error_at): New.
4384         * toplev.h (error_at): New prototype.
4385         * c-typeck.c (build_array_ref): Call error_at instead of error.
4386         Pass location to pedwarn.
4387
4388 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
4389
4390         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
4391
4392 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4393
4394         * dwarf2out.c (tree_add_const_value_attribute): Only handle
4395         VAR_DECL and CONST_DECL.
4396
4397 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4398             Jakub Jelinek  <jakub@redhat.com>
4399
4400         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
4401         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
4402         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
4403         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
4404         Don't set ix86_save_varrargs_registers.
4405         (ix86_setup_incoming_varargs): Assume cum != NULL.
4406         (ix86_va_start): Check ix86_varargs_gpr_size and
4407         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
4408         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
4409         from frame pointer if ix86_varargs_gpr_size == 0.
4410         (ix86_compute_frame_layout): Updated.
4411         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
4412         (ix86_varargs_gpr_size): Define.
4413         (ix86_varargs_fpr_size): Likewise.
4414         (machine_function): Remove save_varrargs_registers.
4415         Add varargs_gpr_size and varargs_fpr_size.
4416
4417 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4418
4419         * config/alpha/alpha.c (va_list_skip_additions,
4420         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
4421         (alpha_gimplify_va_arg): Call unshare_expr on second use of
4422         offset_field.
4423
4424         PR tree-optimization/36766
4425         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
4426         for already removed basic blocks.
4427
4428         PR target/36332
4429         * real.c (real_maxval): Clear a lower bit to make real_maxval
4430         match get_max_float for IBM long double format.
4431
4432 2008-09-02  Andreas Schwab  <schwab@suse.de>
4433
4434         * configure.ac: Use m4_quote to quote the expansion of m4_do.
4435         * configure: Regenerate.
4436
4437 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
4438
4439         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
4440         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
4441         checking for a non-VOID CONSTANT_P.
4442
4443 2008-09-02  Jan Hubicka  <jh@suse.cz>
4444
4445         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
4446         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
4447         sdiv_pow2_cheap
4448
4449 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4450
4451         * expr.c (emit_group_store): Don't assert stack temp mode size.
4452
4453 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
4454             Tobias Grosser  <grosser@fim.uni-passau.de>
4455             Jan Sjodin  <jan.sjodin@amd.com>
4456             Harsha Jagasia  <harsha.jagasia@amd.com>
4457             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4458             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4459             Adrien Eliche  <aeliche@isty.uvsq.fr>
4460
4461         Merge from graphite branch.
4462         * graphite.c: New.
4463         * graphite.h: New.
4464         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
4465         * doc/invoke.texi (-floop-block, -floop-interchange,
4466         -floop-strip-mine): Document new flags.
4467         * tree-into-ssa.c (gimple_vec): Moved...
4468         * tree-loop-distribution.c (rdg_component): Moved...
4469         * cfgloopmanip.c: Include tree-flow.h.
4470         (update_dominators_in_loop): New.
4471         (create_empty_if_region_on_edge): New.
4472         (create_empty_loop_on_edge): New.
4473         (loopify): Use update_dominators_in_loop.
4474         * tree-pass.h (pass_graphite_transforms): Declared.
4475         * configure: Regenerate.
4476         * tree-phinodes.c (make_phi_node): Export.
4477         (add_phi_node_to_bb): New, split from create_phi_node.
4478         * tree-chrec.c (for_each_scev_op): New.
4479         * tree-chrec.h (for_each_scev_op): Declared.
4480         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
4481         (remove_statement): Call get_phi_with_result.
4482         * config.in (HAVE_cloog): Undef.
4483         * gdbinit.in (pgg): New.
4484         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
4485         * tree-ssa-loop.c (graphite_transforms): New.
4486         (gate_graphite_transforms): New.
4487         (pass_graphite_transforms): New.
4488         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
4489         HAVE_cloog): Defined.
4490         * tree-vectorizer.c (rename_variables_in_bb): Export.
4491         * tree-data-ref.c (dr_may_alias_p): Export.
4492         (stmt_simple_memref_p): New.
4493         (find_data_references_in_stmt): Export.
4494         (find_data_references_in_loop): Export.
4495         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
4496         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
4497         (create_rdg_vertices): Export.
4498         (build_empty_rdg): New.
4499         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
4500         * tree-data-ref.h (rdg_component): ... here.
4501         (scop_p): New.
4502         (struct data_reference): Add a field scop.
4503         (DR_SCOP): New.
4504         (find_data_references_in_loop): Declared.
4505         (find_data_references_in_stmt): Declared.
4506         (create_rdg_vertices): Declared.
4507         (dr_may_alias_p): Declared.
4508         (stmt_simple_memref_p): Declared.
4509         (struct rdg_edge): Add a field ddr_p relation.
4510         (build_empty_rdg): Declared.
4511         * lambda.h (lambda_matrix): Declare a VEC of.
4512         (find_induction_var_from_exit_cond): Declared.
4513         (lambda_vector_compare): New.
4514         * common.opt (fgraphite, floop-strip-mine,
4515         floop-interchange, floop-block): New flags.
4516         * lambda-code.c (find_induction_var_from_exit_cond): Export.
4517         * cfgloop.c (is_loop_exit): New.
4518         * cfgloop.h (is_loop_exit): Declared.
4519         (create_empty_if_region_on_edge): Declared.
4520         (create_empty_loop_on_edge): Declared.
4521         * tree-flow.h (add_phi_node_to_bb): Declared.
4522         (make_phi_node): Declared.
4523         (rename_variables_in_bb): Declared.
4524         (perfect_loop_nest_depth): Declared.
4525         (graphite_transform_loops): Declared.
4526         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
4527         (graphite.o-warn): Add -Wno-error.
4528         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
4529         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
4530         (INCLUDES): Add PPLINC, CLOOGINC.
4531         (OBJS-common): Add graphite.o.
4532         (graphite.o): Add rule.
4533         * gimple.h (gimple_vec): ... here.
4534         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
4535         * passes.c (init_optimization_passes): Schedule
4536         pass_graphite_transforms.
4537
4538 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
4539
4540         PR target/37283
4541         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
4542         and -fno-toplevel-reorder after handle_options.
4543
4544 2008-09-02  Paul Brook  <paul@codesourcery.com>
4545
4546         * config/arm/arm.c (arm_tune_cortex_a9): Define.
4547         (arm_override_options): Set arm_tune_cortex_a9.
4548         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
4549         (arm_issue_rate): Handle cortexa9.
4550         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
4551         * config/arm/arm-cores.def: Add cortex-a9.
4552         * config/arm/arm-tune.md: Regenerate.
4553         * config/arm/arm.md: Include cortex-a9.md.
4554         (generic_sched, generic_vfp): Add cortexa9.
4555         * config/arm/cortex-a9.md: New file.
4556
4557 2008-09-02  Richard Guenther  <rguenther@suse.de>
4558
4559         PR tree-optimization/37327
4560         * tree-vrp.c (register_new_assert_for): Make sure to not have
4561         TREE_OVERFLOW set on the bound.
4562
4563 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
4564
4565         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
4566
4567         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
4568         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
4569         spec_info->mask.
4570
4571 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
4572
4573         * gcc/config/spu/spu.md (divdf3): Removed.
4574
4575 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
4576
4577         PR tree-optimization/37095
4578         * cgraph.c (cgraph_node): When creating new cgraph node after
4579         assembler_name_hash has been populated, record it in the hash
4580         table.
4581
4582 2008-09-01  Paul Brook  <paul@codesourcery.com>
4583
4584         * doc/invoke.texi: Document -mword-relocations.
4585         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4586         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4587         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4588         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
4589         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
4590         (arm_emit_movpair): New function.
4591         (arm_print_operand <c>): Handle sybolic addresses.
4592         * config/arm/arm.h (TARGET_USE_MOVT): Define.
4593         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
4594         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
4595         * config/arm/arm.opt: Add -mword-relocations.
4596         * config/arm/arm.md (movsi): Use arm_emit_movpair.
4597         (arm_movt, arm_movw): New.
4598
4599 2008-09-01  Paul Brook  <paul@codesourcery.com>
4600
4601         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
4602         Allow Interworking on ARMv4 EABI based targets.
4603         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
4604         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
4605
4606 2008-09-01  Paul Brook  <paul@codesourcery.com>
4607
4608         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
4609         optimized LT0 test.  Remove optimization for GT.
4610
4611 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4612
4613         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
4614         openmp applications.
4615         * pa-hpux11.h (LIB_SPEC): Likewise.
4616
4617         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
4618         is defined.
4619
4620 2008-09-01  Jan Hubicka  <jh@suse.cz>
4621
4622         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
4623         present, use only counts; when guessed use only frequencies.
4624         (estimate_bb_frequencies): Use function_frequency.
4625         * profile.c (compute_branch_probabilities): Exit early when
4626         profile reading failed. Set profile_status.
4627         (branch_prob): Do not set profile_status.
4628
4629 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
4630
4631         * tree.c (protected_set_expr_location): New.
4632         * tree.h (protected_set_expr_location): New prototype.
4633         * c-tree.h (build_array_ref): Add argument.
4634         (parser_build_unary_op): Same.
4635         * c-typeck.c (build_indirect_ref): Handle new location argument.
4636         (build_array_ref): Same.
4637         (parser_build_unary_op): Same.
4638         * gimplify.c (gimplify_asm_expr): Set input_location before calling
4639         error.
4640         * c-omp.c (c_finish_omp_atomic): Pass location when calling
4641         build_indirect_ref.
4642         * c-common.c (finish_label_address_expr): Handle new location argument.
4643         * c-common.h (build_indirect_ref): Add argument.
4644         (finish_label_address_expr): Same.
4645         * c-parser.c (c_parser_unary_expression): Pass location to build
4646         functions.
4647         (c_parser_postfix_expression): Same.
4648
4649 2008-09-01  Paul Brook  <paul@codesourcery.com>
4650
4651         * config/arm/arm.md: Include cortex-r4f.md.
4652         (attr fpu): Update type list.
4653         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
4654         fconstd, fcmps and fcmpd.
4655         (attr tune_cortexr4): Define.
4656         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
4657         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
4658         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
4659         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
4660         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
4661         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
4662         cortex_a8_vfp_farith: Ditto.
4663         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
4664         * config/arm/cortex-r4.md: Use tune_cortexr4.
4665         * config/arm/cortex-r4f.md: New file.
4666
4667 2008-09-01  Richard Guenther  <rguenther@suse.de>
4668
4669         PR tree-optimization/37305
4670         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
4671         the result of constant conversions.
4672         (fold_gimple_assign): Likewise.
4673
4674 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
4675
4676         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
4677         #ifdef ENABLE_CHECKING.
4678
4679 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
4680
4681         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
4682         * sched-int.h (print_insn, print_pattern, print_value): Declare also
4683         when !INSN_SCHEDULING.
4684
4685 2008-09-01  Andreas Schwab  <schwab@suse.de>
4686
4687         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
4688
4689 2008-09-01  Paul Brook  <paul@codesourcery.com>
4690
4691         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
4692
4693 2008-09-01  Jan Hubicka  <jh@suse.cz>
4694
4695         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
4696
4697         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
4698         Pass speed operand.
4699         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
4700         * gimplify.c (gimplify_init_constructor): Add speed operand.
4701         * tree-sra.c (decide_block_copy): Likewise.
4702         * tree-inline.c (estimate_move_cost): Likewise.
4703         * config/alpha/alpha.h (MOVE_RATIO): Update.
4704         * config/frv/frv.c (MOVE_RATIO): Update.
4705         * config/spu/spu.h (MOVE_RATIO): Update.
4706         * config/sparc/sparc.h (MOVE_RATIO): Update.
4707         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
4708         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
4709         * config/cris/cris.h (MOVE_RATIO): Update.
4710         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
4711         * config/arm/arm.h (MOVE_RATIO): Update.
4712         * config/pa/pa.md: Update uses of MOVE_RATIO
4713         * config/pa/pa.h (MOVE_RATIO): Update.
4714         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
4715         CLEAR_RATIO, SET_RATIO): Update.
4716         * config/h8300/h8300.h (MOVE_RATIO): Update.
4717         * config/v850/v850.h (MOVE_RATIO): Update.
4718         * config/bfin/bfin.h (MOVE_RATIO): Update.
4719
4720 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
4721             Dmitry Melnik  <dm@ispras.ru>
4722             Dmitry Zhurikhin  <zhur@ispras.ru>
4723             Alexander Monakov  <amonakov@ispras.ru>
4724             Maxim Kuvyrkov  <maxim@codesourcery.com>
4725
4726         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
4727         sel-sched-dump.c, sel-sched-ir.c: New files.
4728         * Makefile.in (OBJS-common): Add selective scheduling object files.
4729         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
4730         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
4731         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
4732         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
4733         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
4734         (make_forwarder_block): Update loop latch if we have redirected
4735         the loop latch edge.
4736         * cfgloop.c (get_loop_body_in_custom_order): New function.
4737         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
4738         (CP_FALLTHRU_PREHEADERS): Likewise.
4739         (get_loop_body_in_custom_order): Declare.
4740         * cfgloopmanip.c (has_preds_from_loop): New.
4741         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
4742         Assert that the preheader edge will be fall thru when it is set.
4743         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
4744         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
4745         fsel-sched-substitution, fselective-scheduling): New flags.
4746         * cse.c (hash_rtx_cb): New.
4747         (hash_rtx): Use it.
4748         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
4749         sel_sched_insn_cnt): New counters.
4750         * final.c (compute_alignments): Export.  Free dominance
4751         info after loop_optimizer_finalize.
4752         * genattr.c (main): Output maximal_insn_latency prototype.
4753         * genautomata.c (output_default_latencies): New.
4754         Factor its code from ...
4755         (output_internal_insn_latency_func): ... here.
4756         (output_internal_maximal_insn_latency_func): New.
4757         (output_maximal_insn_latency_func): New.
4758         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
4759         (struct hard_reg_set_iterator): New.
4760         (hard_reg_set_iter_init, hard_reg_set_iter_set,
4761         hard_reg_set_iter_next): New functions.
4762         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
4763         * lists.c (remove_free_INSN_LIST_node,
4764         remove_free_EXPR_LIST_node): New functions.
4765         * loop-init.c (loop_optimizer_init): When
4766         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
4767         calling create_preheaders.
4768         (loop_optimizer_finalize): Do not verify flow info after reload.
4769         * recog.c (validate_replace_rtx_1): New parameter simplify.
4770         Default it to true.  Update all uses.  Factor out simplifying
4771         code to ...
4772         (simplify_while_replacing): ... this new function.
4773         (validate_replace_rtx_part,
4774         validate_replace_rtx_part_nosimplify): New.
4775         * recog.h (validate_replace_rtx_part,
4776         validate_replace_rtx_part_nosimplify): Declare.
4777         * rtl.c (rtx_equal_p_cb): New.
4778         (rtx_equal_p): Use it.
4779         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
4780         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
4781         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
4782         * vecprim.h: Add a vector type for unsigned int.
4783         * haifa-sched.c: Include vecprim.h and cfgloop.h.
4784         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
4785         ready_try, cycle_issued_insns, spec_info): Make global.
4786         (readyp): Initialize.
4787         (dfa_lookahead): New global variable.
4788         (old_max_uid, old_last_basic_block): Remove.
4789         (h_i_d): Make it a vector.
4790         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
4791         through HID macro.
4792         (after_recovery, adding_bb_to_current_region_p):
4793         New variables to handle correct insertion of the recovery code.
4794         (struct ready_list): Move declaration to sched-int.h.
4795         (rgn_n_insns): Removed.
4796         (rtx_vec_t): Move to sched-int.h.
4797         (find_insn_reg_weight): Remove.
4798         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
4799         (haifa_init_h_i_d, haifa_finish_h_i_d):
4800         New functions to initialize / finalize haifa instruction data.
4801         (extend_h_i_d, init_h_i_d): Rewrite.
4802         (unlink_other_notes): Move logic to add_to_note_list.  Handle
4803         selective scheduler.
4804         (ready_lastpos, ready_element, ready_sort, reemit_notes,
4805         find_fallthru_edge): Make global, remove static prototypes.
4806         (max_issue): Make global.  Add privileged_n and state parameters.  Use
4807         them.
4808         (extend_global, extend_all): Removed.
4809         (init_before_recovery): Add new param.  Fix the handling of the case
4810         when we insert a recovery code before the EXIT which has a predecessor
4811         with a fallthrough edge to it.
4812         (create_recovery_block): Make global.  Rename to
4813         sched_create_recovery_block.  Update.
4814         (change_pattern): Rename to sched_change_pattern.  Make global.
4815         (speculate_insn): Rename to sched_speculate_insn.  Make global.
4816         Split haifa-specific functionality into ...
4817         (haifa_change_pattern): New static function.
4818         (sched_extend_bb): New static function.
4819         (sched_init_bbs): New function.
4820         (current_sched_info): Change type to struct haifa_sched_info.
4821         (insn_cost): Adjust for selective scheduling.
4822         (dep_cost_1): New function.  Move logic from ...
4823         (dep_cost): ... here.
4824         (dep_cost): Use dep_cost_1.
4825         (contributes_to_priority_p): Use sched_deps_info instead of
4826         current_sched_info.
4827         (priority): Adjust to work with selective scheduling.  Process the
4828         corner case when all dependencies don't contribute to priority.
4829         (rank_for_schedule): Use ds_weak instead of dep_weak.
4830         (advance_state): New function.  Move logic from ...
4831         (advance_one_cycle): ... here.
4832         (add_to_note_list, concat_note_lists): New functions.
4833         (rm_other_notes): Make static.  Adjust for selective scheduling.
4834         (remove_notes, restore_other_notes): New functions.
4835         (move_insn): Add two arguments.  Update assert.  Don't call
4836         reemit_notes.
4837         (choose_ready): Remove lookahead variable, use dfa_lookahead.
4838         Remove more_issue, max_points.  Move the code to initialize
4839         max_lookahead_tries to max_issue.
4840         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
4841         ready.  Adjust use of move_insn.  Call restore_other_notes.
4842         (luid): Remove.
4843         (sched_init, sched_finish): Move Haifa-specific initialization/
4844         finalization to ...
4845         (haifa_sched_init, haifa_sched_finish): ... respectively.
4846         New functions.
4847         (setup_sched_dump): New function.
4848         (haifa_init_only_bb): New static function.
4849         (haifa_speculate_insn): New static function.
4850         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
4851         (extend_ready, extend_all): Remove.
4852         (sched_extend_ready_list, sched_finish_ready_list): New functions.
4853         (create_check_block_twin, add_to_speculative_block): Use
4854         haifa_insns_init instead of extend_global.  Update to use new
4855         initialization functions.  Change parameter.  Factor out code from
4856         create_check_block_twin to ...
4857         (sched_create_recovery_edges) ... this new function.
4858         (add_block): Remove.
4859         (sched_scan_info): New.
4860         (extend_bb): Use sched_scan_info.
4861         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
4862         static functions for walking through scheduling region.
4863         (sched_luids): New vector variable to replace uid_to_luid.
4864         (luids_extend_insn): New function.
4865         (sched_max_luid): New variable.
4866         (luids_init_insn): New function.
4867         (sched_init_luids, sched_finish_luids): New functions.
4868         (insn_luid): New debug function.
4869         (sched_extend_target): New function.
4870         (haifa_init_insn): New static function.
4871         (sched_init_only_bb): New hook.
4872         (sched_split_block): New hook.
4873         (sched_split_block_1): New function.
4874         (sched_create_empty_bb): New hook.
4875         (sched_create_empty_bb_1): New function.
4876         (common_sched_info, ready): New global variables.
4877         (current_sched_info_var): Remove.
4878         (move_block_after_check): Use common_sched_info.
4879         (haifa_luid_for_non_insn): New static function.
4880         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
4881         (increase_insn_priority): New.
4882         * modulo-sched.c: (issue_rate): Remove static declaration.
4883         (sms_sched_info): Change type to haifa_sched_info.
4884         (sms_sched_deps_info, sms_common_sched_info): New variables.
4885         (setup_sched_infos): New.
4886         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
4887         Do not call regstat_free_calls_crossed.
4888         (sms_print_insn): Use const_rtx.
4889         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
4890         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
4891         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
4892         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
4893         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
4894         current_sched_info to use it.
4895         (enum reg_pending_barrier_mode): Move to sched-int.h.
4896         (h_d_i_d): New variable. Initialize to NULL.
4897         ({true, output, anti, spec, forward}_dependency_cache): Initialize
4898         to NULL.
4899         (estimate_dep_weak): Remove static declaration.
4900         (sched_has_condition_p): New function.  Adjust users of
4901         sched_get_condition to use it instead.
4902         (conditions_mutex_p): Add arguments indicating which conditions are
4903         reversed.  Use them.
4904         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
4905         argument to indicate whether returned condition is reversed.  Do not
4906         generate new rtx when condition should be reversed; indicate it by
4907         setting new argument instead.
4908         (add_dependence_list_and_free): Add deps parameter.
4909         Update all users.  Do not free dependence list when
4910         deps context is readonly.
4911         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
4912         contexts.
4913         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
4914         (remove_from_deps): New. Use the above functions.
4915         (cur_insn, can_start_lhs_rhs_p): New static variables.
4916         (add_or_update_back_dep_1): Initialize present_dep_type.
4917         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
4918         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
4919         haifa_note_dep): New functions implementing dependence hooks for
4920         the Haifa scheduler.
4921         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
4922         note_dep): New functions.
4923         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
4924         functions.
4925         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
4926         (free_deps): Initialize deps->reg_last.
4927         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
4928         sched_analyze_insn): Update to use dependency hooks infrastructure
4929         and readonly contexts.
4930         (deps_analyze_insn): New function.  Move part of logic from ...
4931         (sched_analyze): ... here.  Also move some logic to ...
4932         (deps_start_bb): ... here.  New function.
4933         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
4934         sel_sched_p.
4935         (sched_deps_init): New function.  Move code from ...
4936         (init_dependency_caches): ... here.  Remove.
4937         (init_deps_data_vector): New.
4938         (sched_deps_finish): New function.  Move code from ...
4939         (free_dependency_caches): ... here.  Remove.
4940         (init_deps_global, finish_deps_global): Adjust for use with
4941         selective scheduling.
4942         (get_dep_weak): Move logic to ...
4943         (get_dep_weak_1): New function.
4944         (ds_merge): Move logic to ...
4945         (ds_merge_1): New static function.
4946         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
4947         (ds_get_max_dep_weak): New function.
4948         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
4949         (n_insns): Rename to rgn_n_insns.
4950         (debug_ebb_dependencies): New function.
4951         (init_ready_list): Use it.
4952         (begin_schedule_ready): Use sched_init_only_bb.
4953         (ebb_print_insn): Indicate when an insn starts a new cycle.
4954         (contributes_to_priority, compute_jump_reg_dependencies,
4955         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
4956         (add_block1): Remove to ebb_add_block.
4957         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
4958         (schedule_ebb): Initialize them.  Use remove_notes instead of
4959         rm_other_notes.  Use haifa_local_init/finish.
4960         (schedule_ebbs): Use haifa_sched_init/finish.
4961         * sched-int.h: Include vecprim.h, remove rtl.h.
4962         (struct ready_list): Delete declaration.
4963         (sched_verbose_param, enum sched_pass_id_t,
4964         bb_vec_t, insn_vec_t, rtx_vec_t): New.
4965         (struct sched_scan_info_def): New structure.
4966         (sched_scan_info, sched_scan, sched_init_bbs,
4967         sched_init_luids, sched_finish_luids, sched_extend_target,
4968         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
4969         (struct common_sched_info_def): New.
4970         (common_sched_info, haifa_common_sched_info,
4971         sched_emulate_haifa_p): Declare.
4972         (sel_sched_p): New.
4973         (sched_luids): Declare.
4974         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
4975         (sched_max_luid, insn_luid): Declare.
4976         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
4977         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
4978         print_insn, print_pattern, print_value, haifa_classify_insn,
4979         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
4980         setup_sched_dump, sched_init, sched_finish,
4981         sel_insn_is_speculation_check): Export.
4982         (struct ready_list): Move from haifa-sched.c.
4983         (ready_try, ready, max_issue): Export.
4984         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
4985         sched_init_only_bb, sched_split_block, sched_split_block_1,
4986         sched_create_empty_bb, sched_create_empty_bb_1,
4987         sched_create_recovery_block, sched_create_recovery_edges): Export.
4988         (enum reg_pending_barrier_mode): Export.
4989         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
4990         (deps_t): New.
4991         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
4992         print_insn field.  Move add_block and fix_recovery_cfg to
4993         common_sched_info_def.  Move compute_jump_reg_dependencies,
4994         use_cselib  ...
4995         (struct sched_deps_info_def): ... this new structure.
4996         (sched_deps_info): Declare.
4997         (struct spec_info_def): Remove weakness_cutoff, add
4998         data_weakness_cutoff and control_weakness_cutoff.
4999         (spec_info): Declare.
5000         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
5001         dep_count field.
5002         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
5003         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
5004         (current_sched_info): Change type to struct haifa_sched_info.
5005         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
5006         (h_d_i_d): New variable.
5007         (HDID): New accessor macro.
5008         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
5009         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
5010         and HDID.
5011         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
5012         (enum SCHED_FLAGS): Update for selective scheduler.
5013         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
5014         (init_dependency_caches, free_dependency_caches): Delete declarations.
5015         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
5016         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
5017         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
5018         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
5019         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
5020         ds_to_dt): Export.
5021         (rm_other_notes): Delete declaration.
5022         (schedule_block): Remove one argument.
5023         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
5024         ready_element, ready_lastpos, sched_extend_ready_list,
5025         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
5026         concat_note_lists): Export.
5027         (struct region): Move from sched-rgn.h.
5028         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
5029         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
5030         BLOCK_TO_BB, CONTAINING_RGN): Export.
5031         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
5032         (current_nr_blocks, current_blocks, target_bb): Likewise.
5033         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
5034         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
5035         sched_rgn_local_init, extend_regions,
5036         rgn_make_new_region_out_of_new_block, compute_priorities,
5037         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
5038         extend_rgns, deps_join rgn_setup_common_sched_info,
5039         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
5040         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
5041         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
5042         increase_insn_priority): Likewise.
5043         * sched-rgn.c: Include sel-sched.h.
5044         (ref_counts): New static variable.  Use it ...
5045         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
5046         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
5047         (sched_is_disabled_for_current_region_p): Delete static declaration.
5048         (struct region): Move to sched-int.h.
5049         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
5050         ebb_head): Define and initialize.
5051         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
5052         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
5053         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
5054         sched-int.h.
5055         (find_single_block_region): Add new argument to indicate that EBB
5056         regions should be constructed.
5057         (debug_live): Delete declaration.
5058         (current_nr_blocks, current_blocks, target_bb):
5059         Remove static qualifiers.
5060         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
5061         declaration.
5062         (init_regions): Delete declaration.
5063         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
5064         rgn_estimate_number_of_insns): New.
5065         (too_large): Use estimate_number_of_insns.
5066         (haifa_find_rgns): New. Move the code from ...
5067         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
5068         (free_trg_info): New.
5069         (compute_trg_info): Allocate candidate tables here instead of ...
5070         (init_ready_list): ... here.
5071         (rgn_print_insn): Use const_rtx.
5072         (contributes_to_priority, extend_regions): Delete static declaration.
5073         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
5074         (add_block1): Rename to rgn_add_block.
5075         (debug_rgn_dependencies): Delete static qualifier.
5076         (new_ready): Use sched_deps_info.  Simplify.
5077         (rgn_common_sched_info, rgn_const_sched_deps_info,
5078         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
5079         New.
5080         (region_sched_info): Rename to rgn_const_sched_info.
5081         (deps_join): New, extracted from ...
5082         (propagate_deps): ... here.
5083         (compute_block_dependences, debug_dependencies): Update for selective
5084         scheduling.
5085         (free_rgn_deps, compute_priorities): New functions.
5086         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
5087         sched_rgn_compute_dependencies): New functions.
5088         (schedule_region): Use them.
5089         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
5090         rgn_setup_common_sched_info, rgn_setup_sched_infos):
5091         New functions.
5092         (schedule_insns): Call new functions that were split out.
5093         (rgn_make_new_region_out_of_new_block): New.
5094         (get_rgn_sched_max_insns_priority): New.
5095         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
5096         scheduling when appropriate.
5097         * sched-vis.c: Include insn-attr.h.
5098         (print_value, print_pattern): Make global.
5099         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
5100         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
5101         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
5102         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
5103         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
5104         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
5105         hooks.  Initialize them to 0.
5106         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
5107         * target.h (struct gcc_target): Add them.  Rename gen_check field to
5108         gen_spec_check.
5109         * flags.h (sel_sched_switch_set): Declare.
5110         * opts.c (sel_sched_switch_set): New variable.
5111         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
5112         pipelining is disabled from command line.
5113         (common_handle_option): Record whether selective scheduling is
5114         requested from command line.
5115         * doc/invoke.texi: Document new flags and parameters.
5116         * doc/tm.texi: Document new target hooks.
5117         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
5118         ia64_gen_check.
5119         (dfa_state_size): Do not declare locally.
5120         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
5121         * config/rs6000/rs6000.c (rs6000_init_sched_context,
5122         rs6000_alloc_sched_context, rs6000_set_sched_context,
5123         rs6000_free_sched_context): New functions.
5124         (struct _rs6000_sched_context): New.
5125         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
5126         scheduling.
5127         (rs6000_sched_finish): Do not run for selective scheduling.
5128
5129 2008-08-31  Jan Hubicka  <jh@suse.cz>
5130
5131         * frv.c (frv_rtx_costs): Update forward declaration.
5132         * spu.c (spu_rtx_costs): Likewise.
5133         * pdp11.c: Include df.h
5134         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
5135         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
5136         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
5137         * iq2000.c (iq2000_address_cost): Add speed argument.
5138         (iq2000_rtx_costs): Likewise.
5139         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
5140         update call of mn10300_address_cost.
5141         * mcore.c: Include df.h
5142         (mcore_rtx_costs): Update prototype.
5143         * score3.c: Include df.h
5144         (score3_rtx_costs): Remove speed argument.
5145         * score7.c: Include df.h
5146         (score7_address_cost): Remove speed argument.
5147         * score-protos.h (score_address_cost): Update prototype.
5148         * score.c: Include df.h
5149         (score_rtx_costs): Update call of costs functions.
5150         * v850.c (v850_rtx_costs): Add bool argument.
5151
5152 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
5153
5154         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
5155
5156 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5157
5158         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
5159         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
5160
5161 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5162
5163         * mkmap-flat.awk: Add option pe_dll.
5164         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
5165         * config/i386/t-cygwin (SHLIB_LC): Add.
5166         * config/i386/t-mingw32 (SHLIB_LC): Add.
5167         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
5168         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
5169         (LINK_SPEC): Support libgcc_s.
5170         (LIBGCC_SPEC): Support libgcc_s.
5171         (LIBGCC_SONAME): New.
5172
5173 2008-08-31  Jan Hubicka  <jh@suse.cz>
5174
5175         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
5176         mistakely had old version of patch.
5177
5178         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
5179         (ipcp_estimate_growth): New.
5180         (ipcp_insert_stage): Use ipcp_estimate_growth.
5181         * profile.c (branch_prob): When reading failed, do not consider
5182         profile as read.
5183
5184 2008-08-31  Jan Hubicka  <jh@suse.cz>
5185
5186         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
5187         loop is optimized for speed.
5188
5189 2008-08-31  Richard Guenther  <rguenther@suse.de>
5190
5191         PR middle-end/37289
5192         * fold-const.c (fold_binary): Retain conversions in folding
5193         ~A + 1 to -A.
5194
5195 2008-08-31  Jan Hubicka  <jh@suse.cz>
5196
5197         * postreload-gcse.c (eliminate_partially_redundant_loads):
5198         Use optimize_bb_for_size_p.
5199         * predict.c (maybe_hot_frequency_p): Make inline.
5200         (maybe_hot_count_p): Break out from ...
5201         (maybe_hot_bb_p): ... this one.
5202         (maybe_hot_edge_p): Simplify.
5203         * basic-block.h (probably_cold_bb_p): Remove.
5204
5205 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
5206
5207         PR target/37168
5208         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
5209         prototype.
5210         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
5211         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
5212         Also split V4SFmode.
5213         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
5214         vector float modes.
5215
5216 2008-08-31  Jan Hubicka  <jh@suse.cz>
5217
5218         * predict.c (PROB_VERY_LIKELY): Make small enough so things
5219         become cold.
5220         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
5221
5222 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
5223
5224         PR debug/37287
5225         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
5226         add source coords.
5227
5228         * dwarf2out.c (native_encode_initializer): Subtract min_index for
5229         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
5230
5231 2008-08-31  Jan Hubicka  <jh@suse.cz>
5232
5233         * sparc.h (BRANCH_COST): Fix macro definition.
5234         * avr.c (avr_operand_rtx_cost): Add speed argument.
5235         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
5236
5237 2008-08-31  Richard Guenther  <rguenther@suse.de>
5238
5239         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
5240         types instead of operands.  Re-instantiate verifying of
5241         binary expression operands.
5242
5243 2008-08-30  Jan Hubicka  <jh@suse.cz>
5244
5245         * fwprop.c (should_replace_address): Add speed attribute.
5246         (PR_OPTIMIZE_FOR_SPEED): New flag.
5247         (propagate_rtx_1): Use it.
5248         (propagate_rtx): Set it.
5249         (try_fwprop_subst): Update call of rtx_costs.
5250         (forward_propagate_and_simplify): LIkewise.
5251         * hooks.c (hook_int_rtx_bool_0): New
5252         (hook_bool_rtx_int_int_intp_false): Replace by ...
5253         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
5254         * hooks.h (hook_int_rtx_bool_0): New
5255         (hook_bool_rtx_int_int_intp_false): Replace by ...
5256         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
5257         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
5258         (prepare_cmp_insn): UPdate call of rtx_cost.
5259         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
5260         (reload_cse_simplify_operands): Update call of rtx_cost.
5261         (reload_cse_move2add): call of rtx_cost.
5262         * target.h (struct gcc_target): Update rtx_costs and address_costs.
5263         * rtlanal.c (rtx_cost): Add speed argument.
5264         (address_cost): Add speed argument
5265         (default_address_cost): Likewise.
5266         (insn_rtx_cost): Likewise.
5267         * cfgloopanal.c (seq_cost): Add speed argument.
5268         (target_reg_cost, target_spill_cost): Turn to array.
5269         (init_set_costs): Update for speed.
5270         (estimate_reg_pressure_cost): Add speed argument.
5271         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
5272         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
5273         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
5274         (seq_cost): Add speed argument.
5275         (computation_cost): Add speed arugment.
5276         (add_cost, multiply_by_const, get_address_cost): add speed argument.
5277         (force_expr_to_var_cost): Update for profile info.
5278         (force_var_cost): Likewise.
5279         (split_address_cost): Likewise.
5280         (ptr_difference_cost): Likewise.
5281         (difference_cost): Likewise.
5282         (get_computation_cost_at): Likewise.
5283         (determine_iv_cost): Likewise.
5284         (ivopts_global_cost_for_size): Likewise.
5285         (rewrite_use_address): Likewise.
5286         (tree_ssa_iv_optimize_loop): Initialize speed field.
5287         * cse.c (optimize_this_for_speed_p): New static var.
5288         (notreg_cost): Update call of rtx_cost.
5289         (cse_extended_basic_block): set optimize_this_for_speed_p.
5290         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
5291         (noce_try_cmove_arith): Likewise.
5292         (noce_try_sign_mask): LIkewise.
5293         * expr.c (compress_float_constant): Update rtx_cost calls.
5294         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
5295         argument.
5296         (addr_to_parts): Likewise.
5297         (create_mem_ref): Likewise.
5298         * dse.c (find_shift_sequence): Add speed argument.
5299         (replace_read): Update call.
5300         * calls.c (precompute_register_parameters): Update call of rtx_cost.
5301         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
5302         * neg_cost, shift_cost, shiftadd_cost,
5303         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
5304         mul_highpart_cost): Increase dimension.
5305         (init_expmed): Initialize for both size and speed.
5306         (expand_shift): Use profile.
5307         (synth_mult): Use profile.
5308         (choose_mult_variant): Use profile.
5309         (expand_mult): Use profile.
5310         (expand_mult_highpart_optab): Use profile.
5311         (expand_mult_highpart): Use profile.
5312         (expand_smod_pow2): Use profile.
5313         (expand_divmod): Use profile.
5314         * simplify-rtx.c (simplify_binary_operation_1): Update call of
5315         rtx_cost.
5316         * loop-invariant.c (create_new_invariant): Use profile.
5317         (gain_for_invariant): Add speed parameter.
5318         (best_gain_for_invariant): Likewise.
5319         (find_invariants_to_move): Likewise.
5320         (move_single_loop_invariants): Set it.
5321         * target-def.h (TARGET_RTX_COSTS): Use hook.
5322         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
5323         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5324         * output.h (default_address_cost): Update prototype.
5325         * combine.c (optimize_this_for_speed_p): New static var.
5326         (combine_validate_cost): Update call of rtx_cost.
5327         (combine_instructions): Set optimize_this_for_speed_p.
5328         (expand_compound_operation): Update call of rtx_cost.
5329         (make_extraction):Update call of rtx_cost.
5330         (force_to_mode):Update call of rtx_cost.
5331         (distribute_and_simplify_rtx):Update call of rtx_cost.
5332         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
5333         (estimate_reg_pressure_cost): Update prototype.
5334         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
5335         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
5336         Remove.
5337         * config/alpha/alpha.c (alpha_rtx_costs): Update.
5338         (alpha_rtx_costs): Update.
5339         * config/frv/frv.c (frv_rtx_costs): Update.
5340         * config/s390/s390.c (s390_rtx_costs): Update.
5341         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
5342         (m32c_rtx_costs): Update.
5343         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
5344         (spu_rtx_costs): Update.
5345         * config/sparc/sparc.c (sparc_rtx_costs): Update.
5346         * config/m32r/m32r.c (m32r_rtx_costs): Update.
5347         * config/i386/i386.c (:ix86_address_cost): Update.
5348         (ix86_rtx_costs): Update.
5349         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
5350         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
5351         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
5352         * config/crx/crx.c (crx_address_cost): Update.
5353         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
5354         * config/stormy16/stormy16.c
5355         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
5356         * config/m68hc11/m68hc11.c
5357         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
5358         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
5359         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
5360         Update.
5361         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
5362         Update
5363         * config/ia64/ia64.c (ia64_rtx_costs): Update.
5364         * config/m68k/m68k.c (m68k_rtx_costs): Update.
5365         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
5366         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
5367         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
5368         (mcore_rtx_costs): update.
5369         * config/score/score3.c (score3_rtx_costs): Update.
5370         * config/score/score7.c (score7_rtx_costs): Update.
5371         * config/score/score3.h (score3_rtx_costs):Update.
5372         * config/score/score7.h (score7_rtx_costs): Update.
5373         * config/score/score.c (score_rtx_costs): Update.
5374         * config/arm/arm.c (arm_address_cost): Update.
5375         (arm_rtx_costs_1): Update.
5376         (arm_rtx_costs_1): Update.
5377         (arm_size_rtx_costs): Update.
5378         (arm_size_rtx_costs): Update.
5379         (arm_size_rtx_costs): Update.
5380         (arm_xscale_rtx_costs): Update.
5381         (arm_thumb_address_cost): Update.
5382         * config/pa/pa.c (hppa_address_cost): Update.
5383         * config/mips/mips.c (mips_rtx_costs): Update.
5384         * config/vax/vax.c (vax_address_cost): Update.
5385         * config/h8300/h8300.c (h8300_shift_costs): Update.
5386         (h8300_rtx_costs): Update.
5387         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
5388         (v850_rtx_costs): Update.
5389         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
5390         * config/bfin/bfin.c
5391         (bfin_address_cost): Update.
5392         (bfin_rtx_costs): Update.
5393         * stmt.c (lshift_cheap_p): Update.
5394
5395 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5396
5397         PR middle-end/36444
5398         * expmed.c (extract_bit_field_1): Check the mode size to make
5399         sure the vector modes have the same size.
5400
5401 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
5402
5403         * dojump.c (top level): Include basic-block.h to declare
5404         optimize_insn_for_speed_p
5405
5406         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
5407
5408         * opts.h (CL_SAVE): New option class for marking options that are
5409         target specific options usable in the target attribute.
5410         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
5411
5412         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
5413         can easily find the target specific options that are safe to use
5414         in the attribute or pragma.
5415
5416         * attribs.c (decl_attributes): Change #pragma GCC option to
5417         #pragma GCC target, and attribute((option(...))) to
5418         attribute((target(...))).
5419
5420         * doc/extend.texi (target attribute): Change from option
5421         attribute.  Delete push/pop/reset.
5422         (#pragma GCC target): Change from #pragma GCC option.  Delete
5423         push/pop/reset.
5424         (#pragma GCC push_options): Document new pragma.
5425         (#pragma GCC pop_options): Document new pragma.
5426         (#pragma GCC reset_options): Document new pragma.
5427
5428         * targhooks.c (default_target_option_valid_attribute_p): Add
5429         warning about port not supporting target attributes.
5430         (default_target_option_pragma_parse): New function, warn about
5431         #pragma GCC target not being supported.
5432
5433         * targhooks.h (default_target_option_pragma_parse): Add
5434         declaration.
5435
5436         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
5437         TI_CURRENT_OPTION_PRAGMA.
5438         (current_target_pragma): Rename from current_option_pragma.
5439
5440         * target.h: (struct target_option): Delete booleans for changing
5441         the optimization level on hot/cold functions.  Change signature of
5442         pragma_parse hook to take a second tree.
5443
5444         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
5445
5446         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
5447         that the declaration is done at global scope.
5448
5449         * langhooks.c (add_builtin_function_common): Move most of the code
5450         from add_builtin_function here, calling the hook passed in.
5451         (add_builtin_function): Call add_builtin_function_common with
5452         standard builtin hook.
5453         (add_builtin_function_ext_scope): New function to add builtins to
5454         global scope.
5455
5456         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
5457         hook.
5458         (add_builtin_function_ext_scope): Add declaration.
5459
5460         * c-pragma.c (handle_pragma_target): Rename from
5461         handle_pragma_option, #pragma GCC option is now #pragma GCC
5462         target.  Move warning about port not supporting target options to
5463         default pragma parse hook.  Remove push/pop/reset from this
5464         pragma.
5465         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
5466         (option_stack): Delete static variable.
5467         (optimize_stack): Ditto.
5468         (optons_stack): New stack of saved target and optimization
5469         options.
5470         (handle_pragma_push_options): New function to handle pushing both
5471         target and optimization options.
5472         (handle_pragma_pop_options): New function to handle popping both
5473         target and optimization options.
5474         (handle_pragma_reset_options): New function to handle resetting
5475         both target and optimization options to their initial state.
5476         (init_pragma): Rename handle_pragma_option to
5477         handle_pragma_target.  Add support for push_options, pop_options,
5478         and reset_options pragmas.
5479
5480         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
5481         default_target_option_pragma_parse.
5482         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
5483         default_target_option_valid_attribute_p.
5484         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5485         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5486         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
5487         optimization level on hot/cold functions.
5488
5489         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
5490         if the caller and callee have different optimization levels.
5491
5492         * c-common.c (handle_target_attribute): Rename from
5493         handle_option_attribute, attribute((option(...))) is now
5494         attribute((target(...))).  Move warning if the port does not
5495         support target attributes to the default hook.
5496         (handle_hot_attribute): Delete code to change the optimization
5497         level of hot functions.
5498         (handle_cold_attribute): Ditto.
5499
5500         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
5501         argument that is the binary tree options to use if there are no
5502         arguments.  Call ix86_valid_target_attribute_tree instead of
5503         ix86_valid_option_attribute_tree.
5504         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
5505         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
5506         ix86_pragma_option_parse.
5507
5508         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
5509         Rename from ix86_valid_option_attribute_tree.
5510
5511         * config/i386/i386.c (ix86_add_new_builtins): New function to add
5512         new builtins when the ISA changes.
5513         (ix86_valid_target_attribute_tree): Rename from
5514         ix86_valid_option_attribute_tree.  Change callers.  If the
5515         function specified optimization options, use those as the starting
5516         point before setting up the target attributes.  If the
5517         optimization options were changed in the course of setting the
5518         target attributes, record the new optimization options.
5519         (ix86_valid_target_attribute_tree_inner_p): Rename from
5520         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
5521         ix86_add_new_builtins if the ISA changed.
5522         (ix86_valid_target_attribute_p): Rename from
5523         ix86_valid_option_attribute_p.  Change callers.
5524         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
5525         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
5526         as delayed builtin functions.
5527         (struct builtin_isa): New structure to record builtin functions
5528         that should be delayed until the ISA for that function is used.
5529         (ix86_builtins_isa): Change from int to struct to track builtin
5530         functions we want to declare at some point.
5531         (def_builtin): If the front end can delay defining the builtin
5532         functions, don't create builtins for ISAs not part of the default
5533         options.
5534         (def_builtin_const): Ditto.
5535         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
5536         __builtin_ia32_pcmov_v2di to be different builtin functions.
5537         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
5538         a structure instead of an int.
5539         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
5540         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
5541         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5542         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5543
5544         * config/ia64/ia64.h
5545         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
5546         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
5547
5548         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
5549         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
5550         (LANG_HOOKS_INITIALIZER): Add
5551         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
5552
5553 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5554
5555         PR target/37270
5556         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
5557         the reload address with the index register for SFmode
5558         access with a displacement.
5559
5560 2008-08-30  Jan Hubicka  <jh@suse.cz>
5561
5562         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
5563         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
5564         * dojump.c (do_jump): Likewise.
5565         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
5566         (note-if_info): Add BRANCH_COST.
5567         (noce_try_store_flag_constants, noce_try_addcc,
5568         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
5569         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
5570         find_if_case_2): Use computed branch cost.
5571         * expr.h (BRANCH_COST): Update default.
5572         * predict.c (predictable_edge_p): New function.
5573         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
5574         Update BRANCH_COST call.
5575         * basic-block.h (predictable_edge_p): Declare.
5576         * config/alpha/alpha.h (BRANCH_COST): Update.
5577         * config/frv/frv.h (BRANCH_COST): Update.
5578         * config/s390/s390.h (BRANCH_COST): Update.
5579         * config/spu/spu.h (BRANCH_COST): Update.
5580         * config/sparc/sparc.h (BRANCH_COST): Update.
5581         * config/m32r/m32r.h (BRANCH_COST): Update.
5582         * config/i386/i386.h (BRANCH_COST): Update.
5583         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
5584         BRANCH_COST.
5585         * config/sh/sh.h (BRANCH_COST): Update.
5586         * config/pdp11/pdp11.h (BRANCH_COST): Update.
5587         * config/avr/avr.h (BRANCH_COST): Update.
5588         * config/crx/crx.h (BRANCH_COST): Update.
5589         * config/xtensa/xtensa.h (BRANCH_COST): Update.
5590         * config/stormy16/stormy16.h (BRANCH_COST): Update.
5591         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
5592         * config/iq2000/iq2000.h (BRANCH_COST): Update.
5593         * config/ia64/ia64.h (BRANCH_COST): Update.
5594         * config/rs6000/rs6000.h (BRANCH_COST): Update.
5595         * config/arc/arc.h (BRANCH_COST): Update.
5596         * config/score/score.h (BRANCH_COST): Update.
5597         * config/arm/arm.h (BRANCH_COST): Update.
5598         * config/pa/pa.h (BRANCH_COST): Update.
5599         * config/mips/mips.h (BRANCH_COST): Update.
5600         * config/vax/vax.h (BRANCH_COST): Update.
5601         * config/h8300/h8300.h (BRANCH_COST): Update.
5602         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
5603         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
5604         * doc/tm.texi (BRANCH_COST): Update.
5605
5606 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
5607
5608         PR target/37283
5609         * config/arm/arm.c (arm_optimization_options): Set
5610         flag_section_anchors to 2 instead of 1 to distinguish it from
5611         -fsection-anchors given explicitely on the command line.
5612
5613 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
5614
5615         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
5616         final insn of a split.
5617
5618 2008-08-30  Jan Hubicka  <jh@suse.cz>
5619
5620         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
5621         optimized for speed.
5622         * final.c (compute_alignments): Use optimize_bb_for_size_p.
5623         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
5624         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
5625         flag_gcse_after_reload_set): New static vars.
5626         (common_handle_option): Enable those flags for profile-use.
5627         (decode_options): Remove optimize_size flags that are handled
5628         on higher granuality.
5629         * tree-vectorizer.c (vectorize_loops): Use
5630         optimize_loop_nest_for_speed_p.
5631         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
5632         * tree-predcom.c (tree_predictive_commoning): Use
5633         optimize_loop_for_speed_p.
5634         * varasm.c (assemble_start_function): Use
5635         optimize_function_for_speed_p.
5636         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
5637         * predict.c (optimize_loop_for_speed_p): Fix walk.
5638
5639 2008-08-30  Jan Hubicka  <jh@suse.cz>
5640
5641         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
5642         functions.
5643         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
5644         profile presence locally.
5645
5646 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
5647
5648         PR bootstrap/37086
5649         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
5650         versions before 4.0.
5651
5652 2008-08-29  Jan Hubicka  <jh@suse.cz>
5653
5654         * tree-inline.c (insert_init_stmt): Insert sequence even when
5655         not in SSA form.
5656
5657 2008-08-29  Jeff Law  <law@redhat.com>
5658
5659         * mn10300.c (mn10300_secondary_reload_class): We need secondary
5660         reloads for AM33-2 if IN is a pseudo with an equivalent memory
5661         location and class is an FP register.
5662
5663 2008-08-29  Jan Hubicka  <jh@suse.cz>
5664
5665         * see.c (see_merge_one_def_extension): Silence used uninitialized
5666         warning.
5667         * matrix-reorg.c (check_allocation_function): Likewise.
5668         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
5669
5670 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
5671
5672         PR c/37261
5673         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
5674         compute new & and | in type rather than TREE_TYPE (arg0).
5675
5676         * dwarf2out.c (fortran_common): Update comment.
5677         (gen_variable_die): Swap com_die and var_die variables in Fortran
5678         COMMON block handling code.
5679
5680         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
5681
5682         * dwarf2out.c (gen_const_die): New function.
5683         (size_of_die, value_format, output_die): Output larger
5684         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
5685         (native_encode_initializer): New function.
5686         (tree_add_const_value_attribute): Call it.
5687         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
5688
5689         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
5690         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
5691         TREE_THIS_VOLATILE to add_type_attribute.
5692
5693         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
5694         types.
5695         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
5696         types.
5697
5698         * dwarf2out.c (loc_by_reference): New function.
5699         (add_location_or_const_value_attribute): Use it.
5700
5701         PR fortran/23057
5702         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
5703         as DW_TAG_variable children of DW_TAG_common_block rather than
5704         DW_TAG_member children.  Put DW_AT_external to individual
5705         DW_TAG_variable DIEs, not to DW_TAG_common_block.
5706
5707         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
5708         loc_descriptor_from_tree_1.
5709
5710         PR fortran/29635
5711         PR fortran/23057
5712         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
5713         arguments to imported_module_or_decl.
5714         (debug_nothing_tree_tree): Removed.
5715         (debug_nothing_tree_tree_tree_bool): New prototype.
5716         * debug.c (do_nothing_debug_hooks): Adjust.
5717         (debug_nothing_tree_tree): Removed.
5718         (debug_nothing_tree_tree_tree_bool): New function.
5719         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
5720         (gen_variable_die): Put all common vars for the
5721         same COMMON block under one DW_TAG_common_block.
5722         (declare_in_namespace): Return new context_die, for Fortran
5723         return the module DIE instead of adding extra declarations into
5724         the namespace.
5725         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
5726         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
5727         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
5728         DW_AT_declaration.
5729         (dwarf2out_global_decl): Don't skip Fortran global vars.
5730         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
5731         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
5732         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
5733         DW_TAG_imported_declaration as child of previous
5734         DW_TAG_imported_module.
5735         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
5736         * sdbout.c (sdb_debug_hooks): Likewise.
5737         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5738
5739 2008-08-29  Jan Hubicka  <jh@suse.cz>
5740
5741         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
5742
5743         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
5744         * ipa-cp.c (n_cloning_candidates): New static variable.
5745         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
5746         (ipcp_print_all_lattices): Improve debug output.
5747         (ipcp_cloning_candidate_p): New function.
5748         (ipcp_initialize_node_lattices): Use it.
5749         (ipcp_init_stage): Do only analyzis here; prettier debug output.
5750         (ipcp_propagate_stage): Prettier debug output.
5751         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
5752         (ipcp_print_all_structures): Remove.
5753         (ipcp_need_redirect_p): Test !n_cloning_candidates.
5754         (ipcp_insert_stage): Prettier debug output; call
5755         cgraph_remove_unreachable_nodes before propagating.
5756         (pass_ipa_cp): Schedule function removal pass.
5757         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
5758         debug output.
5759         (cgraph_maybe_hot_edge_p): Move to ...
5760         * predict.c (cgraph_maybe_hot_edge_p) ... here.
5761         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
5762         (common_handle_option): Set them; enable ipa-cp when profiling.
5763         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
5764         (ipa_print_all_jump_functions): Likewise.
5765         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
5766         (ipa_print_node_params, ipa_print_all_params): New.
5767         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
5768         ipa_print_all_param_flags): Remove.
5769         (ipa_print_node_params, ipa_print_all_params): New.
5770
5771 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
5772
5773         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
5774         change from 2008-04-03.
5775         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
5776
5777 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
5778
5779         PR rtl-opt/37251
5780         * ira-color.c (push_allocnos_to_stack): Truncate
5781         removed_splay_allocno_vec.
5782
5783 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
5784
5785         PR rtl-opt/37243
5786         * ira-color (ira_fast_allocation): Don't assign hard registers to
5787         global allocnos.
5788
5789 2008-08-29  Jan Hubicka  <jh@suse.cz>
5790
5791         PR middle-end/37278
5792         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
5793         for cold internal loops.
5794
5795 2008-08-29  Richard Guenther  <rguenther@suse.de>
5796
5797         * tree-ssa-structalias.c (create_variable_info_for): Do not
5798         create fields for heap vars or vars with a noalias state.
5799         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
5800         from ESCAPED.
5801
5802 2008-08-29  Richard Guenther  <rguenther@suse.de>
5803
5804         * common.opt (ftree-store-ccp): Mark as preserved for
5805         backward compatibility.
5806         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
5807         * tree-pass.h (pass_store_ccp): Remove.
5808         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
5809         (first_vdef): Remove declaration.
5810         (get_value_loaded_by): Likewise.
5811         * tree-ssa-ccp.c (do_store_ccp): Remove.
5812         (get_default_value): Simplify as do_store_ccp is always false
5813         now.  Do not initialize mem_ref.
5814         (set_value_varying): Likewise.
5815         (canonicalize_float_value): Likewise.
5816         (set_lattice_value): Likewise.
5817         (likely_value): Likewise.
5818         (surely_varying_stmt_p): Likewise.
5819         (ccp_initialize): Likewise.
5820         (ccp_lattice_meet): Likewise.
5821         (ccp_visit_phi_node): Likewise.
5822         (ccp_fold): Likewise.
5823         (evaluate_stmt): Likewise.
5824         (visit_assignment): Likewise.
5825         (ccp_visit_stmt): Likewise.
5826         (execute_ssa_ccp): Fold into ...
5827         (do_ssa_ccp): ... this.
5828         (do_ssa_store_ccp): Remove.
5829         (gate_store_ccp): Likewise.
5830         (pass_store_ccp): Likewise.
5831         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
5832         initialize mem_ref.
5833         * tree-ssa-propagate.c (first_vdef): Remove.
5834         (get_value_loaded_by): Likewise.
5835         (replace_vuses_in): Likewise.
5836         (substitute_and_fold): Do not call replace_vuses_in.
5837         * opts.c (decode_options): Do not set flag_tree_store_ccp.
5838
5839 2008-08-29  Richard Guenther  <rguenther@suse.de>
5840
5841         PR middle-end/37236
5842         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
5843         PARAM_NOALIAS tags with is_heapvar.
5844         * tree-ssa-operands.c (access_can_touch_variable): Offset
5845         based tests do not apply for heapvars.  Fix offset test.
5846
5847 2008-08-29  Jan Hubicka  <jh@suse.cz>
5848
5849         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
5850         (-fipa-cp-clone): Enabled by default at -O3.
5851         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
5852         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
5853
5854 2008-08-29  Jan Hubicka  <jh@suse.cz>
5855
5856         * tree.c (build_function_type_skip_args,
5857         build_function_decl_skip_args): New functions.
5858         * tree.h (build_function_type_skip_args,
5859         build_function_decl_skip_args): Declare.
5860         * gimple.c (giple_copy_call_skip_args): New function.
5861         (giple_copy_call_skip_args): Declare.
5862
5863         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
5864         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
5865         (ipcp_node_modifiable_p): ... this one; use
5866         tree_versionable_function_p.
5867         (ipcp_create_replace_map): Improve debug output.
5868         (ipcp_need_redirect_p): Return false when not clonning.
5869         (ipcp_update_callgraph): Skip args.
5870         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
5871         skip args.
5872         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
5873         (save_inline_function_body): Update call of tree_function_versioning.
5874         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
5875         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
5876         argument.
5877         (tree_function_versioning): Likewise.
5878         * tree-inline.h (tree_function_versioning): Update prototype.
5879
5880 2008-08-29  Jan Hubicka  <jh@suse.cz>
5881
5882         * loop-unswitch.c (unswitch_single_loop): Use
5883         optimize_loop_for_speed_p.
5884         * tree-ssa-threadupdate.c (mark_threaded_blocks):
5885         Use optimize_function_for_size_p.
5886         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
5887         * postreload-gcse.c (eliminate_partially_redundant_load):
5888         Use optimize_bb_for_size_p.
5889         * value-prof.c (gimple_divmod_fixed_value_transform,
5890         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
5891         gimple_stringops_transform): Use optimize_bb_for_size_p.
5892         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
5893         * final.c (compute_alignments): Use optimize_function_for_size_p.
5894         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
5895         (fold_builtin_strcpy, fold_builtin_fputs): Use
5896         optimize_function_for_size_p.
5897         * fold-const.c (tree_swap_operands_p): Use
5898         optimize_function_for_size_p.
5899         * recog.c (relax_delay_slots): Likewise.
5900         * tree-ssa-math-opts.c (replace_reciprocal):
5901         Use optimize_bb_for_speed_p.
5902         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
5903         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
5904         optimize_function_for_size_p.
5905         (cgraph_decide_inlining_of_small_function): Use
5906         optimize_function_for_size_p.
5907         * global.c (find_reg): Use optimize_function_for_size_p.
5908         * opts.c (decode_options): Do not clear flag_tree_ch,
5909         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
5910         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
5911         work it out from profile.
5912         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
5913         optimize_loop_for_speed_p.
5914         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5915         Constify argument.
5916         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
5917         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
5918         * tree-eh.c (decide_copy_try_finally): Use
5919         optimize_function_for_size_p.
5920         * local-alloc.c (block_alloc): Pass BB pointer.
5921         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
5922         * gcse.c (gcse_main): Use optimize_function_for_size_p.
5923         * loop-unroll.c (decide_unrolling_and_peeling):
5924         Use optimize_loop_for_size_p.
5925         (decide_peel_completely): Likewise.
5926         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
5927         optimize_loop_for_size_p.
5928         (vect_enhance_data_refs_alignment): Likewise.
5929         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
5930         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
5931         Update call.
5932         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
5933         (try_crossjump_bb): Use optimize_bb_for_size_p.
5934         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5935         optimize_loop_for_speed_p.
5936         * bb-reorder.c (find_traces_1_round): Likewise.
5937         (copy_bb): Use optimize_bb_for_speed_p.
5938         (duplicate_computed_gotos): Likewise.
5939         * basic-block.h (optimize_loop_nest_for_size_p,
5940         optimize_loop_nest_for_speed_p): New.
5941         * stmt.c (expand_case): Use optimize_insn_for_size_p.
5942
5943 2008-08-29  Tristan Gingold  <gingold@adacore.com>
5944
5945         * gcov.c (main): Call expandargv.
5946
5947 2008-08-29  Jan Hubicka  <jh@suse.cz>
5948
5949         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
5950         is not cold.
5951         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5952         Constify arguments.
5953         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
5954         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
5955         Constify.
5956         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
5957
5958 2008-08-29  Jan Hubicka  <jh@suse.cz>
5959
5960         * tree-pass.h (pass_strip_predict_hints): Declare.
5961         * predict.c (strip_builtin_expect): Rename to ...
5962         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
5963         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
5964         (tree_estimate_probability): Do not strip builtin_expect.
5965         (pass_strip_predict_hints): New pass.
5966         * tree-inline.c (expand_call_inline): When inlining cold function,
5967         predict it as unlikely.
5968         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
5969
5970 2008-08-29  Richard Guenther  <rguenther@suse.de>
5971
5972         PR tree-optimization/37207
5973         * tree-vrp.c (extract_range_from_binary_expr): Also try
5974         to constant fold if only one of the operands is a constant.
5975
5976 2008-08-29  Nick Clifton  <nickc@redhat.com>
5977
5978         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
5979         the same way as SYMBOL_REFs.
5980
5981 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
5982
5983         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
5984
5985 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
5986
5987         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
5988         * config/mips/mips.md (branch_likely): Remove const.  Fix
5989         comment formatting.
5990         (define_delay for type "branch"): Change to only apply for branch
5991         with likely variant.
5992         (define_delay for type "branch" and "branch_likely" no).  New delay
5993         definition.
5994         (equality_op): New code iterator.
5995         (bbv, bbinv): New code attributes.
5996         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
5997         patterns.
5998
5999 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6000             Andrew Pinski  <pinskia@gcc.gnu.org>
6001
6002         PR 18050
6003         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
6004
6005 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
6006
6007         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
6008         rule that a symbolic constant must be defined and >= 0 for the
6009         corresponding facility to be present at compile-time.
6010         * gthr-posix.c: Likewise.
6011
6012 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
6013
6014         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
6015         * config/mips/mips.md (D): New mode attribute.
6016         (mulsi3, muldi3): Merge it into ...
6017         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
6018         (muldi3_mul3): New pattern.
6019         (mulsi3_mult3): Rename to mulsi3_mul3.
6020
6021 2008-08-28  Jan Hubicka  <jh@suse.cz>
6022
6023         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
6024         to fail.
6025         * predict.c (always_optimize_for_size_p): Rename to ...
6026         (optimize_function_for_size): ... this one; make extern.
6027         (optimize_function_for_speed_p): New.
6028         (optimize_bb_for_size_p, optimize_bb_for_size_p,
6029         optimize_edge_for_size_p,optimize_edge_for_size_p,
6030         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
6031         * basic-block.h (optimize_function_for_size_p,
6032         optimize_function_for_speed_p): Declare.
6033         * i386.md (optimize_size checks): Replace them by appropriate
6034         predicate.
6035         (standard_80387_constant_p, ix86_compute_frame_layout,
6036         ix86_expand_epilogue, ix86_decompose_address,
6037         print_operand, emit_i387_cw_initialization,
6038         inline_memory_move_cost, ix86_pad_returns,
6039         ix86_reorg): Replace optimize_size checks.
6040
6041 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6042
6043         * rtl.h (simplify_subreg_regno): Declare.
6044         * rtlanal.c (simplify_subreg_regno): New function, split out from...
6045         * simplify-rtx.c (simplify_subreg): ...here.
6046         * reload.c (find_reloads): Use simplify_subreg_regno instead of
6047         subreg_offset_representable_p.
6048
6049 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6050
6051         PR c/30949
6052         * c-typeck.c (convert_for_assignment): Give a note describing what
6053         was passed and what was expected.
6054
6055 2008-08-28  Joey Ye  <joey.ye@intel.com>
6056
6057         * doc/extend.texi: Document AVX built-in functions.
6058         * doc/invoke.texi: Document -mavx.
6059
6060 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
6061             Joey Ye  <joey.ye@intel.com>
6062             Xuepeng Guo  <xuepeng.guo@intel.com>
6063
6064         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
6065
6066         * config/i386/cpuid.h (bit_FMA): New.
6067         (bit_XSAVE): Likewise.
6068         (bit_OSXSAVE): Likewise.
6069         (bit_AVX): Likewise.
6070
6071         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
6072         define.  Use ASM_OUTPUT_AVX_PREFIX.
6073
6074         * config/i386/gmmintrin.h: New.
6075
6076         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
6077         (OPTION_MASK_ISA_AVX_SET): New.
6078         (OPTION_MASK_ISA_FMA_SET): Likewise.
6079         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
6080         (OPTION_MASK_ISA_FMA_SET): Likewise.
6081         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
6082         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
6083         (pta_flags): Add PTA_AVX and PTA_FMA.
6084         (override_options): Handle PTA_AVX and PTA_FMA.
6085         (init_cumulative_args): Handle warn_avx.
6086         (classify_argument): Return 0 for COImode and OImode.  Return
6087         1 and X86_64_AVX_CLASS for 256bit vector types.
6088         (examine_argument): Handle X86_64_AVX_CLASS.
6089         (construct_container): Likewise.
6090         (function_arg_advance_32): Pass OImode and 256bit vector types
6091         in AVX register.
6092         (function_arg_advance_64): Take a new argument to indicate if a
6093         parameter is named.  Handle 256bit vector types.  Return
6094         immediately for unnamed 256bit vector mode parameters.
6095         (function_arg_advance): Updated.
6096         (function_arg_32): Add comments for TImode.  Handle OImode
6097         and 256bit vector types.
6098         (function_arg_64): Take a new argument to indicate if a
6099         parameter is named.  Handle 256bit vector types.  Return NULL
6100         for unnamed 256bit vector mode parameters.
6101         (function_arg): Updated.
6102         (setup_incoming_varargs_64): Support
6103         AVX encoding for *sse_prologue_save_insn.
6104         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
6105         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
6106         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
6107         enabled, otherwise return -3.
6108         (standard_sse_constant_opcode): Handle AVX and 256bit vector
6109         modes.
6110         (print_reg): Support AVX registers.  Handle 'x' and 't'.
6111         Handle 'd' to duplicate the operand.
6112         (print_operand): Likewise.  Also support AVX vector compare
6113         instructions.
6114         (output_387_binary_op): Support AVX.
6115         (output_fp_compare): Likewise.
6116         (ix86_expand_vector_move_misalign): Likewise.
6117         (ix86_attr_length_vex_default): New.
6118         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
6119         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
6120         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
6121         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
6122         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
6123         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
6124         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
6125         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
6126         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
6127         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
6128         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
6129         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
6130         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
6131         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
6132         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
6133         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
6134         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
6135         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
6136         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
6137         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
6138         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
6139         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
6140         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
6141         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
6142         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
6143         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
6144         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
6145         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
6146         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
6147         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
6148         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
6149         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
6150         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
6151         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
6152         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
6153         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
6154         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
6155         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
6156         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
6157         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
6158         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
6159         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
6160         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
6161         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
6162         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
6163         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
6164         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
6165         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
6166         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
6167         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
6168         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
6169         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
6170         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
6171         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
6172         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
6173         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
6174         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
6175         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
6176         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
6177         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
6178         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
6179         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
6180         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
6181         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
6182         and IX86_BUILTIN_MOVMSKPS256,
6183         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
6184         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
6185         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
6186         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
6187         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
6188         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
6189         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
6190         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
6191         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
6192         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
6193         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
6194         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
6195         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
6196         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
6197         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
6198         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
6199         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
6200         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
6201         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
6202         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
6203         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
6204         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
6205         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
6206         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
6207         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
6208         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
6209         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
6210         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
6211         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
6212         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
6213         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
6214         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
6215         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
6216         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
6217         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
6218         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
6219         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
6220         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
6221         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
6222         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
6223         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
6224         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
6225         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
6226         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
6227         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
6228         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
6229         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
6230         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
6231         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
6232         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
6233         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
6234         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
6235         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
6236         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
6237         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
6238         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
6239         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
6240         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
6241         IX86_BUILTIN_CMPPS,
6242         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
6243         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
6244         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
6245         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
6246         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
6247         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
6248         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
6249         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
6250         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
6251         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
6252         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
6253         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
6254         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
6255         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
6256         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
6257         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
6258         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
6259         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
6260         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
6261         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
6262         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
6263         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
6264         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
6265         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
6266         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
6267         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
6268         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
6269         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
6270         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
6271         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
6272         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
6273         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
6274         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
6275         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
6276         IX86_BUILTIN_MOVMSKPS256.
6277         (ix86_init_mmx_sse_builtins): Support AVX builtins.
6278         (ix86_expand_args_builtin): Likewise.
6279         (ix86_expand_special_args_builtin): Likewise.
6280         (ix86_hard_regno_mode_ok): Handle AVX modes.
6281         (ix86_expand_vector_init_duplicate): Likewise.
6282         (ix86_expand_vector_init_one_nonzero): Likewise.
6283         (ix86_expand_vector_init_one_var): Likewise.
6284         (ix86_expand_vector_init_concat): Likewise.
6285         (ix86_expand_vector_init_general): Likewise.
6286         (ix86_expand_vector_set): Likewise.
6287         (ix86_vector_mode_supported_p): Likewise.
6288         (x86_extended_reg_mentioned_p): Check INSN_P before using
6289         PATTERN.
6290
6291         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6292         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
6293
6294         * config/i386/i386.h (TARGET_AVX): New.
6295         (TARGET_FMA): Likewise.
6296         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
6297         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
6298         (VALID_AVX256_REG_MODE): New.
6299         (AVX256_VEC_FLOAT_MODE_P): Likewise.
6300         (AVX_FLOAT_MODE_P): Likewise.
6301         (AVX128_VEC_FLOAT_MODE_P): Likewise.
6302         (AVX256_VEC_FLOAT_MODE_P): Likewise.
6303         (AVX_VEC_FLOAT_MODE_P): Likewise.
6304         (ASM_OUTPUT_AVX_PREFIX): Likewise.
6305         (ASM_OUTPUT_OPCODE): Likewise.
6306         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
6307         support.
6308         (SSE_REG_MODE_P): Allow 256bit vector modes.
6309         (ix86_args): Add a warn_avx field.
6310
6311         * config/i386/i386.md (UNSPEC_PCMP): New.
6312         (UNSPEC_VPERMIL): Likewise.
6313         (UNSPEC_VPERMIL2): Likewise.
6314         (UNSPEC_VPERMIL2F128): Likewise.
6315         (UNSPEC_MASKLOAD): Likewise.
6316         (UNSPEC_MASKSTORE): Likewise.
6317         (UNSPEC_CAST): Likewise.
6318         (UNSPEC_VTESTP): Likewise.
6319         (UNSPECV_VZEROALL): Likewise.
6320         (UNSPECV_VZEROUPPER): Likewise.
6321         (XMM0_REG): Likewise.
6322         (XMM1_REG): Likewise.
6323         (XMM2_REG): Likewise.
6324         (XMM3_REG): Likewise.
6325         (XMM4_REG): Likewise.
6326         (XMM5_REG): Likewise.
6327         (XMM6_REG): Likewise.
6328         (XMM8_REG): Likewise.
6329         (XMM9_REG): Likewise.
6330         (XMM10_REG): Likewise.
6331         (XMM11_REG): Likewise.
6332         (XMM12_REG): Likewise.
6333         (XMM13_REG): Likewise.
6334         (XMM14_REG): Likewise.
6335         (XMM15_REG): Likewise.
6336         (prefix): Likewise.
6337         (prefix_vex_imm8): Likewise.
6338         (prefix_vex_w): Likewise.
6339         (length_vex): Likewise.
6340         (maxmin): Likewise.
6341         (movoi): Likewise.
6342         (*avx_ashlti3): Likewise.
6343         (*avx_lshrti3): Likewise.
6344         (*avx_setcc<mode>): Likewise.
6345         (*fop_<mode>_comm_mixed_avx): Likewise.
6346         (*fop_<mode>_comm_avx): Likewise.
6347         (*fop_<mode>_1_mixed_avx): Likewise.
6348         (*fop_<mode>_1_avx): Likewise.
6349         (*avx_<code><mode>3): Likewise.
6350         (*avx_ieee_smin<mode>3): Likewise.
6351         (*avx_ieee_smax<mode>3): Likewise.
6352         (mode): Add OI, V8SF and V4DF.
6353         (length): Support VEX prefix.
6354         (*cmpfp_i_mixed): Set prefix attribute.
6355         (*cmpfp_i_sse): Likewise.
6356         (*cmpfp_iu_mixed): Likewise.
6357         (*cmpfp_iu_sse): Likewise.
6358         (*movsi_1): Support AVX.
6359         (*movdi_2): Likewise.
6360         (*movdi_1_rex64): Likewise.
6361         (*movti_internal): Likewise.
6362         (*movti_rex64): Likewise.
6363         (*movsf_1): Likewise.
6364         (*movdf_nointeger): Likewise.
6365         (*movdf_integer_rex64): Likewise.
6366         (*movtf_internal): Likewise.
6367         (zero_extendsidi2_32): Likewise.
6368         (zero_extendsidi2_rex64): Likewise.
6369         (*extendsfdf2_mixed): Likewise.
6370         (*extendsfdf2_sse): Likewise.
6371         (*truncdfsf_fast_mixed): Likewise.
6372         (*truncdfsf_fast_sse): Likewise.
6373         (*truncdfsf_mixed): Likewise.
6374         (fix_trunc<mode>di_sse): Likewise.
6375         (fix_trunc<mode>si_sse): Likewise.
6376         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
6377         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
6378         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
6379         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
6380         (*rcpsf2_sse): Likewise.
6381         (*rsqrtsf2_sse): Likewise.
6382         (*sqrt<mode>2_sse): Likewise.
6383         (sse4_1_round<mode>2): Likewise.
6384         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
6385         Support AVX.  Set length attribute properly for AVX.
6386
6387         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
6388         (VECTOR_MODES (FLOAT, 32)): Likewise.
6389         (VECTOR_MODE (INT, DI, 8)): Likewise.
6390         (VECTOR_MODE (INT, HI, 32)): Likewise.
6391         (VECTOR_MODE (INT, QI, 64)): Likewise.
6392         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
6393         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
6394         (VECTOR_MODE (INT, DI, 4)): Removed.
6395         (VECTOR_MODE (INT, SI, 8)): Likewise.
6396         (VECTOR_MODE (INT, HI, 16)): Likewise.
6397         (VECTOR_MODE (INT, QI, 32)): Likewise.
6398         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
6399         (INT_MODE (OI, 32)): Likewise.
6400
6401         * config/i386/i386.opt (mavx): New.
6402         (mfma): Likewise.
6403
6404         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
6405
6406         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
6407         (*mov<mode>_internal_avx): New.
6408         (*movv2sf_internal_rex64_avx): Likewise.
6409         (*movv2sf_internal_avx): Likewise.
6410
6411         * config/i386/predicates.md (const_4_to_5_operand): New.
6412         (const_6_to_7_operand): Likewise.
6413         (const_8_to_11_operand): Likewise.
6414         (const_12_to_15_operand): Likewise.
6415         (avx_comparison_float_operator): Likewise.
6416
6417         * config/i386/sse.md (AVX256MODEI): New.
6418         (AVX256MODE): Likewise.
6419         (AVXMODEQI): Likewise.
6420         (AVXMODE): Likewise.
6421         (AVX256MODEF2P): Likewise.
6422         (AVX256MODE2P): Likewise.
6423         (AVX256MODE4P): Likewise.
6424         (AVX256MODE8P): Likewise.
6425         (AVXMODEF2P): Likewise.
6426         (AVXMODEF4P): Likewise.
6427         (AVXMODEDCVTDQ2PS): Likewise.
6428         (AVXMODEDCVTPS2DQ): Likewise.
6429         (avxvecmode): Likewise.
6430         (avxvecpsmode): Likewise.
6431         (avxhalfvecmode): Likewise.
6432         (avxscalarmode): Likewise.
6433         (avxcvtvecmode): Likewise.
6434         (avxpermvecmode): Likewise.
6435         (avxmodesuffixf2c): Likewise.
6436         (avxmodesuffixp): Likewise.
6437         (avxmodesuffixs): Likewise.
6438         (avxmodesuffix): Likewise.
6439         (vpermilbits): Likewise.
6440         (pinsrbits): Likewise.
6441         (mov<mode>): Likewise.
6442         (*mov<mode>_internal): Likewise.
6443         (push<mode>1): Likewise.
6444         (movmisalign<mode>): Likewise.
6445         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6446         (avx_movdqu<avxmodesuffix>): Likewise.
6447         (avx_lddqu<avxmodesuffix>): Likewise.
6448         (<plusminus_insn><mode>3): Likewise.
6449         (*avx_<plusminus_insn><mode>3): Likewise.
6450         (*avx_vm<plusminus_insn><mode>3): Likewise.
6451         (mul<mode>3): Likewise.
6452         (*avx_mul<mode>3): Likewise.
6453         (*avx_vmmul<mode>3): Likewise.
6454         (divv8sf3): Likewise.
6455         (divv4df3): Likewise.
6456         (avx_div<mode>3): Likewise.
6457         (*avx_div<mode>3): Likewise.
6458         (*avx_vmdiv<mode>3): Likewise.
6459         (avx_rcpv8sf2): Likewise.
6460         (*avx_vmrcpv4sf2): Likewise.
6461         (sqrtv8sf2): Likewise.
6462         (avx_sqrtv8sf2): Likewise.
6463         (*avx_vmsqrt<mode>2): Likewise.
6464         (rsqrtv8sf2): Likewise.
6465         (avx_rsqrtv8sf2): Likewise.
6466         (*avx_vmrsqrtv4sf2): Likewise.
6467         (<code><mode>3): Likewise.
6468         (*avx_<code><mode>3_finite): Likewise.
6469         (*avx_<code><mode>3): Likewise.
6470         (*avx_vm<code><mode>3): Likewise.
6471         (*avx_ieee_smin<mode>3): Likewise.
6472         (*avx_ieee_smax<mode>3): Likewise.
6473         (avx_addsubv8sf3): Likewise.
6474         (avx_addsubv4df3): Likewise.
6475         (*avx_addsubv4sf3): Likewise.
6476         (*avx_addsubv2df3): Likewise.
6477         (avx_h<plusminus_insn>v4df3): Likewise.
6478         (avx_h<plusminus_insn>v8sf3): Likewise.
6479         (*avx_h<plusminus_insn>v4sf3): Likewise.
6480         (*avx_h<plusminus_insn>v2df3): Likewise.
6481         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
6482         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
6483         (*avx_maskcmp<mode>3): Likewise.
6484         (avx_nand<mode>3): Likewise.
6485         (*avx_<code><mode>3): Likewise.
6486         (*avx_nand<mode>3): Likewise.
6487         (*avx_<code><mode>3): Likewise.
6488         (*avx_cvtsi2ss): Likewise.
6489         (*avx_cvtsi2ssq): Likewise.
6490         (*avx_cvtsi2sd): Likewise.
6491         (*avx_cvtsi2sdq): Likewise.
6492         (*avx_cvtsd2ss): Likewise.
6493         (avx_cvtss2sd): Likewise.
6494         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
6495         (avx_cvtps2dq<avxmodesuffix>): Likewise.
6496         (avx_cvttps2dq<avxmodesuffix>): Likewise.
6497         (*avx_cvtsi2sd): Likewise.
6498         (*avx_cvtsi2sdq): Likewise.
6499         (avx_cvtdq2pd256): Likewise.
6500         (avx_cvtpd2dq256): Likewise.
6501         (avx_cvttpd2dq256): Likewise.
6502         (*avx_cvtsd2ss): Likewise.
6503         (*avx_cvtss2sd): Likewise.
6504         (avx_cvtpd2ps256): Likewise.
6505         (avx_cvtps2pd256): Likewise.
6506         (*avx_movhlps): Likewise.
6507         (*avx_movlhps): Likewise.
6508         (avx_unpckhps256): Likewise.
6509         (*avx_unpckhps): Likewise.
6510         (avx_unpcklps256): Likewise.
6511         (*avx_unpcklps): Likewise.
6512         (avx_movshdup256): Likewise.
6513         (avx_movsldup256): Likewise.
6514         (avx_shufps256): Likewise.
6515         (avx_shufps256_1): Likewise.
6516         (*avx_shufps_<mode>): Likewise.
6517         (*avx_loadhps): Likewise.
6518         (*avx_storelps): Likewise.
6519         (*avx_loadlps): Likewise.
6520         (*avx_movss): Likewise.
6521         (*vec_dupv4sf_avx): Likewise.
6522         (*vec_concatv2sf_avx): Likewise.
6523         (*vec_concatv4sf_avx): Likewise.
6524         (*vec_setv4sf_0_avx): Likewise.
6525         (*vec_setv4sf_avx): Likewise.
6526         (*avx_insertps): Likewise.
6527         (avx_vextractf128<mode>): Likewise.
6528         (vec_extract_lo_<mode>): Likewise.
6529         (vec_extract_hi_<mode>): Likewise.
6530         (vec_extract_lo_<mode>): Likewise.
6531         (vec_extract_hi_<mode>): Likewise.
6532         (vec_extract_lo_v16hi): Likewise.
6533         (vec_extract_hi_v16hi): Likewise.
6534         (vec_extract_lo_v32qi): Likewise.
6535         (vec_extract_hi_v32qi): Likewise.
6536         (avx_unpckhpd256): Likewise.
6537         (*avx_unpckhpd): Likewise.
6538         (avx_movddup256): Likewise.
6539         (*avx_movddup): Likewise.
6540         (avx_unpcklpd256): Likewise.
6541         (*avx_unpcklpd): Likewise.
6542         (avx_shufpd256): Likewise.
6543         (avx_shufpd256_1): Likewise.
6544         (*avx_punpckhqdq): Likewise.
6545         (*avx_punpcklqdq): Likewise.
6546         (*avx_shufpd_<mode>): Likewise.
6547         (*avx_storehpd): Likewise.
6548         (*avx_loadhpd): Likewise.
6549         (*avx_loadlpd): Likewise.
6550         (*avx_movsd): Likewise.
6551         (*vec_concatv2df_avx): Likewise.
6552         (*avx_<plusminus_insn><mode>3): Likewise.
6553         (*avx_<plusminus_insn><mode>3): Likewise.
6554         (*avx_mulv8hi3): Likewise.
6555         (*avxv8hi3_highpart): Likewise.
6556         (*avx_umulv8hi3_highpart): Likewise.
6557         (*avx_umulv2siv2di3): Likewise.
6558         (*avx_mulv2siv2di3): Likewise.
6559         (*avx_pmaddwd): Likewise.
6560         (*avx_mulv4si3): Likewise.
6561         (*avx_ashr<mode>3): Likewise.
6562         (*avx_lshr<mode>3): Likewise.
6563         (*avx_ashl<mode>3): Likewise.
6564         (*avx_<code><mode>3): Likewise.
6565         (*avx_eq<mode>3): Likewise.
6566         (*avx_gt<mode>3): Likewise.
6567         (*avx_nand<mode>3): Likewise.
6568         (*avx_nand<mode>3): Likewise.
6569         (*avx_<code><mode>3): Likewise.
6570         (*avx_<code><mode>3): Likewise.
6571         (*avx_packsswb): Likewise.
6572         (*avx_packssdw): Likewise.
6573         (*avx_packuswb): Likewise.
6574         (*avx_punpckhbw): Likewise.
6575         (*avx_punpcklbw): Likewise.
6576         (*avx_punpckhwd): Likewise.
6577         (*avx_punpcklwd): Likewise.
6578         (*avx_punpckhdq): Likewise.
6579         (*avx_punpckldq): Likewise.
6580         (*avx_pinsr<avxmodesuffixs>): Likewise.
6581         (*avx_pinsrq): Likewise.
6582         (*avx_loadld): Likewise.
6583         (*vec_extractv2di_1_rex64_avx): Likewise.
6584         (*vec_extractv2di_1_avx): Likewise.
6585         (*vec_dupv2di_avx): Likewise.
6586         (*vec_concatv2si_avx): Likewise.
6587         (*vec_concatv4si_1_avx): Likewise.
6588         (*vec_concatv2di_avx): Likewise.
6589         (*vec_concatv2di_rex64_avx): Likewise.
6590         (*avx_uavgv16qi3): Likewise.
6591         (*avx_uavgv8hi3): Likewise.
6592         (*avx_psadbw): Likewise.
6593         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
6594         (*avx_phaddwv8hi3): Likewise.
6595         (*avx_phadddv4si3): Likewise.
6596         (*avx_phaddswv8hi3): Likewise.
6597         (*avx_phsubwv8hi3): Likewise.
6598         (*avx_phsubdv4si3): Likewise.
6599         (*avx_phsubswv8hi3): Likewise.
6600         (*avx_pmaddubsw128): Likewise.
6601         (*avx_pmulhrswv8hi3): Likewise.
6602         (*avx_pshufbv16qi3): Likewise.
6603         (*avx_psign<mode>3): Likewise.
6604         (*avx_palignrti): Likewise.
6605         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6606         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6607         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6608         (*avx_mpsadbw): Likewise.
6609         (*avx_packusdw): Likewise.
6610         (*avx_pblendvb): Likewise.
6611         (*avx_pblendw): Likewise.
6612         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6613         (avx_ptest256): Likewise.
6614         (avx_roundp<avxmodesuffixf2c>256): Likewise.
6615         (*avx_rounds<ssemodesuffixf2c>): Likewise.
6616         (*avx_aesenc): Likewise.
6617         (*avx_aesenclast): Likewise.
6618         (*avx_aesdec): Likewise.
6619         (*avx_aesdeclast): Likewise.
6620         (avx_vzeroupper): Likewise.
6621         (avx_vzeroupper_rex64): Likewise.
6622         (avx_vpermil<mode>): Likewise.
6623         (avx_vpermilvar<mode>3): Likewise.
6624         (avx_vpermil2<mode>3): Likewise.
6625         (avx_vperm2f128<mode>3): Likewise.
6626         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6627         (avx_vbroadcastss256): Likewise.
6628         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
6629         (avx_vinsertf128<mode>): Likewise.
6630         (vec_set_lo_<mode>): Likewise.
6631         (vec_set_hi_<mode>): Likewise.
6632         (vec_set_lo_<mode>): Likewise.
6633         (vec_set_hi_<mode>): Likewise.
6634         (vec_set_lo_v16hi): Likewise.
6635         (vec_set_hi_v16hi): Likewise.
6636         (vec_set_lo_v32qi): Likewise.
6637         (vec_set_hi_v32qi): Likewise.
6638         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6639         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
6640         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6641         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
6642         (vec_init<mode>): Likewise.
6643         (*vec_concat<mode>_avx): Likewise.
6644         (blendbits): Support V8SF and V4DF.
6645         (sse2_movq128): Support AVX.
6646         (<sse>_movnt<mode>): Likewise.
6647         (sse2_movntv2di): Likewise.
6648         (sse_rcpv4sf2): Likewise.
6649         (sse_sqrtv4sf2): Likewise.
6650         (sse_rsqrtv4sf2): Likewise.
6651         (<sse>_comi): Likewise.
6652         (<sse>_ucomi): Likewise.
6653         (sse_cvtss2si): Likewise.
6654         (sse_cvtss2si_2): Likewise.
6655         (sse_cvtss2siq): Likewise.
6656         (sse_cvtss2siq_2): Likewise.
6657         (sse_cvttss2si): Likewise.
6658         (sse_cvttss2siq): Likewise.
6659         (sse2_cvtsd2si): Likewise.
6660         (sse2_cvtsd2si_2): Likewise.
6661         (sse2_cvtsd2siq): Likewise.
6662         (sse2_cvtsd2siq_2): Likewise.
6663         (sse2_cvttsd2si): Likewise.
6664         (sse2_cvttsd2siq): Likewise.
6665         (sse2_cvtdq2pd): Likewise.
6666         (*sse2_cvtpd2dq): Likewise.
6667         (*sse2_cvttpd2dq): Likewise.
6668         (*sse2_cvtpd2ps): Likewise.
6669         (sse2_cvtps2pd): Likewise.
6670         (sse3_movshdup): Likewise.
6671         (sse3_movsldup): Likewise.
6672         (sse_storehps): Likewise.
6673         (*sse4_1_extractps): Likewise.
6674         (sse2_storelpd): Likewise.
6675         (vec_dupv2df_sse3): Likewise.
6676         (*vec_concatv2df_sse3): Likewise.
6677         (*sse4_1_pextrb): Likewise.
6678         (*sse4_1_pextrb_memory): Likewise.
6679         (*sse2_pextrw): Likewise.
6680         (*sse4_1_pextrw_memory): Likewise.
6681         (*sse4_1_pextrd): Likewise.
6682         (*sse4_1_pextrq): Likewise.
6683         (sse2_pshufd_1): Likewise.
6684         (sse2_pshuflw_1): Likewise.
6685         (sse2_pshufhw_1): Likewise.
6686         (*sse2_storeq_rex64): Likewise.
6687         (*vec_dupv4si): Likewise.
6688         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
6689         (sse2_pmovmskb): Likewise.
6690         (*sse2_maskmovdqu): Likewise.
6691         (*sse2_maskmovdqu_rex64): Likewise.
6692         (sse_ldmxcsr): Likewise.
6693         (sse_stmxcsr): Likewise.
6694         (abs<mode>2): Likewise.
6695         (sse4_1_movntdqa): Likewise.
6696         (sse4_1_phminposuw): Likewise.
6697         (sse4_1_extendv8qiv8hi2): Likewise.
6698         (*sse4_1_extendv8qiv8hi2): Likewise.
6699         (sse4_1_extendv4qiv4si2): Likewise.
6700         (*sse4_1_extendv4qiv4si2): Likewise.
6701         (sse4_1_extendv2qiv2di2): Likewise.
6702         (*sse4_1_extendv2qiv2di2): Likewise.
6703         (sse4_1_extendv4hiv4si2): Likewise.
6704         (*sse4_1_extendv4hiv4si2): Likewise.
6705         (sse4_1_extendv2hiv2di2): Likewise.
6706         (*sse4_1_extendv2hiv2di2): Likewise.
6707         (sse4_1_extendv2siv2di2): Likewise.
6708         (*sse4_1_extendv2siv2di2): Likewise.
6709         (sse4_1_zero_extendv8qiv8hi2): Likewise.
6710         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
6711         (sse4_1_zero_extendv4qiv4si2): Likewise.
6712         (*sse4_1_zero_extendv4qiv4si2): Likewise.
6713         (sse4_1_zero_extendv2qiv2di2): Likewise.
6714         (*sse4_1_zero_extendv2qiv2di2): Likewise.
6715         (sse4_1_zero_extendv4hiv4si2): Likewise.
6716         (*sse4_1_zero_extendv4hiv4si2): Likewise.
6717         (sse4_1_zero_extendv2hiv2di2): Likewise.
6718         (*sse4_1_zero_extendv2hiv2di2): Likewise.
6719         (sse4_1_zero_extendv2siv2di2): Likewise.
6720         (*sse4_1_zero_extendv2siv2di2): Likewise.
6721         (sse4_1_ptest): Likewise.
6722         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
6723         (sse4_2_pcmpestri): Likewise.
6724         (sse4_2_pcmpestrm): Likewise.
6725         (sse4_2_pcmpistri): Likewise.
6726         (sse4_2_pcmpistrm): Likewise.
6727         (aesimc): Likewise.
6728         (aeskeygenassist): Likewise.
6729
6730 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
6731
6732         * config/i386/predicates.md (vzeroall_operation): New.
6733
6734         * config/i386/sse.md (avx_vzeroall): New.
6735         (*avx_vzeroall): Likewise.
6736
6737 2008-08-28  Paul Brook  <paul@codesourcery.com>
6738             Mark Shinwell  <shinwell@codesourcery.com>
6739             Richard Earnshaw  <richard.earnshaw@arm.com>
6740
6741         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
6742         (TARGET_MIN_ANCHOR_OFFSET): New.
6743         (arm_override_options): Set correct anchor ranges for Thumb-1
6744         and Thumb-2 if required.
6745         (legitimize_pic_address): Handle case involving a TLS symbol
6746         reference with an addend.
6747         (arm_optimization_options): Enable section anchors at -O1 and
6748         above.
6749         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
6750         * config/arm/arm-protos.h (arm_optimization_options): New.
6751
6752 2008-08-28  Nick Clifton  <nickc@redhat.com>
6753
6754         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
6755         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
6756         attribute.
6757
6758         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
6759         * config/v850/v850.md (return): Remove frame size restriction.
6760
6761         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
6762
6763         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
6764
6765         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
6766
6767         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
6768
6769 2008-08-28  Paul Brook  <paul@codesourcery.com>
6770
6771         * config/arm/vfp11.md: Update license notice.
6772         * config/arm/cortex-r4.md: Ditto.
6773
6774 2008-08-28  Richard Guenther  <rguenther@suse.de>
6775
6776         PR tree-optimization/37207
6777         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
6778         tuplification bug.
6779
6780 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
6781
6782         PR c++/36741
6783         * tree.c (int_fits_type_p): Don't forget unsigned integers
6784           of type sizetype which higher end word equals -1.
6785
6786 2008-08-28  Ira Rosen  <irar@il.ibm.com>
6787
6788         * target.h (struct vectorize): Add new target builtin.
6789         * tree-vectorizer.c (destroy_loop_vec_info): Call
6790         vect_free_slp_instance instead of vect_free_slp_node.
6791         * tree-vectorizer.h (enum slp_load_perm_type): New.
6792         (struct _slp_instance): Add new fields.
6793         (SLP_INSTANCE_LOAD_PERMUTATION): New.
6794         (SLP_INSTANCE_LOADS): New.
6795         (vect_free_slp_tree): Remove.
6796         (vect_free_slp_instance): Declare.
6797         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
6798         (vectorizable_load): Add argument.
6799         (vect_transform_slp_perm_load): New.
6800         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
6801         vectorizable_load.
6802         (vect_get_place_in_interleaving_chain): New function.
6803         (vect_free_slp_tree): Make static.
6804         (vect_free_slp_instance): New function.
6805         (vect_build_slp_tree): Add new arguments. Allow load permutations and
6806         collect the load location in the interleaving chain.
6807         (vect_supported_slp_permutation_p): New function.
6808         (vect_supported_load_permutation_p): Likewise.
6809         (vect_analyze_slp_instance): In case of loads permutation, call
6810         vect_supported_load_permutation_p to check that the permutation is
6811         supported.
6812         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
6813         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
6814         (vect_create_mask_and_perm): New function.
6815         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
6816         (vectorizable_load): Add an argument. Don't keep the created vectors
6817         statements in the node if permutation is required. Call
6818         vect_transform_slp_perm_load to generate the permutation.
6819         (vect_transform_stmt): Add new argument. Call vectorizable_load with
6820         additional argument.
6821         (vect_schedule_slp_instance): In case of loads permutation, allocate
6822         vectorized statements structure for all the related SLP nodes. Call
6823         vect_transform_stmt with addditional argument.
6824         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
6825         * config/spu/spu.c (spu_builtin_vec_perm): New.
6826         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
6827         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
6828         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
6829         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
6830
6831 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
6832
6833         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
6834         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
6835         __gthread_cond_signal, __gthread_cond_timedwait,
6836         __gthread_cond_timedwait_recursive): New functions.
6837         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
6838         Likewise.
6839         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
6840         thread interfaces.
6841
6842 2008-08-28  Richard Guenther  <rguenther@suse.de>
6843
6844         PR middle-end/37005
6845         * fold-const.c (maybe_canonicalize_comparison_1): Require
6846         undefined overflow only for canonicalizing A +- CST cmp CST.
6847         Make sure to not generate new constants that are not inside
6848         their TYPE_MIN/MAX_VALUE range.
6849         (maybe_canonicalize_comparison): Remove undefined overflow
6850         checking from here.
6851         (fold_binary): Remove now duplicate folding.
6852
6853 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
6854
6855         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
6856         use not updated in the last change.
6857
6858 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6859
6860         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
6861         (IRA_COVER_CLASSES): Add FPUL_REGS.
6862
6863 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6864
6865         PR 37217
6866         * c-common.c (conversion_warning): Check for null operands.
6867
6868 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6869
6870         PR c/31673
6871         * c-decl.c (check_for_loop_decls): Improve error message. Give
6872         hint.
6873
6874 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6875
6876         PR c/37186
6877         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
6878         (convert_for_assignment): Pass corrent OPT_W* parameter to
6879         WARN_FOR_ASSIGNMENT.
6880
6881 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
6882
6883         PR c++/35321
6884         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
6885
6886 2008-08-27  Paul Brook  <paul@codesourcery.com>
6887
6888         * config.gcc: Loosen checks for arm uclinux eabi targets.
6889
6890 2008-08-27  Paul Brook  <paul@codesourcery.com>
6891
6892         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
6893         _clzsi2.
6894         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
6895
6896 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
6897
6898         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
6899         the enumerators of an ENUMERAL_TYPE.
6900         * dbxout.c (dbxout_type): Ditto.
6901
6902 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6903
6904         PR rtl-opt/37219
6905         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
6906         (fwprop_addr): Check that the loop_father is not the outer loop.
6907
6908 2008-08-26  Paul Brook  <paul@codesourcery.com>
6909
6910         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
6911         Remove documentation entry for fmul type.
6912         Use fmuls to annotate single-precision multiplication patterns,
6913         fmuld to annotate double-precision multiplication patterns,
6914         fmacs to annotate single-precision multiply-accumulate patterns
6915         and fmacd to annotate double-precision multiply-accumulate patterns.
6916         * config/arm/vfp11.md: Update reservations accordingly.
6917         * config/arm/arm.md: Note that certain values of the "type"
6918         attribute are documented in vfp.md.
6919         * config/arm/arm1020e.md: Remove out of date duplicate comment.
6920         (v10_cvt): Use new fmul types.
6921
6922 2008-08-26  Paul Brook  <paul@codesourcery.com>
6923
6924         * config/arm/vfp.md: Move pipeline description for VFP11 to...
6925         * config/arm/vfp11.md: ...here.  New.
6926         * config/arm/arm.md: Include vfp11.md.
6927
6928 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
6929
6930         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
6931         parameter to inform call.
6932
6933 2008-08-26  Jeff Law  <law@redhat.com>
6934
6935         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
6936         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
6937         preferred class when copying a constant into a partial word register.
6938
6939 2008-08-26  Ben Elliston  <bje@au.ibm.com>
6940
6941         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
6942         * cp/typeck.c: Likewise.
6943         * cp/tree.c: Likewise.
6944         * gimple-low.c: Likewise.
6945         * jump.c: Likewise.
6946
6947 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
6948
6949         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
6950         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
6951
6952         * doc/passes.texi: Describe IRA.
6953
6954         * doc/tm.texi (IRA_COVER_CLASSES,
6955         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
6956
6957         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
6958         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
6959         -fira-propagate-cost, -fno-ira-share-save-slots,
6960         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
6961
6962         * flags.h (ira_algorithm): New enumeration.
6963         (flag_ira_algorithm, flag_ira_verbose): New external variable
6964         declarations.
6965
6966         * postreload.c (gate_handle_postreload): Don't do post reload
6967         optimizations unless the reload is completed.
6968
6969         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
6970         IRA.
6971
6972         * tree-pass.h (pass_ira): New external variable declaration.
6973
6974         * reload.h: Add 2008 to the Copyright.
6975
6976         * cfgloopanal.c: Include params.h.
6977         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
6978         mode.
6979
6980         * params.h (IRA_MAX_LOOPS_NUM): New macro.
6981
6982         * toplev.c (ira.h): New include.
6983         (flag_ira_algorithm, flag_ira_verbose): New external variables.
6984         (backend_init_target): Call ira_init.
6985         (backend_init): Call ira_init_once.
6986         (finalize): Call finish_ira_once.
6987
6988         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
6989         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
6990         external variables.
6991
6992         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
6993         may_move_out_cost): New external variable declarations.
6994         (move_table): New typedef.
6995
6996         * caller-save.c: Include headers output.h and ira.h.
6997         (no_caller_save_reg_set): New global variable.
6998         (save_slots_num, save_slots): New variables.
6999         (reg_save_code, reg_restore_code, add_stored_regs): Add
7000         prototypes.
7001         (init_caller_save): Set up no_caller_save_reg_set.
7002         (init_save_areas): Reset save_slots_num.
7003         (saved_hard_reg): New structure.
7004         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
7005         (initiate_saved_hard_regs, new_saved_hard_reg,
7006         finish_saved_hard_regs, saved_hard_reg_compare_func): New
7007         functions.
7008         (setup_save_areas): Add code for sharing stack slots.
7009         (all_blocks): New variable.
7010         (save_call_clobbered_regs): Process pseudo-register too.
7011         (mark_set_regs): Process pseudo-register too.
7012         (insert_one_insn): Put the insn after bb note in a empty basic
7013         block.  Add insn check.
7014
7015         * global.c (eliminable_regset): Make it external.
7016         (mark_elimination): Use DF_LR_IN for IRA.
7017         (pseudo_for_reload_consideration_p): New.
7018         (build_insn_chain): Make it external.  Don't ignore spilled
7019         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
7020         (gate_handle_global_alloc): New function.
7021         (pass_global_alloc): Add the gate function.
7022
7023         * opts.c (decode_options): Set up flag_ira.  Print the warning for
7024         -fira.
7025         (common_handle_option): Process -fira-algorithm and -fira-verbose.
7026
7027         * timevar.def (TV_IRA, TV_RELOAD): New passes.
7028
7029         * regmove.c (regmove_optimize): Don't do replacement of output for
7030         IRA.
7031
7032         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
7033         New external variable declarations.
7034
7035         * local-alloc.c (update_equiv_regs): Make it external.  Return
7036         true if jump label rebuilding should be done.  Rescan new_insn for
7037         notes.
7038         (gate_handle_local_alloc): New function.
7039         (pass_local_alloc): Add the gate function.
7040
7041         * alias.c (value_addr_p, stack_addr_p): New functions.
7042         (nonoverlapping_memrefs_p): Use them for IRA.
7043
7044         * common.opt (fira, fira-algorithm, fira-coalesce,
7045         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
7046         fira-verbose): New options.
7047
7048         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
7049         move_cost, may_move_in_cost, may_move_out_cost): Make the
7050         variables external.
7051         (move_table): Remove typedef.
7052         (init_move_cost): Make it external.
7053         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
7054         functions.
7055
7056         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
7057         setup_reg_classes): New function prototypes.
7058         (eliminable_regset): New external variable declaration.
7059         (build_insn_chain, update_equiv_regs): New function prototypes.
7060
7061         * Makefile.in (IRA_INT_H): New definition.
7062         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
7063         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
7064         (reload1.o, toplev.o): Add dependence on ira.h.
7065         (cfgloopanal.o): Add PARAMS_H.
7066         (caller-save.o): Add dependence on output.h and ira.h.
7067         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
7068         ira-emit.o, ira-lives.o): New entries.
7069
7070         * passes.c (pass_ira): New pass.
7071
7072         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
7073
7074         * reload1.c (ira.h): Include the header.
7075         (changed_allocation_pseudos): New bitmap.
7076         (init_reload): Initiate the bitmap.
7077         (compute_use_by_pseudos): Permits spilled registers in FROM.
7078         (temp_pseudo_reg_arr): New variable.
7079         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
7080         IRA.  Call alter_reg with the additional parameter.  Don't clear
7081         spilled_pseudos for IRA.  Restore original insn chain for IRA.
7082         Clear changed_allocation_pseudos at the end of reload.
7083         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
7084         (hard_regno_to_pseudo_regno): New variable.
7085         (count_pseudo): Check spilled pseudos.  Set up
7086         hard_regno_to_pseudo_regno.
7087         (count_spilled_pseudo): Check spilled pseudos. Update
7088         hard_regno_to_pseudo_regno.
7089         (find_reg): Use better_spill_reload_regno_p.  Check
7090         hard_regno_to_pseudo_regno.
7091         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
7092         code for IRA.
7093         (eliminate_regs_1): Use additional parameter for alter_reg.
7094         (finish_spills): Set up pseudo_previous_regs only for spilled
7095         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
7096         more arguments.  Don't clear live_throughout and dead_or_set for
7097         spilled pseudos.  Use additional parameter for alter_reg.  Call
7098         mark_allocation_change.  Set up changed_allocation_pseudos.
7099         Remove sanity check.
7100         (emit_input_reload_insns, delete_output_reload): Use additional
7101         parameter for alter_reg.  Call mark_allocation_change.
7102         (substitute, gen_reload_chain_without_interm_reg_p): New
7103         functions.
7104         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
7105
7106         * testsuite/gcc.dg/20080410-1.c: New file.
7107
7108         * config/s390/s390.h (IRA_COVER_CLASSES,
7109         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
7110
7111         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
7112
7113         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
7114
7115         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7116
7117         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
7118
7119         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7120
7121         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
7122
7123         2008-08-24  Jeff Law  <law@redhat.com>
7124         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
7125         when ignoring unavailable registers.
7126
7127         2008-08-24  Jeff Law  <law@redhat.com>
7128         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
7129         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
7130         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
7131         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
7132
7133         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
7134         * ira-build.c (allocno_range_compare_func): Stabilize sort.
7135
7136         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
7137         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
7138         * reload1.c (find_reg): Process registers in register allocation order.
7139
7140         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
7141         * toplev.c (backend_init_target): Move ira_init call from
7142         here...
7143         (lang_dependent_init_target): ...to here.
7144
7145         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
7146         * ira.c (setup_class_subset_and_memory_move_costs): Don't
7147         calculate memory move costs for NO_REGS.
7148
7149         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
7150         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
7151         STACK_REGS is defined.
7152
7153         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
7154         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
7155
7156         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
7157         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
7158
7159         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
7160         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
7161         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
7162         barrier.
7163
7164 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
7165             Dorit Nuzman  <dorit@il.ibm.com>
7166
7167         * gcc/config/spu/spu.md (vec_extract_evenv4si,
7168         vec_extract_evenv4sf, vec_extract_evenv8hi,
7169         vec_extract_evenv16qi, vec_extract_oddv4si,
7170         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
7171         vec_interleave_highv4sf, vec_interleave_lowv4sf,
7172         vec_interleave_highv4si, vec_interleave_lowv4si,
7173         vec_interleave_highv8hi, vec_interleave_lowv8hi,
7174         vec_interleave_highv16qi, vec_interleave_lowv16qi,
7175         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
7176
7177 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
7178
7179         PR target/36756
7180         * config/rs6000/rs6000.c (optimization_options): Don't default to
7181         section anchors without toplevel reorder.
7182
7183 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7184
7185         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
7186         (mfc_end_critical_section): Likewise.
7187
7188 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7189
7190         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
7191         all type qualifiers from element type to vector type.
7192
7193 2008-08-25  David Daney  <ddaney@avtrex.com>
7194
7195         * config/mips/mips.md (immediate_insn): Move up in file, fix
7196         comment typo, reformat.
7197         (fetchop_bit, atomic_hiqi_op memory_barrier,
7198         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
7199         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
7200         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
7201         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
7202         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
7203         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
7204         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
7205         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
7206         sync_old_nand<mode>, sync_new_nand<mode>,
7207         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
7208         test_and_set_12): Moved to sync.md.
7209         (sync.md): Include.
7210         * config/mips/sync.md: New file.
7211
7212 2008-08-25  Richard Henderson  <rth@redhat.com>
7213
7214         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
7215         (regsave): Likewise.
7216         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
7217         (output_cfi_directive): Likewise.
7218         (div_data_align): New.
7219         (output_cfi): Use it.
7220
7221 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
7222
7223         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
7224         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
7225         (TARGET_OCTEON): New macro.
7226         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
7227         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
7228         (ISA_HAS_POP): New macro.
7229         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7230         Octeon.
7231         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
7232         Handle Octeon.
7233         * config/mips/mips.md (cpu): Add octeon.
7234         (type): Add pop attribute value.
7235         (popcount<mode>2): New pattern.
7236         * doc/invoke.texi (-march=@var{arch}): Add octeon.
7237
7238 2008-08-24  Jan Hubicka  <jh@suse.cz>
7239
7240         * doc/invoke.texi (-fipa-cp-clone): New option.
7241         (-fipa-cp): Update docs.
7242         (--param ipcp-unit-growth):New.
7243         * ipa-cp.c: Include fibheap.h, params.h
7244         (ipcp_initialize_node_lattices): When not cloning, all externally
7245         visible functions are bottom.
7246         (ipcp_need_redirect_p): Accept clones.
7247         (ipcp_insert_stage): Use cost driven heuristics.
7248         (max_count, dead_nodes): New static vars.
7249         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
7250         ipcp_const_param_count): New functions.
7251         * common.opt (ipa-cp-clone): New command line option.
7252         * params.def (ipcp-unit-growth): New.
7253
7254 2008-08-24  Jan Hubicka  <jh@suse.cz>
7255
7256         * tree-inline.c (tree_function_versioning): Look harder
7257         for referenced vars.
7258
7259 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
7260
7261         PR tree-optimization/37185
7262         * matrix-reorg.c (transform_access_sites): Update changed stmt.
7263
7264 2008-08-23  Jan Hubicka  <jh@suse.cz>
7265
7266         * ipa-cp.c (ipcp_analyze_node): New function.
7267         (ipcp_update_cloned_node): Use it.
7268         (ipcp_init_stage): Likewise.
7269         * ipa-inline.c (function_insertion_hook_holder): New static var.
7270         (analyze_function): Break out from ....
7271         (inline_generate_summary): Here; register insertion hook.
7272         (cgraph_decide_inlining): Remove hook.
7273         (add_new_function): New function.
7274
7275 2008-08-23  Jan Hubicka  <jh@suse.cz>
7276
7277         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
7278
7279 2008-08-23  Jan Hubicka  <jh@suse.cz>
7280
7281         * ipa-cp.c (constant_val_insert): Remove.
7282         (ipcp_propagate_one_const): Remove.
7283         (ipcp_create_replace_map): Always insert replacements to the map.
7284         (ipcp_insert_stage): Do not try to insert statements by hand.
7285         * tree-inline.c (insert_init_stmt): Break out from ...
7286         (setup_one_parameter): ... here; allow NULL BB pointer.
7287         (tree_function_versioning): Use setup_one_parameter to process
7288         replacement map.
7289
7290 2008-08-23  Jan Hubicka  <jh@suse.cz>
7291
7292         * tree.c (decl_address_ip_invariant_p): New function.
7293         * tree.h (decl_address_ip_invariant_p): Declare.
7294         * gimple.c (strip_invariant_refs): Break out from ...
7295         (is_gimple_invariant_address): ... here
7296         (is_gimple_ip_invariant_address): New function.
7297         (is_gimple_ip_invariant): New function.
7298         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
7299         Declare.
7300
7301         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
7302         (ipcp_lat_is_insertable): All constants are insertable.
7303         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
7304         IPA_CONST_VALUE_REF.
7305         (ipcp_initialize_node_lattices): Propagate all types of operands.
7306         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
7307         (ipcp_create_replace_map): Reformat.
7308         (ipcp_need_redirect_p): Simplify.
7309         (ipcp_insert_stage): Check that argument is used before clonning.
7310         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
7311         IPA_CONST_REF.
7312         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
7313         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
7314         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
7315         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
7316         (jump_func_type): Remove IPA_CONST_VALUE_REF.
7317         * tree-inline.c (tree_function_versioning): Add variables referenced
7318         by replacing trees.
7319
7320 2008-08-23  Jan Hubicka  <jh@suse.cz>
7321
7322         PR target/37094
7323         * i386.c (standard_80387_constant_p): Use optimize_size.
7324
7325 2008-08-23  Ira Rosen  <irar@il.ibm.com>
7326
7327         PR tree-optimization/37161
7328         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
7329         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
7330         (vect_determine_vectorization_factor): Move the scalar type
7331         retrieval to vect_get_smallest_scalar_type.
7332         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
7333         scalar type. Remove redundant computation.
7334         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
7335         (vect_get_slp_defs): Take the type of RHS into account if
7336         necessary by calling vect_get_smallest_scalar_type. Call
7337         vect_get_constant_vectors with additional argument.
7338
7339 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7340
7341         PR 35648
7342         * doc/invoke.texi (Wwrite-strings): Clarify description.
7343
7344 2008-08-23  Ira Rosen  <irar@il.ibm.com>
7345
7346         PR tree-optimization/37174
7347         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
7348         def stmt is a part of the loop before accessing its stmt_vec_info.
7349
7350 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
7351
7352         PR target/11259
7353         * config/avr/avr.md (UNSPEC_SWAP): New constants.
7354         (*swap): New insn pattern.
7355         (*ashlqi3): Rename from ashlqi3 insn pattern.
7356         (ashlqi3): New expanders.
7357         (*lshrqi3): Rename from lshrqi3 insn pattern.
7358         (lshrqi3): New expanders.
7359         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
7360         lshrqi3_const5, lshrqi3_const6): New splitters.
7361         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
7362         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
7363         peephole2 patterns.
7364
7365 2008-08-22  Richard Guenther  <rguenther@suse.de>
7366
7367         PR tree-optimization/37078
7368         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
7369         [+INF, +INF] ranges.
7370
7371 2008-08-22  Richard Guenther  <rguenther@suse.de>
7372
7373         PR tree-optimization/37143
7374         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
7375         a conversion statement instead of a copy.
7376
7377 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
7378
7379         PR target/37184
7380         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
7381         CCCmode, CCOmode and CCSmode destination modes.
7382
7383         PR target/37191
7384         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
7385         from different units in a single alternative.
7386         (*vec_extractv2sf_1): Ditto.
7387         (*vec_extractv2si_0): Ditto.
7388         (*vec_extractv2si_1): Ditto.
7389         * config/i386/sse.md (sse2_storehpd): Ditto.
7390         (sse2_storelpd): Ditto.
7391         (sse2_loadhpd): Ditto.
7392         (sse2_loadlpd): Ditto.
7393
7394         PR target/37197
7395         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
7396         (popcountsi2): Ditto.
7397         (clzdi2_abm): Ditto.
7398         (popcountdi2): Ditto.
7399         (clzhi2_abm): Ditto.
7400         (popcounthi2): Ditto.
7401
7402 2008-08-22  Richard Guenther  <rguenther@suse.de>
7403
7404         PR middle-end/36548
7405         PR middle-end/37125
7406         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
7407         if the multiplication does not overflow.
7408
7409 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
7410
7411         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
7412
7413 2008-08-21  Richard Henderson  <rth@redhat.com>
7414
7415         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
7416         spurrious comma from test.
7417         * configure: Rebuild.
7418
7419 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7420
7421         PR 30457
7422         * builtins.c (fold_builtin_next_arg): Add warning about undefined
7423         behaviour.
7424
7425 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
7426
7427         * c-tree.h (grokfield): New argument.
7428         * c-decl.c (grokfield): Handle new location argument.
7429         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
7430
7431 2008-08-21  Richard Guenther  <rguenther@suse.de>
7432
7433         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
7434
7435 2008-08-21  Jan Hubicka  <jh@suse.cz>
7436
7437         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
7438         (cgraph_add_function_insertion_hook,
7439         cgraph_remove_function_insertion_hook,
7440         cgraph_call_function_insertion_hooks): New functions.
7441         * cgraph.h (cgraph_add_function_insertion_hook,
7442         cgraph_remove_function_insertion_hook,
7443         cgraph_call_function_insertion_hooks): Declare.
7444         * ipa-reference.c (function_insertion_hook_holder): New variable.
7445         (check_operand, look_for_address_of): When checking late, do not care
7446         about module bitmaps.
7447         (add_new_function): New function.
7448         (generate_summary): Register hooks; zero module bitmaps.
7449         (propagate): Unregister hooks.
7450         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
7451         (add_new_function): New function.
7452         (generate_summary): Register hook.
7453         (propagate): Remove hook.
7454
7455         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
7456
7457         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
7458         * ipa-cp.c (ipcp_update_cloned_node): New function.
7459         (build_const_val): Handle functions correctly; bring type logic
7460         into sync with tree-inline.c
7461         (ipcp_init_stage):  Take care of computing stuff needed by
7462         indirect inlining; update clones.
7463         (ipcp_generate_summary): Break out of ipcp_driver.
7464         (ipcp_driver): Do only execution and transformation.
7465         (pass_ipa_cp): Make IPA_PASS.
7466         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
7467         offset to address.
7468         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
7469         ipcp, some info is already available.
7470         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
7471         * tree-inline.c (remap_ssa_name): Unshare expression.
7472
7473 2008-08-21  Richard Guenther  <rguenther@suse.de>
7474
7475         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7476         a PHI ask VN if it is already available.
7477         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7478         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7479
7480 2008-08-21  Richard Guenther  <rguenther@suse.de>
7481
7482         PR middle-end/36817
7483         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
7484         makes sure to produce a result of the correct type.
7485
7486 2008-08-21  Jan Hubicka  <jh@suse.cz>
7487         Backport from LTO branch:
7488
7489         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
7490                     Jan Hubicka  <jh@suse.cz>
7491
7492         * ipa-pure-const.c
7493         (init_state, finish_state, set_function_state, generate_summary):
7494         New functions.
7495         (scan_stmt): Renamed from scan_function.  Changed to keep state in
7496         local static vars rather than cgraph aux field.
7497         (propagate): Renamed from static_execute. Changed to keep state in
7498         local static vars rather than cgraph aux field.
7499         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
7500         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
7501
7502         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7503
7504         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
7505         * ipa-reference.c (init_function_info, generate_summary,
7506         propagate): New functions.
7507         (analyze_function):  Call init_function_info.
7508         (static_execute): Stripped into generate_summary and propagate.
7509         (pass_ipa_reference): Made into ipa_opt_pass.
7510
7511 2008-08-21  Richard Guenther  <rguenther@suse.de>
7512
7513         PR tree-optimization/37181
7514         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
7515         folding result.
7516         (extract_range_from_unary_expr): Likewise.
7517
7518 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7519
7520         * diagnostic.c (pedwarn_at): Rename as pedwarn.
7521         (pedwarn): Delete.
7522         * toplev.h (pedwarn_at): Likewise.
7523         * builtins.c: Update all calls to pedwarn.
7524         * c-lex.c: Likewise.
7525         * toplev.c: Likewise.
7526         * c-tree.h: Likewise.
7527         * c-decl.c: Likewise.
7528         * c-errors.c: Likewise.
7529         * c-typeck.c: Likewise.
7530         * c-common.c: Likewise.
7531         * c-parser.c: Likewise.
7532
7533 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
7534
7535         PR target/31070
7536         * config/sparc/sparc.c (function_arg_slotno): Handle structure
7537         with MODE_VECTOR_INT mode.
7538
7539 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7540
7541         PR middle-end/179
7542         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
7543         initialized outside the current module.
7544         (warn_uninitialized_var): Ignore left-hand side when walking the
7545         trees. Ignore address expressions. Examine VUSE operands in gimple
7546         statements with a variable declaration on the right-hand side.
7547
7548 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
7549
7550         PR bootstrap/37155
7551         * rtlanal.c (subreg_offset_representable_p): Revert last change.
7552
7553 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7554
7555         PR 35701
7556         * c-common.c (conversion_warning): Do not warn if applying bit-and
7557         operator to unsigned constant that fits in the target type.
7558
7559 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7560
7561         PR c++/35602
7562         * c-common.c (conversion_warning): Do not warn for artificial
7563         expressions.
7564
7565 2008-08-20  Richard Guenther  <rguenther@suse.de>
7566
7567         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
7568         (extract_range_from_binary_expr): Fall back to constant propagation.
7569         (extract_range_from_unary_expr): Likewise.
7570
7571 2008-08-20  Richard Guenther  <rguenther@suse.de>
7572
7573         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
7574         with TREE_THIS_VOLATILE on shared nodes.
7575         (fold_stmt_r): Likewise.
7576
7577 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
7578
7579         PR c/37171
7580         * c-parser.c (c_parser_attributes): For keywords use canonical
7581         spelling for attr_name.
7582
7583 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7584
7585         * value-prof.c (check_counter): Revert wrong call to error.
7586
7587 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7588
7589         * profile.c: Update calls to inform.
7590         * value-prof.c: Update calls to inform.
7591
7592 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7593
7594         * diagnostic.c (inform): Add an explicit location_t parameter.
7595         * toplev.h (inform): Update declaration.
7596         * builtins.c: Update all calls to inform.
7597         * c-common.c: Likewise.
7598         * c-decl.c: Likewise.
7599         * c-opts.c: Likewise.
7600         * c-pch.c: Likewise.
7601         * c-pragma.c: Likewise.
7602         * c-typeck.c: Likewise.
7603         * coverage.c: Likewise.
7604         * opts.c: Likewise.
7605         * toplev.c: Likewise.
7606         * tree-cfg.c: Likewise.
7607         * tree-ssa.c: Likewise.
7608
7609 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7610
7611         PR target/37169
7612         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
7613         V2DI mode, for SSE4.1, use movq instead of vector set if the
7614         second element is zero and inter-unit moves are OK.
7615
7616 2008-08-20  Richard Guenther  <rguenther@suse.de>
7617
7618         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
7619         properly handle conversion/copy chains after tuplification.
7620
7621 2008-08-20  Richard Guenther  <rguenther@suse.de>
7622
7623         * passes.c (init_optimization_passes): Move the second
7624         forwprop pass before alias computation.  Remove the second
7625         DCE pass.  Remove the first dominator and phi copy/const
7626         prop passes.
7627
7628 2008-08-20  Nick Clifton  <nickc@redhat.com>
7629
7630         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
7631         support of this feature.  Do not assume that a sufficiently new
7632         assembler will support the feature regardless of the target type.
7633         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
7634         * configure: Regenerate.
7635
7636 2008-08-20  Richard Guenther  <rguenther@suse.de>
7637
7638         * tree-vrp.c (found_in_subgraph): Remove.
7639         (live): New global static.
7640         (live_on_edge): New function.
7641         (blocks_visited): Remove.
7642         (register_edge_assert_for_2): Use live_on_edge.
7643         (find_conditional_asserts): Remove code dealing with
7644         found_in_subgraph.  Do not walk the CFG.
7645         (find_switch_asserts): Likewise.
7646         (find_assert_locations_1): Renamed from find_assert_locations.
7647         Move finding assert locations for conditional and switch
7648         statements first.  Update live bitmap.  Do not walk the CFG.
7649         (find_assert_locations): New function.
7650         (insert_range_assertions): Remove entry of CFG walk.
7651         Adjust call to find_assert_locations.
7652         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
7653         that only can appear because of fake exit edges but assert we
7654         never try to insert on those.
7655         (fini_pre): Do not remove fake exit edges here...
7656         (execute_pre): ...but here, before committing edge inserts.
7657
7658 2008-08-19  Richard Guenther  <rguenther@suse.de>
7659
7660         * passes.c (init_optimization_passes): Exchange store-ccp
7661         with a ccp pass.
7662
7663 2008-08-19  Rafael Espíndola  <espindola@google.com>
7664
7665         * varasm.c (weak_decls): Move earlier in the file.
7666         (assemble_external): Add weak decls to the weak_decls list.
7667         (declare_weak): Don't add decls to the weak_decls list.
7668
7669 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7670
7671         PR target/37157
7672         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
7673         before (sse2_shufpd_<mode>).
7674
7675 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
7676
7677         PR debug/37156
7678         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
7679         * tree.c (block_nonartificial_location): Likewise.
7680
7681 2008-08-19  Richard Guenther  <rguenther@suse.de>
7682
7683         PR tree-optimization/35972
7684         PR tree-optimization/23094
7685         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
7686         parameter.
7687         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
7688         handle MISALIGNED_INDIRECT_REF.
7689         (get_ref_from_reference_ops): New helper.
7690         (vn_reference_lookup_pieces): Walk the use-def chain using the
7691         alias-oracle if requested.
7692         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
7693         walking the use-def chain.
7694         (compute_avail): But not here.
7695         (create_component_ref_by_pieces_1): Properly handle
7696         MISALIGNED_INDIRECT_REF.
7697         (do_regular_insertion): Handle fully redundant
7698         expressions after PHI-translation also for SSA_NAME values, not
7699         only constants.  Correctly use edoubleprime for that.
7700
7701 2008-08-19  Ira Rosen  <irar@il.ibm.com>
7702
7703         * tree-vectorizer.c (supportable_widening_operation): Support
7704         multi-step conversion, return the number of steps in such conversion
7705         and the required intermediate types.
7706         (supportable_narrowing_operation): Likewise.
7707         * tree-vectorizer.h (vect_pow2): New function.
7708         (supportable_widening_operation): Change argument types.
7709         (supportable_narrowing_operation): Likewise.
7710         (vectorizable_type_promotion): Add an argument.
7711         (vectorizable_type_demotion): Likewise.
7712         * tree-vect-analyze.c (vect_analyze_operations): Call
7713         vectorizable_type_promotion and vectorizable_type_demotion with
7714         additional argument.
7715         (vect_get_and_check_slp_defs): Detect patterns.
7716         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
7717         types.
7718         (vect_analyze_slp_instance): Don't fail in case of multiple types.
7719         Call vect_build_slp_tree with correct arguments. Calculate unrolling
7720         factor according to the smallest type in the loop.
7721         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
7722         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
7723         supportable_widening_operation with correct arguments.
7724         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
7725         operands lists according to the number of vector statements in left
7726         or right node, if exists.
7727         (vect_gen_widened_results_half): Remove unused argument.
7728         (vectorizable_conversion): Call supportable_widening_operation,
7729         supportable_narrowing_operation, and vect_gen_widened_results_half
7730         with correct arguments.
7731         (vectorizable_assignment): Change documentation, support multiple
7732         types in SLP.
7733         (vectorizable_operation): Likewise.
7734         (vect_get_loop_based_defs): New function.
7735         (vect_create_vectorized_demotion_stmts): Likewise.
7736         (vectorizable_type_demotion): Support loop-aware SLP and general
7737         multi-step conversion. Call vect_get_loop_based_defs and
7738         vect_create_vectorized_demotion_stmts for transformation.
7739         (vect_create_vectorized_promotion_stmts): New function.
7740         (vectorizable_type_promotion): Support loop-aware SLP and general
7741         multi-step conversion. Call vect_create_vectorized_promotion_stmts
7742         for transformation.
7743         (vectorizable_store): Change documentation, support multiple
7744         types in SLP.
7745         (vectorizable_load): Likewise.
7746         (vect_transform_stmt): Pass SLP_NODE to
7747         vectorizable_type_promotion and vectorizable_type_demotion.
7748         (vect_schedule_slp_instance): Move here the calculation of number
7749         of vectorized statements for each node from...
7750         (vect_schedule_slp): ... here.
7751         (vect_transform_loop): Call vect_schedule_slp without the last
7752         argument.
7753
7754 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
7755
7756         PR bootstrap/37152
7757         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
7758         to == in assert statement.
7759         (vectorizable_reduction): Fix typo.
7760
7761 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7762
7763         PR bootstrap/37153
7764         * value-prof.c (check_counter): Dereference pointer to overall
7765         count when printing it.
7766
7767 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7768
7769         * profile.h: Really add it.
7770
7771 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7772
7773         * mcf.c: Really add it.
7774
7775 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
7776             Vinodha Ramasamy  <vinodha@google.com>
7777
7778         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
7779         count_scale.
7780         * value-prof.c (check_counter): Fix the counter if
7781         flag_profile_correction is true.
7782         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
7783         tree_mod_subtract_transform):
7784         Follow check_counter parameter change.
7785         * common.opt (fprofile-correction): New option.
7786         * mcf.c: New file.
7787         * profile.h: Likewise.
7788         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
7789         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
7790         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
7791         functions.
7792         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
7793         flag_profile_correction is set.
7794
7795 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
7796
7797         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
7798
7799 2008-08-18  Tomas Bily  <tbily@suse.cz>
7800
7801         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
7802         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
7803         CONVERT_EXPR_P.
7804         * tree-data-ref.c (split_constant_offset_1): Likewise.
7805         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
7806         * tree-sra.c (sra_walk_expr): Likewise.
7807         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
7808         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7809         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
7810         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
7811         Likewise.
7812         * gimple.c (gimple_assign_unary_nop_p): Likewise.
7813         * tree-vect-transform.c (vectorizable_type_demotion)
7814         (vectorizable_type_promotion): Likewise.
7815         * tree-inline.c (expand_call_inline):
7816         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7817         (forward_propagate_addr_expr_1, forward_propagate_comparison)
7818         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7819         * expr.c (expand_expr_real_1): Likewise.
7820         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
7821         (gimple_assign_unary_useless_conversion_p): Likewise.
7822         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7823         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
7824         * fold-const.c (fold_unary): Likewise.
7825         * tree.h (CONVERT_EXPR_P): Likewise.
7826         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
7827         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7828         * tree-vrp.c:
7829         (register_edge_assert_for_2, extract_range_from_unary_expr)
7830         (register_edge_assert_for_1): Likewise.
7831
7832 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7833
7834         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
7835         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
7836         (enum real_value_const): Delete.
7837         (get_real_const): Delete.
7838         * real.c (get_real_const): Delete.
7839         (dconst_e_ptr): Define.
7840         (dconst_third_ptr): Define.
7841         (dconst_sqrt2_ptr): Define.
7842         * builtins.c: Update all callers.
7843
7844 2008-08-18  Richard Guenther  <rguenther@suse.de>
7845
7846         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
7847         statement iterator after statement removal.
7848
7849 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
7850
7851         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
7852         (detect_processor_freebsd): Likewise.
7853         (host_detect_local_cpu): Call newly added functions for FreeBSD.
7854
7855 2008-08-18  Richard Guenther  <rguenther@suse.de>
7856
7857         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
7858         and loads have the correct types.
7859
7860 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7861
7862         PR cpp/7263
7863         * c-opts.c (cpp_opts): Remove static.
7864         * c-parser.c (cpp_opts): Declare it extern.
7865         (disable_extension_diagnostics): Handle cpp options.
7866         (enable_extension_diagnostics): Likewise.
7867
7868 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7869
7870         * diagnostics.c (permerror_at): Rename as permerror.
7871         (permerror): Delete.
7872         * toplev.h: Likewise.
7873
7874 2008-08-18  Richard Guenther  <rguenther@suse.de>
7875
7876         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
7877         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
7878         Move call_cdce before build_alias.  Move copyrename2,
7879         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
7880         right after final inlining.
7881         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
7882         (pass_build_cfg): But instead via TODO_dump_func.
7883
7884 2008-08-18  Richard Guenther  <rguenther@suse.de>
7885
7886         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
7887         element index.
7888         (scalarize_init): If we failed to generate some initializers
7889         do not generate zeros for not instantiated members.  Instead
7890         rely on the copy out.
7891         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
7892         about missing flow-sensitive alias info only if we have
7893         aliases computed.
7894
7895 2008-08-17  Nick Clifton  <nickc@redhat.com>
7896
7897         * doc/extend.texi (Function Attributes): Fix typo in description
7898         if hot function attribute.
7899
7900 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
7901             Richard Sandiford  <rdsandiford@googlemail.com>
7902
7903         * doc/install.texi (--with-mips-plt): Document.
7904         * doc/invoke.texi (-mplt, -mno-plt): Document.
7905         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
7906         and handle ${with_mips_plt}.
7907         * config/mips/mips.opt (mplt): New option.
7908         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
7909         (TARGET_ABICALLS_PIC2): Likewise.
7910         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
7911         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
7912         (ASM_SPEC): Use !mabi=* instead of !mabi*.
7913         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
7914         to decide whether to output ".option picX" directives.
7915         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
7916         Pass -call_nonpic rather than -KPIC for -mplt.
7917         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
7918         on the command line.  Also remove it when -mabi=64 is used without
7919         -msym32.
7920         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
7921         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
7922         TARGET_ABICALLS_PIC0.
7923         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
7924         TARGET_ABICALLS.
7925         (mips16_build_function_stub): Only output ".option pic" directives
7926         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
7927         (mips16_build_call_stub): Fix comment and remove redundant
7928         ".set at"/"set .noat" directives.
7929         (mips_function_rodata_section): Use the default behaviour for
7930         TARGET_ABSOLUTE_ABICALLS.
7931         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
7932         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
7933         (mips_restore_gp): Do nothing if the current function doesn't use
7934         a global pointer.
7935         (mips_expand_prologue): Only save $gp if the current function uses it.
7936         Use a normal move for TARGET_ABICALLS_PIC0.
7937         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
7938
7939 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
7940
7941         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
7942         of function when handling GLOBAL_POINTER_REGNUM.
7943
7944 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
7945
7946         PR ada/20548
7947         * common.opt (-fstack-check): Do not declare the variable here.
7948         (-fstack-check=): New option variant.
7949         * doc/invoke.texi (Code Gen Options): Document it.
7950         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
7951         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
7952         (STACK_CHECK_STATIC_BUILTIN): New macro.
7953         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
7954         * opts.c: Include expr.h.
7955         (common_handle_option) <OPT_fold_stack_check_>: New case.
7956         <OPT_fstack_check>: Likewise.
7957         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
7958         consistently in the test for variable-sized types.  Adjust for
7959         new behaviour of flag_stack_check.
7960         * explow.c: Include except.h.
7961         (allocate_dynamic_stack_space): Do not take into account
7962         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
7963         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
7964         for variable-sized parameters.  Treat all parameters whose size is
7965         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
7966         stack checking is enabled.
7967         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
7968         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
7969         if generic stack checking is enabled.
7970         (expand_function_end): Adjust for new behaviour of flag_stack_check.
7971         * reload1.c (reload): Likewise.
7972         * stmt.c (expand_decl): Assert that all automatic variables have
7973         fixed size at this point and remove dead code.
7974         * flags.h (stack_check_type): New enumeration type.
7975         (flag_stack_check): Declare.
7976         * toplev.c (flag_stack_check): New global variable.
7977         * Makefile.in (opts.o): Add dependency on EXPR_H.
7978         (explow.o): Add dependency on except.h.
7979
7980 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
7981
7982         * config/avr/avr.c (avr_override_options): Reduce value of
7983         PARAM_INLINE_CALL_COST.
7984
7985 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
7986
7987         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
7988         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
7989         lieu of TYPE_MODE (type) throughout.
7990
7991 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
7992
7993         * config/arm/arm.c (add_minipool_backward_ref): Check for
7994         8-byte-aligned entries in second case of forcing insertion after a
7995         particular entry.  Change third case to avoid inserting
7996         non-8-byte-aligned entries before 8-byte-aligned ones.
7997
7998 2008-08-15  Richard Guenther  <rguenther@suse.de>
7999
8000         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
8001         strip components for unknown size accesses.
8002
8003 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
8004
8005         * config/s390/2097.md New file.
8006         * config/s390/s390.md ("z10prop" attribute): Define none,
8007         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
8008         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
8009         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
8010         possible values and apply them to insns as appropriate.
8011         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
8012         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
8013         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
8014         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
8015         ("bfp" mode attribute): Removed.  Every occurence replaced
8016         with <mode>.
8017         * config/s390/s390.c (struct "z10_cost"): Updated entries.
8018         * config/s390/2084.md (insn_reservation "x_itof"): Updated
8019         type attribute.
8020
8021 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8022
8023         PR c/28152
8024         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
8025         for keywords.
8026
8027 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
8028
8029         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
8030         additional argument. Support reduction when duplication is needed due
8031         to data-types of different sizes in the loop.
8032         (get_initial_def_for_induction): Fix printout.
8033         (vect_get_vec_def_for_stmt_copy): Support case where the
8034         vec_stmt_for_operand is a phi node.
8035         (vectorizable_reduction): Support reduction when duplication is needed
8036         due to data-types of different sizes in the loop.
8037         (vectorizable_call): Remove restriction to not vectorize in case we
8038         have data-types of different sizes in the loop.
8039         (vectorizable_conversion): Likewise.
8040         (vectorizable_operation): Likewise.
8041         (vectorizable_type_demotion): Likewise.
8042         (vectorizable_type_promotion): Likewise.
8043         (vectorizable_induction): Add restriction to not vectorize in case
8044         we have data-types of different sizes in the loop.
8045
8046 2008-08-14  Christophe Saout  <christophe@saout.de>
8047             Uros Bizjak  <ubizjak@gmail.com>
8048
8049         PR target/37101
8050         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
8051         (*vec_concatv2di_rex64_sse4_1): Ditto.
8052         (*vec_concatv2di_rex64_sse): Ditto.
8053
8054 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
8055
8056         PR middle-end/37103
8057         * fold-const.c (fold_widened_comparison): Do not allow
8058         sign changes that change the result even if shorter type
8059         is wider than arg1_unw's type.
8060
8061 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
8062
8063         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
8064         Skip if the multilib testing specifies -march that does not
8065         agree with the one specified in the testcase.
8066
8067 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
8070         zero extend SImode values being converted to TFmode before passing
8071         to libcalls.
8072
8073 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8074
8075         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8076         __PPU__ when targeting the Cell/B.E. PPU processor.
8077
8078 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
8079
8080         * gimple.h (gimple_call_set_chain): Accept SSA variables.
8081         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
8082         Rematerialize the static chain, if any.
8083         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
8084         static chain.
8085
8086 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
8087
8088         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
8089         (new_loc_descr): Likewise.
8090         (add_loc_descr): Likewise.
8091         (size_of_loc_descr): Likewise.
8092         (size_of_locs): Likewise.
8093         (output_loc_operands): Likewise.
8094         (output_loc_sequence): Likewise.
8095         (new_reg_loc_descr): New.
8096         (build_cfa_loc): Use it.
8097         (build_cfa_aligned_loc): Likewise.
8098         (one_reg_loc_descriptor): Likewise.
8099         (based_loc_descr): Likewise.
8100
8101 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8102
8103         PR 30551
8104         * doc/invoke.texi (Wmain): Update.
8105         * c-decl.c (start_decl): warn_main is only 0 or 1.
8106         (start_function): Likewise. Fix formatting.
8107         (finish_function): Delete redundant warning.
8108         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
8109         * c-opts (c_common_handle_option): -Wall only has effect if
8110         warn_main is uninitialized. OPT_Wmain is automatically
8111         handled. -pedantic also enables Wmain.
8112         (c_common_post_options): Handle all logic for Wmain here.
8113         * c-common.c (warn_main): Delete.
8114         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
8115         * c-common.h (warn_main): Delete.
8116
8117 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
8118
8119         PR middle-end/36701
8120         * expr.c (emit_group_store): Allocate stack temp with the
8121         largest alignment when copying from register to stack.
8122
8123 2008-08-13  Richard Guenther  <rguenther@suse.de>
8124
8125         * tree.h (maybe_fold_offset_to_address): Declare.
8126         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
8127         (ccp_fold): Handle pointer conversions the same as fold_stmt.
8128         Likewise for POINTER_PLUS_EXPR.
8129         (maybe_fold_offset_to_reference): Enable disabled code.
8130         (maybe_fold_offset_to_address): New function.
8131         (fold_stmt_r): Use it.
8132         (fold_gimple_assign): Likewise.
8133         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
8134         (gimplify_expr): Likewise.
8135
8136 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8137
8138         * toplev.h (pedwarn_at): Fix declaration.
8139
8140 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
8141
8142         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8143         LINK_SPEC): Use %R in -Y P argument.
8144
8145 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8146
8147         PR c/15236
8148         * diagnostic.c (pedwarn_at): New.
8149         * toplev.h (pedwarn_at): Declare.
8150         * c-tree.h (build_enumerator): Update declaration.
8151         * c-decl.c (finish_enum): Update comment.
8152         (build_enumerator): Take a location parameter. Give a pedwarn but do
8153         not perform any conversion.
8154         * c-parser.c (c_parser_enum_specifier): Set correct location for
8155         enumerator.
8156
8157 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8158
8159         PR 35635
8160         * c-common.c (conversion_warning): Use a switch. Ignore boolean
8161         expressions except for conversions to signed:1 bitfields. Handle
8162         COND_EXPR with constant operands.
8163
8164 2008-08-13  Richard Guenther  <rguenther@suse.de>
8165
8166         PR tree-optimization/15255
8167         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
8168         (struct oecount_s): New struct and VEC types.
8169         (cvec): New global.
8170         (oecount_hash): New function.
8171         (oecount_eq): Likewise.
8172         (oecount_cmp): Likewise.
8173         (zero_one_operation): New function.
8174         (build_and_add_sum): Likewise.
8175         (undistribute_ops_list): Perform un-distribution of multiplication
8176         and division on the chain of summands.
8177         (should_break_up_subtract): Also break up subtracts for factors.
8178         (reassociate_bb): Delete dead visited statements.
8179         Call undistribute_ops_list.  Re-sort and optimize if it did something.
8180         * passes.c (init_optimization_passes): Move DSE before
8181         reassociation.
8182         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
8183         PHI nodes.
8184
8185 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
8186
8187         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
8188
8189         * doc/invoke.texi: Revert unintended checkin.
8190
8191 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
8192
8193         PR libgomp/26165
8194         * gcc.c (include_spec_function): Tweak call to find_a_file.
8195
8196 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
8197
8198         PR middle-end/37014
8199         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
8200         and TRUTH_ORIF_EXPR.
8201         * dojump.c (do_jump): Likewise.
8202
8203         PR tree-optimization/37084
8204         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
8205         if id->regimplify, don't assume stmt is a cast assignment.
8206
8207 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
8208
8209         * final.c (final_scan_insn): Use app_enable/app_disable functions.
8210
8211 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8212
8213         PR bootstrap/37097
8214         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
8215         by last change.
8216
8217 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8218
8219         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
8220         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
8221
8222         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
8223         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
8224         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
8225         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
8226         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
8227
8228         * doc/tm.texi (Storage Layout): Remove documentation for
8229         TARGET_FLOAT_FORMAT.
8230
8231         * simplify-rtx.c (simplify_binary_operation_1): Replace
8232         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
8233
8234 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8235
8236         * real.h (struct real_format): New member has_sign_dependent_rounding.
8237         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
8238         spu_single_format, ieee_double_format, mips_double_format,
8239         motorola_double_format, ieee_extended_motorola_format,
8240         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8241         ieee_extended_intel_96_round_53_format, ibm_extended_format,
8242         mips_extended_format, ieee_quad_format, mips_quad_format,
8243         vax_f_format, vax_d_format, vax_g_format): Initialize it.
8244         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8245
8246         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
8247         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
8248         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
8249         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
8250         (ROUND_TOWARDS_ZERO): Likewise.
8251
8252         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
8253         (FLOAT_MODE_FORMAT): New macro.
8254         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
8255         (MODE_COMPOSITE_P): ... this new macro.
8256         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
8257         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
8258         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
8259
8260         * flags.h: Include "real.h".
8261
8262         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
8263         REAL_MODE_FORMAT_COMPOSITE_P.
8264         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
8265
8266         * doc/tm.texi (Storage Layout): Remove documentation of
8267         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
8268         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
8269         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
8270         they only apply to libgcc2.a.
8271
8272 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8273
8274         * config/spu/float_disf.c: New file.
8275         * config/spu/float_unsdisf.c: New file.
8276         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
8277         (LIB2FUNCS_EXCLUDE): Define.
8278
8279 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8280             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8281
8282         * real.h (struct real_format): New member round_towards_zero.
8283         * real.c (round_for_format): Respect fmt->round_towards_zero.
8284         (ieee_single_format, mips_single_format, motorola_single_format,
8285         spu_single_format, ieee_double_format, mips_double_format,
8286         motorola_double_format, ieee_extended_motorola_format,
8287         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8288         ieee_extended_intel_96_round_53_format, ibm_extended_format,
8289         mips_extended_format, ieee_quad_format, mips_quad_format,
8290         vax_f_format, vax_d_format, vax_g_format): Initialize it.
8291         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8292
8293         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
8294         real_format to choose rounding mode when calling MPFR functions.
8295         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
8296         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
8297
8298         * real.h (real_to_decimal_for_mode): Add prototype.
8299         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
8300         Respect target rounding mode when generating decimal representation.
8301         (real_to_decimal): New stub for backwards compatibility.
8302         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
8303         real_to_decimal_for_mode instead of real_to_decimal.
8304
8305         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
8306
8307 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8308             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8309
8310         * real.c (spu_single_format): New variable.
8311         * real.h (spu_single_format): Declare.
8312
8313         * config/spu/spu.c (spu_override_options): Install SFmode format.
8314         (spu_split_immediate): Use integer mode to operate on pieces of
8315         floating-point values in all cases.
8316
8317         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
8318         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
8319         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
8320
8321 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8322
8323         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
8324
8325 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8326
8327         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
8328
8329 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
8330
8331         PR c++/36688
8332         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
8333         on the VAR_DECL instead of TYPE_READONLY on its type.
8334
8335 2008-08-12  Ira Rosen  <irar@il.ibm.com>
8336
8337         * tree-vectorizer.c: Depend on langhooks.h.
8338         (supportable_widening_operation): Add two arguments. Support double
8339         type conversions.
8340         (supportable_narrowing_operation): Likewise.
8341         * tree-vectorizer.h (supportable_widening_operation): Add two
8342         arguments.
8343         (supportable_narrowing_operation): Likewise.
8344         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
8345         supportable_widening_operation with correct arguments.
8346         * tree-vect-transform.c (vectorizable_conversion): Likewise.
8347         (vectorizable_type_demotion): Support double type conversions.
8348         (vectorizable_type_promotion): Likewise.
8349         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
8350
8351 2008-08-11  Michael Matz  <matz@suse.de>
8352
8353         * i386/i386.c (override_options): Move initialisation from
8354         flag_schedule_insns_after_reload to here from ...
8355         (optimization_options): ... here.
8356
8357 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
8358
8359         PR rtl-optimization/36998
8360         * dwarf2out.c (compute_barrier_args_size_1,
8361         compute_barrier_args_size): Temporarily remove assertions.
8362
8363 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8364
8365         PR middle-end/20644
8366         * tree-ssa.c (struct walk_data): Add new flag
8367         warn_possibly_uninitialized.
8368         (warn_uninitialized_var): Use it.
8369         (warn_uninitialized_vars): New.
8370         (execute_early_warn_uninitialized): Call it.
8371         (execute_late_warn_uninitialized): Likewise.
8372
8373 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8374
8375         PR middle-end/36238
8376         * reload1.c (gen_reload): Guard calls to get_secondary_mem
8377         for memory subregs.
8378
8379 2008-08-09  Jan Hubicka  <jh@suse.cz>
8380
8381         PR target/37055
8382         * optabs.c (maybe_emit_unop_insn): Remove produced code if
8383         expansion failed.
8384         (expand_fix): Be prepared for expansion to fail.
8385         (expand_sfix_optab): Remove instructions if expansion failed.
8386
8387 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
8388
8389         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
8390         avr31 architecture.
8391         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
8392         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8393
8394 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8395
8396         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
8397         mips/t-libgcc-mips16 to tmake_file.
8398         * config/mips/mips-protos.h (mips_call_type): New enum.
8399         (mips_pic_base_register, mips_got_load): Declare.
8400         (mips_restore_gp): Take an rtx argument.
8401         (mips_use_pic_fn_addr_reg_p): Declare.
8402         (mips_expand_call): Replace the sibcall_p argument with
8403         a mips_call_type argument.  Add a lazy_p parameter.
8404         (mips_split_call): Declare.
8405         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
8406         (MIPS16_PIC_TEMP): Likewise.
8407         (reg_class): Delete M16_NA_REGS.
8408         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8409         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
8410         (mips_split_hi_p): Declare.
8411         * config/mips/mips.c (mips_split_hi_p): New array.
8412         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
8413         (mips_got_symbol_type_p): New function.
8414         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
8415         (mips16_stub_function_p): New function.
8416         (mips16_local_function_p): Likewise.
8417         (mips_use_pic_fn_addr_reg_p): Likewise.
8418         (mips_cannot_force_const_mem): Return false for HIGHs.
8419         Extend CONST_INT and symbolic handling to MIPS16, using
8420         mips_symbol_insns to check that the base symbol type is a
8421         legitimate constant.  Reject GOT-based constants if
8422         TARGET_MIPS16_PCREL_LOADS.
8423         (mips_const_insns): Check targetm.cannot_force_const_mem when
8424         decomposing a symbolic base and a large offset.
8425         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
8426         When calling a function that needs $25 from MIPS16 code,
8427         move the target address into $25 separately and add a USE
8428         to the call insn.
8429         (mips16_gp_pseudo_reg): Insert the initializer immediately
8430         before the first real insn.
8431         (mips_pic_base_register, mips_got_load): New functions.
8432         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
8433         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
8434         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
8435         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
8436         (mips_call_tls_get_addr): Update the call to mips_expand_call,
8437         also passing NULL_RTX rather than const0_rtx as the aux argument.
8438         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
8439         instead of TARGET_EXPLICIT_RELOCS.
8440         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
8441         (mips_load_call_address): Replace the sibcall_p argument with
8442         a mips_call_type argument.  Use mips_got_load.
8443         (mips16_local_alias): New structure.
8444         (mips16_local_aliases): New variable.
8445         (mips16_local_aliases_hash): New function.
8446         (mips16_local_aliases_eq): Likewise.
8447         (mips16_local_alias): Likewise.
8448         (mips16_stub_function): Likewise.
8449         (mips16_build_function_stub): Create a local alias for the target
8450         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
8451         .cpload directive and an R_MIPS_NONE relocation for the target
8452         function, then load the alias rather than the function itself.
8453         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
8454         (mips16_copy_fpr_return_value): Use mips16_stub_function and
8455         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
8456         (mips16_build_call_stub): Replace the FN parameter with an
8457         FN_PTR parameter.  Force the address into a register if it
8458         isn't a call_insn_operand; don't rely on the caller to do this.
8459         If a call to a locally-defined and locally-binding MIPS16
8460         function must be made indirectly, redirect the call to the
8461         function's local alias.  Use mips16_stub_function_p,
8462         mips16_stub_function, mips_expand_call and use_reg.
8463         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
8464         Use explicit %hi and %lo accesses where possible.
8465         Use MIPS_CALL to generate the correct code form of a
8466         jal instruction.  Add clobbers of $18 instead of uses.
8467         Update the call to mips_emit_call_insn.
8468         (mips_expand_call): Replace the SIBCALL_P argument with a
8469         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
8470         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
8471         allowing it to modify the call address.  Update the calls to
8472         mips_load_call_address and mips_emit_call_insn.
8473         (mips_split_call): New function.
8474         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
8475         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
8476         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
8477         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
8478         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
8479         if TARGET_MIPS16.
8480         (mips_cprestore_slot): New function.
8481         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
8482         and use mips_cprestore_slot.
8483         (mips_output_function_prologue): Handle TARGET_MIPS16 for
8484         LOADGP_OLDABI.
8485         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
8486         then use a copygp_mips16 instruction to set up $28.
8487         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
8488         (mips16_lay_out_constants): Call split_all_insns_noflow.
8489         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
8490         false if TARGET_MIPS16.
8491         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
8492         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
8493         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
8494         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
8495         MIPS16 code.  Allow MIPS16 o32 PIC.
8496         (mips_override_options): Allow MIPS16 o32 PIC.
8497         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
8498         after reload if TARGET_USE_GOT.
8499         (UNSPEC_COPYGP): New constant.
8500         (length): Use a default length of 8 for MIPS16 GOT loads.
8501         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
8502         (*got_page<mode>): Check mips_split_hi_p.
8503         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
8504         (unspec_got<mode>, unspec_call<mode>): New expanders.
8505         (load_got<mode>, load_call<mode>): Remove the length attributes.
8506         Use a got attribute instead of a type attribute.
8507         (copygp_mips16): New insn.
8508         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
8509         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
8510         (sibcall, sibcall_value, call, call_value): Update the calls
8511         to mips_expand_call.
8512         (call_internal, call_value_internal): Use mips_split_call.
8513         (call_value_multiple_internal): Likewise.
8514         (call_split): Move after call_internal (the insn it is split from).
8515         (call_internal_direct, call_value_internal_direct): Turn into
8516         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
8517         (call_direct_split, call_value_direct_split): New patterns.
8518         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
8519         and use M16_REGS instead of M16_NA_REGS.
8520         * config/mips/predicates.md (const_call_insn_operand): Replace
8521         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
8522         mips_use_pic_fn_addr_reg_p check.
8523         (move_operand): Reject HIGHs if mips_split_hi_p.
8524         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
8525         (__mips16_floatunsisf): Inline __mips16_floatsisf.
8526         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
8527         * config/mips/libgcc-mips16.ver: New file.
8528         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
8529         $(srcdir)/config/mips/libgcc-mips16.ver.
8530
8531 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8532
8533         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
8534         in file.
8535         (mips_unspec_address, mips_unspec_offset_high): Likewise.
8536         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
8537         (mips16_cfun_returns_in_fpr_p): Likewise.
8538
8539 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8540
8541         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
8542         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
8543         rather than 4 to PC.
8544
8545 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8546
8547         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
8548         (FUNCTION_PROFILER): Save the static chain pointer into $2
8549         beforehand and restore it aftewards.
8550         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
8551         address directly into $25 and call the function through $25;
8552         do not clobber $3.  Pad the DImode version to cover the space
8553         left by the deleted $25 <- $3 move.
8554         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
8555         the removal of the $25 <- $3 move.
8556         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
8557         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
8558
8559 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8560             Daniel Jacobowitz  <dan@codesourcery.com>
8561
8562         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
8563         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
8564         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
8565         * config/mips/mips.c (mips_start_function_definition): New function.
8566         (mips_end_function_definition): Likewise.
8567         (mips_output_function_prologue): Use mips_start_function_definition.
8568         (mips_output_function_epilogue): Use mips_end_function_definition.
8569         (build_mips16_function_stub): Use mips_start_function_definition
8570         and mips_end_function_definition.
8571         (build_mips16_call_stub): Likewise.
8572
8573 2008-08-09  Richard Guenther  <rguenther@suse.de>
8574
8575         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
8576         * gimple.h (gimple_call_fn): Adjust comment.
8577         (gimple_call_set_fndecl): New function.
8578         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
8579         longer having bare FUNCTION_DECL operand.
8580         (gimple_call_return_type): Likewise.
8581         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
8582
8583         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
8584         (gimple_mod_pow2): Likewise.
8585         (gimple_mod_subtract): Likewise.
8586         (gimple_ic): Likewise.
8587         (gimple_stringop_fixed_value): Likewise.
8588         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
8589         longer having bare FUNCTION_DECL operand.
8590         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
8591         * omp-low.c (optimize_omp_library_calls): Likewise.
8592         * cgraphunit.c (update_call_expr): Likewise.
8593         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
8594         (execute_convert_to_rsqrt): Likewise.
8595         * cfgexpand.c (gimple_to_tree): Simplify.
8596         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
8597         bare FUNCTION_DECL operand.
8598         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
8599         (convert_gimple_call): Use gimple_call_fndecl.
8600         * c-common.c (c_warn_unused_result): Likewise.
8601
8602 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8603
8604         PR c/17880
8605         * c-typeck.c (digest_init): Call verify_sequence_points from here.
8606         (c_finish_return): Likewise.
8607         (c_start_case): Likewise.
8608         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
8609         * c-parser.c (c_parser_condition): New. Call
8610         verify_sequence_points.
8611         (c_parser_paren_condition): Call c_parser_condition.
8612         (c_parser_for_statement): Call c_parser_condition.
8613
8614 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8615
8616         PR 36901
8617         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
8618         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
8619         Moved from diagnostic.h
8620         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
8621         DK_PERMERROR.
8622         (emit_diagnostic): New.
8623         (warning0, pedwarn0): Delete.
8624         (warning, warning_at, pedwarn, permerror): Return bool.
8625         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
8626         Moved to diagnostic.c.
8627         (struct diagnostic_context): Use correct type for
8628         classify_diagnostic.
8629         (diagnostic_report_diagnostic): Update declaration.
8630         (emit_diagnostic): Declare.
8631         * errors.c (warning): Return bool.
8632         * errors.h (warning): Update declaration.
8633         * toplev.h (warning0, pedwarn0): Delete.
8634         (warning, warning_at, pedwarn, permerror): Return bool.
8635         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
8636         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
8637         inform. Update all calls.
8638         (diagnose_mismatched_decls): Check return value of warning/pedwarn
8639         before giving informative note.
8640         (implicit_decl_warning): Likewise.
8641         * c-typeck.c (build_function_call): Likewise.
8642         * tree-sssa.c (warn_uninit): Likewise.
8643         * builtins.c (gimplify_va_arg_expr): Likewise.
8644
8645 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8646
8647         PR 7651
8648         * doc/invoke.texi (-Wextra): Move warning from here...
8649         (-Wuninitialized): ... to here.
8650
8651 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8652
8653         PR 28875
8654         * flags.h (set_Wunused): Delete
8655         * toplev.c (process_options): Handle Wunused flags here.
8656         * opts.c (maybe_warn_unused_parameter): Delete.
8657         (common_handle_option): Replace set_Wunused by warn_unused.
8658         (set_Wextra): Do not handle Wunused-parameter here.
8659         (set_Wunused): Delete.
8660         * c-opts.c (c_common_handle_option): Replace set_Wunused by
8661         warn_unused.
8662         * common.opt (Wunused): Add Var and Init.
8663         (Wunused-function): Likewise.
8664         (Wunused-label): Likewise.
8665         (Wunused-parameter): Likewise.
8666         (Wunused-value): Likewise.
8667         (Wunused-variable): Likewise.
8668
8669 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
8670
8671         * doc/invoke.texi: Add cpu_type power7.
8672         * config.in (HAVE_AS_VSX): New.
8673         * config.gcc: Add cpu_type power7.
8674         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
8675         VSX instructions.
8676         * configure: Regenerate.
8677         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
8678         power5.
8679         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
8680         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
8681         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
8682
8683 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
8684
8685         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
8686         type to vectorize.builtin_conversion.
8687         (vectorizable_conversion): Likewise.
8688         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
8689         integral type as input.
8690         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
8691         FIX_TRUNC_EXPR.
8692         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
8693         and ALTIVEC_BUILTIN_VCTSXS.
8694         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
8695         formatting.
8696
8697 2008-08-08  Richard Guenther  <rguenther@suse.de>
8698
8699         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
8700         (surely_varying_stmt_p): Calls are varying only if they are
8701         non-builtin and not indirect or have no result.
8702         (ccp_fold): Re-instantiate code before the tuples merge.
8703
8704 2008-08-08  Richard Guenther  <rguenther@suse.de>
8705
8706         PR tree-optimization/37056
8707         * gimple.h (gimple_assign_rhs_class): New helper function.
8708         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
8709         unary operations properly.
8710
8711 2008-08-07  Jan Hubicka  <jh@suse.cz>
8712
8713         * i386.h (ix86_size_cost): Declare.
8714         (ix86_cur_cost): New function macro.
8715         * i386.md (peepholes expanding size and splitters): Predicate by
8716         optimize_insn_for_speed_p.
8717         (peepholes reduce size and splitters): Predicate by
8718         optimize_insn_for_size_p.
8719         * i386.c (ix86_size_cost): Rename from ...
8720         (size_cost): This one.
8721         (override_options): Update.
8722         (decide_alg): Likewise.
8723         (ix86_expand_clear): Use RTL profile.
8724         (ix86_pad_returns): Use RTL profile.
8725
8726 2008-08-07  Jan Hubicka  <jh@suse.cz>
8727
8728         * recog.c (split_all_insns): Set RTL profile
8729         (peephole2_optimize): Likewise.
8730         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8731         * combine.c (combine_instructions): Likewise.
8732
8733 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8734
8735         * c-common.c (c_common_reswords): Also warn about keyword "bool".
8736
8737 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
8738
8739         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
8740         value in a6 after the set_frame_ptr insn.
8741
8742 2008-08-07  Richard Henderson  <rth@redhat.com>
8743
8744         PR debug/37033
8745         * gcc.c (cpp_options): Pass along -g*.
8746
8747 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * config/arm/arm.c (output_move_neon): Update comment describing
8750         big-endian vector layout.
8751         (arm_assemble_integer): Do not handle big-endian NEON vectors
8752         specially.
8753         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
8754         neon_vget_lane<mode>_sext_internal,
8755         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
8756         element indices for big-endian.
8757
8758 2008-08-07  Richard Henderson  <rth@redhat.com>
8759
8760         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
8761         * configure, config.in: Rebuild.
8762         * debug.h (dwarf2out_do_cfi_asm): Declare.
8763         * c-cppbuiltin.c (c_cpp_builtins): Use it.
8764         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
8765         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
8766         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
8767
8768 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
8769
8770         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8771         movv2si_internal): Combine into mov<mode>_internal.
8772         (movv2si_internal_2): Remove.
8773
8774 2008-08-07  Jan Hubicka  <jh@suse.cz>
8775
8776         PR target/37048
8777         * i386.md (single stringop patterns): Enable unconditionally.
8778
8779 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8780
8781         PR target/36992
8782         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
8783
8784         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
8785         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
8786
8787         * config/i386/sse.md (sse2_movq128): New.
8788
8789         * doc/extend.texi: Document __builtin_ia32_movq128.
8790
8791 2008-08-07  Richard Guenther  <rguenther@suse.de>
8792
8793         PR middle-end/37042
8794         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
8795         pointers can access anything.
8796
8797 2008-08-06  Jan Hubicka  <jh@suse.cz>
8798
8799         * optabs.c (emit_unop_insn): Break out to ...
8800         (maybe_emit_unop_insn): ... this one.
8801         (expand_sfix_optab): Use maybe variant.
8802         * optabs.h (maybe_emit_unop_insn): Declare.
8803
8804         * i386.md (mov0 patterns): Enable by default.
8805         (FP conversion expanders): Disable expansion of code expanding
8806         sequences when instruction should be optimized for size.
8807         (single strinop patterns): Enable when optimizing for size.
8808         (string expanders): Disable expanding of code expanding sequences
8809         when optimizning instruction for size.
8810         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
8811         per BB basis.
8812         (ix86_fp_comparison_sahf_cost): Likewise.
8813         (ix86_expand_branch): Likewise.
8814         (ix86_expand_ashl_const): Likewise.
8815         (ix86_split_ashl): Likewise.
8816         (ix86_expand_strlen): Likewise.
8817         (ix86_emit_fp_unordered_jump): Likewie.
8818
8819 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8820
8821         * c-common.c: Fix typo.
8822         (c_common_reswords): Activate more C++ keyword warnings.
8823
8824         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
8825
8826 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8827
8828         PR 26785
8829         * diagnostic.c (permerror_at): New.
8830         * toplev.h (permerror_at): Declare.
8831
8832 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
8833             Ira Rosen  <irar@il.ibm.com>
8834
8835         * tree-vect-transform.c (vect_model_simple_cost): Return
8836         immediately if stmt is pure SLP.
8837         (vect_model_store_cost): Ditto.
8838         (vect_model_load_cost): Ditto.
8839         (vectorizable_store): Remove PURE_SLP check before call
8840         to vect_model_store_cost.
8841         (vect_model_store_cost): When checking whether stmt describe
8842         strided access, add a check that it is not slp_node.
8843
8844 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8845
8846         PR 8715
8847         * c-common.c (warn_for_sign_compare): New. Handle separately the
8848         case that 'constant' is zero.
8849         * c-typeck.c (build_binary_op): Move code to c-common.c
8850
8851 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8852
8853         * config/alpha/alpha.c (alpha_preferred_reload_class,
8854         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
8855         alpha_output_mi_thunk_osf): Avoid C++ keywords.
8856         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
8857         * config/arm/arm.md: Likewise.
8858         * config/avr/avr-protos.h (preferred_reload_class,
8859         test_hard_reg_class, avr_simplify_comparison_p,
8860         out_shift_with_cnt, class_max_nregs): Likewise.
8861         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
8862         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
8863         preferred_reload_class, test_hard_reg_class): Likewise.
8864         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
8865         bfin_memory_move_cost, bfin_secondary_reload,
8866         bfin_output_mi_thunk): Likewise.
8867         * config/crx/crx.c (crx_secondary_reload_class,
8868         crx_memory_move_cost): Likewise.
8869         * config/frv/frv-protos.h (frv_secondary_reload_class,
8870         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
8871         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
8872         frv_secondary_reload_class, frv_class_likely_spilled_p,
8873         frv_class_max_nregs): Likewise.
8874         * config/h8300/h8300.c (h8300_classify_operand,
8875         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
8876         Likewise.
8877         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
8878         * config/ia64/ia64.c (ia64_preferred_reload_class,
8879         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
8880         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
8881         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
8882         Likewise.
8883         * config/m68hc11/m68hc11.c (preferred_reload_class,
8884         m68hc11_memory_move_cost): Likewise.
8885         * config/mcore/mcore.c (mcore_secondary_reload_class,
8886         mcore_reload_class): Likewise.
8887         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
8888         mips_class_max_nregs, mips_cannot_change_mode_class,
8889         mips_preferred_reload_class, mips_secondary_reload_class,
8890         mips_output_mi_thunk): Likewise.
8891         * config/mmix/mmix.c (mmix_preferred_reload_class,
8892         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
8893         Likewise.
8894         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
8895         Likewise.
8896         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
8897         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
8898         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8899         * config/rs6000/rs6000.c (paired_expand_vector_init,
8900         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
8901         compare_section_name, rs6000_memory_move_cost): Likewise.
8902         * config/s390/s390.c (s390_emit_compare_and_swap,
8903         s390_preferred_reload_class, s390_secondary_reload,
8904         legitimize_pic_address, legitimize_tls_address,
8905         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
8906         s390_class_max_nregs): Likewise.
8907         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8908         * config/s390/s390.md: Likewise.
8909         * config/score/score-protos.h (score_secondary_reload_class,
8910         score_preferred_reload_class): Likewise.
8911         * config/score/score.c (score_preferred_reload_class,
8912         score_secondary_reload_class): Likewise.
8913         * config/score/score3.c (score3_output_mi_thunk,
8914         score3_preferred_reload_class, score3_secondary_reload_class,
8915         score3_hard_regno_mode_ok): Likewise.
8916         * config/score/score3.h (score3_preferred_reload_class,
8917         score3_secondary_reload_class): Likewise.
8918         * config/score/score7.c (score7_output_mi_thunk,
8919         score7_preferred_reload_class, score7_secondary_reload_class,
8920         score7_hard_regno_mode_ok): Likewise.
8921         * config/score/score7.h (score7_preferred_reload_class,
8922         score7_secondary_reload_class): Likewise.
8923         * config/sh/sh.c (prepare_move_operands, output_far_jump,
8924         output_branchy_insn, add_constant, gen_block_redirect,
8925         sh_insn_length_adjustment, sh_cannot_change_mode_class,
8926         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
8927         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8928         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
8929         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
8930         xstormy16_preferred_reload_class): Likewise.
8931         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
8932         xtensa_expand_atomic, override_options,
8933         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
8934         Likewise.
8935         * reorg.c (try_merge_delay_insns): Likewise.
8936         * tree.c (merge_dllimport_decl_attributes): Likewise.
8937
8938         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
8939
8940 2008-08-06  Michael Matz  <matz@suse.de>
8941
8942         * Makefile.in (write_entries_to_file): Quote words.
8943         * gengtype.c: (read_input_line): Skip over leading white-space.
8944
8945 2008-08-06  Marc Gauthier  <marc@tensilica.com>
8946
8947         * config.gcc: Match more processor names for Xtensa.
8948         * configure.ac: Likewise.
8949         * doc/install.texi (Specific): Likewise.
8950         * configure: Regenerate.
8951
8952 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8953
8954         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
8955         * calls.c (avoid_likely_spilled_reg): Likewise.
8956         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8957         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
8958         * config/i386/i386.c (ix86_expand_special_args_builtin,
8959         ix86_secondary_reload): Likewise.
8960         * except.c (struct eh_region, gen_eh_region_catch,
8961         remove_unreachable_regions, duplicate_eh_regions,
8962         assign_filter_values, build_post_landing_pads,
8963         sjlj_find_directly_reachable_regions, remove_eh_handler,
8964         reachable_next_level, foreach_reachable_handler,
8965         can_throw_internal_1, can_throw_external_1,
8966         collect_one_action_chain): Likewise.
8967         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
8968         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
8969         * function.c (update_temp_slot_address, instantiate_new_reg,
8970         instantiate_virtual_regs_in_rtx,
8971         instantiate_virtual_regs_in_insn): Likewise.
8972         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
8973         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
8974         gimplify_cleanup_point_expr): Likewise.
8975         * ipa-cp.c (ipcp_lattice_changed): Likewise.
8976         * passes.c (next_pass_1): Likewise.
8977         * print-tree.c (print_node_brief, print_node): Likewise.
8978         * profile.c (branch_prob): Likewise.
8979         * tree-dump.c (dump_register): Likewise.
8980         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
8981         Likewise.
8982         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
8983         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
8984         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
8985         copy_arguments_for_versioning, copy_static_chain): Likewise.
8986         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
8987         add_new_name_mapping, register_new_name_mapping): Likewise.
8988         * tree-mudflap.c (mf_xform_derefs): Likewise.
8989         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
8990         get_init_expr, combine_chains): Likewise.
8991         * tree-pretty-print.c (dump_generic_node): Likewise.
8992         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
8993         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
8994         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
8995         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
8996
8997 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8998
8999         PR middle-end/37010
9000         * calls.c (expand_call): Use the biggest preferred stack
9001         boundary.
9002
9003 2008-08-06  Michael Matz  <matz@suse.de>
9004
9005         PR target/36613
9006         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
9007         for reused reload, instead of overwriting them.
9008
9009 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9010
9011         PR middle-end/37009
9012         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
9013         for incoming stack boundary.
9014
9015         * function.c (assign_parm_find_entry_rtl): Update
9016         parm_stack_boundary.
9017
9018         * function.h (rtl_data): Add parm_stack_boundary.
9019
9020         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
9021         parm_stack_boundary for incoming stack boundary.
9022
9023 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
9024
9025         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
9026         for unrepresentable subregs or treat them as equal to other regs
9027         or subregs with the same register number.
9028
9029 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
9030
9031         PR middle-end/35432
9032         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
9033         if want_value.
9034
9035 2008-08-06  Jan Hubicka  <jh@suse.cz>
9036
9037         * predict.c (maybe_hot_frequency_p): When profile is absent, all
9038         frequencies might be hot.
9039
9040 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
9041
9042         * reload.c (find_reloads): Force constants into literal pool
9043         also if they are wrapped in a SUBREG.
9044
9045 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9046
9047         PR target/35659
9048         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
9049         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
9050         Don't allow predicated instructions for data speculation.
9051         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
9052         declaration.
9053
9054 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9055
9056         * haifa-sched.c (extend_global): Split to extend_global_data and
9057         extend_region_data.  Update all uses.
9058         (extend_all): Rename to extend_block_data.
9059
9060 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9061
9062         * sched-rgn.c (new_ready): Check if instruction can be
9063         speculatively scheduled before attempting speculation.
9064         (debug_rgn_dependencies): Remove wrongful assert.
9065
9066 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
9067
9068         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
9069
9070 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
9071
9072         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
9073         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
9074         va_size, and type_size.
9075
9076 2008-08-04  Jason Merrill  <jason@redhat.com>
9077
9078         PR c++/37016
9079         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
9080         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
9081
9082 2008-08-05  Richard Henderson  <rth@redhat.com>
9083
9084         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
9085         * configure: Rebuild.
9086
9087 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9088
9089         PR tree-opt/37024
9090         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
9091         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
9092         is a conversion.
9093
9094 2008-08-05  Richard Henderson  <rth@redhat.com>
9095
9096         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
9097         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
9098         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
9099         * common.opt (fdwarf2-cfi-asm): New.
9100         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
9101         * config.in, configure: Rebuild.
9102         * dwarf2asm.c (dw2_asm_output_data_raw): New.
9103         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
9104         New.
9105         (dw2_force_const_mem): Externalize.
9106         * dwarf2asm.h: Update.
9107         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
9108         generate a real label.
9109         (output_cfi_directive): New.
9110         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
9111         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
9112         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
9113         and .cfi_lsda.
9114         (dwarf2out_end_epilogue): Emit .cfi_endproc.
9115         (output_loc_operands_raw, output_loc_sequence_raw): New.
9116         (output_cfa_loc_raw): New.
9117
9118 2008-08-05  Paul Brook  <paul@codesourcery.com>
9119
9120         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
9121         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
9122         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
9123         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
9124         * config/arm/arm.h (TARGET_VFPD32): Define.
9125         (TARGET_VFP3): Use TARGET_VFPD32.
9126         (fputype): Add FPUTYPE_VFP3D16.
9127         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
9128         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
9129         * config/arm/arm-cores.def: Add cortex-r4f.
9130         * config/arm/arm-tune.md: Regenerate.
9131
9132 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9133
9134         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
9135         Reword some comments throughout the file.
9136
9137         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
9138         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
9139         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
9140         MFC_MIN_DMA_LIST_ELEMENTS.
9141         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
9142         MFC_MAX_DMA_LIST_ELEMENTS.
9143
9144         (MFC_START_ENABLE): Remove PPU-only define.
9145         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
9146         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
9147
9148         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
9149         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
9150         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
9151         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
9152         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
9153         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
9154         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
9155
9156         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
9157         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
9158         (mfc_sdcrt, mfc_sdcrtst): Likewise.
9159         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
9160
9161         (spu_read_machine_status): Fix typo.
9162
9163 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9164
9165         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
9166         SUBREG of multi-word hard register.
9167         * config/spu/spu.c (valid_subreg): Likewise.
9168         (adjust_operand): Handle SUBREGs of multi-word hard registers.
9169
9170 2008-08-04  Richard Guenther  <rguenther@suse.de>
9171
9172         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
9173         the candidate with the stripped base if that base is different
9174         from the original base even for offset zero.
9175
9176 2008-08-04  Richard Guenther  <rguenther@suse.de>
9177
9178         PR middle-end/36691
9179         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
9180         check for no_overflow.
9181
9182 2008-08-04  Richard Guenther  <rguenther@suse.de>
9183
9184         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
9185
9186 2008-08-04  Paul Brook  <paul@codesourcery.com>
9187
9188         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
9189         (arm_order_regs_for_local_alloc): New function.
9190         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
9191         prototype.
9192         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
9193
9194 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9195
9196         PR target/37012
9197         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
9198         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
9199         (ix86_expand_epilogue): Likewise.
9200
9201 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9202
9203         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
9204         in comments.
9205
9206 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
9207
9208         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
9209         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
9210         (*movv2sf_internal_rex64): Ditto.
9211
9212 2008-08-03  Jan Hubicka  <jh@suse.cz>
9213
9214         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
9215         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
9216         * expmed.c (expand_smod_pow2): Likewise.
9217
9218 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
9219
9220         PR target/36992
9221         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
9222         alternative 0 of operand 1.
9223         (*vec_concatv2di_rex64_sse): Ditto.
9224         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
9225         of operand 1.
9226         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
9227         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
9228         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
9229         (*movv2sf_internal_rex64): Ditto.
9230
9231 2008-08-02  Richard Guenther  <rguenther@suse.de>
9232
9233         PR target/35252
9234         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
9235         (ssedoublesizemode): New mode attribute.
9236         (sse_shufps): Call gen_sse_shufps_v4sf.
9237         (sse_shufps_1): Macroize.
9238         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
9239         (sse2_shufpd_1): Macroize.
9240         (vec_extract_odd, vec_extract_even): New expanders.
9241         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
9242         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
9243         * i386.c (ix86_expand_vector_init_one_nonzero): Call
9244         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
9245         (ix86_expand_vector_set): Likewise.
9246         (ix86_expand_reduc_v4sf): Likewise.
9247
9248 2008-08-01  Doug Kwan  <dougkwan@google.com>
9249
9250         * matrix-reorg.c: Re-enable all code.
9251         (struct malloc_call_data): Change CALL_STMT to gimple type.
9252         (collect_data_for_malloc_call): Tuplify.
9253         (struct access_site_info): Change STMT to gimple type.
9254         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
9255         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
9256         (struct free_info): Change STMT to gimple type.
9257         (struct matrix_access_phi_node):  Change PHI to gimple type.
9258         (get_inner_of_cast_expr): Remove.
9259         (may_flatten_matrices_1): Tuplify.
9260         (may_flatten_matrices): Ditto.
9261         (mark_min_matrix_escape_level): Ditto.
9262         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
9263         (ssa_accessed_in_call_rhs): New
9264         (ssa_accessed_in_assign_rhs): New
9265         (record_access_alloc_site_info): Tuplify.
9266         (add_allocation_site): Ditto.
9267         (analyze_matrix_allocation_site): Ditto.
9268         (analyze_transpose): Ditto.
9269         (get_index_from_offset): Ditto.
9270         (update_type_size): Ditto.
9271         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
9272         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
9273         (analyze_accesses_for_phi_node): Tuplify.
9274         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
9275         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
9276         (analyze_matrix_accesses): Tuplify.
9277         (check_var_data): New call-back type for check_var_notmodified_p.
9278         (check_var_notmodified_p): Tuplify and use call-back struct to
9279         return statement found.
9280         (can_calculate_expr_before_stmt): Factor out statement related code
9281         into ...
9282         (can_calculate_stmt_before_stmt): New.
9283         (check_allocation_function): Tuplify.
9284         (find_sites_in_func): Ditto.
9285         (record_all_accesses_in_func): Ditto.
9286         (transform_access_sites): Ditto.
9287         (transform_allocation_sites): Ditto.
9288         (matrix_reorg): Re-enable.
9289         (gate_matrix_reorg): Re-enable.
9290
9291 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
9292
9293         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
9294         for labels for which it hasn't been set yet.  If it has been set,
9295         stop walking insns and continue with next worklist item.
9296         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
9297         if the only BARRIER is at the very end of a function.
9298
9299 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9300
9301         * cfgexpand.c (expand_stack_alignment): Assert that
9302         stack_realign_drap and drap_rtx must match.
9303
9304         * function.c (instantiate_new_reg): If DRAP is used to realign
9305         stack, replace virtual_incoming_args_rtx with internal arg
9306         pointer.
9307
9308 2008-08-01  Richard Guenther  <rguenther@suse.de>
9309
9310         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
9311         loop information only if we initialized it.
9312         (execute_pre): Call fini_pre with in_fre.
9313         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
9314         if we do not unroll because we hit max-completely-peeled-insns.
9315         Use our estimation for consistency, do allow shrinking.
9316
9317 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9318
9319         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
9320         with MIN_STACK_BOUNDARY.
9321         (ix86_update_stack_boundary): Likewise.
9322         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
9323         STACK_BOUNDARY.
9324
9325         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
9326         (MIN_STACK_BOUNDARY): This.
9327
9328 2008-08-01  Richard Guenther  <rguenther@suse.de>
9329
9330         PR middle-end/36997
9331         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
9332
9333 2008-08-01  Richard Guenther  <rguenther@suse.de>
9334
9335         PR tree-optimization/36988
9336         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
9337         do not matter if that doesn't change volatile qualification.
9338
9339 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
9340
9341         * configure.ac: Do not generate libada-mk.  Do not subst
9342         host_cc_for_libada.
9343         * libada-mk.in: Remove.
9344         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
9345         * configure: Regenerate.
9346
9347 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
9348
9349         * tree-pass.h: Added comment about not dumping passes with name
9350         starting with star in struct opt_pass.
9351         * passes.c (register_dump_files_1): Don't do dump for a pass with
9352         name starting with star.
9353         * doc/passes.texi (Pass manager): Mention pass names and special
9354         meaning of star prefix to avoid dump.
9355
9356 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
9357
9358         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
9359         to MIPS64r2.
9360         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
9361         (ISA_MIPS64R2): New macro.
9362         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
9363         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
9364         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
9365         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
9366         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
9367         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
9368         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
9369         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
9370         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
9371         Move up to keep list alphabetically sorted.
9372         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
9373         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
9374         processor.
9375         * doc/invoke.texi (MIPS Options): Add -mips64r2.
9376         (-march=@var{arch}): Add mips64r2.
9377
9378 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
9381
9382 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
9383
9384         * expr.c (expand_assignment): Check for complete type.
9385
9386 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9387
9388         PR debug/36977
9389         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
9390
9391         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
9392         for stack alignment.
9393
9394         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
9395
9396 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9397
9398         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
9399         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
9400
9401 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
9402
9403         PR rtl-optimization/36419
9404         * dwarf2out.c (barrier_args_size): New variable.
9405         (compute_barrier_args_size, compute_barrier_args_size_1): New
9406         functions.
9407         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
9408         if not called yet in the current function, use barrier_args_size
9409         array to find the new args_size value.
9410         (dwarf2out_frame_debug): Free and clear barrier_args_size.
9411
9412 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9413
9414         PR debug/36980
9415         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
9416         rule 19.
9417
9418 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
9419
9420         PR debug/36976
9421         * dwarf2out.c (dwarf2out_args_size_adjust): New.
9422         (dwarf2out_stack_adjust): Use it.
9423         (dwarf2out_frame_debug_expr): Likewise.
9424
9425 2008-07-31  Richard Guenther  <rguenther@suse.de>
9426
9427         PR tree-optimization/36978
9428         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
9429         the generated condition.
9430
9431 2008-07-31  Richard Guenther  <rguenther@suse.de>
9432
9433         * passes.c (init_optimization_passes): Always call
9434         pass_early_warn_uninitialized.
9435         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
9436         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
9437         * doc/passes.texi (Warn for uninitialized variables): Adjust.
9438
9439 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
9440
9441         PR c/36970
9442         * builtins.c (maybe_emit_free_warning): New function.
9443         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
9444         maybe_emit_free_warning for BUILT_IN_FREE.
9445
9446         PR debug/36278
9447         * dwarf2out.c (get_context_die): New function.
9448         (force_decl_die, force_type_die): Use it.
9449         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
9450         returns NULL, force generation of DW_TAG_typedef and put that into
9451         DW_AT_import.
9452
9453         PR preprocessor/36649
9454         * c-pch.c (c_common_read_pch): Save and restore
9455         line_table->trace_includes across PCH restore.
9456
9457 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
9458
9459         PR ada/36554
9460         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
9461
9462 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
9463
9464         PR 36974
9465         * final.c (call_from_call_insn): Handle COND_EXEC.
9466
9467 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9468
9469         * builtins.c (std_gimplify_va_arg_expr): Replace
9470         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
9471         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9472
9473 2008-07-30  Joey Ye  <joey.ye@intel.com>
9474             H.J. Lu  <hongjiu.lu@intel.com>
9475
9476         * builtins.c (expand_builtin_setjmp_receiver): Replace
9477         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
9478         (expand_builtin_apply_args_1): Likewise.
9479         (expand_builtin_longjmp): Need DRAP for stack alignment.
9480         (expand_builtin_apply): Likewise.
9481
9482         * caller-save.c (setup_save_areas): Call assign_stack_local_1
9483         instead of assign_stack_local to allow alignment reduction.
9484
9485         * calls.c (emit_call_1): Need DRAP for stack alignment if
9486         return pops.
9487         (expand_call): Replace virtual_incoming_args_rtx with
9488         crtl->args.internal_arg_pointer.
9489         * stmt.c (expand_nl_goto_receiver): Likewise.
9490
9491         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
9492         alignment and store to stack_alignment_estimated and
9493         max_used_stack_slot_alignment.
9494         (expand_one_var): Likewise.
9495         (expand_stack_alignment): New function.
9496         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
9497         and stack_alignment_estimated fields in rtl_data.  Call
9498         expand_stack_alignment at end.
9499
9500         * defaults.h (INCOMING_STACK_BOUNDARY): New.
9501         (MAX_STACK_ALIGNMENT): Likewise.
9502         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
9503         (SUPPORTS_STACK_ALIGNMENT): Likewise.
9504
9505         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
9506         stack alignment when generating virtual registers.
9507
9508         * function.c (assign_stack_local): Renamed to ...
9509         (assign_stack_local_1): This.  Add a parameter to indicate
9510         if it is OK to reduce alignment.
9511         (assign_stack_local): Use it.
9512         (instantiate_new_reg): Instantiate virtual incoming args rtx
9513         to vDRAP if stack realignment and DRAP is needed.
9514         (assign_parms): Collect parameter/return type alignment and
9515         contribute to stack_alignment_estimated.
9516         (locate_and_pad_parm): Likewise.
9517         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
9518         with crtl->args.internal_arg_pointer.
9519
9520         * function.h (rtl_data): Add new field drap_reg,
9521         max_used_stack_slot_alignment, stack_alignment_estimated,
9522         stack_realign_needed, need_drap, stack_realign_processed and
9523         stack_realign_finalized.
9524         (stack_realign_fp): New macro.
9525         (stack_realign_drap): Likewise.
9526
9527         * global.c (compute_regsets): Frame pointer is needed when
9528         stack is realigned.  Can eliminate frame pointer when stack is
9529         realigned and dynamic realigned argument pointer isn't used.
9530
9531         * reload1.c (update_eliminables):  Frame pointer is needed
9532         when stack is realigned.
9533         (init_elim_table): Can eliminate frame pointer when stack is
9534         realigned and dynamic realigned argument pointer isn't used.
9535
9536         * rtl.h (assign_stack_local_1): Declare new funtion.
9537
9538         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
9539         (TARGET_GET_DRAP_RTX): Likewise.
9540         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
9541         TARGET_GET_DRAP_RTX.
9542
9543         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
9544
9545         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
9546         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
9547
9548 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
9549             H.J. Lu  <hongjiu.lu@intel.com>
9550
9551         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
9552         vdrap_reg, stack_realign and drap_reg_saved.
9553         (add_cfi): Don't allow redefining CFA when DRAP is used.
9554         (reg_save): Handle stack alignment.
9555         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
9556         alignment.  Don't generate DWARF information for (set fp sp)
9557         when DRAP is used.
9558         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
9559         to INVALID_REGNUM.
9560         (int_loc_descriptor): Move prototype forward.  Also define if
9561         DWARF2_UNWIND_INFO is true.
9562         (output_cfa_loc): Handle DW_CFA_expression.
9563         (build_cfa_aligned_loc): New.
9564         (based_loc_descr): Update assert for stack realign.  For local
9565         variables, use sp+offset when stack is aligned without drap and
9566         fp+offset when stack is aligned with drap.  For arguments, use
9567         cfa+offset when drap is used to align stack.
9568
9569 2008-07-30  Joey Ye  <joey.ye@intel.com>
9570             H.J. Lu  <hongjiu.lu@intel.com>
9571
9572         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
9573         Break long line.
9574         (ix86_gen_andsp): New.
9575         (ix86_user_incoming_stack_boundary): Likewise.
9576         (ix86_default_incoming_stack_boundary): Likewise.
9577         (ix86_incoming_stack_boundary): Likewise.
9578         (ix86_can_eliminate): Likewise.
9579         (find_drap_reg): Likewise.
9580         (ix86_update_stack_boundary): Likewise.
9581         (ix86_get_drap_rtx): Likewise.
9582         (ix86_finalize_stack_realign_flags): Likewise.
9583         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
9584         (TARGET_GET_DRAP_RTX): Likewise.
9585         (override_options): Overide option value for new options.
9586         (ix86_function_ok_for_sibcall): Remove check for
9587         force_align_arg_pointer.
9588         (ix86_handle_cconv_attribute): Likewise.
9589         (ix86_function_regparm): Likewise.
9590         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
9591         (ix86_va_start): Replace virtual_incoming_args_rtx with
9592         crtl->args.internal_arg_pointer.
9593         (ix86_select_alt_pic_regnum): Check DRAP register.
9594         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
9595         (ix86_compute_frame_layout): Compute frame layout wrt stack
9596         realignment.
9597         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
9598         (ix86_expand_prologue): Decide if stack realignment is needed
9599         and generate prologue code accordingly.
9600         (ix86_expand_epilogue): Generate epilogue code wrt stack
9601         realignment is really needed or not.
9602
9603         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
9604         (ABI_STACK_BOUNDARY): Likewise.
9605         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
9606         (STACK_REALIGN_DEFAULT): Likewise.
9607         (INCOMING_STACK_BOUNDARY): Likewise.
9608         (MAX_STACK_ALIGNMENT): Likewise.
9609         (ix86_incoming_stack_boundary): Likewise.
9610         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
9611         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
9612         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
9613         (machine_function): Remove force_align_arg_pointer.
9614
9615         * config/i386/i386.md (BX_REG): New.
9616         (R13_REG): Likewise.
9617
9618         * config/i386/i386.opt (mforce_drap): New.
9619         (mincoming-stack-boundary): Likewise.
9620         (mstackrealign): Add Init(-1).
9621
9622         * config/i386/i386-protos.h (ix86_can_eliminate): New
9623
9624 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9625
9626         * doc/extend.texi: Update force_align_arg_pointer.
9627
9628         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
9629         -mstackrealign.
9630
9631         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
9632         (INCOMING_STACK_BOUNDARY): Likewise.
9633         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
9634         (TARGET_GET_DRAP_RTX): Likewise.
9635
9636 2008-07-30  Andreas Schwab  <schwab@suse.de>
9637
9638         PR rtl-optimization/36929
9639         * dse.c (replace_inc_dec): Use emit_insn_before instead of
9640         add_insn_before and fix argument order.
9641         (replace_inc_dec_mem): Handle NULL rtx.
9642
9643 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
9644
9645         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
9646         function.
9647         (arm_compute_initial_elimination_offset): Use it.
9648         (arm_compute_save_reg_mask): Include static chain save slot when
9649         calculating alignment.
9650         (arm_get_frame_offsets): Ditto.
9651         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
9652         that we can use to decrement the stack when the stack decrement
9653         could be too big for an immediate value in a single insn.
9654         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
9655
9656 2008-07-30  Richard Guenther  <rguenther@suse.de>
9657
9658         PR tree-optimization/36967
9659         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
9660         Release defs of statements we remove.
9661
9662 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
9663
9664         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
9665         instead of NULL_RTVEC.
9666
9667 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
9668
9669         PR target/35866
9670
9671         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
9672         vector modes.
9673
9674 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
9675
9676         * final.c (call_from_call_insn): New.
9677         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
9678
9679 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
9680
9681         * configure.ac: Substitute ADA_CFLAGS.
9682         * configure: Regenerate.
9683         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
9684         * Makefile.in: Remove mention of X_* variables.
9685         * config/pa/x-ada-hpux10: Remove.
9686         * config/pa/x-ada: Remove.
9687
9688         * doc/fragments.texi: Update.
9689
9690 2008-07-30  Olivier Hainque  <hainque@adacore.com>
9691
9692         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
9693         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
9694         __dso_handle explicitly here.
9695
9696 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9697
9698         PR 34389
9699         * c-typeck.c (build_binary_op): Encapsulate code into...
9700         * c-common.c (shorten_binary_op): ...this new function.
9701         (conversion_warning): Use the new function. Handle non-negative
9702         constant in bitwise-and.
9703         * c-common.h (shorten_binary_op): Declare.
9704
9705 2008-07-30  Olivier Hainque  <hainque@adacore.com>
9706
9707         * scan.c (make_sstring_space): Add explicit conversions of
9708         allocator's return value.
9709         * fix-header.c (recognized_function): Likewise.
9710
9711 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9712
9713         * doc/cpp.texi: Update to GFDL 1.2.
9714         * doc/gcc.texi: Do not list GPL as Invariant Section.
9715         * doc/gccint.texi: Likewise.  Update copyright years.
9716         * doc/install.texi: Update copyright years.
9717
9718 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
9719
9720         PR target/36955
9721         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
9722         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
9723
9724 2008-07-29  Jan Hubicka  <jh@suse.cz>
9725
9726         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
9727         (grokdeclarator): Likewise.
9728         * langhooks.c (lhd_warn_unused_global_decl): Use
9729         DECL_DECLARED_INLINE_P.
9730         * print-tree.c (print_node): Remove DECL_INLINE check.
9731
9732 2008-07-29  Richard Guenther  <rguenther@suse.de>
9733
9734         PR tree-optimization/36945
9735         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
9736         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
9737         Record invariant addresses un-decomposed.
9738         (copy_reference_ops_from_call): Record reference call
9739         arguments properly.  Simplify.
9740         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
9741         helper split out from ...
9742         (create_component_ref_by_pieces): ... here.  Simplify.
9743         Prepare for recursive invocation for call arguments.
9744         (create_expression_by_pieces): Adjust call to
9745         create_component_ref_by_pieces.
9746         (compute_avail): Process operand 2 of reference ops.
9747
9748 2008-07-29  Richard Guenther  <rguenther@suse.de>
9749
9750         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
9751
9752 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
9753
9754         * c-format.c (check_format_types): Revert unwanted checkin.
9755
9756 2008-07-29  Jan Hubicka  <jh@suse.cz>
9757
9758         * flags.h (flag_really_no_inline): Remove.
9759         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
9760         * toplev.c (flag_really_no_inline): Remove.
9761         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
9762         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
9763         (cgraph_decide_inlining_incrementally): Likewise.
9764         (compute_inline_parameters): Likewise.
9765         * opts.c (decode_options): Simplify.
9766         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
9767         * common.opt (finline): Initialize to 1.
9768         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
9769
9770 2008-07-29  Jan Hubicka  <jh@suse.cz>
9771
9772         * predict.c (always_optimize_for_size_p): New function.
9773         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
9774         optimize_edge_for_size_p, optimize_edge_for_speed_p,
9775         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
9776         functions.
9777         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
9778         * function.c (prepare_function_start): Set default profile.
9779         * function.h (rtl_data): Add maybe_hot_insn_p.
9780         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
9781         (construct_exit_block): Likewise.
9782         (tree_expand_cfg): Likewise.
9783         * basic-block.h
9784         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
9785         optimize_edge_for_size_p, optimize_edge_for_speed_p,
9786         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
9787         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
9788         Declare.
9789
9790 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9791
9792         PR 34985
9793         * c-decl.c (merge_decls): Merge USED flags.
9794
9795 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9796
9797         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
9798         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
9799         next_stack, lab_false and lab_over trees.
9800
9801 2008-07-28  Richard Guenther  <rguenther@suse.de>
9802
9803         PR tree-optimization/36957
9804         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
9805         (useless_type_conversion_p): Remove.
9806         (types_compatible_p): Remove.
9807         * gimple.h (tree_ssa_useless_type_conversion): Declare.
9808         (useless_type_conversion_p): Declare.
9809         (types_compatible_p): Declare.
9810         (gimple_expr_type): Return the base type only if it is
9811         trivially convertible to the subtype.
9812
9813 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
9814
9815         * configure.ac: Use the m4_do macro to concatenate the warnings into
9816         one string in ACX_PROG_CC_WARNING_OPTS,
9817         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
9818         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
9819         * configure: Regenerate.
9820
9821 2008-07-28  Richard Guenther  <rguenther@suse.de>
9822
9823         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
9824         (insert_fake_stores): Remove.
9825         (realify_fake_stores): Likewise.
9826         (execute_pre): Remove dead code.
9827         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
9828         (find_func_aliases): Deal with it here instead.
9829         Re-enable gcc_unreachable call.
9830
9831 2008-07-28  Richard Guenther  <rguenther@suse.de>
9832
9833         Merge from gimple-tuples-branch.
9834
9835         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
9836         * gimple.def: New file.
9837         * gsstruct.def: Likewise.
9838         * gimple-iterator.c: Likewise.
9839         * gimple-pretty-print.c: Likewise.
9840         * tree-gimple.c: Removed.  Merged into ...
9841         * gimple.c: ... here.  New file.
9842         * tree-gimple.h: Removed.  Merged into ...
9843         * gimple.h: ... here.  New file.
9844
9845         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
9846         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
9847         --enable-checking=gimple flag.
9848         * config.in: Likewise.
9849         * configure: Regenerated.
9850
9851         * tree-ssa-operands.h: Tuplified.
9852         * tree-vrp.c: Likewise.
9853         * tree-loop-linear.c: Likewise.
9854         * tree-into-ssa.c: Likewise.
9855         * tree-ssa-loop-im.c: Likewise.
9856         * tree-dump.c: Likewise.
9857         * tree-complex.c: Likewise.
9858         * cgraphbuild.c: Likewise.
9859         * tree-ssa-threadupdate.c: Likewise.
9860         * tree-ssa-loop-niter.c: Likewise.
9861         * tree-pretty-print.c: Likewise.
9862         * tracer.c: Likewise.
9863         * gengtype.c: Likewise.
9864         * tree-loop-distribution.c: Likewise.
9865         * tree-ssa-loop-unswitch.c: Likewise.
9866         * cgraph.c: Likewise.
9867         * cgraph.h: Likewise.
9868         * tree-ssa-loop-manip.c: Likewise.
9869         * value-prof.c: Likewise.
9870         * tree-ssa-loop-ch.c: Likewise.
9871         * tree-tailcall.c: Likewise.
9872         * value-prof.h: Likewise.
9873         * tree.c: Likewise.
9874         * tree.h: Likewise.
9875         * tree-pass.h: Likewise.
9876         * ipa-cp.c: Likewise.
9877         * tree-scalar-evolution.c: Likewise.
9878         * tree-scalar-evolution.h: Likewise.
9879         * target.h: Likewise.
9880         * lambda-mat.c: Likewise.
9881         * tree-phinodes.c: Likewise.
9882         * diagnostic.h: Likewise.
9883         * builtins.c: Likewise.
9884         * tree-ssa-alias-warnings.c: Likewise.
9885         * cfghooks.c: Likewise.
9886         * fold-const.c: Likewise.
9887         * cfghooks.h: Likewise.
9888         * omp-low.c: Likewise.
9889         * tree-ssa-dse.c: Likewise.
9890         * ipa-reference.c: Likewise.
9891         * tree-ssa-uncprop.c: Likewise.
9892         * toplev.c: Likewise.
9893         * tree-gimple.c: Likewise.
9894         * tree-gimple.h: Likewise.
9895         * tree-chrec.c: Likewise.
9896         * tree-chrec.h: Likewise.
9897         * tree-ssa-sccvn.c: Likewise.
9898         * tree-ssa-sccvn.h: Likewise.
9899         * cgraphunit.c: Likewise.
9900         * tree-ssa-copyrename.c: Likewise.
9901         * tree-ssa-ccp.c: Likewise.
9902         * tree-ssa-loop-ivopts.c: Likewise.
9903         * tree-nomudflap.c: Likewise.
9904         * tree-call-cdce.c: Likewise.
9905         * ipa-pure-const.c: Likewise.
9906         * c-format.c: Likewise.
9907         * tree-stdarg.c: Likewise.
9908         * tree-ssa-math-opts.c: Likewise.
9909         * tree-ssa-dom.c: Likewise.
9910         * tree-nrv.c: Likewise.
9911         * tree-ssa-propagate.c: Likewise.
9912         * ipa-utils.c: Likewise.
9913         * tree-ssa-propagate.h: Likewise.
9914         * tree-ssa-alias.c: Likewise.
9915         * gimple-low.c: Likewise.
9916         * tree-ssa-sink.c: Likewise.
9917         * ipa-inline.c: Likewise.
9918         * c-semantics.c: Likewise.
9919         * dwarf2out.c: Likewise.
9920         * expr.c: Likewise.
9921         * tree-ssa-loop-ivcanon.c: Likewise.
9922         * predict.c: Likewise.
9923         * tree-ssa-loop.c: Likewise.
9924         * tree-parloops.c: Likewise.
9925         * tree-ssa-address.c: Likewise.
9926         * tree-ssa-ifcombine.c: Likewise.
9927         * matrix-reorg.c: Likewise.
9928         * c-decl.c: Likewise.
9929         * tree-eh.c: Likewise.
9930         * c-pretty-print.c: Likewise.
9931         * lambda-trans.c: Likewise.
9932         * function.c: Likewise.
9933         * langhooks.c: Likewise.
9934         * ebitmap.h: Likewise.
9935         * tree-vectorizer.c: Likewise.
9936         * function.h: Likewise.
9937         * langhooks.h: Likewise.
9938         * tree-vectorizer.h: Likewise.
9939         * ipa-type-escape.c: Likewise.
9940         * ipa-type-escape.h: Likewise.
9941         * domwalk.c: Likewise.
9942         * tree-if-conv.c: Likewise.
9943         * profile.c: Likewise.
9944         * domwalk.h: Likewise.
9945         * tree-data-ref.c: Likewise.
9946         * tree-data-ref.h: Likewise.
9947         * tree-flow-inline.h: Likewise.
9948         * tree-affine.c: Likewise.
9949         * tree-vect-analyze.c: Likewise.
9950         * c-typeck.c: Likewise.
9951         * gimplify.c: Likewise.
9952         * coretypes.h: Likewise.
9953         * tree-ssa-phiopt.c: Likewise.
9954         * calls.c: Likewise.
9955         * tree-ssa-coalesce.c: Likewise.
9956         * tree.def: Likewise.
9957         * tree-dfa.c: Likewise.
9958         * except.c: Likewise.
9959         * except.h: Likewise.
9960         * cfgexpand.c: Likewise.
9961         * tree-cfgcleanup.c: Likewise.
9962         * tree-ssa-pre.c: Likewise.
9963         * tree-ssa-live.c: Likewise.
9964         * tree-sra.c: Likewise.
9965         * tree-ssa-live.h: Likewise.
9966         * tree-predcom.c: Likewise.
9967         * lambda.h: Likewise.
9968         * tree-mudflap.c: Likewise.
9969         * ipa-prop.c: Likewise.
9970         * print-tree.c: Likewise.
9971         * tree-ssa-copy.c: Likewise.
9972         * ipa-prop.h: Likewise.
9973         * tree-ssa-forwprop.c: Likewise.
9974         * ggc-page.c: Likewise.
9975         * c-omp.c: Likewise.
9976         * tree-ssa-dce.c: Likewise.
9977         * tree-vect-patterns.c: Likewise.
9978         * tree-ssa-ter.c: Likewise.
9979         * tree-nested.c: Likewise.
9980         * tree-ssa.c: Likewise.
9981         * lambda-code.c: Likewise.
9982         * tree-ssa-loop-prefetch.c: Likewise.
9983         * tree-inline.c: Likewise.
9984         * tree-inline.h: Likewise.
9985         * tree-iterator.c: Likewise.
9986         * tree-optimize.c: Likewise.
9987         * tree-ssa-phiprop.c: Likewise.
9988         * tree-vect-transform.c: Likewise.
9989         * tree-object-size.c: Likewise.
9990         * tree-outof-ssa.c: Likewise.
9991         * cfgloop.c: Likewise.
9992         * system.h: Likewise.
9993         * tree-profile.c: Likewise.
9994         * cfgloop.h: Likewise.
9995         * c-gimplify.c: Likewise.
9996         * c-common.c: Likewise.
9997         * tree-vect-generic.c: Likewise.
9998         * tree-flow.h: Likewise.
9999         * c-common.h: Likewise.
10000         * basic-block.h: Likewise.
10001         * tree-ssa-structalias.c: Likewise.
10002         * tree-switch-conversion.c: Likewise.
10003         * tree-ssa-structalias.h: Likewise.
10004         * tree-cfg.c: Likewise.
10005         * passes.c: Likewise.
10006         * ipa-struct-reorg.c: Likewise.
10007         * ipa-struct-reorg.h: Likewise.
10008         * tree-ssa-reassoc.c: Likewise.
10009         * cfgrtl.c: Likewise.
10010         * varpool.c: Likewise.
10011         * stmt.c: Likewise.
10012         * tree-ssanames.c: Likewise.
10013         * tree-ssa-threadedge.c: Likewise.
10014         * langhooks-def.h: Likewise.
10015         * tree-ssa-operands.c: Likewise.
10016         * config/alpha/alpha.c: Likewise.
10017         * config/frv/frv.c: Likewise.
10018         * config/s390/s390.c: Likewise.
10019         * config/m32c/m32c.c: Likewise.
10020         * config/m32c/m32c-protos.h: Likewise.
10021         * config/spu/spu.c: Likewise.
10022         * config/sparc/sparc.c: Likewise.
10023         * config/i386/i386.c: Likewise.
10024         * config/sh/sh.c: Likewise.
10025         * config/xtensa/xtensa.c: Likewise.
10026         * config/stormy16/stormy16.c: Likewise.
10027         * config/ia64/ia64.c: Likewise.
10028         * config/rs6000/rs6000.c: Likewise.
10029         * config/pa/pa.c: Likewise.
10030         * config/mips/mips.c: Likewise.
10031
10032 2008-07-28  Simon Baldwin  <simonb@google.com>
10033
10034         * c-pragma.c (handle_pragma_message): New function.
10035         (init_pragma): Register handle_pragma_message.
10036         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
10037         documentation.
10038
10039 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
10040
10041         PR tree-optimization/35252
10042         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
10043         REALPART_EXPR to be considered as same load operation.
10044
10045 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
10046
10047         PR tree-optimization/36830
10048         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
10049         (expressions_equal_p): Return false if only one operand is null.
10050
10051 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
10052
10053         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
10054         version requirements.
10055
10056 2008-07-26  Olivier Hainque  <hainque@adacore.com>
10057
10058         * collect2.c (symkind): New enum.  Symbol kinds we care about.
10059         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
10060         code and head comment accordingly.
10061         (scan_prog_file): Use symkind names instead of bare integers.
10062
10063 2008-07-25  Jan Hubicka  <jh@suse.cz>
10064
10065         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
10066         DECL_INLINE.
10067         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
10068         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
10069         * dojump.c (clear_pending_stack_adjust): Likewise.
10070         * print-tree.c (print_node): Ignore DECL_INLINE.
10071         * tree-inline.c (inlinable_function_p): Likewise.
10072
10073 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
10074
10075         * doc/extend.texi (hot attribute): Document that the hot attribute
10076         turns on -O3 for some ports.
10077         (cold attribute): Document that the cold attribute turns on -Os
10078         for some ports
10079
10080         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
10081         reflect function specific option support.
10082
10083         * target.h (struct target_option_hooks): Add fields to say whether
10084         the cold attribute implies -Os and the hot attribute implies -O3.
10085
10086         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
10087         By default, do not turn on -Os for cold functions.
10088         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
10089         not turn on -O3 for hot functions.
10090
10091         * c-common.c (handle_hot_attribute): Use target hook to determine
10092         if hot functions should enable -O3.
10093         (handle_cold_attribute): Use target hook to determine if cold
10094         functions should enable -Os.
10095
10096         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
10097         (override_options): Move disable scheduling to
10098         optimization_options.
10099         (optimization_options): Disable scheduling here, not
10100         override_options.
10101         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10102         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10103
10104         * config/ia64/ia64.c (ia64_override_options): Move setting
10105         scheduling flags to ia64_optimization_options.
10106         (ia64_optimization_options): Disable scheduling options here, and
10107         not in ia64_override_options.
10108         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10109         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
10110
10111 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10112
10113         PR target/36936
10114         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
10115
10116 2008-07-25  Martin Jambor  <mjambor@suse.cz>
10117
10118         PR tree-optimization/36926
10119         * ipa-prop.c (ipa_analyze_call_uses): Call
10120         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
10121
10122 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10125         movv2si_internal): Add mem = reg alternative.
10126
10127 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
10128
10129         PR bootstrap/36918
10130         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
10131         DEFAULT_PCC_STRUCT_RETURN to 127.
10132
10133 2008-07-24  Jan Hubicka  <jh@suse.cz>
10134
10135         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
10136         (build_cgraph_edges): Likewise.
10137         * cgraph.c (cgraph_node): Do not update assembler hash.
10138         (cgraph_remove_node): Drop non-unit-at-a-time code.
10139         * tree-pass.h (pass_O0_always_inline): Remove.
10140         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
10141         * toplev.c (process_options): Flag unit-at-a-time does not imply
10142         no section anchors.
10143         * cgraphunit.c: Update comments.
10144         (decide_is_function_needed): Drop non-unit-at-a-time mode.
10145         (cgraph_assemble_pending_functions): Remove.
10146         (cgraph_reset_node): Drop non-unit-at-a-time code.
10147         (cgraph_finalize_function): Likewise.
10148         (cgraph_analyze_function): Likewise.
10149         (cgraph_finalize_compilation_unit): Likewise.
10150         (cgraph_expand_function): Likewise.
10151         (cgraph_optimize): Likesise.
10152         (save_inline_function_body): Likewise.
10153         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
10154         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
10155         * ipa-inline.c: Update comments.
10156         (enum inlining_mode): remove INLINE_SPEED.
10157         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
10158         (cgraph_mark_inline_edge): Likewise.
10159         (try_inline): Likewise.
10160         (cgraph_decide_inlining_incrementally): Likewise.
10161         (cgraph_gate_inlining): Remove.
10162         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
10163         (cgraph_gate_early_inlining): Likewise.
10164         (gate_inline_passes): Remove.
10165         (pass_inline_parameters, pass_ipa_inline): Remove gates.
10166         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
10167         pass_O0_always_inline): Remove.
10168         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
10169         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
10170         * opts.c (no_unit_at_a_time_default): Remove.
10171         (decode_options): Remove flag_unit_at_a_time reset and warning.
10172         * opts.h (no_unit_at_a_time_default): Remove.
10173         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
10174         early in GNU dialect.
10175         (merge_decls): Update comment; drop unit-at-a-time check.
10176         (finish_decl): Likewise.
10177         (grok_declaration): Remove flag_inline_trees code.
10178         (finish_functions): Return on function returning non-void on all
10179         statics.
10180         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
10181         * cfgexpand.c (expand_one_static_var): Remove.
10182         (expand_one_var): Remove expand_one_static_var call.
10183         (expand_used_vars_for_block): Remove flag_unit_a_time check.
10184         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
10185         and flag_unit_at_a-time compatibility checks.
10186         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
10187         * tree-inline.c (flag_inline_trees): Remove.
10188         (inlinable_function_p): Don't check it.
10189         (expand_call_inline): Remove non-unit-at-a-time code.
10190         * tree-inline.h (flag_inline_trees): Remove.
10191         * tree-optimize.c (execute_early_local_optimizations): Remove
10192         unit-at-a-time checks.
10193         (tree_rest_of_compilation): Likewise.
10194         * combine.c (setup_incoming_promotions): Likewise.
10195         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
10196         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
10197         * passes.c (pass_inline_parameters): Update comments; remove
10198         O0_alwaysinline pass.
10199         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
10200         (execute_one_pass): Likewise.
10201         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
10202         (ix86_function_sseregparm): Likewise.
10203         * arm.c (arm_function_in_section_p): Likewise.
10204         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
10205         * varpool.c: Update comments.
10206         (decide_is_variable_needed): Remove unit-at-a-time checks.
10207         (varpool_finalize_decl): Likewise.
10208
10209 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10210
10211         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
10212         to 2 instead of -1.
10213         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
10214
10215 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
10216
10217         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
10218         imp symbol extension.
10219
10220         2008-07-23  Ian Lance Taylor  <iant@google.com>
10221
10222         * tree-vrp.c (infer_value_range): Ignore asm statements when
10223         looking for memory accesses for -fdelete-null-pointer-checks.
10224
10225 2008-07-24  Ben Elliston  <bje@au.ibm.com>
10226
10227         * config/spu/spu-c.c (__vector_keyword): New variable.
10228         (vector_keyword): Likewise.
10229         (spu_categorize_keyword): New function.
10230         (spu_macro_to_expand): Likewise.
10231         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
10232         compiling an ISO C dialect.
10233
10234 2008-07-24  Ben Elliston  <bje@au.ibm.com>
10235
10236         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
10237         conventional usage.
10238
10239 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10240
10241         * configure: Regenerate.
10242         * configure.ac: Require texinfo 4.7.
10243         * doc/install.texi: Document texinfo 4.7 requirement.
10244
10245 2008-07-23  Martin Jambor  <mjambor@suse.cz>
10246
10247         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
10248         rather than for DECL_SAVED_TREE.
10249         * ipa-prop.c: Include diagnostic.h.
10250         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
10251         thoroughly.
10252         (ipa_detect_param_modifications): Function rewritten from scratch.
10253         (ipa_compute_jump_functions): Changed accesses to modification flags.
10254         (ipa_free_node_params_substructures): Update flags destruction.
10255         (ipa_node_duplication_hook): Update flags duplication.
10256         (ipa_print_all_params_modified): Updated flag access.
10257         * ipa-prop.h (struct ipa_param_flags): New structure.
10258         (struct ipa_node_params): New field modification_analysis_done,
10259         modified_flags changed into param_flags.
10260         (ipa_is_ith_param_modified): Changed to use new flags.
10261         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
10262
10263         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
10264         ipa-cp.c and split into two functions.
10265         (ipa_print_node_jump_functions): New function.
10266         (compute_scalar_jump_functions): New function.
10267         (type_like_member_ptr_p): New function.
10268         (compute_pass_through_member_ptrs): New function.
10269         (fill_member_ptr_cst_jump_function): New function.
10270         (determine_cst_member_ptr): New function.
10271         (compute_cst_member_ptr_arguments): New function.
10272         (ipa_compute_jump_functions): Complete rewrite.
10273         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
10274         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
10275         (struct ipa_member_ptr_cst): New structure.
10276         (union jump_func_value): New field member_cst.
10277         * ipa-cp.c (ipcp_lat_is_insertable): New function.
10278         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
10279         jump function types.
10280         (ipcp_print_all_lattices): Slight fprintf rearrangement.
10281         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
10282         instead of ipcp_print_all_jump_functions.
10283         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
10284         only for replacable scalars.
10285
10286         * doc/invoke.texi (Optimize options): Add description of
10287         -findirect-inlining.
10288         * common.opt (flag_indirect_inlining): New flag.
10289         * opts.c (decode_options): Set flag_indirect_inlining when
10290         optimize >= 3.
10291
10292         * ipa-inline.c: Include ipa-prop.h.
10293         (inline_indirect_intraprocedural_analysis): New function.
10294         (inline_generate_summary): Allocate parameter and argument info
10295         structures, call inline_indirect_intraprocedural_analysis on each
10296         node when doing indirect inlining and deallocate indirect inlining
10297         data structures in the end.
10298         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
10299         (free_all_ipa_structures_after_iinln): New function.
10300         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
10301         done.
10302         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
10303
10304         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
10305         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
10306         of computing the frequency separately.
10307         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
10308         of computing the frequency separately.
10309         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
10310         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
10311         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
10312         (ipa_get_stmt_member_ptr_load_param): New function.
10313         (ipa_is_ssa_with_stmt_def): New function.
10314         (ipa_note_param_call): New function.
10315         (ipa_analyze_call_uses): New function.
10316         (ipa_analyze_stmt_uses): New function.
10317         (ipa_analyze_params_uses): New function.
10318         (ipa_free_node_params_substructures): Also free the param_calls linked
10319         list.
10320         (ipa_node_duplication_hook): Also duplicate the param_calls
10321         linked list.
10322         (ipa_print_node_param_flags): New function.
10323         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
10324         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
10325         * ipa-prop.h (struct ipa_param_flags): New field called.
10326         (struct ipa_param_call_note): New structure.
10327         (struct ipa_node_params): New fields param_calls and
10328         uses_analysis_done.
10329         (ipa_is_ith_param_called): New function.
10330         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10331         ipa_analyze_params_uses and dump parameter flags.
10332
10333         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
10334         ipa_propagate_indirect_call_infos if performing indirect inlining,
10335         pass a new parameter new_edges to it.
10336         (add_new_edges_to_heap): New fucntion.
10337         (cgraph_decide_inlining_of_small_functions): New vector
10338         new_indirect_edges for newly found indirect edges , call
10339         ipa_propagate_indirect_call_infos after inlining.
10340         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
10341         inlining if performing indirect inlining.  Call
10342         free_all_ipa_structures_after_iinln when doing so too.
10343         (inline_generate_summary): Do not call
10344         free_all_ipa_structures_after_iinln here.
10345         * ipa-prop.c (update_jump_functions_after_inlining): New function.
10346         (print_edge_addition_message): New function.
10347         (update_call_notes_after_inlining): New function.
10348         (propagate_info_to_inlined_callees): New function.
10349         (ipa_propagate_indirect_call_infos): New function.
10350         * ipa-prop.h: Include cgraph.h
10351         (struct ipa_param_call_note): Fields reordered, new field processed.
10352         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
10353         flag indirect_call.
10354         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
10355         rediscovered call statements.
10356         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
10357         (dump_cgraph_node): Dump also the indirect_call flag.
10358         (cgraph_clone_edge): Copy also the indirect_call flag.
10359         * tree-inline.c (copy_bb): Do not check for fndecls from call
10360         expressions, check for edge availability when moving clones.
10361         (get_indirect_callee_fndecl): New function.
10362         (expand_call_inline): If callee declaration is not apprent from
10363         the statement, try calling get_indirect_callee_fndecl.  Do not
10364         issue warnings or call sorry when not inlinings an indirect edge.
10365         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
10366
10367         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
10368         bit more frandly to matching.
10369         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
10370         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
10371         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
10372
10373 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10374
10375         PR 36907
10376         * opth-gen.awk: Suppress function specific features when building
10377         target libraries.
10378         * optc-gen.awk: Ditto.
10379
10380 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10381
10382         PR 35058
10383         * diagnostic.c (pedwarn): Add opt parameter.
10384         (pedwarn0): New.
10385         * c-tree.h (pedwarn_init): Add opt parameter.
10386         (pedwarn_c90): Likewise.
10387         (pedwarn_c99): Likewise.
10388         * c-errors.c (pedwarn_c99): Likewise.
10389         (pedwarn_c90): Likewise.
10390         * toplev.h (pedwarn): Update declaration.
10391         (pedwarn0): Declare.
10392         * c-lex.c: All calls to pedwarn changed.
10393         * builtins.c: All calls to pedwarn changed.
10394         * toplev.c: All calls to pedwarn changed.
10395         * c-decl.c: All calls to pedwarn changed.
10396         * c-typeck.c: All calls to pedwarn changed.
10397         * c-common.c: All calls to pedwarn changed.
10398         * c-parser.c: All calls to pedwarn changed.
10399
10400 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10401             Karthik Kumar  <karthikkumar@gmail.com>
10402
10403         * attribs.c (file scope): Include c-common.h.
10404         (decl_attributes): Add support for #pragma GCC optimize and
10405         #pragma GCC option.
10406
10407         * targhooks.c (default_can_inline_p): New function that is the
10408         default for the TARGET_CAN_INLINE_P target hook.
10409
10410         * targhooks.h (default_can_inline_p): Add declaration.
10411
10412         * tree.c (cl_optimization_node): New static tree for building
10413         OPTIMIZATION_NODE tree.
10414         (cl_target_option_node): New static tree for building
10415         TARGET_OPTION_NODE tree.
10416         (cl_option_hash_table): New hash table for hashing
10417         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10418         (cl_option_hash_hash): New function to provide the hash value for
10419         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10420         (cl_option_hash_eq): New function to provide an equality test for
10421         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
10422         (tree_code_size): Add support for OPTIMIZATION_NODE and
10423         TARGET_OPTION_NODE trees.
10424         (tree_code_structure): Add support for OPTIMIZATION_NODE and
10425         TARGET_OPTION_NODE trees.
10426         (build_optimization_node): Build a tree that has all of the
10427         current optimization options.
10428         (build_target_option_node): Build a tree that has the target
10429         options that might be changed on a per function basis.
10430
10431         * tree.h (file scope): Include options.h.
10432         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
10433         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
10434         (TREE_OPTIMIZATION): Ditto.
10435         (TREE_TARGET_SPECIFIC): Ditto.
10436         (struct tree_function_decl): Add fields for remembering the
10437         current optimization options and target specific options.
10438         (struct tree_optimization_option): New tree variant that remembers
10439         the optimization options.
10440         (struct tree_target_option): New tree variant that remembers the
10441         target specific flags that might change for compiling a particular
10442         function.
10443         (union tree_node): Include tree_optimization_option and
10444         tree_target_option fields.
10445         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
10446         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
10447         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
10448         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
10449         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
10450         optimization and target options.
10451         (optimization_default_node): New macro to refer to global_trees
10452         field.
10453         (optimization_current_node): Ditto.
10454         (optimization_cold_node): Ditto.
10455         (optimization_hot_node): Ditto.
10456         (target_option_default_node): Ditto.
10457         (target_option_current_node): Ditto.
10458         (current_option_pragma): Ditto.
10459         (current_optimize_pragma): Ditto.
10460
10461         * target.h (struct gcc_target): Add valid_option_attribute_p,
10462         target_option_save, target_option_restore, target_option_print,
10463         target_option_pragma_parse, and can_inline_p hooks.
10464
10465         * toplev.h (parse_optimize_options): Add declaration.
10466         (fast_math_flags_struct_set_p): Ditto.
10467
10468         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
10469         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
10470         optimize is used.
10471
10472         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
10473         tree_can_inline_p hook to see if one function can inline another.
10474         (cgraph_decide_inlining): Ditto.
10475         (cgraph_decide_inlining_incrementally): Ditto.
10476
10477         * opts.c (decode_options): Add support for running multiple times
10478         to allow functions with different target or optimization options
10479         than was specified on the command line.
10480         (fast_math_flags_struct_set_p): New function that is similar to
10481         fast_math_flags_set_p, except it uses the values in the
10482         cl_optimization structure instead of global variables.
10483
10484         * optc-gen.awk: Add support for TargetSave to allow a back end to
10485         declare new fields that need to be saved when using function
10486         specific options.  Include flags.h and target.h in the options.c
10487         source.  Add support for Save to indicate which options can be set
10488         for individual functions.  Generate cl_optimize_save,
10489         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
10490         cl_target_option_restore, cl_target_option_print functions to
10491         allow functions to use different optimization or target options.
10492
10493         * opt-functions.awk (var_type_struct): Return the type used for
10494         storing the field in a structure.
10495
10496         * opth-gen.awk: Add support for TargetSave to allow a back end to
10497         declare new fields that need to be saved when using function
10498         specific options.  Add support for Save to indicate which options
10499         can be set for individual functions.  Only generate one extern for
10500         Mask fields.  Generate cl_optimization and cl_target_option
10501         structures to remember optimization and target options.
10502
10503         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
10504         collecting new tree nodes.
10505         (TS_TARGET_OPTION): Ditto.
10506
10507         * c-decl.c (merge_decls): Merge function specific target and
10508         optimization options.
10509
10510         * function.c (invoke_set_current_function_hook): If the function
10511         uses different optimization options, change the global variables
10512         to reflect this.
10513
10514         * coretypes.h (struct cl_optimization): Add forward reference.
10515         (struct cl_target_option): Ditto.
10516
10517         * c-pragma.c (option_stack): New static vector to remember the
10518         current #pragma GCC option stack.
10519         (handle_pragma_option): New function to support #pragma GCC option
10520         to change target options.
10521         (optimize_stack): New static vector to remember the current
10522         #pragma GCC optimize stack.
10523         (handle_pragma_optimize): New function to support #pragma GCC
10524         optimize to change optimization options.
10525         (init_pragma): Add support for #pragma GCC optimize and #pragma
10526         GCC option.
10527
10528         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
10529         optimization options.
10530         (TARGET_OPTION_NODE): New tree code for remembering certain target
10531         options.
10532
10533         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
10534         TARGET_OPTION_NODE trees.
10535
10536         * common.opt (-O): Add Optimization flag.
10537         (-Os): Ditto.
10538         (-fmath-errno): Ditto.
10539         (-falign-functions): Add UInteger flag to make sure flag gets full
10540         int in cl_optimization structure.
10541         (-falign-jumps): Ditto.
10542         (-falign-labels): Ditto.
10543         (-falign-loops): Ditto.
10544         (-fsched-stalled-insns): Ditto.
10545         (-fsched-stalled-insns-dep): Ditto.
10546
10547         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
10548         definition.
10549         (TARGET_OPTION_SAVE): Ditto.
10550         (TARGET_OPTION_RESTORE): Ditto.
10551         (TARGET_OPTION_PRINT): Ditto.
10552         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
10553         (TARGET_CAN_INLINE_P): Ditto.
10554         (TARGET_INITIALIZER): Add new hooks.
10555
10556         * tree-inline.c (tree_can_inline_p): New function to determine
10557         whether one function can inline another.  Check if the functions
10558         use compatible optimization options, and also call the backend
10559         can_inline_p hook.
10560
10561         * tree-inline.h (tree_can_inline_p): Add declaration.
10562
10563         * c-common.c (c_common_attribute): Add support for option and
10564         optimize attributes.
10565         (handle_option_attribute): Add support for the option attribute to
10566         allow the user to specify different target options for compiling a
10567         specific function.
10568         (handle_optimize_attribute): Add support for the optimize
10569         attribute to allow the user to specify different optimization
10570         options for compiling a specific function.
10571         (handle_hot_attribute): Turn on -O3 optimization for this one
10572         function if it isn't the default optimization level.
10573         (handle_cold_attribute): Turn on -Os optimization for this one
10574         function if it insn't the default optimization.
10575         (const_char_p): New const char * typedef.
10576         (optimize_args): New static vector to remember the optimization
10577         arguments.
10578         (parse_optimize_options): New function to set up the optimization
10579         arguments from either the optimize attribute or #pragma GCC optimize.
10580
10581         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
10582         (builtin_define_std): Ditto.
10583
10584         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
10585         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
10586         (x86_64-*-*): Ditto.
10587
10588         * Makefile.in (TREE_H): Add options.h.
10589         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
10590
10591         * doc/extend.texi (option attribute): Document new attribute.
10592         (optimize attribute): Ditto.
10593         (hot attribute): Document hot attribute sets -O3.
10594         (cold attribute): Document cold attribute sets -Os.
10595         (#pragma GCC option): Document new pragma.
10596         (#pragma GCC optimize): Ditto.
10597
10598         * doc/options.texi (TargetSave): Document TargetSave syntax.
10599         (UInteger): Document UInteger must be used for certain flags.
10600         (Save): Document Save option to create target specific options
10601         that can be saved/restored on a function specific context.
10602
10603         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
10604         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
10605
10606         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
10607         (TARGET_OPTION_SAVE): Ditto.
10608         (TARGET_OPTION_RESTORE): Ditto.
10609         (TARGET_OPTION_PRINT): Ditto.
10610         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
10611         (TARGET_CAN_INLINE_P): Ditto.
10612
10613         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
10614         -mfpmath=sse,387.
10615         (-mfpmath=both): Ditto.
10616
10617 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
10618             Karthik Kumar  <karthikkumar@gmail.com>
10619
10620         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
10621         (TARGET_POPCNT): Ditto.
10622         (TARGET_SAHF): Ditto.
10623         (TARGET_AES): Ditto.
10624         (TARGET_PCLMUL): Ditto.
10625         (TARGET_CMPXCHG16B): Ditto.
10626         (TARGET_RECIP): Move switch into target_flags.
10627         (TARGET_FUSED_MADD): Ditto.
10628         (ix86_arch_features): Make an unsigned char type.
10629         (ix86_tune_features): Ditto.
10630         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
10631         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
10632         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
10633
10634         * config/i386/i386.opt (arch): New TargetSave field to define
10635         fields that need to be saved for function specific option support.
10636         (tune): Ditto.
10637         (fpmath): Ditto.
10638         (branch_cost): Ditto.
10639         (ix86_isa_flags_explicit): Ditto.
10640         (tune_defaulted): Ditto.
10641         (arch_specified): Ditto.
10642         (-m128-long-double): Add Save flag to save option for target
10643         specific option support.
10644         (-m80387): Ditto.
10645         (-maccumulate-outgoing-args): Ditto.
10646         (-malign-double): Ditto.
10647         (-malign-stringops): Ditto.
10648         (-mfancy-math-387): Ditto.
10649         (-mhard-float): Ditto.
10650         (-mieee-fp): Ditto.
10651         (-minline-all-stringops): Ditto.
10652         (-minline-stringops-dynamically): Ditto.
10653         (-mms-bitfields): Ditto.
10654         (-mno-align-stringops): Ditto.
10655         (-mno-fancy-math-387): Ditto.
10656         (-mno-push-args): Ditto.
10657         (-mno-red-zone): Ditto.
10658         (-mpush-args): Ditto.
10659         (-mred-zone): Ditto.
10660         (-mrtd): Ditto.
10661         (-msseregparm): Ditto.
10662         (-mstack-arg-probe): Ditto.
10663         (-m32): Ditto.
10664         (-m64): Ditto.
10665         (-mmmx): Ditto.
10666         (-m3dnow): Ditto.
10667         (-m3dnowa): Ditto.
10668         (-msse): Ditto.
10669         (-msse2): Ditto.
10670         (-msse3): Ditto.
10671         (-msse4.1): Ditto.
10672         (-msse4.2): Ditto.
10673         (-msse4): Ditto.
10674         (-mno-sse4): Ditto.
10675         (-msse4a): Ditto.
10676         (-msse5): Ditto.
10677         (-mrecip): Move flag into target_flags.
10678         (-mcld): Ditto.
10679         (-mno-fused-madd): Ditto.
10680         (-mfused-madd): Ditto.
10681         (-mabm): Move flag into ix86_isa_flags.
10682         (-mcx16): Ditto.
10683         (-mpopcnt): Ditto.
10684         (-msahf): Ditto.
10685         (-maes): Ditto.
10686         (-mpclmul): Ditto.
10687
10688         * config/i386/i386-c.c: New file for #pragma support.
10689         (ix86_target_macros_internal): New function to #define or #undef
10690         target macros based when the user uses the #pragma GCC option to
10691         change target options.
10692         (ix86_pragma_option_parse): New function to add #pragma GCC option
10693         support.
10694         (ix86_target_macros): Move defining the target macros here from
10695         TARGET_CPU_CPP_BUILTINS in i386.h.
10696         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
10697         defined, initialize any subtarget #pragmas.
10698
10699         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
10700         REGISTER_TARGET_PRAGMAS.
10701
10702         * config/i386/t-i386: New file for x86 dependencies.
10703         (i386.o): Make dependencies mirror the include files used.
10704         (i386-c.o): New file, add dependencies.
10705
10706         * config/i386/i386-protos.h (override_options): Add bool argument.
10707         (ix86_valid_option_attribute_tree): Add declaration.
10708         (ix86_target_macros): Ditto.
10709         (ix86_register_macros): Ditto.
10710
10711         * config/i386/i386.c (ix86_tune_features): Move initialization of
10712         the target masks to initial_ix86_tune_features to allow functions
10713         to have different target options.  Make type unsigned char,
10714         instead of unsigned int.
10715         (initial_ix86_tune_features): New static vector to hold processor
10716         masks for the tune variables.
10717         (ix86_arch_features): Move initialization of the target masks to
10718         initial_ix86_arch_features to allow functions to have different
10719         target options.  Make type unsigned char, instead of unsigned int.
10720         (initial_ix86_arch_features): New static vector to hold processor
10721         masks for the arch variables.
10722         (enum ix86_function_specific_strings): New enum to describe the
10723         string options used for attribute((option(...))).
10724         (ix86_target_string): New function to return a string that
10725         describes the target options.
10726         (ix86_debug_options): New function to print the current options in
10727         the debugger.
10728         (ix86_function_specific_save): New function hook to save the
10729         function specific global variables in the cl_target_option structure.
10730         (ix86_function_specific_restore): New function hook to restore the
10731         function specific variables from the cl_target_option structure to
10732         the global variables.
10733         (ix86_function_specific_print): New function hook to print the
10734         target specific options in the cl_target_option structure.
10735         (ix86_valid_option_attribute_p): New function hook to validate
10736         attribute((option(...))) arguments.
10737         (ix86_valid_option_attribute_tree): New function that is common
10738         code between attribute((option(...))) and #pragma GCC option
10739         support that parses the options and returns a tree holding the options.
10740         (ix86_valid_option_attribute_inner_p): New helper function for
10741         ix86_valid_option_attribute_tree.
10742         (ix86_can_inline_p): New function hook to decide if one function
10743         can inline another on a target specific basis.
10744         (ix86_set_current_function); New function hook to switch target
10745         options if the user used attribute((option(...))) or #pragma GCC
10746         option.
10747         (ix86_tune_defaulted): Move to static file scope from
10748         override_options.
10749         (ix86_arch_specified): Ditto.
10750         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
10751         ix86_isa_flags.
10752         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
10753         (OPTION_MASK_ISA_ABM_SET): Ditto.
10754         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
10755         (OPTION_MASK_ISA_CX16_SET): Ditto.
10756         (OPTION_MASK_ISA_SAHF_SET): Ditto.
10757         (OPTION_MASK_ISA_AES_UNSET): Ditto.
10758         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
10759         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
10760         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
10761         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
10762         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
10763         (struct ptt): Move to static file scope from override_options.
10764         (processor_target_table): Ditto.
10765         (cpu_names): Ditto.
10766         (ix86_handle_option): Add support for options that are now isa options.
10767         (override_options): Add support for declaring functions that
10768         support different target options than were specified on the
10769         command line.  Move struct ptt, processor_target_table, cpu_names,
10770         ix86_tune_defaulted, ix86_arch_specified to static file scope.
10771         Add bool argument.  Fix up error messages so the appropriate error
10772         is given for either command line or attribute.
10773         (ix86_previous_fndecl): New static to remember previous function
10774         declaration to see if we need to change target options.
10775         (ix86_builtins_isa): New array to record the ISA of each builtin
10776         function.
10777         (def_builtin): Always create the builtin function, even if the
10778         current ISA doesn't support it.
10779         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
10780         tests for those builtins.
10781         (ix86_init_builtins): Remove TARGET_MMX test for calling
10782         ix86_init_mmx_sse_builtins.
10783         (ix86_expand_builtin): If the current ISA doesn't support a given
10784         builtin, signal an error.
10785         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
10786         (TARGET_SET_CURRENT_FUNCTION): Ditto.
10787         (TARGET_OPTION_SAVE): Ditto.
10788         (TARGET_OPTION_RESTORE): Ditto.
10789         (TARGET_OPTION_PRINT): Ditto.
10790         (TARGET_CAN_INLINE_P): Ditto.
10791
10792 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
10793
10794         * c-typeck.c (build_external_ref): Don't call assemble_external.
10795         * final.c (output_operand): Call assemble_external.
10796
10797 2008-07-21  DJ Delorie  <dj@redhat.com>
10798
10799         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
10800         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
10801
10802 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10803
10804         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
10805         original insn and splitter contents into ...
10806         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
10807         flag_unsafe_math_optimizations.  Add dummy scratch register.
10808         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
10809         !flag_unsafe_math_optimizations.  Returns number with next
10810         highest magnitude if this is still less or equal to the true
10811         quotient in magnitude.
10812
10813 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
10814
10815         * Makefile.in: Replace toplev.h with TOPLEV_H.
10816         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
10817         * c-lex.c (fe_file_change): Don't set in_system_header.
10818         * c-parser.c (c_token): Remove in_system_header.
10819         (c_lex_one_token): Don't set in_system_header.
10820         (c_parser_set_source_position_from_token): Don't set in_system_header.
10821         * diagnostic.c (diagnostic_report_diagnostic): Use location from
10822         diagnostic_info.
10823         (warning_at): New.
10824         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
10825         * flags.h (in_system_header): Remove.
10826         * function.c (saved_in_system_header): Remove.
10827         (push_cfun): Don't set in_system_header.
10828         (pop_cfun): Don't set in_system_header.
10829         (push_struct_function): Don't set in_system_header.
10830         * input.h (expanded_location): Add sysp.
10831         (in_system_header_at): New.
10832         (in_system_header): New.
10833         * toplev.c (in_system_header): Remove.
10834         * toplev.h: Include input.h
10835         (warning_at): New.
10836         * tree-cfg.c (execute_warn_function_return): Call warning_at.
10837         * tree-ssa.c (warn_uninit): Call warning_at.
10838         (warn_uninitialized_var): Update calls to warn_uninit.
10839         (warn_uninitialized_phi): Update calls to warn_uninit.
10840         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
10841         (expand_location): Initialize xloc.sysp.
10842         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
10843         (tree_decl_with_vis): Remove in_system_header_flag.
10844
10845 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
10846
10847         PR target/36822
10848         * recog.c (asm_operand_ok): Change the order of the extra
10849         memory constraint checks.
10850
10851 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10852
10853         PR tree-opt/36879
10854         * tree-switch-conversion.c (build_one_array): Call
10855         varpool_mark_needed_node and varpool_finalize_decl
10856         instead of assemble_variable.
10857
10858 2008-07-19  Jan Hubicka  <jh@suse.cz>
10859
10860         * cgraph.c (cgraph_add_new_function): Do early local passes.
10861         * tree-nrv.c (gate_pass_return_slot): New gate.
10862         (pass_nrv): Add the gate.
10863         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
10864         functions.
10865         (coalesce_ssa_name): Coalesce SSA names.
10866         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
10867         not optimizing so unused user vars remains visible.
10868         * common.opt (flag_tree_ter): Always enable by default.
10869         * tree-ssa-ter.c: Include flags.h
10870         (is_replaceable_p): Check that locations match; when aliasing
10871         is missing be conservative about loads.
10872         * tree-optimize.c (gate_init_datastructures): Remove.
10873         (pass_init_datastructures): New.
10874         * passes.c: Reorder passes so we always go into SSA.
10875
10876 2008-07-19  Jan Hubicka  <jh@suse.cz>
10877
10878         * doc/extend.texi (flatten attribute): Remove note about
10879         unit-at-a-time.
10880         * doc/invoke.texi (--combine): Likewise.
10881         (-finline-functions-called-once): Update levels when enabled.
10882         (-funit-at-a-time): Document new behaviour.
10883         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
10884         -fno-section-anchors when disabled explicitly.
10885         (inline params): They are not ignored now.
10886         (precompiled headers): Remove unit-at-a-time as being incompatible.
10887         * opts.c (decode_options): Handle unit-at-a-time as alias;
10888         imply -fno-section-anchors when toplevel reorder is disabled
10889         explicitly.
10890         * common.opt (ftoplevel-reorder): Set default value to 2.
10891         (funit-at-a-time): Set default value to 1.
10892         * config/rs6000/rs6000.c (optimization_options): Set section anchors
10893         to 2.
10894
10895 2008-07-19  Jan Hubicka  <jh@suse.cz>
10896
10897         * builtins.c (expand_builtin_int_roundingfn,
10898         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
10899         it is not useful.
10900
10901 2008-07-19  Richard Guenther  <rguenther@suse.de>
10902
10903         PR bootstrap/36864
10904         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
10905         * tree-ssa-sccvn.c (get_constant_value_id): New function.
10906         * tree-ssa-pre.c (get_expr_value_id): For newly created
10907         constant value-ids make sure to add the expression to its
10908         expression-set.
10909
10910 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
10911
10912         PR middle-end/36877
10913         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
10914         return value of the builtin is ignored.
10915
10916 2008-07-19  Olivier Hainque  <hainque@adacore.com>
10917
10918         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
10919         bits, a C conformant malloc implementation has to provide.
10920         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
10921
10922 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
10923
10924         PR target/36780
10925         PR target/36827
10926         * reload.c (find_reloads_subreg_address): Only reload address if
10927         reloaded == 0, not for reloaded != 1.
10928
10929         Revert:
10930         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
10931         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
10932         (m32c_legitimate_address_p): Handle "++rii" addresses created by
10933         m32c_legitimize_reload_address.
10934
10935         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10936         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
10937         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
10938
10939 2008-07-19  Olivier Hainque  <hainque@adacore.com>
10940
10941         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
10942         argument, saying whether nested array are to be collapsed
10943         into a single array type DIE with multiple subscripts.
10944         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
10945         issues, centralize the nested array types collapsing control and
10946         disable the transformation for Ada.
10947
10948 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
10949
10950         PR target/36786
10951         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
10952         x86_64_shift_adj.
10953         (x86_64_shift_adj_2): New expander.
10954         (x86_64_shift_adj_3): Ditto.
10955         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
10956         to split TImode operands.
10957         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
10958         (ix86_split_lshr): Ditto.
10959
10960 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
10961
10962         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
10963         and __CHAR32_TYPE__.
10964         * c-typeck.c (digest_init): Support char16_t and char32_t.
10965         (set_nonincremental_init_from_string): Idem.
10966
10967 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
10968
10969         PR middle-end/36859
10970         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
10971         PREFERRED_STACK_BOUNDARY.
10972         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
10973
10974 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
10975
10976         PR middle-end/36858
10977         * function.c (locate_and_pad_parm): Cap boundary earlier.
10978
10979 2008-07-17  Julian Brown  <julian@codesourcery.com>
10980
10981         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
10982         no-op for targets which don't use DLLs.
10983
10984 2008-07-17  Martin Jambor  <mjambor@suse.cz>
10985
10986         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
10987         that nodes are relevant by examining the node->analyzed flag.
10988         (ipcp_init_stage): Check which nodes are relevant, assert that the
10989         relevant ones are also required.
10990         (ipcp_propagate_stage): Check on the side arrays are properly
10991         allocated.
10992         (ipcp_print_all_jump_functions): Make sure not to touch any node
10993         that is not analyzed or an edge that does not have a corresponding
10994         entry in the on-the-side vectors.
10995         (ipcp_function_scale_print): Likewise.
10996         (ipcp_update_callgraph): Check that the node is relevant.
10997         (ipcp_insert_stage): Check that the node is relevant.  Check there is
10998         an info for every node and edge.
10999         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
11000         (ipa_print_all_tree_maps): Likewise and a new variable info.
11001         (ipa_print_all_params_modified): Likewise.
11002         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
11003
11004 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
11005
11006         PR target/25343
11007         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
11008
11009 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
11010
11011         PR rtl-optimization/36753
11012         * fwprop.c (use_killed_between): Don't shortcut
11013         single-definition global registers.
11014
11015 2008-07-16  Jan Hubicka  <jh@suse.cz>
11016
11017         * cgraph.h (varpool_empty_needed_queue): Declare.
11018         * cgraphunit.c (output_in_order): Mark all variables as needed;
11019         empty the queue.
11020         * varpool.c (varpool_assemble_node): Update debug queue.
11021         (varpool_assemble_pending_decls): Don't do it here.
11022         (varpool_empty_needed_queue):  New function.
11023
11024 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11025
11026         * recog.c (peephole2_optimize): Fix formatting.
11027
11028 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11029
11030         * c-pch.c (get_ident): Avoid C++ keywords.
11031         * combine-stack-adj.c (single_set_for_csa): Likewise.
11032         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
11033         output_asm_insn): Likewise.
11034         * reload.c (push_secondary_reload, find_reusable_reload,
11035         push_reload, combine_reloads, find_reloads,
11036         debug_reload_to_stream): Likewise.
11037         * reload.h (struct reload): Likewise.
11038         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
11039         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
11040         emit_output_reload_insns): Likewise.
11041         * targhooks.c (default_secondary_reload): Likewise.
11042         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
11043
11044 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11045
11046         * recog.c (validate_change_1, validate_change,
11047         validate_unshare_change, validate_replace_rtx_1, struct
11048         funny_match, constrain_operands, peephole2_optimize): Avoid C++
11049         keywords.
11050         * reload.c (push_secondary_reload, secondary_reload_class,
11051         scratch_reload_class, find_valid_class, find_reusable_reload,
11052         push_reload, find_dummy_reload, find_reloads_address_1,
11053         find_reloads_address_part, find_equiv_reg): Likewise.
11054         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
11055         choose_reload_regs): Likewise.
11056         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
11057         Likewise.
11058         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
11059         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
11060         * sched-rgn.c (concat_INSN_LIST): Likewise.
11061         * stor-layout.c (mode_for_size, mode_for_size_tree,
11062         smallest_mode_for_size): Likewise.
11063
11064 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11065
11066         * cfg.c (dump_reg_info): Avoid C++ keywords.
11067         * dwarf2asm.c (dw2_force_const_mem,
11068         dw2_asm_output_encoded_addr_rtx): Likewise.
11069         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
11070         * expmed.c (expand_shift): Likewise.
11071         * global.c (find_reg): Likewise.
11072         * graph.c (draw_edge): Likewise.
11073         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
11074         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
11075         widen_clz, widen_bswap, expand_parity, expand_unop,
11076         emit_cmp_and_jump_insn_1): Likewise.
11077         * postreload.c (reload_cse_simplify_operands): Likewise.
11078         * ra.h (add_neighbor): Likewise.
11079         * reg-stack.c (remove_regno_note, change_stack): Likewise.
11080         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
11081         record_reg_classes, copy_cost, record_address_regs,
11082         invalid_mode_change_p): Likewise.
11083         * regrename.c (regrename_optimize, scan_rtx_reg,
11084         dump_def_use_chain, find_oldest_value_reg,
11085         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
11086
11087 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
11088
11089         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
11090         MASK_POWERPC64 for power4 in previous commit.
11091
11092 2008-07-16  Olivier Hainque  <hainque@adacore.com>
11093
11094         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
11095         instead of bare conversion to cast const-ness away.
11096
11097 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
11098
11099         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
11100         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
11101         * config/xtensa/xtensa.c (xtensa_function_value): New function.
11102         (TARGET_FUNCTION_VALUE): Define.
11103
11104 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
11105
11106         * config/rs6000/rs6000.c (processor_target_table): Add
11107         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
11108
11109 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
11110
11111         PR target/36827
11112         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
11113         (m32c_legitimate_address_p): Handle "++rii" addresses created by
11114         m32c_legitimize_reload_address.
11115
11116 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
11117
11118         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
11119         DECL_IN_SYSTEM_HEADER in sync.
11120
11121 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
11122
11123         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
11124         * tree-ssa-pre.c (pre_expr_eq): Ditto
11125         (get_constant_for_value_id): Take a type as an argument.
11126         (fully_constant_expression): Pass in type.
11127         (find_or_generate_expression): Short circuit constant case.
11128         (create_expression_by_pieces): Remove special casing of
11129         pointer_plus.
11130         (do_regular_insertion): Short circuit constant case.
11131         (do_partial_partial_insertion): Ditto.
11132
11133 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11134
11135         PR target/36782
11136         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
11137
11138 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
11139
11140         * config/xtensa/libgcc-xtensa.ver: New file.
11141         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
11142
11143 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11144
11145         * df-problems.c (df_set_note): Avoid C++ keywords.
11146         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
11147         * dse.c (record_store, remove_useless_values): Likewise.
11148         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
11149         gen_reg_rtx_offset, operand_subword, change_address_1,
11150         change_address, adjust_address_1, offset_address,
11151         widen_memory_access, emit_copy_of_insn_after): Likewise.
11152         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
11153         * fwprop.c (should_replace_address, propagate_rtx_1,
11154         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
11155         Likewise.
11156         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
11157         gcse_emit_move_after, update_ld_motion_stores): Likewise.
11158         * lcm.c (compute_insert_delete, pre_edge_lcm,
11159         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
11160         * lower-subreg.c (resolve_reg_notes): Likewise.
11161         * mode-switching.c (optimize_mode_switching): Likewise.
11162
11163 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11164
11165         * bt-load.c (add_btr_def, migrate_btr_def,
11166         branch_target_load_optimize): Avoid C++ keywords.
11167         * caller-save.c (insert_restore, insert_save, insert_one_insn):
11168         Likewise.
11169         * combine.c (subst, simplify_set, make_extraction,
11170         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
11171         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
11172         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
11173
11174 2008-07-15  Richard Guenther  <rguenther@suse.de>
11175
11176         PR middle-end/36369
11177         * c-common.c (strict_aliasing_warning): Do not warn for
11178         TYPE_REF_CAN_ALIAS_ALL pointers.
11179         (c_common_get_alias_set): may_alias types are not special.
11180         * tree.c (build_pointer_type_for_mode): Look up the may_alias
11181         attribute and set can_ref_all accordingly.
11182         (build_reference_type_for_mode): Likewise.
11183         * doc/extend.texi (may_alias): Clarify.
11184
11185 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11186
11187         PR target/36780
11188         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
11189         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
11190
11191 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11192
11193         PR target/31568
11194         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
11195         gcc_assert, instead call output_operand_lossage.
11196
11197 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
11198
11199         * builtins.c (std_canonical_va_list): Treat structure based
11200         va_list types.
11201
11202 2008-07-15  Ben Elliston  <bje@au.ibm.com>
11203
11204         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
11205
11206 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
11207
11208         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
11209         is set.
11210
11211 2008-07-14  Jan Hubicka  <jh@suse.cz>
11212
11213         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
11214         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
11215         fix predicates and constraints.
11216         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
11217         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
11218
11219 2008-07-14  Doug Kwan  <dougkwan@google.com>
11220
11221         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
11222         additional option file arm/eabi.opt.
11223         * config/arm/eabi.h (File): New configuration file for EABI targets.
11224         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
11225         SUBSUBTARGET_EXTRA_SPECS.
11226         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
11227         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
11228         from STARTFILE_SPEC so that it can be referenced in an override.
11229         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
11230         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
11231         can be referenced in an override.
11232         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
11233         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
11234         so that it can be referenced in an override.
11235         (LINK_SPEC): Use BPABI_LINK_SPEC.
11236         * config/arm/eabi.opt (File): New.
11237
11238 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11239
11240         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
11241         (FIXED_VALUE_H): New variable.
11242         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
11243         input.h, fixed-value.h.
11244         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
11245         (BASIC_BLOCK_H): Use $(BITMAP_H).
11246         (FUNCTION_H): Add varray.h.
11247         (IPA_REFERENCE_H): Use $(BITMAP_H).
11248         (CGRAPH_H): Add $(BASIC_BLOCK_H).
11249         (DF_H): Use $(BITMAP_H).
11250         (GGC_H): Add statistics.h.
11251         (INSN_ADDR_H): New.
11252         (INSN_ATTR_H): Use it.
11253         (SYSTEM_H): Add safe-ctype.h, filenames.h.
11254         (INPUT_H): New.
11255         (SYMTAB_H): Add $(OBSTACK_H).
11256         (CPP_INTERNAL_H): New.
11257         (TREE_DUMP_H): Add tree-pass.h.
11258         (TREE_FLOW_H): Use $(BITMAP_H)
11259         (PRETTY_PRINT_H): Use $(INPUT_H).
11260         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
11261         (GSTAB_H): New.
11262         (BITMAP_H): New.
11263         (many object files): Fix lots of header dependencies throughout.
11264
11265 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11266
11267         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
11268         New macros.
11269         (s-gtyp-input): Use them to write tmp-gi.list.
11270         (echo_to_gi.list): Remove.
11271
11272 2008-07-14  Richard Guenther  <rguenther@suse.de>
11273
11274         * tree-ssa-sccvn.c (pre_info): Remove.
11275         (switch_to_PRE_table): Likewise.
11276         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
11277         (set_hashtable_value_ids): Do not create value-ids for the
11278         optimistic tables.
11279         (run_scc_vn): Remove double test.  Remove bogus special-case
11280         in value-number printing.
11281         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
11282         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
11283         SSA_NAME_VALUE.
11284         * tree-flow-inline.h (get_value_handle): Remove.
11285         * tree-flow.h (get_value_handle): Remove.
11286
11287 2008-07-14  Martin Jambor  <mjambor@suse.cz>
11288
11289         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
11290         in which we generate arithmetics is not a subrange.
11291
11292 2008-07-14  Martin Jambor  <mjambor@suse.cz>
11293
11294         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
11295
11296 2008-07-14  Richard Guenther  <rguenther@suse.de>
11297
11298         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
11299
11300 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
11301
11302         PR target/36745
11303         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
11304         reload for symbol refs moved to r0 with -fPIC.
11305         (legitimize_pic_address): Use the target register as temporary
11306         reg if possible.
11307         (emit_symbolic_move): Adjust comment.
11308         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
11309         New expanders.
11310
11311 2008-07-14  Ben Elliston  <bje@au.ibm.com>
11312
11313         * c-common.h (C_CPP_HASHNODE): New macro.
11314         * coretypes.h (struct cpp_token): Forward declare.
11315         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11316         the context-sensitive keyword method.
11317         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
11318         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
11319         expand_bool_pixel): New.
11320         (altivec_categorize_keyword): New function.
11321         (init_vector_keywords): New function.
11322         (rs6000_macro_to_expand): Likewise.
11323         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
11324         compiling an ISO C dialect.
11325
11326 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
11327
11328         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
11329         (create_expression_by_pieces): Fix typo.
11330         (do_regular_insertion): Use debug counter here too.
11331
11332 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
11333
11334         PR target/35492.
11335         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
11336         CONST_OK_FOR_LETTER_P.  All port-local users changed.
11337         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
11338         implement Kp matching power-of-two.
11339         (CONSTRAINT_LEN): Define to match.
11340         * config/cris/cris.md: Replace all use of constraint K with Kc.
11341         ("*btst*): Use Kp for operand 0 of last alternative.
11342
11343 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11344
11345         PR testsuite/36440
11346         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
11347         and quad formats.
11348
11349 2008-07-13  Jan Hubicka  <jh@suse.cz>
11350
11351         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
11352         to be mangled too.
11353
11354 2008-07-13  Richard Guenther  <rguenther@suse.de>
11355
11356         PR middle-end/36811
11357         * langhooks.c (lhd_print_error_function): Deal with recursive
11358         BLOCK trees.
11359
11360 2008-07-12  Jan Hubicka  <jh@suse.cz>
11361
11362         * cgraph.c (assembler_name_hash): New static var.
11363         (hash_node_by_assembler_name, eq_assembler_name): New.
11364         (cgraph_node_for_asm): Use hashtable.
11365         (cgraph_remove_node): Maintain hashtable.
11366         (change_decl_assembler_name): Sanity check that names are not changing
11367         after aliasing was processed.
11368         * cgraph.h (varpoon_node): Add next GGC marker.
11369         * tree.c (decl_assembler_name_equal): Constify.
11370         (decl_assembler_name_hash): New.
11371         * tree.h (decl_assembler_name_equal): Constify.
11372         (decl_assembler_name_hash): Update.
11373
11374 2008-07-12  David Daney  <ddaney@avtrex.com>
11375
11376         * config/mips/driver-native.c (host_detect_local_cpu): Handle
11377         sb1 and r5000 cpus.
11378
11379 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11380
11381         * doc/md.texi: Document the MIPS "v" constraint.
11382         * config/mips/mips.h (reg_class): Revert last change.
11383         (REG_CLASS_NAMES): Likewise.
11384         (REG_CLASS_CONTENTS): Likewise.
11385         * config/mips/mips.c (mips_regno_to_class): Likewise.
11386         * config/mips/constraints.md (v): Likewise, but add documentation.
11387         Add a comment to say that this constraint should not be used in
11388         gcc code.
11389
11390 2008-07-11  DJ Delorie  <dj@redhat.com>
11391
11392         * config/h8300/h8300.md (length): Fix branch offset limit.
11393
11394 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
11395
11396         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
11397         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
11398         (avr_hard_regno_scratch_ok): New function.
11399         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
11400         * config/avr/avr.md (all peepholes that request a scratch register):
11401         Remove avr_peep2_scratch_safe use.
11402
11403 2008-07-11  Tom Tromey  <tromey@redhat.com>
11404             Ian Lance Taylor  <iant@google.com>
11405
11406         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
11407         (struct c_common_resword): Define.
11408         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
11409         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
11410         (c_common_reswords, num_c_common_reswords): Declare.
11411         * c-common.c (c_common_reswords): New global const array.
11412         (num_c_common_reswords): New const int.
11413         * c-parser.c (struct resword, reswords): Don't define.
11414         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
11415         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
11416         than reswords.  If warning about C++ keywords, give them a special
11417         RID code.
11418         (c_lex_one_token): Warn about C++ keywords.  Call
11419         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
11420         (c_parser_external_declaration): Look for RID_xxx rather than
11421         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
11422         (c_parser_statement_after_labels): Likewise.
11423         (c_parser_objc_class_instance_variables): Likewise.
11424         (c_parser_objc_class_declaration): Likewise.
11425         (c_parser_objc_try_catch_statement): Likewise.
11426         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
11427         (declspecs_add_type): Likewise.
11428
11429 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
11430
11431         * ggc-page.c (alloc_page):
11432         Substituting xmalloc, xcalloc with
11433         XNEWVEC and XCNEWVAR macros which add the
11434         needed casts.
11435
11436 2008-07-11  Richard Guenther  <rguenther@suse.de>
11437
11438         PR tree-optimization/36765
11439         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
11440         aliases from HEAP vars to SMTs.
11441
11442 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11443
11444         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
11445         * configure.ac (loose_warn): Move -Wc++-compat from here...
11446         (strict_warn): ...to here.
11447         * configure: Regenerate.
11448
11449 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
11452         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
11453         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
11454         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
11455         excluding more specific h8300-*-* and sh-*-* targets.
11456
11457 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
11458
11459         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
11460         (eliminate): Ditto.
11461         (execute_pre): Call loop_optimizer_finalize in early exit.
11462
11463 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
11464
11465         PR middle-end/36790
11466         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
11467         uids in the bitmap, not just VAR_DECL uids.
11468
11469         PR rtl-optimization/36419
11470         * combine-stack-adj.c (adjust_frame_related_expr): New function.
11471         (combine_stack_adjustments_for_block): Call it if needed.  Delete
11472         correct insn.
11473         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
11474         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
11475         prologue sp adjustment.
11476
11477 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
11478
11479         PR other/28322
11480         * opts.c (print_ignored_options): Report postponed diagnostics for
11481         unknown -Wno-* options as warnings, not errors.
11482         (postpone_unknown_option_error): Renamed to...
11483         (postpone_unknown_option_warning): ... this.
11484
11485 2008-07-09  Doug Kwan  <dougkwan@google.com>
11486
11487         Revert:
11488         2008-07-08  Doug Kwan  <dougkwan@google.com>
11489
11490         * config/arm/arm.opt (mandroid): New option.
11491         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
11492         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
11493         (CC1_SPEC): Same.
11494         (CC1PLUS_SPEC): Same.
11495         (LIB_SPEC): Same.
11496         (STARTFILE_SPEC): Same.
11497         (ENDFILE_SPEC): Same.
11498         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
11499         used.
11500
11501 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
11502
11503         PR target/35802
11504         * config/mips/mips.h (reg_class): Remove V1_REG.
11505         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
11506         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
11507         instead of V1_REGS.
11508         (mips_get_tp): New function.
11509         (mips_legitimize_tls_address): Use it.
11510         * config/mips/constraints.md (v): Delete.
11511         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
11512         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
11513         After reload, split into a move and ...
11514         (*tls_get_tp_<mode>_split): ...this new instruction.
11515
11516 2008-07-09  David Daney  <ddaney@avtrex.com>
11517
11518         * config/mips/driver-native.c: Include coretypes.h and tm.h.
11519
11520 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
11521
11522         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
11523         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
11524         Add c argument.
11525         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
11526         htab_delete should be called.  Don't free c.
11527         (lookup_tmp_var): Create temp_htab lazily.
11528         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
11529         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
11530         callers.
11531         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
11532         lower_omp_ordered, lower_omp_critical, lower_omp_for,
11533         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
11534         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
11535         * tree-sra.c (generate_element_init): Likewise.
11536         * tree-mudflap.c (execute_mudflap_function_ops,
11537         execute_mudflap_function_decls): Likewise.
11538         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
11539         * tree-gimple.h (struct gimplify_ctx): New type.
11540         (push_gimplify_context): Adjust prototype.
11541
11542 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
11543
11544         * tree-ssa-pre.c (phi_translate_1): Update placement of
11545         add_to_value calls.
11546
11547 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
11548
11549         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
11550         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
11551         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
11552         * targhooks.c (default_hard_regno_scratch_ok): New function.
11553         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
11554         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
11555         * recog.c:  Include "target.h".
11556         (peep2_find_free_register): Add check for global regs. Add target
11557         specific check.
11558         * Makefile.in (recog.o): Depend on target.h.
11559
11560 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11561
11562         * config/sh/sh.c (sh_canonical_va_list_type): New.
11563         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
11564
11565 2008-07-09  Raksit Ashok <raksit@google.com>
11566
11567         * doc/invoke.texi (Option Summary): Mention new option
11568         -Wdisallowed-function-list=...
11569         (Warning Options): Document -Wdisallowed-function-list=...
11570         * common.opt (Wdisallowed-function-list=): New flag.
11571         * flags.h (warn_disallowed_functions): External definition of new
11572         boolean warning flag.
11573         (warn_if_disallowed_function_p): Declare new function.
11574         * opts.c (warning_disallowed_functions): New static variable.
11575         (warn_disallowed_functions): New boolean warning flag.
11576         (warn_if_disallowed_function_p): New function.
11577         (add_comma_separated_to_vector): Rename
11578         add_instrument_functions_exclude_list to this.
11579         (common_handle_option): Handle new option. Rename calls to
11580         add_instrument_functions_exclude_list into calls to
11581         add_comma_separated_to_vector.
11582         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
11583         based on flag warn_disallowed_functions.
11584
11585 2008-07-09  Christian Bruel  <christian.bruel@st.com>
11586
11587         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
11588          instead of get_attr_length.
11589
11590 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11591
11592         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
11593         keywords.
11594         * genemit.c (gen_insn): Likewise.
11595         * gengtype.c (note_def_vec): Likewise.
11596         * gengtype.h (note_def_vec): Likewise.
11597         * genoutput.c (struct data, output_insn_data, process_template,
11598         gen_expand, gen_split, note_constraint): Likewise.
11599         * genrecog.c (new_decision, add_to_sequence, factor_tests,
11600         make_insn_sequence): Likewise.
11601         * gensupport.c (record_insn_name): Likewise.
11602
11603 2008-07-08  Doug Kwan  <dougkwan@google.com>
11604
11605         * config/arm/arm.opt (mandroid): New option.
11606         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
11607         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
11608         (CC1_SPEC): Same.
11609         (CC1PLUS_SPEC): Same.
11610         (LIB_SPEC): Same.
11611         (STARTFILE_SPEC): Same.
11612         (ENDFILE_SPEC): Same.
11613         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
11614         used.
11615
11616 2008-07-08  Raksit Ashok  <raksit@google.com>
11617
11618         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
11619         (set_storage_via_setmem): Fix expected_align parameter.
11620         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
11621         missing from the list.
11622         * doc/md.texi (movmem): Explicitly state that expected alignment is
11623         to be expressed in bytes.
11624         (setmem): Explicitly state that expected alignment is to be expressed
11625         in bytes.
11626
11627 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
11628
11629         * reload.c (find_reloads_subreg_address): Do not require validity
11630         of address in original mode before reloading address.
11631
11632 2008-07-07  Tianwei Sheng  <tianweis@google.com>
11633
11634         * df-core.c (df_remove_problem): Adjust the access to avoid out of
11635         bounds array access.
11636
11637 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
11638
11639         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
11640
11641 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
11642
11643         Fix PR tree-optimization/23455
11644         Fix PR tree-optimization/35286
11645         Fix PR tree-optimization/35287
11646         * Makefile.in (OBJS-common): Remove tree-vn.o.
11647         (tree-vn.o): Remove.
11648         * dbgcnt.def: Add treepre_insert debug counter.
11649         * gcc/tree-flow.h (add_to_value): Updated for other changes.
11650         (debug_value_expressions): Ditto.
11651         (print_value_expressions): Ditto.
11652         * tree-pretty-print.c (dump_generic_node): Updated for
11653         VALUE_HANDLE removal.
11654         * tree-ssa-dom.c (record_equality): Ditto.
11655         (cprop_operand): Ditto.
11656         (lookup_avail_expr): Ditto.
11657         * tree-ssa-threadedge.c
11658         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
11659         (simplify_control_stmt_condition): Ditto.
11660         * tree.c (tree_code_size): Ditto.
11661         (tree_node_structure): Ditto.
11662         (iterative_hash_expr): Ditto.
11663         * tree.def: Ditto.
11664         * tree.h (VALUE_HANDLE_ID): Ditto.
11665         (VALUE_HANDLE_EXPR_SET): Ditto.
11666         (struct tree_value_handle): Ditto.
11667         (union tree_node): Ditto.
11668         * treestruct.def: Ditto.
11669         * tree-vn.c: Removed.
11670         * tree-ssa-pre.c: Rewritten entirely.
11671         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
11672         (constant_value_ids): Ditto.
11673         (vn_nary_op_t): Moved to header.
11674         (vn_phi_t): Ditto.
11675         (vn_reference_op_t): Ditto
11676         (vn_reference_t): Ditto.
11677         (next_value_id): New variable.
11678         (VN_INFO): Add an assert.
11679         (vn_constant_eq): New function.
11680         (vn_constant_hash): Ditto.
11681         (get_or_alloc_constant_value_id): Ditto.
11682         (value_id_constant_p): Ditto.
11683         (vn_reference_compute_hash): De-staticify.
11684         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
11685         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
11686         (valueize_refs): Update opcode if it changes from ssa name to constant.
11687         (vn_reference_lookup_1): Add new argument.
11688         (vn_reference_lookup):  Ditto.
11689         (vn_reference_lookup_pieces): New function.
11690         (vn_reference_insert): Add return type. Modify to deal with value ids.
11691         (vn_reference_insert_pieces):  New function.
11692         (vn_nary_op_compute_hash): De-staticify.
11693         (vn_nary_op_eq): Ditto.
11694         (vn_nary_op_lookup_pieces): New function.
11695         (vn_nary_op_lookup): Add new argument.
11696         (vn_nary_op_insert_pieces): New function.
11697         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
11698         (vn_phi_insert): Ditto.
11699         (visit_unary_op): Update for callee changes.
11700         (visit_binary_op): Ditto.
11701         (visit_reference_op_load): Ditto.
11702         (visit_reference_op_store): Ditto.
11703         (init_scc_vn): Init next_value_id, constant_to_value_id and
11704         constant_value_ids.
11705         (free_scc_vn): Free them.
11706         (set_hashtable_value_ids): New function.
11707         (run_scc_vn): Use it.
11708         (get_max_value_id): New function.
11709         (get_next_value_id): Ditto.
11710         (expressions_equal_p): Moved from tree-vn.c
11711         (sort_vuses): Ditto.
11712         (sort_vuses_heap): Ditto.
11713         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
11714         above).
11715         * tree.c (iterative_hash_hashval_t): Made non-static
11716         * tree.h (iterative_hash_hashval_t): Declare it.
11717
11718 2008-07-08  Martin Jambor  <mjambor@suse.cz>
11719
11720         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
11721         instead of ipa_create_node_params.
11722         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
11723         ipa_check_create_edge_args, free them with
11724         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
11725
11726         * ipa-prop.c: Include flags.h and tree-inline.h.
11727         (ipa_node_params_vector): New variable.
11728         (ipa_edge_args_vector): New variable.
11729         (edge_removal_hook_holder): New variable.
11730         (node_removal_hook_holder): New variable.
11731         (edge_duplication_hook_holder): New variable.
11732         (node_duplication_hook_holder): New variable.
11733         (ipa_detect_param_modifications): Check for presence of modified flags.
11734         (ipa_compute_jump_functions): Check for presence of jump functions.
11735         (ipa_free_edge_args_substructures): New function.
11736         (ipa_create_node_params): Removed.
11737         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
11738         (ipa_free_node_params_substructures): New function.
11739         (ipa_free_all_node_params): Changed to deallocate the on-the-side
11740         vector.
11741         (ipa_edge_removal_hook): New function.
11742         (ipa_node_removal_hook): New function.
11743         (duplicate_array): New function.
11744         (ipa_edge_duplication_hook): New function.
11745         (ipa_node_duplication_hook): New function.
11746         (ipa_register_cgraph_hooks): New function.
11747         (ipa_unregister_cgraph_hooks): New function.
11748         (free_all_ipa_structures_after_ipa_cp): New function.
11749
11750         * ipa-prop.h: Include vec.h.
11751         (ipa_node_params_t): New typedef with vector types for it.
11752         (ipa_edge_args_t):  New typedef with vector types for it.
11753         (IPA_NODE_REF): Changed to access an on-the-side vector.
11754         (IPA_EDGE_REF): Changed to access an on-the-side vector.
11755         (ipa_check_create_node_params): New function.
11756         (ipa_check_create_edge_args): New function.
11757
11758         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
11759         all users.
11760
11761 2008-07-07  Tom Tromey  <tromey@redhat.com>
11762
11763         * configure, config.in: Rebuilt.
11764         * configure.ac: Don't check for scandir or alphasort.
11765
11766 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
11767
11768         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
11769         types immediately after creating them.
11770
11771 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
11772
11773         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
11774
11775 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
11776
11777         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
11778         dump_constraint_graph.
11779         (dump_constraint_edge): New function.
11780         (dump_constraint_graph): New function.
11781         (debug_constraint_graph): New function.
11782         (dump_constraint): Removed useless comparison.
11783         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
11784         (dump_constraint_graph): Declare.
11785         (debug_constraint_graph): Declare.
11786         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
11787
11788 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
11789
11790         * config/i386/i386.c (is_va_list_char_pointer): New.
11791         (ix86_va_start): Replace compare with ms_va_list_type_node
11792         by is_va_list_char_pointer.
11793         (ix86_gimplify_va_arg): Likewise.
11794
11795 2008-07-07  Martin Jambor  <mjambor@suse.cz>
11796
11797         * cgraph.c (cgraph_edge_max_uid): New variable.
11798         (struct cgraph_edge_hook_list): New type.
11799         (struct cgraph_node_hook_list): New type.
11800         (struct cgraph_2edge_hook_list): New type.
11801         (struct cgraph_2node_hook_list): New type.
11802         (first_cgraph_edge_removal_hook): New variable.
11803         (first_cgraph_node_removal_hook): New variable.
11804         (first_cgraph_edge_duplicated_hook): New variable.
11805         (first_cgraph_node_duplicated_hook): New variable.
11806         (cgraph_add_edge_removal_hook): New function.
11807         (cgraph_remove_edge_removal_hook): New function.
11808         (cgraph_call_edge_removal_hooks):  New function.
11809         (cgraph_add_node_removal_hook):  New function.
11810         (cgraph_remove_node_removal_hook):  New function.
11811         (cgraph_call_node_removal_hooks):  New function.
11812         (cgraph_add_edge_duplication_hook):  New function.
11813         (cgraph_remove_edge_duplication_hook):  New function.
11814         (cgraph_call_edge_duplication_hooks):  New function.
11815         (cgraph_add_node_duplication_hook):  New function.
11816         (cgraph_remove_node_duplication_hook):  New function.
11817         (cgraph_call_node_duplication_hooks):  New function.
11818         (cgraph_create_edge): Assign to edge uid.
11819         (cgraph_remove_edge): Call edge removal hooks.
11820         (cgraph_node_remove_callees): Call edge removal hooks.
11821         (cgraph_node_remove_callers): Call edge removal hooks.
11822         (cgraph_remove_node): Call node removal hooks.
11823         (cgraph_clone_edge): Call edge duplication hooks.
11824         (cgraph_clone_node): Call node duplication hooks.
11825
11826         * cgraph.h (cgraph_edge): New field uid.
11827         (cgraph_edge_hook): New type.
11828         (cgraph_node_hook): New type.
11829         (cgraph_2edge_hook): New type.
11830         (cgraph_2node_hook): New type.
11831
11832 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
11833
11834         * config.in: Regenerate.
11835
11836 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
11837
11838         * gcc.c (print_sysroot): New.
11839         (option_map, display_help, process_command): Handle the
11840         -print-sysroot option.
11841         (main): Print the sysroot if requested.
11842         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
11843
11844 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11845
11846         PR target/34780
11847         * unwind-pe.h (size_of_encoded_value): add attribute unused.
11848
11849 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
11850
11851         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
11852         (assign_parm_setup_block_p): Also check mode of entry_parm.
11853
11854 2008-07-07  Richard Guenther  <rguenther@suse.de>
11855
11856         * tree-ssa-structalias.h (set_used_smts): Remove.
11857         * tree-ssa-structalias.c (used_smts): Likewise.
11858         (set_used_smts): Likewise.
11859         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
11860         call to set_used_smts.
11861
11862 2008-07-07  Richard Guenther  <rguenther@suse.de>
11863
11864         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
11865         (new_var_info): Set it to false.
11866         (solution_set_add): Correctly handle pointers outside a var and
11867         inside a field.
11868         (type_safe): Treat variables with is_full_var properly.
11869         (do_sd_constraint): Likewise.
11870         (do_ds_constraint): Likewise.
11871         (process_constraint): Remove zeroing offset for !use_field_sensitive.
11872         (get_constraint_for_ptr_offset): New function.
11873         (get_constraint_for_component_ref): For addresses at least include
11874         the last field of the variable.  Handle is_full_vars properly.
11875         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
11876         (handle_ptr_arith): Remove.
11877         (find_func_aliases): Simplify assignment handling.
11878         (create_function_info_for): For parameter and result varinfos set
11879         is_full_var flag.
11880         (create_variable_info_for): Set is_full_var flag whenever we
11881         just created a single varinfo for a decl.
11882         (init_alias_vars): Initialize use_field_sensitive from
11883         max-fields-for-field-sensitive parameter.
11884
11885 2008-07-07  Richard Guenther  <rguenther@suse.de>
11886
11887         PR tree-optimization/36713
11888         * tree-flow-inline.h (is_call_used): New function.
11889         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
11890         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
11891         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
11892
11893 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
11894
11895         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
11896
11897 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
11898
11899         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
11900
11901 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
11902             Nathan Sidwell  <nathan@codesourcery.com>
11903
11904         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
11905         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
11906         tmake_file.
11907         * config/m68k/t-linux: New.
11908         * doc/install.texi: Document m68k-*-linux is now multilibbed by
11909         default.
11910
11911 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11912
11913         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
11914         * config/m68k/m68k-devices.def: Remove multilibs that only differ
11915         by MAC/EMAC.
11916
11917 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11918
11919         * gcc.c (execute): Fix -Wc++-compat warning.
11920
11921 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11922
11923         PR target/36720
11924         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
11925         constant for little endian.
11926
11927 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
11928
11929         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
11930         mips_base_mips16 instead of TARGET_MIPS16.
11931         (mips_base_mips16): Declare.
11932         * config/mips/mips.c (mips_base_mips16): Make global.
11933         (was_mips16_p): Remove GTY marker.
11934         (was_mips16_pch_p): New variable.
11935         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
11936         (mips_override_options): Force to non-MIPS16 mode initially.
11937         Do not complain about MIPS16 PIC incompatibilities here.
11938         Only allow -mgpopt if -mexplicit-relocs is in force for
11939         non-MIPS16 code.
11940
11941 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
11942
11943         * configure.ac: Check for caddr_t, define to char * if not defined.
11944         * configure: Regenerate.
11945         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
11946         (mmap_gt_pch_use_address): Likewise.
11947         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
11948
11949 2008-07-06  Richard Guenther  <rguenther@suse.de>
11950
11951         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
11952         (new_var_info): Deal with it.
11953         (solution_set_add): Likewise.
11954         (bitpos_of_field): Make signed, fix.
11955         (struct fieldoff): Remove type and decl fields.  Make size field
11956         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
11957         flags.
11958         (fieldoff_compare): Deal with it.
11959         (push_fields_onto_fieldstack): Remove has_union argument, glob
11960         adjacent non-pointer fields together.
11961         (create_function_info_for): Do not set has_union.
11962         (create_variable_info_for): Simplify.
11963
11964 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
11965
11966         * config.gcc (extra_headers): Add cross-stdarg.h for target
11967         x86_64-*-* and i?86-*-*.
11968         * config/i386/cross-stdarg.h: New.
11969         * builtins.c (std_fn_abi_va_list): New.
11970         (std_canonical_va_list_type): New.
11971         (stabilize_va_list): Replace va_list_type_node use by
11972         mtarget.canonical_va_list_type.
11973         (gimplify_va_arg_expr): Likewise.
11974         (expand_builtin_va_copy): Replace va_list_type_node use by
11975         mtarget.fn_abi_va_list.
11976         * tree-sra.c (is_va_list_type): New helper.
11977         (decl_can_be_decomposed_p): Replace
11978         va_list_type_node use by is_va_list_type.
11979         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
11980         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11981         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
11982         * config/i386/i386-protos.h (ix86_get_valist_type): New.
11983         (ix86_enum_va_list): New.
11984         * config/i386/i386.c (sysv_va_list_type_node): New.
11985         (ms_va_list_type_node): New.
11986         (ix86_function_type_abi): Remove sorry.
11987         (ix86_build_builtin_va_list_abi): New.
11988         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
11989         for 64-bit targets.
11990         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
11991         (ix86_init_builtins_va_builtins_abi): New.
11992         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
11993         for 64-bit targets.
11994         (ix86_handle_abi_attribute): New.
11995         (attribute_spec): Add sysv_abi and ms_abi.
11996         (ix86_fn_abi_va_list): New.
11997         (ix86_canonical_va_list_type): New.
11998         (ix86_enum_va_list): New.
11999         (TARGET_FN_ABI_VA_LIST): New.
12000         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12001         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
12002         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
12003         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12004         (TARGET_ENUM_VA_LIST): New.
12005         * expr.h (std_fn_abi_va_list): New.
12006         (std_canonical_va_list_type): New.
12007         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
12008         (TARGET_CANONICAL_VA_LIST_TYPE): New.
12009         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
12010         TARGET_CANONICAL_VA_LIST_TYPE.
12011         * target.h (struct gcc_target): Add fn_abi_va_list hook
12012         and canonical_va_list_type hook.
12013
12014 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12015
12016         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
12017         integral and pointer types.
12018
12019 2008-07-04  Roger Sayle  <roger@eyesopen.com>
12020
12021         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
12022         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
12023
12024 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12025
12026         PR target/36684
12027         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
12028
12029 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
12030
12031         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
12032         build_gimple_modify_stmt.
12033         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
12034         gimple operand.  Use fold_build* instead of build*.
12035
12036 2008-07-04  Richard Guenther  <rguenther@suse.de>
12037
12038         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
12039         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
12040         properly to compute the reachability set if we do field-sensitive PTA.
12041         * invoke.texi (max-fields-for-field-sensitive): Document default.
12042         * opts.c (decode_options): Set max-fields-for-field-sensitive to
12043         100 for optimize >= 2.
12044
12045 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12046
12047         * ggc-zone.c (lookup_page_table_if_allocated,
12048         set_page_table_entry, zone_find_object_size, alloc_small_page,
12049         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
12050         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
12051         -Wc++-compat and/or -Wcast-qual warnings.
12052
12053 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
12054
12055         PR target/36634
12056         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
12057         pic_offset_table_rtx to be marked as used here.
12058         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
12059         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
12060         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
12061         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
12062         !TARGET_SECURE_PLT.
12063
12064 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12065
12066         * alloc-pool.c (hash_descriptor, eq_descriptor,
12067         alloc_pool_descriptor): Fix -Wc++-compat warnings.
12068         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
12069         Likewise.
12070         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
12071         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
12072         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
12073         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
12074         Likewise.
12075
12076 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
12077
12078         * tree-flow.h (loop_only_exit_p): Declare.
12079         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
12080         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
12081         the number of iterations if it is constant.  Otherwise, if this is the
12082         only possible exit of the loop, use the conservative estimate on the
12083         number of iterations of the entire loop if available.
12084
12085 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
12086
12087         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
12088         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
12089         Add synchronization functions.
12090         * config/sync.c: New file.
12091         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
12092         (LIBGCC_SYNC_CFLAGS): Likewise.
12093
12094 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
12095
12096         PR target/36710
12097         * config/i386/i386.md (mode): Add TF to "mode" attribute.
12098         (*pushtf_sse): New insn pattern.
12099         (pushtf splitters): New splitters.
12100
12101 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
12102
12103         PR middle-end/35736
12104         * predict.c (build_predict_expr): Use void_type_node for the tree
12105         type, instead of NULL_TREE.
12106
12107 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12108
12109         * config/i386/i386.c (contains_aligned_value_p): Return true
12110         for TCmode.
12111         (ix86_data_alignment): Align TCmode to 128bits.
12112         (ix86_local_alignment): Likewise.
12113
12114 2008-07-03  Andrew Haley  <aph@redhat.com>
12115
12116         PR bootstrap/33304
12117         * vec.h (VEC_TA): New.
12118         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
12119         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
12120         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
12121         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
12122         (C_COMMON_FIXED_TYPES): Remove first arg.
12123         (C_COMMON_FIXED_MODE_TYPES): Likewise.
12124         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
12125         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
12126         not to use empty macro arguments.
12127
12128 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
12129
12130         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
12131         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
12132         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
12133         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
12134         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
12135         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
12136         config/ia64/crtn.asm, config/m68hc11/larith.asm,
12137         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
12138         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
12139         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
12140         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
12141         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
12142         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
12143         config/rs6000/e500crtres64gpr.asm,
12144         config/rs6000/e500crtres64gprctr.asm,
12145         config/rs6000/e500crtrest32gpr.asm,
12146         config/rs6000/e500crtrest64gpr.asm,
12147         config/rs6000/e500crtresx32gpr.asm,
12148         config/rs6000/e500crtresx64gpr.asm,
12149         config/rs6000/e500crtsav32gpr.asm,
12150         config/rs6000/e500crtsav64gpr.asm,
12151         config/rs6000/e500crtsav64gprctr.asm,
12152         config/rs6000/e500crtsavg32gpr.asm,
12153         config/rs6000/e500crtsavg64gpr.asm,
12154         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
12155         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
12156         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
12157         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
12158         config/sparc/sol2-cn.asm: Remove .file directives.
12159
12160 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
12161
12162         * resource.c (mark_referenced_resources): Look inside
12163         UNSPEC_VOLATILEs and ASM_INPUTs.
12164
12165 2008-07-02  Ian Lance Taylor  <iant@google.com>
12166
12167         * rtlanal.c (add_reg_note): New function.
12168         * rtl.h (add_reg_note): Declare.
12169         * auto-inc-dec.c (attempt_change): Use add_reg_note.
12170         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
12171         * builtins.c (expand_builtin_longjmp): Likewise.
12172         (expand_builtin_nonlocal_goto): Likewise.
12173         * calls.c (emit_call_1, expand_call): Likewise.
12174         * cfgexpand.c (add_reg_br_prob_note): Likewise.
12175         * cfglayout.c (fixup_reorder_chain): Likewise.
12176         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12177         (commit_one_edge_insertion): Likewise.
12178         * combine.c (move_deaths, distribute_notes): Likewise.
12179         * df-problems.c (df_set_note): Likewise.
12180         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
12181         (set_unique_reg_note): Likewise.
12182         (emit_copy_of_insn_after): Likewise.
12183         * expr.c (expand_expr_real): Likewise.
12184         * gcse.c (add_label_notes): Likewise.
12185         * haifa-sched.c (create_check_block_twin): Likewise.
12186         * jump.c (mark_jump_label_1): Likewise.
12187         * loop-doloop.c (add_test, doloop_modify): Likewise.
12188         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12189         * lower-subreg.c (move_eh_region_note): Likewise.
12190         * optabs.c (emit_libcall_block): Likewise.
12191         * predict.c (predict_insn): Likewise.
12192         (combine_predictions_for_insn): Likewise.
12193         * recog.c (peephole2_optimize): Likewise.
12194         * regmove.c (try_auto_increment): Likewise.
12195         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
12196         * reload.c (find_reloads): Likewise.
12197         * reload1.c (fixup_eh_region_note): Likewise.
12198         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
12199         * reorg.c (delete_prior_computation): Likewise.
12200         (delete_computation, dbr_schedule): Likewise.
12201         * config/pa/pa.c (legitimize_pic_address): Likewise.
12202         * config/sh/sh.c (sh_reorg): Likewise.
12203
12204 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12205
12206         PR target/36669
12207         * config/libgcc-glibc.ver: Add %exclude.
12208         * config/m32r/libgcc-glibc.ver: Likwise.
12209         * config/s390/libgcc-glibc.ver: Likwise.
12210         * config/sh/libgcc-glibc.ver: Likwise.
12211         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
12212
12213         * config/i386/libgcc-glibc.ver: New.
12214
12215         * config/i386/libgcc-x86_64-glibc.ver: Removed.
12216
12217 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12218
12219         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
12220         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
12221         i[34567]86-*-linux*, x86_64-*-linux*.  Add
12222         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
12223         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
12224         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
12225         i[34567]86-*-linux*, x86_64-*-linux*.
12226
12227         * libgcc-std.ver: Add empty GCC_4.4.0.
12228
12229         * mkmap-symver.awk: Support multiple versions per symbol.
12230
12231         * config/i386/i386.c (ix86_init_builtins): Always define
12232         __builtin_fabsq and __builtin_copysignq with fallbacks.
12233         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
12234         and __builtin_copysignq if SSE2 isn't available.
12235
12236         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
12237         (LIBGCC2_TF_CEXT): Likwise.
12238         (TF_SIZE): Likwise.
12239
12240         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
12241
12242         * config/i386/sfp-machine.h: Moved to libgcc.
12243
12244         * config/i386/sfp-machine.h: New.
12245         * config/i386/t-linux: Likwise.
12246
12247         * config/i386/t-darwin: Remove softfp_wrap_start and
12248         softfp_wrap_end.
12249         * config/i386/t-darwin64: Likewise.
12250
12251         * config/i386/t-fprules-softfp64: Renamed to ...
12252         * config/i386/t-fprules-softfp: This.
12253
12254         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
12255         and softfp_wrap_end.
12256
12257 2008-07-02  Jason Merrill  <jason@redhat.com>
12258
12259         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
12260
12261         * tree.c (ctor_to_list): New fn.
12262         * tree.h: Declare it.
12263         (CONSTRUCTOR_ELT): New macro.
12264         (CONSTRUCTOR_NELTS): New macro.
12265
12266 2008-07-02  Richard Guenther  <rguenther@suse.de>
12267
12268         * tree-ssa-structalias.c (struct variable_info): Reorder
12269         to fill padding on 64bit hosts.  Make collapsed_to an int.
12270         (get_varinfo_fc): Deal with that.
12271         (new_var_info): Likewise.
12272         (collapse_rest_of_var): Likewise.
12273
12274 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
12275
12276         * doc/install.texi (--enable-java-home): Document.
12277         (--enable-aot-compile-rpm): Likewise.
12278         (--with-arch-directory): Likewise.
12279         (--with-os-directory): Likewise.
12280         (--with-origin-name): Likewise.
12281         (--with-arch-suffix): Likewise.
12282         (--with-jvm-root-dir): Likewise.
12283         (--with-jvm-jar-dir): Likewise.
12284         (--with-python-dir): Likewise.
12285
12286 2008-07-02  Richard Guenther  <rguenther@suse.de>
12287
12288         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
12289         from decls explicitly.  Merge operand checking from tuples.
12290
12291 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12292
12293         * tree-switch-conversion.c: Included timevar.h which I forgot before.
12294
12295 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12296
12297         * tree-switch-conversion.c: Included timevar.h
12298         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
12299
12300         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
12301
12302 2008-07-02  Martin Jambor  <mjambor@suse.cz>
12303
12304         * tree-switch-conversion.c: Corrected various comments and
12305         whitespace issues
12306         (build_constructors): Fixed minor formatting mistakes.
12307
12308         * invoke.texi (Optimize Options): Corrected the
12309         switch-conversion-max-branch-ratio parameter.
12310
12311 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
12312
12313         * final.c (asm_insn_count): Return zero for an empty asm body.
12314
12315 2008-07-02  Richard Guenther  <rguenther@suse.de>
12316
12317         * bitmap.h (bitmap_set_bit): Return bool.
12318         (bitmap_clear_bit): Likewise.
12319         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
12320         write to the bitmap if it would.
12321         (bitmap_clear_bit): Likewise.
12322         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
12323         bitmap_set_bit return value.
12324         (add_pred_graph_edge): Likewise.
12325         (add_graph_edge): Likewise.
12326         (do_sd_constraint): Likewise.
12327         (do_ds_constraint): Likewise.
12328
12329 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12330
12331         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
12332         Fix -Wc++-compat and/or -Wcast-qual warnings.
12333         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
12334         gen_regparm_prefix): Likewise.
12335         * vmsdbgout.c (write_modbeg, lookup_filename,
12336         vmsdbgout_source_line, vmsdbgout_init): Likewise.
12337
12338 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
12339
12340         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
12341         defaults.h definition apply.
12342
12343 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
12344
12345         * function.c (assign_parm_remove_parallels): New.
12346         (assign_parm_setup_block_p): Do not return true for non-BLKmode
12347         PARALLELs.
12348         (assign_parm_setup_block): Do not handle them.
12349         (assign_parm_setup_reg, assign_parm_setup_stack): Call
12350         assign_parm_remove_parallels.
12351
12352 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
12353
12354         * c-typeck.c (convert_for_assignment): Use
12355         vector_targets_convertible_p.
12356         * c-common.c (vector_targets_convertible_p): New.
12357         * c-common.h (vector_targets_convertible_p): New prototype.
12358         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
12359         opaque_p_V2SI_type_node.
12360
12361 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
12362
12363         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
12364         RFmode constants.
12365
12366 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
12367
12368         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
12369         TFmode constants via two element DImode vector for hosts with
12370         HOST_BITS_PER_WIDE_INT < 64.
12371         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
12372         also for HOST_BITS_PER_WIDE_INT < 64.
12373
12374 2008-07-01  Richard Guenther  <rguenther@suse.de>
12375
12376         PR tree-optimization/36666
12377         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
12378         (get_constraint_exp_from_ssa_var): Split into ...
12379         (get_constraint_exp_for_temp): ... this ...
12380         (get_constraint_for_ssa_var): ... and that.
12381         Return constraint expressions for all touched sub-fields
12382         if the results address is not taken.
12383         (process_constraint): Remove assertion that aggregate
12384         assignments do not happen at this place.
12385         (get_constraint_for_component_ref): Add address_p argument.
12386         Return constraint expressions for all touched sub-fields
12387         if the results address is not taken.
12388         (do_deref): Use get_constraint_exp_for_temp.
12389         (get_constraint_for_1): Rename from ...
12390         (get_constraint_for): ... this.  Add the old function as wrapper.
12391         (do_structure_copy): Use get_constraint_for_1.
12392
12393 2008-07-01  Martin Jambor  <mjambor@suse.cz>
12394
12395         * Makefile.in (tree-switch-conversion.o): Add.
12396         (OBJS-common): Add tree-swtch-conversion.o.
12397         * passes.c (init_optimization_passes): Add pass_convert_switch.
12398         * tree-pass.h: (pass_convert_switch): Add.
12399         * tree-switch-conversion.c: New file.
12400         * gcc.dg/tree-ssa/cswtch.c: New testcase.
12401         * common.opt (ftree-cswtch): New option.
12402         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
12403         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
12404         * opts.c (decode_options): Set flag_tree_switch_conversion when
12405         optimization level is >= 2.
12406         * doc/invoke.texi (Optimize Options): Added description of
12407         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
12408
12409 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12410
12411         * config/darwin-driver.c (darwin_default_min_version): Fix
12412         -Wc++-compat warnings.
12413
12414 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
12415
12416         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
12417         of operand 0.
12418
12419 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
12420
12421         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
12422
12423 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
12424
12425         PR rtl-optimization/34744
12426         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
12427         (df_scan_free_internal): Free data structures not
12428         allocated in storage pools.
12429         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
12430         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
12431         df_scan_free_mws_vec.
12432         * dse.c (dse_step6): Free offset_map_p and offset_map_n
12433         unconditionally.
12434
12435 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12436
12437         * config/i386/i386.c (contains_aligned_value_p): Return true
12438         for __float128.
12439         (ix86_function_arg_boundary): Return its natural boundary
12440         for __float128.
12441         (return_in_memory_32): Don't check TDmode.
12442         (ix86_split_to_parts): Support splitting into 4 parts and
12443         support TFmode for 32bit target.
12444         (ix86_split_long_move): Support splitting into 4 parts.
12445         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
12446         for SSE2.
12447         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
12448         (ix86_init_builtins): Here.
12449         (ix86_scalar_mode_supported_p): Always return true for TFmode.
12450         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
12451         'q' and 'w', respectively.
12452
12453         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
12454         TARGET_64BIT.
12455         (movtf_internal): Likewise.
12456         (<code>tf2): Likewise.
12457         (*absnegtf2_sse): Likewise.
12458         (copysign<mode>3): Likewise.
12459         (copysign<mode>3_const): Likewise.
12460         (copysign<mode>3_var): Likewise.
12461         (define_split UNSPEC_COPYSIGN): Likewise.
12462         * config/i386/sse.md (*nandtf3): Likewise.
12463         (<code>tf3): Likewise.
12464         (*<code>tf3): Likewise.
12465
12466 2008-06-30  Joey Ye  <joey.ye@intel.com>
12467             H.J. Lu  <hongjiu.lu@intel.com>
12468
12469         * global.c (compute_regsets): Set frame_pointer_needed here.
12470         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
12471
12472 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12473
12474         * doc/install.texi (specific): Expand Windows build notes.
12475
12476 2008-06-30  Ira Rosen  <irar@il.ibm.com>
12477
12478         PR tree-optimization/36648
12479         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
12480         number of prolog iterations by step. Fix the comment.
12481
12482 2008-06-30  Richard Guenther  <rguenther@suse.de>
12483
12484         PR middle-end/36671
12485         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
12486         handle calls from ECF_MALLOC functions.
12487         (handle_pure_call): ECF_MALLOC functions do not return
12488         call-used memory.
12489         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
12490
12491 2008-06-29  Andreas Schwab  <schwab@suse.de>
12492
12493         * config/m68k/m68k.c (print_operand): Always print a float
12494         constant in hex.
12495         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
12496         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
12497         Remove macros.
12498
12499         * config/rs6000/x-linux64: Remove never used file.
12500
12501 2008-06-29  Richard Guenther  <rguenther@suse.de>
12502
12503         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
12504         prototype.
12505         (struct alias_info): Move ...
12506         * tree-ssa-alias.c: ... here.
12507         (update_alias_info): Declare.
12508         (compute_may_aliases): Call it.
12509         (update_alias_info): New function.
12510         * tree-ssa-structalias.c (update_alias_info): Move ...
12511         * tree-ssa-alias.c (update_alias_info_1): ... here.
12512         * tree-ssa-structalias.c (process_constraint_1): Remove
12513         unused from_call argument.  Rename to ...
12514         (process_constraint): ... this.  Delete old wrapper.
12515         (make_constraint_to): Adjust callers.
12516         (handle_const_call): Likewise.
12517         (handle_pure_call): Likewise.
12518         (init_base_vars): Likewise.
12519         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
12520         (find_func_aliases): We don't need structure copies for
12521         complex types.
12522         (make_constraint_from_anything): Remove.
12523         (create_variable_info_for): For globals make constraints
12524         from escaped, not from anything.
12525         (compute_points_to_sets): Do not call update_alias_info.
12526         (ipa_pta_execute): Use make_constraint_from.
12527
12528 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12529
12530         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
12531         (bitmap.o-warn, dominance.o-warn): New.
12532         * configure.ac (cxx_compat_warn): Delete.
12533         (loose_warn): Add -Wcast-qual and -Wc++-compat.
12534         * system.h: Remove #pragma diagnostic for -Wcast-qual and
12535         -Wc++-compat.
12536         * configure: Regenerate.
12537
12538         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
12539         warnings.
12540
12541 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12542
12543         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
12544         * df-scan.c (df_notes_rescan): Likewise.
12545         * ggc-page.c (set_page_table_entry): Likewise.
12546         * intl.c (gcc_gettext_width): Likewise.
12547         * varasm.c (get_unnamed_section, get_noswitch_section,
12548         get_section): Likewise.
12549
12550 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
12551
12552         * regrename.c (build_def_use): Don't copy RTX.
12553
12554 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
12555
12556         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
12557         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
12558         punctuation.  Use @ref instead of @xref.
12559         (Function Names): Remove stray @display/@end display.
12560         (C++ Attributes): Use @ref instead of @xref.
12561         (Deprecated Features): Fix punctuation around @xref.
12562         (Backwards Compatibility): Likewise.
12563         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
12564
12565 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
12566
12567         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
12568         constants for E500 double.
12569
12570 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12571
12572         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
12573         element type of const_vector.
12574
12575 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
12576
12577         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
12578         Remove FLAGS_REG clobber from expander pattern.
12579         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
12580         (anddi3, andsi3, andhi3, andqi3): Ditto.
12581         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
12582         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
12583         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
12584         (ashlsi3, ashlhi3, ashlqi3): Ditto.
12585         (ashrsi3, ashrhi3, ashrqi3): Ditto.
12586         (lshrsi3, lshrhi3, lshrqi3): Ditto.
12587         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
12588         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
12589
12590 2008-06-28  Richard Guenther  <rguenther@suse.de>
12591
12592         * tree-ssa-structalias.c (callused_id, var_callused,
12593         callused_tree): Add.
12594         (handle_pure_call): New function.
12595         (find_func_aliases): Call it.
12596         (find_what_p_points_to): Handle the call-used set.
12597         (clobber_what_escaped): Likewise.
12598         (compute_call_used_vars): New function.
12599         (init_base_vars): Init the call-used variable.
12600         (do_sd_constraint): Do not propagate the solution from CALLUSED
12601         but use CALLUSED as a placeholder.
12602         (solve_graph): Likewise.
12603         * tree-flow-inline.h (gimple_call_used_vars): New function.
12604         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
12605         (compute_call_used_vars): Declare.
12606         * tree-ssa-alias.c (set_initial_properties): Call
12607         compute_call_used_vars.
12608         (reset_alias_info): Clear call-used variables.
12609         (add_call_clobber_ops): Assert we are not called for const/pure
12610         functions.  Remove handling of them.
12611         (add_call_read_ops): Handle pure functions by adding the
12612         call-used set of variables as VUSEs.
12613         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
12614         (delete_tree_ssa): Free it.
12615         * tree-dfa.c (remove_referenced_var): Clear the var from the
12616         call-used bitmap.
12617
12618 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
12619
12620         * tree.c (build_varargs_function_type_list): New.
12621         (build_function_type_list_1): New.
12622         (build_function_type_list): Use build_function_type_list_1.
12623         * tree.h (build_varargs_function_type_list): New.
12624
12625 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12626
12627         PR target/34856
12628         * config/spu/spu.c (spu_builtin_splats): Do not generate
12629         invalid CONST_VECTOR expressions.
12630         (spu_expand_vector_init): Likewise.
12631
12632 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
12633
12634         * optabs.c (libfunc_decls): New variable.
12635         (libfunc_decl_hash, libfunc_decl_eq): New functions.
12636         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
12637         for the same function twice.
12638
12639 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
12640
12641         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
12642         ix86_expand_binary_operator directly.
12643         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
12644         for operand 2.
12645         (*ashrti3_1): Ditto.
12646         (*lshrti3_1): Ditto.
12647         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
12648         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
12649         using only one splitter.  Conditionaly execute splitter before or
12650         after peephole2 pass.
12651         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
12652         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
12653         Use only one alternative in asm template.
12654         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
12655         in asm template.
12656         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
12657         "J" operand constraint for operand 2.
12658         (*ashldi3_cconly_rex64): Ditto.
12659         (*ashrdi3_cmp_rex64): Ditto.
12660         (*ashrdi3_cconly_rex64): Ditto.
12661         (*lshrdi3_cmp_rex64): Ditto.
12662         (*lshrdi3_cconly_rex64): Ditto.
12663         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
12664         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
12665         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
12666         gen_x86_shrd_1.
12667
12668 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
12669
12670         * gimplify.c (omp_is_private): Don't return true if decl is not
12671         already private on #pragma omp for or #pragma omp parallel for.
12672
12673         PR debug/36617
12674         * tree-cfg.c (struct move_stmt_d): Replace block field with
12675         orig_block and new_block fields.
12676         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
12677         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
12678         (move_block_to_fn): Replace vars_map and new_label_map arguments
12679         with struct move_stmt_d pointer.
12680         (replace_block_vars_by_duplicates): New function.
12681         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
12682         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
12683         all subblocks of ORIG_BLOCK to the new function.  Call
12684         replace_block_vars_by_duplicates.
12685         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
12686         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
12687         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
12688         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
12689         (expand_omp): Temporarily set input_location to the location of
12690         region's controlling stmt.
12691         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
12692         BIND_EXPR, push ctx->block_vars and gimplification vars into
12693         the BIND_EXPR and its block's BLOCK_VARS instead of directly
12694         into dest function.
12695         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
12696         there are any BLOCK_VARS.
12697         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
12698         OMP_PARALLEL or OMP_TASK stmt.
12699         (lower_omp): Save and restore input_location around the lower_omp_1
12700         call.
12701
12702 2008-06-27  Richard Guenther  <rguenther@suse.de>
12703
12704         PR tree-optimization/36400
12705         PR tree-optimization/36373
12706         PR tree-optimization/36344
12707         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
12708         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
12709         (update_alias_info): Remove call clobbering code.
12710         (make_constraint_to): New helper function.
12711         (make_escape_constraint): Likewise.
12712         (handle_rhs_call): Use it on all pointer containing arguments.
12713         Also mark the static chain escaped.
12714         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
12715         instead of ANYTHING.
12716         (make_constraint_from): New helper split out from ...
12717         (make_constraint_from_anything): ... here.
12718         (find_func_aliases): Add constraints for escape sites.
12719         (intra_create_variable_infos): Make constraints from NONLOCAL
12720         for parameters.
12721         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
12722         as ANYTHING.
12723         (clobber_what_p_points_to): Remove.
12724         (clobber_what_escaped): New function.
12725         (init_base_vars): Init NONLOCAL and ESCAPED.
12726         (do_sd_constraint): Do not propagate the solution from ESCAPED
12727         but use ESCAPED as a placeholder.
12728         (solve_graph): Likewise.
12729         * tree-flow.h (clobber_what_p_points_to): Remove.
12730         (clobber_what_escaped): Declare.
12731         * tree-ssa-alias.c (set_initial_properties): Call it.
12732         Remove code clobbering escaped pointers.
12733
12734 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
12735
12736         * function.c (allocate_struct_function): Only allocate a unique
12737         funcdef_no if the decl is nonzero.
12738
12739 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
12740
12741         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
12742         * config/mips/mips.c (mips_split_const_insns): New function.
12743         * config/mips/mips.md (move_type): New attribute.
12744         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
12745         (dword_mode): New attribute.
12746         (type): Avoid long line.  Map "move_type"s to "type"s,
12747         choosing "multi" for doubleword moves if appropriate.
12748         Swap MTC/MFC comments to match their declaration order.
12749         (extended_mips16): Default to "yes" if "move_type" is "sll0",
12750         "type" is "branch" or "jal" is "direct".
12751         (length): Handle "extended_mips16" first.  Make the default
12752         "0" for "ghost" instructions.  Set the length from "move_type".
12753         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
12754         of "type", with "sll0" for the register alternative.  Remove the
12755         "extended_mips16" attribute.
12756         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
12757         of "type", with "shift_shift" for the register alternative.
12758         Remove the "length" attribute.
12759         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
12760         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
12761         of "type", with "andi" for the register alternative.
12762         (*zero_extendqihi2): Likewise.
12763         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
12764         of "andi" instead of a "type" of "arith".
12765         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
12766         instead of "type".
12767         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
12768         (mov_<store>r, *mov<mode>_ra): Likewise.
12769         (extendsidi2): Use "move_type" instead of "type", with "move"
12770         for the register alternative.
12771         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
12772         of "type", with "signext" for the register alternative.
12773         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
12774         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
12775         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
12776         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
12777         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
12778         (unnamed branch insn): Likewise.
12779         (*movdi_gp32_fp64): Fold into...
12780         (*movdi_32bit): ...here.
12781         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
12782         (*movdf_hardfloat): ...this new pattern.
12783         (*movdf_softfloat): Remove redundant FPR alternatives.
12784         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
12785         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
12786         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
12787         the "move" attribute.
12788         (*movdi_32bit): Use "move_type" instead of "type" and remove the
12789         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
12790         and "store" for COP loads and stores.
12791         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
12792         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
12793         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
12794         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
12795         (*movtf_mips16, *movv2sf): Likewise.
12796         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
12797         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
12798         (mfhc1<mode>): Use "move_type" instead of "move".
12799         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
12800         (loadgp_blockage): Remove the "length" attribute.
12801         (blockage, set_got_version, update_got_version): Likewise.
12802         (call_internal): Remove the "extended_mips16" attribute.
12803         (call_value_internal, call_value_multiple_internal): Likewise.
12804         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
12805         instead of "move".
12806         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
12807         the "length" attribute.
12808
12809 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12810
12811         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
12812         -Wcast-qual warnings.
12813         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
12814         handle_pragma_pop_macro): Likewise.
12815         * collect2.c (resolve_lib_name): Likewise.
12816         * config/arc/arc.c (arc_init): Likewise.
12817         * config/arm/arm.c (neon_builtin_compare,
12818         locate_neon_builtin_icode): Likewise.
12819         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
12820         * config/bfin/bfin.c (bfin_init_machine_status,
12821         bfin_optimize_loop): Likewise.
12822         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12823         * config/cris/cris.c (cris_init_expanders): Likewise.
12824         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
12825         * config/darwin.c (machopic_indirection_eq,
12826         machopic_indirection_name, machopic_output_indirection): Likewise.
12827         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
12828         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
12829         frv_optimize_membar): Likewise.
12830         * config/i386/cygwin.h (mingw_scan,
12831         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
12832         * config/i386/cygwin1.c (mingw_scan): Likewise.
12833         * config/i386/i386.c (machopic_output_stub): Likewise.
12834         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
12835         i386_pe_unique_section): Likewise.
12836         * config/ia64/ia64.c (ia64_init_machine_status,
12837         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
12838         Likewise.
12839         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
12840         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
12841         * config/m68k/m68k.c (m68k_handle_option,
12842         m68k_sched_md_init_global): Likewise.
12843         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
12844         mcore_unique_section): Likewise.
12845         * config/mips/mips.c (mips_block_move_straight,
12846         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
12847         Likewise.
12848         * config/mmix/mmix.c (mmix_init_machine_status,
12849         mmix_encode_section_info): Likewise.
12850         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
12851         * config/rs6000/rs6000.c (rs6000_init_machine_status,
12852         print_operand_address, output_toc, redefine_groups,
12853         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
12854         * config/s390/s390.c (s390_init_machine_status): Likewise.
12855         * config/score/score.c (score_block_move_straight,
12856         score_block_move_loop_body): Likewise.
12857         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12858         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12859         * emit-rtl.c (find_auto_inc): Likewise.
12860         * gcc.c (translate_options, process_command): Likewise.
12861         * reorg.c (dbr_schedule): Likewise.
12862         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
12863         * xcoffout.c (xcoffout_declare_function): Likewise.
12864
12865 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
12866
12867         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
12868         ipa-pta working again.
12869
12870 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
12871
12872         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
12873         genautomata.
12874
12875 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
12876
12877         * config.gcc (powerpc*-*-*): Add new core e500mc.
12878         * config/rs6000/e500mc.md: New file.
12879         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12880         e500mc.
12881         (rs6000_override_options): Add e500mc case to
12882         processor_target_table. Altivec and Spe options not allowed
12883         with e500mc. Add isel instruction to e500mc by
12884         default. Initialize rs6000_cost for e500mc.
12885         (rs6000_issue_rate): Set issue rate for e500mc.
12886         * config/rs6000/rs6000.h (processor_type): Add
12887         PROCESSOR_PPCE500MC.
12888         (ASM_CPU_SPEC): Add e500mc.
12889         Set TARGET_ISEL to rs6000_isel.
12890         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
12891         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
12892         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
12893         Include e500mc.md.
12894         * doc/invoke.texi: Add e500mc to list of cpus.
12895
12896 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12897
12898         PR c/34867
12899         * c-lex.c (lex_charconst): Initialize unsignedp.
12900
12901 2008-06-27  Olivier Hainque  <hainque@adacore.com>
12902
12903         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
12904         documented assumptions.
12905
12906 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
12907
12908         * dwarf2out.c: Remove trailing white spaces.  Break long line
12909         in comments.
12910
12911 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
12912
12913         * libfuncs.h (LTI_synchronize): New libfunc_index.
12914         (synchronize_libfunc): Declare.
12915         * builtins.c (expand_builtin_synchronize): Consider using
12916         synchronize_libfunc before falling back on an asm blockage.
12917         * config/mips/mips.c: Include libfuncs.h
12918         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
12919
12920 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
12921
12922         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
12923         parameter.  Copy stack_reg to r11 where appropriate.
12924         (no_global_regs_above): Add gpr parameter.
12925         (rs6000_stack_info): Only add padding for SPE save area if we
12926         are saving SPE GPRs and CR.
12927         (saveres_routine_syms): New variable.
12928         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
12929         Define.
12930         (rs6000_savres_routine_sym): New function.
12931         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
12932         split out of...
12933         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
12934         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
12935         Tweak FPR out-of-line saving.
12936         (rs6000_make_savres_rtx): New function.
12937         (rs6000_use_multiple_p): New function.
12938         (rs6000_savres_strategy): New function.
12939         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
12940         out-of-line if appropriate.
12941         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
12942         if we are optimizing for size.
12943         (GP_SAVE_INLINE): Define.
12944         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
12945         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
12946         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
12947         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
12948         (*save_fpregs_<mode>): Add use of r11.
12949         (*restore_gpregs_<mode>): New insn.
12950         (*return_and_restore_gpregs_<mode>): New insn.
12951         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
12952         use r11.
12953         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
12954         (*restore_gpregs_spe): New insn.
12955         (*return_and_restore_gpregs_spe): New insn.
12956         * config/rs6000/predicates.md (save_world_operation): Fix check.
12957
12958 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12959
12960         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
12961         this point, so assert that.
12962
12963 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12964
12965         * cfganal.c: Include vec.h and vecprim.h.
12966         (compute_idf): Import from...
12967         * tree-into-ssa (compute_idf): ...here.
12968         * basic-block.h (compute_idf): Export.
12969
12970 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
12971
12972         * c-decl.c (merge_decls): Use !current_function_decl to check for
12973         extern declaration of C99 inline function being at file scope.
12974
12975 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
12976
12977         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
12978
12979 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12980
12981         * alias.c (record_alias_subset, init_alias_analysis): Fix
12982         -Wc++-compat and/or -Wcast-qual warnings.
12983         * attribs.c (lookup_attribute_spec): Likewise.
12984         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
12985         copy_bb, connect_traces,
12986         find_rarely_executed_basic_blocks_and_cr): Likewise.
12987         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
12988         note_btr_set, migrate_btr_defs): Likewise.
12989         * builtins.c (result_vector, expand_builtin_memcpy,
12990         expand_builtin_mempcpy_args, expand_builtin_strncpy,
12991         builtin_memset_read_str, expand_builtin_printf,
12992         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
12993         Likewise.
12994         * caller-save.c (mark_set_regs): Likewise.
12995         * calls.c (expand_call, emit_library_call_value_1): Likewise.
12996         * cgraph.c (cgraph_edge): Likewise.
12997         * combine.c (likely_spilled_retval_1): Likewise.
12998         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
12999         htab_counts_entry_del, get_coverage_counts): Likewise.
13000         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
13001         new_cselib_val): Likewise.
13002         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
13003         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
13004         Likewise.
13005         * df-core.c (df_compact_blocks): Likewise.
13006         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
13007         * df-scan.c (df_grow_reg_info, df_ref_create,
13008         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
13009         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
13010         df_record_entry_block_defs, df_record_exit_block_uses,
13011         df_bb_verify): Likewise.
13012         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
13013         DF_REF_EXTRACT_MODE_CONST): New.
13014         * dominance.c (get_immediate_dominator, get_dominated_by,
13015         nearest_common_dominator, root_of_dom_tree,
13016         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
13017         -Wc++-compat and/or -Wcast-qual warnings.
13018         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
13019         record_store, replace_read, check_mem_read_rtx, scan_insn,
13020         dse_step1, dse_record_singleton_alias_set): Likewise.
13021         * dwarf2asm.c (dw2_force_const_mem): Likewise.
13022
13023 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13024
13025         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
13026         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
13027         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
13028         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
13029         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
13030         add_ranges_num, add_ranges_by_labels, file_info_cmp,
13031         file_name_acquire, output_file_names, add_const_value_attribute,
13032         premark_used_types_helper, file_table_eq, file_table_hash,
13033         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
13034         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
13035         -Wcast-qual warnings.
13036         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
13037         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
13038         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
13039         gen_reg_rtx, start_sequence, init_emit): Likewise.
13040         * et-forest.c (et_new_occ, et_new_tree): Likewise.
13041         * except.c (init_eh_for_function, gen_eh_region,
13042         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
13043         arh_to_landing_pad, arh_to_label, add_action_record,
13044         add_call_site, switch_to_exception_section): Likewise.
13045         * expmed.c (synth_mult): Likewise.
13046         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
13047         store_expr): Likewise.
13048         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
13049         Likewise.
13050         * function.c (assign_stack_temp_for_type,
13051         allocate_struct_function, match_asm_constraints_1): Likewise.
13052         * gcov-io.c (gcov_allocate): Likewise.
13053         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
13054         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
13055         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
13056         record_one_set, insert_expr_in_table, insert_set_in_table,
13057         dump_hash_table, compute_hash_table_work, alloc_hash_table,
13058         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
13059         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
13060         -Wcast-qual warnings.
13061
13062 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13063
13064         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
13065         -Wcast-qual warnings.
13066         * gcc.c (process_command): Likewise.
13067         * genattrtab.c (oballoc): Use XOBNEW.
13068         (oballocvec): Define.
13069         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
13070         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
13071         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
13072         -Wc++-compat and/or -Wcast-qual warnings.
13073         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
13074         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
13075         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
13076         gen_presence_absence_set, gen_automaton, gen_regexp_el,
13077         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
13078         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
13079         add_excls, process_presence_absence_names,
13080         process_presence_absence_patterns, add_presence_absence,
13081         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
13082         get_free_state, add_arc, get_free_automata_list_el,
13083         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
13084         transform_3, cache_presence, create_ainsns, create_automata,
13085         create_state_ainsn_table, dfa_insn_code_enlarge,
13086         output_trans_func, output_min_issue_delay_func,
13087         output_dead_lock_func, output_reset_func,
13088         output_get_cpu_unit_code_func, output_dfa_start_func,
13089         expand_automata): Likewise.
13090         * genextract.c (gen_insn): Likewise.
13091         * gengtype-lex.l: Likewise.
13092         * gengtype.c (read_input_list, adjust_field_type,
13093         process_gc_options): Likewise.
13094         * genoutput.c (note_constraint): Likewise.
13095         * genpreds.c (mangle, add_constraint): Likewise.
13096         * genrecog.c (process_define_predicate, new_decision,
13097         add_to_sequence): Likewise.
13098         * gensupport.c (record_insn_name): Likewise.
13099
13100 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13101
13102         * config/i386/driver-i386.c (detect_caches_amd,
13103         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
13104         and/or -Wcast-qual warnings.
13105         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
13106         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
13107         gt_pch_save): Likewise.
13108         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
13109         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
13110         * global.c (compute_regsets): Likewise.
13111         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13112         finish_graph_dump_file): Likewise.
13113         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
13114         unlink_bb_notes): Likewise.
13115         * integrate.c (get_hard_reg_initial_val): Likewise.
13116         * ipa-prop.c (ipa_push_func_to_list): Likewise.
13117         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
13118         * local-alloc.c (update_equiv_regs): Likewise.
13119         * loop-invariant.c (check_invariant_table_size,
13120         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
13121         Likewise.
13122         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
13123         altered_reg_used, mark_altered): Likewise.
13124         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
13125         insert_var_expansion_initialization,
13126         combine_var_copies_in_loop_exit, apply_opt_in_copies,
13127         release_var_copies): Likewise.
13128         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
13129         analyze_matrix_decl, add_allocation_site, analyze_transpose,
13130         analyze_accesses_for_phi_node, check_var_notmodified_p,
13131         check_allocation_function, find_sites_in_func,
13132         record_all_accesses_in_func, transform_access_sites,
13133         transform_allocation_sites): Likewise.
13134         * omp-low.c (new_omp_region, create_omp_child_function_name,
13135         check_omp_nesting_restrictions, check_combined_parallel,
13136         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
13137         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
13138         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
13139         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
13140         Likewise.
13141         * opts-common.c (prune_options): Likewise.
13142         * opts.c (add_input_filename, print_filtered_help,
13143         get_option_state): Likewise.
13144         * params.c (add_params): Likewise.
13145         * passes.c (set_pass_for_id, next_pass_1,
13146         do_per_function_toporder, pass_fini_dump_file): Likewise.
13147         * postreload.c (reload_cse_simplify_operands): Likewise.
13148         * predict.c (tree_predicted_by_p, tree_predict_edge,
13149         clear_bb_predictions, combine_predictions_for_bb): Likewise.
13150
13151 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13152
13153         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
13154         warnings.
13155         * recog.c (check_asm_operands, validate_change_1): Likewise.
13156         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
13157         subst_asm_stack_regs): Likewise.
13158         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
13159         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
13160         * regmove.c (reg_is_remote_constant_p): Likewise.
13161         * regrename.c (regrename_optimize, scan_rtx_reg,
13162         kill_clobbered_value, kill_set_value, kill_autoinc_value):
13163         Likewise.
13164         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
13165         regstat_compute_calls_crossed): Likewise.
13166         * reload1.c (init_reload, new_insn_chain,
13167         has_nonexceptional_receiver, reload, copy_reloads,
13168         calculate_needs_all_insns, init_elim_table): Likewise.
13169         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
13170         * rtl.c (shallow_copy_rtx_stat): Likewise.
13171         * rtlanal.c (parms_set): Likewise.
13172         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
13173         sbitmap_resize, sbitmap_vector_alloc): Likewise.
13174         * sched-ebb.c (earliest_block_with_similiar_load,
13175         add_deps_for_risky_insns): Likewise.
13176         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
13177         schedule_region): Likewise.
13178         * see.c (eq_descriptor_pre_extension,
13179         hash_descriptor_pre_extension, hash_del_pre_extension,
13180         eq_descriptor_properties, hash_descriptor_properties,
13181         hash_del_properties, see_seek_pre_extension_expr,
13182         see_initialize_data_structures, see_print_register_properties,
13183         see_print_pre_extension_expr, see_delete_merged_def_extension,
13184         see_delete_unmerged_def_extension, see_emit_use_extension,
13185         see_pre_delete_extension, see_map_extension, see_commit_changes,
13186         see_analyze_merged_def_local_prop,
13187         see_analyze_merged_def_local_prop,
13188         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
13189         see_set_prop_merged_def, see_set_prop_unmerged_def,
13190         see_set_prop_unmerged_use, see_print_one_extension,
13191         see_merge_one_use_extension, see_merge_one_def_extension,
13192         see_store_reference_and_extension, see_update_uses_relevancy,
13193         see_update_defs_relevancy): Likewise.
13194         * statistics.c (hash_statistics_hash, hash_statistics_eq,
13195         hash_statistics_free, curr_statistics_hash): Likewise.
13196         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
13197         expand_asm_operands, expand_return, case_bit_test_cmp,
13198         expand_case): Likewise.
13199         * stor-layout.c (start_record_layout): Likewise.
13200         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
13201         gt_pch_save_stringpool): Likewise.
13202         * tree-data-ref.c (hash_stmt_vertex_info,
13203         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
13204         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
13205
13206 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
13207
13208         PR target/36627
13209         * config/i386/i386.md : Change constraints of HImode and QImode
13210         immediate operands from "i" to "n".  Change SImode "ni" constraint to
13211         "i" and SImode "rmi" constraint to "g".  Remove all constraints
13212         from const0_operand and const1_operand predicated operands.
13213         (i): Change QImode and HImode attribute from "i" to "n".
13214         (*subqi_2): Change HImode operands to QImode.
13215         (*subqi_3): Ditto.
13216
13217 2008-06-25  Olivier Hainque  <hainque@adacore.com>
13218
13219         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
13220         sed substitutions.
13221
13222 2008-06-25  Richard Guenther  <rguenther@suse.de>
13223
13224         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
13225         not overflow the result type.
13226
13227 2008-06-25  Richard Guenther  <rguenther@suse.de>
13228
13229         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
13230         (vn_lookup): Likewise.
13231
13232 2008-06-25  Richard Guenther  <rguenther@suse.de>
13233
13234         PR tree-optimization/35518
13235         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
13236         * tree-sra.c (instantiate_element): Use fold_build3 to build
13237         BIT_FIELD_REFs.
13238         (try_instantiate_multiple_fields): Likewise.
13239
13240 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13241
13242         * config/rs6000/rs6000.md: Change all string instruction's clobber to
13243         be early clobbers.
13244
13245 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13246
13247         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
13248         use_backchain_to_restore_sp to true
13249         if the offset of the link register save area would go over the 32k - 1
13250         offset limit of the load
13251         instructions.
13252
13253 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
13254
13255         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
13256         anchor for the type-punning blurb.  Cross-reference "Structures
13257         unions enumerations and bit-fields implementation".  Provide a
13258         cast-through-pointer example.  Make final sentence self-contained.
13259         * doc/implement-c.texi (Structures unions enumerations and
13260         bit-fields implementation): Cross-reference the type-punning blurb
13261         in the -fstrict-aliasing documentation.
13262
13263 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13264
13265         PR middle-end/36594
13266         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
13267         the memory instead of the memory itself for the save area.
13268
13269 2008-06-24  Olivier Hainque  <hainque@adacore.com>
13270             Nicolas Roche  <roche@adacore.com>
13271
13272         * gengtype.c (srcdir_len): size_t instead of int.
13273         (get_file_realbasename): New function.  For F a filename, the real
13274         basename of F, with all the path components stripped.
13275         (get_file_srcdir_relative_path): New function.  For F a filename, the
13276         relative path to F from $(srcdir).
13277         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
13278         get_file_realbasename.  Adjust the head comment.
13279         (get_prefix_langdir_index): New function. For F a filename, return the
13280         lang_dir_names[] relative index of the language directory that is
13281         a prefix in F.
13282         (get_file_langdir): For F a filename, return the name of the language
13283         directory where F is located.
13284         (get_file_gtfilename): New function. The gt- output file name for an
13285         input filename F.
13286         (get_output_file_with_visibility): Replace in-line computations with
13287         uses of get_file_gtfilename and get_prefix_langdir_index.
13288         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
13289
13290 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
13291
13292         PR tree-optimization/36504
13293         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
13294         references without base address.
13295
13296 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13297
13298         PR middle-end/36584
13299         * calls.c (expand_call): Increase alignment for recursive functions.
13300
13301 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
13302
13303         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
13304         (TARGET_FUNCTION_VALUE): New define.
13305         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
13306         * config/avr/avr.h (FUNCTION_VALUE): Remove.
13307
13308 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13309
13310         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
13311         (fmod<mode>3): Ditto.
13312         (remainderxf3): Ditto.
13313         (remainder<mode>3): Ditto.
13314
13315 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
13316
13317         PR target/36533
13318         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
13319         REG is a hard register.
13320
13321         PR tree-optimization/36508
13322         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
13323         499, don't check it at all in release compilers.
13324
13325 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
13326
13327         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
13328         together with SSE_TARGET_MATH to disable insn pattern.
13329         (*fop_<MODEF:mode>_2_i387): Ditto.
13330         (*fop_<MODEF:mode>_3_i387): Ditto.
13331
13332 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
13333
13334         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
13335
13336 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13337
13338         PR middle-end/34906
13339         * gimplify.c (gimplify_asm_expr): Check the return code of
13340         parse_output_constraint call, set function return and is_inout
13341         value if it failed.
13342
13343 2008-06-22  Ian Lance Taylor  <iant@google.com>
13344
13345         * c-lex.c (narrowest_unsigned_type): Change itk to int.
13346         (narrowest_signed_type): Likewise.
13347         * c-typeck.c (c_common_type): Change local variable mclass to enum
13348         mode_class, twice.
13349         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
13350         tcc_comparison, not the tree code itself.
13351         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
13352         (c_expand_expr): Cast modifier to enum expand_modifier.
13353         * c-common.h (C_RID_CODE): Add casts.
13354         (C_SET_RID_CODE): Define.
13355         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
13356         (c_lex_one_token): Add cast to avoid warning.
13357         (c_parser_objc_type_name): Rename local typename to type_name.
13358         (check_no_duplicate_clause): Change code parameter to enum
13359         omp_clause_code.
13360         (c_parser_omp_var_list_parens): Change kind parameter to enum
13361         omp_clause_code.
13362         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
13363         c_parser_omp_list_var_parens.
13364         (c_parser_omp_threadprivate): Likewise.
13365         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
13366         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
13367         * c-format.c (NO_FMT): Define.
13368         (printf_length_specs): Use NO_FMT.
13369         (asm_fprintf_length_specs): Likewise.
13370         (gcc_diag_length_specs): Likewise.
13371         (scanf_length_specs): Likewise.
13372         (strfmon_length_specs): Likewise.
13373         (gcc_gfc_length_specs): Likewise.
13374         (printf_flag_specs): Change 0 to STD_C89.
13375         (asm_fprintf_flag_specs): Likewise.
13376         (gcc_diag_flag_specs): Likewise.
13377         (gcc_cxxdiag_flag_specs): Likewise.
13378         (scanf_flag_specs): Likewise.
13379         (strftime_flag_specs): Likewise.
13380         (strfmon_flag_specs): Likewise.
13381         (print_char_table): Likewise.
13382         (asm_fprintf_char_table): Likewise.
13383         (gcc_diag_char_table): Likewise.
13384         (gcc_tdiag_char_table): Likewise.
13385         (gcc_cdiag_char_table): Likewise.
13386         (gcc_cxxdiag_char_table): Likewise.
13387         (gcc_gfc_char_table): Likewise.
13388         (scan_char_table): Likewise.
13389         (time_char_table): Likewis.
13390         (monetary_char_table): Likewise.
13391         * c-format.h (BADLEN): Likewise.
13392
13393 2008-06-21  Ian Lance Taylor  <iant@google.com>
13394
13395         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
13396         Define END_OF_BASE_TREE_CODES around inclusion.
13397         * tree.c (tree_code_type): New global array.
13398         (tree_code_length, tree_code_name): Likewise.
13399         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
13400         $(lang_tree_files).
13401         (all-tree.def, s-alltree): New targets.
13402         (gencheck.h, s-gencheck): Remove.
13403         (tree.o): Depend upon all-tree.def.
13404         (build/gencheck.o): Remove gencheck.h dependency.
13405         (mostlyclean): Don't remove gencheck.h.
13406         * c-common.h (enum c_tree_code): Remove.
13407         * c-lang.c (tree_code_type): Remove.
13408         (tree_code_length, tree_code_name): Remove.
13409         * gencheck.c (tree_codes): Include all-tree.def, rather than
13410         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
13411         after it is used.
13412         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
13413         than tree.def.
13414         * cp/cp-tree.h (enum cplus_tree_code): Remove.
13415         (operator_name_info): Size to MAX_TREE_CODES.
13416         (assignment_operator_name_info): Likewise.
13417         * cp/cp-lang.c (tree_code_type): Remove.
13418         (tree_code_length, tree_code_name): Remove.
13419         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
13420         (assignment_operator_name_info): Likewise.
13421         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
13422         MAX_TREE_CODES.
13423         * cp/mangle.c (write_expression): Likewise.
13424         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
13425         * fortran/f95-lang.c (tree_code_type): Remove.
13426         (tree_code_length, tree_code_name): Remove.
13427         * java/java-tree.h (enum java_tree_code): Remove.
13428         * java/lang.c (tree_code_type): Remove.
13429         (tree_code_length, tree_code_name): Remove.
13430         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
13431         * objc/objc-act.h (enum objc_tree_code): Remove.
13432         * objc/objc-lang.c (tree_code_type): Remove.
13433         (tree_code_length, tree_code_name): Remove.
13434         * objcp/objcp-lang.c (tree_code_type): Remove.
13435         (tree_code_length, tree_code_name): Remove.
13436         * ada/ada-tree.h (enum gnat_tree_code): Remove.
13437         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
13438         * ada/misc.c (tree_code_type): Remove.
13439         (tree_code_length, tree_code_name): Remove.
13440
13441 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
13442
13443         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
13444         the grand_bitmap_obstack.
13445
13446 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13447
13448         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
13449         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
13450         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
13451         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
13452         move_stmt_r, new_label_mapper): Likewise.
13453         * tree-complex.c (cvc_lookup): Likewise.
13454         * tree-dfa.c (create_function_ann): Likewise.
13455         * tree-dump.c (dump_register): Likewise.
13456         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
13457         find_phi_replacement_condition): Likewise.
13458         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
13459         tree_function_versioning): Likewise.
13460         * tree-into-ssa.c (cmp_dfsnum): Likewise.
13461         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
13462         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
13463         get_nonlocal_debug_decl, convert_nonlocal_reference,
13464         convert_nonlocal_omp_clauses, get_local_debug_decl,
13465         convert_local_reference, convert_local_omp_clauses,
13466         convert_nl_goto_reference, convert_nl_goto_receiver,
13467         convert_tramp_reference, convert_call_expr): Likewise.
13468         * tree-outof-ssa.c (contains_tree_r): Likewise.
13469         * tree-parloops.c (reduction_phi, initialize_reductions,
13470         eliminate_local_variables_1, add_field_for_reduction,
13471         add_field_for_name, create_phi_for_local_result,
13472         create_call_for_reduction_1, create_loads_for_reductions,
13473         create_stores_for_reduction, create_loads_and_stores_for_name):
13474         Likewise.
13475         * tree-phinodes.c (allocate_phi_node): Likewise.
13476         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
13477         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
13478         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
13479         * tree-ssa-coalesce.c (compare_pairs): Likewise.
13480         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
13481         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
13482         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
13483         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13484         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
13485         vn_nary_op_insert): Likewise.
13486         * tree-ssa.c (redirect_edge_var_map_add,
13487         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
13488         * tree-vectorizer.c (vectorize_loops): Likewise.
13489         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
13490         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
13491         tree_cons_stat, build1_stat, build_variant_type_copy,
13492         decl_init_priority_lookup, decl_fini_priority_lookup,
13493         decl_priority_info, decl_restrict_base_lookup,
13494         decl_restrict_base_insert, decl_debug_expr_lookup,
13495         decl_debug_expr_insert, decl_value_expr_lookup,
13496         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
13497         type_hash_add, get_file_function_name, tree_check_failed,
13498         tree_not_check_failed, tree_range_check_failed,
13499         omp_clause_range_check_failed, build_omp_clause,
13500         build_vl_exp_stat): Likewise.
13501         * value-prof.c (gimple_histogram_value,
13502         gimple_duplicate_stmt_histograms): Likewise.
13503         * var-tracking.c (attrs_list_insert, attrs_list_copy,
13504         unshare_variable, variable_union_info_cmp_pos, variable_union,
13505         dataflow_set_different_1, dataflow_set_different_2,
13506         vt_find_locations, variable_was_changed, set_variable_part,
13507         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
13508         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
13509         section_entry_hash, object_block_entry_eq,
13510         object_block_entry_hash, create_block_symbol,
13511         initialize_cold_section_name, default_function_rodata_section,
13512         strip_reg_name, set_user_assembler_name, const_desc_eq,
13513         build_constant_desc, output_constant_def, lookup_constant_def,
13514         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
13515         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
13516         default_internal_label): Likewise.
13517         * varray.c (varray_init, varray_grow): Likewise.
13518         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
13519
13520 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
13521
13522         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
13523         operators for "test" insn.  Macroize insn using SWI mode macro.
13524         (*jcc_fused_2): Ditto.
13525         (*jcc_fused_3): Macroize insn using SWI mode macro.
13526         (*jcc_fused_4): Ditto.
13527
13528 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
13529
13530         * tree-ssa-pre.c: Fix typo in comment.
13531         (init_antic, fini_antic): Add explicit funtions for
13532         initializing and deinitializing ANTIC and AVAIL sets.
13533         (create_expression_by_pieces): Fix typo in comment.
13534         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
13535         (execute_pre): Eventually dump details about ANTIC_IN.
13536
13537 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13538
13539         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
13540         * gcc.c (translate_options, init_spec, store_arg, read_specs,
13541         add_to_obstack, file_at_path, find_a_file, execute,
13542         add_preprocessor_option, add_assembler_option, add_linker_option,
13543         process_command, insert_wrapper, do_option_spec, do_self_spec,
13544         spec_path, do_spec_1, is_directory, main, used_arg,
13545         getenv_spec_function): Likewise.
13546         * tlink.c (symbol_hash_lookup, file_hash_lookup,
13547         demangled_hash_lookup, symbol_push, file_push, frob_extension):
13548         Likewise.
13549
13550 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
13551
13552         * doc/rtl.texi: Updated subreg section.
13553
13554 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
13555
13556         PR c++/36523
13557         * cgraphunit.c (cgraph_process_new_functions): Don't clear
13558         node->needed and node->reachable.
13559         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
13560         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
13561         (expand_task_call): Don't call expand_task_copyfn.
13562         (expand_task_copyfn): Renamed to...
13563         (finalize_task_copyfn): ... this.
13564
13565 2008-06-19  Jan Hubicka  <jh@suse.cz>
13566
13567         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
13568         clobbering framepointer.
13569
13570 2008-06-19  Jan Hubicka  <jh@suse.cz>
13571
13572         * tree-optimize.c (execute_early_local_optimizations): Set
13573         cgraph_state only at first invocation.
13574
13575 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13576
13577         * system.h (-Wc++-compat): Activate as a warning, no an error.
13578
13579 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
13580
13581         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
13582         instead of "#" in insn asm template.
13583         (*jcc_fused_2): Ditto.
13584
13585 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
13586
13587         * config/i386/i386.h (ix86_tune_indices)
13588         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
13589         (TARGET_FUSE_CMP_AND_BRANCH): New define.
13590         * config/i386/i386.md (*jcc_fused_1): New insn pattern
13591         (*jcc_fused_2): Ditto.
13592         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
13593         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
13594         (print operand): Handle 'E' and 'e' code.
13595
13596 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
13597
13598         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
13599         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
13600         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
13601
13602 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
13603
13604         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
13605         node->decl.
13606         (cgraph_expand_function): Use local copy of decl.
13607         (cgraph_expand_all_functions): Remove redundant initialization of
13608         order_pos.
13609         (cgraph_optimize): Reword internal_error message.
13610
13611 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
13612
13613         * arm-protos.h (arm_return_in_memory): Remove public
13614         arm_return_in_memory() prototype.
13615         * arm.c (arm_return_in_memory): Add static prototype, add target
13616         hook macro, change definition and comments.
13617         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
13618
13619 2008-06-19  Ben Elliston  <bje@au.ibm.com>
13620
13621         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
13622         real.c: Remove references to IEEE 754R.
13623         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
13624         * doc/libgcc.texi (Decimal float library routines): Likewise.
13625
13626 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13627
13628         * targhooks.h (struct gcc_target): New member unwind_word_mode.
13629         (default_unwind_word_mode): Add prototype.
13630         * targhooks.c (default_unwind_word_mode): New function.
13631         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
13632         instead of word_mode.
13633         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
13634         (TARGET_INITIALIZER): Use it.
13635
13636         * c-common.c (handle_mode_attribute): Support "unwind_word"
13637         mode attribute.
13638         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
13639
13640         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
13641         word_mode to access SjLj_Function_Context member "data".
13642         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
13643         conversion from targetm.eh_return_filter_mode () to
13644         targetm.unwind_word_mode () if they differ.
13645
13646         * builtin-types.def (BT_UNWINDWORD): New primitive type.
13647         (BT_FN_UNWINDWORD_PTR): New function type.
13648         (BT_FN_WORD_PTR): Remove.
13649         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
13650         * except.c (expand_builtin_extend_pointer): Convert pointer to
13651         targetm.unwind_word_mode () instead of word_mode.
13652
13653         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
13654         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
13655         (spu_unwind_word_mode): New function.
13656         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
13657         (TARGET_UNWIND_WORD_MODE): Define.
13658         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
13659
13660 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13661
13662         * config/spu/spu.c (reg_align): Remove.
13663         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
13664         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
13665         (spu_split_store): Likewise.
13666
13667 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
13668
13669         * gcc/tree-vn.c: Fix typo in comment.
13670
13671 2008-06-18  Jan Hubicka  <jh@suse.cz>
13672
13673         * cgraphunit.c (cgraph_optimize): Output debug info when doing
13674         toplevel reorder too.
13675
13676 2008-06-18  Jan Hubicka  <jh@suse.cz>
13677
13678         * c-opts.c (c_common_post_options): PCH is not compatible with
13679         no-unit-at-a-time.
13680         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
13681         -fno-toplevel-reorder by default now.
13682
13683 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13684
13685         PR documentation/30739
13686         * doc/install.texi (Prerequisites): Document dependency on awk.
13687
13688 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
13689             Ian Lance Taylor  <iant@google.com>
13690
13691         PR rtl-optimization/35604
13692         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
13693         only want to change jump destinations, not eventual label comparisons.
13694
13695 2008-06-16  Jan Hubicka  <jh@suse.cz>
13696
13697         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
13698         syntax errors.
13699         (cgraph_analyze_function): Likewise.
13700
13701 2008-06-16  Jan Hubicka  <jh@suse.cz>
13702
13703         * cgraph.h (cgraph_mark_if_needed): New function.
13704         * cgraphunit.c (cgraph_mark_if_needed): New function.
13705         * c-decl.c (duplicate_decl): Use it.
13706
13707 2008-06-16  Jan Hubicka  <jh@suse.cz>
13708
13709         * cgraph.c (cgraph_add_new_function): When in expansion state, do
13710         lowering.
13711
13712 2008-06-16  Jan Hubicka  <jh@suse.cz>
13713
13714         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
13715
13716 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
13717             Kazu Hirata  <kazu@codesourcery.com>
13718             Maxim Kuvyrkov  <maxim@codesourcery.com
13719
13720         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
13721         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
13722         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
13723         EXTRA_SPEC_FUNCTIONS.
13724         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
13725         (DRIVER_SELF_SPECS): Adjust.
13726         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
13727         * config/mips/st.h, config/mips/t-st: New.
13728         * config/mips/driver-native.c, config/mips/x-native: New.
13729         * doc/invoke.texi (MIPS): Document 'native' value for -march and
13730         -mtune options.
13731
13732 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
13733
13734         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
13735         from it.
13736         (ISA_HAS_FP_CONDMOVE): New macro.
13737         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
13738         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
13739         (ISA_HAS_NMADD3_NMSUB3): New macro.
13740         * config/mips/mips.c (mips_rtx_costs): Update.
13741         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
13742         compiling for ST Loongson 2E/2F.
13743         (madd<mode>): Rename to madd4<mode>.  Update.
13744         (madd3<mode>): New pattern.
13745         (msub<mode>): Rename to msub4<mode>.  Update.
13746         (msub3<mode>): New pattern.
13747         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
13748         (nmadd3<mode>): New pattern.
13749         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
13750         (nmadd3<mode>_fastmath): New pattern.
13751         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
13752         (nmsub3<mode>): New pattern.
13753         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
13754         (nmsub3<mode>_fastmath): New pattern.
13755         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
13756
13757 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
13758
13759         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
13760         (DF_REF_INSN_INFO): New.
13761         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
13762         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
13763         with a NULL DF_REF_INSN_INFO.
13764         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
13765         DF_INSN_SET.
13766         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
13767         DF_INSN_INFO_EQ_USES): New.
13768         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
13769         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
13770         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
13771         * df-core.c: Update comment for above changes.
13772         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
13773         DF_INSN_UID_* macros.
13774         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
13775         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
13776         insn rtx.  Update all callers.
13777         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
13778         df_ref_create_structure, df_insn_refs_collect): Likewise.
13779         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
13780         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
13781         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
13782         macros to access the insn refs.
13783         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
13784         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
13785         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
13786         for accessing the refs.
13787         (try_fwprop_subst): Likewise.
13788         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
13789         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
13790         for accessing the refs.
13791         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
13792         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
13793         to look at the insn refs.
13794         (record_uses): Likewise.
13795         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
13796         function anymore.
13797         (mark_artificial_uses): Don't mark_insn for artificial refs.
13798         (mark_reg_rependencies): Likewise.
13799
13800         * doc/rtl.texi: Remove documentation of ADDRESSOF.
13801
13802 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13803
13804         * configure: Regenerate.
13805
13806 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13807
13808         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
13809         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13810         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13811
13812 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13813
13814         * config/avr/avr.c (avr_mcu_t): Add attiny167.
13815         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13816         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13817
13818 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
13819
13820         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
13821         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13822         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13823
13824 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
13825
13826         * tree-ssa-sccvn.c: Fix format of comments.
13827
13828 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
13829
13830         * cgraph.c: Remove unneeded forward declarations of eq_node()
13831         and hash_node().
13832
13833 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
13834
13835         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
13836         REG_RETVAL notes.
13837         (see_update_relevancy): Likewise.
13838         * fwprop.c (try_fwprop_subst): Likewise.
13839         * rtlanal.c (noop_move_p): Likewise.
13840         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
13841         notes to non-existing libcall blocks.
13842         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
13843         Remove orig_set.
13844         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
13845         (dead_libcall_p): Remove.
13846         (delete_trivially_dead_insns): Don't use it.
13847         * web.c (union_defs): Remove comment about keeping nops.
13848         * gcse.c (hash_scan_insn): Don't take libcall pointers.
13849         (compute_hash_table_work): Don't track libcall notes.
13850         (do_local_cprop): Don't take libcall pointers.  Don't update
13851         libcall notes.
13852         (adjust_libcall_notes): Deleted.
13853         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
13854         ever have existed in the first place).
13855         (replace_store_insn): Don't try to remove libcall notes.
13856         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
13857         (resolve_reg_notes): Don't call them.
13858         (resolve_simple_move): Likewise.
13859         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
13860         Don't remove REG_RETVAL notes.
13861         * emit-rtl.c (try_split): Don't update libcall notes.
13862         (emit_copy_of_insn_after): Dito.
13863         * cselib.c (cselib_current_insn_in_libcall): Remove.
13864         (cselib_process_insn): Don't set/clear it.
13865         (new_elt_loc_list): Don't record it.
13866         (cselib_init): Don't initialize it.
13867         * cselib.c (struct elt_loc_list): Remove in_libcall field.
13868         * loop-invariant.c (find_invariant_insn): Don't look for libcall
13869         notes.
13870         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
13871         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
13872         (init_deps): Don't initialize it.
13873         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
13874         * combine.c (delete_noop_moves): Don't update libcall notes.
13875         (can_combine_p): Remove now pointless #if 0 block.
13876         (try_combine): Remove another obsolete #if 0 block.
13877         (distribute_notes): Don't distribute libcall notes.
13878         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
13879         * dce.c (libcall_dead_p): Remove.
13880         (delete_unmarked_insns): Don't handle libcall blocks.
13881         (preserve_libcall_for_dce): Remove.
13882         (prescan_insns_for_dce): Don't special-case libcall block insns.
13883         * reload1 (reload): Don't handle libcall notes.
13884         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
13885         documentation.
13886
13887 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
13888
13889         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
13890         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13891         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13892
13893 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
13894
13895         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
13896         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
13897         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13898
13899 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13900
13901         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
13902
13903 2008-06-16  Ira Rosen  <irar@il.ibm.com>
13904
13905         PR tree-optimization/36493
13906         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
13907         the arguments list. Use VECTYPE to create vector pointer.
13908         (vectorizable_store): Fail if accesses through a pointer to vectype
13909         do not alias the original memory reference operands.
13910         Call vect_create_data_ref_ptr without the removed argument.
13911         (vectorizable_load): Likewise.
13912         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
13913         removed argument.
13914
13915 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
13916
13917         PR target/36336
13918         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
13919         reg_equiv_constant.
13920
13921 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13922
13923         * config/mips/loongson2ef.md: New file.
13924         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
13925         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
13926         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
13927         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
13928         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
13929         and loongson_2f.
13930         (loongson2ef.md): New include.
13931         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
13932         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
13933         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
13934         (loongson_gt_<mode>, loongson_extract_halfword)
13935         (loongson_insert_halfword_0, loongson_insert_halfword_2)
13936         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
13937         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
13938         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
13939         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
13940         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
13941         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
13942         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
13943         (vec_interleave_low<mode>): Define type attribute.
13944         * config/mips/mips.c (mips_ls2): New static variable.
13945         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
13946         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
13947         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
13948         Implement target scheduling hooks.
13949         (mips_multipass_dfa_lookahead): Update to handle tuning for
13950         Loongson 2E/2F.
13951         (mips_sched_init): Initialize data for Loongson scheduling.
13952         (mips_ls2_variable_issue): New static function.
13953         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
13954         Add sanity check.
13955         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
13956         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
13957         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
13958         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
13959         Handle ST Loongson 2E/2F cores.
13960         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
13961
13962 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13963
13964         * omp-low.c (extract_omp_for_data): Fix comment typo.
13965         * c.opt: Fix typo.
13966
13967 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13968
13969         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
13970         FIXME note about gcc/config.guess.
13971         * doc/options.texi (Option file format): Remove non-ASCII bytes.
13972         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
13973         * doc/cppopts.texi: Likewise.
13974         * doc/extend.texi: Likewise.
13975         * doc/gcc.texi: Likewise.
13976         * doc/gccint.texi: Likewise.
13977         * doc/gcov.texi: Likewise.
13978         * doc/gty.texi: Likewise.
13979         * doc/hostconfig.texi: Likewise.
13980         * doc/install.texi: Likewise.
13981         * doc/invoke.texi: Likewise.
13982         * doc/loop.texi: Likewise.
13983         * doc/makefile.texi: Likewise.
13984         * doc/md.texi: Likewise.
13985         * doc/passes.texi: Likewise.
13986         * doc/tm.texi: Likewise.
13987         * doc/tree-ssa.texi: Likewise.
13988         * doc/trouble.texi: Likewise.
13989
13990 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
13991             Nathan Sidwell  <nathan@codesourcery.com>
13992             Maxim Kuvyrkov  <maxim@codesourcery.com>
13993             Richard Sandiford  <rdsandiford@googlemail.com>
13994
13995         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
13996         * config/mips/mips-protos.h (mips_expand_vector_init): New.
13997         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
13998         builtins.
13999         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
14000         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
14001         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
14002         V8QImode cases.
14003         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
14004         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
14005         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
14006         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
14007         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
14008         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
14009         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
14010         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
14011         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
14012         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
14013         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
14014         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
14015         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
14016         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
14017         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
14018         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
14019         (mips_builtins): Add Loongson builtins.
14020         (mips_loongson_2ef_bdesc): New.
14021         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
14022         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
14023         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
14024         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
14025         New.
14026         (mips_expand_vector_init): New.
14027         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
14028         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
14029         if appropriate.
14030         * config/mips/mips.md: Add unspec numbers for Loongson
14031         builtins.  Include loongson.md.
14032         (MOVE64): Include Loongson vector modes.
14033         (SPLITF): Include Loongson vector modes.
14034         (HALFMODE): Handle Loongson vector modes.
14035         * config/mips/loongson.md: New.
14036         * config/mips/loongson.h: New.
14037         * config.gcc: Add loongson.h header for mips*-*-* targets.
14038         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
14039
14040 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
14041
14042         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
14043         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
14044         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
14045         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
14046         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
14047         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
14048         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
14049         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
14050         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
14051         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
14052         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
14053         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
14054         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
14055         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
14056         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
14057         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
14058         Remove use_fixproto=yes.
14059         (ia64*-*-hpux*): Remove comment about using fixproto.
14060         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
14061
14062 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14063
14064         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
14065         library rebuilds.
14066         * configure: Regenerate.
14067
14068 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
14069
14070         PR middle-end/36520
14071         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
14072         before evaluating it.
14073
14074 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
14075
14076         PR c/36507
14077         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
14078         nested inline functions.
14079         (start_decl, start_function): Don't invert DECL_EXTERNAL
14080         for nested inline functions.
14081
14082 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
14083
14084         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
14085         splits that must be made for correctness.
14086
14087 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
14088
14089         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
14090         (AVAIL_NON_MIPS16): Likewise.
14091         (mips_builtin_description): Replace target_flags with a predicate.
14092         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
14093         (dspr2_32): New availability predicates.
14094         (MIPS_BUILTIN): New macro.
14095         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
14096         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
14097         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
14098         Replace the TARGET_FLAGS parameters with AVAIL parameters.
14099         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
14100         (mips_dsp_32only_bdesc): Merge into...
14101         (mips_builtins): ...this new array.
14102         (mips_bdesc_map, mips_bdesc_arrays): Delete.
14103         (mips_init_builtins): Update after above changes.
14104         (mips_expand_builtin_1): Merge into...
14105         (mips_expand_builtin): ...here and update after above changes.
14106
14107 2008-06-12  Paul Brook  <paul@codesourcery.com>
14108
14109         * longlong.h (__arm__): Define count_leading_zeros.
14110         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
14111         (clzsi2, clzdi2): New functions.
14112         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
14113         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
14114         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
14115         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
14116         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
14117         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
14118         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
14119         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
14120         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
14121         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
14122
14123 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
14124
14125         * config/m68k/m68k.c (m68k_tune_flags): New.
14126         (override_options): Compute m68k_tune_flags.
14127         (MULL_COST, MULW_COST): Update for various variants of CFV2.
14128         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
14129
14130 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14131
14132         PR middle-end/36506
14133         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
14134
14135 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14136
14137         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
14138         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
14139
14140 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14141
14142         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
14143         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
14144
14145 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14146
14147         PR middle-end/36506
14148         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
14149         reductions.
14150
14151 2008-06-12  Richard Guenther  <rguenther@suse.de>
14152
14153         PR tree-optimization/36345
14154         * tree-flow.h (struct ptr_info_def): Align escape_mask,
14155         add memory_tag_needed flag.
14156         (may_alias_p): Declare.
14157         * tree-ssa-alias.c (may_alias_p): Export.
14158         (set_initial_properties): Use memory_tag_needed flag.
14159         (update_reference_counts): Likewise.
14160         (reset_alias_info): Reset memory_tag_needed flag.
14161         (create_name_tags): Check memory_tag_needed flag.
14162         (dump_points_to_info_for): Dump it.
14163         * tree-ssa-structalias.c (struct variable_info): Remove
14164         directly_dereferenced flag.
14165         (new_var_info): Do not initialize it.
14166         (process_constraint_1): Do not set it.
14167         (update_alias_info): Set is_dereferenced flag.
14168         (set_uids_in_ptset): Use may_alias_p.
14169         (set_used_smts): Check memory_tag_needed flag.
14170         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
14171         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
14172         memory_tag_needed flag.
14173         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
14174         from broken design.
14175
14176 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
14177
14178         * config/i386/i386.c (ix86_compute_frame_layout): Disable
14179         red zone for w64 abi.
14180         (ix86_expand_prologue): Likewise.
14181         (ix86_force_to_memory): Likewise.
14182         (ix86_free_from_memory): Likewise.
14183
14184 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
14185
14186         PR target/36425
14187         * config/rs6000/rs6000.c (rs6000_override_options): Set
14188         rs6000_isel conditionally to the absence of comand line override.
14189         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14190         Remove duplicate rs6000_isel setting.
14191         * config/rs6000/eabispe.h: Ditto.
14192
14193 2008-06-11  Richard Guenther  <rguenther@suse.de>
14194
14195         * alias.c (get_alias_set): Use the element alias-set for arrays.
14196         (record_component_aliases): For arrays and vectors do nothing.
14197         * c-common.c (strict_aliasing_warning): Handle the cases
14198         of alias set zero explicitly.
14199         * Makefile.in (dfp.o-warn): Add -Wno-error.
14200
14201 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
14202
14203         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
14204         tune_32 tune_64.
14205         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
14206         tune_32 tune_64 to supported_defaults.  Allow values not
14207         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
14208         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
14209         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
14210         with_cpu_64 to generic for 64-bit-supporting configurations, not
14211         with_cpu.  Remove FIXMEs.
14212         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
14213         --with-arch-64, --with-tune-32, --with-tune-64): Document.
14214         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
14215         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
14216         arch_32 and arch_64.
14217
14218 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
14219             Olivier Hainque  <hainque@adacore.com>
14220
14221         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
14222         Use DECL_SIZE_UNIT to retrieve the size of the field.
14223
14224 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
14225
14226         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
14227         with function calls after declarations.  Lay out
14228         neon_float_type_node before further use.
14229
14230 2008-06-11  Richard Guenther  <rguenther@suse.de>
14231
14232         * tree-flow.h (may_point_to_global_var): Declare.
14233         * tree-ssa-alias.c (may_point_to_global_var): New function.
14234         * tree-ssa-sink.c (is_hidden_global_store): Use it.
14235
14236 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
14237
14238         * configure.ac: Teach that fido supports .debug_line.
14239         * configure: Regenerate.
14240
14241 2008-06-10  Tom Tromey  <tromey@redhat.com>
14242
14243         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
14244         debug hook.
14245
14246 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
14247
14248         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
14249         (encode_decimal64, decode_decimal64, encode_decimal128,
14250         decode_decimal128): Reverse order of 32-bit parts of value if host
14251         and target endianness differ.
14252
14253 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
14254
14255         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
14256         Avoid division by 0.
14257         (tree_mod_pow2_value_transform): Likewise.
14258         (tree_ic_transform): Likewise.
14259         (tree_stringops_transform): Likewise.
14260         (tree_mod_subtract_transform): Likewise.
14261         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
14262         (copy_edges_for_bb): Likewise.
14263         (initialize_cfun): Likewise.
14264
14265 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
14266
14267         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
14268         nonmemory_operand. Add "N" operand constraint.
14269         (*btsi): Ditto.
14270         (*jcc_btdi_mask_rex64): New instruction and split pattern.
14271         (*jcc_btsi_mask): Ditto.
14272         (*jcc_btsi_mask_1): Ditto.
14273
14274 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
14275
14276         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
14277         TYPE_CANONICAL for copied element type.
14278
14279 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
14280
14281         PR target/36473
14282         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
14283         Add m_CORE2 and m_GENERIC.
14284         * config/i386/predicates.md (bt_comparison_operator): New predicate.
14285         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
14286         (*btsi): Ditto.
14287         (*jcc_btdi_rex64): New instruction and split pattern.
14288         (*jcc_btsi): Ditto.
14289         (*jcc_btsi_1): Ditto.
14290         (*btsq): Fix Intel asm dialect operand order.
14291         (*btrq): Ditto.
14292         (*btcq): Ditto.
14293
14294 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
14295
14296         PR middle-end/36447
14297         * simplify-rtx.c (simplify_subreg): Add check for shift count
14298         greater than size.
14299
14300 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
14301
14302         * doc/md.texi: Synchronize with later constraints.md change.
14303         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
14304         with a C implementation.
14305         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
14306         MFLO handling.
14307         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
14308         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
14309         when moving to and from MD_REGNUM.
14310         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
14311         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
14312         Handle byte and halfword moves.
14313         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
14314         separately.
14315         * config/mips/constraints.md (h): Turn into NO_REGS.
14316         (l, x): Update documentation.
14317         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
14318         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
14319         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
14320         (HILO): New mode iterator.
14321         (MOVE128): Add TI.
14322         (any_div): New code iterator.
14323         (u): Extend code attribute to div and udiv.
14324         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
14325         d_operand in the splitters.  Remove redundant CONST_INT checks.
14326         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
14327         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
14328         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
14329         accordingly, using normal moves instead of unspecs to move LO into
14330         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
14331         (<u>mulsidi3): Handle expansion in C code.
14332         (<u>mulsidi3_32bit_internal): Rename to...
14333         (<u>mulsidi3_32bit): ...this.
14334         (<u>mulsidi3_32bit_r4000): Fix insn separator.
14335         (*<u>mulsidi3_64bit): Rename to...
14336         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
14337         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
14338         to set LO and HI to the multiplication result.  Use a normal move
14339         for MFLO and an unspec for MFHI.
14340         (*<u>mulsidi3_64bit_parts): Replace with...
14341         (<u>mulsidi3_64bit_hilo): ...this new instruction.
14342         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
14343         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
14344         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
14345         instead of HI.  Split the instruction into a separate multiplication
14346         and MFHI if !TARGET_FIX_R4000.
14347         (<su>muldi3_highpart): Likewise.
14348         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
14349         and the "=h" clobber.
14350         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
14351         (<u>mulditi3): New expander.
14352         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
14353         (madsi): Remove "=h" clobber.
14354         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
14355         Force the modulus result to be a GPR and split the instruction into
14356         a division followed by an MFHI after reload.
14357         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
14358         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
14359         the MIPS16 HIGH define_split.
14360         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
14361         of acc<->gpr moves to "multi".
14362         (*movdi_64bit): Replace the single "x" alternative with
14363         alternatives for moving into and out of "a".
14364         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
14365         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
14366         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
14367         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
14368         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
14369         (movti): New expander.
14370         (*movti, *movti_mips16): New insns.
14371         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
14372         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
14373         (mthi<GPR:mode>_<HILO:mode>): Likewise.
14374         * config/mips/predicates.md (fpr_operand): Delete.
14375         (d_operand): New predicate.
14376
14377 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
14378
14379         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
14380         failure on some Bourne shells.
14381         (x86_64-*-*): Ditto.
14382
14383 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
14384
14385         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
14386
14387 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14388
14389         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
14390         (sparc-sun-solaris2*): Likewise.
14391
14392 2008-06-09  Arnaud Charlet  <charlet@adacore.com
14393
14394         * doc/install.texi: Update requirements to build the Ada compiler.
14395
14396 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
14397
14398         * df-scan.c (struct df_scan_problem_data): Remove the
14399         mw_link_pool alloc pool.
14400         (df_scan_free_internal): Don't free it.
14401         (df_scan_alloc): Don't allocate it.
14402         * df.h (struct df_link): Update comment.
14403
14404 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
14405
14406         * except.h: Correct checks for when SJLJ exceptions must be used.
14407
14408 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14409
14410         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
14411         default.
14412
14413 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
14414
14415         PR tree-optimization/36218
14416         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
14417         configure for the build system.
14418         (BUILD_LDFLAGS): Define.
14419         * configure: Regenerate.
14420         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
14421
14422 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
14423
14424         PR target/36424
14425         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
14426         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
14427         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
14428
14429 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
14430
14431         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
14432
14433 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
14434
14435         * config.gcc (Obsolete configurations): Remove list of
14436         configurations.
14437         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
14438         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
14439         targets matched by those patterns.
14440         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
14441         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
14442         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
14443         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
14444         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14445         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
14446         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
14447         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
14448         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
14449         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
14450         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
14451         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
14452         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
14453         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
14454         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
14455         Make code for Solaris 7 and greater unconditional for Solaris.
14456         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
14457         Remove --with-* handling.
14458         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
14459         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
14460         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
14461         LINK_OS_WINDISS_SPEC): Remove.
14462         * config/rs6000/sysv4.opt (mwindiss): Remove.
14463         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
14464         * configure: Regenerate.
14465         * doc/cpp.texi: Don't mention BeOS.
14466         * doc/extend.texi (interrupt): Don't mention MS1.
14467         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
14468         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
14469         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
14470         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
14471         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
14472         Remove.
14473         * doc/invoke.texi (MT Options): Remove.
14474         (-mwindiss): Remove.
14475         (CRIS Options): Remove cris-axis-aout references.
14476         (HPPA Options): Don't mention hppa1.1-*-pro.
14477         * doc/md.texi: (MorphoTech family): Remove.
14478         * libgcc2.c: Don't handle UWIN.
14479         * config/alpha/t-unicosmk: Remove.
14480         * config/alpha/unicosmk.h: Remove.
14481         * config/arm/kaos-arm.h: Remove.
14482         * config/arm/kaos-strongarm.h: Remove.
14483         * config/arm/strongarm-coff.h: Remove.
14484         * config/arm/strongarm-elf.h: Remove.
14485         * config/arm/strongarm-pe.h: Remove.
14486         * config/arm/t-strongarm-pe: Remove.
14487         * config/arm/t-xscale-coff: Remove.
14488         * config/arm/t-xscale-elf: Remove.
14489         * config/arm/xscale-coff.h: Remove.
14490         * config/arm/xscale-elf.h: Remove.
14491         * config/chorus.h: Remove.
14492         * config/cris/aout.h: Remove.
14493         * config/cris/aout.opt: Remove.
14494         * config/cris/t-aout: Remove.
14495         * config/i386/beos-elf.h: Remove.
14496         * config/i386/kaos-i386.h: Remove.
14497         * config/i386/ptx4-i.h: Remove.
14498         * config/i386/sco5.h: Remove.
14499         * config/i386/sco5.opt: Remove.
14500         * config/i386/sysv4-cpp.h: Remove.
14501         * config/i386/sysv5.h: Remove.
14502         * config/i386/t-beos: Remove.
14503         * config/i386/t-sco5: Remove.
14504         * config/i386/t-uwin: Remove.
14505         * config/i386/uwin.asm: Remove.
14506         * config/i386/uwin.h: Remove.
14507         * config/kaos.h: Remove.
14508         * config/mips/windiss.h: Remove.
14509         * config/mt: Remove directory.
14510         * config/pa/pa-osf.h: Remove.
14511         * config/pa/pa-pro-end.h: Remove.
14512         * config/pa/t-pro: Remove.
14513         * config/ptx4.h: Remove.
14514         * config/rs6000/beos.h: Remove.
14515         * config/rs6000/kaos-ppc.h: Remove.
14516         * config/rs6000/t-beos: Remove.
14517         * config/rs6000/windiss.h: Remove.
14518         * config/sh/kaos-sh.h: Remove.
14519         * config/sol2-6.h: Remove.
14520         * config/sparc/sol26-sld.h: Remove.
14521         * config/sparc/sysv4-only.h: Remove.
14522         * config/vax/bsd.h: Remove.
14523         * config/vax/t-memfuncs: Remove.
14524         * config/vax/ultrix.h: Remove.
14525         * config/vax/vaxv.h: Remove.
14526         * config/windiss.h: Remove.
14527
14528 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
14529
14530         PR rtl-optimization/36438
14531         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
14532         for vector shifts with constant scalar shift operands.
14533
14534 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
14535
14536         * doc/invoke.texi: Document -march=xlr.
14537         * config/mips/xlr.md: New file.
14538         * config/mips/mips.md: Include it.
14539         (cpu): Add "xlr".
14540         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
14541         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
14542         (mips_rtx_cost_data): Likewise.
14543
14544 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
14545
14546         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
14547         PRE_INC and PRE_DEC cases.
14548
14549 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14550
14551         PR rtl-optimization/36419
14552         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
14553         the emitting jump insn.
14554
14555         PR target/36362
14556         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
14557         is not bool, boolify the whole *expr_p and convert to the desired type.
14558
14559 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14560
14561         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
14562         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
14563         Add omp_private_outer_ref hook, add another argument to
14564         omp_clause_default_ctor hook.
14565         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
14566         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
14567         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
14568         hook_tree_tree_tree_tree_null.
14569         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
14570         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
14571         * hooks.c (hook_tree_tree_tree_tree_null): New function.
14572         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
14573         * tree.def (OMP_TASK): New tree code.
14574         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
14575         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
14576         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
14577         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
14578         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
14579         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
14580         OMP_CLAUSE_COLLAPSE_EXPR): Define.
14581         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
14582         (OMP_DIRECTIVE_P): Add OMP_TASK.
14583         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
14584         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
14585         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
14586         and OMP_CLAUSE_UNTIED entries.
14587         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
14588         num_ops to 2.
14589         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14590         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
14591         * tree-pretty-print.c (dump_omp_clause): Handle
14592         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
14593         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
14594         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
14595         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
14596         warning about unsigned iterators.  Change decl/init/cond/incr
14597         arguments to TREE_VECs, check arguments for all collapsed loops.
14598         (c_finish_omp_taskwait): New function.
14599         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
14600         ws_clauses.
14601         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
14602         default_function_array_conversion on init.  Add par_clauses argument.
14603         If decl is present in parallel's lastprivate clause, change it to
14604         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
14605         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
14606         collapse count in clauses.
14607         (c_parser_omp_for, c_parser_omp_parallel): Adjust
14608         c_parser_omp_for_loop callers.
14609         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
14610         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
14611         (c_parser_omp_clause_name): Handle collapse and untied clauses.
14612         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
14613         functions.
14614         (c_parser_omp_clause_schedule): Handle schedule(auto).
14615         Include correct location in the error message.
14616         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
14617         and PRAGMA_OMP_CLAUSE_UNTIED.
14618         (OMP_TASK_CLAUSE_MASK): Define.
14619         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
14620         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
14621         * tree-nested.c (convert_nonlocal_omp_clauses,
14622         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
14623         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
14624         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14625         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
14626         OMP_CLAUSE_DECL.
14627         (conver_nonlocal_reference, convert_local_reference,
14628         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
14629         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
14630         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
14631         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
14632         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
14633         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
14634         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
14635         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
14636         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
14637         OMP_CLAUSE_UNTIED.
14638         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
14639         * c-common.h (c_finish_omp_taskwait): New prototype.
14640         * gimple-low.c (lower_stmt): Handle OMP_TASK.
14641         * tree-parloops.c (create_parallel_loop): Create 1 entry
14642         vectors for OMP_FOR_{INIT,COND,INCR}.
14643         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
14644         (make_edges): Handle OMP_TASK.
14645         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
14646         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14647         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
14648         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
14649         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
14650         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
14651         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
14652         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
14653         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
14654         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
14655         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
14656         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
14657         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
14658         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
14659         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
14660         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
14661         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
14662         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
14663         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
14664         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
14665         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
14666         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
14667         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
14668         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
14669         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
14670         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
14671         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
14672         original iterator is present in lastprivate clause or if
14673         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
14674         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14675         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
14676         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
14677         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
14678         if it is set, lookup var in outer contexts too.  Handle
14679         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
14680         to be implicitly determined firstprivate for task regions.
14681         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
14682         if it is set, lookup var in outer contexts too.  Set
14683         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
14684         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
14685         OMP_CLAUSE_UNTIED.  Take region_type as last argument
14686         instead of in_parallel and in_combined_parallel.
14687         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
14688         Adjust callers.
14689         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
14690         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
14691         (new_omp_context): Set default_kind to
14692         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
14693         (omp_region_type): New enum.
14694         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
14695         fields, add region_type.
14696         (new_omp_context): Take region_type as argument instead of is_parallel
14697         and is_combined_parallel.
14698         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
14699         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
14700         ctx->is_combined_parallel checks.
14701         (gimplify_omp_task): New function.
14702         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
14703         OMP_CLAUSE_UNTIED.
14704         * omp-low.c (extract_omp_for_data): Use schedule(static)
14705         for schedule(auto).  Handle pointer and unsigned iterators.
14706         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
14707         Add loops argument.  Extract data for collapsed OMP_FOR loops.
14708         (expand_parallel_call): Assert sched_kind isn't auto,
14709         map runtime schedule to index 3.
14710         (struct omp_for_data_loop): New type.
14711         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
14712         Add loop, loops, collapse and iter_type fields.
14713         (workshare_safe_to_combine_p): Disallow combined for if
14714         iter_type is unsigned long long.  Don't combine collapse > 1 loops
14715         unless all bounds and steps are constant.  Adjust extract_omp_for_data
14716         caller.
14717         (expand_omp_for_generic): Handle pointer, unsigned and long long
14718         iterators.  Handle collapsed OMP_FOR loops.  Adjust
14719         for struct omp_for_data changes.  If libgomp function doesn't return
14720         boolean_type_node, add comparison of the return value with 0.
14721         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
14722         pointer, unsigned and long long iterators.  Adjust for struct
14723         omp_for_data changes.
14724         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
14725         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
14726         unsigned long long.  Allocate loops array, pass it to
14727         extract_omp_for_data.  For collapse > 1 loops use always
14728         expand_omp_for_generic.
14729         (omp_context): Add sfield_map and srecord_type fields.
14730         (is_task_ctx, lookup_sfield): New functions.
14731         (use_pointer_for_field): Use is_task_ctx helper.  Change first
14732         argument's type from const_tree to tree.  Clarify comment.
14733         In OMP_TASK disallow copy-in/out sharing.
14734         (build_sender_ref): Call lookup_sfield instead of lookup_field.
14735         (install_var_field): Add mask argument.  Populate both record_type
14736         and srecord_type if needed.
14737         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
14738         in srecord_type.
14739         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
14740         and DECL_FIELD_OFFSET.
14741         (scan_sharing_clauses): Adjust install_var_field callers.  For
14742         firstprivate clauses on explicit tasks allocate the var by value in
14743         record_type unconditionally, rather than by reference.
14744         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
14745         Use is_taskreg_ctx instead of is_parallel_ctx.
14746         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
14747         (create_omp_child_function_name): Add task_copy argument, use
14748         *_omp_cpyfn* names if it is true.
14749         (create_omp_child_function): Add task_copy argument, if true create
14750         *_omp_cpyfn* helper function.
14751         (scan_omp_parallel): Adjust create_omp_child_function callers.
14752         Rename parallel_nesting_level to taskreg_nesting_level.
14753         (scan_omp_task): New function.
14754         (lower_rec_input_clauses): Don't run constructors for firstprivate
14755         explicit task vars which are initialized by *_omp_cpyfn*.
14756         Pass outer var ref to omp_clause_default_ctor hook if
14757         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
14758         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
14759         OMP_CLAUSE_REDUCTION_INIT.
14760         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
14761         avoid duplicate setting of fields.  Handle
14762         OMP_CLAUSE_PRIVATE_OUTER_REF.
14763         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
14764         copy-out if TREE_READONLY, only copy-in.
14765         (expand_task_copyfn): New function.
14766         (expand_task_call): New function.
14767         (struct omp_taskcopy_context): New type.
14768         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
14769         New functions.
14770         (lower_omp_parallel): Rename to...
14771         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
14772         Call create_task_copyfn if srecord_type is needed.  Adjust
14773         sender_decl type.
14774         (task_shared_vars): New variable.
14775         (check_omp_nesting_restrictions): Warn if work-sharing,
14776         barrier, master or ordered region is closely nested inside OMP_TASK.
14777         Add warnings for barrier if closely nested inside of work-sharing,
14778         ordered, or master region.
14779         (scan_omp_1): Call check_omp_nesting_restrictions even for
14780         GOMP_barrier calls.  Rename parallel_nesting_level to
14781         taskreg_nesting_level.  Handle OMP_TASK.
14782         (lower_lastprivate_clauses): Even if some lastprivate is found on a
14783         work-sharing construct, continue looking for them on parent parallel
14784         construct.
14785         (lower_omp_for_lastprivate): Add lastprivate clauses
14786         to the beginning of dlist rather than end.  Adjust for struct
14787         omp_for_data changes.
14788         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
14789         not after it.  Handle collapsed OMP_FOR loops, adjust for
14790         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
14791         (get_ws_args_for): Adjust extract_omp_for_data caller.
14792         (scan_omp_for): Handle collapsed OMP_FOR
14793         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
14794         (lower_omp_single_simple): If libgomp function doesn't return
14795         boolean_type_node, add comparison of the return value with 0.
14796         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
14797         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
14798         (parallel_nesting_level): Rename to...
14799         (taskreg_nesting_level): ... this.
14800         (is_taskreg_ctx): New function.
14801         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
14802         of is_parallel_ctx.
14803         (execute_lower_omp): Rename parallel_nesting_level to
14804         taskreg_nesting_level.
14805         (expand_omp_parallel): Rename to...
14806         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
14807         Call omp_task_call for OMP_TASK regions.
14808         (expand_omp): Adjust caller, handle OMP_TASK.
14809         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
14810
14811         * bitmap.c (bitmap_default_obstack_depth): New variable.
14812         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
14813         if argument is NULL and bitmap_default_obstack is already initialized.
14814         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
14815         at the end.
14816         * matrix-reorg.c (matrix_reorg): Likewise.
14817
14818 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
14819
14820         * config/i386/i386.md (*indirect_jump): Macroize using P
14821         mode iterator.  Remove !TARGET_64BIT from insn constraints.
14822         (*tablejump_1): Ditto.
14823         (*indirect_jump_rex64): Remove insn pattern.
14824         (*tablejump_1_rex64): Ditto.
14825         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
14826         and eh_return_si insn patterns.
14827
14828 2008-06-06  Richard Guenther  <rguenther@suse.de>
14829
14830         * tree-ssa-structalias.c (merge_smts_into): Remove.
14831         (find_what_p_points_to): Do not bother to compute the
14832         points-to set for pt_anything pointers.
14833         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
14834         for pt_anything pointers is ok.
14835
14836 2008-06-06  Jan Hubicka  <jh@suse.cz>
14837
14838         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
14839
14840 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14841
14842         * cgraph.c: Fix typos in comments.
14843         (cgraph_availability_names): Fix string typo.
14844         * fold-const.c: Fix typos in comments.
14845         (fold_binary): Fix typo in warning.
14846         * genautomata.c: Fix typos in comments.
14847         (check_presence_pattern_sets): Fix typo in local variable.
14848         (output_description): Fix typo in output.
14849         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
14850         * hwint.h: Likewise.
14851         * matrix-reorg.c (check_allocation_function): Likewise.
14852         * omega.c (smooth_weird_equations): Likewise.
14853         * auto-inc-dec.c: Fix typos in comments.
14854         * bb-reorder.c: Likewise.
14855         * builtins.c: Likewise.
14856         * c-common.c: Likewise.
14857         * c-cppbuiltin.c: Likewise.
14858         * c-parser.c: Likewise.
14859         * c-pretty-print.c: Likewise.
14860         * cfgcleanup.c: Likewise.
14861         * cfgexpand.c: Likewise.
14862         * cfghooks.c: Likewise.
14863         * cfglayout.c: Likewise.
14864         * cfgloopmanip.c: Likewise.
14865         * cgraphunit.c: Likewise.
14866         * coverage.c: Likewise.
14867         * dbxout.c: Likewise.
14868         * df-byte-scan.c: Likewise.
14869         * df-core.c: Likewise.
14870         * df-problems.c: Likewise.
14871         * df-scan.c: Likewise.
14872         * dfp.c: Likewise.
14873         * dominance.c: Likewise.
14874         * domwalk.c: Likewise.
14875         * dse.c: Likewise.
14876         * dwarf2out.c: Likewise.
14877         * emit-rtl.c: Likewise.
14878         * et-forest.c: Likewise.
14879         * function.c: Likewise.
14880         * function.h: Likewise.
14881         * gcc.c: Likewise.
14882         * gcov-io.c: Likewise.
14883         * gcov.c: Likewise.
14884         * gcse.c: Likewise.
14885         * genattrtab.c: Likewise.
14886         * ggc-page.c: Likewise.
14887         * gimplify.c: Likewise.
14888         * gthr-lynx.h: Likewise.
14889         * haifa-sched.c: Likewise.
14890         * ipa-cp.c: Likewise.
14891         * ipa-inline.c: Likewise.
14892         * ipa-prop.h: Likewise.
14893         * ipa-pure-const.c: Likewise.
14894         * ipa-struct-reorg.c: Likewise.
14895         * ipa-struct-reorg.h: Likewise.
14896         * ipa-type-escape.c: Likewise.
14897         * ipa.c: Likewise.
14898         * loop-doloop.c: Likewise.
14899         * mips-tfile.c: Likewise.
14900         * mkmap-flat.awk: Likewise.
14901         * mkmap-symver.awk: Likewise.
14902         * modulo-sched.c: Likewise.
14903         * omp-low.c: Likewise.
14904         * optabs.c: Likewise.
14905         * optabs.h: Likewise.
14906         * opts.c: Likewise.
14907         * passes.c: Likewise.
14908         * postreload-gcse.c: Likewise.
14909         * postreload.c: Likewise.
14910         * predict.c: Likewise.
14911         * pretty-print.h: Likewise.
14912         * profile.c: Likewise.
14913         * protoize.c: Likewise.
14914         * ra-conflict.c: Likewise.
14915         * real.c: Likewise.
14916         * recog.c: Likewise.
14917         * regclass.c: Likewise.
14918         * regs.h: Likewise.
14919         * reload.c: Likewise.
14920         * rtl-error.c: Likewise.
14921         * rtlanal.c: Likewise.
14922         * scan.h: Likewise.
14923         * sched-rgn.c: Likewise.
14924         * see.c: Likewise.
14925         * stmt.c: Likewise.
14926         * target.h: Likewise.
14927         * tree-dfa.c: Likewise.
14928         * tree-eh.c: Likewise.
14929         * tree-flow-inline.h: Likewise.
14930         * tree-inline.c: Likewise.
14931         * tree-into-ssa.c: Likewise.
14932         * tree-loop-distribution.c: Likewise.
14933         * tree-nested.c: Likewise.
14934         * tree-parloops.c: Likewise.
14935         * tree-pass.h: Likewise.
14936         * tree-pretty-print.c: Likewise.
14937         * tree-profile.c: Likewise.
14938         * tree-scalar-evolution.c: Likewise.
14939         * tree-sra.c: Likewise.
14940         * tree-ssa-alias-warnings.c: Likewise.
14941         * tree-ssa-ccp.c: Likewise.
14942         * tree-ssa-coalesce.c: Likewise.
14943         * tree-ssa-dom.c: Likewise.
14944         * tree-ssa-dse.c: Likewise.
14945         * tree-ssa-forwprop.c: Likewise.
14946         * tree-ssa-live.c: Likewise.
14947         * tree-ssa-live.h: Likewise.
14948         * tree-ssa-loop-im.c: Likewise.
14949         * tree-ssa-loop-ivopts.c: Likewise.
14950         * tree-ssa-loop-niter.c: Likewise.
14951         * tree-ssa-loop-prefetch.c: Likewise.
14952         * tree-ssa-phiopt.c: Likewise.
14953         * tree-ssa-phiprop.c: Likewise.
14954         * tree-ssa-sccvn.c: Likewise.
14955         * tree-ssa-ter.c: Likewise.
14956         * tree-ssa-threadupdate.c: Likewise.
14957         * tree-ssa.c: Likewise.
14958         * tree-vect-analyze.c: Likewise.
14959         * tree-vect-transform.c: Likewise.
14960         * tree-vectorizer.c: Likewise.
14961         * tree-vn.c: Likewise.
14962         * tree-vrp.c: Likewise.
14963         * tree.c: Likewise.
14964         * tree.def: Likewise.
14965         * tree.h: Likewise.
14966         * unwind-dw2-fde.c: Likewise.
14967         * unwind.inc: Likewise.
14968         * value-prof.c: Likewise.
14969         * vmsdbgout.c: Likewise.
14970
14971 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
14972
14973         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
14974         always place FP constants in the TOC for TARGET_POWERPC64.
14975         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
14976
14977 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
14978
14979         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
14980         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
14981         enable for TARGET_E500_DOUBLE.
14982         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
14983         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
14984         floating-point modes like integer modes for E500 double.
14985         (rs6000_legitimate_offset_address_p): Likewise.
14986         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
14987         addressing for DDmode for E500 double.
14988         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
14989         modes as using 64-bits of registers for E500 double.
14990         (spe_build_register_parallel): Do not handle DDmode or TDmode.
14991         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
14992         specially for E500 double.
14993         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
14994         TDmode for E500 double.
14995         (rs6000_gimplify_va_arg): Only handle SDmode in registers
14996         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
14997         (rs6000_split_multireg_move): Do not handle TDmode specially for
14998         E500 double.
14999         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
15000         using 64-bit registers for E500 double.
15001         (emit_frame_save): Do not handle DDmode specially for E500 double.
15002         (gen_frame_mem_offset): Likewise.
15003         (rs6000_function_value): Do not call spe_build_register_parallel
15004         for DDmode or TDmode.
15005         (rs6000_libcall_value): Likewise.
15006         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
15007         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
15008         for E500 double.
15009
15010 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
15011
15012         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
15013         in comments.
15014
15015 2008-06-04  Junjie Gu <jgu@tensilica.com>
15016
15017         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
15018         comparison for frame pointers.
15019
15020 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
15021
15022         PR target/27386
15023         * config/avr/avr.h (PUSH_ROUNDING): Remove.
15024
15025 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
15026
15027         PR target/30243
15028         * builtins.c (expand_builtin_signbit): Don't take lowpart when
15029         register is already smaller or equal to required mode.
15030
15031 2008-06-04  Xinliang David Li  <davidxl@google.com>
15032
15033         * tree-call-cdce.c: New file.
15034         (cond_dead_built_in_calls): New static variable.
15035         (input_domain): New struct.
15036         (check_pow): New function.
15037         (check_builtin_call): Ditto.
15038         (check_target_format): Ditto.
15039         (is_call_dce_candidate): Ditto.
15040         (gen_one_condition): Ditto.
15041         (gen_conditions_for_domain): Ditto.
15042         (get_domain): Ditto.
15043         (gen_conditions_for_pow_cst_base): Ditto.
15044         (gen_conditions_for_pow_int_base): Ditto.
15045         (gen_conditions_for_pow): Ditto.
15046         (get_no_error_domain): Ditto.
15047         (gen_shrink_wrap_conditions): Ditto.
15048         (shrink_wrap_one_built_in_call): Ditto.
15049         (shink_wrap_conditional_dead_built_in_calls): Ditto.
15050         (tree_call_cdce): Ditto.
15051         (gate_call_cdce): Ditto.
15052         (pass_call_cdce): New gimple pass.
15053         * passes.c: (init_optimization_passes): New pass.
15054         * tree-pass.h: New pass declaration.
15055         * opts.c (decode_options): New flag setting.
15056         * common.opt: Add -ftree-builtin-call-dce flag.
15057         * Makefile.in: Add new source file.
15058         * tempvar.def: New tv_id.
15059         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
15060
15061 2008-06-04  Richard Guenther  <rguenther@suse.de>
15062
15063         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
15064         (is_call_clobbered): Always check var_ann->call_clobbered.
15065         (mark_call_clobbered): Always set var_ann->call_clobbered.
15066         (clear_call_clobbered): Always clear var_ann->call_clobbered.
15067         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
15068         (reset_alias_info): Clear call clobbering info on MTAGs and
15069         globals as well.
15070         (set_pt_anything): Set pt_global_mem.
15071         (create_tag_raw): Adjust comment.
15072         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
15073
15074 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
15075             Maxim Kuvyrkov  <maxim@codesourcery.com>
15076
15077         * config/m68k/m68k.opt (mxgot): New option.
15078         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
15079         (m68k_output_addr_const_extra): New.
15080         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
15081         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
15082         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
15083         * doc/invoke.texi (M680x0 Options): Document -mxgot.
15084
15085 2008-06-04  Richard Guenther  <rguenther@suse.de>
15086
15087         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
15088         negative or non-representable offsets.
15089
15090 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
15091
15092         * config/i386/i386.c (ix86_gen_leave): New.
15093         (ix86_gen_pop1): Likewise.
15094         (ix86_gen_add3): Likewise.
15095         (ix86_gen_sub3): Likewise.
15096         (ix86_gen_sub3_carry): Likewise.
15097         (ix86_gen_one_cmpl2): Likewise.
15098         (ix86_gen_monitor): Likewise.
15099         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
15100         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15101         ix86_gen_one_cmpl2 and ix86_gen_monitor.
15102         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
15103         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
15104         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
15105         (ix86_expand_epilogue): Updated.
15106         (print_operand): Handle integer register operand for 'z'.
15107         (ix86_expand_strlensi_unroll_1): Likewise.
15108         (ix86_expand_strlen): Likewise.
15109         (ix86_expand_builtin): Likewise.
15110         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
15111         mov{q}/mov{l} and add{q}/add{l}.
15112
15113 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15114
15115         * config/i386/i386.md (P): New mode iterator.
15116         (SFmode push_operand splitter): Macroize DImode and SImode pushes
15117         using P mode iterator.
15118         (DFmode push_operand splitter): Ditto.
15119         (XFmode push_operand splitter): Ditto.
15120         (DFmode float_extend SFmode push_operand splitter): Ditto.
15121         (XFmode float_extend SFmode push_operand splitter): Do not generate
15122         SImode pushes for 64bit target.  Macroize Dimode and SImode
15123         pushes using P mode iterator.
15124         (XFmode float_extend DFmode push_operand splitter): Ditto.
15125
15126 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15127
15128         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
15129         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
15130         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
15131         return type to int.
15132         (ix86_call_abi_override): Remove check for call_used_regs.
15133
15134 2008-06-03  Richard Guenther  <rguenther@suse.de>
15135
15136         * tree-ssa-structalias.c (find_func_aliases): Add constraints
15137         for the lhs of calls if the return type contains pointers.
15138
15139 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
15140
15141         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
15142         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
15143         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
15144         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
15145         of cfun and DEFAULT_ABI to deceide abi mode.
15146         (DEFAULT_ABI): New.
15147         (REG_PARM_STACK_SPACE): Removed.
15148         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
15149         (STACK_BOUNDARY): Use default target to deceide stack boundary.
15150         * config/i386/i386-protos.h (ix86_cfun_abi): New.
15151         (ix86_function_abi): Likewise.
15152         (ix86_function_type_abi): Likewise.
15153         (ix86_call_abi_override): Likewise.
15154         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
15155         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
15156         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
15157         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
15158         specific defines.
15159         (X86_64_REGPARM_MAX): New.
15160         (X86_64_SSE_REGPARM_MAX): New.
15161         (X64_REGPARM_MAX): New.
15162         (X64_SSE_REGPARM_MAX): New.
15163         (X86_32_REGPARM_MAX): New.
15164         (X86_32_SSE_REGPARM_MAX): New.
15165         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
15166         (ix86_function_regparm): Handle user calling abi.
15167         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
15168         by DEFAULT_ABI versus SYSV_ABI check.
15169         (ix86_reg_parm_stack_space): New.
15170         (ix86_function_type_abi): New.
15171         (ix86_call_abi_override): New.
15172         (ix86_function_abi): New.
15173         (ix86_cfun_abi): New.
15174         (init_cumulative_args): Call abi specific initialization.
15175         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
15176         (function_arg_64): Extend SSE_REGPARM_MAX check.
15177         (function_arg (): Remove TARGET_64BIT_MS_ABI.
15178         (ix86_pass_by_reference): Likewise.
15179         (ix86_function_value_regno_p): Likewise.
15180         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
15181         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
15182         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
15183         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
15184         (setup_incoming_varargs_64): Adjust regparm for call abi.
15185         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
15186         (ix86_va_start): Likewise.
15187         (ix86_gimplify_va_arg): Likewise.
15188         (ix86_expand_prologue): Likewise.
15189         (output_pic_addr_const): Likewise.
15190         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
15191         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
15192         (x86_output_mi_thunk): Likewise.
15193         (x86_function_profiler): Likewise.
15194         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
15195         (SYSV_ABI, MS_ABI): New constants.
15196         (DEFAULT_ABI): New.
15197         (init_regs): Add prototype of function in regclass.c file.
15198         (OVERRIDE_ABI_FORMAT): New.
15199         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
15200         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
15201         (OUTGOING_REG_PARM_STACK_SPACE): New.
15202         (ix86_reg_parm_stack_space): New prototype.
15203         (CUMULATIVE_ARGS): Add call_abi member.
15204         (machine_function): Add call_abi member.
15205         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
15206         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
15207
15208 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
15209
15210         PR target/34879
15211         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
15212         (avr_builtin_setjmp_frame_value): New function.
15213         * config/avr/avr.md (nonlocal_goto_receiver): Define.
15214         (nonlocal_goto): Define.
15215
15216 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
15217
15218         * config/mips/mips.c (mips_emit_loadgp): Return early if
15219         there is nothing do to, otherwise emit a blockage if
15220         !TARGET_EXPLICIT_RELOCS || crtl->profile.
15221         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
15222
15223 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15224
15225         * configure.ac: Drop unneeded backslash ending up in config.in.
15226         * acinclude.m4: Likewise.
15227         * config.in: Regenerate.
15228
15229 2008-05-26  Jan Hubicka  <jh@suse.cz>
15230
15231         * predict.c (maybe_hot_frequency_p): Break out of...
15232         (maybe_hot_bb_p): ... here.
15233         (maybe_hot_edge_p): New.
15234         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
15235         * basic-block.h (maybe_hot_edge_p): Declare.
15236
15237 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
15238
15239         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
15240         (*cmpfp_<mode>_cc): Ditto.
15241         (*fp_jcc_8<mode>_387): Ditto.
15242         (*fop_<MODEF:mode>_2_i387): Ditto.
15243         (*fop_<MODEF:mode>_3_i387): Ditto.
15244         (*fop_xf_2_i387): Ditto.
15245         (*fop_xf_3_i387): Ditto.
15246
15247 2008-06-02  Tomas Bily  <tbily@suse.cz>
15248
15249         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
15250
15251 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15252
15253         * config/mips/mips.c (mips_valid_offset_p): New function.
15254         (mips_valid_lo_sum_p): Likewise.
15255         (mips_classify_address): Use them.
15256         (mips_force_address): New function.
15257         (mips_legitimize_address): Use it.
15258         * config/mips/mips.md (MOVE128): New mode iterator.
15259         (movtf): Require TARGET_64BIT.  Remove empty strings.
15260         (*movtf_internal): Rename to...
15261         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
15262         of "R" and use {,fp}{load,store} attributes instead of "multi".
15263         Use a separate define_split.
15264         (*movtf_mips16): New pattern.
15265
15266 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15267
15268         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
15269         * config/mips/mips.c (mips_expand_before_return): New function.
15270         (mips_expand_epilogue): Call it.
15271         * config/mips/mips.md (return): Turn into a define_expand.
15272         (*return): New insn.
15273
15274 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15275
15276         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
15277         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
15278         functions.  Do not emit uses and clobbers of CONCATs; individually
15279         use and clobber their operands.
15280         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
15281         gen_clobber, emit_use and gen_use.
15282         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15283         (expand_builtin_return): Likewise.
15284         * cfgbuild.c (count_basic_blocks): Likewise.
15285         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
15286         * explow.c (emit_stack_restore): Likewise.
15287         * expmed.c (extract_bit_field_1): Likewise.
15288         * expr.c (convert_move, emit_move_complex_parts): Likewise.
15289         (emit_move_multi_word, store_constructor): Likewise.
15290         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
15291         (thread_prologue_and_epilogue_insns): Likewise.
15292         * lower-subreg.c (resolve_simple_move): Likewise.
15293         * optabs.c (widen_operand, expand_binop): Likewise.
15294         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
15295         * reload.c (find_reloads): Likewise.
15296         * reload1.c (eliminate_regs_in_insn): Likewise.
15297         * stmt.c (expand_nl_goto_receiver): Likewise.
15298         * config/alpha/alpha.md (builtin_longjmp): Likewise.
15299         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
15300         * config/arm/arm.c (arm_load_pic_register): Likewise.
15301         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
15302         * config/arm/arm.md (untyped_return): Likewise.
15303         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
15304         * config/avr/avr.c (expand_prologue): Likewise.
15305         * config/bfin/bfin.c (do_unlink): Likewise.
15306         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
15307         * config/cris/cris.c (cris_expand_prologue): Likewise.
15308         * config/darwin.c (machopic_indirect_data_reference): Likewise.
15309         (machopic_legitimize_pic_address): Likewise.
15310         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
15311         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
15312         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
15313         (ix86_expand_convert_uns_didf_sse): Likewise.
15314         (ix86_expand_vector_init_general): Likewise.
15315         * config/ia64/ia64.md (eh_epilogue): Likewise.
15316         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
15317         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
15318         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
15319         (config/iq2000/iq2000.c): Likewise.
15320         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
15321         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
15322         (builtin_longjmp): Likewise.
15323         * config/mn10300/mn10300.md (call, call_value): Likewise.
15324         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
15325         * config/pdp11/pdp11.md (abshi2): Likewise.
15326         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15327         * config/s390/s390.c (s390_emit_prologue): Likewise.
15328         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
15329         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
15330         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
15331         * config/sh/sh.c (prepare_move_operands): Likewise.
15332         (output_stack_adjust, sh_expand_epilogue): Likewise.
15333         (sh_set_return_address, sh_expand_t_scc): Likewise.
15334         * config/sparc/sparc.c (load_pic_register): Likewise.
15335         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
15336         * config/spu/spu.c (spu_expand_epilogue): Likewise.
15337         * config/v850/v850.c (expand_epilogue): Likewise.
15338
15339 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
15340
15341         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
15342         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
15343         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
15344         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
15345         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
15346         stack pointer register.
15347         (output_movhi): Remove code for interrupt specific writing to the
15348         stack pointer register.
15349
15350 2008-05-31  Richard Guenther  <rguenther@suse.de>
15351
15352         PR tree-optimization/34244
15353         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
15354         (tree_expr_nonzero_warnv_p): Likewise.
15355         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
15356         ssa_name_nonnegative_p.
15357         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
15358         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
15359         not tree_expr_nonzero_warnv_p.
15360
15361         PR tree-optimization/36262
15362         Revert
15363         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
15364
15365         PR tree-optimization/34244
15366         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
15367         (record_numbers_of_iterations): New function.
15368         (execute_vrp): Cache the numbers of iterations of loops.
15369         * tree-scalar-evolution.c (scev_reset_except_niters):
15370         New function.
15371         (scev_reset): Use scev_reset_except_niters.
15372         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
15373
15374 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15375
15376         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15377         __WORKAROUND_RETS when appropriate.
15378
15379 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
15380
15381         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
15382         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
15383         mode iterator.
15384         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
15385         *fop_df_comm_sse insn patterns using MODEF mode iterator.
15386         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
15387         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
15388         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
15389         *fop_df_1_mixed insn patterns using MODEF mode iterator.
15390         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
15391         *fop_df_1_sse insn patterns using MODEF mode iterator.
15392         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
15393         *fop_df_1_i387 insn patterns using MODEF mode iterator.
15394         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
15395         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
15396         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
15397         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
15398         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
15399         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
15400         (*fop_xf_4_i387): Use <MODE> for mode attribute.
15401         (*fop_xf_5_i387): Ditto.
15402         (*fop_xf_6_i387): Ditto.
15403
15404 2008-05-30  Richard Guenther  <rguenther@suse.de>
15405
15406         * builtins.c (build_string_literal): Avoid generating
15407         a non-gimple_val result.
15408
15409 2008-05-30  DJ Delorie  <dj@redhat.com>
15410
15411         * exec-tool.in: Use an environment variable (private) instead of a
15412         file (shared) as a semaphore, so as to not break parallel builds.
15413
15414 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
15415
15416         * optabs.c (maybe_encapsulate_block): Remove.
15417         (emit_libcall_block): Adjust accordingly.
15418         * optabs.h (maybe_encapsulate_block): Remove prototype.
15419
15420         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
15421         Don't use maybe_encapsulate_block.
15422
15423 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
15424
15425         * config/rs6000/rs6000.c (rs6000_legitimize_address,
15426         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
15427         rtx is a SYMBOL_REF before calling get_pool_constant.
15428
15429 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
15430
15431         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
15432
15433 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
15434
15435         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
15436         rather than OS names to choose INO_T_EQ definition.
15437         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
15438         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
15439
15440 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
15441
15442         PR target/36348
15443         * config/darwin-f.c: New.
15444         * config/t-darwin: Added rule to build darwin-f.o.
15445         * config.gcc: Defined new variable, fortran_target_objs.
15446         (*-*-darwin*): Set fortran_target_objs.
15447         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
15448         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
15449         * configure: Regenerated.
15450
15451 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
15452
15453         PR target/35771
15454         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
15455         canonical type if needed.
15456
15457 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15458
15459         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
15460
15461 2008-05-29  Richard Guenther  <rguenther@suse.de>
15462
15463         PR tree-optimization/36343
15464         PR tree-optimization/36346
15465         PR tree-optimization/36347
15466         * tree-flow.h (clobber_what_p_points_to): Declare.
15467         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
15468         pointed-to variable is dereferenced is irrelevant to whether
15469         the pointer can access the pointed-to variable.
15470         (clobber_what_p_points_to): New function.
15471         * tree-ssa-alias.c (set_initial_properties): Use it.
15472         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
15473         call clobber check for NMTs.
15474
15475 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
15476
15477         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
15478         for printing gcov_type.
15479
15480 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
15481
15482         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
15483         and the eh region information.
15484         * value-prof.c (gimple_move_stmt_histograms): New function.
15485         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
15486
15487 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
15488
15489         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
15490
15491 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
15492
15493         * value-prof.c (tree_ic_transform): Print counts.
15494         * tree-profile.c (tree_gen_ic_func_profiler):
15495         Clear __gcov_indreict_call_callee variable to avoid misattribution
15496         of the profile.
15497
15498 2008-05-28  Rafael Espíndola  <espindola@google.com>
15499
15500         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
15501         invalid sharing.
15502
15503 2008-05-28  Richard Guenther  <rguenther@suse.de>
15504
15505         PR tree-optimization/36339
15506         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
15507         and clobbering code out of the loop.
15508
15509 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
15510
15511         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
15512         letters defined.
15513
15514         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
15515         s390_contiguous_bitmask_p, s390_symref_operand_p,
15516         s390_check_symref_alignment, s390_reload_larl_operand,
15517         s390_reload_symref_address): New functions.
15518         (s390_branch_condition_mnemonic): Support compare and branch
15519         instructions.
15520         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
15521         and 'W' constraints.
15522         (s390_secondary_reload): Add secondary reloads for unaligned
15523         symbol refs or symbol refs to floating point or QI/TI mode
15524         integer values.
15525         (legitimate_address_p): Accept symbol references as addresses.
15526         (s390_expand_insv): Use rotate and insert selected bits
15527         instruction for insv when building for z10.
15528         (print_operand_address): Handle symbol ref addresses.
15529         (print_operand): Output modifier 'c' added for signed byte values.
15530         (s390_encode_section_info): Mark symbol refs with
15531         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
15532
15533         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
15534         (length attribute): RRF, RRR have 4 byte length.
15535         (FPALL, INTALL): New mode iterators added.
15536         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
15537         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
15538         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
15539         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
15540         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
15541         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
15542         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
15543         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
15544         instructions.
15545         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
15546         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
15547         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
15548         reload<INTALL:mode><P:mode>_toreg_z10,
15549         reload<FPALL:mode><P:mode>_tomem_z10,
15550         reload<FPALL:mode><P:mode>_toreg_z10,
15551         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
15552         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
15553         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
15554         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
15555         definition.
15556         (movmem, clrmem, cmpmem): New splitters added.
15557
15558         * config/s390/predicates.md (larl_operand): Use
15559         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
15560         SYMBOL_REF_ALIGN1_P.
15561         (s390_signed_integer_comparison,
15562         s390_unsigned_integer_comparison): New predicates.
15563
15564         * config/s390/s390-protos.h (s390_check_symref_alignment,
15565         s390_contiguous_bitmask_p, s390_reload_larl_operand,
15566         s390_reload_symref_address,
15567         s390_compare_and_branch_condition_mask): Prototypes added.
15568
15569         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
15570         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
15571         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
15572
15573 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
15574
15575         * config/s390/s390.c (z10_cost): New cost function for z10.
15576         (s390_handle_arch_option, override_options): Support -march=z10 switch.
15577         (s390_issue_rate): Adjust issue rate for z10.
15578         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
15579         (processor_flags): Add PF_Z10.
15580         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
15581         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
15582         * gcc/config.gcc: Add z10.
15583
15584 2008-05-28  Richard Guenther  <rguenther@suse.de>
15585
15586         PR tree-optimization/36291
15587         * tree-flow. h (struct gimple_df): Remove var_anns member.
15588         * tree-flow-inline.h (gimple_var_anns): Remove.
15589         (var_ann): Simplify.
15590         * tree-dfa.c (create_var_ann): Simplify.
15591         (remove_referenced_var): Clear alias info from var_anns of globals.
15592         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
15593         (delete_tree_ssa): Clear alias info from var_anns of globals.
15594         Do not free var_anns.
15595         (var_ann_eq): Remove.
15596         (var_ann_hash): Likewise.
15597
15598 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
15599
15600         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
15601         and loongson2f entries.
15602         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
15603         * config/mips/mips.h (processor_type): Add Loongson-2E
15604         and Loongson-2F entries.
15605         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
15606         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
15607         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
15608         * doc/invoke.texi (MIPS Options): Document loongson2e
15609         and loongson2f processor names.
15610
15611 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15612
15613         PR target/35767
15614         PR target/35771
15615         * config/i386/i386.c (ix86_function_arg_boundary): Use
15616         alignment of canonical type.
15617         (ix86_expand_vector_move): Check unaligned memory access for
15618         all SSE modes.
15619
15620 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15621
15622         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
15623         Moved to the front of file.
15624
15625 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
15626             H.J. Lu  <hongjiu.lu@intel.com>
15627
15628         * dwarf2out.c (current_fde): New.
15629         (add_cfi): Use it.
15630         (lookup_cfa:): Likewise.
15631         (dwarf2out_end_epilogue): Likewise.
15632         (dwarf2out_note_section_used): Likewise.
15633
15634 2008-05-27  Michael Matz  <matz@suse.de>
15635
15636         PR c++/27975
15637         * c.opt (Wenum-compare): New warning option.
15638         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
15639
15640 2008-05-27  Michael Matz  <matz@suse.de>
15641
15642         PR middle-end/36326
15643         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
15644         non-BLKmode types.
15645         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
15646         into memory as tail calls.
15647
15648 2008-05-27  Richard Guenther  <rguenther@suse.de>
15649
15650         PR tree-optimization/36339
15651         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
15652         pointers cause all addressable variables to be call clobbered.
15653
15654 2008-05-27  Richard Guenther  <rguenther@suse.de>
15655
15656         PR tree-optimization/36245
15657         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
15658
15659 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15660
15661         * config/s390/s390.md: Replace all occurences of the 'm'
15662         constraint with 'RT'.
15663
15664 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15665
15666         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
15667         definitions added.
15668         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
15669         "*movdi_64".
15670         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
15671         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
15672         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
15673
15674 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15675
15676         * reload.c: (find_reloads): Skip alternatives according to the
15677         "enabled" attribute. Constify the constraint variable.
15678         * recog.c (get_attr_enabled): Add default implementation.
15679         (extract_insn): Set the alternative_enabled_p array
15680         in the recog_data struct.
15681         (preprocess_constraints, constrain_operands): Skip
15682         alternatives according to the "enabled" attribute
15683         * recog.h (struct recog_data): New field alternative_enabled_p.
15684         (skip_alternative): New inline function.
15685         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
15686         (record_reg_classes): Skip alternative according to the
15687         "enabled" attribute.
15688
15689         * doc/md.texi: Add documention for the "enabled" attribute.
15690
15691 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
15692
15693         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
15694         * postreload.c (reload_cse_simplify_operands): Replace 'm'
15695         constraint with TARGET_MEM_CONSTRAINT.
15696         * recog.c (asm_operand_ok, preprocess_constraints,
15697         constrain_operands): Likewise.
15698         * regclass.c (record_reg_classes): Likewise.
15699         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
15700         * reload1.c (maybe_fix_stack_asms): Likewise.
15701         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15702         * recog.h: Adjust comment.
15703         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
15704         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
15705         * doc/md.texi: Add a note to description of 'm' constraint.
15706         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
15707
15708 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15709
15710         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
15711         that the bitfield is of integral type before testing its precision.
15712
15713 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
15714             Sa Liu  <saliu@de.ibm.com>
15715
15716         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
15717         __modti3, __udivti3, __umodti3 and __udivmodti4.
15718         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
15719         that implement TImode mul and div functions.
15720         * config/spu/multi3.c: New. Implement __multi3.
15721         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
15722         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
15723         functions on SPU.
15724
15725 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
15726
15727         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
15728         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
15729         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
15730         tls_sysv_suffix): New mode and mode attribute iterators.
15731         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
15732         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
15733         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
15734         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
15735         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
15736         iterators.
15737
15738 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15739
15740         PR tree-optimization/36329
15741         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
15742         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
15743         * cgraphbuild.c (initialize_inline_failed): Use the latter
15744         macro in lieu of the former.
15745         * ipa-inline.c (cgraph_mark_inline): Likewise.
15746         (cgraph_decide_inlining_of_small_function): Likewise.
15747         (cgraph_decide_inlining): Likewise.
15748         (cgraph_decide_inlining_incrementally): Likewise.
15749
15750 2008-05-26  Tristan Gingold  <gingold@adacore.com>
15751             Anatoly Sokolov  <aesok@post.ru>
15752
15753         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
15754         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
15755         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
15756         optimization for 'avr6' architecture.
15757
15758 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
15759
15760         PR target/34932
15761         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
15762
15763 2008-05-26  Richard Guenther  <rguenther@suse.de>
15764
15765         * tree-ssa-sccvn.c (expr_has_constants): Declare.
15766         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
15767
15768 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15769
15770         PR middle-end/36253
15771         * caller-save.c (insert_restore): Verify alignment of spill space.
15772         (insert_save): Likewise.
15773         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
15774         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
15775         (STACK_SLOT_ALIGNMENT): Likewise.
15776         * function.c (LOCAL_ALIGNMENT): Removed.
15777         (get_stack_local_alignment): New.
15778         (assign_stack_local): Use it.  Set alignment on stack slot.
15779         (assign_stack_temp_for_type): Use get_stack_local_alignment.
15780         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
15781         (STACK_SLOT_ALIGNMENT): New.
15782         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
15783         stack slot in XFmode.
15784
15785         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
15786
15787 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
15788
15789         PR/36321
15790         * config/i386/i386.md (allocate_stack_worker_64): Make sure
15791         argument operand in rax isn't removed.
15792
15793 2008-05-26  Richard Guenther  <rguenther@suse.de>
15794
15795         PR middle-end/36300
15796         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
15797         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
15798
15799 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15800
15801         PR bootstrap/36331
15802         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
15803
15804 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
15805
15806         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
15807         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
15808
15809 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15810
15811         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
15812         build a trampoline if we don't want one.
15813         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
15814         return zero for nested functions if we don't want a trampoline.
15815
15816 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15817
15818         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
15819
15820 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
15821
15822         PR fortran/18428
15823         * c.opt: Removed undocumented option '-lang-fortran'.
15824         * c-common.h: Removed global variable 'lang_fortran'.
15825         * c-opts.c (c_common_handle_option): Removed code to handle
15826         option '-lang-fortran'. Updated includes.
15827         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
15828         definition of '__GFORTRAN__'.
15829         (define__GNUC__): Reimplemented to use BASEVER and
15830         cpp_define_formatted.
15831         (builtin_define_with_value_n): Removed.
15832         * c-incpath.h: Renamed to ...
15833         * incpath.h: ... this.
15834         * c-incpath.c: Renamed to ...
15835         * incpath.c: ... this. Updated includes.
15836         * fix-header.c: Updated includes.
15837         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
15838         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
15839         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
15840
15841 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15842
15843         * tree.h: Update the table of flags used on tree nodes.
15844         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
15845         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
15846         (FORCED_LABEL): Add access check.
15847         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
15848         (ASM_INPUT_P): Likewise.
15849         (ASM_VOLATILE_P): Likewise.
15850         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
15851         (OMP_SECTION_LAST): Access private_flag directly.
15852         (OMP_RETURN_NOWAIT): Likewise.
15853         (OMP_PARALLEL_COMBINED): Likewise.
15854         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
15855         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
15856         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
15857         deprecated_flag directly.
15858
15859 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15860
15861         * final.c (frame_pointer_needed): Removed.
15862         * flags.h (frame_pointer_needed): Likewise.
15863
15864         * function.h (rtl_data): Add frame_pointer_needed.
15865         (frame_pointer_needed): New.
15866
15867 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
15868
15869         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
15870
15871 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
15872
15873         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
15874         SRC is a REG.
15875
15876 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
15877
15878         * c-common.c (strip_array_types): Move function to..
15879         * tree.c: ..here.
15880         (get_inner_array_type): Delete.
15881         * c-common.h (strip_array_types): Move declaration to..
15882         * tree.h: ..here.
15883         (get_inner_array_type): Delete.
15884         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
15885         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
15886         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15887         * config/pa/pa.c (emit_move_sequence): Likewise.
15888
15889 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15890
15891         * config/i386/i386.md (*sse_prologue_save_insn): Set length
15892         attribute to 34.
15893
15894 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
15895
15896         * function.c: Include target hook for nonlocal_goto frame value.
15897
15898 2008-05-24  Richard Guenther  <rguenther@suse.de>
15899
15900         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
15901         variable can be only accessed through a pointer or a union.
15902
15903 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15904
15905         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
15906         * doc/extend.texi: Likewise.
15907
15908 2008-05-23  DJ Delorie  <dj@redhat.com>
15909
15910         * config/m32c/jump.md (untyped_call): Add.
15911
15912         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
15913         for A24 to PSImode.
15914         (m32c_address_cost): Detail costs for indirect offsets.
15915
15916 2008-05-23  Rafael Espíndola  <espindola@google.com>
15917
15918         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
15919         if a node is a SUBREG.
15920         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
15921         is a SUBREG.
15922
15923 2008-05-23  Paul Brook  <paul@codesourcery.com>
15924             Carlos O'Donell  <carlos@codesourcery.com>
15925
15926         * doc/extend.texi: Clarify use of __attribute__((naked)).
15927         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
15928         * target.h (gcc_target): Add allocate_stack_slots_for_args.
15929         * function.c (use_register_for_decl): Use
15930         targetm.calls.allocate_stack_slots_for_args.
15931         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
15932         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
15933         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
15934
15935 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15936
15937         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
15938
15939 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
15940
15941         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
15942         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
15943         is only rounded once.
15944
15945 2008-05-23  Richard Guenther  <rguenther@suse.de>
15946
15947         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
15948
15949 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
15950             Jakub Jelinek  <jakub@redhat.com>
15951
15952         PR target/36079
15953         * configure.ac: Handle --enable-cld.
15954         * configure: Regenerated.
15955         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
15956         * config/i386/i386.h (struct machine_function): Add needs_cld field.
15957         (ix86_current_function_needs_cld): New define.
15958         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
15959         (cld): New isns pattern.
15960         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
15961         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
15962         * config/i386/i386.opt (mcld): New option.
15963         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
15964         TARGET_CLD and ix86_current_function_needs_cld.
15965         (override_options): Use -mcld by default for 32-bit code if
15966         USE_IX86_CLD.
15967
15968         * doc/install.texi (Options specification): Document --enable-cld.
15969         * doc/invoke.texi (Machine Dependent Options)
15970         [i386 and x86-64 Options]: Add -mcld option.
15971         (Intel 386 and AMD x86-64 Options): Document -mcld option.
15972
15973 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
15974         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
15975         (return_in_memory_64): Likewise.
15976         (return_in_memory_ms_64): Likewise.
15977
15978 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15979
15980         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
15981         * builtins.c (fold_builtin_fpclassify): New.
15982         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
15983         * builtins.def (BUILT_IN_FPCLASSIFY): New.
15984         * c-common.c (handle_type_generic_attribute): Adjust to accept
15985         fixed arguments before an elipsis.
15986         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
15987         * doc/extend.texi: Document __builtin_fpclassify.
15988
15989 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
15990
15991         * omp-low.c (gate_expand_omp_ssa): Remove.
15992         (pass_expand_omp_ssa): Remove.
15993         (gate_expand_omp): Do not check for flag_openmp_ssa.
15994         * common.opt (-fopenmp-ssa): Remove.
15995         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
15996
15997 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
15998
15999         * config/sh/sh.opt (mfixed-range): New option.
16000         * config/sh/sh-protos.h (sh_fix_range): Declare.
16001         * config/sh/sh.c (sh_fix_range): New function.
16002         * config/sh/sh.h (sh_fixed_range_str): Declare.
16003         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
16004         is not empty.
16005         * doc/invoke.texi (SH Options): Document -mfixed-range.
16006
16007 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
16008
16009         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
16010         it before the redeclaration.
16011
16012 2008-05-22  Anatoly Sokolov <aesok@post.ru>
16013
16014         * config/avr/avr.c (get_sequence_length): Add new function.
16015         (expand_prologue, expand_epilogue): Remove duplicate code.
16016
16017 2008-05-22  Rafael Espíndola  <espindola@google.com>
16018
16019         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
16020         sharing.
16021
16022 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
16023
16024         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
16025         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
16026
16027         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
16028         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
16029         (vect_update_misalignment_for_peel): Likewise.
16030         (vector_alignment_reachable_p): Likewise.
16031         * tree-vect-transform.c (vectorizable_load): Likewise.
16032         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
16033         (get_vectype_for_scalar_type): Pass mode of scalar_type
16034         to UNITS_PER_SIMD_WORD.
16035
16036         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
16037         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
16038         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
16039         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
16040         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
16041
16042 2008-05-22  Ira Rosen  <irar@il.ibm.com>
16043
16044         PR tree-optimization/36293
16045         * tree-vect-transform.c (vect_transform_strided_load): Don't check
16046         if the first load must be skipped because of a gap.
16047
16048 2008-05-22  Richard Guenther  <rguenther@suse.de>
16049
16050         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
16051         more cases of offset disambiguation that is possible if
16052         strict-aliasing rules apply.
16053         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
16054         for basic offset and type-based disambiguation.
16055
16056 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16057
16058         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
16059         ix86_expand_vector_set on V16QImode for SSE4.1.
16060
16061 2008-05-21  Tom Tromey  <tromey@redhat.com>
16062
16063         * c.opt (Wimport): Mark as undocumented.
16064         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
16065         -Wno-import.
16066         (Warning Options): Likewise.
16067         * doc/cppopts.texi: Don't mention -Wimport.
16068
16069 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
16070
16071         PR tree-optimization/36287
16072         PR tree-optimization/36286
16073         * lambda-code.c (build_access_matrix): Do not use the loop->num
16074         for computing the number of induction variables: use the loop depth
16075         instead.
16076
16077 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
16078
16079         PR/36280
16080         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
16081         option -f(no-)leading-underscore.
16082
16083 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16084
16085         * config/i386/i386.c (ix86_expand_vector_init_general): Use
16086         GET_MODE_NUNITS (mode).
16087
16088 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
16089
16090         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
16091         (-mmulhw): Add 464 to description.
16092         (-mdlmzb): Likewise.
16093         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
16094         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
16095         464fp entries.
16096         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
16097         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
16098         * config/rs6000/rs6000.md: Update comments for 464.
16099
16100 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
16101
16102         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
16103
16104 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16105
16106         * config/i386/sse.md (vec_extractv4sf): Removed.
16107         (vec_extractv2df): Likewise.
16108         (vec_extractv2di): Likewise.
16109         (vec_extractv4si): Likewise.
16110         (vec_extractv8hi): Likewise.
16111         (vec_extractv16qi): Likewise.
16112         (vec_extract<mode>): New.
16113
16114 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16115
16116         * config/i386/sse.md (vec_setv4sf): Removed.
16117         (vec_setv2df): Likewise.
16118         (vec_setv2di): Likewise.
16119         (vec_setv4si): Likewise.
16120         (vec_setv8hi): Likewise.
16121         (vec_setv16qi): Likewise.
16122         (vec_set<mode>): New.
16123
16124 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16125
16126         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
16127         goto for vec_concat and vec_interleave.
16128
16129 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16130
16131         * config/i386/sse.md (vec_initv4sf): Removed.
16132         (vec_initv2df): Likewise.
16133         (vec_initv2di): Likewise.
16134         (vec_initv4si): Likewise.
16135         (vec_initv8hi): Likewise.
16136         (vec_initv16qi): Likewise.
16137         (vec_init<mode>): New.
16138
16139 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
16140
16141         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
16142
16143 2008-05-21  Tom Tromey  <tromey@redhat.com>
16144
16145         * ggc-zone.c (lookup_page_table_if_allocated): New function.
16146         (zone_find_object_offset): Likewise.
16147         (gt_ggc_m_S): Likewise.
16148         (highest_bit): Likewise.
16149         * ggc-page.c (gt_ggc_m_S): New function.
16150         * stringpool.c (string_stack): Remove.
16151         (init_stringpool): Update.
16152         (ggc_alloc_string): Use ggc_alloc.
16153         (maybe_delete_ident): New function.
16154         (ggc_purge_stringpool): Likewise.
16155         (gt_ggc_m_S): Remove.
16156         * ggc-common.c (ggc_protect_identifiers): New global.
16157         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
16158         ggc_protect_identifiers.
16159         * ggc.h (ggc_protect_identifiers): Declare.
16160         (gt_ggc_m_S): Update.
16161         (ggc_purge_stringpool): Declare.
16162         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
16163         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
16164         special case.
16165         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
16166
16167 2008-05-21  David S. Miller  <davem@davemloft.net>
16168
16169         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
16170         tmake_file.
16171
16172 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16173
16174         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
16175         once finished.
16176
16177 2008-05-20  David Daney  <ddaney@avtrex.com>
16178
16179         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
16180         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
16181         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16182         UNSPEC_UPDATE_GOT_VERSION): Renumber.
16183         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
16184         (atomic_hiqi_op): New define_code_iterator.
16185         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
16186         mips_expand_compare_and_swap_12.
16187         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
16188         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
16189         (sync_<optab><mode>, sync_old_<optab><mode>,
16190         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
16191         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
16192         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
16193         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
16194         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
16195         (test_and_set_12): New insn.
16196         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
16197         sync_new_<optab><mode>, sync_old_nand<mode>,
16198         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
16199         clobber to operand 0 for SI and DI mode insns.
16200         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
16201         mips_gen_fn_4): New typedefs.
16202         (mips_gen_fn_ptrs): Define new union type.
16203         (mips_expand_compare_and_swap_12): Remove declaration.
16204         (mips_expand_atomic_qihi): Declare function.
16205         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
16206         (mips_expand_atomic_qihi): ... this.  Use new generator function
16207         parameter.
16208         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
16209         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
16210         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
16211         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
16212         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
16213         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
16214         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
16215         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
16216         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
16217         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
16218         New macros.
16219
16220 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16221
16222         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
16223         the missing break.
16224
16225 2008-05-20  Anatoly Sokolov <aesok@post.ru>
16226
16227         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
16228         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
16229         (avr_attribute_table): Add 'OS_main' function attribute.
16230         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
16231         functions with 'OS_main' attribute.
16232
16233 2008-05-20  Richard Guenther  <rguenther@suse.de>
16234
16235         PR tree-optimization/35204
16236         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
16237         helper, split out from ...
16238         (DFS): ... here.  Make the DFS walk non-recursive.
16239
16240 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
16241             Jan Sjodin  <jan.sjodin@amd.com>
16242
16243         PR tree-optimization/36181
16244         * tree-parloops.c (loop_has_vector_phi_nodes): New.
16245         (parallelize_loops): Don't parallelize when the loop has vector
16246         phi nodes.
16247
16248 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16249             Sebastian Pop  <sebastian.pop@amd.com>
16250
16251         * tree-loop-linear.c (gather_interchange_stats): Look in the access
16252         matrix, and never look at the tree representation of the memory
16253         accesses.
16254         (linear_transform_loops): Computes parameters and access matrices.
16255         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
16256         when fails.
16257         (access_matrix_get_index_for_parameter): New.
16258         * tree-data-ref.h (struct access_matrix): New.
16259         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16260         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16261         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
16262         am_vector_index_for_loop): New.
16263         (struct data_reference): Add field access_matrix.
16264         (DR_ACCESS_MATRIX): New.
16265         (compute_data_dependences_for_loop): Update declaration.
16266         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
16267         * lambda.h (lambda_vector_vec_p): Declared.
16268         * lambda-code.c: Depend on pointer-set.h.
16269         (lambda_collect_parameters_from_af, lambda_collect_parameters,
16270         av_for_af_base, av_for_af, build_access_matrix,
16271         lambda_compute_access_matrices): New.
16272         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
16273
16274 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
16275
16276         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
16277         $SOURCEDIR/include.
16278
16279 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16280             Sebastian Pop  <sebastian.pop@amd.com>
16281
16282         PR tree-optimization/36206
16283         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
16284         FOLD_CONVERSIONS.
16285         (instantiate_scev_1): Rename flags to fold_conversions.
16286         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
16287         outeside instantiation_loop.
16288         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
16289         (evolution_function_is_affine_or_constant_p): Removed.
16290         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
16291         instantiate_scev.
16292         (analyze_siv_subscript): Pass in the loop nest number.
16293         Call evolution_function_is_affine_in_loop instead of
16294         evolution_function_is_affine_p.
16295         (analyze_overlapping_iterations): Pass in the loop nest number.
16296
16297 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
16298             Sebastian Pop  <sebastian.pop@amd.com>
16299
16300         PR tree-optimization/36206
16301         * tree-chrec.h (chrec_fold_op): New.
16302         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
16303         and other trees.
16304
16305 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
16306
16307         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
16308         (DIRS_EQ): New.
16309         (remove_duplicates): Do not set inode on non-inode systems.
16310         Use DIRS_EQ.
16311
16312 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16313
16314         * config.gcc (tm_file): Update comments about relative pathnames.
16315
16316 2008-05-20  Richard Guenther  <rguenther@suse.de>
16317
16318         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
16319         * tree-ssa-sccvn.c (process_scc): Likewise.
16320         * tree-ssa-sink.c (execute_sink_code): Likewise.
16321         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16322         * tree-vrp.c (process_assert_insertions): Likewise.
16323         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16324         (perform_tree_ssa_dce): Likewise.
16325         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
16326         (dump_dominator_optimization_stats): Likewise.
16327         * tree-vectorizer.c (vectorize_loops): Likewise.
16328
16329 2008-05-20  Richard Guenther  <rguenther@suse.de>
16330
16331         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
16332
16333 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
16334
16335         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
16336         (ix86_i386elf_return_in_memory): Likewise.
16337         (ix86_i386interix_return_in_memory): Likewise.
16338         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
16339         (SUBTARGET_RETURN_IN_MEMORY): New.
16340         * config/i386/i386elf.h: Likewise.
16341         * config/i386/ptx4-i.h: Likewise.
16342         * config/i386/sol2-10.h: Likewise.
16343         * config/i386/sysv4.h: Likewise.
16344         * config/i386/vx-common.h: Likewise.
16345         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
16346         * config/i386/i386.c (ix86_return_in_memory): Made static and
16347         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
16348         (ix86_i386elf_return_in_memory): Removed.
16349         (ix86_i386interix_return_in_memory): Removed.
16350         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
16351         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
16352
16353 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
16354
16355         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
16356
16357 2008-05-19  Xinliang David Li  <davidxl@google.com>
16358
16359         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
16360         * opts.c: Ditto.
16361         * common.opt: Ditto.
16362         * doc/invoke.texi: Ditto.
16363
16364 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16365
16366         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
16367         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
16368
16369 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16370
16371         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
16372         sizes of operand array from 8/4 to 4/2.
16373         (ix86_expand_vector_init_general): Change size of operand array
16374         from 32 to 16.  Remove op0, op1 and half_mode.
16375
16376 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16377
16378         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
16379         (ix86_expand_vector_init_interleave): Likewise.
16380         (ix86_expand_vector_init_general): Use them.  Assert
16381         word_mode == SImode when n_words == 4.
16382
16383 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
16384
16385         * config/i386/i386.c (ix86_secondary_reload): New static function.
16386         (TARGET_SECONDARY_RELOAD): New define.
16387         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
16388         * config/i386/i386.md (reload_outqi): Remove.
16389
16390 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16391
16392         PR middle-end/35509
16393         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
16394         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
16395         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
16396         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
16397         (fold_builtin_1): Likewise.
16398         * builtins.def (BUILT_IN_ISINF_SIGN): New.
16399         c-common.c (check_builtin_function_arguments): Handle
16400         BUILT_IN_ISINF_SIGN.
16401         * doc/extend.texi: Document __builtin_isinf_sign.
16402         * fold-const.c (operand_equal_p): Handle COND_EXPR.
16403
16404 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
16405
16406         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
16407         EH cleanup at the end of the pass, search for those that have been
16408         turned into forwarder blocks and do the cleanup on their successor.
16409
16410 2008-05-18  Richard Guenther  <rguenther@suse.de>
16411
16412         * tree-cfg.c (verify_gimple_expr): Allow conversions from
16413         pointers to sizetype and vice versa.
16414
16415 2008-05-18 Xinliang David Li   <davidxl@google.com>
16416
16417         * gcc/tree-ssa-dce.c: Coding style fix.
16418         (check_pow): Documentation comment.
16419         (check_log): Documenation comment. Coding style fix.
16420         (is_unnecessary_except_errno_call): Ditto.
16421         (gen_conditions_for_pow): Ditto.
16422         (gen_conditions_for_log): Ditto.
16423         (gen_shrink_wrap_conditions): Ditto.
16424         (shrink_wrap_one_built_in_calls): Ditto.
16425         * gcc/doc/invoke.texi: Better documentation string.
16426         * ChangeLog: Fix wrong change log entries from
16427         May 17 checkin on function call DCE.
16428
16429 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
16430
16431         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
16432
16433 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
16434
16435         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
16436         * df-problems.c (simulation routines): Fixed block comment to
16437         properly say how to add forwards scanning functions.
16438
16439 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
16440
16441         * tree-inline.c (setup_one_parameter): Remove dead code.
16442
16443 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
16444
16445         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
16446         a BIT_AND_EXPR only for an INTEGER_TYPE.
16447
16448 2008-05-17 Xinliang David Li   <davidxl@google.com>
16449
16450         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
16451         (check_pow, check_log, is_unnecessary_except_errno_call): New
16452         functions to check for eliminating math functions that are pure
16453         except for setting errno.
16454         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
16455         general condition expressions for shrink-wrapping pow/log calls.
16456         (gen_shrink_wrap_conditions): Ditto.
16457         (shrink_wrap_one_built_in_call): Ditto.
16458         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
16459         (mark_operand_necessary): If debugging, output if OP is necessary.
16460         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
16461         unnecessary.
16462         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
16463         opt level >= 2.
16464         * gcc/common.opt: New user flag -ftree-builtin-dce.
16465         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
16466
16467 2008-05-16  David S. Miller  <davem@davemloft.net>
16468
16469         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
16470         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
16471
16472 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
16473
16474         PR target/36246
16475         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
16476
16477 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16478
16479         * ifcvt.c (dead_or_predicable): Rename
16480         df_simulate_one_insn_backwards to df_simulate_one_insn.
16481         * recog.c (peephole2_optimize): Ditto.
16482         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
16483         Ditto.
16484         * df.h: Rename df_simulate_one_insn_backwards to
16485         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
16486         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
16487         scanning of defs and uses.
16488         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
16489         (df_simulate_one_insn_forwards): Removed.
16490
16491 2008-05-16  Doug Kwan  <dougkwan@google.com>
16492
16493         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
16494         QNaN & SNaN.
16495         (real_from_string): Handle NaNs and Inf as approriate.
16496
16497 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
16498
16499         * doc/gty.texi (Source Files Containing Type Information): Note
16500         that headers should appear first in the gtfiles list.
16501
16502 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16503
16504         * tree.def (COND_EXEC): Properly documented this code.
16505
16506 2008-05-16  Diego Novillo  <dnovillo@google.com>
16507
16508         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
16509         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
16510         the new field.
16511
16512 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16513
16514         * tree-ssa-dse (max_stmt_uid): Removed.
16515         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
16516         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
16517         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
16518         * function.h (cfun.last_stmt_uid): New field.
16519         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
16520         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
16521         New functions.
16522         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
16523         (create_stmt_ann): Initialize the ann->uid field.
16524         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
16525         with new calls.
16526         * tree-flow.h (renumber_gimple_stmt_uids): New function.
16527
16528 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
16529
16530         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
16531         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
16532         (init_empty_tree_cfg): Call it.
16533
16534 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16535
16536         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
16537         Update all users.
16538
16539 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
16540
16541         * doc/invoke.text (-fdump-tree-*-verbose): New option.
16542         * tree-dump.c (dump_options): New verbose option.
16543         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
16544         Add verbose dump.
16545         * tree-pass.h (TDF_VERBOSE): New dump flag.
16546         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
16547         (tree-flow.h): Added include.
16548         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
16549
16550 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
16551
16552         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
16553
16554         From Jie Zhang  <jie.zhang@analog.com>
16555         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16556         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
16557         mcpu=bf561-none and mcpu=bf561-0.2.
16558         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16559         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
16560         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16561         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
16562         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
16563         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
16564         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
16565         option.
16566         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
16567         (cputype_selected): Remove.
16568         (bfin_handle_option): Don't use cputype_selected.
16569         (override_options): When no mcpu option, enable all workarounds.
16570         Don't use bfin_workarounds.
16571         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
16572         processor type.
16573         (DEFAULT_CPU_TYPE): Don't define.
16574
16575 2008-05-16  Richard Guenther  <rguenther@suse.de>
16576
16577         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
16578         on deletion of the last stmt.
16579
16580 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16581
16582         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
16583         V8HImode for SSE2 and V16QImode for SSE4.1.
16584
16585 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
16586
16587         * cgraph.h (compute_inline_parameters): Made public.
16588         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
16589         variable_generate_summary, function_write_summary,
16590         variable_write_summary, variable_read_summary.  Added generate_summary,
16591         write_summary, read_summary.
16592         * cgraphunit.c (cgraph_process_new_functions): Changed call from
16593         pass_ipa_inline.function_generate_summary, to
16594         compute_inline_parameters.
16595         * ipa-inline.c (compute_inline_parameters): Made public and added
16596         node parameter.
16597         (compute_inline_parameters_for_current): New function.
16598         (pass_inline_param): Now calls compute_inline_parameters_for_current.
16599         (inline_generate_summary): Removed parameter and made to loop over
16600         all cgraph nodes.
16601         (pass_ipa_inline): Updated for new IPA_PASS structure.
16602         * passes.c (execute_ipa_summary_passes): Now is called once per
16603         pass rather than once per node*pass.
16604
16605 2008-05-15  Anatoly Sokolov <aesok@post.ru>
16606
16607         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
16608         avr_have_mul_p, avr_asm_only_p): Remove variables.
16609         (avr_override_options): Remove initialization of removed variables.
16610         (avr_file_start):  Convert removed variables to fields of
16611         'struct base_arch_s *avr_current_arch'.
16612         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
16613         (AVR_HAVE_MUL): (Ditto.).
16614         (AVR_HAVE_MOVW): (Ditto.).
16615         (AVR_HAVE_LPMX): (Ditto.).
16616         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
16617         avr_asm_only_p): Remove declaration.
16618
16619 2008-05-15  Diego Novillo  <dnovillo@google.com>
16620
16621         * config/arm/arm.c (arm_return_in_memory): Fix return type.
16622         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
16623
16624 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
16625
16626         PR middle-end/36194
16627         * combine.c (check_conversion): Rename back to check_promoted_subreg.
16628         Don't call record_truncated_value from here.
16629         (record_truncated_value): Turn it into a for_each_rtx callback.
16630         (record_truncated_values): New function.
16631         (combine_instructions): Call note_uses with record_truncated_values.
16632         Change name of check_conversion to check_promoted_subreg.
16633
16634 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
16635
16636         * doc/sourcebuild.texi: Document support for torture tests.
16637
16638 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
16639
16640         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
16641         to alternative 4 of operand 2.
16642
16643 2008-05-15  Richard Guenther  <rguenther@suse.de>
16644
16645         * tree-pass.h (current_pass): Declare.
16646         (get_pass_for_id): Likewise.
16647         * passes.c (passes_by_id, passes_by_id_size): New globals.
16648         (set_pass_for_id): New function.
16649         (get_pass_for_id): Likewise.
16650         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
16651         (execute_function_todo): Flush per function statistics.
16652         * toplev.c (compile_file): Init statistics.
16653         (general_init): Do early statistics initialization.
16654         (finalize): Finish statistics.
16655         * statistics.h (statistics_early_init): Declare.
16656         (statistics_init): Likewise.
16657         (statistics_fini): Likewise.
16658         (statistics_fini_pass): Likewise.
16659         (statistics_counter_event): Likewise.
16660         (statistics_histogram_event): Likewise.
16661         * statistics.c: New file.
16662         * Makefile.in (OBJS-common): Add statistics.o.
16663         (statistics.o): Add dependencies.
16664         * doc/invoke.texi (-fdump-statistics): Document.
16665
16666         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
16667         (insert): Likewise.
16668         (execute_pre): Use statistics_counter_event.
16669         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
16670         (substitute_and_fold): Increment it.  Use statistics_counter_event.
16671
16672 2008-05-15  Diego Novillo  <dnovillo@google.com>
16673
16674         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
16675
16676         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
16677         * tree-ssa-alias.c (new_type_alias): Remove references to
16678         sub-variables from comment.
16679         * tree-ssa-operands.c (swap_tree_operands): Likewise.
16680
16681 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16682
16683         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
16684         attribute to 1 only for insertps alternative.
16685
16686 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
16687
16688         * config/bfin/bfin.md (loadbytes): New pattern.
16689         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
16690         (bfin_init_builtins): Initialize it.
16691         (bdesc_1arg): Add it.
16692
16693 2008-05-15  Sa Liu  <saliu@de.ibm.com>
16694
16695         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
16696         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
16697         * testsuite/lib/target-supports.exp: Add
16698         check_effective_target_fortran_integer_16.
16699
16700 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
16701
16702         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
16703         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
16704         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
16705         (TARGET_RETURN_IN_MEMORY): Define.
16706
16707 2008-05-15  Richard Guenther  <rguenther@suse.de>
16708
16709         PR middle-end/36244
16710         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
16711         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
16712         represent unmodifiable vars.
16713
16714 2008-05-15  Richard Guenther  <rguenther@suse.de>
16715
16716         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
16717         INDIRECT_REF and TARGET_MEM_REF.
16718         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16719         TARGET_MEM_REF.
16720
16721 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
16722             H.J. Lu  <hongjiu.lu@intel.com>
16723
16724         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
16725         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
16726         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
16727         insn alternatives.  Add missing alternatives.
16728         (*vec_concatv2di_rex64_sse4_1): Likewise.
16729         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
16730         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
16731         Require TARGET_SSE.
16732
16733 2008-05-15  Richard Guenther  <rguenther@suse.de>
16734
16735         PR tree-optimization/36009
16736         PR tree-optimization/36204
16737         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
16738         (determine_invariantness_stmt): Record the loop a store is
16739         always executed in.
16740         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
16741         dependency.
16742
16743 2008-05-15  Richard Guenther  <rguenther@suse.de>
16744
16745         PR tree-optimization/34330
16746         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
16747         through the pointer will alias the SMT.
16748
16749 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
16750
16751         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
16752
16753 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16754
16755         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
16756
16757 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16758             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16759
16760         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
16761         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
16762         (vashl_optab): New optab for vector/vector shifts.
16763         (vashr_optab): Ditto.
16764         (vlshr_optab): Ditto.
16765         (vrotl_optab): Ditto.
16766         (vrotr_optab): Ditto.
16767         (optab_subtype): New enum for optab_for_tree_code call.
16768         (optab_for_tree_code): Add enum optab_subtype argument.
16769
16770         * optabs.c (optab_for_tree_code): Take an additional argument to
16771         distinguish between a vector shift by a scalar and vector shift by
16772         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
16773         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
16774         vector shift by a vector.
16775         (expand_widen_pattern_expr): Pass additional argument to
16776         optab_for_tree_code.
16777
16778         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
16779         vrotl_optab, vrotr_optab.
16780
16781         * expr.c (expand_expr_real_1): Update calls to
16782         optab_for_tree_code to distinguish between vector shifted by a
16783         scalar and vector shifted by a vector.
16784         * tree-vectorizer.c (supportable_widening_operation): Ditto.
16785         (supportable_narrowing_operation): Ditto.
16786         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
16787         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
16788         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
16789         (vect_create_epilog_for_reduction): Ditto.
16790         (vectorizable_reduction): Ditto.
16791         (vectorizable_operation): Ditto.
16792         (vect_strided_store_supported): Ditto.
16793         (vect_strided_load_supported): Ditto.
16794         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
16795         * expmed.c (expand_shift): Ditto.
16796
16797         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
16798         scalar type.
16799         (ashr@var{m}3): Ditto.
16800         (vashl@var{m}3): Document new vector/vector shift standard name.
16801         (vashr@var{m}3): Ditto.
16802         (vlshr@var{m}3): Ditto.
16803         (vrotl@var{m}3): Ditto.
16804         (vrotr@var{m}3): Ditto.
16805
16806         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
16807         (PPERM_INVERT): Ditto.
16808         (PPERM_REVERSE): Ditto.
16809         (PPERM_REV_INV): Ditto.
16810         (PPERM_ZERO): Ditto.
16811         (PPERM_ONES): Ditto.
16812         (PPERM_SIGN): Ditto.
16813         (PPERM_INV_SIGN): Ditto.
16814         (PPERM_SRC1): Ditto.
16815         (PPERM_SRC2): Ditto.
16816
16817         * config/i386/sse.md (mulv2di3): Add SSE5 support.
16818         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
16819         allows a memory operand to be the value being added, and split it
16820         to improve vectorization.
16821         (sse5_pmacsdqh_mem): Ditto.
16822         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
16823         (sse5_mulv2div2di3_high): Ditto.
16824         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
16825         (vec_pack_trunc_v4si): Ditto.
16826         (vec_pack_trunc_v2di): Ditto.
16827         (sse5_pcmov_<mode>): Remove code that tried to use use
16828         andps/andnps instead of pcmov.
16829         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
16830         pmacsdqh instructions.
16831         (vec_widen_smult_lo_v4si): Ditto.
16832
16833         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
16834         (PPERM_INVERT): Ditto.
16835         (PPERM_REVERSE): Ditto.
16836         (PPERM_REV_INV): Ditto.
16837         (PPERM_ZERO): Ditto.
16838         (PPERM_ONES): Ditto.
16839         (PPERM_SIGN): Ditto.
16840         (PPERM_INV_SIGN): Ditto.
16841         (PPERM_SRC1): Ditto.
16842         (PPERM_SRC2): Ditto.
16843         (ix86_expand_sse_movcc): Move the SSE5 test after the if
16844         true/false tests.
16845         (ix86_expand_int_vcond): If SSE5 generate all possible integer
16846         comparisons.
16847         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
16848         says ignore whether the last reference is a memory operand.
16849
16850 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16851             Paolo Bonzini <bonzini at gnu dot org>
16852
16853         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
16854         shift patterns.
16855
16856         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
16857         (vlshr<mode>3): Rename from vlshr<mode>3.
16858         (vashr<mode>3): Rename from vashr<mode>3.
16859         (mulv4sf3): Change the names of vector shift patterns.
16860         (mulv4si3): Ditto.
16861         (negv4sf2): Ditt.
16862
16863         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
16864         shift insns.
16865
16866         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
16867         (SI_SHLHI): Ditto.
16868         (SI_SHL): Ditto.
16869         (SI_SHLI): Ditto.
16870         (SI_ROTH): Ditto.
16871         (SI_ROTHI): Ditto.
16872         (SI_ROT): Ditto.
16873         (SI_ROTI): Ditto.
16874         (SPU_RL_0): Ditto.
16875         (SPU_RL_1): Ditto.
16876         (SPU_RL_2): Ditto.
16877         (SPU_RL_3): Ditto.
16878         (SPU_RL_4): Ditto.
16879         (SPU_RL_5): Ditto.
16880         (SPU_RL_6): Ditto.
16881         (SPU_RL_7): Ditto.
16882         (SPU_SL_0): Ditto.
16883         (SPU_SL_1): Ditto.
16884         (SPU_SL_2): Ditto.
16885         (SPU_SL_3): Ditto.
16886         (SPU_SL_4): Ditto.
16887         (SPU_SL_5): Ditto.
16888         (SPU_SL_6): Ditto.
16889         (SPU_SL_7): Ditto.
16890
16891         * config/spu/spu.md (v): New iterator macro to add v for vector types.
16892         (floatunssidf2_internal): Change vector/vector shift names.
16893         (floatunsdidf2_internal): Ditto.
16894         (mulv8hi3): Ditto.
16895         (ashrdi3): Ditto.
16896         (ashrti3): Ditto.
16897         (cgt_df): Ditto.
16898         (cgt_v2df): Ditto.
16899         (dftsv): Ditto.
16900         (vashl<mode>3): Rename from ashl<mode>3.
16901         (vashr<mode>3): Rename from ashr<mode>3.
16902         (vlshr<mode>3): Rename from lshr<mode>3.
16903         (vrotl<mode>3): Rename from rotl<mode>3.
16904
16905 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
16906
16907         PR target/36224
16908         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
16909         multiply gives the wrong value when doing widening multiplies.
16910         (vec_widen_smult_lo_v4si): Ditto.
16911
16912 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
16913
16914         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
16915         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
16916         emit_library_call_value.
16917         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
16918         * tree.h (ECF_LIBCALL_BLOCK): Removed.
16919         * calls.c (initialize_argument_information, precompute_arguments,
16920         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
16921         (precompute_arguments): Removed flags parameter.
16922         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
16923
16924 2008-05-14  Richard Guenther  <rguenther@suse.de>
16925
16926         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
16927         Make sure to register the store if the use is a PHI_NODE.
16928
16929 2008-05-14  Olivier Hainque  <hainque@adacore.com>
16930
16931         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
16932         memory if the component is to be referenced in BLKmode according
16933         to get_inner_reference.
16934
16935 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
16936
16937         * calls.c (emit_library_call_value_1): Restore code clearing
16938         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
16939
16940 2008-05-14  Olivier Hainque  <hainque@adacore.com>
16941             Nicolas Roche  <roche@adacore.com>
16942
16943         * configure.ac: Add support for a "gcc_subdir" variable in
16944         config-lang.in, to denote a subdirectory where the language/GCC
16945         integration files are to be found.
16946         * configure: Regenerate.
16947
16948 2008-05-14  Ira Rosen  <irar@il.ibm.com>
16949
16950         PR tree-optimization/36098
16951         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
16952         value for the first load in the group in case of a gap.
16953         (vect_build_slp_tree): Check that there are no gaps in loads.
16954
16955 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
16956
16957         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
16958         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
16959         expand_copysign_bit, ): Change call to emit_no_conflict_block to
16960         emit_insn and remove unneeded code to construct extra args.
16961         (emit_no_conflict_block): Removed.
16962         * optabls.h: (emit_no_conflict_block): Removed.
16963         * cse.c (cse_extended_basic_block): Remove search for
16964         REG_NO_CONFLICT note.
16965         * global.c: Removed incorrect comment added in revision 117.
16966         * expr.c (convert_move): Change call to emit_no_conflict_block to
16967         emit_insn.
16968         * recog.c: Change comments so that they do not mention
16969         REG_NO_CONFLICT.
16970         * local_alloc.c (combine_regs): Removed last parameter.
16971         (no_conflict_p): Removed.
16972         (block_alloc): Removed note, no_conflict_combined_regno and set
16973         local vars. Removed all code to process REG_NO_CONFLICT blocks.
16974         (combine_regs): Removed already_dead and code to look for
16975         REG_NO_CONFLICT notes.
16976         * lower_subreg (remove_retval_note): Removed code to look for
16977         REG_NO_CONFLICT block.
16978         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
16979         (resolve_clobber): Remove code to process libcalls that have
16980         REG_NO_CONFLICT notes.
16981         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
16982         case.
16983         * combine.c (can_combine_p, distribute_notes):  Removed
16984         REG_NO_CONFLICT case.
16985         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
16986         to emit_insns.
16987         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
16988         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
16989         Ditto.
16990         * reg-notes.def (NO_CONFLICT): Removed.
16991
16992 2008-05-14  David S. Miller  <davem@davemloft.net>
16993
16994         * config/sparc/sparc.c (sparc_profile_hook): If
16995         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
16996         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
16997         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
16998
16999 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
17000
17001         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
17002
17003 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
17004
17005         PR target/36222
17006         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
17007         and op1 expansion before vector concat to have less live pseudos.
17008
17009 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17010
17011         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
17012         ix86_expand_vector_set if supported.
17013
17014 2008-05-13  Diego Novillo  <dnovillo@google.com>
17015             Kenneth Zadeck  <zadeck@naturalbridge.com>
17016
17017         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
17018
17019         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
17020         phinodes_print_statistics, init_ssanames, fini_ssanames,
17021         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
17022         release_ssa_name, release_defs, replace_ssa_name_symbol,
17023         ssanames_print_statistics): Move ...
17024         * tree-flow.h: ... here.
17025         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
17026         Use FN instead of cfun.
17027         (make_ssa_name_fn): Rename from make_ssa_name.
17028         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
17029         * tree-flow-inline.h (make_ssa_name): Move from
17030         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
17031         * omp-low.c (expand_omp_parallel):
17032         * tree-flow-inline.h (redirect_edge_var_map_result):
17033         * tree-ssa.c (init_tree_ssa): Add argument FN.
17034         Use it instead of cfun.  Update all users.
17035
17036 2008-05-13  Tom Tromey  <tromey@redhat.com>
17037
17038         PR preprocessor/22168:
17039         * doc/cpp.texi (Top): Update menu.
17040         (Alternatives to Wrapper #ifndef): New node.
17041         (Other Directives): Document deprecation.
17042         (Obsolete Features): Remove menu.
17043         (Assertions): Merge node into Obsolete Features.
17044         (Obsolete once-only headers): Move earlier; rename to Alternatives
17045         to Wrapper #ifndef.
17046         * doc/cppopts.texi: Update.
17047         * c.opt (Wdeprecated): Enable for C and ObjC.
17048         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
17049         (C++ Dialect Options): Move -Wno-deprecated from here to...
17050         (Warning Options): ... here.
17051
17052 2008-05-13  Richard Guenther  <rguenther@suse.de>
17053
17054         PR middle-end/36227
17055         * fold-const.c (fold_sign_changed_comparison): Do not allow
17056         changes in pointer-ness.
17057
17058 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17059
17060         PR target/24713
17061         * config/sh/sh.c (sh_expand_prologue): Don't clear
17062         RTX_FRAME_RELATED_P for push insns.
17063
17064 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
17065
17066         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
17067
17068 2008-05-12  Anatoly Sokolov <aesok@post.ru>
17069
17070         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
17071         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
17072         Use 'machine->is_leaf' instead of 'leaf_func_p'.
17073
17074 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17075
17076         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
17077         (*vec_concatv4sf_sse): This.
17078         (*sse2_concatv2si): Renamed to ...
17079         (*vec_concatv2si_sse2): This.
17080         (*sse1_concatv2si): Renamed to ...
17081         (*vec_concatv2si_sse): This.
17082         (*vec_concatv2di_rex): Renamed to ...
17083         (*vec_concatv2di_rex64): This.
17084         (*vec_concatv2si_sse4_1): New.
17085         (*vec_concatv2di_rex64_sse4_1): Likewise.
17086
17087 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
17088
17089         PR rtl-optimization/36111
17090         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
17091         that was created for swappable operands.
17092
17093 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
17094
17095         PR ada/36001
17096         * Makefile.in: Substitute GNATMAKE and GNATBIND.
17097         * configure.ac: Add call to ACX_PROG_GNAT.
17098
17099 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
17100
17101         * optc-gen.awk: Fix comment typo.
17102
17103 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17104
17105         * pretty-print.c (pp_integer_with_precision): Use
17106         HOST_LONG_LONG_FORMAT.
17107
17108 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
17109
17110         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
17111
17112 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17113
17114         * config/i386/i386.c (bdesc_ptest): Removed.
17115         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
17116         (bdesc_args): Add __builtin_ia32_ptestz128,
17117         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
17118         (ix86_init_mmx_sse_builtins): Updated.
17119         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
17120         (ix86_expand_builtin): Updated.
17121
17122 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
17123
17124         * tree-cfg.c (valid_fixed_convert_types_p): New function.
17125         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
17126
17127 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
17128
17129         * value-prof.c (interesting_stringop_to_profile): Do not
17130         return early for BUILT_IN_MEMPCPY.
17131
17132 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17133
17134         * calls.c (expand_call): Don't use callgraph to increase
17135         preferred_stack_boundary.
17136
17137         * cgraph.h (cgraph_rtl_info): Use unsigned on
17138         preferred_incoming_stack_boundary.
17139
17140         * final.c (rest_of_clean_state): Use unsigned on
17141         preferred_stack_boundary.
17142
17143 2008-05-09  Tom Tromey  <tromey@redhat.com>
17144
17145         PR preprocessor/22231:
17146         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
17147         proceeding.
17148
17149 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
17150
17151         PR tree-optimization/36129
17152         * tree-ssa-ccp.c: Include value-prof.h.
17153         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
17154         built-in function was folded to a constant.
17155         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
17156
17157 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
17158             Sebastian Pop  <sebastian.pop@amd.com>
17159
17160         * tree-scalar-evolution.c: Document instantiate_scev.
17161         (instantiate_parameters_1): Renamed instantiate_scev_1.
17162         Don't use the same loop for instantiation_loop and evolution_loop.
17163         (instantiate_scev): New.
17164         (instantiate_parameters): Moved...
17165         (resolve_mixers): Update call to instantiate_scev_1 to pass the
17166         same loop twice.  Maintains the semantics for this function.
17167         * tree-scalar-evolution.h (instantiate_scev): Declare.
17168         (instantiate_parameters): ...here.  Now static inline.
17169         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
17170         instead of resolve_mixers.
17171
17172 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
17173
17174         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
17175
17176 2008-05-09  Tomas Bily  <tbily@suse.cz>
17177
17178         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
17179         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
17180         * tree-ssa-structalias.c (get_constraint_for): Likewise.
17181         * c-common.c (c_common_truthvalue_conversion): Likewise.
17182         * tree-object-size.c (compute_object_offset): Likewise.
17183         * tree-inline.c (estimate_num_insns_1): Likewise.
17184         * varasm.c (const_hash_1, compare_constant, copy_constant)
17185         (compute_reloc_for_constant, output_addressed_constants)
17186         (initializer_constant_valid_p): Likewise.
17187         * c-omp.c (check_omp_for_incr_expr): Likewise.
17188         * gimplify.c (gimplify_expr): Likewise.
17189         * c-typeck.c (c_finish_return): Likewise.
17190         * tree-vectorizer.c (supportable_widening_operation)
17191         (supportable_narrowing_operation): Likewise.
17192         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
17193         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
17194         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
17195         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
17196         (descr_info_loc): Likewise.
17197         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17198         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
17199         (fold_unary): Likewise.
17200         * builtins.c (get_pointer_alignment): Likewise.
17201         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
17202         (instantiate_parameters_1): Likewise.
17203         * tree.c (expr_align, stabilize_reference): Likewise.
17204         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
17205         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
17206         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
17207         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17208         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
17209         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
17210         Likewise.
17211         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
17212         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
17213         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
17214         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
17215         (forward_propagate_comparison)
17216         (tree_ssa_forward_propagate_single_use_vars): Likewise.
17217         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
17218         * emit-rtl.c (component_ref_for_mem_expr)
17219         (set_mem_attributes_minus_bitpos): Likewise.
17220         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
17221         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
17222         Likewise.
17223         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
17224         (build_function_call, pointer_diff, build_compound_expr)
17225         (c_finish_return): Likewise.
17226         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
17227         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
17228         Likewise.
17229         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
17230         * expr.c (is_aligning_offset): Likewise.
17231         * tree-ssa-alias.c (is_escape_site): Likewise.
17232         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
17233         (check_all_va_list_escapes): Likewise.
17234         * tree-ssa-loop-ivopts.c (determine_base_object)
17235         (determine_common_wider_type): Likewise.
17236         * dojump.c (do_jump): Likewise.
17237         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
17238         * tree-gimple.c (is_gimple_cast): Likewise.
17239         * fold-const.c (decode_field_reference, )
17240         (fold_sign_changed_comparison, fold_unary, fold_comparison)
17241         (fold_binary): Likewise.
17242         * tree-ssa-alias-warnings.c (find_alias_site_helper)
17243         (already_warned_in_frontend_p): Likewise.
17244         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
17245         * tree.c (really_constant_p, get_unwidened): Likewise.
17246         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
17247         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
17248         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
17249         Likewise.
17250         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
17251         CONVERT_EXPR_P.
17252         (CONVERT_EXPR_P): Define.
17253         (CASE_CONVERT): Define.
17254
17255 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
17256
17257         PR middle-end/36117
17258         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
17259         (delete_unmarked_insns): When deleting a call, call
17260         delete_unreachable_blocks.
17261         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
17262         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
17263
17264 2008-05-08  Richard Guenther  <rguenther@suse.de>
17265
17266         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
17267         (-ftree-salias): Likewise.
17268         (salias-max-implicit-fields): Remove param documentation.
17269         (salias-max-array-elements): Likewise.
17270         * tree-pass.h (pass_create_structure_vars): Remove.
17271         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
17272         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
17273         * tree-ssa-alias.c (create_structure_vars): Remove.
17274         (gate_structure_vars): Likewise.
17275         (pass_create_structure_vars): Likewise.
17276         (gate_build_alias): Likewise.
17277         (pass_build_alias): Adjust to run always and dump the function.
17278         * common.opt (ftree-salias): Hide.
17279         * passes.c (init_optimization_passes): Remove
17280         pass_create_structure_vars, adjust comment.
17281         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
17282         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
17283         * opts.c (decode_options): Do not set flag_tree_salias.
17284         (common_handle_option): Add OPT_ftree_salias to the backward
17285         compatibility section.
17286
17287 2008-05-08  Richard Guenther  <rguenther@suse.de>
17288
17289         * tree-flow-inline.h (var_can_have_subvars): Move ...
17290         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
17291         * tree-flow.h (var_can_have_subvars): Remove.
17292         (push_fields_onto_fieldstack): Remove.
17293         (sort_fieldstack): Likewise.
17294         (struct fieldoff): Move ...
17295         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
17296         alias_set and base_for_components fields.
17297         (sort_fieldstack): Make static.
17298         (push_fields_onto_fieldstack): Likewise.  Remove code that
17299         handles anything but RECORD_TYPEs.  Remove alias_set and
17300         base_for_components handling.
17301         (create_variable_info_for): Adjust.
17302
17303 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
17304
17305         * common.opt (Wframe-larger-than=): Shorten the help message
17306         to one line.
17307         * doc/invoke.texi (Wframe-larger-than=): Add more description.
17308
17309 2008-05-08  Rafael Espíndola  <espindola@google.com>
17310
17311         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
17312         trap.
17313         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
17314         trap and that both operands are gimple values.
17315         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
17316         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
17317         is a fp operation.
17318
17319 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17320
17321         * read-rtl.c (join_c_conditions): Return the first string if the
17322         two strings are equal.
17323
17324 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17325
17326         * gensupport.h (pred_data): Add a "num_codes" field.
17327         (add_predicate_code): Declare.
17328         * gensupport.c (add_predicate_code): New function.
17329         (std_pred_table): Add an "allows_const_p" field.
17330         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
17331         Remove the (incomplete) list of such codes from the codes field.
17332         (init_predicate_table): Use add_predicate_code.  Add all
17333         RTX_CONST_OBJs if allows_const_p is true.
17334         * genrecog.c (process_define_predicate): Use add_predicate_code.
17335
17336 2008-05-08  David Daney  <ddaney@avtrex.com>
17337             Richard Sandiford  <rsandifo@nildram.co.uk>
17338
17339         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
17340         special case of constant zero operands.
17341         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
17342         old and new values.  Special case constant zero values.
17343         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
17344         fails.
17345         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
17346         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
17347
17348 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
17349
17350         PR target/36090
17351         * simplify-rtx.c (simplify_plus_minus): Create CONST of
17352         similar RTX_CONST_OBJ before CONST_INT.
17353
17354 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
17355
17356         * stmt.c (expand_stack_restore): Change sa mode if needed.
17357
17358 2008-05-08  Richard Guenther  <rguenther@suse.de>
17359
17360         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
17361         return type to bool.
17362         (ix86_sol10_return_in_memory): Likewise.
17363         (ix86_i386elf_return_in_memory): Likewise.
17364         (ix86_i386interix_return_in_memory): Likewise.
17365         * config/i386/i386.c (ix86_return_in_memory): Likewise.
17366         (ix86_sol10_return_in_memory): Likewise.
17367         (ix86_i386elf_return_in_memory): Likewise.
17368         (ix86_i386interix_return_in_memory): Likewise.
17369
17370 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
17371
17372         PR bootstrap/36180
17373         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
17374         fndecl argument.
17375         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
17376         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
17377         declared in front.
17378
17379 2008-05-08  Richard Guenther  <rguenther@suse.de>
17380
17381         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
17382         * tree-data-ref.h (struct dr_alias): Remove subvars field.
17383         (DR_SUBVARS): Remove.
17384         * tree-dfa.c (dump_subvars_for): Remove.
17385         (debug_subvars_for): Likewise.
17386         (dump_variable): Do not dump subvars.
17387         (remove_referenced_var): Do not remove subvars.
17388         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
17389         (lookup_subvars_for_var): Remove.
17390         (get_subvars_for_var): Likewise.
17391         (get_subvars_at): Likewise.
17392         (get_first_overlapping_subvar): Likewise.
17393         (overlap_subvar): Likewise.
17394         * tree-flow.h (subvar_t): Remove.
17395         (struct var_ann_d): Remove subvars field.
17396         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
17397         argument.  Remove special handling of SFTs.
17398         (compute_tag_properties): Likewise.
17399         (set_initial_properties): Likewise.
17400         (compute_call_clobbered): Likewise.
17401         (count_mem_refs): Likewise.
17402         (compute_memory_partitions): Likewise.
17403         (compute_flow_insensitive_aliasing): Likewise.
17404         (setup_pointers_and_addressables): Likewise.
17405         (new_type_alias): Likewise.
17406         (struct used_part): Remove.
17407         (used_portions): Likewise.
17408         (struct used_part_map): Likewise.
17409         (used_part_map_eq): Likewise.
17410         (used_part_map_hash): Likewise.
17411         (free_used_part_map): Likewise.
17412         (up_lookup): Likewise.
17413         (up_insert): Likewise.
17414         (get_or_create_used_part_for): Likewise.
17415         (create_sft): Likewise.
17416         (create_overlap_variables_for): Likewise.
17417         (find_used_portions): Likewise.
17418         (create_structure_vars): Likewise.
17419         * tree.def (STRUCT_FIELD_TAG): Remove.
17420         * tree.h (MTAG_P): Adjust.
17421         (struct tree_memory_tag): Remove base_for_components and
17422         unpartitionable flags.
17423         (struct tree_struct_field_tag): Remove.
17424         (SFT_PARENT_VAR): Likewise.
17425         (SFT_OFFSET): Likewise.
17426         (SFT_SIZE): Likewise.
17427         (SFT_NONADDRESSABLE_P): Likewise.
17428         (SFT_ALIAS_SET): Likewise.
17429         (SFT_UNPARTITIONABLE_P): Likewise.
17430         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
17431         (union tree_node): Remove sft field.
17432         * alias.c (get_alias_set): Remove special handling of SFTs.
17433         * print-tree.c (print_node): Remove handling of SFTs.
17434         * tree-dump.c (dequeue_and_dump): Likewise.
17435         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
17436         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
17437         * tree-predcom.c (set_alias_info): Do not set subvars.
17438         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
17439         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
17440         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
17441         (add_vars_for_offset): Remove.
17442         (add_virtual_operand): Remove special handling of SFTs.
17443         (add_call_clobber_ops): Likewise.
17444         (add_call_read_ops): Likewise.
17445         (get_asm_expr_operands): Likewise.
17446         (get_modify_stmt_operands): Likewise.
17447         (get_expr_operands): Likewise.
17448         (add_to_addressable_set): Likewise.
17449         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
17450         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17451         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
17452         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
17453         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
17454         (tree_node_structure): Likewise.
17455         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
17456         handling of SFTs.
17457         (find_what_p_points_to): Likewise.
17458
17459 2008-05-08  Sa Liu  <saliu@de.ibm.com>
17460
17461         * config/spu/spu.md: Fixed subti3 pattern.
17462
17463 2008-05-08  Richard Guenther  <rguenther@suse.de>
17464
17465         PR middle-end/36154
17466         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17467         sure to create a representative for trailing arrays for PTA.
17468
17469 2008-05-08  Richard Guenther  <rguenther@suse.de>
17470
17471         PR middle-end/36172
17472         * fold-const.c (operand_equal_p): Two objects which types
17473         differ in pointerness are not equal.
17474
17475 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
17476
17477         * calls.c (compute_argument_block_size): Add argument tree fndecl.
17478         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
17479         (emit_library_call_value_1): Add new variable fndecl initialized by
17480         NULL_TREE. It should be the decl type of orgfun, but this information
17481         seems not to be available here, so it uses the default calling abi.
17482         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
17483         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
17484         by TARGET_RETURN_IN_MEMORY.
17485         * config/i386/i386-interix.h: Likewise.
17486         * config/i386/i386.h: Likewise.
17487         * config/i386/i386elf.h: Likewise.
17488         * config/i386/ptx4-i.h: Likewise.
17489         * config/i386/sol2-10.h: Likewise.
17490         * config/i386/sysv4.h: Likewise.
17491         * config/i386/vx-common.h: Likewise.
17492         * config/cris/cris.h: Removed #if 0 clause.
17493         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
17494         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
17495         argument.
17496         (ix86_sol10_return_in_memory): Likewise.
17497         (ix86_i386elf_return_in_memory): New.
17498         (ix86_i386interix_return_in_memory): New.
17499         * config/mt/mt-protos.h (mt_return_in_memory): New.
17500         * config/mt/mt.c: Likewise.
17501         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
17502         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
17503         * config/bfin/bfin.h: Likewise.
17504         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
17505         argument.
17506         * config/bfin/bfin.c: Likewise.
17507         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
17508         * config/alpha/unicosmk.h: Likewise.
17509         * config/i386/cygming.h: Likewise.
17510         * config/iq2000/iq2000.h: Likewise.
17511         * config/mips/mips.h: Likewise.
17512         * config/mn10300/mn10300.h: Likewise.
17513         * config/rs6000/rs6000.h: Likewise.
17514         * config/score/score.h: Likewise.
17515         * config/spu/spu.h: Likewise.
17516         * config/v850/v850.h: Likewise.
17517         * defaults.h: Likewise.
17518         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
17519         * expr.c (emit_block_move): Adjust use of
17520         OUTGOING_REG_PARM_STACK_SPACE.
17521         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
17522         OUTGOING_REG_PARM_STACK_SPACE.
17523         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
17524
17525 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
17526
17527         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
17528         on OMP_RETURN for OMP_FOR.
17529
17530         PR debug/35896
17531         * dwarf2out.c (dw_expand_expr, common_check): Removed.
17532         (fortran_common): New function.
17533         (gen_variable_die): Call fortran_common instead of common_check,
17534         adjust for it returning tree instead of rtx.  Formatting.
17535
17536 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
17537
17538         PR rtl/7335
17539         PR rtl/33826
17540         * see.c (see_copy_insn): Copy new pure const attributes for new call.
17541         * c-decl.c (merge_decls): Ditto.
17542         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
17543         to RTL_CONST_OR_PURE_CALL_P.
17544         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
17545         Initialized DECL_LOOPING_CONST_PURE.
17546         (process_call_operands): Set tree_side_effects properly.
17547         * tree.h (TREE_READONLY_DECL_P): Removed.
17548         (DECL_IS_PURE): Renamed to DECL_PURE_P.
17549         (DECL_LOOPING_OR_CONST_P): New macro.
17550         (struct tree_function_decl): Added looping_const_or_pure_p.
17551         (ECF_*) Renumbered.
17552         (ECF_LOOPING_OR_CONST_P): New macro.
17553         * rtlanal.c (pure_const_p): Removed.
17554         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
17555         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
17556         to RTL_CONST_CALL_P.
17557         * ipa-pure-const.c (pure_const_state_e): Added looping field.
17558         (check_decl, check_tree, check_call, scan_function): Initialize
17559         looping.
17560         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
17561         (static_execute): Set looping true for recursive functions.
17562         Undo setting state to IPA_NEITHER for recursive functions.
17563         * cse.c (cse_insn):
17564         * ifcvt.c (noce_can_store_speculate_p): Changed
17565         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
17566         RTL_CONST_OR_PURE_CALL_P.
17567         * dse.c (scan_insn): Ditto.
17568         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
17569         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
17570         RTL_CONST_OR_PURE_CALL_P.
17571         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
17572         pure_call_p to RTL_CONST_CALL_P.
17573         * gimplify.c (gimplify_call_expr): Clear side effects for
17574         non-looping pure and constant calls.
17575         * calls.c (emit_call_1): Set rtl flags from ecf flags.
17576         (flags_from_decl_or_type): Set ecf flags from decl flags.
17577         (initialize_argument_information): Turn off
17578         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
17579         Change const to pure if callee_copies is true rather than just
17580         turning off const.
17581         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
17582         way of marking pure calls.
17583         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
17584         Remove hack that was supposed to fix pr7335 and remove old
17585         way of marking pure calls.
17586         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
17587         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
17588         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
17589         RTL_CONST_OR_PURE_CALL_P.
17590         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
17591         * loop-invariant.c (find_exits, find_invariant_bb): Changed
17592         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
17593         * sched-deps.c (schedule_analyze): Ditto.
17594         * rtl.h (struct rtx_def): Use call field, unchanging field, and
17595         return_val field of calls to represent pure and const function info.
17596         (CONST_OR_PURE_CALL_P): Deleted macro.
17597         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
17598         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
17599         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
17600         TREE_READONLY.
17601         * tree-optimize.c (execute_fixup_cfg): Added test for
17602         ECF_LOOPING_CONST_OR_PURE.
17603         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
17604         DECL_PURE_P.
17605         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
17606         effects for looping pure or const calls.
17607         (verify_gimple_expr): Added verification code.
17608         * config/alpha/alpha.c (alpha_legitimize_address,
17609         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
17610         RTL_CONST_CALL_P.
17611         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
17612         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
17613         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
17614         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
17615         RTL_CONST_OR_PURE_CALL_P.
17616         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
17617         and const calls to be deleted.
17618
17619 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
17620
17621         PR target/35714
17622         * config/i386/mmx.md (mmx_subv2sf3): New expander.
17623         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
17624         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
17625         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17626         to handle nonimmediate operands.
17627         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
17628         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
17629         to handle nonimmediate operands.
17630         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
17631         (mmx_pmulhrwv4hi3): New expander.  Use
17632         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17633         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
17634         (sse2_umulv1siv1di3): New expander.  Use
17635         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17636         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
17637         (mmx_eq<mode>3): New expander.  Use
17638         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17639         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
17640         (mmx_uavgv8qi3): New expander.  Use
17641         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17642         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
17643         (mmx_uavgv4hi3): New expander.  Use
17644         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17645
17646         * config/i386/sse.md
17647         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
17648         to handle nonimmediate operands.
17649         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
17650         to handle nonimmediate operands.
17651         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
17652         to handle nonimmediate operands.
17653         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
17654         to handle nonimmediate operands.
17655         (sse2_unpckhpd_exp): New expander.  Use
17656         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17657         (sse2_unpcklpd_exp): New expander.  Use
17658         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17659         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
17660         to handle nonimmediate operands.
17661         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
17662         to handle nonimmediate operands.
17663         (*sse2_<plusminus_insn><mode>3): Rename from
17664         sse2_<plusminus_insn><mode>3 insn pattern.
17665         (sse2_<plusminus_insn><mode>3): New expander.  Use
17666         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17667         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
17668         (sse2_umulv2siv2di3): New expander.  Use
17669         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17670         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
17671         (sse4_1_mulv2siv2di3): New expander.  Use
17672         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17673         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
17674         (sse2_pmaddwd): New expander.  Use
17675         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17676         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
17677         (sse2_eq<mode>3): New expander.  Use
17678         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17679         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
17680         (sse4_1_eqv2di3): New expander.  Use
17681         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17682         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
17683         (sse2_uavgv16qi3): New expander.  Use
17684         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17685         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
17686         (sse2_uavgv16qi3): New expander.  Use
17687         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17688         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
17689         (sse2_uavgv8hi3): New expander.  Use
17690         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17691         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
17692         (ssse3_pmulhrswv8hi3): New expander.  Use
17693         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17694         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
17695         (ssse3_pmulhrswv4hi3): New expander.  Use
17696         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17697
17698         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
17699         (<sse>_vmmul<mode>3): Ditto.
17700         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
17701         (divv2df3): Ditto.
17702         (ssse3_pmaddubsw128): Use register_operand for operand 1.
17703         (ssse3_pmaddubsw): Ditto.
17704
17705         * config/i386/i386.c (struct_builtin_description)
17706         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
17707         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
17708         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
17709         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
17710         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
17711         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
17712         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
17713         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
17714         (ix86_fixup_binary_operands): Assert that src1
17715         and src2 must have the same mode when swapped.
17716         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
17717         and ix86_binary_operator_ok.  Do not force operands in registers
17718         when optimizing.
17719
17720 2008-05-07  Jan Hubicka  <jh@suse.cz>
17721
17722         * cgraph.c (dump_cgraph_node): Update.
17723         * cgraph.h (cgraph_local_info): Break out inline summary.
17724         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
17725         hook.
17726         * ipa-inline (inline_summary): New accestor function.
17727         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
17728         cgraph_decide_inlining, compute_inline_parameters): Update.
17729         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
17730
17731 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
17732
17733         Cleanup ColdFire scheduling support and add V4 pipeline model.
17734
17735         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
17736         (define_attr cpu): Add cfv4 value.
17737         (define_attr type, define_attr type1): Merge into a single 'type'
17738         attribute.  Update all uses.
17739         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
17740         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
17741         Update all uses.
17742         (define_attr opx_mem, define_attr opy_mem): Remove.
17743         (define_attr op_mem): Clean up, update comment.
17744         (define_attr size): Use specific values instead of general int.
17745         (define_attr guess, define_attr split): Remove.  Update all uses.
17746         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
17747         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
17748         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
17749         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
17750         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
17751         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
17752         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
17753         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
17754         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
17755         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
17756         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
17757         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
17758         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
17759         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
17760         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
17761         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
17762         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
17763         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
17764         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
17765         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
17766         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
17767         Update or set attributes.
17768         (stack_tie): New fake instruction.
17769
17770         * config/m68k/m68k.h (TUNE_CFV4): New macro.
17771         (m68k_sched_attr_size): Update declaration.
17772         (m68k_sched_attr_type2): Remove.
17773         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
17774         Declare new bypass predicates.
17775
17776         * config/m68k/m68k.c (m68k_sched_issue_rate,
17777         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
17778         implementations.
17779         (TARGET_SCHED_ISSUE_RATE,
17780         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
17781         (override_options): Handle scheduling for ColdFire V4 core.
17782         (m68k_expand_prologue): Emit stack_tie.
17783         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
17784         'OP_TYPE_FPN'.  Update all uses.
17785         (sched_guess_p): Remove.
17786         (sched_address_type): Handle symbolic addresses.
17787         (sched_get_operand): New static function.
17788         (sched_operand_type): Merge into sched_attr_op_type.
17789         (sched_attr_op_type): Handle FP registers, handle quick constants,
17790         update.
17791         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
17792         (m68k_sched_attr_size): Update.  Move logic to ...
17793         (sched_get_attr_size_int): New static function.
17794         (sched_get_opxy_mem_type): New static function.
17795         (m68k_sched_attr_op_mem): Update.
17796         (m68k_sched_attr_type2): Remove.
17797         (sched_cfv4_bypass_data): New static variable.
17798         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
17799         (m68k_sched_issue_rate): Implement scheduler hook.
17800         (struct _sched_ib: enabled_p): New field.
17801         (m68k_sched_variable_issue): Update.  Handle V4.
17802         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
17803         sched_dump_class_func_t, sched_dump_split_class,
17804         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
17805         sched_dump_dfa_class, m68k_sched_dump): Remove.
17806         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
17807         hook.
17808         (m68k_sched_init_global): Remove statisctics dumping, introduce
17809         sanity check that all instructions have pipeline reservations.  Handle
17810         ColdFire V4 core.
17811         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17812         Handle ColdFire V4 core.
17813         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
17814         New static functions.
17815         (m68k_sched_address_bypass_p): New bypass predicate.
17816         (sched_get_indexed_address_scale): New static function.
17817         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
17818
17819         * cf.md: Update comments.
17820         (define_attr type2): Remove.  Use 'type' attribute instead.
17821         Update all uses.
17822         (cf_ib): Rename to cfv123_ib.  Update all uses.
17823         (cf_oep): Rename to cfv123_oep.  Update all uses.
17824         (cf_chr): Rename to cfv123_chr.  Update all uses.
17825         (cf_mem): Rename to cfv123_mem.  Update all uses.
17826         (cf_mac): Move to more appropriate place.
17827         (cfv123_guess): New automaton and cpu_unit.
17828         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
17829         Update uses of 'size' attribute.  Handle before reload scheduling.
17830         (cfv123_guess): New dummy reservation for unhandled instructions.
17831         (cfv4_*): Pipeline description of ColdFire V4 core.
17832         (ignore): New reservation to handle 'ignore' type.
17833
17834 2008-05-07  Ian Lance Taylor  <iant@google.com>
17835
17836         PR middle-end/36013
17837         * gimplify.c (find_single_pointer_decl_1): Don't look through
17838         indirections.
17839         (find_single_pointer_decl): Adjust comments.
17840
17841 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
17842
17843         PR middle-end/36137
17844         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
17845         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
17846
17847         PR middle-end/36106
17848         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
17849         integral type rather than floating point, then VIEW_CONVERT_EXPR
17850         to the floating point type.
17851
17852 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
17853
17854         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
17855         TFmode op0 to register.
17856
17857 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
17858
17859         * c-decl.c (grokdeclarator): Comment typo.
17860
17861 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
17862
17863         * tree-flow.h: Remove prototype for computed_goto_p.
17864         * tree-cfg.c (computed_goto_p): Make static.
17865
17866 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17867
17868         PR target/35657
17869         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
17870         (contains_aligned_value_p): This.  Handle _Decimal128.
17871         (ix86_function_arg_boundary): Only align _Decimal128 to its
17872         natural boundary and handle it properly.
17873
17874 2008-05-06  Martin Jambor  <mjambor@suse.cz>
17875
17876         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
17877         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
17878         (ipcp_method_set_orig_node): Removed.
17879         (ipcp_cval_get_cvalue_type): Removed.
17880         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
17881         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
17882         (ipcp_cval_set_cvalue_type): Removed.
17883         (ipcp_cval_get_cvalue): Removed.
17884         (ipcp_cval_set_cvalue): Removed.
17885         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
17886         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
17887         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
17888         (ipcp_cval_meet): Renamed to ipa_lattice_meet
17889         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
17890         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
17891         (ipcp_get_ith_lattice): Changed parameters.
17892         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
17893         (ipcp_lattice_from_jfunc): Changed parameters.
17894         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
17895         (ipcp_method_cval_print): Added temporary variable info.
17896         (ipcp_redirect): Removed already unused local variable caller.
17897         (ipcp_redirect): New temporary variable orig_callee_info
17898         (ipcp_redirect): Removed newly unused local variable callee.
17899         (ipcp_redirect): Removed (a bit confusing) local variable type.
17900         (ipcp_insert_stage): Added local variable info.
17901         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
17902         renamed too
17903         (ipcp_formal_create): Removed.
17904         (ipcp_method_cval_set): Removed.
17905         (ipcp_propagate_stage): Renamed lattice variables.
17906         (ipcp_method_cval_set_cvalue_type): Removed.
17907         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
17908         (ipcp_print_all_lattices): Changed printed strings to refer to
17909         lattices rather than cvals.
17910         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
17911         (ipcp_propagate_const): Changed formal parameters.
17912         (build_const_val): Changed formal parameters.
17913         (ipcp_insert_stage): Removed useless variable cvalue
17914         (build_const_val): Changed formal parameters.
17915         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
17916         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
17917         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
17918         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
17919         (ipcp_print_func_profile_counts): Changed string from "method" to
17920         "function"
17921         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
17922         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
17923         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
17924         (ipcp_structures_print): Renamed to ipcp_print_all_structures
17925         (ipcp_profile_print): Renamed to ipcp_print_profile_data
17926         (ipcp_lat_is_const): Changed parameters and made inline.
17927         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
17928         (ipcp_redirect): Renamed to ipcp_need_redirect_p
17929         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
17930         the predicate condition directly
17931         (ipcp_propagate_stage): Added local variable args. Removed local
17932         variable callee.  (Both are mere code simplifications.)
17933         (ipcp_method_dont_insert_const): Renamed to
17934         ipcp_node_not_modifiable_p.
17935         (ipcp_node_not_modifiable_p): Made inline.
17936         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
17937         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
17938         (ipcp_print_all_lattices): Removed variable cvalue
17939         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
17940         Updated comments.
17941
17942 2008-05-06  Olivier Hainque  <hainque@adacore.com>
17943
17944         * tree-sra.c (try_instantiate_multiple_fields): Early return
17945         if field has POINTER_TYPE.
17946
17947 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
17948
17949         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
17950         by using 'q' specifier for instruction.
17951         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
17952
17953 2008-05-06  Anatoly Sokolov <aesok@post.ru>
17954
17955         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17956         Change mode of zero_extract from QImode to HImode.
17957         (sign bit tests peepholes): (Ditto.).
17958
17959 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
17960
17961         * config/i386/mmx.md: Remove double backslashes from asm templates.
17962         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
17963         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17964         to handle nonimmediate operands.
17965         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
17966         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
17967         to handle nonimmediate operands.
17968         (*mmx_<code>v2sf3_finite): New insn pattern.
17969         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
17970         (mmx_<code>v2sf3): New expander.  Use
17971         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17972         (mmx_<plusminus_insn><mode>3): New expander.  Use
17973         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17974         (*mmx_<plusminus_insn><mode>3): New insn pattern.
17975         (mmx_add<mode>3): Removed.
17976         (mmx_ssadd<mode>3): Ditto.
17977         (mmx_usadd<mode>3): Ditto.
17978         (mmx_sub<mode>3): Ditto.
17979         (mmx_sssub<mode>3): Ditto.
17980         (mmx_ussub<mode>3): Ditto.
17981         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
17982         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
17983         to handle nonimmediate operands.
17984         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
17985         insn pattern.
17986         (mmx_smulv4hi3_highpart): New expander.  Use
17987         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17988         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
17989         insn pattern.
17990         (mmx_umulv4hi3_highpart): New expander.  Use
17991         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17992         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
17993         (mmx_<code>v4hi3): New expander.  Use
17994         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17995         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
17996         (mmx_<code>v8qi3): New expander.  Use
17997         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
17998         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
17999         (mmx_<code><mode>3): New expander.  Use
18000         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18001
18002 2008-05-05  Jan Hubicka  <jh@suse.cz>
18003
18004         PR tree-optimization/36118
18005         * passes.c (pass_init_dump_file): Fix dump header.
18006
18007 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18008
18009         PR middle-end/36141
18010         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
18011         VCE for function decls.
18012
18013 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
18014
18015         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
18016
18017 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
18018
18019         * config/i386/i386.md (sat_plusminus): New.
18020         (plusminus_insn): Likewise.
18021         (plusminus_mnemonic): Likewise.
18022         (addsub): Removed.
18023         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
18024         (*<addsub><mode>3_cc_overflow): Renamed to ...
18025         (*<plusminus_insn><mode>3_cc_overflow): This.
18026         (*<addsub>si3_zext_cc_overflow): Renamed to ...
18027         (*<plusminus_insn>si3_zext_cc_overflow): This.
18028
18029         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
18030         (<plusminus_insn><mode>3): This.
18031         (*<addsub><mode>3): Renamed to ...
18032         (*<plusminus_insn><mode>3): This.
18033         (<sse>_vm<addsub><mode>3): Renamed to ...
18034         (<sse>_vm<plusminus_insn><mode>3): This.
18035         (sse3_h<addsub>v4sf3): Renamed to ...
18036         (sse3_h<plusminus_insn>v4sf3): This.
18037         (sse3_h<addsub>v2df3): Renamed to ...
18038         (sse3_h<plusminus_insn>v2df3): This.
18039         (<plusminus_insn><mode>3): New.
18040         (*<plusminus_insn><mode>3): Likewise.
18041         (sse2_<plusminus_insn><mode>3): Likewise.
18042         (add<mode>): Removed.
18043         (*add<mode>3): Likewise.
18044         (sse2_ssadd<mode>3): Likewise.
18045         (sse2_usadd<mode>3): Likewise.
18046         (sub<mode>3): Likewise.
18047         (*sub<mode>3): Likewise.
18048         (sse2_sssub<mode>3): Likewise.
18049         (sse2_ussub<mode>3): Likewise.
18050
18051 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
18052
18053         * gthr-single.h: Add in required interface elements as per gthr.h.
18054         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
18055         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
18056         Generalize UNUSED macro.
18057         (__gthread_once): Add.
18058         (__gthread_key_create): Add.
18059         (__gthread_key_delete): Add.
18060         (__gthread_getspecific): Add.
18061         (__gthread_setspecific): Add.
18062
18063 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
18064
18065         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
18066         the same size types for the indirect reference on the rhs, then
18067         create a VCE.
18068
18069 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
18070
18071         * config/i386/i386.md
18072         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
18073         one insn template instead of template series.
18074         (*xordi_1_rex64): Ditto.
18075         (*xordi_2_rex64): Ditto.
18076
18077 2008-05-05  Ira Rosen  <irar@il.ibm.com>
18078
18079         PR tree-optimization/36119
18080         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
18081         in case of SLP.
18082
18083 2008-06-04  Jan Hubicka  <jh@suse.cz>
18084
18085         tree-optimization/36100
18086         * tree-pass.h (pass_O0_always_inline): Declare.
18087         * ipa-inline.c (inline_transform): Remove dead code.
18088         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
18089         pass_O0_always_inline): New.
18090         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
18091
18092 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
18093
18094         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
18095         mnemonic in this_param move for TARGET_64BIT.
18096
18097 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
18098
18099         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
18100         (*strmovsi_rex_1): Ditto.
18101         (*strsetsi_1): Ditto.
18102         (*strsetsi_rex_1): Ditto.
18103
18104         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
18105         adddicc expanders using SWI mode iterator.
18106
18107 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18108
18109         PR target/36121
18110         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
18111         argument handling.
18112
18113 2008-05-04  David S. Miller  <davem@davemloft.net>
18114
18115         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
18116         (sparc*-*-linux*): Use linux.h in tm_file.
18117         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
18118         compiler defaulting to 32-bit.
18119         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
18120         no longer needed.
18121         * config/sparc/linux.h: Remove definitions now obtained
18122         properly from linux.h
18123         * config/sparc/linux64.h: Likewise.
18124         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
18125         don't want this setting for 32-bit builds in a biarch compiler.
18126         * doc/install.texi: Add sparc-linux to list of targets
18127         supporting --enable-targets=all.
18128
18129 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
18130
18131         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
18132
18133 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
18134
18135         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
18136         after V4SI_FTYPE_V8HI.
18137         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
18138         case V4SI_FTYPE_V2DF.
18139
18140 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
18141
18142         * doc/invoke.texi (max-flow-memory-locations): Removed.
18143         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
18144
18145 2008-05-03  Richard Guenther  <rguenther@suse.de>
18146
18147         PR middle-end/34973
18148         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
18149
18150 2008-05-02  David S. Miller  <davem@davemloft.net>
18151
18152         * config.gcc (need_64bit_hwint): Document libcpp dependency.
18153
18154 2008-05-02  Simon Baldwin <simonb@google.com>
18155
18156         PR bootstrap/36108
18157         * c-common.h (warn_array_subscript_range): Removed.
18158         * c-common.c (warn_array_subscript_range): Ditto.
18159         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
18160         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
18161
18162 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18163
18164         * config/i386/i386.c (ix86_special_builtin_type): New.
18165         (bdesc_special_args): Likewise.
18166         (ix86_expand_special_args_builtin): Likewise.
18167         (ix86_init_mmx_sse_builtins): Updated.
18168         (ix86_expand_builtin): Updated.
18169         (ix86_expand_store_builtin): Removed.
18170         (ix86_expand_unop_builtin): Likewise.
18171
18172         * config/i386/mm3dnow.h (__v2sf): Moved to ...
18173         * config/i386/mmintrin.h (__v2sf): Here.
18174
18175         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
18176         const __v2sf.
18177         (_mm_loadl_pi): Likewise.
18178         (_mm_storeh_pi): Replace __v2si with __v2sf.
18179         (_mm_storel_pi): Likewise.
18180
18181         * doc/extend.texi: Correct __builtin_ia32_loadhps,
18182         __builtin_ia32_loadlps, __builtin_ia32_storehps,
18183         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
18184         __builtin_ia32_loadlpd.
18185
18186 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18187
18188         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
18189         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
18190         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
18191         (ix86_init_mmx_sse_builtins): Updated.
18192         (ix86_expand_args_builtin): Likewise.
18193         (ix86_expand_builtin): Likewise.
18194         (ix86_expand_unop1_builtin): Renamed to ...
18195         (ix86_expand_unop_vec_merge_builtin): This.
18196
18197 2008-05-01  Jan Hubicka  <jh@suse.cz>
18198
18199         PR bootstrap/36100
18200         * ipa-inline.c (inline_generate_summary): Make static.
18201         (inline_transform): Do not call inlining at -O0; make static.
18202         * passes.c (execute_todo): Add sanity check.
18203         (execute_one_ipa_transform_pass): Execute proper flags.
18204
18205 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
18206
18207         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
18208         (DECL_NONADDRESSABLE_P): Likewise.
18209         * alias.c (record_component_aliases): Fix comment.
18210
18211 2008-05-01  Simon Baldwin <simonb@google.com>
18212
18213         * c-common.h (warn_array_subscript_range): New function.
18214         * c-common.c (warn_array_subscript_range): Ditto.
18215         * tree-vrp.c (check_array_ref): Corrected code to agree with
18216         comment, ignoring only arrays of size 0 or size 1.
18217         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
18218
18219 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18220
18221         * config/i386/i386.c (ix86_builtin_type): Replace
18222         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
18223         (bdesc_args): Updated.
18224         (ix86_init_mmx_sse_builtins): Likewise.
18225         (ix86_expand_args_builtin): Likewise.
18226
18227         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
18228         with __v1di.
18229
18230         * doc/extend.texi: Correct __builtin_ia32_palignr.
18231
18232 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18233
18234         PR target/36095
18235         * config/i386/i386.c (bdesc_crc32): Removed.
18236         (ix86_expand_crc32): Likewise.
18237         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
18238         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
18239         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
18240         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
18241         UINT_FTYPE_UINT_UCHAR.
18242         (bdesc_args): Updated. Add crc32 builtins.
18243         (ix86_init_mmx_sse_builtins): Updated.
18244         (ix86_expand_args_builtin): Updated to support subreg.
18245
18246         * doc/extend.texi: Correct __builtin_ia32_crc32di.
18247
18248 2008-05-01  Jan Hubicka  <jh@suse.cz>
18249
18250         * tree-pass.h (opt_pass): Add IPA_PASS.
18251         (varpool_node, cgraph_node): Forward declare.
18252         (ipa_opt_pass): Define.
18253         (pass_ipa_inline): Turn into ipa_opt_pass.
18254         (pass_apply_inline): Remove.
18255         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
18256         (apply_inline): Turn into ....
18257         (inline_transform): ... this one.
18258         (inline_generate_summary): New function.
18259         (pass_apply_inline): Remove.
18260         * function.h (ipa_opt_pass): Forward declare structure; typedef;
18261         vector.
18262         (struct function): Add ipa_transforms_to_apply.
18263         * passes.c (register_one_dump_file): Work on IPA_PASS.
18264         (init_optimization_passes): Remove pass_inline_parameters and
18265         pass_apply_inline.
18266         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
18267         (execute_one_pass) ... here; apply transforms when possible.
18268         (add_ipa_transform_pass, execute_ipa_summary_asses,
18269         execute_one_ipa_transform_pass): New.
18270         (execute_ipa_pass_list): Update for IPA_PASS type.
18271
18272 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18273
18274         * config/i386/i386.c (ix86_builtin_type): Add
18275         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
18276         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
18277         (bdesc_args): Add SSE4a builtins.
18278         (ix86_init_mmx_sse_builtins): Updated.
18279         (ix86_expand_args_builtin): Likewise.
18280         (ix86_expand_builtin): Likewise.
18281
18282 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
18283
18284         * config/i386/i386.c (ix86_builtin_type): Add
18285         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
18286         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
18287         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
18288         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
18289         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
18290         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
18291         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
18292         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
18293         and DI_FTYPE_DI_DI_INT.
18294         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
18295         (ix86_init_mmx_sse_builtins): Updated.
18296         (ix86_expand_args_builtin): Likewise.
18297         (ix86_expand_builtin): Likewise.
18298         (ix86_expand_binop_imm_builtin): Removed.
18299
18300         * doc/extend.texi: Correct __builtin_ia32_palignr128.
18301
18302 2008-04-30  Richard Guenther  <rguenther@suse.de>
18303
18304         PR tree-optimization/32921
18305         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
18306
18307 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
18308
18309         * config/arm/arm.c (arm_unwind_emit): Use
18310         crtl->all_throwers_are_sibcalls instead of
18311         cfun->all_throwers_are_sibcalls.
18312         (arm_output_fn_unwind): Likewise.
18313         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
18314         instead of cfun->uses_pic_offset_table.
18315         (frv_expand_prologue): Likewise.
18316         (frv_frame_pointer_required): Likewise.
18317         (frv_expand_fdpic_call): Likewise.
18318         (frv_emit_movsi): Likewise.
18319         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
18320         cfun->returns_pcc_struct instead of
18321         current_function_returns_pcc_struct.
18322         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
18323         instead of cfun->calls_eh_return.
18324         (m32c_pushm_popm): Likewise.
18325         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
18326         "extern" declaration.
18327
18328 2008-04-30  Richard Guenther  <rguenther@suse.de>
18329
18330         PR tree-optimization/21636
18331         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
18332         constant address.
18333         (evaluate_stmt): Print the likely value.
18334         (ccp_visit_stmt): Avoid excessive vertical spacing.
18335
18336 2008-04-30  Rafael Espíndola  <espindola@google.com>
18337
18338         * builtins.c (fold_call_expr): Return realret.
18339         * tree-ssa-threadedge.c
18340         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
18341         __builtin_object_size.
18342
18343 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
18344
18345         * gcc.c (wrapper_string): New variable.
18346         (insert_wrapper): New function.
18347         (execute): New option -wrapper.
18348         * doc/invoke.texi (Overall Options): New driver option -wrapper.
18349
18350 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
18351
18352         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
18353         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
18354         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
18355         from...
18356         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
18357         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
18358         config/rs6000/e500crtres64gprctr.asm,
18359         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
18360         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
18361         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
18362         config/rs6000/e500crtsav64gprctr.asm,
18363         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
18364         config/rs6000/e500crtsavg64gprctr.asm: New files.
18365         * config/rs6000/t-ppccomm: Add build rules for new files.
18366         (LIB2FUNCS_STATIC_EXTRA): Add new files.
18367         * config/rs6000/t-netbsd: Add build rules for new files.
18368         (LIB2FUNCS_STATIC_EXTRA): New variable.
18369         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
18370         (CRTSAVRES_DEFAULT_SPEC): Likewise.
18371         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
18372
18373 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
18374
18375         * config/i386/i386.c (ix86_builtin_type): Add
18376         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
18377         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
18378         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
18379         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
18380         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
18381         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
18382         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
18383         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
18384         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
18385         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
18386         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
18387         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
18388         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
18389         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
18390         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
18391         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
18392         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
18393         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
18394         V1DI_FTYPE_V2SI_V2SI.
18395         (bdesc_2arg): Moved to ...
18396         (bdesc_args): Here.
18397         (ix86_init_mmx_sse_builtins): Updated.
18398         (ix86_expand_args_builtin): Updated.  Take a pointer
18399         to const struct builtin_description.  Handle comparison
18400         builtin functions.
18401         (ix86_expand_sse_compare): Take a new argument for swapping operands.
18402         (ix86_expand_builtin): Updated.
18403
18404         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
18405         (ssse3_pmaddubsw128): This.
18406         (ssse3_pmaddubswv4hi3): Renamed to ...
18407         (ssse3_pmaddubsw): This.
18408
18409         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
18410         (__builtin_ia32_packssdw128): Likewise.
18411         (__builtin_ia32_packuswb128): Likewise.
18412         (__builtin_ia32_pmaddubsw): Likewise.
18413         (__builtin_ia32_pmaddubsw128): Likewise.
18414
18415 2008-04-30  Richard Guenther  <rguenther@suse.de>
18416
18417         PR tree-optimization/14847
18418         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
18419         (recognize_bits_test): Use it.
18420         (recognize_single_bit_test): Likewise.
18421
18422 2008-04-30  Martin Jambor  <mjambor@suse.cz>
18423
18424         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
18425         instead of setting number of formal parameters to zero.
18426         (ipcp_init_stage): Do not set the number of actual parameters to zero
18427         either.
18428         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
18429         which are called with variable number of arguments.
18430         (ipcp_insert_stage): Explicitely skipping all nodes which are
18431         called with variable number of arguments.
18432         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
18433         number of parameters.
18434
18435         * ipa-prop.h (struct ipa_node_params): Added flag
18436         called_with_var_arguments
18437         (ipa_set_param_count): Added.  Changed sole setter to use it.
18438         (ipa_get_param_count): Added.  All readers of param_count
18439         converted to use it instead.
18440         (ipa_set_called_with_variable_arg): Added.
18441         (ipa_is_called_with_var_arguments): Added.
18442         (ipa_get_ith_param): Added.  All readers of param_decls converted
18443         to use it instead.
18444         (ipa_set_cs_argument_count): Added, sole writer to argument_count
18445         changed to use it.
18446         (ipa_get_cs_argument_count): Added, all readers of argument_count
18447         changed to cal it.
18448         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
18449         to use it.
18450
18451         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
18452         (struct ipcp_lattice): Renamed cval_type to type
18453         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
18454
18455         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
18456         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
18457         (ipcp_insert_stage): Changed the type of variable cvalue to tree
18458         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
18459         (build_const_val): Changed the type of parameter cvalue to tree
18460         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
18461         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
18462
18463         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
18464         constant
18465
18466         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
18467         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
18468         (ipa_add_method): Renamed to ipa_push_func_to_list
18469         (ipa_remove_method): Renamed to ipa_pop_func_from_list
18470         (ipa_callsite_param_count): Removed.
18471         (ipa_callsite_param_count_set): Removed.
18472         (ipa_callsite_param): Removed.
18473         (ipa_callsite_callee): Removed.
18474         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
18475         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
18476         (ipa_method_formal_count): Removed.
18477         (ipa_method_formal_count_set): Removed.
18478         (ipa_method_get_tree): Removed.
18479         (ipa_method_tree_map_create): Removed.
18480         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
18481         (ipa_create_param_decls_array): Creates the array itself
18482         (ipa_create_param_decls_array): Temporary variable info instead of
18483         a few dereferences.
18484         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
18485         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
18486         (get_type): Removed.
18487         (ipa_jf_get_info_type): Removed.
18488         (ipa_node_create): Renamed to ipa_create_node_params
18489         (ipa_free): Renamed to ipa_free_all_node_params
18490         (ipa_nodes_create): Renamed to ipa_create_all_node_params
18491         (ipa_edges_create): Renamed to ipa_create_all_edge_args
18492         (ipa_edges_free): Renamed to ipa_free_all_edge_args
18493         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
18494         (ipa_free_all_node_params): Deallocation to jump_functions moved to
18495         ipa_free_all_edge_args
18496         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
18497         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
18498         (ipa_create_methodlist_node): Removed.
18499         (ipa_methodlist_method): Removed.
18500         (ipa_methodlist_method_set): Removed.
18501         (ipa_methodlist_next_method): Removed.
18502         (ipa_methodlist_next_method_set): Removed.
18503         (ipa_method_is_modified): Removed.
18504         (ipa_method_modify_create): Removed.
18505         (ipa_method_modify_init): Temporary variable info instead of a few
18506         dereferences.
18507         (ipa_detect_param_modifications): Temporary variable info instead of
18508         a few dereferences.
18509         (ipa_compute_jump_functions): Temporary variable info instead of
18510         a few dereferences.
18511         (ipa_method_modify_set): Removed.
18512         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
18513         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
18514         than craph_node as the first parameter.
18515         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
18516         (ipa_method_modify_init): Removed.
18517         (ipa_compute_jump_functions): Added a temp variable instead of
18518         repeatadly dereferencing the cgraph_edge.aux pointer
18519         (ipa_callsite_param_set_type): Removed.
18520         (ipa_compute_jump_functions): i renamed to index and moved to
18521         an inner block
18522         (ipa_callsite_param_set_info_type_formal): Removed.
18523         (ipa_callsite_param_set_info_type): Removed.
18524         (ipa_callsite_param_map_create): Removed.
18525         (ipa_callsite_tree): Removed.
18526         (ipa_callsite_caller): Removed.
18527         (ipa_pop_func_from_list): return_method removed to return_func
18528
18529         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
18530         prefixed all values with IPA_. Changed all users.
18531         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
18532         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
18533         and FORMAL_IPATYPE IPA_PASS_THROUGH.
18534         (union parameter_info): Renamed to jump_func_value.
18535         (union jump_func_value): Renamed value to constant
18536         (struct ipa_jump_func): Renamed info_type to value
18537         (struct ipa_node): Renamed to ipa_node_params
18538         (struct ipa_node_params): Renamed ipa_arg_num to param_count
18539         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
18540         (struct ipa_node_params): Renamed ipa_mod to modified_flags
18541         (struct ipa_edge): Renamed to ipa_edge_args
18542         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
18543         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
18544         (struct ipa_methodlist): Renamed to ipa_func_list
18545         (struct ipa_func_list): method_p renamed to node, next_method
18546         renamed to next
18547         (ipa_methodlist_p): Removed, switched all users to struct pointer
18548         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
18549
18550 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
18551
18552         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
18553         (rs6000_emit_epilogue): Use backchain to restore only when we
18554         have a large frame.  Make use of frame pointer to restore if we
18555         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
18556
18557 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
18558
18559         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
18560         Add mode to zero_extract.
18561         (sign bit tests peepholes): (Ditto.).
18562
18563 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * config/i386/i386.c (ix86_builtins): Replace Prescott New
18566         Instructions in comments with SSE3.
18567         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
18568         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
18569         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
18570         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
18571         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
18572         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
18573         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
18574         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
18575         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
18576         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
18577         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
18578         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
18579         (bdesc_sse_args): Renamed to ...
18580         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
18581         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
18582         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
18583         IX86_BUILTIN_FABSQ.
18584         (bdesc_1arg): Moved to ...
18585         (bdesc_args): Here.
18586         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
18587         Instructions in comments with SSE3.
18588         (ix86_expand_sse_operands_builtin): Renamed to ...
18589         (ix86_expand_args_builtin): This.  Updated.
18590         (ix86_expand_unop1_builtin): Update comments.
18591         (ix86_expand_builtin): Updated.
18592
18593 2008-04-29  Richard Guenther  <rguenther@suse.de>
18594
18595         PR tree-optimization/36078
18596         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
18597         Update virtual SSA form after cleaning up the CFG.
18598
18599 2008-04-29  Richard Guenther  <rguenther@suse.de>
18600
18601         PR middle-end/15255
18602         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
18603
18604 2008-04-29  Richard Guenther  <rguenther@suse.de>
18605
18606         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
18607         (compute_may_aliases): Do not call finalize_ref_all_pointers.
18608         (compute_flow_insensitive_aliasing): Do not treat
18609         PTR_IS_REF_ALL pointers special.
18610         (get_smt_for): Likewise.
18611         (may_alias_p): Re-structure.
18612         (is_escape_site): A ref-all pointer conversion is not an escape site.
18613         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
18614         PTR_IS_REF_ALL pointers special.
18615         * tree-ssa-structalias.h (struct alias_info): Remove
18616         ref_all_symbol_mem_tag field.
18617         (PTR_IS_REF_ALL): Remove.
18618
18619 2008-04-29  Richard Guenther  <rguenther@suse.de>
18620
18621         PR middle-end/36077
18622         * fold-const.c (extract_muldiv_1): In combining division constants
18623         make sure to never overflow.
18624
18625 2008-04-29  Nick Clifton  <nickc@redhat.com>
18626
18627         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
18628
18629 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18630
18631         PR bootstrap/35169
18632         * optc-gen.awk: Work around HP-UX/IA awk bug.
18633
18634 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
18635
18636         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
18637         2008-04-25 commit.
18638
18639 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
18640
18641         PR target/36073
18642         * config/i386/i386.md
18643         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
18644         Change operand 1 predicate to nonimmediate_operand.
18645
18646 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
18647
18648         PR debug/36060
18649         * dwarf2out.c (struct die_struct): Mark as chain_circular through
18650         die_sub field.
18651         * gengtype.c (walk_type, write_func_for_structure): Handle
18652         chain_circular.
18653         * doc/gty.texi: Document chain_circular.
18654
18655 2008-04-28  Richard Guenther  <rguenther@suse.de>
18656
18657         PR tree-optimization/36066
18658         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
18659         SCEV and loop.
18660
18661 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
18662
18663         PR target/36064
18664         * config/i386/i386.md
18665         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
18666         Use match_scratch instead of match_operand for operands 3 and 4.
18667
18668 2008-04-27  Richard Guenther  <rguenther@suse.de>
18669
18670         PR tree-optimization/18754
18671         PR tree-optimization/34223
18672         * tree-pass.h (pass_complete_unrolli): Declare.
18673         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
18674         loop size before and after unconditionally of UL_NO_GROWTH in effect.
18675         Rewrite loop into loop closed SSA form if it is not already.
18676         (tree_unroll_loops_completely): Re-structure to iterate over
18677         innermost loops with intermediate CFG cleanups.
18678         Unroll outermost loops only if requested or the code does not grow
18679         doing so.
18680         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
18681         loops are available.
18682         (tree_vectorize): Instead do so here.
18683         (tree_complete_unroll): Also unroll outermost loops.
18684         (tree_complete_unroll_inner): New function.
18685         (gate_tree_complete_unroll_inner): Likewise.
18686         (pass_complete_unrolli): New pass.
18687         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
18688         uses outside of the loop.
18689         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
18690         form if it is available.
18691         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
18692         * passes.c (init_optimization_passes): Schedule complete inner
18693         loop unrolling pass before the first CCP pass after final inlining.
18694
18695 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
18696
18697         * targhooks.h (default_emutls_var_fields,
18698         default_emutls_var_init): Declare.
18699         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
18700         * target.h (struct gcc_target): Add struct emutls member.
18701         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
18702         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
18703         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
18704         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
18705         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
18706         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
18707         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
18708         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
18709         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
18710         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
18711         emit debug information.
18712         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
18713         * varasm.c: Include targhooks.h.
18714         (emutls_object_section, emutls_tmpl_section): New.
18715         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
18716         (EMUTLS_SEPARATOR): New.
18717         (prefix_name): New.
18718         (get_emutls_object_name): New.
18719         (default_emutls_var_fields): New, broken out of ...
18720         (get_emutls_object_type): ... here.  Adjust to use target hooks.
18721         (get_emutls_init_templ_addr): Adjust to use target hooks.
18722         (emutls_decl): Adjust to use target hooks.
18723         (emutls_finish): Likewise.
18724         (default_emutls_var_init): New, broken out of ...
18725         (assemble_variable): ... here.  Adjust to use target hooks.
18726         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
18727         SECCAT_EMUTLS_TMPL.
18728         * c-common.c (handle_section_attribute): Prevent overriding
18729         sections for emulated tls with special sections.
18730         * config/i386/i386.c (x86_64_elf_select_section): Add
18731         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
18732         (x86_64_elf_unique_section): Likewise.
18733         * config/vxworks.c: Include tree.h.
18734         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
18735         (vxworks_override_options): Set TLS scheme.
18736         * doc/tm.texi (Emulated TLS): New node.
18737
18738 2008-04-26  Simon Baldwin <simonb@google.com>
18739
18740         PR c/35652
18741         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
18742         with propagated string constants.
18743
18744 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
18745
18746         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
18747         constraint for operand 2 when operand 0 is memory operand.
18748         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
18749         operand 0 is memory operand.
18750         (fix_trunc<mode>_i387_with_temp): Ditto.
18751         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
18752         operand 2 when operand 1 is memory operand.
18753         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
18754         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
18755         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
18756         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
18757         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
18758         operands 2,3 and 4 when operand 1 is memory operand.
18759         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
18760         is memory operand.
18761         (fistdi2_floor_with_temp): Ditto.
18762         (fist<mode>2_floor_with_temp): Ditto.
18763         (fistdi2_ceil_with_temp): Ditto.
18764         (fist<mode>2_ceil_with_temp): Ditto.
18765         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
18766
18767 2008-04-26  David Daney  <ddaney@avtrex.com>
18768
18769         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
18770         unspec_volitile.
18771         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
18772         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
18773         UNSPEC_UPDATE_GOT_VERSION): Renumber.
18774         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
18775         (compare_and_swap_12): New insn.
18776         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
18777         * config/mips/mips.c (mips_force_binary): New function.
18778         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
18779         (mips_expand_compare_and_swap_12): New function.
18780         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
18781
18782 2008-04-25  Jan Hubicka  <jh@suse.cz>
18783
18784         PR testsuite/35843
18785         * cfgexpand.c (pass_expand): Turn into RTL pass.
18786         * passes.c (execute_one_pass): Do pass typechecking after execution.
18787         * tree-pass.h (pass_expand): Turn into RTL pass.
18788
18789         * function.h (struct rtl_data): Move here fields
18790         accesses_prior_frames, calls_eh_return, saves_all_registers,
18791         has_nonlocal_goto, has_asm_statement, is_thunk,
18792         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
18793         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
18794         arg_pointer_save_area_init from struct function; turn into bool.
18795         (struct function): Move
18796         calls_eh_return, saves_all_registers, has_nonlocal_goto,
18797         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
18798         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
18799         tail_call_emit, arg_pointer_save_area_init
18800         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
18801         (current_function_returns_struct, current_function_returns_pcc_struct,
18802         current_function_calls_setjmp, current_function_calls_alloca,
18803         current_function_accesses_prior_frames,
18804         current_function_calls_eh_return, current_function_is_thunk,
18805         current_function_stdarg, current_function_profile,
18806         current_function_limit_stack, current_function_uses_pic_offset_table,
18807         current_function_uses_const_pool, current_function_has_nonlocal_label,
18808         current_function_saves_all_registers,
18809         current_function_has_nonlocal_goto,
18810         current_function_has_asm_statement): Remove accesor macros.
18811         * ra-conflict.c (global_conflicts): Update.
18812         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
18813         (suitable_for_tail_call_opt_p): Update.
18814         * builtins.c (expand_builtin_return_addr): Update.
18815         (expand_builtin_setjmp_setup): Update.
18816         (expand_builtin_nonlocal_goto): Update.
18817         * final.c (final_start_function): Update.
18818         (profile_function): Update.
18819         (leaf_function_p): Update.
18820         (only_leaf_regs_used): Update.
18821         * df-scan.c (df_get_exit_block_use_set): Update.
18822         * dojump.c (clear_pending_stack_adjust): Update.
18823         * tree-stdarg.c (gate_optimize_stdarg): Update.
18824         * gimple-low.c (lower_function_body): Update.
18825         * global.c (compute_regsets): Update.
18826         (global_alloc): Update.
18827         * dwarf2out.c (dwarf2out_begin_prologue): Update.
18828         * expr.c (expand_assignment): Update.
18829         * dse.c (dse_step0): Update.
18830         (dse_step1): Update.
18831         * c-decl.c (store_parm_decls): Update.
18832         * local-alloc.c (combine_regs): Update.
18833         (find_free_reg): Update.
18834         * function.c (assign_parms_augmented_arg_list): Update.
18835         (assign_parm_find_data_types): Update.
18836         (assign_parms): Update.
18837         (allocate_struct_function): Update.
18838         (expand_function_start): Update.
18839         (expand_function_end): Update.
18840         (get_arg_pointer_save_area): Update.
18841         (thread_prologue_and_epilogue_insns): Update.
18842         (rest_of_match_asm_constraints): Update.
18843         * stor-layout.c (variable_size): Update.
18844         * gcse.c (gcse_main): Update.
18845         (bypass_jumps): Update.
18846         * gimplify.c (gimplify_function_tree): Update.
18847         * calls.c (emit_call_1): Update.
18848         (expand_call): Update.
18849         * bt-load.c (compute_defs_uses_and_gen): Update.
18850         * except.c (sjlj_assign_call_site_values): Update.
18851         (sjlj_emit_function_enter): Update.
18852         (can_throw_external): Update.
18853         (set_nothrow_function_flags): Update.
18854         (expand_builtin_unwind_init): Update.
18855         (expand_eh_return): Update.
18856         (convert_to_eh_region_ranges): Update.
18857         (output_function_exception_table): Update.
18858         * emit-rtl.c (gen_tmp_stack_mem): Update.
18859         * cfgexpand.c (expand_used_vars): Update.
18860         (tree_expand_cfg): Update.
18861         * cfgcleanup.c (rest_of_handle_jump): Update.
18862         * explow.c (allocate_dynamic_stack_space): Update.
18863         * varasm.c (assemble_start_function): Update.
18864         (force_const_mem): Update.
18865         (mark_constant_pool): Update.
18866         * tree-optimize.c (tree_rest_of_compilation): Update.
18867         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
18868         * tree-cfg.c (notice_special_calls): Update.
18869         (is_ctrl_altering_stmt): Update.
18870         (tree_can_make_abnormal_goto): Update.
18871         (tree_purge_dead_abnormal_call_edges): Update.
18872         * config/alpha/predicates.md: Update.
18873         * config/alpha/alpha.c (alpha_sa_mask): Update.
18874         (alpha_sa_size): Update.
18875         (alpha_does_function_need_gp): Update.
18876         (alpha_expand_prologue): Update.
18877         (alpha_start_function): Update.
18878         (alpha_output_function_end_prologue): Update.
18879         (alpha_expand_epilogue): Update.
18880         * config/frv/frv.c (frv_stack_info): Update.
18881         (frv_expand_epilogue): Update.
18882         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
18883         (s390_register_info): Update.
18884         (s390_frame_info): Update.
18885         (s390_init_frame_layout): Update.
18886         (s390_can_eliminate): Update.
18887         (save_gprs): Update.
18888         * config/spu/spu.c (spu_split_immediate): Update.
18889         (need_to_save_reg): Update.
18890         (spu_expand_prologue): Update.
18891         (spu_expand_epilogue): Update.
18892         * config/sparc/sparc.md: Update.
18893         * config/sparc/sparc.c (eligible_for_return_delay): Update.
18894         (sparc_tls_got): Update.
18895         (legitimize_pic_address): Update.
18896         (sparc_emit_call_insn): Update.
18897         (sparc_expand_prologue): Update.
18898         (output_return): Update.
18899         (print_operand): Update.
18900         (sparc_function_ok_for_sibcall): Update.
18901         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
18902         * config/m32r/m32r.md: Update.
18903         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
18904         (m32r_compute_frame_size): Update.
18905         (m32r_expand_prologue): Update.
18906         (m32r_expand_epilogue): Update.
18907         (m32r_legitimize_pic_address): Update.
18908         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
18909         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
18910         * config/i386/i386.c (ix86_frame_pointer_required): Update.
18911         (gen_push): Update.
18912         (ix86_save_reg): Update.
18913         (ix86_compute_frame_layout): Update.
18914         (ix86_expand_prologue): Update.
18915         (ix86_expand_epilogue): Update.
18916         * config/sh/sh.c (output_stack_adjust): Update.
18917         (calc_live_regs): Update.
18918         (sh5_schedule_saves): Update.
18919         (sh_expand_prologue): Update.
18920         (sh_expand_epilogue): Update.
18921         (sh_setup_incoming_varargs): Update.
18922         (sh_allocate_initial_value): Update.
18923         (sh_get_pr_initial_val): Update.
18924         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
18925         * config/sh/sh.md (label:): Update.
18926         * config/avr/avr.c (out_movhi_mr_r): Update.
18927         * config/crx/crx.h (enum): Update.
18928         * config/xtensa/xtensa.h (along): Update.
18929         * config/stormy16/stormy16.c Update.
18930         (xstormy16_compute_stack_layout): Update.
18931         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
18932         (fr30_expand_prologue): Update.
18933         * config/cris/cris.c (cris_conditional_register_usage): Update.
18934         (cris_reg_saved_in_regsave_area): Update.
18935         (cris_initial_frame_pointer_offset): Update.
18936         (cris_simple_epilogue): Update.
18937         (cris_expand_prologue): Update.
18938         (cris_expand_epilogue): Update.
18939         (cris_expand_pic_call_address): Update.
18940         (cris_asm_output_symbol_ref): Update.
18941         (cris_asm_output_label_ref): Update.
18942         * config/cris/cris.md Update.
18943         * config/iq2000/iq2000.c (compute_frame_size): Update.
18944         (iq2000_expand_epilogue): Update.
18945         * config/mt/mt.h (save_direction): Update.
18946         * config/mn10300/mn10300.c (mn10300_function_value): Update.
18947         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18948         (ia64_secondary_reload_class): Update.
18949         * config/m68k/m68k.c (m68k_save_reg): Update.
18950         (m68k_expand_prologue): Update.
18951         (m68k_expand_epilogue): Update.
18952         (legitimize_pic_address): Update.
18953         * config/rs6000/rs6000.c (rs6000_got_register): Update.
18954         (first_reg_to_save): Update.
18955         (first_altivec_reg_to_save): Update.
18956         (compute_vrsave_mask): Update.
18957         (compute_save_world_info): Update.
18958         (rs6000_stack_info): Update.
18959         (spe_func_has_64bit_regs_p): Update.
18960         (rs6000_ra_ever_killed): Update.
18961         (rs6000_emit_eh_reg_restore): Update.
18962         (rs6000_emit_allocate_stack): Update.
18963         (rs6000_emit_prologue): Update.
18964         (rs6000_emit_epilogue): Update.
18965         (rs6000_output_function_epilogue): Update.
18966         (output_profile_hook): Update.
18967         (rs6000_elf_declare_function_name): Update.
18968         * config/rs6000/rs6000.h (rs6000_args): Update.
18969         * config/rs6000/rs6000.md: Update.
18970         * config/mcore/mcore.c (mcore_expand_prolog): Update.
18971         * config/arc/arc.c (arc_output_function_epilogue): Update.
18972         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
18973         * config/darwin.c (machopic_function_base_name): Update.
18974         * config/score/score3.c (score3_compute_frame_size): Update.
18975         (rpush): Update.
18976         (rpop): Update.
18977         (score3_epilogue): Update.
18978         * config/score/score7.c (score7_compute_frame_size): Update.
18979         (score7_prologue): Update.
18980         (score7_epilogue): Update.
18981         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
18982         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
18983         * config/arm/arm.c (use_return_insn): Update.
18984         (require_pic_register): Update.
18985         (arm_load_pic_register): Update.
18986         (arm_compute_save_reg0_reg12_mask): Update.
18987         (arm_compute_save_reg_mask): Update.
18988         (thumb1_compute_save_reg_mask): Update.
18989         (output_return_instruction): Update.
18990         (arm_output_function_prologue): Update.
18991         (arm_output_epilogue): Update.
18992         (arm_get_frame_offsets): Update.
18993         (arm_expand_prologue): Update.
18994         (thumb_pushpop): Update.
18995         (thumb_exit): Update.
18996         (thumb1_expand_prologue): Update.
18997         (thumb1_expand_epilogue): Update.
18998         (arm_unwind_emit): Update.
18999         (arm_output_fn_unwind): Update.
19000         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
19001         * config/arm/arm.md: Update.
19002         * config/pa/pa.md: Update.
19003         * config/pa/pa.c (legitimize_pic_address): Update.
19004         (compute_frame_size): Update.
19005         (hppa_expand_prologue): Update.
19006         (hppa_expand_epilogue): Update.
19007         (borx_reg_operand): Update.
19008         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
19009         (HARD_REGNO_RENAME_OK): Update.
19010         * config/mips/mips.c (mips_global_pointer): Update.
19011         (mips_save_reg_p): Update.
19012         (mips_compute_frame_info): Update.
19013         (mips_frame_pointer_required): Update.
19014         (mips_expand_prologue): Update.
19015         (mips_expand_epilogue): Update.
19016         (mips_can_use_return_insn): Update.
19017         (mips_reorg_process_insns): Update.
19018         * config/v850/v850.c (compute_register_save_size): Update.
19019         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
19020         * config/mmix/mmix.c (along): Update.
19021         (mmix_expand_epilogue): Update.
19022         * config/bfin/bfin.c (legitimize_pic_address): Update.
19023         (must_save_p): Update.
19024         (stack_frame_needed_p): Update.
19025         (add_to_reg): Update.
19026         (bfin_expand_prologue): Update.
19027         * stmt.c (expand_asm_operands): Update.
19028         * reload1.c (reload): Update.
19029         (init_elim_table): Update.
19030
19031 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
19032
19033         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
19034
19035 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
19036
19037         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
19038         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
19039         (mov<mode>): Removed.
19040         (*movv4sf_internal): Likewise.
19041         (*movv2df_internal): Likewise.
19042
19043 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
19044
19045         * config.gcc (crx-*-elf): Remove deprecation.
19046
19047 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
19048
19049         * config/i386/cygming-crtend.c (register_frame_ctor): Register
19050         __gcc_deregister_frame with atexit.
19051         (deregister_frame_dtor): Remove.
19052
19053 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
19054             Nathan Sidwell  <nathan@codesourcery.com>
19055
19056         * config/rs6000/rs6000.opt (mspe): Remove Var property.
19057         (misel): Likewise.
19058         * config/rs6000/rs6000.h (rs6000_spe): Declare.
19059         (rs6000_isel): Likewise.
19060         * config/rs6000/rs6000.c (rs6000_spe): New variable.
19061         (rs6000_isel): New variable.
19062         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
19063
19064 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19065
19066         PR c++/35758
19067         * c-common.c (handle_vector_size_attribute): Call
19068         lang_hooks.types.reconstruct_complex_type instead of
19069         reconstruct_complex_type.
19070         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
19071         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
19072         * langhooks.h (struct lang_hooks_for_types): Add
19073         reconstruct_complex_type hook.
19074         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
19075         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
19076
19077 2008-04-24  Richard Guenther  <rguenther@suse.de>
19078
19079         * c-common.h (check_builtin_function_arguments): Declare.
19080         * c-common.c (validate_nargs): New function.
19081         (check_builtin_function_arguments): Likewise.
19082         * c-typeck.c (build_function_call): Call
19083         check_builtin_function_arguments.
19084         * builtins.c (fold_builtin_classify): Remove error reporting code.
19085         (fold_builtin_unordered_cmp): Likewise.
19086         (fold_builtin_1): Likewise.
19087         (fold_builtin_n): Likewise.
19088
19089 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19090
19091         PR tree-optimization/36008
19092         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
19093         the original op1, rather than delta by step.
19094
19095 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
19096             Sebastian Pop  <sebastian.pop@amd.com>
19097
19098         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
19099         eliminate_local_variables_stmt, eliminate_local_variables,
19100         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
19101         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
19102         of code delimited by two edges in the CFG.
19103         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
19104         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
19105         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
19106         the case of parallelisation of reductions.
19107         (expr_invariant_in_region_p): New.
19108
19109         * tree-flow.h (gather_blocks_in_sese_region): Declared.
19110         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
19111
19112 2008-04-24  Ira Rosen  <irar@il.ibm.com>
19113             Richard Guenther  <rguenther@suse.de>
19114
19115         PR tree-optimization/36034
19116         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
19117         incapable of dealing with loads with gaps.
19118
19119 2008-04-24  Rafael Espíndola  <espindola@google.com>
19120
19121         * tree-flow.h (vrp_evaluate_conditional): Change signature.
19122         * tree-ssa-propagate.c (fold_predicate_in): Update call to
19123         vrp_evaluate_conditional.
19124         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
19125         (vrp_evaluate_conditional): Split the cond argument.
19126         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
19127         (simplify_stmt_for_jump_threading): Update call to
19128         vrp_evaluate_conditional.
19129
19130 2008-04-24  Ira Rosen  <irar@il.ibm.com>
19131
19132         PR tree-optimization/35982
19133         * tree-vect-analyze.c (vect_check_interleaving): Check that the
19134         interleaved data-refs are of the same type.
19135
19136 2008-04-24  Danny Smith  <dannysmith@users.net>
19137
19138         * c-format.c (check_format_info_main): Use strncmp rather than a
19139         magic prefix to handle multichar length specs.
19140         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
19141         Don't prefix "I64" and "I32" with '\0'.
19142
19143 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
19144
19145         PR target/36015
19146         * config/i386/i386.c (init_cumulative_args): Don't pass anything
19147         in registers for -m32 only if stdarg_p (fntype).
19148
19149 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
19150
19151         PR rtl-optimization/36006
19152         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
19153         temp to op0 in order to avoid invalid rtx sharing.
19154
19155 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
19156
19157         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
19158         check TREE_INVARIANT.
19159         * tree-gimple.c (is_gimple_address): New.
19160         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
19161         * tree-gimple.h (is_gimple_address): New.
19162         * tree.h (decl_address_invariant_p): New.
19163         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
19164         (build_string): Likewise.
19165         (decl_address_invariant_p): New, from is_gimple_invariant_address.
19166         (tree_invariant_p_1): Likewise.
19167         (save_expr): Use it.
19168         (tree_invariant_p): New.
19169         (skip_simple_arithmetic): Use it.
19170         (stabilize_reference_1): Use it.
19171         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
19172         simplify.
19173         (build1_stat): Drop code to compute TREE_INVARIANT.
19174         (build2_stat): Drop code to compute TREE_INVARIANT.
19175         (build3_stat): Drop code to compute TREE_INVARIANT.
19176         (build4_stat): Drop code to compute TREE_INVARIANT.
19177         (build5_stat): Drop code to compute TREE_INVARIANT.
19178         (build7_stat): Drop code to compute TREE_INVARIANT.
19179         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
19180         * tree.h (struct tree_base): Remove invariant_flag.
19181         (TREE_INVARIANT): Remove.
19182         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
19183         (fold_builtin_expect): Check TREE_CONSTANT.
19184         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
19185         * c-tree.h (c_expr_to_decl): Drop third parameter.
19186         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
19187         (build_c_cast): Don't set TREE_INVARIANT.
19188         (pop_init_level): Don't set TREE_INVARIANT.
19189         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
19190         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
19191         TREE_CONSTANT.
19192         (gimplify_init_constructor): Don't set TREE_INVARIANT.
19193         (gimplify_addr_expr): Adjust comment.
19194         * tree-mudflap.c (mf_build_string):
19195         * print-tree.c (print_node): Don't print TREE_INVARIANT.
19196         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
19197         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
19198         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
19199         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
19200         * langhooks.h (struct lang_hooks): Drop third parameter from
19201         expr_to_decl.
19202
19203 2008-04-23  Richard Guenther  <rguenther@suse.de>
19204
19205         PR tree-optimization/27799
19206         PR tree-optimization/32921
19207         PR tree-optimization/32624
19208         * tree-ssa-structalias.c (merge_smts_into): Only merge the
19209         SMTs aliases and the tag itself into the solution.
19210         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
19211         merge the points-to solution back into the SMT aliases.
19212         (may_alias_p): Use alias_set_subset_of instead of
19213         aliases_conflict_p.  A pointer which points to
19214         memory with alias set zero may access any variable.
19215
19216 2008-04-23  Richard Guenther  <rguenther@suse.de>
19217
19218         * alias.c (alias_set_subset_of): Correctly handle asking
19219         if zero is a subset of an alias set with zero child.
19220         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
19221         (compute_flow_insensitive_aliasing): Correctly walk all
19222         pointers.  Do not unnecessarily union sets.
19223
19224 2008-04-23  Richard Guenther  <rguenther@suse.de>
19225
19226         PR middle-end/36021
19227         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
19228
19229 2008-04-22  Tomas Bily  <tbily@suse.cz>
19230
19231         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
19232         unreachable case.
19233         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
19234         NON_LVALUE_EXPR.
19235         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19236         * tree-ssa-structalias.c (get_constraint_for): Likewise.
19237         * tree-inline.c (estimate_num_insns_1): Likewise.
19238         * varasm.c (const_hash_1, compare_constant, copy_constant)
19239         (compute_reloc_for_constant, output_addressed_constants): Likewise.
19240         * emit-rtl.c (component_ref_for_mem_expr)
19241         (set_mem_attributes_minus_bitpos): Likewise.
19242         * expr.c (highest_pow2_factor, expand_expr_real_1, )
19243         (is_aligning_offset): Likewise.
19244         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
19245         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
19246         * dojump.c (do_jump): Likewise.
19247         * builtins.c (get_pointer_alignment, get_memory_rtx)
19248         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
19249         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
19250
19251 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
19252
19253         PR rtl-optimization/36017
19254         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
19255         expanding the library call.
19256
19257 2008-04-22  Ian Lance Taylor  <iant@google.com>
19258
19259         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
19260         than size_in_bytes.
19261
19262 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
19263
19264         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
19265         of LR/CTR moves for Power6.
19266
19267 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
19268
19269         PR middle-end/36003
19270         * passes.c (init_optimization_passes): Remove
19271         pass_fast_rtl_byte_dce.
19272
19273 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
19274
19275         PR target/29096
19276         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
19277         builtin functions to generate faster code.
19278         (_mm_cvtpu16_ps): Ditto.
19279         (_mm_cvtpi32x2_ps): Ditto.
19280
19281 2008-04-22  Nick Clifton  <nickc@redhat.com>
19282
19283         * common.opt (ftree-loop-distribution): Add Optimization
19284         attribute.
19285
19286         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
19287         (frv_expand_builtin_va_start): Likewise.
19288
19289         * config/arm/arm.c (thumb_find_work_register): Fix location of
19290         argument register count.
19291
19292 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19293
19294         Support scheduling for ColdFire V1 and V3 microarchitecture.
19295         Improve scheduling of multiplication instructions.
19296
19297         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
19298         (mac): New instruction attribute.
19299         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
19300         (m68k_sched_mac): New variable.
19301         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
19302         Handle cfv1 and cfv3.
19303         (max_insn_size): New static variable.
19304         (struct _sched_ib): New type.
19305         (sched_ib): New static variable.
19306         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
19307         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
19308         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
19309         Update.
19310         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
19311         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
19312         new variables.  Update.
19313         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19314         Add modeling of cfv3 instruction buffer.  Update.
19315         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
19316         * config/m68k/m68k.h (TUNE_CFV3): New macro.
19317         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
19318         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
19319         a particular reservation applies to.
19320         (type2): Reorganize attribute values.  Rename alu to alu_reg,
19321         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
19322         to mul_l and mul_w.
19323         (cf_ib_*): Simplify description of instruction buffer.
19324         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
19325         (cf_mem): Split into cf_mem1 and cf_mem2.
19326         (cf_v2_move_??): Rename to cfv12_alu_??.
19327         (cf_v2_move_l_??): Rename to cfv12_omove_??.
19328         (cf_v2_mul_??): Remove reservations.
19329         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
19330         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
19331         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
19332         appropriate place.
19333         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
19334         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
19335         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
19336         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
19337         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
19338         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
19339         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
19340         expansions of the above reservations for instructions of sizes
19341         1, 2 and 3 words.
19342
19343 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19344
19345         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
19346
19347 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
19348
19349         * coverage.c: Include tree-pass.h.
19350         (coverage_counter_alloc): Print da_file_name to the dump file.
19351
19352 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
19353
19354         * sbitmap.c (sbitmap_range_empty_p): New function.
19355         * sbitmap.h (sbitmap_range_empty_p): New function.
19356         * bitmap.h: Now includes obstack.h.
19357
19358 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
19359             Kenneth Zadeck  <zadeck@naturalbridge.com>
19360
19361         * dbgcnt.def (ra_byte_scan): Added.
19362         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
19363         when the last hit happens for a counter.
19364         * timevar.def (TV_DF_BYTE_LR): New variable.
19365         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
19366         * passes.c (pass_fast_rtl_byte_dce): New pass.
19367         * fwprop.c (update_df): Added mode to call df_ref_create.
19368         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
19369         DF_REF_EXTRACT_OFFSET.
19370         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
19371         DF_BYTE_LR_OUT, df_byte_lr): New macro.
19372         (df_mm): New enum.
19373         (df_ref_extract): Added mode field.
19374         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
19375         DF_REF_EXTRACT_OFFSET.
19376         (DF_REF_EXTRACT_MODE): New macro.
19377         (df_byte_lr_bb_info): New structure.
19378         (df_print_byte_regset, df_compute_accessed_bytes,
19379         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
19380         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
19381         df_byte_lr_simulate_uses,
19382         df_byte_lr_simulate_artificial_refs_at_top,
19383         df_byte_lr_simulate_artificial_refs_at_end,
19384         df_compute_accessed_bytes): New function.
19385         (df_ref_create): Add parameter.
19386         (df_byte_lr_get_bb_info): New inline function.
19387         * df-scan.c (df_ref_record, df_uses_record,
19388         df_ref_create_structure): Added mode parameter.
19389         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
19390         df_defs_record, df_uses_record, df_get_conditional_uses,
19391         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
19392         df_entry_block_defs_collect, df_exit_block_uses_collect):
19393         Added mode parameter to calls to df_ref_record, df_uses_record,
19394         df_ref_create_structure.
19395         (df_ref_equal_p, df_ref_compare): Added test for modes.
19396         (df_ref_create_structure): Added code to set mode.  Renamed
19397         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
19398         DF_REF_EXTRACT_OFFSET.
19399         * df-core.c (df_print_byte_regset): New function.
19400         * df-byte-scan.c: New file.
19401         * df-problems.c (df_rd_transfer_function): Removed unnecessary
19402         calls to BITMAP_FREE.
19403         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
19404         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
19405         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
19406         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
19407         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
19408         df_byte_lr_local_compute, df_byte_lr_init,
19409         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
19410         df_byte_lr_transfer_function, df_byte_lr_free,
19411         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
19412         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
19413         df_byte_lr_simulate_uses,
19414         df_byte_lr_simulate_artificial_refs_at_top,
19415         df_byte_lr_simulate_artificial_refs_at_end): New function.
19416         * dce.c (byte_dce_process_block): New function.
19417         (dce_process_block): au is now passed in rather than computed
19418         locally.  Changed loops that look at artificial defs to not look
19419         for conditional or partial ones, because there never are any.
19420         (fast_dce): Now is able to drive byte_dce_process_block or
19421         dce_process_block depending on the kind of dce being done.
19422         (rest_of_handle_fast_dce): Add parameter to fast_dce.
19423         (rest_of_handle_fast_byte_dce): New function.
19424         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
19425         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
19426
19427 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
19428
19429         PR fortran/35019
19430         * gcc.h: Added fortran options that take arguments to
19431         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
19432         macros.
19433
19434 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
19435
19436         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
19437         scalarization if on the LHS and not a full access.
19438
19439 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19440
19441         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
19442
19443 2008-04-18  Rafael Espíndola  <espindola@google.com>
19444
19445         * tree-vrp.c (find_case_label_index): Fix the binary search.
19446         (find_case_label_range): New.
19447         (vrp_visit_switch_stmt): Use find_case_label_range.
19448         (simplify_switch_using_ranges): Use find_case_label_range.
19449
19450 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19451
19452         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
19453         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
19454
19455 2008-04-18  Tom Tromey  <tromey@redhat.com>
19456
19457         PR libcpp/15500:
19458         * doc/cpp.texi (Implementation-defined behavior): Mention
19459         -finput-charset.
19460
19461 2008-04-18  Ian Lance Taylor  <iant@google.com>
19462
19463         * fold-const.c (pointer_may_wrap_p): New static function.
19464         (fold_comparison): Add another test for pointer overflow.  Use
19465         pointer_may_wrap_p to disable some false positives.
19466
19467 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
19468
19469         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
19470         (fname_as_string): Match updated cpp_interpret_string prototype.
19471         (fix_string_type): Support char16_t* and char32_t*.
19472         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
19473         derivative) nodes.  Register as builtin if C++0x.
19474         (c_parse_error): Support CPP_CHAR{16,32}.
19475         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
19476         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
19477         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
19478         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
19479         CTI_CHAR32_ARRAY_TYPE>: New elements.
19480         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
19481         char32_type_node, signed_char32_type_node, char16_array_type_node,
19482         char32_array_type_node): New defines.
19483         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
19484         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
19485         (lex_string): Support CPP_STRING{16,32}, match updated
19486         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
19487         (lex_charconst): Support CPP_CHAR{16,32}.
19488         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
19489         and CPP_STRING{16,32}.
19490
19491 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19492
19493         PR bootstrap/35457
19494         * aclocal.m4: Regenerate.
19495         * configure: Regenerate.
19496
19497 2008-04-18  Jan Hubicka  <jh@suse.cz>
19498
19499         * except.c (dw2_size_of_call_site_table,
19500         sjlj_size_of_call_site_table): Use vector API for call_site_record.
19501
19502         * cgraphbuild.c (build_cgraph_edges): Update.
19503         * tree-pass.h: Update comment.
19504         * final.c (leaf_function_p): Update.
19505         (leaf_renumber_regs): Update.
19506         (rest_of_clean_state): Update.
19507         * omp-low.c (expand_omp_parallel): Update.
19508         * ipa-reference.c (analyze_function): Update.
19509         * reorg.c (find_end_label): Update.
19510         (optimize_skip): Update.
19511         (fill_simple_delay_slots): Update.
19512         (fill_simple_delay_slots): Update.
19513         (make_return_insns): Update.
19514         (dbr_schedule): Update.
19515         * gimple-low.c (record_vars_into): Update.
19516         * cfgbuild.c (make_edges): Update.
19517         * function.c (assign_stack_local): Update.
19518         (assign_parm_adjust_stack_rtl): Update.
19519         (locate_and_pad_parm): Update.
19520         (allocate_struct_function): Do not initialize stack_alignment_needed
19521         and preferred_stack_boundary here.
19522         (stack_protect_prologue): Update.
19523         (stack_protect_epilogue): Update.
19524         (expand_function_start): Initialize stack_alignment_needed,
19525         preferred_stack_boundary and max_jumptable_ents.
19526         (expand_function_end): Update.
19527         (free_after_compilation): Do not NULLify epilogue_delay_list.
19528         * function.h (struct rtl_data): Add stack_protect_guard,
19529         stack_alignment_needed,
19530         preferred_stack_boundary, epilogue_delay_list.
19531         (struct function): Remove value_histograms, stack_alignment_needed,
19532         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
19533         last_label_uid,
19534         unexpanded_var_list, stack_protect_guard.
19535         (current_function_epilogue_delay_list): Remove.
19536         * ipa-type-escape.c (analyze_function): Update.
19537         * gimplify.c (pop_gimplify_context): Update comment.
19538         * calls.c (expand_call): Update.
19539         (emit_library_call_value_1): Update.
19540         * except.c (set_nothrow_function_flags): Update.
19541         * cfgexpand.c (get_decl_align_unit): Update.
19542         (create_stack_guard): Update.
19543         (estimated_stack_frame_size): Update.
19544         (expand_used_vars): Update.
19545         (tree_expand_cfg): Free histogram earliers, init expansion variables.
19546         * explow.c (allocate_dynamic_stack_space): Update.
19547         * tree-ssa-live.c (remove_unused_locals): Update.
19548         * varasm.c (mark_constant_pool): Update.
19549         * tree-inline.c (remap_decls): Update.
19550         (initialize_cfun): Update.
19551         (declare_return_variable): Update.
19552         (inline_forbidden_p): Update.
19553         (expand_call_inline): Update.
19554         (declare_inline_vars): Update.
19555         (tree_function_versioning): Update.
19556         * tree-flow.h (value_histograms): New.
19557         (VALUE_HISTOGRAMS): New macro.
19558         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
19559         last_label_uid.
19560         * tree-cfg.c (set_bb_for_stmt): Update.
19561         (replace_by_duplicate_decl): Update.
19562         (move_block_to_fn): Update.
19563         (new_label_mapper): Update.
19564         (dump_function_to_file): Update.
19565         * ipa-struct-reorg.c (build_data_structure): Update.
19566         * cfgrtl.c (print_rtl_with_bb): Update.
19567         * reload1.c (reload): Update.
19568         (reload): Update.
19569         * config/i386/i386.c (setup_incoming_varargs_64,
19570         ix86_compute_frame_layout): Update.
19571         * config/arc/arc.c (arc_output_function_epilogue): Update.
19572
19573 2008-04-18  Marius Strobl <marius@FreeBSD.org>
19574
19575         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
19576         for FreeBSD as well.
19577         * gthr-posix95.h: Likewise.
19578
19579 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
19580
19581         PR rtl-optimization/35838
19582         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
19583         out the byte offset of the first subreg.
19584
19585 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
19586
19587         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
19588         to split_ti instead of three separate calls with single member arrays.
19589         (subti3 splitter): Ditto.
19590         (adddi3 splitter): Ditto with split_di.
19591         (subdi3 splitter): Ditto.
19592         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
19593         two separate calls with single member arrays.  Swap match_dup
19594         operands 1 and 2 to better fit into the array.
19595         (negdi2 splitter): Ditto with split_di.
19596         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
19597         two separate calls with single member arrays.  Swap match_dup operands
19598         6 and 7 to better fit into the array.
19599
19600 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
19601
19602         * config/i386/i386.c (sse_builtin_type): New.
19603         (bdesc_sse_args): Likewise.
19604         (bdesc_sse_3arg): Removed.
19605         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
19606         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
19607         IX86_BUILTIN_ROUNDPS.
19608         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
19609         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
19610         IX86_BUILTIN_ROUNDPS.
19611         (ix86_expand_sse_4_operands_builtin): Removed.
19612         (ix86_expand_sse_operands_builtin): New.
19613         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
19614         and CODE_FOR_sse4_1_roundps.
19615         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
19616         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
19617
19618 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
19619
19620         PR target/35907
19621         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
19622         regs before frame pop when needed.  If use_backchain_to_restore_sp
19623         then load backchain into a temp reg to restore vr and vrsave.  Add
19624         code to restore vr after frame pop if possible.
19625
19626 2008-04-17  Richard Guenther  <rguenther@suse.de>
19627
19628         * tree-vn.c (expressions_equal_p): Do not check type
19629         equality or compatibility before calling operand_equal_p.
19630         * fold-const.c (operand_equal_p): Check equivalence of
19631         integer constants before bailing out due to signedness or
19632         precision differences.
19633         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
19634         spurious differences in type qualification.  Ignore types
19635         for COMPONENT_REFs at all.
19636
19637 2008-04-17  Christian Bruel  <christian.bruel@st.com>
19638
19639         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
19640         msw_skip comparison.
19641
19642 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
19643
19644         PR c/35739
19645         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
19646         reg type.
19647
19648         PR tree-optimization/35899
19649         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
19650         rather than TREE_OPERAND.
19651
19652 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
19653
19654         PR target/35944
19655         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
19656         temporary registers.  Change operand predicate to general_operand.
19657         (remainderxf3): Ditto.
19658
19659 2008-04-16  Richard Guenther  <rguenther@suse.de>
19660
19661         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
19662         * tree-affine.c (aff_combination_expand): Look through some
19663         conversions.
19664
19665 2008-04-15  Doug Kwan  <dougkwan@google.com>
19666
19667         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
19668         for hex printing.
19669         * tree-pretty-print.c (dump_generic_node): Ditto.
19670         * final.c (output_addr_const): Ditto.
19671         * dwarf2out.c (output_cfi): Ditto.
19672         * c-pretty-print.c (pp_c_integer_constant): Ditto.
19673         * print-rtl.c (print_rtx): Ditto.
19674         * print-tree.c (print_node_brief, print_node): Ditto.
19675         * c-common.c (match_case_to_enum_1): Ditto.
19676         * sched-vis.c (print_value): Ditto.
19677         * config/i386/i386.c (print_operand): Cast to long unsigned int
19678         for hex printing.
19679
19680 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
19681         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
19682         MS Windows VirtualProtect function.
19683
19684 2008-04-15  Jan Hubicka  <jh@suse.cz>
19685
19686         * gengtype.c (write_root): Param_is argument is OK.
19687         * expr.c (expand_expr_real_1): Update call of get_exception_*.
19688         * function.h: Include varray.h
19689         (rtl_eh): New stucture based on except.c one.
19690         (call_site_record): New forward declaration and vector type.
19691         * calls.c (emit_call_1): Do not call
19692         note_current_region_may_contain_throw.
19693         * except.c (eh_status): Remove cur_region, try_region since they are
19694         unused.
19695         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
19696         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
19697         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
19698         Remove call_site_data_used, call_site_data_size.
19699         Turn call_site_record into vector in function.h.
19700         (note_current_region_may_contain_throw): Remove.
19701         (get_exception_pointer, get_exception_filter): Do not take struct
19702         function argument; update.
19703         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
19704         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
19705         build_post_landing_pads, dw2_build_landing_pads,
19706         sjlj_assign_call_site_values, sjlj_mark_call_sites,
19707         sjlj_emit_function_enter, sjlj_emit_function_enter,
19708         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
19709         sjlj_build_landing_pads, finish_eh_generation,
19710         remove_exception_handler_label, remove_eh_handler,
19711         maybe_remove_eh_handler, add_reachable_handler,
19712         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
19713         add_action_record, collect_one_action_chain, add_call_site,
19714         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
19715         sjlj_output_call_site_table, output_function_exception_table,
19716         * except.h (note_current_region_may_contain_throw): Remove
19717         (get_exception_pointer, get_exception_filter): Do not take struct
19718         function argument.
19719         * Makefile.in (GTFILES): Put varargs before struct function.
19720
19721 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19722
19723         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
19724         punt for STRING_CST.
19725         (get_constraint_for): Deal with STRING_CST here instead.
19726
19727 2008-04-15  Richard Guenther  <rguenther@suse.de>
19728
19729         * tree-ssa-propagate.c (substitute_and_fold): Substitute
19730         statements in a basic-block with a backward walk.  Do not
19731         substitute into dead statements but instead remove those.
19732
19733 2008-04-15  Richard Guenther  <rguenther@suse.de>
19734
19735         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
19736         to zero, thus disable creation of SFTs.
19737
19738 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19739
19740         * tree-predcom.c (suitable_reference_p): Return false if the
19741         reference can throw.
19742
19743 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
19744
19745         PR c/35751
19746         * c-decl.c (finish_decl): If extern or static var has variable
19747         size, set TREE_TYPE (decl) to error_mark_node.
19748
19749 2008-04-15  Rafael Espíndola  <espindola@google.com>
19750
19751         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
19752         variable arg1.
19753
19754 2008-04-15  Richard Guenther  <rguenther@suse.de>
19755
19756         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
19757         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
19758         (visit_reference_op_load): Do walk vuse-vdef chains on
19759         vn_reference_lookup.
19760         (visit_reference_op_store): But do not here.
19761         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
19762         vn_reference_lookup.
19763         (vn_lookup_with_vuses): But do so here.
19764
19765 2008-04-14  Ian Lance Taylor  <iant@google.com>
19766
19767         * fold-const.c (fold_overflow_warning): Remove assertion.
19768
19769 2008-04-15  Ben Elliston  <bje@au.ibm.com>
19770
19771         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
19772         temp1 local variables.
19773
19774 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
19775
19776         PR target/35661
19777         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
19778         ".text.unlikely" section as executable.
19779
19780 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
19781
19782         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19783         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
19784         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
19785         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
19786         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
19787         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
19788         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
19789
19790 2008-04-14  Ian Lance Taylor  <iant@google.com>
19791
19792         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
19793         * fold-const.c (fold_comparison): If appropriate, test
19794         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
19795         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
19796         reassociating a pointer type.
19797         * doc/invoke.texi (Optimize Options): Document that
19798         -fstrict-overflow applies to pointer wraparound.
19799
19800 2008-04-13  Jan Hubicka  <jh@suse.cz>
19801
19802         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
19803
19804 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
19805
19806         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
19807         we are going to "save the world".
19808
19809 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
19810
19811         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
19812         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
19813         operand 0 constraint, not "=".
19814
19815 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
19816
19817         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
19818
19819 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
19822         of size of positions_needed * CHAR_BIT.
19823
19824 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
19825
19826         PR middle-end/35897
19827         * dse.c (store_info): Change positions_needed to unsigned
19828         HOST_WIDE_INT.
19829         (lowpart_bitmask): New.
19830         (record_store): Cast to unsigned HOST_WIDE_INT for
19831         positions_needed.  Assert width <= size of positions_needed *
19832         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
19833         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
19834         lowpart_bitmask to set mask.
19835
19836 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
19837
19838         * config/bfin/constraints.md: New file.
19839         * config/bfin/bfin.md: Include it.
19840         (adddi3): Use satisfies_constraint functions instead of the old macros.
19841         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
19842         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
19843         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
19844         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
19845         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
19846         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
19847         EXTRA_CONSTRAINT): Delete.
19848         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
19849         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
19850         of the old macros.
19851         * config/bfin/bfin.c: Include "tm-constrs.h".
19852         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
19853         Use satisfies_constraint functions instead of the old macros.
19854         * doc/md.texi (Blackfin Constraints): Update file name reference.
19855
19856 2008-04-11  Richard Guenther  <rguenther@suse.de>
19857
19858         PR tree-optimization/35869
19859         * tree-vrp.c (execute_vrp): Move switch statement update after
19860         jump threading.  Schedule another cfg cleanup run.
19861
19862 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
19863
19864         PR c/35744
19865         * attribs.c (decl_attributes): Return early on errorneous node.
19866
19867 2008-04-10  Oleg Ryjkov  <olegr@google.com>
19868
19869         * tree.h (struct tree_base): Added a new flag default_def_flag.
19870         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
19871
19872 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
19873
19874         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
19875
19876 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19877
19878         PR target/35768
19879         * pa.md: Define mode iterator P.  Define mode attribute dwc.
19880         (dcacheflush): Update pattern to use iterator P and attribute dwc.
19881         (icacheflush): Likewise.
19882         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
19883         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
19884
19885 2008-04-11  Ben Elliston  <bje@au.ibm.com>
19886
19887         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
19888
19889 2008-04-10  Rafael Espíndola  <espindola@google.com>
19890
19891         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
19892         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
19893         (extract_range_from_expr): The same.
19894
19895 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
19896
19897         * config/mips/mips.md (GPR2): New mode iterator.
19898         (seq): Add comment.
19899         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
19900         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
19901         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
19902         Rewrite these to take two modes, the mode of comparison and the
19903         mode of the destination.
19904         * config/mips/mips.c (mips_expand_scc): Instead of having
19905         paradoxical subreg as destination, expand "narrowing" scc if mode
19906         of comparison is SI and target is requested in DI mode.
19907         (mips_emit_int_order_test): Update comment.  Make mode of
19908         comparison match CMP0 rather than TARGET.  When creating inverse
19909         target use mode of TARGET.
19910
19911 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
19912
19913         * gcov-dump.c (tag_summary): Only print summaries for the first
19914         GCOV_COUNTERS_SUMMABLE counters.
19915
19916 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
19917
19918         * config/i386/i386.md (absneg): New code iterator.
19919         (absnegprefix): New code attribute.
19920         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
19921         patterns using absneg code iterator.
19922         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
19923         using absneg code iterator.
19924         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
19925         *neg<mode>2 patterns using absneg code iterator.
19926         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
19927         *negextendsfdf2 patterns using absneg code iterator.
19928         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
19929         *negextendsfxf2 patterns using absneg code iterator.
19930         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
19931         *negextendsfdf2 patterns using absneg code iterator.
19932         * config/i386/sse.md (<code><mode>2): Macroize expander from
19933         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
19934
19935 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
19936
19937         * config/s390/s390.h: Remove the remains of the recent search
19938         & replace action of current_function_outgoing_args_size.
19939
19940 2008-04-10  Ira Rosen  <irar@il.ibm.com>
19941
19942         PR tree-optimization/35821
19943         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
19944         NEW_STMT_LIST is not NULL.
19945
19946 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
19947
19948         PR libstdc++/35597
19949         * toplev.c (process_options): Remove -ffunction-sections debugging
19950         warning.
19951
19952 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
19953
19954         PR middle-end/PR28690
19955         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
19956         than gen_rtx_fmt_ee to perform more canonicalizations.
19957
19958 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19959
19960         PR driver/35665
19961         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
19962
19963 2008-04-09  Richard Guenther  <rguenther@suse.de>
19964
19965         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
19966         (dump_function_to_file): Dump function arguments with types.
19967
19968 2008-04-08  Richard Guenther  <rguenther@suse.de>
19969
19970         * fold-const.c (fold_widened_comparison): Do not allow
19971         sign-changes that change the result.
19972
19973 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
19974
19975         PR target/35839
19976         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
19977         kinds of indirect references.
19978
19979 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
19980
19981         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
19982         GNU Fortran language string.
19983
19984 2008-04-08  Rafael Espíndola  <espindola@google.com>
19985
19986         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
19987         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
19988         * tree.h (tree_call_nonnegative_warnv_p): New.
19989
19990 2008-04-08  Jan Hubicka  <jh@suse.cz>
19991
19992         * function.c (free_after_compilation): Clear out regno_reg_rtx
19993         pointer.
19994
19995 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
19996
19997         Revert
19998         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
19999
20000         PR middle-end/PR28690
20001         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
20002         same precedence as REG_POINTER and MEM_POINTER operands.
20003
20004 2008-04-08  Richard Guenther  <rguenther@suse.de>
20005
20006         PR middle-end/35834
20007         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
20008         for adding index to base.
20009
20010 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
20011
20012         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
20013         (MINGW_ENABLE_EXECUTE_STACK): New.
20014         (IN_LIBGCC2): For libgcc include windows.h file for
20015         function declarations.
20016
20017 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
20018
20019         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
20020         and tem2 if tem1 is not a REG or MULT.
20021
20022 2008-04-08  Jan Hubicka  <jh@suse.cz>
20023
20024         * function.h (incomming_args): Break out of struct function.
20025         (function_subsections): Break out of struct function.
20026         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
20027         return_rtx and hard_reg_initial_vals from struct function.
20028         Kill inl_max_label_num.
20029         (current_function_pops_args, current_function_args_info,
20030         current_function_args_size, current_function_args_size,
20031         current_function_pretend_args_size,
20032         current_function_outgoing_args_size,
20033         current_function_internal_arg_pointer, current_function_return_rtx):
20034         Kill compatibility accestor macros.
20035         * builtins.c (expand_builtin_apply_args_1): Update.
20036         (expand_builtin_next_arg): Update.
20037         * df-scan.c (df_get_call_refs): Update.
20038         * dbxout.c (dbxout_function_end): Update.
20039         * dwarf2out.c (dwarf2out_switch_text_section): Update.
20040         (output_line_info): Update.
20041         (secname_for_decl): Update.
20042         (dwarf2out_var_location): Update.
20043         * function.c (free_after_compilation): Update.
20044         (assign_parm_find_stack_rtl): Update.
20045         (assign_parms): Update.
20046         (expand_dummy_function_end): Update.
20047         (expand_function_end): Update.
20048         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
20049         (expand_call): Update.
20050         (emit_library_call_value_1): Update.
20051         (store_one_arg): Update.
20052         * varasm.c (initialize_cold_section_name): Update.
20053         (unlikely_text_section): Update.
20054         (unlikely_text_section_p): Update.
20055         (assemble_start_function): Update.
20056         (assemble_end_function): Update.
20057         (default_section_type_flags): Update.
20058         (switch_to_section): Update.
20059         * integrate.c (set_decl_abstract_flags): Update.
20060         (get_hard_reg_initial_val): Update.
20061         (has_hard_reg_initial_val): Update.
20062         (allocate_initial_values): Update.
20063         * resource.c (init_resource_info): Update.
20064         * config/alpha/alpha.c (NUM_ARGS): Update.
20065         (direct_return): Update.
20066         (alpha_va_start): Update.
20067         (alpha_sa_size): Update.
20068         (alpha_initial_elimination_offset): Update.
20069         (alpha_expand_prologue): Update.
20070         (alpha_start_function): Update.
20071         (alpha_expand_epilogue): Update.
20072         (unicosmk_initial_elimination_offset):
20073         * config/alpha/alpha.md (call expander): Update.
20074         * config/s390/s390.c (s390_register_info): Update.
20075         (s390_register_info): Update.
20076         (s390_frame_info): Update.
20077         (s390_initial_elimination_offset): Update.
20078         (s390_build_builtin_va_list): Update.
20079         (s390_va_start): Update.
20080         * config/spu/spu.c (direct_return): Update.
20081         (spu_expand_prologue): Update.
20082         (spu_initial_elimination_offset): Update.
20083         (spu_build_builtin_va_list): Update.
20084         (spu_va_start): Update.
20085         * config/sparc/sparc.c (sparc_init_modes): Update.
20086         (sparc_compute_frame_size): Update.
20087         (function_value): Update.
20088         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
20089         * config/i386/i386.md (return expander): Update.
20090         * config/i386/i386.c (ix86_va_start): Update.
20091         (ix86_can_use_return_insn_p): Update.
20092         (ix86_compute_frame_layout): Update.
20093         (ix86_expand_epilogue): Update.
20094         * config/sh/sh.c (output_stack_adjust): Update.
20095         (calc_live_regs): Update.
20096         (sh_expand_prologue): Update.
20097         (sh_builtin_saveregs): Update.
20098         (sh_va_start): Update.
20099         (initial_elimination_offset): Update.
20100         (sh_allocate_initial_value): Update.
20101         (sh_function_ok_for_sibcall): Update.
20102         (sh_get_pr_initial_val): Update.
20103         * config/sh/sh.md (return expander): Update.
20104         * config/avr/avr.c (frame_pointer_required_p): UPdate.
20105         * config/crx/crx.c (crx_compute_frame): UPdate.
20106         (crx_initial_elimination_offset): UPdate.
20107         * config/xtensa/xtensa.c (compute_frame_size): Update
20108         (xtensa_builtin_saveregs): Update.
20109         (xtensa_va_start): Update.
20110         (order_regs_for_local_alloc): Update.
20111         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
20112         (xstormy16_expand_builtin_va_start): Update.
20113         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
20114         * config/m68hc11/m68hc11.md (return expanders): Update.
20115         * config/m68hc11/m68hc11.c (expand_prologue): Update.
20116         (expand_epilogue): Update.
20117         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
20118         (cris_simple_epilogue): Update.
20119         (cris_expand_prologue): Update.
20120         (cris_expand_epilogue): Update.
20121         * config/iq2000/iq2000.c (iq2000_va_start): Update.
20122         (compute_frame_size): Update.
20123         * config/mt/mt.c (mt_compute_frame_size): Update.
20124         * config/mn10300/mn10300.c (expand_prologue): Update.
20125         (expand_epilogue): Update.
20126         (initial_offset): Update.
20127         (mn10300_builtin_saveregs):
20128         * config/mn10300/mn10300.md (return expander): Update.
20129         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20130         (ia64_initial_elimination_offset): Update.
20131         (ia64_initial_elimination_offset): Update.
20132         (ia64_expand_prologue): Update.
20133         * config/m68k/m68k.md (return expander): Update.
20134         * config/rs6000/rs6000.c (rs6000_va_start): Update.
20135         (rs6000_stack_info): Update.
20136         * config/mcore/mcore.c (layout_mcore_frame): Update.
20137         (mcore_expand_prolog): Update.
20138         * config/arc/arc.c (arc_compute_frame_size): Update.
20139         * config/score/score3.c (score3_compute_frame_size): Update.
20140         * config/score/score7.c (score7_compute_frame_size): Update.
20141         * config/arm/arm.c (use_return_insn): Update.
20142         (thumb_find_work_register): Update.
20143         (arm_compute_save_reg_mask): Update.
20144         (arm_output_function_prologue): Update.
20145         (arm_output_epilogue): Update.
20146         (arm_size_return_regs): Update.
20147         (arm_get_frame_offsets): Update.
20148         (arm_expand_prologue): Update.
20149         (thumb_exit): Update.
20150         (thumb_unexpanded_epilogue): Update.
20151         (thumb1_output_function_prologue): Update.
20152         * config/pa/pa.md (return expander): Update.
20153         * config/pa/pa.c (compute_frame_size): Update.
20154         (hppa_builtin_saveregs): Update.
20155         * config/mips/mips.c (mips_va_start): Update.
20156         (mips16_build_function_stub): Update.
20157         (mips_compute_frame_info): Update.
20158         (mips_restore_gp): Update.
20159         (mips_output_function_prologue): Update.
20160         (mips_expand_prologue): Update.
20161         * config/v850/v850.c (compute_frame_size): Update.
20162         (expand_prologue): * config/mmix/mmix.c (along): update.
20163         (mmix_initial_elimination_offset): update.
20164         (mmix_reorg): update.
20165         (mmix_use_simple_return): update.
20166         (mmix_expand_prologue): update.
20167         (mmix_expand_epilogue): Update.
20168         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
20169         (emit_link_insn): Update.
20170
20171 2008-04-08  Anatoly Sokolov <aesok@post.ru>
20172
20173         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
20174         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
20175         instructions.
20176         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
20177         atmega103 device.
20178
20179 2008-04-07  Jan Hubicka  <jh@suse.cz>
20180
20181         * function.h (rtl): Rename to x_rtl.
20182         (crtl): New define.
20183         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
20184         frame_offset, stack_check_probe_note, arg_pointer_save_area,
20185         used_temp_slots avail_temp_slots, temp_slot_level,
20186         nonlocal_goto_handler_labels): Update accesstors.
20187         (rtl): New global variable.
20188         (struct function): Move some fileds to rtl_data.
20189         (get_arg_pointer_save_area): Update prototype.
20190         * builtins.c (expand_builtin_setjmp_receiver): Update call of
20191         get_arg_pointer_save_area.
20192         * expr.c (init_expr): Update
20193         * function.c (get_frame_size): Update
20194         (assign_stack_local): Update
20195         (expand_function_end): Update.
20196         (get_art_pointer_save_area): Update
20197         * function.h
20198         * emit-rtl.c (rtl): Declare.
20199         (regno_reg_rtx): Declare.
20200         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
20201         Update.
20202         (gen_reg_rtx): Update.
20203         * varasm.c (n_deferred_constatns): Update accestor.
20204         (init_varasm_status): Do not allocate varasm_status.
20205         (force_const_mem, get_pool_size, output_constant_pool): Update.
20206         * stmt.c (force_label_rtx): Do not use x_ prefixes.
20207         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
20208         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
20209         * sparc/sparc.h (INIT_EXPANDERS): Update.
20210         * ia64/ia64.h (INIT_EXPANDERS): Update.
20211
20212 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
20213
20214         * reload.c (push_secondary_reload): Add missing break to for loop.
20215
20216 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
20217
20218         PR middle-end/PR28690
20219         * rtlanal.c: Update copyright years.
20220         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
20221         as REG_POINTER and MEM_POINTER operands.
20222         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
20223         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
20224         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
20225         * gcse.c: Update copyright years.
20226         (pre_delete): Call gen_reg_rtx_and_attrs.
20227         (hoist_code): Likewise.
20228         (build_store_vectors): Likewise.
20229         (delete_store): Likewise.
20230         * loop-invariant.c (move_invariant_reg): Likewise.
20231         Update copyright years.
20232
20233 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
20234
20235         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
20236         control string instead of quoted.
20237
20238 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
20239
20240         * doc/rtl.texi: Rewrite of subreg section.
20241
20242 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
20243
20244         PR/35842
20245         * config/i386/i386.c (legitimize_pic_address): Add treating
20246         of dllimport SYM_REF's.
20247         (legitimize_dllimport_symbol): Add prototype.
20248
20249 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20250
20251         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
20252         reference in constructor with non self-referential type.
20253
20254 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20255
20256         Removal of Return with Depressed Stack Pointer support
20257         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
20258         (ECF_SP_DEPRESSED): Likewise.
20259         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
20260         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
20261         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20262         (expand_call): Do not test ECF_SP_DEPRESSED.
20263         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20264         * function.c (keep_stack_depressed): Delete.
20265         (handle_epilogue_set): Likewise.
20266         (update_epilogue_consts): Likewise.
20267         (emit_equiv_load): Likewise.
20268         (thread_prologue_and_epilogue_insns): Remove support for Return with
20269         Depressed Stack Pointer.
20270         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
20271
20272 2008-04-06  Richard Guenther  <rguenther@suse.de>
20273
20274         PR tree-optimization/35400
20275         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
20276         information from SSA_NAMEs.
20277
20278 2008-04-06  Anatoly Sokolov <aesok@post.ru>
20279
20280         * config/avr/avr.h (avr_mega_p): Remove declaration.
20281         (AVR_MEGA): Remove macro.
20282         * config/avr/avr.c (avr_mega_p): Remove variable.
20283         (avr_override_options): Remove inicializion of avr_mega_p.
20284         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
20285         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
20286         (avr_jump_mode): (Ditto.).
20287         (avr_output_progmem_section_asm_op): (Ditto.).
20288         (avr_asm_init_sections): (Ditto.).
20289         (avr_asm_init_sections): (Ditto.).
20290         (avr_rtx_costs): (Ditto.).
20291         * config/avr/avr.md: (Ditto.).
20292         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
20293         '__AVR_MEGA__'.
20294
20295 2008-04-06  Richard Guenther  <rguenther@suse.de>
20296
20297         PR tree-optimization/35842
20298         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
20299         is_gimple_invariant_address.
20300
20301 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20302
20303         * gcc.c (default_compilers): Sync Fortran extensions list with
20304         that in fortran/lang-specs.h.
20305         * doc/invoke.texi: Likewise.
20306         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
20307         * dwarf2out.c (gen_compile_unit_die): Likewise.
20308
20309 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
20310
20311         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
20312
20313 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
20314
20315         PR target/12329
20316         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
20317         attribute is used for nested functions.
20318
20319 2008-04-05  Jan Hubicka  <jh@suse.cz>
20320
20321         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
20322
20323         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
20324         letter argument.
20325         (dump_files): Update.
20326         (enable_rtl_dump_file): Do not accept letter argument.
20327         * tree-pass.h (dump_file_info): Remove letter argument.
20328         * toplev.c (decode_d_option): Update -da handling.
20329         * toplev.h (enable_rtl_dump_file): Update prototype.
20330         * passes.c (register_one_dump_file): Do not accept IPA argument; work
20331         it out based on pass type.
20332         (register_dump_files_1): Likewise.
20333         (init_optimization_passes): Update register_one_dump_file calls.
20334         (execute_one_pass): Sanity check that IPA passes are called at IPA
20335         level and RTL passes at RTL level.
20336         (execute_pass_list): IPA pass can not be after or subpass of
20337         GIMPLE/RTL pass.
20338         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
20339         disallov RTL subpasses of IPA subpasses.
20340
20341 2008-04-05  Ben Elliston  <bje@au.ibm.com>
20342
20343         * tree-cfg.c (need_fake_edge_p): Return false for calls to
20344         builtins that return exactly once and do not throw. Cache call to
20345         call_expr_flags.
20346
20347 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
20348
20349         PR rtl-optimization/34916
20350         PR middle-end/35519
20351         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
20352         between instruction pairs.
20353
20354 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
20355
20356         * doc/invoke.texi: Document -mbitops for SH.
20357         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
20358         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
20359         * config/sh/sh.c (print_operand): Add %t operand code.
20360         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
20361         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
20362         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
20363         (extendqihi2): Likewise.
20364         (movqi_i): Likewise.
20365         (insv): Use bset, bclr and bst instructions for SH2A if possible.
20366         (extv): Use bld instruction for SH2A if possible.
20367         (extzv): Likewise.
20368         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
20369         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
20370         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
20371         (bset.b, bclr.b): Define peepholes.
20372         * config/sh/sh.opt (mbitops): New option.
20373
20374 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
20375
20376         PR target/35620
20377         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
20378         and view convert expression.
20379
20380 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
20381
20382         PR target/35364
20383         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
20384
20385 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
20386
20387         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
20388
20389         * config/i386/cpuid.h (bit_AES): New.
20390         (bit_PCLMUL): Likewise.
20391
20392         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
20393         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
20394         SSE2 if AES or PCLMUL is enabled.
20395         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
20396         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
20397         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
20398         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
20399         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
20400         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
20401         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
20402         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
20403         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
20404         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
20405         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
20406         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
20407         __builtin_ia32_aeskeygenassist128 and
20408         __builtin_ia32_pclmulqdq128.
20409         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
20410         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
20411         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
20412
20413         * config/i386/i386.h (TARGET_AES): New.
20414         (TARGET_PCLMUL): Likewise.
20415         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
20416
20417         * config/i386/i386.md (UNSPEC_AESENC): New.
20418         (UNSPEC_AESENCLAST): Likewise.
20419         (UNSPEC_AESDEC): Likewise.
20420         (UNSPEC_AESDECLAST): Likewise.
20421         (UNSPEC_AESIMC): Likewise.
20422         (UNSPEC_AESKEYGENASSIST): Likewise.
20423         (UNSPEC_PCLMUL): Likewise.
20424
20425         * config/i386/i386.opt (maes): New.
20426         (mpclmul): Likewise.
20427
20428         * config/i386/sse.md (aesenc): New pattern.
20429         (aesenclast): Likewise.
20430         (aesdec): Likewise.
20431         (aesdeclast): Likewise.
20432         (aesimc): Likewise.
20433         (aeskeygenassist): Likewise.
20434         (pclmulqdq): Likewise.
20435
20436         * config/i386/wmmintrin.h: New.
20437
20438         * doc/extend.texi: Document AES and PCLMUL built-in function.
20439
20440         * doc/invoke.texi: Document -maes and -mpclmul.
20441
20442 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
20443
20444         * function.c (free_after_parsing): Replace with
20445         cxx_push_function_context from C++ front-end.
20446         (allocate_struct_function): Don't call langhook.
20447         * langhooks.h (struct lang_hooks_for_functions): Delete.
20448         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
20449         member "function".
20450         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
20451         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
20452         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
20453         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
20454         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
20455         remove LANG_HOOKS_FUNCTION_INITIALIZER.
20456         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
20457
20458         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
20459         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
20460
20461 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
20462
20463         PR c/35440
20464         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
20465         for all types.
20466
20467 2008-04-04  Richard Guenther  <rguenther@suse.de>
20468
20469         PR middle-end/35823
20470         * fold-const.c (optimize_minmax_comparison): Use the correct
20471         type for the constant in the simplified comparison.
20472
20473 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
20474
20475         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
20476         Pass L2 size as "--param l2-cache-size" to the compiler.
20477         (decode_l2_cache): New function to decode L2 cache parameters using
20478         0x8000006 extended cpuid function.
20479         (detect_caches_amd): Determine parameters of L2 cache using
20480         decode_l2_caches function.
20481         (decode_caches_intel): Decode L2 cache parameters.
20482         (detect_caches_intel): Determine L2 cache parameters using
20483         decode_caches_intel and decode_l2_caches functions.
20484
20485 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
20486
20487         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
20488         secondary input reload for subword loads from the constant pool.
20489
20490 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
20491
20492         PR target/35713
20493         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
20494           constants of the appropriate size for runtime calculations.
20495
20496         PR c/35712
20497         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
20498           decimal-float literal constant zero.
20499
20500 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
20501
20502         PR c/35738
20503         * c-parser.c (c_parser_omp_atomic): Call
20504         default_function_array_conversion on the RHS.
20505
20506         PR middle-end/35818
20507         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
20508         call is_variable_sized if decl has incomplete type.
20509
20510 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
20511
20512         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
20513
20514 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
20515
20516         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
20517         iterators.
20518         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
20519         (sgt<u>): Merge sgt and sgtu into new expander.
20520         (sgt, sgtu): Remove expanders.
20521         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
20522         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
20523         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
20524         *sgtu_<mode>_mips16 into new pattern.
20525         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
20526         (sge<u>): Merge sge and sgeu into new expander.
20527         (sge, sgeu): Remove expanders.
20528         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
20529         new pattern.
20530         (*sge_<mode>, second *sge_<mode>): Remove patterns.
20531         (slt<u>): Merge slt and sltu into new expander.
20532         (slt, sltu): Remove expanders.
20533         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
20534         (*slt_<mode>, *sltu_<mode>): Remove patterns.
20535         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
20536         *sltu_<mode>_mips16 into new pattern.
20537         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
20538         (sle<u>): Merge sle and sleu into new expander.
20539         (sle, sleu): Remove expanders.
20540         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
20541         (*sle_<mode>, *sleu_<mode>): Remove patterns.
20542         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
20543         *sleu_<mode>_mips16 into new pattern.
20544         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
20545
20546 2008-04-03  Jan Hubicka  <jh@suse.cz>
20547
20548         PR tree-optimization/35795
20549         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
20550         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
20551         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
20552         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
20553         * score/score3.c (score3_output_mi_thunk): Likewise.
20554         * score/score7.c (score7_output_mi_thunk): Likewise.
20555         * mips/mips.c (mips_output_mi_thunk): Likewise.
20556
20557 2008-04-03  Richard Guenther  <rguenther@suse.de>
20558
20559         * tree-vrp.c (extract_range_from_unary_expr): Handle all
20560         conversions.  Simplify code.
20561
20562 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
20563
20564         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
20565
20566 2008-04-03  Tom Tromey  <tromey@redhat.com>
20567             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20568
20569         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20570         * config/bfin/t-bfin-linux (generated_files): Add
20571         linux-sysroot-suffix.h.
20572         * doc/install.texi (Prerequisites): Require make 3.80.
20573         * doc/sourcebuild.texi (Front End Directory): Document new
20574         variable.
20575         * Makefile.in (generated_files): New variable.
20576         (ALL_HOST_OBJS): New variable.
20577         ($(ALL_HOST_OBJS)): New target.
20578
20579 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
20580
20581         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
20582         (remap_block): Call id->transform_lang_insert_block instead
20583         of langhook.
20584         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
20585         Set id.transform_lang_insert_block to NULL.
20586         (clone_body): Move to cp/optimize.c
20587         * tree-inline.h (struct copy_body_data): Change
20588         transform_lang_insert_block to function pointer.
20589         (copy_generic_body, copy_decl_no_change): Export.
20590         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
20591         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
20592         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
20593
20594         * c-tree.h (insert_block): Kill.
20595         * c-decl.c (insert_block): Kill.
20596
20597 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
20598
20599         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
20600         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
20601         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
20602         argument.
20603         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
20604         argument, call {push,pop}_function_context from here.
20605         * c-parser.c: Use c_{push,pop}_function_context.
20606
20607         * function.c (push_function_context_to): Move meat ...
20608         (push_function_context): ... here.  Simplify.
20609         * function.c (pop_function_context_from): Move meat ...
20610         (pop_function_context): ... here.  Simplify.
20611         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
20612         leave_nested).
20613         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
20614         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
20615         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
20616         * tree.h (push_function_context_to, pop_function_context_from): Remove.
20617
20618 2008-04-03  Ben Elliston  <bje@au.ibm.com>
20619
20620         * expmed.c (extract_force_align_mem_bit_field): Remove.
20621
20622 2008-04-03  Richard Guenther  <rguenther@suse.de>
20623
20624         PR middle-end/35800
20625         * expr.h (try_casesi): Adjust prototype.
20626         * expr.c (try_casesi): Take fallback label as extra parameter.
20627         Use that for gen_casesi if default_label is NULL.
20628         * stmt.c (expand_case): Pass fallback label to try_casesi,
20629         make sure to fill gaps with a fallback label if default_label
20630         is not present.
20631
20632 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
20633
20634         PR target/35801
20635         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
20636
20637 2008-04-03  Ben Elliston  <bje@au.ibm.com>
20638
20639         * expmed.c (extract_split_bit_field): Remove if (0) code.
20640         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
20641         (do_ds_constraint): Likewise.
20642
20643 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
20644
20645         * doc/cppopts.texi (-dU): Document.
20646         * c-common.h (flag_dump_macros): Update comment.
20647         * c-opts.c (handle_OPT_d): Handle -dU.
20648         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
20649         dump_queued_macros, cb_used_define, cb_used_undef): New.
20650         (init_pp_output): Handle -dU.
20651         (cb_line_change): Call dump_queued_macros.
20652         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
20653
20654 2008-04-02  Anatoly Sokolov <aesok@post.ru>
20655
20656         * config/avr/predicates.md (io_address_operand): New predicate.
20657         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
20658         * config/avr/avr.c (avr_io_address_p): Remove function.
20659         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
20660         'avr_io_address_p' function.
20661         (out_movhi_r_mr): (Ditto.).
20662         (out_movqi_mr_r): (Ditto.).
20663         (out_movhi_mr_r): (Ditto.).
20664         (avr_address_cost): (Ditto.).
20665
20666 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
20667
20668         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
20669         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
20670         in 32bit mode when XMM registers are available to avoid store
20671         forwarding stalls.
20672         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
20673         corresponding post-reload splitters.
20674
20675 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
20676
20677         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
20678         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
20679         __builtin_ia32_roundss.
20680         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
20681         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
20682         __builtin_ia32_roundss.
20683         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
20684         IX86_BUILTIN_SHUFPD here.
20685
20686 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
20687
20688         * config/i386/i386.md (plogic): New.
20689         (plogicprefix): Likewise.
20690
20691         * config/i386/mmx.md (mmx_<code><mode>3): New.
20692         (mmx_and<mode>3): Removed.
20693         (mmx_ior<mode>3): Likewise.
20694         (mmx_xor<mode>3): Likewise.
20695
20696         * config/i386/sse.md (<code><mode>3): New.
20697         (*<code><mode>3): Likewise.
20698         (*<code><mode>3): Likewise.
20699         (<code><mode>3): Likewise.
20700         (*sse_<code><mode>3): Likewise.
20701         (*sse2_<code><mode>3): Likewise.
20702         (<code>tf3): Likewise.
20703         (*<code>tf3): Likewise.
20704         (and<mode>3): Likewise.
20705         (*and<mode>3): Likewise.
20706         (ior<mode>3): Removed.
20707         (*ior<mode>3): Likewise.
20708         (xor<mode>3): Likewise.
20709         (*xor<mode>3): Likewise.
20710         (*and<mode>3): Likewise.
20711         (*ior<mode>3): Likewise.
20712         (*xor<mode>3): Likewise.
20713         (and<mode>3): Likewise.
20714         (*sse_and<mode>3): Likewise.
20715         (*sse2_and<mode>3): Likewise.
20716         (andtf3): Likewise.
20717         (*andtf3): Likewise.
20718         (ior<mode>3): Likewise.
20719         (*sse_ior<mode>3): Likewise.
20720         (*sse2_ior<mode>3): Likewise.
20721         (iortf3): Likewise.
20722         (*iortf3): Likewise.
20723         (xor<mode>3): Likewise.
20724         (*sse_xor<mode>3): Likewise.
20725         (*sse2_xor<mode>3): Likewise.
20726         (xortf3): Likewise.
20727         (*xortf3): Likewise.
20728
20729 2008-04-02  Richard Guenther  <rguenther@suse.de>
20730
20731         PR tree-optimization/14495
20732         PR tree-optimization/34793
20733         * tree-vrp.c (struct switch_update): New structure.
20734         (to_remove_edges, to_update_switch_stmts): New VECs.
20735         (simplify_switch_using_ranges): New function.  Remove not taken
20736         case labels and edges.
20737         (simplify_stmt_using_ranges): Call it.
20738         (identify_jump_threads): Mark edges we have queued for removal
20739         so we don't thread them.
20740         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
20741         case label vector.
20742         * tree-cfg.c (group_case_labels): Deal with missing default label.
20743         (tree_verify_flow_info): Allow missing default label.
20744         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
20745         (emit_case_nodes): Likewise.
20746         (expand_case): Do not rely on the default label to be present.
20747         * expr.c (try_casesi): Deal with NULL default_label.
20748         (do_tablejump): Likewise.
20749
20750 2008-04-02  Richard Guenther  <rguenther@suse.de>
20751
20752         PR tree-optimization/14495
20753         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
20754         SWITCH_EXPR here ...
20755         (vrp_visit_switch_stmt): ... but here (new function).
20756         (find_case_label_index): New helper function.
20757         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
20758
20759 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20760
20761         * fwprop.c: Fix ISO-C99ism.
20762
20763 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20764
20765         PR bootstrap/35752
20766         * Makefile.in (objdir): Set it here.
20767         * configure.ac: Not here.  Find dynamic linker characteristics.
20768         * exec-tool.in: Use them.
20769         * aclocal.m4: Regenerate.
20770         * configure: Regenerate.
20771
20772 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20773
20774         * expr.c (expand_var): Delete it.
20775         * expr.h (expand_var): Delete prototype.
20776         * function.c (expand_function_start): Use expand_decl instead.
20777         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
20778         langhook.
20779
20780 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
20781
20782         PR rtl-optimization/35542
20783         * fwprop.c (forward_propagate_and_simplify): Replace
20784         loc_reg_mentioned_in_p with reg_mentioned_p.
20785
20786 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
20787
20788         PR rtl-optimization/35281
20789         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
20790         (propagate_rtx_1): Handle PR_HANDLE_MEM.
20791         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
20792         (varying_mem_p): Move above propagate_rtx.
20793         (all_uses_available_at): Do not check MEMs.
20794
20795 2008-04-02  Rafael Espíndola  <espindola@google.com>
20796
20797         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
20798         (register_edge_assert_for_2): Split the cond argument.
20799         (register_edge_assert_for_1): Adjust for the change in
20800         register_edge_assert_for_2.
20801         (register_edge_assert_for): Split the cond argument.
20802         (find_switch_asserts): Adjust for the change in
20803         register_edge_assert_for.
20804
20805 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
20806
20807         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
20808         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
20809         offsets for 64-bit mingw.
20810         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
20811         abi for x86_64-pc-mingw.
20812
20813 2008-04-02  Richard Guenther  <rguenther@suse.de>
20814
20815         * tree-vrp.c (extract_range_from_assert): Make sure to not
20816         produce range min/max with TREE_OVERFOW set.
20817         If merging a anti-range and a range keep the anti-range if
20818         the range covers all values of the type.
20819         (register_edge_assert_for_2): Only allow sign-changing
20820         conversions in detecting canonical range checks.  Also
20821         register an assert for the unsigned name if useful.
20822
20823         PR tree-optimization/35787
20824         * tree-vrp.c (vrp_val_max): New function.
20825         (vrp_val_min): Likewise.
20826         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
20827         (vrp_val_is_min): Likewise.
20828         (supports_overflow_infinity): Use vrp_val_{min,max}.
20829         (negative_overflow_infinity): Likewise.
20830         (positive_overflow_infinity): Likewise.
20831         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
20832         (is_positive_overflow_infinity): Likewise.
20833         (is_overflow_infinity): Likewise.
20834         (avoid_overflow_infinity): Use vrp_val_{min,max} and
20835         vrp_val_is_{min,max}.
20836         (set_and_canonicalize_value_range): Canonicalize anti-ranges
20837         to ranges if possible.  Avoid empty ranges.
20838
20839 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20840
20841         PR middle-end/35705
20842         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
20843         the expression is a function address.
20844
20845 2008-04-01  George Helffrich  <george@gcc.gnu.org>
20846
20847         PR fortran/35154, fortran/23057
20848         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
20849         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
20850         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
20851         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
20852         in common.
20853         (dbxout_syms): Check for COMMON-based symbol and wrap in
20854         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
20855         in bracket for efficiency.
20856
20857         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
20858         using DW_TAG_common_block + member offset.
20859         (add_pubname_string): New function.
20860         (dw_expand_expr): New function to find block name and offset for
20861         COMMON var.
20862         (common_check): New function to check whether symbol in Fortran COMMON.
20863         (gen_variable_die): If COMMON, use DW_TAG_common_block.
20864
20865 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
20866
20867         PR c/35436
20868         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
20869
20870 2008-04-02  Ben Elliston  <bje@au.ibm.com>
20871
20872         * config/v850/v850.md (casesi): Remove if (0) code.
20873         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20874         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
20875
20876 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
20877
20878         * config/i386/i386.md (rex64suffix): New mode attribute.
20879         (floathi<mode>2): Disable expander for SSE math.
20880         (*floathi<mode>2_1): New insn insn_and_split pattern.
20881         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
20882         corresponding post-reload splitters.
20883         (*floathi<mode>2_i387): New macroized insn pattern.
20884         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
20885         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
20886         insn_and_split pattern.
20887         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
20888         New macroized instruction patterns and corresponding post-reload
20889         splitters.
20890         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
20891         and corresponding post-reload splitters.
20892         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
20893         New macroized instruction patterns.
20894         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
20895         macroized instruction patterns and corresponding post-reload splitters.
20896         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
20897         corresponding post-reload splitters.
20898         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
20899         New macroized instruction patterns.
20900         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
20901         corresponding post-reload splitters.
20902         (*floatsi<mode>2_i387): New macroized instruction patterns.
20903
20904 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
20905
20906         * config/i386/i386.md (smaxmin): New.
20907         (umaxmin): Likewise.
20908         (maxminiprefix): Likewise.
20909         (maxminfprefix): Likewise.
20910         (<code><mode>3): Likewise.
20911         (smin<mode>3): Removed.
20912         (smax<mode>3): Likewise.
20913
20914         * config/i386/mmx.md (mmx_<code>v2sf3): New.
20915         (mmx_<code>v4hi3): Likewise.
20916         (mmx_<code>v8qi3): Likewise.
20917         (mmx_smaxv2sf3): Removed.
20918         (mmx_sminv2sf3): Likewise.
20919         (mmx_umaxv8qi3): Likewise.
20920         (mmx_smaxv4hi3): Likewise.
20921         (mmx_uminv8qi3): Likewise.
20922         (mmx_sminv4hi3): Likewise.
20923
20924         * config/i386/sse.md (<addsub><mode>3): New.
20925         (*<addsub><mode>3): Likewise.
20926         (<sse>_vm<addsub><mode>3): Likewise.
20927         (<maxmin><mode>3): Likewise.
20928         (*<maxmin><mode>3_finite): Likewise.
20929         (*<maxmin><mode>3): Likewise.
20930         (<sse>_vm<maxmin><mode>3): Likewise.
20931         (sse3_h<addsub>v4sf3): Likewise.
20932         (sse3_h<addsub>v2df3): Likewise.
20933         (<maxmin>v16qi3): Likewise.
20934         (*<maxmin>v16qi3): Likewise.
20935         (<maxmin>v8hi3): Likewise.
20936         (*<maxmin>v8hi3): Likewise.
20937         (*sse4_1_<maxmin><mode>3): Likewise.
20938         (*sse4_1_<maxmin><mode>3): Likewise.
20939         (add<mode>3): Removed.
20940         (*add<mode>3): Likewise.
20941         (<sse>_vmadd<mode>3): Likewise.
20942         (sub<mode>3): Likewise.
20943         (*sub<mode>3): Likewise.
20944         (<sse>_vmsub<mode>3): Likewise.
20945         (smin<mode>3): Likewise.
20946         (*smin<mode>3_finite): Likewise.
20947         (*smin<mode>3): Likewise.
20948         (<sse>_vmsmin<mode>3): Likewise.
20949         (smax<mode>3): Likewise.
20950         (*smax<mode>3_finite): Likewise.
20951         (*smax<mode>3): Likewise.
20952         (<sse>_vmsmax<mode>3): Likewise.
20953         (sse3_haddv4sf3): Likewise.
20954         (sse3_haddv2df3): Likewise.
20955         (sse3_hsubv4sf3): Likewise.
20956         (sse3_hsubv2df3): Likewise.
20957         (umaxv16qi3): Likewise.
20958         (*umaxv16qi3): Likewise.
20959         (smaxv8hi3): Likewise.
20960         (*smaxv8hi3): Likewise.
20961         (*sse4_1_smax<mode>3): Likewise.
20962         (*sse4_1_umax<mode>3): Likewise.
20963         (uminv16qi3): Likewise.
20964         (*uminv16qi3): Likewise.
20965         (sminv8hi3): Likewise.
20966         (*sminv8hi3): Likewise.
20967         (*sse4_1_smin<mode>3): Likewise.
20968         (*sse4_1_umin<mode>3): Likewise.
20969
20970 2008-04-01  Rafael Espíndola  <espindola@google.com>
20971
20972         * tree-cfg.c (verify_expr): remove in_phi.
20973         (verify_stmt): Don't call walk_tree with verify_expr. Use
20974         is_gimple_min_invariant instead of is_gimple_val.
20975
20976 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
20977
20978         * doc/include/gpl_v3.texi: Update for manpage generation.
20979         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
20980         gpl.texi.
20981         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
20982         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
20983         gpl_v3.texi instead of gpl.texi.
20984         (gpl.pod): New.
20985
20986 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
20987
20988         PR pch/13675
20989         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
20990
20991 2008-04-01  Rafael Espíndola  <espindola@google.com>
20992
20993         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
20994         (extract_code_and_val_from_cond): Use
20995         extract_code_and_val_from_cond_with_ops.
20996
20997 2008-04-01  Jan Hubicka  <jh@suse.cz>
20998
20999         * function.c (free_after_compilation): Free epilogue_delay_list.
21000         (prepare_function_start): Assert that previous compilation was freed.
21001
21002 2008-04-01  Jan Hubicka  <jh@suse.cz>
21003             Jim Wilson  <wilson@tuliptree.org>
21004             Andreas Tobler <andreast@gcc.gnu.org>
21005
21006         PR middle-end/35781
21007         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
21008         rtl.emit instead cfun->emit.
21009         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
21010         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
21011
21012 2008-04-01  Ben Elliston  <bje@au.ibm.com>
21013
21014         * doc/c-tree.texi (Function Basics): Fix grammatical error.
21015
21016 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
21017
21018         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
21019         New options
21020         (fprofile-use): Add var flag_profile_use
21021         * coverage.c (coverage_begin_output): Do not open a gcno file for
21022         output only if -ftest-coverage is set.
21023         Do not add getpwd() to gcda file path.
21024         (build_gcov_info): Check the new flag
21025         flag_profile_datafile_relative_path.
21026         (coverage_init): Use profile_data_prefix.
21027         Read profile counter only if flag_profile_use is set.
21028         * opts.c (common_handle_option): New option fprofile-use=,
21029         fprofile-dir=, fprofile-generate=.
21030         * toplev.c (profile_data_prefix): New variable definition.
21031         * toplev.h (profile_data_prefix): New declaration.
21032         * doc/invoke.tex (Option Summary, Optimization Options):
21033         Add new options.
21034
21035 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
21036
21037         * varasm.c (output_constant_pool_1): In LABEL_REF check,
21038         use tmp consistently.
21039
21040         PR target/35695
21041         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
21042         * config/ia64/ia64.c (rtx_needs_barrier): Handle
21043         UNSPEC_FR_RECIP_APPROX_RES.
21044         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
21045
21046 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
21047
21048         PR c/35750
21049         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
21050
21051 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21052
21053         PR middle-end/30186
21054         * fold-const.c (fold_indirect_ref_1): Support accessing non first
21055         element of the vector via a pointer.
21056
21057 2008-03-31  Ian Lance Taylor  <iant@google.com>
21058
21059         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
21060
21061 2008-03-31  Jan Hubicka  <jh@suse.cz>
21062
21063         * builtins.c (expand_builtin_setjmp_receiver): Update call of
21064         get_arg_pointer_save_area.
21065         * expr.c (init_expr): Just clear out rtl.expr.
21066         * function.c (free_after_compilation): Clear out whole RTL structure.
21067         (get_func_frame_size): Merge into ...
21068         (get_frame_size): ... this one.
21069         (assign_stack_local_1): Merge into ...
21070         (assign_stack_local): ... this one.
21071         (expand_function_end): Update call of get_arg_pointer_save_area.
21072         (get_art_pointer_save_area): Remove cfun argument.
21073         * function.h (emit_status): regno_pointer_align does not need length
21074         attribute. Move x_regno_reg_rtx to ...
21075         (regno_reg_rtx): ... new global array.
21076         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
21077         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
21078         apply_args_value, forced_labels, stack_pointer_delta):
21079         Update accestors.
21080         (struct varasm_status): Move here from varasm.c
21081         (struct rtl_data): New. Move here some fields from struct function.
21082         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
21083         frame_offset, stack_check_probe_note, arg_pointer_save_area,
21084         used_temp_slots avail_temp_slots, temp_slot_level,
21085         nonlocal_goto_handler_labels): Update accesstors.
21086         (rtl): New global variable.
21087         (struct function): Move some fileds to rtl_data.
21088         (get_arg_pointer_save_area): Update prototype.
21089         * emit-rtl.c (rtl): Declare.
21090         (regno_reg_rtx): Declare.
21091         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
21092         Update.
21093         (gen_reg_rtx): Update.
21094         (init_virtual_regs): Do not tate emit_status argument.
21095         (init_emit): Do not allocate emit.
21096         * varasm.c (varasm_statuc): Move to function.h.
21097         (n_deferred_constatns): Update accestor.
21098         (init_varasm_status): Do not allocate varasm_status.
21099         (force_const_mem, get_pool_size, output_constant_pool): Update.
21100         * stmt.c (force_label_rtx): Do not use x_ prefixes.
21101         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
21102
21103 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
21104
21105         PR rtl-optimization/35729
21106         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
21107         references.
21108
21109 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
21110
21111         PR target/32000
21112         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
21113         load/store if memory is unaligned.
21114         (*movti_rex64): Likewise.
21115
21116         * config/i386/predicates.md (misaligned_operand): New.
21117
21118 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
21119
21120         PR tree-opt/35431
21121         * tree-ssa-phiopt.c (conditional_replacement): Return early for
21122         complex types.
21123
21124 2008-03-31  Jan Beulich  <jbeulich@novell.com>
21125
21126         * config/ia64/constraints.md: Add 'j' constraint.
21127         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
21128         (movdi_internal): Likewise.
21129
21130 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
21131
21132         PR c/35748
21133         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
21134
21135 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
21136
21137         PR target/35757
21138         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
21139         proper error message for the third argument on blendpd and
21140         blendps.
21141
21142         * config/i386/sse.md (blendbits): New.
21143         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
21144
21145 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
21146
21147         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
21148
21149 2008-03-30  Richard Guenther  <rguenther@suse.de>
21150
21151         PR middle-end/31023
21152         * fold-const.c (fold_sign_changed_comparison): Do leave
21153         conversions to base-types alone.
21154
21155 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21156
21157         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
21158         the link register if one altivec register is be saved.
21159
21160 2008-03-30  Ben Elliston  <bje@au.ibm.com>
21161
21162         * final.c (final_scan_insn): Remove if (0) code.
21163
21164 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
21165
21166         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
21167
21168 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21169
21170         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
21171         of V4SFmode to ix86_binary_operator_ok.
21172
21173 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
21174
21175         * config/i386/i386.c (override_options): Initialize
21176         ix86_veclib_handler to ix86_veclibabi_svml when
21177         -mveclibabi=svml is used.
21178         (ix86_veclibabi_svml): New function for SVML ABI style
21179         vectorization support.
21180         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
21181
21182 2008-03-28  Rafael Espíndola  <espindola@google.com>
21183
21184         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
21185         (tree_binary_nonnegative_warnv_p): Make it public.
21186         (tree_single_nonnegative_warnv_p): Make it public.
21187         (tree_invalid_nonnegative_warnv_p): Make it public.
21188         (tree_unary_nonzero_warnv_p): Make it public.
21189         (tree_binary_nonzero_warnv_p): Make it public
21190         (tree_single_nonzero_warnv_p): Make it public.
21191         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
21192         (extract_range_from_binary_expr): Split the expr argument.
21193         (extract_range_from_unary_expr): Split the expr argument.
21194         (extract_range_from_comparison): Split the expr argument.
21195         (extract_range_from_expr): Use the new aux functions.
21196         (vrp_evaluate_conditional_warnv): Use
21197         vrp_evaluate_conditional_warnv_with_ops.
21198         * tree.h (tree_unary_nonzero_warnv_p): Declare.
21199         (tree_binary_nonzero_warnv_p): Declare.
21200         (tree_single_nonzero_warnv_p): Declare.
21201         (tree_expr_nonzero_warnv_p): Declare.
21202         (tree_unary_nonnegative_warnv_p): Declare.
21203         (tree_binary_nonnegative_warnv_p): Declare.
21204         (tree_single_nonnegative_warnv_p): Declare.
21205         (tree_invalid_nonnegative_warnv_p): Declare.
21206
21207 2008-03-28  Richard Guenther  <rguenther@suse.de>
21208
21209         PR tree-optimization/30317
21210         PR tree-optimization/30911
21211         PR tree-optimization/34793
21212         * tree-vrp.c (set_and_canonicalize_value_range): New function.
21213         (struct assert_locus_d): New member EXPR.
21214         (register_new_assert_for): Add EXPR parameter to support
21215         ASSERT_EXPR <name, expr OP limit>.
21216         (register_edge_assert_for_1): Adjust callers.
21217         (find_assert_locations): Likewise.
21218         (process_assert_insertions_for): Build condition from expression.
21219         (extract_range_from_assert): Handle ASSERT_EXPRs
21220         of the form ASSERT_EXPR <name, expr OP limit>.
21221         (register_edge_assert_for_2): New helper registering
21222         asserts for comparisons.  Recognize range tests of the form
21223         (unsigned)i - CST1 OP CST2.
21224         (register_edge_assert_for_1): Use it.
21225         (register_edge_assert_for): Likewise.
21226         (needs_overflow_infinity): Integer sub-types
21227         do not need overflow infinities.
21228         (vrp_val_is_max): The extreme values of integer sub-types
21229         are those of the base type.
21230         (vrp_val_is_min): Likewise.
21231         * tree.def (ASSERT_EXPR): Document extra allowed conditional
21232         expressions.
21233
21234 2008-03-28  Nick Clifton  <nickc@redhat.com>
21235
21236         PR target/31110
21237         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
21238         Return GENERAL_REGS for stack adjustment reloads.
21239
21240 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21241
21242         PR target/31334
21243         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
21244         const_vector when all the vectors are constant.
21245
21246 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
21247
21248         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
21249         comparisons.
21250         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
21251         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
21252         (scc_sf): New.
21253         (s<code>_sf): Use new scc_sf attribute for opcode names.
21254
21255 2008-03-27  Tom Tromey  <tromey@redhat.com>
21256
21257         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
21258         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
21259         config/spu/t-spu-elf, config/i386/t-interix,
21260         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
21261         config/i386/x-darwin, config/i386/x-mingw32,
21262         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
21263         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
21264         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
21265         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
21266         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
21267         config/rs6000/x-darwin, config/rs6000/t-rs6000,
21268         config/score/t-score-elf, config/arm/t-strongarm-pe,
21269         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
21270         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
21271         Revert automatic dependency patch.
21272
21273 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21274
21275         PR target/35657
21276         * config/i386/i386.c (ix86_function_arg_boundary): Align
21277         decimal floating point to its natural boundary.
21278
21279 2008-03-27  Richard Guenther  <rguenther@suse.de>
21280
21281         PR middle-end/35716
21282         * fold-const.c (fold_comparison): Restrict distinct decl
21283         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
21284         solely rely on operand_equal_p.
21285
21286 2008-03-27  Richard Guenther  <rguenther@suse.de>
21287
21288         PR c/32511
21289         * c-common.c (handle_weak_attribute): Reject combination of
21290         weak and inline.
21291
21292 2008-03-27  Richard Guenther  <rguenther@suse.de>
21293
21294         PR tree-optimization/32810
21295         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
21296         conversions from DECL_INITIAL.
21297         (fold_const_aggregate_ref): Likewise from constructor elements.
21298
21299 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
21300
21301         * tree-affine.h (aff_combination_expand): Declare.
21302         (get_inner_reference_aff): Likewise.
21303         * tree-affine.c (aff_combination_expand): Split out from
21304         tree_to_aff_combination_expand.
21305         (get_inner_reference_aff): New function.
21306         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
21307         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
21308         (struct lim_aux_data): sm_done field removed.
21309         (mem_ref_loc_p, mem_ref_locs_p): New types.
21310         (struct mem_ref): Added id, stored, accesses_in_loop,
21311         indep_loop, dep_loop, indep_ref, dep_ref fields.
21312         Removed is_stored, locs and next fields.
21313         (memory_accesses): New variable.
21314         (movement_possibility): Do not allow moving statements
21315         that store to memory.
21316         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
21317         New functions.
21318         (determine_max_movement): For statements with memory references,
21319         find the outermost loop in that the reference is independent.
21320         (move_computations_stmt): Mark the virtual operands for renaming.
21321         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
21322         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
21323         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
21324         add_vop_ref_mapping, create_vop_ref_mapping_loop,
21325         create_vop_ref_mapping, analyze_memory_references,
21326         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
21327         get_all_locs_in_loop, ref_always_accessed_p,
21328         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
21329         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
21330         store_motion_loop, store_motion): New functions.
21331         (struct vop_to_refs_elt): New type.
21332         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
21333         memref_hash, memref_eq, hoist_memory_references): Rewritten.
21334         (schedule_sm): Replaced by...
21335         (execute_sm): ... this.
21336         (determine_lsm_ref, hoist_memory_references,
21337         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
21338         find_more_ref_vops, free_mem_ref, free_mem_refs,
21339         determine_lsm_loop, determine_lsm): Removed.
21340         (tree_ssa_lim_finalize): Free data structures used by store motion.
21341         (tree_ssa_lim): Call analyze_memory_references.  Use
21342         store_motion instead of determine_lsm.
21343
21344 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
21345
21346         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
21347         rename tmake_file to m68hc11/t-m68hc11.
21348         (mcore): Set inhibit_libc to true.
21349         * config.host (alpha*-dec-*vms*): Set extra_programs.
21350         (interix3*): Don't use host_xmake_file.
21351         * configure.ac: Let config.gcc override inhibit_libc.
21352         * configure: Regenerate.
21353
21354         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
21355         * config/t-openbsd-thread: Remove commented out lines.
21356
21357         * config/x-interix: Remove.
21358
21359         * config/m68hc11/t-m68hc11-gas: Rename to...
21360         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
21361
21362         * config/mcore/t-mcore: Remove T_CFLAGS.
21363         * config/mcore/t-mcore-pe: Likewise.
21364
21365 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
21366
21367         * configure.ac: Replace custom __GNU_SOURCE test with
21368         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
21369         * aclocal.m4: Regenerate.
21370         * configure: Regenerate.
21371         * config.in: Regenerate.
21372
21373 2008-03-27  Richard Guenther  <rguenther@suse.de>
21374
21375         * fold-const.c (target.h): Include.
21376         (fold_comparison): Fold comparison of addresses of decls
21377         that bind locally or of constants.  Consolidate address folding code.
21378         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
21379         results from fold_binary_to_constant.
21380         (compare_values_warnv): Likewise.
21381
21382 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
21383
21384         PR middle-end/35429
21385         * fold-const.c (fold_truthop): Check for integeral types when folding
21386         a == 0 && b == 0 and a != 0 || b != 0 .
21387
21388 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21389
21390         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
21391
21392 2008-03-26  Andreas Schwab  <schwab@suse.de>
21393
21394         * doc/invoke.texi: Fix use of @item vs. @itemx.
21395
21396 2008-03-26  Tom Tromey  <tromey@redhat.com>
21397
21398         * Makefile.in (build/gensupport.o, build/print-rtl.o,
21399         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
21400         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
21401         build/gencodes.o, build/genconditions.o, build/genconfig.o,
21402         build/genconstants.o, build/genemit.o, build/genextract.o,
21403         build/genflags.o, build/genmddeps.o, build/genopinit.o,
21404         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
21405         options.h.
21406
21407 2008-03-26  Richard Guenther  <rguenther@suse.de>
21408
21409         Revert
21410         2008-03-26  Richard Guenther  <rguenther@suse.de>
21411
21412         * fold-const.c (target.h): Include.
21413         (fold_comparison): Fold comparison of addresses of two decls
21414         that bind locally.  Consolidate address folding code.
21415
21416 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21417
21418         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
21419         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
21420         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
21421         dconstsqrt2, dconstthird, dconste and/or dconst10.
21422         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
21423         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
21424         dconstsqrt2, dconste): Delete.
21425         (init_emit_once): Likewise.  Simplify initializing dconstm1.
21426         Constify variable.
21427         * real.c (get_real_const): New.
21428         * real.h (dconst3, dconst10, dconstm2, dconstthird,
21429         dconstsqrt2, dconste): Delete.
21430         (real_value_const, get_real_const): New.
21431
21432 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
21433
21434         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
21435
21436         * config/i386/i386.c (ix86_function_arg_boundary): Check
21437         BIGGEST_ALIGNMENT instead of 128.
21438         (setup_incoming_varargs_64): Likewise.
21439
21440 2008-03-26  Tom Tromey  <tromey@redhat.com>
21441
21442         * Makefile.in (DEPFILES): Add missing '/'.
21443
21444 2008-03-26  Richard Guenther  <rguenther@suse.de>
21445
21446         * fold-const.c (target.h): Include.
21447         (fold_comparison): Fold comparison of addresses of two decls
21448         that bind locally.  Consolidate address folding code.
21449
21450 2008-03-26  Nick Clifton  <nickc@redhat.com>
21451
21452         PR target/31232
21453         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
21454         not allow INT+INT as a legitimate addressing mode.
21455
21456 2008-03-26  Richard Guenther  <rguenther@suse.de>
21457
21458         * tree-flow.h (widen_bitfield): Remove declaration.
21459         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
21460         (widen_bitfield): Remove function.
21461         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
21462         code.
21463
21464 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21465
21466         PR target/31558
21467         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
21468         error_mark_node's.
21469
21470 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
21471
21472         PR rtl-optimization/35232
21473         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
21474         (forget_old_reloads_1, forget_marked_reloads): Don't clear
21475         reg_reloaded_call_part_clobbered here.
21476         (reload_regs_reach_end_p): New function.
21477         (reload_reg_rtx_for_input): New variable.
21478         (reload_reg_rtx_for_output): Likewise.
21479         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
21480         when reassigning a pseudo register.  Load reloadreg from
21481         reload_reg_rtx_for_input, moving the mode and register
21482         calculation to...
21483         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
21484         instead of the original when deciding whether an input reload
21485         would be a no-op or whether an output reload can be deleted.
21486         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
21487         when setting up new_spill_reg_store.  Load it from
21488         reload_reg_rtx_for_output, moving the mode and register
21489         calculation to...
21490         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
21491         instead of the original when deciding whether an output reload
21492         would be a no-op.  Do the same when modifying insn notes.
21493         Use rtx_equal_p instead of == to compare the registers.
21494         (inherit_piecemeal_p): Take a mode and two register numbers
21495         as argument.
21496         (emit_reload_insns): Clear new_spill_reg_store for every hard
21497         register in the reload register.  Remove spill registers
21498         from reg_reloaded_valid before considering whether to record
21499         inheritance information for them.  Use reload_reg_rtx_for_output
21500         instead of reg_rtx when recording output reloads.  Use
21501         reload_reg_rtx_for_input instead of reg_rtx when recording
21502         input reloads.  Set or clear reg_reloaded_call_part_clobbered
21503         at the same time as setting reg_reloaded_valid.
21504         (delete_output_reload): Add a new_reload_reg parameter and use it
21505         instead of rld[j].reg_rtx.
21506         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
21507         calls accordingly.
21508
21509 2008-03-25  Tom Tromey  <tromey@redhat.com>
21510
21511         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
21512         (build/genattr.o): Likewise.
21513         (build/genattrtab.o): Likewise.
21514         (build/gencodes.o): Likewise.
21515         (build/genconfig.o): Likewise.
21516         (build/genconstants.o): Likewise.
21517         (build/genemit.o): Likewise.
21518         (build/genextract.o): Likewise.
21519         (build/genflags.o): Likewise.
21520
21521 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
21522
21523         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
21524         instead of size_int for integer types.
21525         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
21526         to match type of MINUS_EXPR.
21527
21528 2008-03-25  Tom Tromey  <tromey@redhat.com>
21529
21530         * configure: Rebuilt.
21531         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
21532         Makefile.
21533
21534 2008-03-25  Tom Tromey  <tromey@redhat.com>
21535
21536         * config/x-solaris (host-solaris.o): Update.
21537         * config/x-linux (host-linux.o): Update.
21538         * config/x-hpux (host-hpux.o): Update.
21539         * config/x-darwin (host-darwin.o): Update.
21540         * config/v850/t-v850e (v850-c.o): Update.
21541         * config/v850/t-v850 (v850-c.o): Update.
21542         * config/t-vxworks (vxworks.o): Update.
21543         * config/t-sol2 (sol2-c.o, sol2.o): Update.
21544         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
21545         * config/spu/t-spu-elf (spu-c.o): Update.
21546         (spu.o): Remove.
21547         * config/sh/t-symbian (sh-c.o): Update.
21548         (symbian.o): Update.
21549         * config/sh/t-sh (sh-c.o): Update.
21550         * config/score/t-score-elf (score7.o, score3.o): Update.
21551         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
21552         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
21553         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
21554         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
21555         (rs6000.o): Remove.
21556         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
21557         * config/m32c/t-m32c (m32c-pragma.o): Update.
21558         * config/ia64/t-ia64 (ia64-c.o): Update.
21559         * config/i386/x-mingw32 (host-mingw32.o): Update.
21560         * config/i386/x-i386 (driver-i386.o): Update.
21561         * config/i386/x-darwin (host-i386-darwin.o): Update.
21562         * config/i386/x-cygwin (host-cygwin.o): Update.
21563         * config/i386/t-nwld (nwld.o): Update.
21564         * config/i386/t-netware (netware.o): Update.
21565         * config/i386/t-interix (winnt.o): Update.
21566         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
21567         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
21568         msformat-c.o): Update.
21569         * config/bfin/t-bfin-linux (generated_files): Add
21570         linux-sysroot-suffix.h.
21571         * config/arm/t-wince-pe (pe.o): Update.
21572         * config/arm/t-strongarm-pe (pe.o): Update.
21573         * config/arm/t-pe (pe.o): Update.
21574         * config/arm/t-arm (arm-c.o): Update.
21575         * doc/install.texi (Prerequisites): Require make 3.80.
21576         * Makefile.in: Remove .o targets.
21577         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
21578         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
21579         (simple_generated_h, simple_generated_c): Move earlier.
21580         (generated_files): New variable.
21581         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
21582         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
21583         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
21584         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
21585         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
21586         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
21587         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
21588         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
21589         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
21590         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
21591         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
21592         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
21593         (.c.o): Remove.
21594         (COMPILE.base, COMPILE): New variables.
21595         (%.o): New pattern rule.
21596         (ALL_HOST_OBJS): New variable.
21597         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
21598         (dummy-checksum.o, cc1-checksum.o): Remove.
21599         (DRIVER_SHLIB): New variable.
21600         (DRIVER_DEFINES): Use it.
21601         (gencondmd.c): Move out of build/.
21602         (s-conditions): Update.
21603         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
21604         (ALL_BUILD_OBJS): Likewise.
21605         (build/%.o): Use BUILDCOMPILE.
21606         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
21607         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
21608         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
21609         build/gencheck.o, build/gencodes.o, build/genconditions.o,
21610         build/genconfig.o, build/genconstants.o, build/genemit.o,
21611         build/genextract.o, build/genflags.o, build/genmddeps.o,
21612         build/genopinit.o, build/genoutput.o, build/genpeep.o,
21613         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
21614         build/gen-protos.o, build/scan.o, build/fix-header.o,
21615         build/scan-decls.o): Simplify.
21616         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
21617         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
21618         prefix.o, toplev.o): Reduce to variable setting.
21619         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
21620         ($(out_object_file), gcc-options.o): New targets.
21621         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
21622         * configure: Rebuilt.
21623         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
21624         * doc/sourcebuild.texi (Front End Directory): Document new variable.
21625
21626 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
21627
21628         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
21629         complain when we hit an error, return ERROR_MARK_NODE.
21630
21631 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21632
21633         * config/sh/constraints.md (Pso, Psz): New constraints.
21634         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
21635         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
21636
21637 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21638
21639         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
21640         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
21641
21642 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
21643
21644         * config/sh/sh.md (prefetch): Add condition for SH2A target.
21645         (prefetch_sh2a): New.
21646
21647 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
21648             Naveen.H.S  <naveen.hs@kpitcummins.com>
21649
21650         * config/sh/constraints.md (I28): New constraint.
21651         * config/sh/sh.c (broken_move): Add support for movi20s.
21652         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
21653
21654 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
21655             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
21656             Naveen.H.S  <naveen.hs@kpitcummins.com>
21657
21658         * config/sh/sh.c (SH_ATTRIBUTES): Define.
21659         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
21660         (print_operand): Handle resbank in %@ operand code.
21661         (sh_encode_section_info): New.
21662         (push_regs): Add conditions for resbank.
21663         (sh_expand_epilogue): Likewise.
21664         (sh_insert_attributes): Likewise.
21665         (sh_attribute_table): Likewise.
21666         (sh_handle_resbank_handler_attribute): New.
21667         (sh2a_handle_function_vector_handler_attribute): New.
21668         (sh2a_is_function_vector_call): New.
21669         (sh2a_get_function_vector_number): New.
21670         (sh2a_function_vector_p): New.
21671         (sh_cfun_resbank_handler_p): New.
21672         * config/sh/sh.md (calli): Emit jsr/n if possible.
21673         (calli_tbr_rel): New.
21674         (calli_pcrel): Emit jsr/n if possible.
21675         (return_i): Emit rts/n if possible.
21676         (call_valuei_tbr_rel): New.
21677         (call_valuei_pcrel): Add condition for SH2A target.
21678         (call_value): Likewise.
21679         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
21680         (sh2a_get_function_vector_number): Likewise.
21681         (sh2a_is_function_vector_call): Likewise.
21682         * doc/extend.texi: Document TBR relative addressing of SH2A.
21683         (resbank): Add description for SH2A.
21684
21685 2008-03-24  Richard Guenther  <rguenther@suse.de>
21686
21687         PR c/22371
21688         * gimplify.c (gimplify_modify_expr): For frontend type-correct
21689         pointer assignments change conversions according to middle-end rules.
21690         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
21691         * configure.ac: Include type checking in yes.
21692         * configure: Regenerate.
21693
21694 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21695
21696         * diagnostic.c (diagnostic_count_diagnostic): Delete.
21697         (diagnostic_report_diagnostic): Update. Handle ICEs here.
21698
21699 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
21700
21701         * gthr-vxworks.h (UNUSED): Define.
21702
21703 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
21704
21705         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
21706
21707 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
21708
21709         * doc/extend.texi (Function Attributes): Add missing comma in the
21710         example of the "alloc_size" attribute.
21711
21712 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
21713
21714         Revert:
21715         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21716
21717         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21718         32bit host.
21719
21720         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
21721
21722         PR target/35496
21723         * stor-layout.c (update_alignment_for_field): Set minimum alignment
21724         of the underlying type of a MS bitfield layout to the natural
21725         alignment of the type.
21726
21727         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
21728
21729         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
21730         to their natural alignment to avoid store forwarding stalls.
21731
21732 2008-03-22  Richard Guenther  <rguenther@suse.de>
21733
21734         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
21735         For PHI nodes verify the address is invariant.
21736         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
21737         (get_symbol_constant_value): Use is_gimple_min_invariant.
21738         (maybe_fold_stmt_indirect): Likewise.
21739
21740 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
21741
21742         PR rtl-optimization/33927
21743         * Makefile.in (dse.o): Depend on $(TM_P_H).
21744         * expr.h (extract_low_bits): Declare.
21745         * expmed.c (extract_low_bits): New function.
21746         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
21747         * dse.c: Include tm_p.h.
21748         (find_shift_sequence): Remove the read_reg argument and return the
21749         read value.  Emit the instructions instead of returning them.
21750         Iterate on new_mode rather than calculating it each time.
21751         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
21752         source to NEW_MODE and extract_low_bits to convert the shifted
21753         value to READ_MODE.
21754         (replace_read): Allow the load and store to have different mode
21755         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
21756         or extraction instructions before trying the replacement.  Update
21757         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
21758
21759 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
21760
21761         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
21762         to their natural alignment to avoid store forwarding stalls.
21763
21764 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21765
21766         PR target/27946
21767         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
21768         encouraging but not allowing gprs for input;
21769         change the input constraint to !f#r.
21770         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
21771         gprs for output;
21772         change the output constraint to !f#r.
21773
21774 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
21775
21776         PR target/13958
21777         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
21778         corresponding post-reload splitters.
21779         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
21780         when x87 FP math is selected.
21781         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
21782         New function prototype.
21783         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
21784         unreachable function to ease macroization of insn patterns.
21785
21786 2008-03-21  Martin Jambor  <mjambor@suse.cz>
21787
21788         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
21789         reference dumps if ddr is NULL or dependence is unknown.
21790
21791 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21792
21793         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
21794         unsigned extension into account.
21795         (ATOMIC_COMPARE_AND_SWAP): Likewise.
21796         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
21797         Do computations on a scratch register.
21798
21799 2008-03-21  Richard Guenther  <rguenther@suse.de>
21800
21801         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21802         Use is_gimple_min_invariant instead of TREE_INVARIANT.
21803         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
21804         * tree-ssa-dom.c (record_equality): Likewise.
21805         * tree-inline.c (copy_body_r): Likewise.
21806         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
21807         TREE_INVARIANT.
21808
21809 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21810
21811         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
21812         as 'delete_unused' argument.
21813
21814 2008-03-20  Richard Guenther  <rguenther@suse.de>
21815
21816         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
21817         special casing of constant qualifiers.
21818         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
21819         care about them in general.
21820         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
21821         regardless of their type.
21822         (fold_stmt_r): Forcefully fold *& if we end up with that.
21823
21824 2008-03-20  Paul Brook  <paul@codesourcery.com>
21825
21826         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
21827         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
21828         linker flags.
21829         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
21830         definition.
21831         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
21832         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
21833
21834 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
21835
21836         * common.opt (Wmudflap): New option.
21837         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
21838         (mx_register_decls): Likewise.
21839         (mudflap_finish_file): Likewise.
21840         * doc/invoke.texi: Document -Wno-mudflap.
21841
21842 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
21843
21844         * c-format.c (replace_format_name_to_system_name): New.
21845         (cmp_attribs): New.
21846         (convert_format_name_to_system_name): New.
21847         (decode_format_attr): Add use of convert_format_name_to_system_name.
21848         (format_types_orig): Add gnu_ prefix to names.
21849         (check_format_info_main): Special treating of \0 escaped names for
21850         supporting multi-character format specifiers as I32, I64.
21851         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
21852         (gnu_target_overrides_format_attributes): New.
21853         * c-format.h: Add structure target_ovr_attr to hold
21854         system specific formatter names.
21855         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
21856         msformat-c.o file to c_target_objs and cxx_target_objs.
21857         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
21858         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
21859         (TARGET_N_FORMAT_TYPES): New.
21860         * config/i386/msformat-c.c: New.
21861         * config/i386/t-cygming: Add build rule for msformat-c.o.
21862         * doc/extend.texi: Add new format names gnu_* and ms_* and
21863         further details.
21864         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
21865
21866 2008-03-20  Ira Rosen  <irar@il.ibm.com>
21867
21868         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
21869         optimizations turned on under -O3.
21870         (ftree-vectorize): Add that the flag is turned on with -O3.
21871
21872 2008-03-20  Ben Elliston  <bje@au.ibm.com>
21873
21874         * regmove.c (try_auto_increment): Fix spelling error in comment.
21875         * final.c (final_scan_insn): Likewise.
21876
21877 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
21878
21879         PR target/14552
21880         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
21881         allocator preferences for "y" and "r" class registers.
21882         ("*mov<mode>_internal"): Ditto.
21883         ("*movv2sf_internal_rex64"): Ditto.
21884         ("*movv2sf_internal"): Ditto.
21885
21886 2008-03-19  Michael Matz  <matz@suse.de>
21887
21888         PR middle-end/35616
21889         * calls.c (expand_call): Check overlap of arguments with call
21890         address for sibcalls.
21891
21892 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
21893
21894         PR target/35496
21895         * stor-layout.c (update_alignment_for_field): Set minimum alignment
21896         of the underlying type of a MS bitfield layout to the natural
21897         alignment of the type.
21898
21899 2008-03-19  Jan Hubicka  <jh@suse.cz>
21900
21901         PR other/35094
21902         * toplev.c (decode_d_option): Handle all CPP flags.
21903         * tree-vrp.c: Update tree_pass descriptors.
21904         * regrename.c: Update tree_pass descriptors.
21905         * fwprop.c: Update tree_pass descriptors.
21906         * doc/invoke.texi: Remove documentation of dropped -d? flags.
21907         * tree-into-ssa.c: Update tree_pass descriptors.
21908         * tree-dump.c: Update tree_pass descriptors.
21909         * tree-complex.c: Update tree_pass descriptors.
21910         * tree-dump.h: Update tree_pass descriptors.
21911         * see.c: Update tree_pass descriptors.
21912         * cgraphbuild.c: Update tree_pass descriptors.
21913         * tracer.c: Update tree_pass descriptors.
21914         * tree-loop-distribution.c: Update tree_pass descriptors.
21915         * cgraph.c: Update tree_pass descriptors.
21916         * postreload-gcse.c: Update tree_pass descriptors.
21917         * postreload.c: Update tree_pass descriptors.
21918         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
21919         * tree-tailcall.c: Update tree_pass descriptors.
21920         * tree-pass.h (tree_opt_pass): Rename to ...
21921         (opt_pass) ... this one; add "type" field and remove letter field.
21922         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
21923         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
21924         all_lowering_passes): Update declaration.
21925         * ipa-cp.c: Update tree_pass descriptors.
21926         * final.c: Update tree_pass descriptors.
21927         * omp-low.c: Update tree_pass descriptors.
21928         * tree-ssa-dse.c: Update tree_pass descriptors.
21929         * ipa-reference.c: Update tree_pass descriptors.
21930         * tree-ssa-uncprop.c: Update tree_pass descriptors.
21931         * auto-inc-dec.c: Update tree_pass descriptors.
21932         * reorg.c: Update tree_pass descriptors.
21933         * cgraphunit.c: Update tree_pass descriptors.
21934         * tree-ssa-copyrename.c: Update tree_pass descriptors.
21935         * tree-ssa-ccp.c: Update tree_pass descriptors.
21936         * df-core.c: Update tree_pass descriptors.
21937         * mode-switching.c: Update tree_pass descriptors.
21938         * tree-nomudflap.c: Update tree_pass descriptors.
21939         * modulo-sched.c: Update tree_pass descriptors.
21940         * ipa-pure-const.c: Update tree_pass descriptors.
21941         * cse.c: Update tree_pass descriptors.
21942         * web.c: Update tree_pass descriptors.
21943         * tree-stdarg.c: Update tree_pass descriptors.
21944         * tree-ssa-math-opts.c: Update tree_pass descriptors.
21945         * tree-ssa-dom.c: Update tree_pass descriptors.
21946         * tree-nrv.c: Update tree_pass descriptors.
21947         * tree-ssa-alias.c: Update tree_pass descriptors.
21948         * loop-init.c: Update tree_pass descriptors.
21949         * gimple-low.c: Update tree_pass descriptors.
21950         * ipa-inline.c: Update tree_pass descriptors.
21951         * tree-ssa-sink.c: Update tree_pass descriptors.
21952         * global.c: Update tree_pass descriptors.
21953         * ifcvt.c: Update tree_pass descriptors.
21954         * jump.c: Update tree_pass descriptors.
21955         * predict.c: Update tree_pass descriptors.
21956         * tree-ssa-loop.c: Update tree_pass descriptors.
21957         * recog.c: Update tree_pass descriptors.
21958         * dse.c: Update tree_pass descriptors.
21959         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
21960         * tree-eh.c: Update tree_pass descriptors.
21961         * regmove.c: Update tree_pass descriptors.
21962         * local-alloc.c
21963         * function.c: Update tree_pass descriptors.
21964         * tree-vectorizer.c: Update tree_pass descriptors.
21965         * gcse.c: Update tree_pass descriptors.
21966         * ipa-type-escape.c: Update tree_pass descriptors.
21967         * tree-if-conv.c: Update tree_pass descriptors.
21968         * init-regs.c: Update tree_pass descriptors.
21969         * ipa.c: Update tree_pass descriptors.
21970         * tree-ssa-phiopt.c: Update tree_pass descriptors.
21971         * rtl-factoring.c: Update tree_pass descriptors.
21972         * lower-subreg.c: Update tree_pass descriptors.
21973         * bt-load.c: Update tree_pass descriptors.
21974         * tree-dfa.c: Update tree_pass descriptors.
21975         * except.c: Update tree_pass descriptors.
21976         * emit-rtl.c: Update tree_pass descriptors.
21977         * cfgexpand.c: Update tree_pass descriptors.
21978         * tree-cfgcleanup.c: Update tree_pass descriptors.
21979         * cfgcleanup.c: Update tree_pass descriptors.
21980         * tree-ssa-pre.c: Update tree_pass descriptors.
21981         * tree-sra.c: Update tree_pass descriptors.
21982         * tree-mudflap.c: Update tree_pass descriptors.
21983         * tree-ssa-copy.c: Update tree_pass descriptors.
21984         * cfglayout.c: Update tree_pass descriptors.
21985         * tree-ssa-forwprop.c: Update tree_pass descriptors.
21986         * tree-ssa-dce.c: Update tree_pass descriptors.
21987         * tree-ssa.c: Update tree_pass descriptors.
21988         * regclass.c: Update tree_pass descriptors.
21989         * integrate.c: Update tree_pass descriptors.
21990         * tree-optimize.c: Update tree_pass descriptors.
21991         * tree-ssa-phiprop.c: Update tree_pass descriptors.
21992         * tree-object-size.c: Update tree_pass descriptors.
21993         * combine.c: Update tree_pass descriptors.
21994         * tree-outof-ssa.c: Update tree_pass descriptors.
21995         * bb-reorder.c: Update tree_pass descriptors.
21996         * stack-ptr-mod.c: Update tree_pass descriptors.
21997         * var-tracking.c: Update tree_pass descriptors.
21998         * tree-profile.c: Update tree_pass descriptors.
21999         * tree-vect-generic.c: Update tree_pass descriptors.
22000         * reg-stack.c: Update tree_pass descriptors.
22001         * sched-rgn.c: Update tree_pass descriptors.
22002         * tree-ssa-structalias.c: Update tree_pass descriptors.
22003         * tree-cfg.c: Update tree_pass descriptors.
22004         * passes.c (current_pass): Update declaration.
22005         (finish_optimization_passes): Update.
22006         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
22007         (register_one_dump_file, register_dump_files_1, next_pass_1):
22008         Update arguments.
22009         (init_optimization_passes): Update handling of new types.
22010         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
22011         * ipa-struct-reorg.c: Update tree_pass descriptors.
22012         * tree-ssa-reassoc.c: Update tree_pass descriptors.
22013         * combine-stack-adj.c: Update tree_pass descriptors.
22014         * cfgrtl.c: Update tree_pass descriptors.
22015         * dce.c: Update tree_pass descriptors.
22016         * tree-ssanames.c: Update tree_pass descriptors.
22017
22018 2008-03-19  Richard Guenther  <rguenther@suse.de>
22019
22020         PR middle-end/35609
22021         * tree-ssa.c (walk_data): New structure.
22022         (warn_uninitialized_var): If not always_executed warn with "maybe"
22023         instead of "is".
22024         (execute_early_warn_uninitialized): Compute post-dominators.
22025         Initialize always_executed before processing each basic block.
22026
22027 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
22028
22029         PR target/35504
22030         * config/i386/i386.c (x86_this_parameter): Calculate correct location
22031         of "this" pointer when "regparm = N" or "fastcall" is in effect.
22032
22033 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22034
22035         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
22036
22037 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
22038
22039         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
22040         is true.
22041         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
22042         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
22043         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
22044         target after ignore has been set, and move there also the commputation
22045         of subtarget and original_target.
22046         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
22047         (LANG_HOOKS_INITIALIZER): Remove it.
22048         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
22049
22050 2008-03-18  Richard Guenther  <rguenther@suse.de>
22051
22052         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
22053         found an expression with constants, note that in the VN for the lhs.
22054         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
22055         fold them to constants if possible.  Run cleanup_cfg if done so.
22056         (execute_pre): Return todo.
22057         (do_pre): Likewise.
22058         (execute_fre): Likewise.
22059         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
22060         of constants.
22061         (get_prop_source_stmt): Look through pointer conversions.
22062
22063 2008-03-18  Jan Hubicka  <jh@suse.cz>
22064
22065         * tree-pretty-print.c: Include predict.h.
22066         (dump_generic_node): Dump predictor.
22067         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
22068         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
22069         * gimple-low.c (lower_stmt): Likewise.
22070         * expr.c (expand_expr_real): Likewise.
22071         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
22072         them.
22073         (build_predict_expr, build_predict_expr): New.
22074         * predict.h (predictor_name, build_predict_expr): Update.
22075         * c-typeck.c (c_finish_bc_stmt): Add prediction.
22076         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
22077         * predict.def (PRED_CONTINUE): Update hitrate.
22078         * tree.def (PREDICT_EXPR): Define.
22079         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
22080         do not handle BIND_EXPR.
22081         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
22082         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
22083         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
22084         operands.
22085
22086 2008-03-18  Michael Matz  <matz@suse.de>
22087
22088         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
22089
22090 2008-03-18  Richard Guenther  <rguenther@suse.de>
22091
22092         * tree-gimple.h (is_gimple_invariant_address): Declare.
22093         (is_gimple_constant): Likewise.
22094         * tree-gimple.c (is_gimple_constant): New function.
22095         (is_gimple_invariant_address): Likewise.
22096         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
22097         and is_gimple_invariant_address.
22098         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
22099         previous change.
22100         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
22101         an addressable base.
22102
22103 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
22104
22105         PR middle-end/35611
22106         * gimplify.c (gimplify_expr): Gimplify second operand of
22107         OMP_ATOMIC_LOAD.
22108
22109 2008-03-17  Richard Guenther  <rguenther@suse.de>
22110
22111         PR tree-optimization/19637
22112         * fold-const.c (fold_unary): Remove restrictions of removing
22113         intermediate pointer-conversions (P2)(P1)P0.
22114         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
22115         conversion to void pointer.
22116         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
22117
22118 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
22119
22120         PR debug/31510
22121         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
22122         emulated thread local variables.
22123
22124 2008-03-16  Richard Guenther  <rguenther@suse.de>
22125
22126         PR middle-end/35607
22127         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22128         expand TREE_INVARIANT operations that are not gimple invariant.
22129
22130 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
22131
22132         * doc/extend.texi (Alignment): Say that the ABI controls
22133         the __alignof__ for non-strict-alignment targets rather
22134         than being a recommendation.
22135
22136 2008-03-15  Paul Brook  <paul@codesourcery.com>
22137
22138         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
22139         annotations.
22140         (arm_output_fn_unwind): Mark functions that can not be unwound.
22141
22142 2008-03-15  Paul Brook  <paul@codesourcery.com>
22143
22144         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
22145         extension instructions.
22146
22147 2008-03-15  Richard Guenther  <rguenther@suse.de>
22148
22149         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
22150         and fold constant aggregate refs.
22151         (fold_const_aggregate_ref): Handle string constants
22152         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
22153         (evaluate_stmt): Simplify now that ccp_fold folds constant
22154         aggregate refs.
22155
22156 2008-03-15  Paul Brook  <paul@codesourcery.com>
22157
22158         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
22159         (extzv): Use gen_extzv_t2.
22160         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
22161
22162 2008-03-15  Richard Guenther  <rguenther@suse.de>
22163
22164         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
22165         (fold_const_aggregate_ref): Likewise.
22166         (get_value): Return NULL if we don't have any values.
22167         (ccp_finalize): Set const_val to NULL after freeing it.
22168         * tree-flow.h (get_symbol_constant_value): Declare.
22169         (fold_const_aggregate_ref): Likewise.
22170         * tree-ssa-sccvn.c (try_to_simplify): Use them.
22171
22172 2008-03-15  Richard Guenther  <rguenther@suse.de>
22173
22174         PR middle-end/35593
22175         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
22176         to not produce negative array indices if not allowed.  Add
22177         parameter to indicate that.
22178         (maybe_fold_offset_to_component_ref): Allow negative array
22179         indices only for the first member of a structure.
22180         (maybe_fold_offset_to_reference): Allow negative array indices.
22181         (maybe_fold_stmt_addition): Likewise.
22182
22183 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
22184             Anatoly Sokolov <aesok@post.ru>
22185
22186         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
22187         (avr_arch): Add ARCH_AVR6.
22188         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
22189         (initial_elimination_offset): Initialize and use 'avr_pc_size'
22190         instead of fixed value 2.
22191         (print_operand_address): Use gs() asm specifier instead of pm().
22192         (avr_assemble_integer): (Ditto.).
22193         (avr_output_addr_vec_elt): (Ditto.).
22194         (print_operand): Handle "!" code.
22195         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
22196         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
22197         (AVR_HAVE_EIJMP_EICALL): Define.
22198         (AVR_3_BYTE_PC): Redefine.
22199         (AVR_2_BYTE_PC): (Ditto.).
22200         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
22201         (LINK_SPEC): Add atmega2560 and atmega2561.
22202         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
22203         (crtm2561.o).
22204         * config/avr/avr.md (call_insn): Use eicall instead of icall
22205         for 3 byte PC devices.
22206         (call_value_insn): (Ditto.).
22207         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
22208         (indirect_jump): Use only for for 2 byte PC devices.
22209         (*tablejump): (Ditto.).
22210         (*indirect_jump_avr6): Add insn.
22211         (*tablejump_rjmp): Don't use for 3 byte PC devices.
22212         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
22213         instead of ijmp for 3 byte PC devices.
22214         (__tablejump2__): (Ditto.).
22215         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
22216         (MULITLIB_DIRNAMES): (Ditto.).
22217         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
22218
22219 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
22220
22221         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
22222         "sse2_umulsidi3".  Use V1DI mode for operand 0.
22223         ("mmx_psadbw"): Use V1DI mode for operand 0.
22224         * config/i386/i386-modes.def (V1SI): New vector mode.
22225         * config/i386/i386.c (struct builtin_description)
22226         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
22227         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
22228         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
22229         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
22230         v1di_ftype_v8qi_v8qi type.
22231         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
22232
22233         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
22234         __builtin_ia32_pmuludq]: Fix the mode of return value.
22235
22236 2008-03-15  Richard Guenther  <rguenther@suse.de>
22237
22238         PR middle-end/35595
22239         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
22240         being a PHI_NODE.
22241
22242 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
22243
22244         * doc/invoke.texi (Option Summary, Xtensa Options): Document
22245         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
22246         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
22247         unless TARGET_SERIALIZE_VOLATILE is enabled.
22248         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
22249         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
22250         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
22251
22252 2008-03-14  Richard Guenther  <rguenther@suse.de>
22253
22254         PR tree-optimization/34172
22255         * tree-flow.h (refs_may_alias_p): Declare.
22256         (get_single_def_stmt): Likewise.
22257         (get_single_def_stmt_from_phi): Likewise.
22258         (get_single_def_stmt_with_phi): Likewise.
22259         * tree-dfa.c (refs_may_alias_p): New function.
22260         (get_single_def_stmt): Likewise.
22261         (get_single_def_stmt_from_phi): Likewise.
22262         (get_single_def_stmt_with_phi): Likewise.
22263         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
22264         (vn_reference_lookup_1): New helper function.
22265         (vn_reference_lookup): Walk the virtual use-def chain to
22266         continue searching for a match if the def does not alias the
22267         reference we are looking for.
22268
22269 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
22270
22271         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
22272         archive and Perzl.  Update The Written Word listing.
22273
22274 2008-03-14  Richard Guenther  <rguenther@suse.de>
22275
22276         PR tree-optimization/34043
22277         PR tree-optimization/33989
22278         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
22279         when doing FRE.
22280         (bitmap_find_leader): Use extra argument to verify dominance
22281         relationship inside a basic-block.
22282         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
22283         (find_leader_in_sets): Adjust.
22284         (create_component_ref_by_pieces): Take extra argument for
22285         dominance check, handle lookup failures.
22286         (find_or_generate_expression): Likewise.
22287         (create_expression_by_pieces): Likewise.
22288         (insert_into_preds_of_block): Adjust.
22289         (create_value_expr_from): If asked for, verify all operands
22290         are in the blocks AVAIL_OUT set.
22291         (make_values_for_stmt): Check for SSA_NAMEs that are life
22292         over an abnormal edge.
22293         (compute_avail): Remove such check.
22294         (do_SCCVN_insertion): New function.
22295         (eliminate): If we do not find a leader suitable for replacement
22296         insert a replacement expression from SCCVN if available.
22297         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
22298         (struct vn_ssa_aux): Add needs_insertion flag.
22299         * tree-ssa-sccvn.c (may_insert): New global flag.
22300         (copy_reference_ops_from_ref): Value-number union member access
22301         based on its size, not type and member if insertion is allowed.
22302         (visit_reference_op_load): For a weak match from union type
22303         punning lookup a view-converted value and insert a SSA_NAME
22304         for that value if that is not found.
22305         (visit_use): Make dumps shorter.  Do not disallow value numbering
22306         SSA_NAMEs that are life over an abnormal edge to constants.
22307         (free_scc_vn): Release inserted SSA_NAMEs.
22308         (run_scc_vn): New flag to specify whether insertion is allowed.
22309         Process SSA_NAMEs in forward order.
22310         * tree-ssa-loop-im.c (for_each_index): Handle invariant
22311         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
22312         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
22313         pointer type to/from integral types that do not change the
22314         precision to regular conversions.
22315
22316 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
22317
22318         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
22319         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
22320         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
22321         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
22322         input arguments and the mode of return value.  Built-in functions
22323         that operate on whole 64-bit MMX register now use V1DI mode.
22324
22325 2008-03-13  Alon Dayan  <alond@il.ibm.com>
22326             Olga Golovanevsky  <olga@il.ibm.com>
22327
22328         PR tree-optimization/35041
22329         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
22330         to locate the right position in a statement.
22331
22332 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
22333
22334         PR target/34000
22335         PR target/35553
22336         * config/i386/xmmintrin.h:  Change all static inline functions to
22337         extern inline and add __gnu_inline__ attribute.
22338         * config/i386/bmintrin.h: Ditto.
22339         * config/i386/smmintrin.h: Ditto.
22340         * config/i386/tmmintrin.h: Ditto.
22341         * config/i386/mmintrin-common.h: Ditto.
22342         * config/i386/ammintrin.h: Ditto.
22343         * config/i386/emmintrin.h: Ditto.
22344         * config/i386/pmmintrin.h: Ditto.
22345         * config/i386/mmintrin.h: Ditto.
22346         * config/i386/mm3dnow.h: Ditto.
22347
22348 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
22349
22350         PR middle-end/35185
22351         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
22352         (lower_omp_2): New function.
22353         (lower_omp_1, lower_omp): Rewritten.
22354
22355 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
22356
22357         PR 35054
22358         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
22359         with the phrase "Microsoft Windows compilers".
22360         (Push/Pop Macro Pragmas): New subsection. Document
22361         #pragma push_macro and pragma pop_macro.
22362
22363 2008-03-12  Paul Brook  <paul@codesourcery.com>
22364
22365         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
22366
22367 2008-03-12  Paul Brook  <paul@codesourcery.com>
22368
22369         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
22370         (thumb2_alusi3_short): Exclude PLUS and MINUS.
22371         (thumb2_addsi_shortim): Rename ...
22372         (thumb2_addsi_short): ... to this.  Allow register operands.
22373         (thumb2_subsi_short): New pattern.
22374         (thumb2_one_cmplsi2_short,
22375         thumb2_negsi2_short): New patterns and peepholes.
22376
22377 2008-03-12  Paul Brook  <paul@codesourcery.com>
22378
22379         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
22380
22381 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
22382
22383         * config/i386/i386.md (int_cond): New code iterator.
22384         (fp_cond): Ditto.
22385         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
22386         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
22387         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
22388         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
22389         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
22390         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
22391         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
22392         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
22393
22394 2008-03-12  Paul Brook  <paul@codesourcery.com>
22395
22396         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
22397         instead of {arm,thumb}_compute_save_reg_mask.
22398         (output_return_instruction): Ditto.
22399         (thumb_unexpanded_epilogue): Ditto.
22400         (thumb1_expand_prologue): Ditto.
22401         (thumb1_output_function_prologue): Ditto.
22402         (arm_set_return_address): Ditto.
22403         (thumb_set_return_address): Ditto.
22404         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
22405         regs to achieve stack alignment.
22406         (thumb1_compute_save_reg_mask): Fix compiler warning.
22407         (arm_output_epilogue): Use offsets->saved_regs_mask.
22408         Adjust stack pointer by poping call clobered registers.
22409         (arm_expand_prologue): Use offsets->saved_regs_mask.
22410         Adjust stack pointer by pushing extra registers.
22411         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
22412
22413 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
22414
22415         PR tree-opt/35422
22416         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
22417         conversion to the operands of a multiplication.
22418
22419 2008-03-12  Richard Guenther  <rguenther@suse.de>
22420
22421         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
22422         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
22423         * timevar.def (TV_TREE_PHIPROP): Add.
22424         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
22425         pass description.  Use TV_TREE_PHIPROP.
22426         * tree-ssa-forwprop.c: Remove phiprop code.
22427
22428 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
22429
22430         PR middle-end/35549
22431         * omp-low.c (maybe_lookup_decl): Constify first argument.
22432         (use_pointer_for_field): Change last argument from bool to
22433         omp_context *.  Disallow shared copy-in/out in nested
22434         parallel if decl is shared in outer parallel too.
22435         (build_outer_var_ref, scan_sharing_clauses,
22436         lower_rec_input_clauses, lower_copyprivate_clauses,
22437         lower_send_clauses, lower_send_shared_vars): Adjust callers.
22438
22439 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
22440             Ira Rosen  <irar@il.ibm.com>
22441
22442         * tree-vectorizer.c (free_stmt_vec_info): New function.
22443         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
22444         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
22445         * tree-vectorizer.h (free_stmt_vec_info): Declare.
22446         * tree-vect-transform.c (vectorizable_conversion): Free
22447         vec_oprnds0 if it was allocated.
22448         (vect_permute_store_chain): Remove unused VECs.
22449         (vectorizable_store): Free VECs that are allocated in the..
22450         function.
22451         (vect_transform_strided_load, vectorizable_load): Likewise.
22452         (vect_remove_stores): Simplify the code.
22453         (vect_transform_loop): Move code to vect_remove_stores().
22454         Call vect_remove_stores() and free_stmt_vec_info().
22455
22456 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22457
22458         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
22459         TARGET_HPUX.  Revise comment.
22460         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
22461         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
22462         Use sr4 variant of `be' instruction when not generating PIC code.
22463         (attr_length_call): Adjust for above change.
22464
22465 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22466
22467         * ipa-reference.c (static_execute): Remove module_statics_const and
22468         associated setting code.
22469
22470 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
22471
22472         PR target/35540
22473         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
22474         predicate for operand 1.
22475         (paritysi2_cmp): Use register_operand predicate for operand 2.
22476         Use earlyclobber modifier for operand 1.  Remove support for
22477         memory operands.
22478         (paritydi2_cmp): Use register_operand predicate for operand 3.
22479         Use earlyclobber modifier for operand 1.  Remove support for
22480         memory operands.
22481
22482 2008-03-11  Paul Brook  <paul@codesourcery.com>
22483             Vladimir Prus  <vladimir@codesourcery.com>
22484
22485         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
22486         (arm_compute_save_reg0_reg12_mask): Always
22487         check if register 11 must be saved.  Always safe hard frame pointer
22488         when frame_pointer_needeed.
22489         (arm_compute_save_reg_mask): Save IP and PC
22490         only with apcs frames.
22491         (arm_output_epilogue): Adjust Thumb2 codepath to
22492         be also invoked and work for ARM non-apcs frames.
22493         (arm_expand_prologue): Don't bother saving IP
22494         for non-apcs frame, since it's not clobbered by
22495         prologue code.  Implement non-apcs frame
22496         layout.
22497
22498 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
22499
22500         PR rtl-optimization/35281
22501         * expr.c (convert_move): Use a new pseudo for the intermediate
22502         from_mode->word_mode result.
22503
22504 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
22505
22506         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
22507         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
22508         * toplev.c (compile_file): Don't call it.
22509
22510 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
22511
22512         PR middle-end/35526
22513         * expr.c (store_expr): Call emit_block_move if the mode
22514         of "temp" RTX is BLKmode.
22515
22516 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22517             Richard Guenther  <rguenther@suse.de>
22518
22519         PR tree-optimization/31358
22520         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
22521         the step with a NULL_TREE.
22522         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
22523         to sizetype if type is a pointer type.
22524         (add_candidate_1): Don't convert the base and step to
22525         the generic type if the orginal type is a pointer type.
22526         (add_iv_value_candidates): Use sizetype for the step
22527         if type is a pointer type.
22528         (cand_value_at): Likewise.
22529         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
22530         for pointer types.
22531         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
22532         Don't convert the tem affine to the type.
22533         (add_elt_to_tree): Use sizetype for the step if a pointer.
22534         Use POINTER_PLUS_EXPR for pointers.
22535         (aff_combination_to_tree): Use sizetype for the step if a
22536         pointer.
22537
22538 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
22539
22540         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
22541         Remove commutativity hint.
22542
22543 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
22544
22545         PR c/35438
22546         PR c/35439
22547         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
22548         errorneous type.  Check that v is a VAR_DECL.
22549
22550         PR middle-end/35099
22551         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
22552
22553 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
22554
22555         PR tree-optimization/35494
22556         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
22557         may be overriden at link and run time.
22558
22559 2008-03-10  Richard Guenther  <rguenther@suse.de>
22560
22561         PR tree-optimization/34677
22562         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
22563         (poolify_tree): Likewise.
22564         (modify_expr_template): Likewise.
22565         (poolify_modify_stmt): Likewise.
22566         (insert_fake_stores): Handle all component-ref style stores
22567         in addition to INDIRECT_REF.  Also handle complex types.
22568         Do not poolify the inserted load.
22569         (realify_fake_stores): Do not rebuild the tree but only
22570         make it a SSA_NAME copy.
22571         (init_pre): Remove initialzation of modify_expr_template.
22572         Do not allocate modify_expr_node_pool.
22573         (fini_pre): Do not free modify_expr_node_pool.
22574
22575 2008-03-10  Paul Brook  <paul@codesourcery.com>
22576
22577         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
22578         to avoid conflicts.
22579
22580 2008-03-10  Paul Brook  <paul@codesourcery.com>
22581             Mark Shinwell  <shinwell@codesourcery.com>
22582
22583         * config/arm/cortex-r4.md: New.
22584         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
22585         insn attributes.
22586         * config/arm/arm.md: Include cortex-r4.md.
22587         (insn): Add smmls, sdiv and udiv values.
22588         (generic_sched): Don't use generic scheduling for Cortex-R4.
22589         (arm_issue_rate): New function.
22590         (TARGET_SCHED_ISSUE_RATE): Define.
22591
22592 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
22593
22594         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
22595
22596 2008-03-10  Richard Guenther  <rguenther@suse.de>
22597
22598         * tree-ssa-pre.c (get_sccvn_value): Simplify.
22599         (compute_avail): Do not add stmt uses to AVAIL_OUT.
22600
22601 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
22602
22603         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
22604         Set default to true.
22605
22606 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22607
22608         * c.opt (Wsynth): Deprecate.
22609         * doc/invoke.texi (Option Summary, Warning Options): Document
22610         -Wno-format-contains-nul.
22611
22612 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
22613
22614         PR target/35496
22615         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
22616         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
22617
22618 2008-03-09  Ira Rosen  <irar@il.ibm.com>
22619
22620         * config/rs6000/rs6000.c (builtin_description): Rename vector
22621         left shift operations.
22622         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
22623         (altivec_vsl<VI_char>): Rename to ...
22624         (ashl<mode>3): ... new name.
22625         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
22626         gen_ashlv4si3.
22627         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
22628
22629 2008-03-08  Richard Guenther  <rguenther@suse.de>
22630
22631         * coverage.h (tree_coverage_counter_addr): Declare.
22632         * coverage.c (tree_coverage_counter_addr): New function.
22633         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
22634         before using again.
22635         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
22636         (tree_gen_one_value_profiler): Likewise.
22637         (tree_gen_ic_profiler): Likewise.
22638         (tree_gen_average_profiler): Likewise.
22639         (tree_gen_ior_profiler): Likewise.
22640
22641 2008-03-08  Richard Guenther  <rguenther@suse.de>
22642
22643         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
22644         (vn_binary_op_insert): Likewise.
22645         (vn_unary_op_lookup): Likewise.
22646         (vn_unary_op_insert): Likewise.
22647         (vn_nary_op_lookup): Declare.
22648         (vn_nary_op_insert): Likewise.
22649         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
22650         and binary hashes, use a single obstack for unary_op_pool
22651         and binary_op_pool.
22652         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
22653         a single struct vn_nary_op_s.  Store tree code length and
22654         a variable number of operands.
22655         (struct vn_reference_op_struct): Remove unused op2.
22656         (vn_reference_op_eq): Do not compare op2.
22657         (vn_reference_op_compute_hash): Do not compute hash of op2.
22658         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
22659         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
22660         with vn_nary_op_compute_hash.
22661         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
22662         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
22663         vn_nary_op_lookup.
22664         (vn_unary_op_insert, vn_binary_op_insert): Replace with
22665         vn_nary_op_insert.
22666         (visit_unary_op): Call nary functions.
22667         (visit_binary_op): Likewise.
22668         (process_scc): Adjust for struct vn_tables_s changes.
22669         (allocate_vn_table): Likewise.
22670         (free_vn_table): Likewise.
22671         * tree-vn.c (vn_add): Call nary functions.
22672         (vn_lookup): Likewise.
22673
22674 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
22675
22676         PR target/35498
22677         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
22678         wdst back after sync_compare_and_swapqhi_internal.
22679
22680 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
22681
22682         PR target/22152
22683         * config/i386/i386-modes.def (V1DI): New vector mode.
22684         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
22685         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
22686         (MMXMODE248): Ditto.
22687         (MMXMODE): Add V1DI mode.
22688         (mmxvecsize): Change DI mode to V1DI mode.
22689         ("mov<mode>): Use MMXMODEI8 mode iterator.
22690         ("*mov<mode>_internal_rex64"): Ditto.
22691         ("*mov<mode>_internal"): Ditto.
22692         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
22693         ("mmx_sub<mode>3"): Ditto.
22694         ("mmx_adddi3"): Remove insn pattern.
22695         ("mmx_subdi3"): Ditto.
22696         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
22697         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
22698         ("mmx_ashl<mode>3"): Ditto.
22699         ("mmx_lshrdi3"): Remove insn pattern.
22700         ("mmx_ashldi3"): Ditto.
22701         * config/i386/i386.c (classify_argument): Handle V1DImode.
22702         (function_arg_advance_32): Ditto.
22703         (function_arg_32): Ditto.
22704         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
22705         mmx_addv1di3 insn pattern.
22706         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
22707         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
22708         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
22709         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
22710         Remove definitions of built-in functions.
22711         (V1DI_type_node): New node.
22712         (v1di_ftype_v1di_int): Ditto.
22713         (v1di_ftype_v1di_v1di): Ditto.
22714         (v2si_ftype_v2si_si): Ditto.
22715         (v4hi_ftype_v4hi_di): Remove node.
22716         (v2si_ftype_v2si_di): Ditto.
22717         (ix86_init_mmx_sse_builtins): Handle V1DImode.
22718         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
22719         Redefine builtins using def_builtin_const with *_ftype_*_int node.
22720         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
22721         Add new builtins using def_builtin_const.
22722         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
22723         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
22724         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
22725         * config/i386/mmintrin.h (__v1di): New typedef.
22726         (_mm_add_si64): Cast arguments to __v1di type.
22727         (_mm_sub_si64): Ditto.
22728         (_mm_sll_pi16): Cast __count to __v4hi type.
22729         (_mm_sll_pi32): Cast __count to __v2si type.
22730         (_mm_sll_si64): Cast arguments to __v1di type.
22731         (_mm_srl_pi16): Cast __count to __v4hi type.
22732         (_mm_srl_pi32): Cast __count to __v2si type.
22733         (_mm_srl_si64): Cast arguments to __v1di type.
22734         (_mm_sra_pi16): Cast __count to __v4hi type.
22735         (_mm_sra_pi32): Cast __count to __v2si type.
22736         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
22737         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
22738         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
22739         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
22740         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
22741         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
22742         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
22743         (_mm_srai_pi32): Use __builtin_ia32_psradi.
22744         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
22745         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
22746         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
22747         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
22748
22749 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
22750
22751         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
22752
22753 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
22754
22755         PR target/35373
22756         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
22757         reg+const addressing for Altivec modes.  Don't generate reg+reg
22758         addressing for TFmode or TDmode quantities.
22759
22760 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
22761
22762         * c-common.c (vector_types_convertible_p): Call langhook
22763         instead of comptypes.
22764
22765 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22766
22767         PR tree-opt/35402
22768         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
22769         integral and scalar float variables which have a
22770         NULL DECL_INITIAL.
22771
22772 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
22773
22774         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
22775         dwarf_register_span hook when emitting unwind information for
22776         register-to-memory saves.
22777         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
22778         (rs6000_frame_related): Remove call to spe_synthesize_frame.
22779
22780 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
22781
22782         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
22783         for the same VAR_DECL.
22784
22785 2008-03-06  Tom Tromey  <tromey@redhat.com>
22786
22787         * treelang: Delete.
22788         * doc/standards.texi (Standards): Don't mention treelang.
22789         * doc/invoke.texi (Overall Options): Don't mention treelang.
22790         * doc/install.texi (Prerequisites): Don't mention bison or
22791         treelang.
22792         (Configuration): Don't mention treelang.
22793         (Building): Likewise.
22794         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
22795
22796 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
22797
22798         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
22799         word-extractions out of a multi-word object.
22800
22801 2008-03-06  Richard Guenther  <rguenther@suse.de>
22802
22803         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
22804         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
22805         result type and precision.
22806         * expr.c (get_inner_reference): Set unsignedp based on the result
22807         type of BIT_FIELD_REF.
22808         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
22809         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
22810         (try_instantiate_multiple_fields): Likewise.  Use the correct type
22811         for BIT_FIELD_REF.
22812         (sra_build_assignment): Likewise.
22813         (sra_build_elt_assignment): Likewise.
22814         (sra_explode_bitfield_assignment): Likewise.
22815         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
22816         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
22817         set BIT_FIELD_REF_UNSIGNED.
22818         (vectorizable_load): Likewise.
22819
22820 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
22821
22822         * cse.c (cse_extended_basic_block): Invalidate artificial defs
22823         at bb start.
22824
22825 2008-03-06  Richard Guenther  <rguenther@suse.de>
22826
22827         * alias.c (struct alias_set_entry): Move has_zero_child field
22828         to pack with alias_set.
22829
22830 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
22831
22832         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22833         32bit host.
22834
22835 2008-03-05  Ian Lance Taylor  <iant@google.com>
22836
22837         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
22838
22839 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
22840
22841         * fwprop.c (update_df): Support width and offset parameters of
22842         df_ref_create.
22843         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
22844         global_conflicts): Change DF_REF_EXTRACT to either
22845         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22846         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22847         * df-scan.c (df_ref_record, df_defs_record,
22848         df_ref_create_structure, df_def_record_1, df_uses_record,
22849         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
22850         df_bb_refs_collect, df_entry_block_defs_collect,
22851         df_exit_block_uses_collect): Support new width and offset fields.
22852         (ref_extract_pool): New storage pool.
22853         (df_free_ref): New function.
22854         (df_reg_chain_unlink, df_free_collection_rec,
22855         df_sort_and_compress_refs): Call df_free_ref.
22856         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
22857         of df_ref_extract.
22858         (df_ref_create_structure): Allocate df_ref_extract if offset and
22859         width fields are used.
22860         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
22861         (df_uses_record): Get offset and width from ZERO_EXTRACT
22862         and SIGN_EXTRACT.
22863         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
22864         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22865         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22866         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
22867         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
22868         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
22869         (df_ref_extract): New structure.
22870         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
22871         (df_ref_create): Add width and offset parameters.
22872
22873 2008-03-05  Richard Guenther  <rguenther@suse.de>
22874
22875         * tree-ssa-structalias.c (get_constraint_for_component_ref):
22876         Use ranges_overlap_p.
22877         (offset_overlaps_with_access): Rename
22878         to ranges_overlap_p and move ...
22879         * tree-flow-inline.h (ranges_overlap_p): ... here.
22880
22881         * tree.h (get_inner_reference, handled_component_p): Update
22882         comments.
22883
22884         * tree.h (record_component_aliases, get_alias_set,
22885         alias_sets_conflict_p, alias_sets_must_conflict_p,
22886         objects_must_conflict_p): Move declarations ...
22887         * alias.h (record_component_aliases, get_alias_set,
22888         alias_sets_conflict_p, alias_sets_must_conflict_p,
22889         objects_must_conflict_p): ... here.
22890         Include coretypes.h.
22891         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
22892
22893 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
22894
22895         * cfg.c: Include tree-flow.h.
22896         (remove_edge_raw): Call redirect_edge_var_map_clear.
22897         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
22898         * tree-flow-inline.h (redirect_edge_var_map_def): New.
22899         (redirect_edge_var_map_result): New.
22900         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
22901         PENDING_STMT use with redirect_edge_var_map_*.
22902         * tree-ssa.c (edge_var_maps): New definition.
22903         (redirect_edge_var_map_add): New.
22904         (redirect_edge_var_map_clear): New.
22905         (redirect_edge_var_map_dup): New.
22906         (redirect_edge_var_map_vector): New.
22907         (redirect_edge_var_map_destroy): New.
22908         (ssa_redirect_edge): Replace PENDING_STMT use with
22909         redirect_edge_var_map_*.
22910         (flush_pending_stmts): Same.
22911         (delete_tree_ssa): Destroy edge var map.
22912         * tree-flow.h (struct _edge_var_map): New.
22913         Define edge_var_map vector type.
22914         Declare redirect_edge_var_map_* prototypes.
22915         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
22916         * tree-cfg.c (reinstall_phi_args): Replace
22917         PENDING_STMT use with redirect_edge_var_map_*.
22918
22919 2008-03-05  Richard Guenther  <rguenther@suse.de>
22920
22921         PR tree-optimization/35472
22922         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
22923         whose single use_stmt has a overlapping set of loaded and
22924         stored symbols as that use_stmt might be a noop assignment then.
22925
22926 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
22927
22928         * gthr-rtems.h: Implement __gthread_mutex_destroy.
22929
22930 2008-03-05  Richard Guenther  <rguenther@suse.de>
22931
22932         PR c++/35336
22933         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
22934         should be constants.
22935         * tree-cfg.c (verify_expr): Verify it.
22936         * fold-const.c (fold_truthop): Remove code generating
22937         BIT_FIELD_REFs of structure bases.
22938         (fold_binary): Likewise.
22939         (fold_ternary): Position and size of BIT_FIELD_REFs are
22940         always host integers.
22941         (make_bit_field_ref): Remove.
22942         (optimize_bit_field_compare): Remove.
22943         (all_ones_mask_p): Remove.
22944
22945 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
22946
22947         PR gcc/33009
22948         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
22949         (split_block_and_df_analyze): New. Split basic block and rebuild
22950         dataflow.
22951         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
22952         SPLIT_BLOCK.
22953         (split_pattern_seq): Likewise.
22954         (erase_matching_seqs): Likewise.
22955         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
22956
22957 2008-03-04  Geoff Keating  <geoffk@apple.com>
22958
22959         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
22960         declaration and code.
22961         (tree_invalid_nonnegative_warnv_p): Likewise.
22962
22963 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
22964
22965         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
22966         examples.  Truncate option-names then causing overfull hbox.
22967
22968 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22969
22970         PR target/35222
22971         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
22972         on hpux10.
22973         * configure: Rebuilt.
22974
22975 2008-03-04  Rafael Espíndola  <espindola@google.com>
22976
22977         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
22978         (tree_unary_nonnegative_warnv_p): New.
22979         (tree_binary_nonnegative_warnv_p): New.
22980         (tree_single_nonnegative_warnv_p): New.
22981         (tree_invalid_nonnegative_warnv_p): New.
22982         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
22983
22984 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22985
22986         PR 28322
22987         * opts.c (handle_option): Postpone 'unknown option' errors only for
22988         warning options.
22989
22990 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
22991
22992         PR target/35453
22993         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
22994         (_SIDD_XXX): This.
22995
22996 2008-03-04  Rafael Espíndola  <espindola@google.com>
22997
22998         * fold-const.c (tree_unary_nonzero_warnv_p): New.
22999         (tree_binary_nonzero_warnv_p): New.
23000         (tree_single_nonzero_warnv_p): New.
23001         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
23002
23003 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
23004
23005         PR middle-end/35456
23006         * fold-const.c (fold_cond_expr_with_comparison): Prevent
23007         transformations for modes that have signed zeros.
23008         * ifcvt.c (noce_try_abs): Ditto.
23009
23010 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
23011
23012         * config/i386/i386.c (override_options): Force
23013         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
23014
23015 2008-03-04  Jan Hubicka  <jh@suse.cz>
23016
23017         PR c++/35262
23018         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
23019         in last commit.
23020
23021 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
23022
23023         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
23024         label to probe the stack.
23025
23026 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
23027
23028         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
23029         (__gthr_win32_mutex_destroy): Declare.
23030         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
23031         __gthr_win32_mutex_destroy.
23032         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
23033
23034 2008-03-03  Jan Hubicka  <jh@suse.cz>
23035
23036         PR c++/35262
23037         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
23038         aggressive on inlining cold calls.
23039
23040 2008-03-03  Richard Guenther  <rguenther@suse.de>
23041
23042         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
23043         struct copies into the expression table.
23044         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
23045         (try_to_simplify): Likewise.
23046         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
23047         integral and pointer arguments which do not change the
23048         precision to NOP_EXPRs.
23049         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
23050         VIEW_CONVERT_EXPR case.
23051
23052 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
23053
23054         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
23055         defined in a loop at depth 0 is invariant.
23056         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
23057         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
23058         be called at loop depth 0.
23059
23060 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
23061
23062         PR driver/35420
23063         * gcc.c (process_command): Update copyright notice dates.
23064         * gcov.c (print_version): Likewise.
23065         * gcov-dump.c (print_version): Likewise.
23066         * mips-tfile.c (main): Likewise.
23067         * mips-tdump.c (main): Likewise.
23068
23069 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23070
23071         PR 24924
23072         * c-common.c (flag_permissive): Delete.
23073         (constant_expression_warnings): Check flags first.
23074         (constant_expression_error): New.
23075         * c-common.h (flag_permissive): Delete.
23076         (constant_expression_error): Declare.
23077         * flags.h (flag_permissive): Declare. Update description.
23078         * diagnostic.c (pedwarn): Update.
23079         (permerror): New.
23080         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
23081         (permissive_error_kind): New.
23082         * toplev.c (flag_permissive): Define. Update description.
23083         * toplev.h (permissive_error_kind): Declare.
23084         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
23085         (pedwarn_c90): Use pedantic_warning_kind.
23086         * c-opts.c (c_common_post_options): flag_permissive does not affect
23087         flag_pedantic_errors.
23088
23089 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
23090
23091         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
23092         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
23093         __absvsi2, __absvDI2): Use unsigned arithmetic.
23094
23095 2008-03-02  Andi Kleen  <ak@suse.de>
23096             Richard Guenther  <rguenther@suse.de>
23097
23098         * struct-equiv.c: Remove file.
23099         * cfg_cleanup.c (condjump_equiv_p): Remove.
23100         * Makefile.in (OBJS-common): Remove struct-equiv.o.
23101         (struct-equiv.o): Remove rule.
23102         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
23103         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
23104         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
23105
23106 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23107
23108         * ifcvt.c (noce_process_if_block): Try to handle only the then
23109         block if the else block exists but isn't suitable.
23110
23111 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
23112
23113         PR gcc/35063
23114         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
23115         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
23116         regression from previous patch.
23117
23118 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
23119
23120         PR gcc/35063
23121         * gthr.h: Add __gthread_mutex_destroy as a function that must be
23122         implemented.
23123         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
23124         * gthr-single.h (__gthread_mutex_destroy): Likewise.
23125         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
23126         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
23127         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
23128         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
23129         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
23130         (__gthread_mutex_destroy_function): Rename to
23131         __gthread_mutex_destroy.
23132         * gthr-dce.h (__gthread_mutex_destroy): Call
23133         pthread_mutex_destroy.
23134         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
23135         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
23136         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
23137
23138 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23139
23140         * df-scan.c (df_ref_chain_change_bb): Simplify.
23141         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
23142         set_block_for_insn if there's any change.
23143         * df.h ((df_insn_change_bb): Fix prototype.
23144         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
23145         df_insn_change_bb, don't call set_block_for_insn.
23146         * emit-rtl.c (reorder_insns): Likewise.
23147         * haifa-sched.c (move_insn): Likewise.
23148
23149 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23150
23151         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
23152
23153 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
23154
23155         * tree-flow-inline.h (next_readonly_imm_use): Return
23156         NULL_USE_OPERAND_P after the end.
23157
23158 2008-03-01  Richard Guenther  <rguenther@suse.de>
23159
23160         PR tree-optimization/35411
23161         * tree-sra.c (sra_build_assignment): Split conversion to
23162         final type to a separate statement if we are not assigning
23163         to a register.
23164
23165 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
23166
23167         * fold-const.c (fold_convertible_p): Correct the logic to follow
23168         that in fold_convert().
23169
23170 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
23171
23172         PR c++/35315
23173         * tree-inline.c (build_duplicate_type): When we make a
23174         duplicate type, make it unique in the canonical types system.
23175
23176 2008-02-29  Tom Tromey  <tromey@redhat.com>
23177
23178         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
23179         input_file_stack_history, input_file_stack_restored): Remove.
23180         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
23181         * input.h (struct file_stack): Remove.
23182         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
23183         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
23184         Likewise.
23185         * diagnostic.h (struct diagnostic_context) <last_module>: Change
23186         type.
23187         (diagnostic_last_module_changed): Add 'map' argument.
23188         (diagnostic_set_last_function): Likewise.
23189         * diagnostic.c (undiagnostic_report_current_module): Iterate using
23190         line map, not input_file_stack.
23191         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
23192
23193 2008-02-29  Paul Brook  <paul@codesourcery.com>
23194
23195         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
23196
23197 2008-02-29  Paul Brook  <paul@codesourcery.com>
23198
23199         * config/arm/ieee754-df.S (muldf3): Use RET macros.
23200
23201 2008-02-29  Richard Guenther  <rguenther@suse.de>
23202
23203         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
23204         vn_lookup_or_add.
23205         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
23206         value for comparing for a store match.
23207         (simplify_unary_expression): Do nothing for SSA_NAMEs.
23208         (try_to_simplify): Do not do a full-blown reference lookup.
23209
23210 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23211
23212         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
23213         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
23214
23215         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
23216
23217 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
23218
23219         * tree-loop-linear.c (try_interchange_loops): Compare memory access
23220         strides against cache sizes.
23221
23222 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23223
23224         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
23225         constant to fpul.
23226
23227 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
23228
23229         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
23230         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
23231         is smaller than the original promoted value.
23232         (simplify_subreg): If OP is a SUBREG, try to preserve its
23233         SUBREG_PROMOTED_VAR_P information.
23234
23235 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
23236
23237         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
23238         (VN_INFO_GET): Allocate new objects on the obstack.
23239         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
23240         for rpo_numbers_temp, for consistency.
23241         (free_scc_vn): Free the obstack.
23242
23243 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
23244
23245         * doc/invoke.texi: Document -ftree-loop-distribution.
23246         * tree-loop-distribution.c: New.
23247         * tree-pass.h (pass_loop_distribution): New.
23248         * graphds.h (struct graph): Add htab_t indices.
23249         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
23250         * tree-vectorizer.c (rename_variables_in_loop): Extern.
23251         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
23252         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
23253         * tree-data-ref.c (debug_data_dependence_relations): New.
23254         (dump_data_dependence_relation): Also print data references.
23255         (free_data_ref): Extern.
23256         (same_access_functions): Moved...
23257         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
23258         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
23259         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
23260         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
23261         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
23262         (stmts_from_loop): Skip LABEL_EXPR.
23263         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
23264         New.
23265         (build_rdg): Initialize rdg->indices htab.
23266         (free_rdg, stores_from_loop, ref_base_address,
23267         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
23268         have_similar_memory_accesses_1, ref_base_address_1,
23269         remove_similar_memory_refs): New.
23270         * tree-data-ref.h: Depend on tree-chrec.h.
23271         (debug_data_dependence_relations, free_data_ref): Declared.
23272         (same_access_functions): ... here.
23273         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
23274         New.
23275         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
23276         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
23277         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
23278         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
23279         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
23280         rdg_vertex_for_stmt): Declared.
23281         (struct rdg_edge): Add level.
23282         (RDGE_LEVEL): New.
23283         (free_rdg, stores_from_loop, remove_similar_memory_refs,
23284         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
23285         Declared.
23286         (rdg_has_similar_memory_accesses): New.
23287         * tree-vect-analyze.c: Remove unused static decls.
23288         * lambda.h (dependence_level): New.
23289         * common.opt (ftree-loop-distribution): New.
23290         * tree-flow.h (mark_virtual_ops_in_bb,
23291         slpeel_tree_duplicate_loop_to_edge_cfg,
23292         rename_variables_in_loop): Declared.
23293         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
23294         (OBJS-common): Add tree-loop-distribution.o.
23295         (tree-loop-distribution.o): New rule.
23296         * tree-cfg.c (mark_virtual_ops_in_bb): New.
23297         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
23298         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
23299
23300 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
23301
23302         PR target/33963
23303         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
23304         other than structures and unions.
23305
23306 2008-02-28  Richard Guenther  <rguenther@suse.de>
23307
23308         Revert:
23309         2008-02-26  Richard Guenther  <rguenther@suse.de>
23310
23311         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23312         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23313         (lookup_decl_from_uid): Declare.
23314         (remove_decl_from_map): Likewise.
23315         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23316         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23317         (decl_for_uid_map): New global hashtable mapping DECL_UID
23318         to the decl tree.
23319         (init_ttree): Allocate it.
23320         (insert_decl_to_uid_decl_map): New helper function.
23321         (make_node_stat): Insert new decls into the map.
23322         (copy_node_stat): Likewise.
23323         (lookup_decl_from_uid): New function.
23324         (remove_decl_from_map): Likewise.
23325         (print_decl_for_uid_map_statistics): New helper.
23326         (dump_tree_statistics): Call it.
23327
23328         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23329         (referenced_var_iterator): Adjust.
23330         (FOR_EACH_REFERENCED_VAR): Adjust.
23331         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23332         (num_referenced_vars): Adjust.
23333         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23334         (first_referenced_var): Remove.
23335         (end_referenced_vars_p): Likewise.
23336         (next_referenced_var): Likewise.
23337         (referenced_var_iterator_set): New helper function.
23338         * tree-dfa.c (referenced_var_lookup): Adjust.
23339         (referenced_var_check_and_insert): Likewise.
23340         (remove_referenced_var): Likewise.
23341         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23342         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23343         (verify_call_clobbering): Likewise.
23344         (verify_memory_partitions): Likewise.
23345         (init_tree_ssa): Allocate bitmap instead of hashtable for
23346         referenced_vars.
23347         (delete_tree_ssa): Adjust.
23348         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23349         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23350         (compute_tag_properties): Likewise.
23351         (set_initial_properties): Likewise.
23352         (find_partition_for): Likewise.
23353         (update_reference_counts): Likewise.
23354         (dump_may_aliases_for): Likewise.
23355         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23356         (add_call_clobber_ops): Likewise.
23357         (add_call_read_ops): Likewise.
23358         (get_asm_expr_operands): Likewise.
23359         * tree-into-ssa.c (dump_decl_set): Likewise.
23360         (update_ssa): Likewise.
23361         * tree-sra.c (scan_function): Likewise.
23362         (decide_instantiations): Likewise.
23363         (scalarize_parms): Likewise.
23364         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23365         (dsa_named_for): Likewise.
23366         * tree-ssa-structalias.c (update_alias_info): Likewise.
23367         (merge_smts_into): Likewise.
23368
23369 2008-02-27  David Daney  <ddaney@avtrex.com>
23370
23371         PR target/34409
23372         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
23373         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
23374         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
23375         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
23376         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
23377
23378 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
23379
23380         PR target/25477
23381         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
23382         (BUILT_IN_NEXTTOWARD): Remove.
23383         (BUILT_IN_NEXTTOWARDF): Ditto.
23384         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
23385         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
23386
23387 2008-02-27  Tom Tromey  <tromey@redhat.com>
23388
23389         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
23390         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
23391
23392 2008-02-27  Jan Beulich  <jbeulich@novell.com>
23393
23394         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
23395         update the respective field on newdecl.
23396
23397 2008-02-27  Revital Eres  <eres@il.ibm.com>
23398
23399         PR rtl-optimization/34999
23400         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
23401         crossing edges that ends with a call insn.
23402         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
23403         call insn and clear the EDGE_CROSSING flag of the crossing edge
23404         when fixing fallthru edges.
23405
23406 2008-02-27  Richard Guenther  <rguenther@suse.de>
23407
23408         PR middle-end/35390
23409         * fold-const.c (fold_unary): Return the correct argument,
23410         converted to the result type.
23411
23412 2008-02-27  Richard Guenther  <rguenther@suse.de>
23413
23414         PR middle-end/34971
23415         * expr.c (expand_expr_real_1): Assert on rotates that operate
23416         on partial modes.
23417         * fold-const.c (fold_binary): Use the types precision, not the
23418         bitsize of the mode if folding rotate expressions.  Build rotates
23419         only for full modes.
23420
23421 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
23422
23423         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
23424         and CPP_PRAGMA_EOL.
23425         * c-pragma.c (pragma_ns_name): New typedef.
23426         (registered_pp_pragmas): New variable.
23427         (c_pp_lookup_pragma): New function.
23428         (c_register_pragma_1): If flag_preprocess_only, do nothing
23429         for non-expanded pragmas, for expanded ones push pragma's
23430         namespace and name into registered_pp_pragmas vector.
23431         (c_invoke_pragma_handler): Register OpenMP pragmas even when
23432         flag_preprocess_only, don't register GCC pch_preprocess
23433         pragma if flag_preprocess_only.
23434         * c-opts.c (c_common_init): Call init_pragma even if
23435         flag_preprocess_only.
23436         * c-pragma.c (c_pp_lookup_pragma): New prototype.
23437         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
23438         cpp_register_pragma if flag_preprocess_only.
23439
23440 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23441
23442         PR c/28800
23443         * c-parser.c (c_parser_translation_unit): Warn for empty
23444         translation unit, not empty source file.
23445
23446 2008-02-26  Paul Brook  <paul@codesourcery.com>
23447
23448         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
23449         operand for Thumb-2.
23450         * config/arm/arm.h (reg_class): Add CORE_REGS.
23451         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
23452         (BASE_REG_CLASS): Use CORE_REGS.
23453         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
23454         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
23455         (REGNO_OK_FOR_INDEX_P): Exclude SP.
23456         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
23457         ARM_REGNO_OK_FOR_INDEX_P.
23458         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
23459         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
23460         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
23461         (ldm/stm peepholes): Ditto.
23462         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
23463         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
23464         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
23465         * config/arm/constraints.md: Enable "k" constraint on ARM.
23466
23467 2008-02-27  Ben Elliston  <bje@au.ibm.com>
23468
23469         * config/rs6000/rs6000.c: Annotate cache line size field in all
23470         instances of struct processor_costs.
23471
23472 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
23473
23474         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
23475         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
23476         jump_bypass): New counters.
23477         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
23478         * dce.c (gate_ud_dce): Same.
23479         (gate_fast_dce): Same.
23480         * dse.c (gate_dse1): New function.
23481         (gate_dse2): New function.
23482         (gate_dse): Merge results of new gate functions.
23483         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
23484         (gate_handle_jump_bypass): Add dbg_cnt.
23485         (gate_handle_gcse): Add dbg_cnt.
23486         * ifcvt.c (gate_handle_if_conversion): Same.
23487         (gate_handle_if_after_combine): Same.
23488         (gate_handle_if_after_reload): Same.
23489         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
23490
23491 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
23492
23493         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
23494         line sizes.
23495         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
23496
23497 2008-02-26  Jason Merrill  <jason@redhat.com>
23498
23499         PR c++/35315
23500         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
23501         alone if it's the naming decl for the type's main variant.
23502
23503 2008-02-26  Tom Tromey  <tromey@redhat.com>
23504
23505         * system.h (USE_MAPPED_LOCATION): Poison.
23506         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
23507         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
23508         (make_goto_expr_edges): Likewise.
23509         (remove_bb): Likewise.
23510         (execute_warn_function_return): Likewise.
23511         * basic-block.h (struct edge_def) <goto_locus>: Change type to
23512         location_t.
23513         * c-common.c (fname_decl): Remove old location code.
23514         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
23515         location code.
23516         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
23517         variant.
23518         (ASM_INPUT_SOURCE_LOCATION): Likewise.
23519         (gen_rtx_ASM_INPUT): Likewise.
23520         (gen_rtx_ASM_INPUT_loc): Likewise.
23521         (get_rtx_asm_OPERANDS): Remove.
23522         * cfglayout.c (insn_locators_alloc): Remove old location code.
23523         (set_curr_insn_source_location): Likewise.
23524         (curr_insn_locator): Likewise.
23525         * print-tree.c (print_node): Remove old location code.
23526         * tree-mudflap.c (mf_varname_tree): Remove old location code.
23527         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
23528         * cfgexpand.c (expand_gimple_cond_expr): Don't use
23529         location_from_locus.
23530         (construct_exit_block): Remove old location code.
23531         * emit-rtl.c (force_next_line_note): Remove old location code.
23532         * profile.c (branch_prob): Remove old location code.
23533         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
23534         LOC_LINE): Remove old-location variants.
23535         * langhooks.c (lhd_print_error_function): Remove old location
23536         code.
23537         * configure, config.in: Rebuilt.
23538         * configure.ac (--enable-mapped-location): Remove.
23539         * c-decl.c (c_init_decl_processing): Remove old location code.
23540         (finish_function): Likewise.
23541         * recog.c (decode_asm_operands): Remove old location code.
23542         * c-pch.c (c_common_read_pch): Remove old location code.
23543         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
23544         variants.
23545         * gimple-low.c (lower_function_body): Remove old location code.
23546         * toplev.c (unknown_location): Remove.
23547         (push_srcloc): Remove old-location variant.
23548         (process_options): Remove old location code.
23549         (lang_dependent_init): Likewise.
23550         * input.h (UNKNOWN_LOCATION): Move definition.
23551         (location_t): Undeprecate.
23552         (source_locus): Remove.
23553         (location_from_locus): Remove.
23554         (struct location_s): Remove.
23555         Remove all old-location code.
23556         (input_line, input_filename): Remove.
23557         * final.c (final_scan_insn): Remove old location code.
23558         * diagnostic.c (diagnostic_build_prefix): Remove
23559         USE_MAPPED_LOCATION test.
23560         * tree.h (gimple_stmt) <locus>: Now a location_t.
23561         (tree_exp) <locus>: Likewise.
23562         (DECL_IS_BUILTIN): Remove old-location variant.
23563         (annotate_with_file_line, annotate_with_locus): Likewise.
23564         (expr_locus, set_expr_locus): Update.
23565         * tree.c (build1_stat): Remove old location code.
23566         (last_annotated_node): Remove.
23567         (annotate_with_file_line): Remove old-location variant.
23568         (annotate_with_locus): Likewise.
23569         (expr_location): Remove old location code.
23570         (set_expr_location): Likewise.
23571         (expr_has_location): Likewise.
23572         (expr_locus): Likewise.
23573         (set_expr_locus): Likewise.
23574         (expr_filename): Don't use location_from_locus.
23575         (expr_lineno): Likewise.
23576         * rtl-error.c (location_for_asm): Remove old location code.
23577         * c-lex.c (cb_line_change): Remove old location code.
23578         (fe_file_change): Likewise.
23579         (cb_def_pragma): Likewise.
23580         (c_lex_with_flags): Likewise.
23581         * gengtype.c (do_typedef): Don't special-case location types.
23582         (define_location_structures): Remove.
23583         (main): Don't call define_location_structures.
23584         * tree-pretty-print.c (dump_implicit_edges): Remove old location
23585         code.
23586
23587 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23588
23589         PR 26264
23590         * builtins.def (BUILT_IN_STDARG_START): Remove.
23591         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
23592         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
23593         * tree-inline.c (inline_forbidden_p_1): Likewise.
23594
23595 2008-02-26  Richard Guenther  <rguenther@suse.de>
23596
23597         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23598         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23599         (lookup_decl_from_uid): Declare.
23600         (remove_decl_from_map): Likewise.
23601         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23602         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23603         (decl_for_uid_map): New global hashtable mapping DECL_UID
23604         to the decl tree.
23605         (init_ttree): Allocate it.
23606         (insert_decl_to_uid_decl_map): New helper function.
23607         (make_node_stat): Insert new decls into the map.
23608         (copy_node_stat): Likewise.
23609         (lookup_decl_from_uid): New function.
23610         (remove_decl_from_map): Likewise.
23611         (print_decl_for_uid_map_statistics): New helper.
23612         (dump_tree_statistics): Call it.
23613
23614         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23615         (referenced_var_iterator): Adjust.
23616         (FOR_EACH_REFERENCED_VAR): Adjust.
23617         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23618         (num_referenced_vars): Adjust.
23619         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23620         (first_referenced_var): Remove.
23621         (end_referenced_vars_p): Likewise.
23622         (next_referenced_var): Likewise.
23623         (referenced_var_iterator_set): New helper function.
23624         * tree-dfa.c (referenced_var_lookup): Adjust.
23625         (referenced_var_check_and_insert): Likewise.
23626         (remove_referenced_var): Likewise.
23627         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23628         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23629         (verify_call_clobbering): Likewise.
23630         (verify_memory_partitions): Likewise.
23631         (init_tree_ssa): Allocate bitmap instead of hashtable for
23632         referenced_vars.
23633         (delete_tree_ssa): Adjust.
23634         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23635         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23636         (compute_tag_properties): Likewise.
23637         (set_initial_properties): Likewise.
23638         (find_partition_for): Likewise.
23639         (update_reference_counts): Likewise.
23640         (dump_may_aliases_for): Likewise.
23641         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23642         (add_call_clobber_ops): Likewise.
23643         (add_call_read_ops): Likewise.
23644         (get_asm_expr_operands): Likewise.
23645         * tree-into-ssa.c (dump_decl_set): Likewise.
23646         (update_ssa): Likewise.
23647         * tree-sra.c (scan_function): Likewise.
23648         (decide_instantiations): Likewise.
23649         (scalarize_parms): Likewise.
23650         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23651         (dsa_named_for): Likewise.
23652         * tree-ssa-structalias.c (update_alias_info): Likewise.
23653         (merge_smts_into): Likewise.
23654
23655 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23656
23657         PR 34351
23658         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
23659         * c-opts.c (c_common_handle_option): Wall enables
23660         Wvolatile-register-var.
23661         * common.opt: Move Wvolatile-register-var to...
23662         * c.opt: ...here.
23663
23664 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23665
23666         * common.opt (Wlarger-than=): New.
23667         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
23668         -Wlarger-than=.
23669         * opts.c (common_handle_option): Handle -Wlarger-than=.
23670         * optc-gen.awk: Likewise.
23671         * opth-gen.awk: Likewise.
23672         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
23673         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23674
23675 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23676
23677         * c-common.c (match_case_to_enum_1): Add appropriate
23678         OPT_W* parameter to warning.
23679         (c_do_switch_warnings): Likewise.
23680         * c-typeck.c (warning_init): Add one more parameter following
23681         'warning' function.
23682         (push_init_level): Update call to warning_init.
23683         (pop_init_level): Likewise.
23684         (add_pending_init): Likewise.
23685         (output_init_element: Likewise.
23686
23687 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23688
23689         PR 28322
23690         * toplev.c (toplev_main): If there are warnings or error, print
23691         errors for ignored options.
23692         * opts.c (ignored_options): New static variable.
23693         (postpone_unknown_option_error): New.
23694         (print_ignored_options): New.
23695         (handle_option): Postpone errors for unknown -Wno-* options.
23696         * opts.h (print_ignored_options): Declare.
23697
23698 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
23699
23700         * config/mips/mips.md (loadgp_blockage, blockage): Change type
23701         to "ghost".
23702
23703 2008-02-25  Richard Guenther  <rguenther@suse.de>
23704
23705         Revert:
23706         2008-02-25  Richard Guenther  <rguenther@suse.de>
23707
23708         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23709         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23710         (lookup_decl_from_uid): Declare.
23711         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23712         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23713         (decl_for_uid_map): New global hashtable mapping DECL_UID
23714         to the decl tree.
23715         (init_ttree): Allocate it.
23716         (insert_decl_to_uid_decl_map): New helper function.
23717         (make_node_stat): Insert new decls into the map.
23718         (copy_node_stat): Likewise.
23719         (lookup_decl_from_uid): New function.
23720         (print_decl_for_uid_map_statistics): New helper.
23721         (dump_tree_statistics): Call it.
23722
23723         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23724         (referenced_var_iterator): Adjust.
23725         (FOR_EACH_REFERENCED_VAR): Adjust.
23726         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23727         (num_referenced_vars): Adjust.
23728         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23729         (first_referenced_var): Remove.
23730         (end_referenced_vars_p): Likewise.
23731         (next_referenced_var): Likewise.
23732         (referenced_var_iterator_set): New helper function.
23733         * tree-dfa.c (referenced_var_lookup): Adjust.
23734         (referenced_var_check_and_insert): Likewise.
23735         (remove_referenced_var): Likewise.
23736         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23737         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23738         (verify_call_clobbering): Likewise.
23739         (verify_memory_partitions): Likewise.
23740         (init_tree_ssa): Allocate bitmap instead of hashtable for
23741         referenced_vars.
23742         (delete_tree_ssa): Adjust.
23743         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23744         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23745         (compute_tag_properties): Likewise.
23746         (set_initial_properties): Likewise.
23747         (find_partition_for): Likewise.
23748         (update_reference_counts): Likewise.
23749         (dump_may_aliases_for): Likewise.
23750         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23751         (add_call_clobber_ops): Likewise.
23752         (add_call_read_ops): Likewise.
23753         (get_asm_expr_operands): Likewise.
23754         * tree-into-ssa.c (dump_decl_set): Likewise.
23755         (update_ssa): Likewise.
23756         * tree-sra.c (scan_function): Likewise.
23757         (decide_instantiations): Likewise.
23758         (scalarize_parms): Likewise.
23759         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23760         (dsa_named_for): Likewise.
23761         * tree-ssa-structalias.c (update_alias_info): Likewise.
23762         (merge_smts_into): Likewise.
23763
23764 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
23765
23766         PR fortran/29549
23767         * doc/invoke.texi (-fcx-limited-range): Document new option.
23768         * toplev.c (process_options): Handle -fcx-fortran-rules.
23769         * common.opt: Add documentation for -fcx-fortran-rules.
23770
23771 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
23772
23773         PR c/35162
23774         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
23775         actual behaviour and C99.
23776
23777 2008-02-26  Ben Elliston  <bje@au.ibm.com>
23778
23779         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
23780         (ASM_CPU_POWER6_SPEC): Likewise.
23781         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
23782         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
23783         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
23784
23785 2008-02-25  Richard Guenther  <rguenther@suse.de>
23786
23787         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
23788         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
23789         (lookup_decl_from_uid): Declare.
23790         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
23791         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
23792         (decl_for_uid_map): New global hashtable mapping DECL_UID
23793         to the decl tree.
23794         (init_ttree): Allocate it.
23795         (insert_decl_to_uid_decl_map): New helper function.
23796         (make_node_stat): Insert new decls into the map.
23797         (copy_node_stat): Likewise.
23798         (lookup_decl_from_uid): New function.
23799         (print_decl_for_uid_map_statistics): New helper.
23800         (dump_tree_statistics): Call it.
23801
23802         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
23803         (referenced_var_iterator): Adjust.
23804         (FOR_EACH_REFERENCED_VAR): Adjust.
23805         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
23806         (num_referenced_vars): Adjust.
23807         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
23808         (first_referenced_var): Remove.
23809         (end_referenced_vars_p): Likewise.
23810         (next_referenced_var): Likewise.
23811         (referenced_var_iterator_set): New helper function.
23812         * tree-dfa.c (referenced_var_lookup): Adjust.
23813         (referenced_var_check_and_insert): Likewise.
23814         (remove_referenced_var): Likewise.
23815         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
23816         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23817         (verify_call_clobbering): Likewise.
23818         (verify_memory_partitions): Likewise.
23819         (init_tree_ssa): Allocate bitmap instead of hashtable for
23820         referenced_vars.
23821         (delete_tree_ssa): Adjust.
23822         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
23823         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
23824         (compute_tag_properties): Likewise.
23825         (set_initial_properties): Likewise.
23826         (find_partition_for): Likewise.
23827         (update_reference_counts): Likewise.
23828         (dump_may_aliases_for): Likewise.
23829         * tree-ssa-operands.c (add_virtual_operand): Likewise.
23830         (add_call_clobber_ops): Likewise.
23831         (add_call_read_ops): Likewise.
23832         (get_asm_expr_operands): Likewise.
23833         * tree-into-ssa.c (dump_decl_set): Likewise.
23834         (update_ssa): Likewise.
23835         * tree-sra.c (scan_function): Likewise.
23836         (decide_instantiations): Likewise.
23837         (scalarize_parms): Likewise.
23838         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
23839         (dsa_named_for): Likewise.
23840         * tree-ssa-structalias.c (update_alias_info): Likewise.
23841         (merge_smts_into): Likewise.
23842
23843 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
23844
23845         PR target/35258
23846         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
23847         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
23848         * alias.h (nonoverlapping_memrefs_p): Likewise.
23849
23850 2008-02-25  Jan Beulich  <jbeulich@novell.com>
23851
23852         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
23853         * config/i386/netware-libgcc.exp: Add __bswap?i2,
23854         __emultls_get_address, __emultls_register_common,
23855         __floatundi?f, and _Unwind_GetIPInfo.
23856         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
23857         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
23858         (gen_regparm_prefix): Likewise.
23859         (i386_nlm_encode_section_info): Sync with
23860         config/i386/winnt.c:i386_pe_encode_section_info().
23861         (i386_nlm_maybe_mangle_decl_assembler_name): New.
23862         i386_nlm_mangle_decl_assembler_name): New.
23863         (netware_override_options): New.
23864         * config/i386/netware.h (netware_override_options): Declare.
23865         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
23866         (i386_nlm_mangle_decl_assembler_name): Declare.
23867         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
23868
23869 2008-02-25  Ben Elliston  <bje@au.ibm.com>
23870
23871         PR other/32948
23872         * c-decl.c (grokdeclarator): Remove unused local variables
23873         `typedef_type' and `type_as_written'.
23874         * bb-reorder.c
23875         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
23876         unused local variable `has_hot_blocks'.
23877         (fix_crossing_conditional_branches): Remove unused local variable
23878         `prev_bb'.
23879
23880 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
23881
23882         PR middle-end/19984
23883         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
23884         using DEF_C99_BUILTIN.
23885         (BUILT_IN_NANF): Ditto.
23886         (BUILT_IN_NANL): Ditto.
23887
23888 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
23889             Revital Eres  <eres@il.ibm.com>
23890
23891         * modulo-sched.c (calculate_must_precede_follow): Address TODO
23892         regarding the order of two dependent insns in the same row.
23893
23894 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23895
23896         * stor-layout.c (layout_decl): Do not bump the alignment of a
23897         bit-field to more than byte alignment if it is packed.
23898
23899 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
23900
23901         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
23902         e300c2 and e300c3.
23903
23904 2008-02-24  Diego Novillo  <dnovillo@google.com>
23905
23906         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
23907
23908         PR 33738
23909         * tree-vrp.c (vrp_evaluate_conditional): With
23910         -Wtype-limits, emit a warning when comparing against a
23911         constant outside the natural range of OP0's type.
23912         * c.opt (Wtype-limits): Move ...
23913         * common.opt (Wtype-limits): ... here.
23914
23915 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
23916
23917         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
23918         * config/rs6000/e300c2c3.md: New file.
23919         * config/rs6000/rs6000.c (processor_costs): Add new costs for
23920         e300c2 and e300c3.
23921         (rs6000_override_options): Add e300c2 and e300c3 cases to
23922         processor_target_table. Do not allow usage of Altivec or Spe
23923         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
23924         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
23925         * config/rs6000/rs6000.h (processor_type): Add
23926         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
23927         (ASM_CPU_SPEC): Add e300c2 and e300c3.
23928         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
23929         and ppce300c3. Include e300c2c3.md.
23930
23931 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
23932
23933         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
23934         instead of TARGET_STRICT_ALIGN.
23935
23936 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
23937
23938         * explow.c (memory_address): Assert that the generated address is
23939         valid.
23940
23941 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
23942
23943         PR target/25477
23944         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
23945         * config/darwin-ppc-ldouble-patch.def: New file.
23946         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
23947         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
23948         SUBTARGET_INIT_BUILTINS if defined.
23949         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
23950         New functions.
23951
23952 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23953
23954         PR rtl-opt/33512
23955         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
23956         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
23957
23958 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23959
23960         PR pch/35027
23961         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
23962         file" warning condtional on -Winvalid-PCH.
23963
23964 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
23965
23966         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
23967
23968 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
23969
23970         PR target/22076
23971         PR target/34256
23972         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
23973         prevent reload from using MMX registers.
23974         (*mov<mode>_internal): Ditto.
23975         (*movv2sf_internal_rex64): Ditto.
23976         (*movv2sf_internal): Ditto.
23977
23978 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23979
23980         PR documentation/31569
23981         * doc/install.texi2html: Use makeinfo --no-number-sections.
23982
23983 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
23984
23985         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
23986         ensure that we can address an entire entity > 8 bytes.  Don't
23987         generate reg+reg addressing for such data.
23988
23989 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
23990
23991         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
23992         strings when optimizing for size, unless the target cares about
23993         alignment.
23994
23995 2008-02-22  Tom Tromey  <tromey@redhat.com>
23996
23997         * regclass.c (current_pass): Remove declaration.
23998
23999 2008-02-22  Anatoly Sokolov <aesok@post.ru>
24000
24001         * config/avr/libgcc.S (__RAMPZ__): Define.
24002         (__do_copy_data): Add for devices with 128KB code memory.
24003
24004 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
24005
24006         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
24007         Use spe_abi.
24008         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
24009
24010 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
24011
24012         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
24013         GENNONACR_REGS.
24014
24015 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24016
24017         PR c/19999
24018         * c-typeck.c (build_binary_op): Warn about floating point
24019         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
24020
24021 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
24022
24023         PR target/34526
24024         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
24025         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
24026         add vrsave.
24027         (rs6000_override_options): Set altivec_abi as default, not override,
24028         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
24029         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
24030         is used; use new member spe_abi.
24031         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
24032         spe_abi and altivec_abi.
24033
24034 2008-02-22  Tomas Bily  <tbily@suse.cz>
24035
24036         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
24037
24038 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24039
24040         PR bootstrap/35273
24041         * config.build (build_file_translate): Set to `CMD //c' only if
24042         it works.
24043         * Makefile.in (build_file_translate): Improve comment.
24044
24045 2008-02-21  Jan Hubicka  <jh@suse.cz>
24046
24047         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
24048         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
24049         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
24050
24051 2008-02-21  Michael Matz  <matz@suse.de>
24052
24053         PR target/35264
24054         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
24055
24056 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
24057
24058         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
24059         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
24060         as insn constraint.
24061         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
24062         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
24063         SSE_VEC_FLOAT_MODE_P as insn constraint.
24064         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
24065         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
24066         sse4a_movntdf using MODEF mode iterator.
24067         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
24068         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
24069         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
24070         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
24071         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
24072         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
24073         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
24074
24075 2008-02-21  Richard Guenther  <rguenther@suse.de>
24076
24077         * tree.def (PAREN_EXPR): New tree code.
24078         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
24079         and PAREN_EXPR.
24080         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
24081         * expr.c (expand_expr_real_1): Likewise.
24082         * tree-inline.c (estimate_num_insns_1): Likewise.
24083         * tree-complex.c (expand_complex_move): Likewise.
24084         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
24085         as plain x.
24086
24087 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24088
24089         PR target/35225
24090         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
24091
24092 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24093
24094         PR target/35190
24095         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
24096
24097         * config/sh/sh.c (find_barrier): Don't go past
24098         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
24099
24100 2008-02-20  DJ Delorie  <dj@redhat.com>
24101
24102         * config/h8300/h8300.md (insv): Force source operand to be a register.
24103
24104         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
24105         as a jump, not as a plain insn.
24106
24107 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
24108
24109         * doc/invoke.texi (Warning Options): Add new option
24110         -Wframe-larger-than=.
24111         (-Wframe-larger-than): Document.
24112
24113         * flags.h (warn_frame_larger_than, frame_larger_than_size):
24114         Add declarations for new option variables.
24115
24116         * final.c (final_start_function): Check the frame size
24117         before emission and issue a Wframe-larger-than warning.
24118
24119         * opts.c (warn_frame_larger_than, frame_larger_than_size):
24120         Add definitions for new option variables.
24121         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
24122
24123         * common.opt (Wframe-larger-than=): New option.
24124
24125 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
24126
24127         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
24128         (<sse>_div<mode>3): Ditto.
24129         (<sse>_vmdiv<mode>3): Ditto.
24130         (<sse>_vmsqrt<mode>2): Ditto.
24131         (*smax<mode>3): Ditto.
24132         (sse5_frcz<mode>2): Ditto.
24133         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
24134         as insn constraint.
24135
24136 2008-02-20  Richard Guenther  <rguenther@suse.de>
24137
24138         PR middle-end/35265
24139         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
24140         be happy with INTEGRAL_TYPE_P.
24141
24142 2008-02-20  Richard Guenther  <rguenther@suse.de>
24143
24144         * fold-const.c (split_tree): Associate floatig-point expressions
24145         if flag_associative_math is set.
24146
24147 2008-02-20  Richard Guenther  <rguenther@suse.de>
24148
24149         * tree.h (fold_real_zero_addition_p): Declare.
24150         * fold-const.c (fold_real_zero_addition_p): Export.
24151         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
24152         floating-point operations with zero and one.
24153
24154 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
24155
24156         * doc/install.texi: Correct references to CFLAGS, replacing them
24157         with BOOT_CFLAGS.  Document flags used during bootstrap for
24158         target libraries.
24159
24160 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
24161
24162         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
24163         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
24164         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
24165         insn constraint.
24166         (smin<mode>3): Ditto from similar patterns.
24167         (smax<mode>3): Ditto.
24168         (*ieee_smin<mode>3): Ditto.
24169         (*ieee_smax<mode>3): Ditto.
24170         * config/i386/sse.md (sse): New mode attribute.
24171         (mov<mode>): Macroize expander from movv4sf and movv2df using
24172         SSEMODEF2P mode iterator.
24173         (<sse>_movnt<mode>): Ditto from similar patterns. Use
24174         SSE_VEC_FLOAT_MODE_P as insn constraint.
24175         (storent<mode>): Ditto.
24176         (storent<mode>): Macroize expander from storentsf and storentdf using
24177         MODEF mode iterator.
24178         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
24179         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
24180         (abs<mode>2): Ditto from similar patterns.
24181         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
24182         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
24183         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
24184         (<sse>_vmsqrt<mode>2): Ditto.
24185         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
24186         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
24187         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
24188         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
24189         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
24190         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
24191         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
24192         insn constraint.
24193         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
24194         iterator and SSE_FLOAT_MODE_P as insn constraint.
24195         (<sse>_ucomi): Ditto from similar patterns.
24196         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
24197         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
24198         SSE_VEC_FLOAT_MODE_P as insn constraint.
24199         (vcond<mode>): Ditto from similar patterns.
24200         (and<mode>3, *and<mode>3): Ditto.
24201         (<sse>_nand<mode>3): Ditto.
24202         (ior<mode>3, *ior<mode>3): Ditto.
24203         (xor<mode>3, *xor<mode>3): Ditto.
24204         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
24205         iterator and SSE_FLOAT_MODE_P as insn constraint.
24206         (*nand<mode>3): Ditto from similar patterns.
24207         (*ior<mode>3): Ditto.
24208         (*xor<mode>3): Ditto.
24209
24210 2008-02-20  Ira Rosen  <irar@il.ibm.com>
24211
24212         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
24213         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
24214         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
24215
24216 2008-02-19  Jan Hubicka  <jh@suse.cz>
24217
24218         * predict.c (tree_bb_level_predictions): Remove variable next
24219         mistakely introduced by previous commit.
24220
24221 2008-02-19  Jan Hubicka  <jh@suse.cz>
24222
24223         * predict.c (predict_paths_leading_to): Rewrite.
24224         (predict_paths_for_bb): New.
24225         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
24226
24227 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24228
24229         PR bootstrap/35218
24230         * Makefile.in (build_file_translate): New.
24231         (gcc-vers.texi): Use it for translating $(abs_srcdir).
24232         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
24233         * configure.ac (build_file_translate): Substitute it.
24234         * configure: Regenerate.
24235
24236 2008-02-19  Jan Hubicka  <jh@suse.cz>
24237
24238         PR rtl-optimization/34408
24239         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
24240         invalid sharing.
24241
24242 2008-02-19  Jan Hubicka  <jh@suse.cz>
24243
24244         PR middle-end/28779
24245         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
24246         call_expr.
24247
24248 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
24249
24250         PR Ada/35186
24251         * config/i386/i386-modes.def: Revert the last DI alignment
24252         change until Ada people can look into it.
24253
24254 2008-02-19  Nick Clifton  <nickc@redhat.com>
24255
24256         * opts.c (print_specific_help): Fix typo in --help text.
24257
24258 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
24259
24260         PR target/35239
24261         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
24262         32-bit inline asm without asm alternatives for host GCC < 3.0.
24263
24264 2008-02-19  Richard Guenther  <rguenther@suse.de>
24265
24266         PR tree-optimization/34989
24267         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
24268         Allow propagation to INDIRECT_REF if we can simplify only.
24269
24270 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24271
24272         * c-common.c (warn_for_collisions_1): Use appropriate option when
24273         warning.
24274
24275 2008-02-19  Nick Clifton  <nickc@redhat.com>
24276
24277         PR other/31349
24278         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
24279         (handle_options): Fix indentation.
24280         (print_filtered_help): If no language-specific options were
24281         displayed tell the user how to list all the options supported by
24282         the language's front-end.
24283         (print_specific_help): Fix indentation and remove duplicate line.
24284         (common_handle_option): Handle the -v option.
24285         For --help enable the display of undocumented options if the -v
24286         switch has been included on the command line.
24287         For --help= check for overlaps in the arguments between the option
24288         classes and the language names and issue a warning when they
24289         cannot be disambiguated.
24290         * c.opt (v): Pass on to the common option handler.
24291
24292 2008-02-19  Revital Eres  <eres@il.ibm.com>
24293
24294         * modulo-sched.c (sms_schedule): Change dump message when
24295         create_ddg function fails.
24296         (try_scheduling_node_in_cycle): Rename row to cycle.
24297         (print_partial_schedule): Rename CYCLE to ROW.
24298
24299 2008-02-19  Christian Bruel  <christian.bruel@st.com>
24300             Zdenek Dvorak  <ook@ucw.cz>
24301
24302         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
24303
24304 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
24305
24306         PR target/33555
24307         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
24308         (*x86_movdicc_0_m1_se): Ditto.
24309
24310 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
24311
24312         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
24313         (CMPtype): Define as __gcc_CMPtype.
24314         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
24315         (CMPtype): Define as __gcc_CMPtype.
24316
24317 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
24318
24319         Support valgrind 3.3 for --enable-checking=valgrind.
24320         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
24321         here.
24322         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
24323         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
24324         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
24325         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
24326         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
24327         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
24328         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
24329         respectively.
24330         * ggc-zone.c: Similar.
24331         * ggc-page.c: Similar.
24332
24333 2008-02-19  Paul Brook  <paul@codesourcery.com>
24334
24335         PR target/35071
24336         * config/arm/ieee754-df.S: Fix do_it typo.
24337         * config/arm/ieee754-sf.S: Fix do_it typo.
24338
24339 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
24340
24341         PR target/35189
24342         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
24343         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
24344         (OPTION_MASK_ISA_SSE_SET): Likewise.
24345         (OPTION_MASK_ISA_SSE2_SET): Likewise.
24346         (OPTION_MASK_ISA_SSE3_SET): Likewise.
24347         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
24348         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
24349         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
24350         (OPTION_MASK_ISA_SSE4_SET): Likewise.
24351         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
24352         (OPTION_MASK_ISA_SSE5_SET): Likewise.
24353         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
24354         (OPTION_MASK_ISA_MMX_UNSET): Updated.
24355         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
24356         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
24357         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
24358         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
24359         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
24360         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
24361         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
24362         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
24363         (OPTION_MASK_ISA_SSE4): Removed.
24364         (ix86_handle_option): Turn on bits in ix86_isa_flags and
24365         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
24366         (override_options): Don't turn on implied SSE/MMX bits in
24367         ix86_isa_flags.
24368
24369 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
24370
24371         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24372         32bit host.
24373
24374 2008-02-18  Joey Ye  <joey.ye@intel.com>
24375
24376         PR middle-end/34921
24377         * tree-nested.c (insert_field_into_struct): Set type alignment
24378         to field alignment if the former is less than the latter.
24379
24380 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
24381
24382         * BASE-VER: Set to 4.4.0.
24383
24384 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24385
24386         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
24387         * doc/cfg.texi: Likewise.
24388         * doc/extend.texi: Likewise.
24389         * doc/gty.texi: Likewise.
24390         * doc/invoke.texi: Likewise.
24391         * doc/loop.texi: Likewise.
24392         * doc/md.texi: Likewise.
24393         * doc/passes.texi: Likewise.
24394         * doc/rtl.texi: Likewise.
24395         * doc/sourcebuild.texi: Likewise.
24396         * doc/tm.texi: Likewise.
24397         * doc/tree-ssa.texi: Likewise.
24398
24399 2008-02-17  Richard Guenther  <rguenther@suse.de>
24400
24401         PR middle-end/35227
24402         * tree-complex.c (init_parameter_lattice_values): Handle parameters
24403         without default definition.
24404
24405 2008-02-17  Richard Guenther  <rguenther@suse.de>
24406
24407         PR tree-optimization/35231
24408         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
24409         if A | B != 1.
24410
24411 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
24412
24413         Revert:
24414         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24415         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
24416         libgcc_cmp_return mode.
24417
24418 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24419
24420         PR c/28368
24421         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
24422
24423 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
24424
24425         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
24426         multilibs.
24427
24428 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24429
24430         * doc/c-tree.texi: Use `@.' where appropriate.
24431         * doc/extend.texi: Likewise.
24432         * doc/install.texi: Likewise.
24433         * doc/invoke.texi: Likewise.
24434         * doc/loop.texi: Likewise.
24435         * doc/makefile.texi: Likewise.
24436         * doc/md.texi: Likewise.
24437         * doc/passes.texi: Likewise.
24438         * doc/standards.texi: Likewise.
24439         * doc/tm.texi: Likewise.
24440
24441 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
24442
24443         PR middle-end/35196
24444         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
24445         in entry_bb.
24446         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
24447         rather than in entry_bb.
24448
24449 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24450
24451         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
24452         libgcc_cmp_return mode.
24453
24454 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
24455
24456         PR middle-end/35130
24457         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
24458         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
24459
24460 2008-02-15  Richard Guenther  <rguenther@suse.de>
24461             Zdenek Dvorak  <ook@ucw.cz>
24462
24463         PR tree-optimization/35164
24464         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
24465         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
24466         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24467         Only propagate addresses which do not have abnormal SSA_NAMEs
24468         in their operands.
24469
24470 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
24471
24472         PR target/35088
24473         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
24474
24475 2008-02-15  Jan Hubicka  <jh@suse.cz>
24476
24477         PR middle-end/35149
24478         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
24479
24480 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24481
24482         PR middle-end/34621
24483         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
24484         when calculating alignment_pad.
24485
24486 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
24487
24488         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
24489         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
24490         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
24491         and STACK_BOUNDARY define.
24492
24493 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
24494
24495         PR preprocessor/35061
24496         * c-pragma.c (handle_pragma_pop_macro): Check that
24497         pushed_macro_table has been allocated.
24498
24499 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24500
24501         PR middle-end/35136
24502         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
24503         (force_gimple_operand): Likewise.
24504         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
24505         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
24506         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
24507         (find_interesting_uses_address): Check addressability and alignment
24508         of the base expression only after substituting bases of IVs into it.
24509
24510 2008-02-14  Michael Matz  <matz@suse.de>
24511
24512         PR target/34930
24513         * function.c (instantiate_virtual_regs_in_insn): Reload address
24514         before falling back to reloading the whole operand.
24515
24516 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
24517
24518         * config/s390/s390.c (s390_mainpool_start): Emit the pool
24519         before the first section switch note.
24520
24521 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24522
24523         * doc/bugreport.texi: Update copyright years.
24524         * doc/c-tree.texi: Likewise.
24525         * doc/cfg.texi: Likewise.
24526         * doc/cpp.texi: Likewise.
24527         * doc/cppinternals.texi: Likewise.
24528         * doc/fragments.texi: Likewise.
24529         * doc/frontends.texi: Likewise.
24530         * doc/gcc.texi: Likewise.
24531         * doc/gty.texi: Likewise.
24532         * doc/hostconfig.texi: Likewise.
24533         * doc/implement-c.texi: Likewise.
24534         * doc/libgcc.texi: Likewise.
24535         * doc/loop.texi: Likewise.
24536         * doc/makefile.texi: Likewise.
24537         * doc/options.texi: Likewise.
24538         * doc/passes.texi: Likewise.
24539         * doc/rtl.texi: Likewise.
24540         * doc/sourcebuild.texi: Likewise.
24541         * doc/standards.texi: Likewise.
24542         * doc/tree-ssa.texi: Likewise.
24543         * doc/trouble.texi: Likewise.
24544
24545         * doc/extend.texi: Use @: or add comma where appropriate.
24546         * doc/invoke.texi: Likewise.
24547         * doc/tm.texi: Likewise.
24548
24549 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
24550
24551         PR target/34393
24552         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
24553         to a reg.
24554
24555 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
24556
24557         * doc/md.texi (clz, ctz): Add reference.
24558         * doc/rtl.texi (clz, ctz): Likewise.
24559
24560 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24561
24562         PR other/35148
24563         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
24564         srcdir.
24565
24566 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
24567
24568         * config/s390/s390.c (struct constant_pool): New field
24569         emit_pool_after added.
24570         (s390_mainpool_start): Set the emit_pool_after flag according
24571         to the section switch notes.
24572         (s390_mainpool_finish): Consider emit_pool_after when emitting
24573         the literal pool at the end of the function.
24574         (s390_chunkify_start): Force literal pool splits at section
24575         switch notes.
24576
24577 2008-02-13  Michael Matz  <matz@suse.de>
24578
24579         PR debug/35065
24580         * var-tracking.c (clobber_variable_part): Correctly traverse the
24581         list.
24582
24583 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24584
24585         PR 29673
24586         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
24587         Add -fdump-ipa-inline.
24588         * tree-dump.c (dump_files): Remove tree-inlined dump.
24589         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
24590
24591 2008-02-12  Richard Guenther  <rguenther@suse.de>
24592
24593         PR tree-optimization/35171
24594         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
24595         default defs.
24596
24597 2008-02-12  Richard Guenther  <rguenther@suse.de>
24598
24599         PR middle-end/35163
24600         * fold-const.c (fold_widened_comparison): Use get_unwidened in
24601         value-preserving mode.  Disallow final truncation.
24602
24603 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24604
24605         PR middle-end/35136
24606         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
24607         code from here to...
24608         (force_gimple_operand): ...here.
24609
24610 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
24611
24612         PR c++/35144
24613         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
24614         non-compatible pointers.
24615         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
24616         different FIELD_DECLs, try harder by comparing field offsets, sizes
24617         and types.
24618
24619         PR inline-asm/35160
24620         * function.c (match_asm_constraints_1): Don't replace the same input
24621         multiple times.
24622
24623 2008-02-12  Anatoly Sokolov <aesok@post.ru>
24624
24625         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
24626         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
24627         (expand_epilogue): Restore RAMPZ register.
24628         * config/avr/avr.md (RAMPZ_ADDR): New constant.
24629
24630 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
24631
24632         * config/i386/cygwin.asm: (__alloca): Correct calling
24633         convention and alignment.
24634         (__chkstk): Force 8 byte stack alignment.
24635
24636 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
24637             Richard Guenther  <rguenther@suse.de>
24638
24639         PR tree-optimization/33992
24640         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
24641         the zero we compare against.
24642
24643 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
24644
24645         PR libfortran/35063
24646         * gthr-win32.h (__gthread_mutex_destroy_function): New function
24647         to CloseHandle after unlocking to prevent accumulation of handle
24648         count.
24649
24650 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24651
24652         PR middle_end/34150
24653         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
24654         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
24655         and update LABEL_NUSES during and after reload.
24656
24657 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
24658
24659         PR middle-end/34627
24660         * combine.c (simplify_if_then_else): Make sure the comparison is
24661         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
24662
24663 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
24664
24665         PR bootstrap/35051
24666         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
24667         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
24668         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
24669         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
24670         * tree.h (get_type_static_bounds): Likewise.
24671
24672 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24673
24674         * doc/invoke.texi (Option Summary, C++ Dialect Options)
24675         (Objective-C and Objective-C++ Dialect Options, Warning Options):
24676         Make -Wfoo language annotations match what the compiler outputs.
24677
24678 2008-02-08  Sa Liu  <saliu@de.ibm.com>
24679
24680         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
24681         intrinsics spu_convts, spu_convtu, spu_convtf.
24682
24683 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
24684
24685         * doc/extend.texi (Function Attributes) <noinline>: Mention
24686         asm ("") as method to keep calls.
24687
24688 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24689
24690         PR other/32754
24691         * doc/options.texi (Options): Replace references to opts.sh with
24692         optc-gen.awk.
24693         * opts-common.c: Likewise.
24694         * optc-gen.awk: Likewise.
24695
24696 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
24697
24698         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
24699
24700 2008-02-07  Richard Henderson  <rth@redhat.com>
24701
24702         PR rtl-opt/33410
24703         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
24704         EXPR_LIST for the REG_EQUAL instead of a comparison with a
24705         funny mode.
24706
24707 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
24708
24709         PR tree-optimization/35085
24710         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
24711         for operand entry oe2 in addition to operand entry oe3 in order to
24712         expose more opportunities for vectorizer sum reduction.
24713
24714 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24715
24716         PR other/35107
24717         * Makefile.in (LIBS): Remove $(GMPLIBS).
24718         (cc1-dummy, cc1): Add $(GMPLIBS).
24719
24720 2008-02-06  Jan Hubicka  <jh@suse.cz>
24721
24722         PR target/23322
24723         * i386.md (moddf_integer): Do not produce partial memory stalls for
24724         targets where it hurts.
24725
24726 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
24727
24728         PR target/35083
24729         * optabs.c (expand_float): Do not check for decimal modes when
24730         expanding unsigned integer through signed conversion.
24731
24732 2008-02-06  Nick Clifton  <nickc@redhat.com>
24733
24734         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
24735         inside the clobber with a match_operand and duplicated operand
24736         number in the constraint.
24737         (ineqbranchsi): Delete redundant comment.
24738
24739 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
24740
24741         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
24742         builtin_define ("__USE_INIT_FINI__").
24743         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
24744         -msx multilibs.
24745         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
24746
24747 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24748
24749         PR documentation/30330
24750         * doc/invoke.texi (C++ Dialect Options)
24751         (Objective-C and Objective-C++ Dialect Options, Warning Options):
24752         For each warning option -Wfoo that allows -Wno-foo, ensure both
24753         -Wfoo and -Wno-foo are listed in the option index.  Fix index
24754         entry of -Wswitch-default, index -Wnormalized= including the
24755         `=', and -Wlarger-than-@var{len} including @var{len}.
24756
24757 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
24758
24759         * config/i386/i386.md (floatunssisf2): Use
24760         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
24761         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
24762         Macroize expander using MODEF mode iterator.
24763
24764 2008-02-05  Diego Novillo  <dnovillo@google.com>
24765
24766         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
24767
24768         PR 33738
24769         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
24770
24771 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24772
24773         PR other/35070
24774         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
24775
24776 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
24777
24778         PR target/35084
24779         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
24780         to indicate if a message should be generated.
24781         (init_cumulative_args): Updated.
24782         (function_value_32): Likewise.
24783
24784 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
24785
24786         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
24787
24788 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
24789
24790         PR target/35083
24791         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
24792         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
24793
24794 2008-02-04  Diego Novillo  <dnovillo@google.com>
24795
24796         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
24797
24798         PR 33738
24799         * tree-vrp.c (vrp_evaluate_conditional): With
24800         -Wtype-limits, emit a warning when comparing against a
24801         constant outside the natural range of OP0's type.
24802
24803 2008-02-04  Richard Guenther  <rguenther@suse.de>
24804
24805         PR middle-end/33631
24806         * expr.c (count_type_elements): Give for unions instead of
24807         guessing.
24808
24809 2008-02-04  Richard Guenther  <rguenther@suse.de>
24810
24811         PR middle-end/35043
24812         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
24813         to TYPE_DOMAINs base type instead of using bitsizetype here.
24814
24815 2008-02-03  Jason Merrill  <jason@redhat.com>
24816
24817         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
24818
24819 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24820
24821         PR other/29972
24822         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
24823         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
24824         (RS/6000 and PowerPC Options): Fix typos and markup.
24825         * doc/passes.texi (Tree-SSA passes): Likewise.
24826
24827 2008-02-02  Michael Matz  <matz@suse.de>
24828
24829         PR target/35045
24830         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
24831         from record_last_reg_set_info.
24832         (record_last_reg_set_info): Take an RTX argument, iterate over all
24833         constituent hardregs.
24834         (record_last_set_info, record_opr_changes): Change calls to
24835         new signature or to record_last_reg_set_info_regno.
24836
24837 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24838
24839         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
24840
24841 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
24842
24843         PR rtl-optimization/34773
24844         * reg-notes.def (EQUAL): Mention significance of combination of
24845         REG_EQUAL and REG_RETVAL.
24846         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
24847         insn that has a REG_RETVAL.
24848
24849 2008-02-01  Roger Sayle  <roger@eyesopen.com>
24850
24851         PR bootstrap/33781
24852         * configure.ac (--enable-fixed-point): Disable unless explicitly
24853         requested on IRIX.
24854         * configure: Regenerate.
24855
24856 2008-02-01  Richard Guenther  <rguenther@suse.de>
24857
24858         PR other/35042
24859         * invoke.texi (-finline-limit): Remove no longer true parts
24860         of the documentation.  Note that there is no default value.
24861
24862 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
24863             Mark Mitchell  <mark@codesourcery.com>
24864             Ben Elliston  <bje@au.ibm.com>
24865
24866         PR c/29326
24867         * doc/extend.texi (Other Builtins): Document.
24868
24869 2008-01-31  Tom Browder <tom.browder@gmail.com>
24870
24871         * doc/c-tree.texi (Types): Fix grammar.
24872         (Expression trees): Ditto.
24873         * doc/passes.texi (Tree-SSA passes): Ditto.
24874
24875         * doc/configterms.texi (Configure Terms): Fix typo.
24876         * doc/cpp.texi (Common Predefined Macros): Ditto.
24877         * doc/md.texi (Machine Constraints): Ditto.
24878
24879         * doc/makefile.texi (Makefile): Add comma.
24880
24881 2008-01-31  Tom Browder  <tom.browder@gmail.com>
24882             Gerald Pfeifer  <gerald@pfeifer.com>
24883
24884         * doc/sourcebuild.texi (Front End): Remove references to CVS
24885         and CVSROOT/modules.
24886         (Texinfo Manuals): Replace reference to CVS by one to SVN.
24887         (Back End): Remove reference to CVS.
24888
24889 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
24890
24891         PR target/34900
24892         * config/mips/mips.c (gen_load_const_gp): New function, taking a
24893         comment from...
24894         (mips16_gp_pseudo_reg): ...here.
24895         * config/mips/mips.md (load_const_gp): Replace with...
24896         (load_const_gp_<mode>): ...this :P-based insn.
24897
24898 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24899
24900         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
24901         options. Minor fixes.
24902         (-std): Move reference to standards closer to where language
24903         standards are first mentioned.
24904
24905 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
24906
24907         PR rtl-optimization/34995
24908         * reload.c (alternative_allows_const_pool_ref): Take an rtx
24909         parameter and return a bool.  If the rtx parameter is nonnull,
24910         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
24911         (find_reloads): Update call accordingly.  Pass the new operand
24912         if it needed no address reloads, otherwise pass null.
24913
24914 2008-01-30  Richard Henderson  <rth@redhat.com>
24915
24916         PR c/34993
24917         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
24918         for unbounded arrays.
24919
24920 2008-01-30  Silvius Rus  <rus@google.com>
24921
24922         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
24923
24924 2008-01-30  Jan Hubicka  <jh@suse.cz>
24925
24926         PR target/34982
24927         * i386.c (init_cumulative_args): Use real function declaration when
24928         calling locally.
24929
24930 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
24931
24932         PR rtl-optimization/34998
24933         * global.c (build_insn_chain): Treat non-subreg_lowpart
24934         SUBREGs of pseudos as clobbering all the words covered by the
24935         SUBREG, not just all the bytes.
24936         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
24937         original df_ref rather than an extract parameter.
24938         (global_conflicts): Update call accordingly.
24939
24940 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
24941
24942         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
24943         the overflow check to make it easier to read.
24944         (__fixtfdi): Change the type of the ll member in union
24945         long_double to UDItype_x.
24946
24947 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
24948
24949         PR middle-end/34969
24950         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
24951         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
24952         * tree-inline.c (fold_marked_statements): Call
24953         cgraph_update_edges_for_call_stmt if folding a call statement.
24954         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
24955         debug_generic_stmt calls, reset it back afterwards.
24956
24957         PR c/35017
24958         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
24959         static decls.
24960         * c-typeck.c (build_external_ref): Don't pedwarn about
24961         static vars in current function's scope.
24962
24963 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
24964
24965         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
24966
24967 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
24968
24969         PR c/35002
24970         * ipa-struct-reorg.c: Fix spelling.
24971         * params.def: Ditto.
24972
24973 2008-01-29  Richard Guenther  <rguenther@suse.de>
24974
24975         PR middle-end/35006
24976         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
24977         field.
24978         * tree-inline.c (remap_type): Increment remapping_type_depth
24979         around remapping types.
24980         (copy_body_r): Only add referenced variables if they are referenced
24981         from code, not types.
24982
24983 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
24984
24985         PR c++/34055
24986         PR c++/34103
24987         PR c++/34219
24988         PR c++/34606
24989         PR c++/34753
24990         PR c++/34754
24991         PR c++/34755
24992         PR c++/34919
24993         PR c++/34961
24994         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
24995         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
24996
24997 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
24998
24999         PR target/34412
25000         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
25001         pointer for tiny stack.
25002
25003 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
25004
25005         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
25006
25007 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
25008
25009         * config/vx-common.h: Fix typo in comment.
25010
25011 2008-01-28  Ian Lance Taylor  <iant@google.com>
25012
25013         PR c++/34862
25014         PR c++/33407
25015         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25016         coalesce pointers if they have different DECL_NO_TBAA_P values.
25017         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
25018         between variables with different DECL_NO_TBAA_P values.
25019
25020 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
25021
25022         PR 31535
25023         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
25024         are not legitimate small data references on SPE targets.
25025
25026 2008-01-28  David Daney  <ddaney@avtrex.com>
25027
25028         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
25029
25030 2008-01-28  David Daney  <ddaney@avtrex.com>
25031
25032         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
25033
25034 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
25035
25036         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
25037         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
25038         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
25039         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
25040         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
25041         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
25042         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
25043         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
25044
25045 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25046
25047         * basic-block.h (condjump_equiv_p): Fix comment.
25048
25049 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25050
25051         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
25052         print_generic_stmt_indented): Fix comment.
25053
25054 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
25055
25056         * configure.ac (__stack_chk_fail): Add detecion for availability
25057         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
25058         * configure: Regenerate.
25059
25060 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
25061
25062         PR middle-end/34688
25063         * final.c (output_addr_const): Handle TRUNCATE.
25064
25065 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
25066
25067         PR target/34711
25068         * tree-ssa-loop-ivopts.c (comp_cost): New type.
25069         (zero_cost, infinite_cost): New constants.
25070         (struct cost_pair): Change type of cost to comp_cost.
25071         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
25072         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
25073         New functions.
25074         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
25075         split_address_cost, ptr_difference_cost, difference_cost,
25076         get_computation_cost_at, get_computation_cost,
25077         determine_use_iv_cost_generic, determine_use_iv_cost_address,
25078         determine_use_iv_cost_condition, determine_use_iv_costs,
25079         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
25080         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
25081         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
25082         Change type of cost to comp_cost.
25083         (determine_iv_cost): Increase cost of non-original ivs, instead
25084         of decreasing the cost of original ones.
25085         (get_address_cost): Indicate the complexity of the addressing mode
25086         in comp_cost.
25087         (try_add_cand_for): Prefer using ivs not specific to some object.
25088         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
25089
25090 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
25091             Janis Johnson  <janis187@us.ibm.com>
25092
25093         PR target/34814
25094         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
25095         (TARGET_INSTANTIATE_DECLS): Likewise.
25096         * target.h (expand_to_rtl_hook): New target hook.
25097         (instantiate_decls): Likewise.
25098         * function.c (instantiate_decl): Make non-static.  Rename to...
25099         (instantiate_decl_rtl): ... this.
25100         (instantiate_expr): Use instantiate_decl_rtl.
25101         (instantiate_decls_1): Likewise.
25102         (instantiate_decls): Likewise.
25103         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
25104         * function.h (instantiate_decl_rtl): Add prototype.
25105         * cfgexpand.c (target.h): New include.
25106         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
25107         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
25108         (TARGET_INSTANTIATE_DECLS): Likewise.
25109         (TARGET_INITIALIZER): New target hooks added.
25110         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
25111         New prototype.
25112         * config/rs6000/rs6000.c (tree-flow.h): New include.
25113         (machine_function): Add sdmode_stack_slot field.
25114         (rs6000_alloc_sdmode_stack_slot): New function.
25115         (rs6000_instantiate_decls): Likewise.
25116         (rs6000_secondary_memory_needed_rtx): Likewise.
25117         (rs6000_check_sdmode): Likewise.
25118         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
25119         (TARGET_INSTANTIATE_DECLS): Likewise.
25120         (rs6000_hard_regno_mode_ok): Allow SDmode.
25121         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
25122         (rs6000_emit_move): Handle SDmode.
25123         (function_arg_advance): Likewise.
25124         (function_arg): Likewise.
25125         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
25126         SDmode var args for 32-bit compiles.
25127         (rs6000_secondary_reload_class): Handle SDmode.
25128         (rs6000_output_function_epilogue): Likewise.
25129         (rs6000_function_value): Simplify if statement.
25130         (rs6000_libcall_value): Likewise.
25131         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
25132         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
25133         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
25134         (movsd_hardfloat): New define_insn.
25135         (movsd_softfloat): Likewise.
25136         (movsd_store): Likewise.
25137         (movsd_load): Likewise.
25138         (extendsddd2): Likewise.
25139         (extendsdtd2): Likewise.
25140         (truncddsd2): Likewise.
25141         (movdd_hardfloat64): Fixup comment.
25142         (UNSPEC_MOVSD_LOAD): New constant.
25143         (UNSPEC_MOVSD_STORE): Likewise.
25144
25145 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
25146
25147         PR c++/34965
25148         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
25149         TRUTH_XOR_EXPR.
25150         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
25151         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
25152         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
25153         and TRUTH_XOR_EXPR.
25154
25155 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
25156
25157         PR target/34794
25158         * config.gcc: Separate AIX 5.3 from AIX 6.1.
25159         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
25160         __LONGDOUBLE128 too.
25161         * config/rs6000/aix61.h: New file.
25162
25163 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
25164
25165         PR rtl-optimization/34959
25166         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
25167         popcount and parity rtxes the same mode as their operand.
25168         Truncate or extend the result to the return value's mode
25169         if necessary.
25170
25171 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
25172
25173         PR target/34981
25174         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
25175         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
25176         to GOT_VERSION_REGNUM.
25177         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
25178         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
25179         * config/mips/mips.c (mips_emit_call_insn): New function.
25180         (mips_call_tls_get_addr): Call mips_expand_call directly.
25181         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
25182         emit_call_insn.
25183         (mips16_build_call_stub): Likewise.  Return the call insn or null.
25184         (mips_expand_call): Update the call to mips16_build_call_stub
25185         accordingly and a remove redundant condition.  Assert that MIPS16
25186         stubs do not use lazy binding.  Use mips_emit_call_insn and return
25187         the call insn.
25188         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
25189         TARGET_USE_GOT.
25190         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
25191         (mips_avoid_hazard): Remove hazard_set handling.
25192         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
25193         (UNSPEC_RESTORE_GP): ...this.
25194         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
25195         (FAKE_CALL_REGNO): Rename to...
25196         (GOT_VERSION_REGNUM): ...this.
25197         (type): Add "ghost" value.  Add an associated insn reservation.
25198         (hazard_set): Remove.
25199         (exception_receiver): Rename to...
25200         (restore_gp): ...this and update the unspec identifier accordingly.
25201         (exception_receiver, nonlocal_got_receiver): New expanders.
25202         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
25203         FAKE_CALL_REGNO.  Remove hazard_set attribute.
25204         (set_got_version, update_got_version): New patterns.
25205
25206 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
25207
25208         PR target/34970
25209         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
25210
25211 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
25212
25213         PR other/31955
25214         * doc/install.texi2html: Generate gcc-vers.texi.
25215
25216 2008-01-25  DJ Delorie  <dj@redhat.com>
25217
25218         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
25219
25220 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
25221
25222         * config/c4x: Remove directory.
25223         * config.gcc (crx-*, mt-*): Mark obsolete.
25224         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
25225         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
25226         sh-*-rtemscoff*): Remove cases.
25227         * defaults.h (C4X_FLOAT_FORMAT): Remove.
25228         * real.c (encode_c4x_single, decode_c4x_single,
25229         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
25230         c4x_extended_format): Remove.
25231         * real.h (c4x_single_format, c4x_extended_format): Remove.
25232         * doc/extend.texi (interrupt, naked): Remove mention of attributes
25233         on C4x.
25234         (Pragmas): Remove comment about c4x pragmas.
25235         * doc/install.texi (c4x): Remove target-specific instructions.
25236         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
25237         * doc/md.texi (Machine Constraints): Remove C4x documentation.
25238         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
25239         refer to C4x source files as examples.
25240         (C4X_FLOAT_FORMAT): Remove documentation.
25241
25242 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
25243
25244         * config/bfin/bfin.c (override_options): Reorder tests so that
25245         flag_pic gets enabled for -msep-data.
25246
25247 2008-01-25  Richard Guenther  <rguenther@suse.de>
25248
25249         PR middle-end/32244
25250         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
25251         to its bitfield precision if required.
25252
25253 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
25254
25255         PR middle-end/33880
25256         * tree-nested.c (walk_omp_for): New function.
25257         (convert_nonlocal_reference, convert_local_reference): Call
25258         walk_omp_for on OMP_FOR.
25259         (convert_call_expr): Call walk_body on OMP_FOR's
25260         OMP_FOR_PRE_INIT_BODY.
25261
25262 2008-01-25  Richard Guenther  <rguenther@suse.de>
25263
25264         PR tree-optimization/34966
25265         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
25266         default defs and PHI_NODEs we have to insert after the
25267         defining statement.
25268
25269 2008-01-24  Nick Clifton  <nickc@redhat.com>
25270
25271         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
25272         Provide a default definition.
25273         (LIBGCC2_UNITS_PER_WORD): Likewise.
25274
25275         * config/stormy16/stormy16.c: Include df.h for the prototype
25276         for df_regs_ever_live_p.
25277         (xstormy16_expand_builtin_va_start): Convert the stack offset
25278         into a component_ref and then use POINTER_PLUS_EXPR to add it
25279         to the incoming_virtual_args_rtx.
25280         (xstormy16_gimplify_va_arg_expr): Rename to
25281         xstormy16_gimplify_va_arg_expr.
25282         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
25283         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
25284         xstormy16_gimplify_va_arg_expr.
25285         Fix up some formatting issues.
25286
25287         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
25288         Move to predicates.md.
25289         (xs_hi_general_operand): Likewise.
25290         (xs_hi_nonmemory_operand): Likewise.
25291         * config/stormy16/predicates.md:
25292         (xstormy16_carry_plus_operand): New predicate.
25293         (xs_hi_general_operand): New predicate.
25294         (xs_hi_nonmemory_operand): New predicate.
25295         * config/stormy16/stormy16-protos.h:
25296         (xstormy16_carry_plus_operand): Delete prototype.
25297         (xs_hi_general_operand): Likewise.
25298         (xs_hi_nonmemory_operand): Likewise.
25299
25300         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
25301         modifiers as they are no longer needed and they can trigger
25302         reload spill failures.
25303
25304         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
25305         with a match_operand in order to help reload.
25306
25307         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
25308         constraint with 'e' for the 8th alternative as this version of
25309         the mov.w instruction only accepts the lower 8 registers.
25310
25311 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
25312
25313         PR target/34856
25314         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
25315         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
25316         vector elements.
25317
25318 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
25319
25320         PR middle-end/33333
25321         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
25322
25323 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
25324
25325         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
25326         New functions.
25327         (remove_structure): Update allocations list before removing structure.
25328
25329 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
25330
25331         * ipa-struct-reorg.c (is_safe_cond_expr,
25332         create_new_stmts_for_cond_expr): Use integer_zerop function,
25333         that recognize not only zero-pointer, but zero-integer too.
25334
25335 2008-01-25  Ben Elliston  <bje@au.ibm.com>
25336
25337         PR other/22232
25338         * fixproto: Escape "." in sed expression that strips leading "./".
25339
25340 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25341
25342         PR driver/34904
25343         * gcc.c (SWITCH_OK): Removed.
25344         (SWITCH_LIVE): Changed to bit.
25345         (SWITCH_FALSE): Likewise.
25346         (SWITCH_IGNORE): Likewise.
25347         (switchstr): Change live_cond to unsigned int.
25348         (process_command): Replace SWITCH_OK with 0.
25349         (do_self_spec): Likewise.
25350         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
25351         (give_switch): Likewise.
25352         (used_arg): Likewise.
25353         (do_spec_1): Set the SWITCH_IGNORE bit.
25354         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
25355         bits.  Set the SWITCH_LIVE bit.
25356
25357 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
25358
25359         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
25360
25361 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
25362
25363         PR tree-optimization/34472
25364         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
25365         parameter to a "bool *" and set *DATA to false if there is
25366         an unsafe access.  Do not delete the structure here.
25367         (check_cond_exprs): Delete it here instead.
25368         (check_cond_exprs, exclude_cold_structs): Do not increase
25369         I when removing a structure.
25370
25371 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
25372
25373         PR target/34856
25374         * config/i386/i386.c (ix86_expand_vector_init): Consider only
25375         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
25376
25377 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
25378
25379         PR middle-end/34934
25380         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
25381         a fixed vector for stack.
25382
25383 2008-01-24  Ben Elliston  <bje@au.ibm.com>
25384
25385         PR c++/25701
25386         * doc/gcc.texi (Software development): Add a direntry for g++.
25387
25388 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
25389
25390         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
25391         stale and straggling -fforce-addr comments above.
25392
25393         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
25394         define.
25395         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
25396         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
25397
25398 2008-01-23  Michael Matz  <matz@suse.de>
25399
25400         PR debug/34895
25401         * dwarf2out.c (force_type_die): Use modified_type_die instead of
25402         gen_type_die.
25403
25404 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
25405
25406         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
25407         malloc result type.
25408
25409 2008-01-23 Anatoly Sokolov <aesok@post.ru>
25410
25411         * config/avr/avr.c (avr_current_arch): New variable.
25412         (avr_arch_types): Add 'avr31' and 'avr51' entries.
25413         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
25414         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
25415         (avr_override_options): Init 'avr_current_arch'.
25416         (base_arch_s): Move from here...
25417         * config/avr/avr.h (base_arch_s): ... here. Add new members
25418         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
25419         'mega' to 'have_jmp_call'.
25420         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
25421         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
25422         macros.
25423         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
25424         architectures.
25425         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
25426         MULTILIB_MATCHES): Ditto.
25427
25428 2008-01-23  Richard Guenther  <rguenther@suse.de>
25429
25430         PR middle-end/31529
25431         * cgraphunit.c (cgraph_reset_node): Always mark the node
25432         not reachable if it is not queued already.
25433
25434 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
25435
25436         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
25437         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
25438         (cputype_selected): New static variable.
25439         (bfin_handle_option): Set it if -mcpu is used.
25440         (override_option): Select default set of workarounds if no cpu type
25441         selected on the command line.
25442         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
25443
25444         From  Michael Frysinger  <michael.frysinger@analog.com>
25445         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
25446         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
25447
25448         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
25449         for bf547, bf523, bf524, and bf526.
25450         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
25451         bf526.
25452         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
25453         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
25454         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
25455         __ADSPBF547__ and __ADSPBF54x__ for bf547.
25456         * doc/invoke.texi (Blackfin Options): Document that
25457         -mcpu now accept bf547, bf523, bf524, and bf526.
25458
25459 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
25460
25461         PR rtl-optimization/34628
25462         * combine.c (try_combine): Stop and undo after the first combination
25463         if an autoincrement side-effect on the first insn has effectively
25464         been lost.
25465
25466 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
25467
25468         PR target/34529
25469         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25470         Offset addresses are not valid for Altivec or paired float modes.
25471
25472 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
25473
25474         PR c++/34607
25475         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
25476         if DECL_INITIAL (decl) is error_mark_node.
25477
25478         PR c++/34914
25479         * c-common.c (handle_vector_size_attribute): Only allow
25480         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
25481         the same way as pointer, array etc. types.
25482         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
25483
25484         PR c++/34917
25485         * tree.c (build_type_attribute_qual_variant): Call
25486         build_qualified_type if attributes are equal, but quals are not.
25487
25488 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25489
25490         PR 32102
25491         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
25492         * flags.h (warn_strict_aliasing): Remove.
25493         (warn_strict_overflow): Remove.
25494         * opts.c (warn_strict_aliasing): Remove.
25495         (warn_strict_overflow): Remove.
25496         * c-opts.c (c_common_handle_option): -Wall only sets
25497         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
25498         (c_common_post_options): Give default values to -Wstrict-aliasing
25499         and -Wstrict-overflow if they are uninitialized.
25500         * common.opt (Wstrict-aliasing): Specify Var and Init.
25501         (Wstrict-overflow): Likewise.
25502
25503 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
25504
25505         PR rtl-optimization/26854
25506         PR rtl-optimization/34400
25507         PR rtl-optimization/34884
25508         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
25509         DF_RD->gen.
25510         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
25511         (df_rd_bb_info.expanded_lr_out): Deleted
25512         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
25513         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
25514         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
25515         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
25516         Removed code to allocate, initialize or free expanded_lr_out.
25517         (df_rd_bb_local_compute_process_def): Restructured to make more
25518         understandable.
25519         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
25520         sets if the sets are being trimmed.
25521
25522 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
25523
25524         PR bootstrap/32287
25525         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
25526         (as_vers): Likewise.
25527         * configure: Regenerated.
25528
25529 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25530
25531         PR middle-end/33092
25532         * tree-pass.h (pass_build_alias): New pass.
25533         * tree-ssa-alias.c (gate_build_alias): New.
25534         (pass_build_alias): New.
25535         * passes.c (init_optimization_passes): Add pass_build_alias after
25536         pass_create_structure_vars.
25537
25538 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
25539
25540         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
25541         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
25542         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
25543         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
25544         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
25545         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
25546         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
25547         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
25548         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
25549         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
25550         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
25551         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
25552         * config/s390/s390.md (FP_ALL): New mode iterator.
25553         (_d): New mode attribute.
25554         ("*signbit<mode>2>"): Changed mode of first operand.
25555         ("isinf<mode>2"): Changed mode of first operand.
25556         ("*TDC_insn"): Adaptation for DFP modes.
25557
25558 2008-01-22  Ben Elliston  <bje@au.ibm.com>
25559
25560         * tree.c (check_qualified_type): Improve function description.
25561
25562 2008-01-21  Jason Merrill  <jason@redhat.com>
25563
25564         PR c++/34196
25565         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
25566         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
25567         if it is set.
25568
25569 2008-01-21  DJ Delorie  <dj@redhat.com>
25570
25571         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
25572         return zero.
25573
25574 2008-01-21  Richard Guenther  <rguenther@suse.de>
25575
25576         PR middle-end/34856
25577         * tree-cfg.c (verify_expr): Allow all invariant expressions
25578         instead of just constant class ones as reference argument.
25579         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
25580         like any other constant.
25581         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25582
25583 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
25584
25585         * regmove.c (fixup_match_1): Update call crossed frequencies.
25586
25587 2008-01-21  Richard Guenther  <rguenther@suse.de>
25588
25589         PR c/34885
25590         * tree-inline.c (setup_one_parameter): Deal with mismatched
25591         types using a VIEW_CONVERT_EXPR.
25592
25593 2008-01-21  Alon Dayan  <alond@il.ibm.com>
25594             Olga Golovanevsky  <olga@il.ibm.com>
25595
25596         PR tree-optimization/34701
25597         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
25598         when the structure size is not a power of 2.
25599
25600 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
25601
25602         * doc/install.texi: Add doc for --enable-checking=df.
25603
25604 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
25605
25606         PR rtl-optimization/34808
25607         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
25608
25609 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
25610
25611         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
25612         input.
25613
25614 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
25615
25616         PR rtl-optimization/26854
25617         PR rtl-optimization/34400
25618         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
25619         DF_RD->gen.
25620         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
25621         (df_rd_bb_info.expanded_lr_out): New.
25622         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
25623         * loop_iv.c (iv_analysis_loop_init): Ditto.
25624         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
25625         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
25626         Added code to allocate, initialize or free expanded_lr_out.
25627         (df_rd_bb_local_compute_process_def): Restructured to make
25628         more understandable.
25629         (df_rd_confluence_n): Add code to do nothing with fake edges and
25630         code to no apply invalidate_by_call sets if the sets are being trimmed.
25631         (df_lr_local_finalize): Renamed to df_lr_finalize.
25632         (df_live_local_finalize): Renamed to df_live_finalize.
25633
25634 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
25635
25636         PR target/34831
25637         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
25638         deciding whether to use reciprocal instructions.
25639
25640 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
25641
25642         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
25643         dwarf2out_note_section_used if cold_text_section is NULL.
25644
25645 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
25646
25647         PR gcov-profile/34610
25648         * tree-cfg.c (make_edges): Mark both outgoing edges from
25649         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
25650         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
25651         from OMP_FOR and OMP_CONTINUE outgoing edges.
25652
25653         * tree-profile.c (tree_profiling): Return early if
25654         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
25655         at the end.
25656         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
25657         from cfun to child_cfun.
25658         * function.h (struct function): Add after_tree_profile bit.
25659
25660 2008-01-19 Anatoly Sokolov <aesok@post.ru>
25661
25662         * config/avr/avr.S (_exit): Disable interrupt.
25663
25664 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
25665             Steven Bosscher  <stevenb.gcc@gmail.com>
25666
25667         PR rtl-optimization/26854
25668         PR rtl-optimization/34400
25669         * df-problems.c (df_live_scratch): New scratch bitmap.
25670         (df_live_alloc): Allocate df_live_scratch when doing df_live.
25671         (df_live_reset): Clear the proper bitmaps.
25672         (df_live_bb_local_compute): Only process the artificial defs once
25673         since the order is not important.
25674         (df_live_init): Init the df_live sets only with the variables
25675         found live by df_lr.
25676         (df_live_transfer_function): Use the df_lr sets to prune the
25677         df_live sets as they are being computed.
25678         (df_live_free): Free df_live_scratch.
25679
25680 2008-01-18  Ian Lance Taylor  <iant@google.com>
25681
25682         * common.opt: Add fmerge-debug-strings.
25683         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
25684         flag_merge_debug_strings rather than flag_merge_constants.
25685         * doc/invoke.texi (Option Summary): Mention
25686         -fmerge-debug-strings.
25687         (Debugging Options): Document -fmerge-debug-strings.
25688
25689 2008-01-18  Ian Lance Taylor  <iant@google.com>
25690
25691         PR c++/33407
25692         * tree.h (DECL_IS_OPERATOR_NEW): Define.
25693         (struct tree_function_decl): Add new field operator_new_flag.
25694         * tree-inline.c (expand_call_inline): When inlining a call to
25695         operator new, force the return value to go into a variable, and
25696         set DECL_NO_TBAA_P on that variable.
25697         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
25698
25699 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
25700
25701         PR debug/34484
25702         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
25703         DWARF2_DEBUGGING_INFO.
25704         (dwarf2out_note_section_used): Ditto.  Add prototype.
25705         (have_multiple_function_sections, text_section_used,
25706         cold_text_section_used, *cold_text_sections): Move declarations
25707         before their uses.
25708
25709 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
25710
25711         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
25712         field and add signal_ra.
25713         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
25714         assignments to frame state pc.  Move end of stack check after
25715         MD_FALLBACK_FRAME_STATE_FOR.
25716         (uw_update_context_1): Use frame state signal_regs if set, instead
25717         of checking signal_frame flag.
25718         (uw_update_context): Use frame state signal_ra if set.
25719         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
25720         * config/xtensa/linux-unwind.h: New file.
25721
25722 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
25723
25724         * modulo-sched.c (get_sched_window): Fix comment typo.
25725
25726 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
25727
25728         PR tree-optimization/34648
25729         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
25730
25731 2008-01-17  Anatoly Sokolov <aesok@post.ru>
25732
25733         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
25734         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
25735
25736 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
25737
25738         PR rtl-optimization/34400
25739         * df-core.c (df_worklist_dataflow_overeager,
25740         df_worklist_dataflow_doublequeue): New functions.
25741         (df_worklist_dataflow): Two different worklist solvers.
25742         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
25743         New param.
25744
25745 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25746
25747         PR testsuite/34821
25748         * doc/invoke.texi: Document the dependence on pthread for fopenmp
25749         and ftree-parallelize-loops.
25750
25751 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
25752
25753         PR rtl-optimization/34826
25754         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
25755
25756 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
25757
25758         * global.c (find_reg): Mark the eh regs as used if necessary.
25759         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
25760         * ra.h (struct allocno): no_eh_reg field added.  Changed
25761         no_stack_reg type to bitfield.
25762
25763 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
25764
25765         * tree.c (substitute_in_expr): Add missing 'break'.
25766
25767 2008-01-17  Richard Guenther  <rguenther@suse.de>
25768
25769         PR tree-optimization/34825
25770         * tree-ssa-math-opts.c (is_division_by): Do not recognize
25771         x / x as division to handle.
25772
25773 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25774
25775         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
25776         "-pthread" is specified.
25777         * pa-hpux11.h (LIB_SPEC): Likewise.
25778
25779 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
25780             Peter Bergner  <bergner@vnet.ibm.com>
25781
25782         PR rtl-optimization/33796
25783         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
25784
25785 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25786
25787         PR libgfortran/34699
25788         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
25789         static links.
25790         * pa-hpux10.h (LINK_SPEC): Likewise.
25791         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
25792
25793 2008-01-16  Richard Guenther  <rguenther@suse.de>
25794
25795         PR middle-end/32628
25796         * fold-const.c (fold_convert_const_int_from_int): Do not
25797         set overflow if that occured only because of a sign extension
25798         change when converting from/to a sizetype with the same
25799         precision and signedness.
25800
25801 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
25802
25803         PR debug/34249
25804         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
25805         location address to the correct place.  Update copyright year.
25806
25807 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25808
25809         * lambda-code.c (lambda_transform_legal_p): Handle the case of
25810         no dependences in the dependence_relations vector.
25811
25812 2008-01-16  Jan Hubicka  <jh@suse.cz>
25813
25814         PR rtl-optimization/31396
25815         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
25816         * cfg.c (dump_reg_info): Print it.
25817         * regs.h (struct reg_info_t): add freq_calls_crossed.
25818         (REG_FREQ_CALLS_CROSSED): New macro.
25819         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
25820         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
25821         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
25822         regmove_optimize): Update call crossed frequencies.
25823         * local-alloc.c (struct qty): Add freq_calls_crossed.
25824         (alloc_qty): Copute freq_calls_crossed.
25825         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
25826         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
25827         * ra.h (struct allocno): Add freq_calls_crossed.
25828
25829 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25830
25831         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
25832         libgomp when compiling with ftree-parallelize-loops.
25833         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
25834
25835 2008-01-16  Richard Guenther  <rguenther@suse.de>
25836
25837         PR tree-optimization/34769
25838         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
25839         * tree.c (int_cst_value): Instead make this function more
25840         permissive in what it accepts as valid input.  Document this
25841         function always sign-extends the value.
25842
25843 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
25844             Richard Guenther  <rguenther@suse.de>
25845
25846         PR c/34668
25847         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
25848         (gimple_fold_indirect_ref_rhs): ... this.
25849         (gimple_fold_indirect_ref): New function with foldings
25850         that preserve lvalueness.
25851         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
25852         * tree-flow.h (gimple_fold_indirect_ref): Declare.
25853         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
25854         to fold an INDIRECT_REF, fall back to the old use of
25855         fold_indirect_ref_1.
25856
25857 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
25858
25859         * tree-data-ref.c (subscript_dependence_tester_1): Call
25860         free_conflict_function.
25861         (compute_self_dependence): Same.
25862
25863 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
25864
25865         PR debug/34249
25866         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
25867         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
25868         function global.
25869         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
25870         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
25871         for DWARF2_UNWIND_INFO targets.
25872
25873 2008-01-16  Richard Guenther  <rguenther@suse.de>
25874
25875         PR c/34768
25876         * c-typeck.c (common_pointer_type): Do not merge inconsistent
25877         type qualifiers for function types.
25878
25879 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
25880
25881         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
25882         loop_iterator li from previous commit.
25883
25884 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
25885
25886         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
25887
25888 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
25889
25890         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
25891         (parallelize_loops): Don't parallelize irreducible components.
25892
25893 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25894
25895         PR c++/24924
25896         * c-opts (c_common_post_options): Do not enable CPP
25897         flag_pedantic_errors by default.
25898
25899 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
25900
25901         PR rtl-optimization/31944
25902         * cse.c (remove_pseudo_from_table): New function.
25903         (merge_equiv_classes): Use above function to remove pseudo-registers.
25904         (invalidate): Likewise.
25905
25906 2008-01-13  Richard Guenther  <rguenther@suse.de>
25907
25908         PR middle-end/34601
25909         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
25910         instead of TYPE_MODE to deal with calls from expand_one_error_var.
25911
25912 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
25913
25914         * gcse.c (cprop_jump): Call validate_unshare_change instead of
25915         validate_change to unshare the source of the PC set.
25916
25917 2008-01-12  Jan Hubicka  <jh@suse.cz>
25918
25919         PR middle-end/32135
25920         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
25921         references above array bounds.  This might trigger bounds checks for
25922         pointers to arrays.
25923
25924 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
25925
25926         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
25927         new_replaceable_dependencies.
25928
25929 2008-01-12  Doug Kwan  <dougkwan@google.com>
25930
25931         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
25932         instead of OPT_Wreturn_type in warning due to ignored return type
25933         qualifiers.
25934         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
25935         options included in -Wextra.
25936         * c.opt: New option -Wignored_qualifiers.
25937         * doc/invoke.texi (Warning Options, -Wextra): Add new option
25938         -Wignore_qualifiers.
25939         (-Wignored-qualifiers): Document.
25940         (-Wreturn-type): Remove description of functionality now handled
25941         by -Wignored-qualifiers.
25942
25943 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
25944
25945         PR ada/33788
25946         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
25947         NOP_EXPR if it is between integral types with the same precision.
25948
25949 2008-01-12  Jan Hubicka  <jh@suse.cz>
25950
25951         PR other/28023
25952         * invoke.texi (max-inline-recursive-depth): Fix default value.
25953
25954 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
25955
25956         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
25957         correct type.
25958
25959 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
25960
25961         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
25962
25963 2008-01-11  James E. Wilson  <wilson@specifix.com>
25964
25965         PR target/26015
25966         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
25967
25968 2008-01-11  Anatoly Sokolov <aesok@post.ru>
25969
25970         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
25971         save/restore frame pointer register and don't use 'call-prologues'
25972         optimization in function with "OS_task" attribute.
25973
25974 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
25975
25976         PR middle-end/31309
25977         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
25978         when copying to memory.
25979
25980 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
25981
25982         PR rtl-optimization/30905
25983         * cfgcleanup.c: Include dce.h
25984         (crossjumps_occured): New global variable.
25985         (try_crossjump_bb): Exit loop after finding a fallthru edge.
25986         If something changed, set crossjumps_occured to true.
25987         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
25988         Don't add/remove fake edges to exit here...
25989         (cleanup_cfg): ...but do it here, when crossjumping.
25990         Run a fast DCE when successful crossjumps occured in the latest
25991         iteration of try_optimize_cfg.
25992
25993 2008-01-11  Richard Guenther  <rguenther@suse.de>
25994
25995         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
25996         (struct vn_unary_op_s): Likewise.
25997         (vn_reference_insert): Free old reference on hash collision.
25998
25999 2008-01-10  Raksit Ashok  <raksit@google.com>
26000
26001         PR rtl-optimization/27971
26002         * combine.c (find_split_point): Split PLUS expressions which are
26003         inside a MEM rtx, and whose first operand is complex.
26004
26005 2008-01-10  DJ Delorie  <dj@redhat.com>
26006
26007         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
26008         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
26009         (m32c_hard_regno_ok): Call the underlying function.
26010
26011 2008-01-10  Richard Guenther  <rguenther@suse.de>
26012
26013         PR middle-end/34683
26014         * tree-cfg.c (tree_merge_blocks): Do not go through the
26015         full-blown folding and stmt updating path if we just deal
26016         with virtual operands.
26017         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
26018         test for abnormal SSA_NAMEs.
26019
26020 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
26021
26022         PR middle-end/34641
26023         * reload.c (push_reload): Add assertions.  All constants from
26024         reg_equiv_constant should have been used for replacing the respective
26025         pseudo earlier.
26026         (find_reloads_address): Invoke find_reloads_address_part for
26027         constant taken from the reg_equiv_constant array.
26028
26029 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
26030
26031         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
26032         field (valnum) the first in the struct.  Replace bools with
26033         unit bit fields.
26034
26035 2008-01-10  Richard Guenther  <rguenther@suse.de>
26036
26037         PR tree-optimization/34651
26038         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
26039         types and ordering for masking and converting.
26040
26041 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
26042
26043         PR tree-optimization/34017
26044         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
26045         also for PHI_NODE expressions.
26046
26047 2008-01-09  Jan Hubicka  <jh@suse.cz>
26048
26049         PR tree-optimization/34708
26050         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
26051         based on number of case labels.
26052         (init_inline_once): Remove switch_cost.
26053         * tree-inline.h (eni_weights_d): Remove switch_cost.
26054
26055 2008-01-09  Richard Guenther  <rguenther@suse.de>
26056         Andrew Pinski  <andrew_pinski@playstation.sony.com>
26057
26058         PR middle-end/30132
26059         * gimplify.c (gimplify_cond_expr): Do not create an addressable
26060         temporary if an rvalue is ok or an lvalue is not required.
26061
26062 2008-01-09  Richard Guenther  <rguenther@suse.de>
26063
26064         PR middle-end/34458
26065         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
26066         adjust return type.
26067
26068 2008-01-09  Richard Guenther  <rguenther@suse.de>
26069
26070         PR middle-end/34679
26071         * tree.c (host_integerp): Check for sizetype only if the
26072         type is an integer type.
26073
26074 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
26075
26076         PR debug/26364
26077         * opts.c (decode_options): Disable inlining of functions called
26078         once if not in unit-at-a-time mode.
26079
26080 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
26081
26082         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
26083
26084 2008-01-08  Richard Guenther  <rguenther@suse.de>
26085
26086         PR middle-end/31863
26087         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
26088         out early if the result will be unused.
26089
26090 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
26091
26092         PR target/34709
26093         Revert:
26094
26095         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26096         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
26097         for TARGET_RECIP.
26098
26099 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
26100
26101         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
26102         for vectorization tuned.
26103
26104 2008-01-08  Richard Guenther  <rguenther@suse.de>
26105
26106         PR tree-optimization/34683
26107         * tree-ssa-operands.c (operand_build_cmp): Export.
26108         * tree-ssa-operands.h (operand_build_cmp): Declare.
26109         * tree-vn.c (vuses_compare): Remove.
26110         (sort_vuses): Use operand_build_cmp.
26111         (sort_vuses_heap): Likewise.
26112         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
26113         to re-use old VEC if available.  Do not sort already sorted VUSEs.
26114         (vdefs_to_vec): Do not sort already sorted VDEFs.
26115
26116 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
26117
26118         PR middle-end/34694
26119         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
26120
26121 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
26122
26123         PR target/34702
26124         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
26125         limitations of reciprocal sequences on x86 targets.
26126
26127 2008-01-08  Richard Guenther  <rguenther@suse.de>
26128
26129         PR tree-optimization/34683
26130         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
26131
26132 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
26133
26134         PR target/34622
26135         * config/darwin.c (darwin_mergeable_string_section): Don't use
26136         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
26137
26138 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
26139
26140         PR target/34682
26141         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
26142         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
26143         predicates of op0 and op1 to register_operand.
26144         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
26145         expander using X87MODEF mode iterator.  Change predicates of
26146         op0 and op1 to register_operand.
26147         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
26148         corresponding patterns and macroize using MODEF macro.  Change
26149         predicates of op0 and op1 to register_operand and remove
26150         "m" constraint. Disparage "r" alternative with "!".
26151         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
26152         macroize using X87MODEF macro.  Change predicates of op0 and op1
26153         to register_operand and remove "m" constraint.  Disparage "r"
26154         alternative with "!".
26155         (absneg splitter with memory operands): Remove.
26156         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
26157         patterns and macroize using X87MODEF mode iterator.
26158         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
26159         Change predicate of op1 to register_operand.
26160         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
26161         for memory operands.
26162
26163 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
26164
26165         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
26166
26167 2008-01-07  Richard Guenther  <rguenther@suse.de>
26168
26169         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
26170         fields.
26171
26172 2008-01-07  Richard Guenther  <rguenther@suse.de>
26173
26174         PR tree-optimization/34683
26175         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
26176         VOPs of the needed size to save memory.  Use VEC_quick_push
26177         to save compile-time.
26178         (vdefs_to_vec): Likewise.
26179
26180 2008-01-07  Sa Liu  <saliu@de.ibm.com>
26181
26182         * config/spu/spu.md (divdf3): Genetate inline code for double
26183         division.  The implementation doesn't handle INF or NAN, therefore it
26184         only applies when -ffinite-math-only is given.
26185
26186 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
26187
26188         PR libstdc++/34680
26189         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
26190         * doc/cpp.texi ([Common Predefined Macros]): Document.
26191
26192 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
26193
26194         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
26195         order to use commutative addition instead of subtraction.
26196
26197 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26198             Mircea Namolaru  <namolaru@il.ibm.com>
26199             Vladimir Yanovsky  <yanov@il.ibm.com>
26200             Revital Eres  <eres@il.ibm.com>
26201
26202         PR tree-optimization/34263
26203         * tree-outof-ssa.c (process_single_block_loop_latch,
26204         contains_tree_r): New functions.
26205         (analyze_edges_for_bb): Call process_single_block_loop_latch
26206         function to empty single-basic-block latch block if possible.
26207
26208 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26209
26210         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
26211         for TARGET_RECIP.
26212         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
26213
26214 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
26215
26216         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
26217
26218 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
26219
26220         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
26221
26222 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
26223
26224         PR tree-optimization/34618
26225         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
26226         flag from T.
26227
26228 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
26229
26230         PR target/34673
26231         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
26232         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
26233         Update copyright year.
26234
26235         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
26236         Update copyright year.
26237         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
26238         using NR fixup.
26239
26240 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
26241
26242         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
26243         edge does not point to current bb before changing need_assert.
26244
26245 2008-01-04  Richard Guenther  <rguenther@suse.de>
26246
26247         PR middle-end/34029
26248         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
26249         for verifying purposes if they are is_gimple_min_invariant.
26250
26251 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
26252
26253         PR tree-optimization/34448
26254         PR tree-optimization/34465
26255         * gimplify.c (gimplify_init_constructor): Add new parameter
26256         notify_temp_creation.  Use it.
26257         (gimplify_modify_expr_rhs): Take volatiles into account when
26258         optimizing constructors.
26259         Do not optimize constructors if gimplify_init_constructor will dump to
26260         memory.
26261         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
26262         * gcc.c-torture/compile/pr34448.c: New.
26263
26264 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
26265
26266         PR gcov-profile/34609
26267         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
26268         return_slot if result is TREE_ADDRESSABLE.
26269
26270 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
26271
26272         * config/mips/mips.md (sqrt_condition): Tweak comment.
26273         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
26274
26275 2008-01-03  Tom Tromey  <tromey@redhat.com>
26276
26277         PR c/34457
26278         * c-common.c (c_type_hash): Handle VLAs.
26279
26280 2008-01-03  Jan Hubicka  <jh@suse.cz>
26281
26282         PR tree-optimization/31081
26283         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
26284         0 when inlining and not inlining to first basic block.
26285         (remap_decl): When var is initialized to 0, don't set default_def.
26286         (expand_call_inline): Set entry_bb.
26287         * tree-inline.h (copy_body_data): Add entry_bb.
26288
26289 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
26290
26291         PR c++/34619
26292         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
26293         before returning.
26294
26295         PR tree-optimization/29484
26296         * tree-inline.c (inline_forbidden_p_2): New function.
26297         (inline_forbidden_p): Disallow inlining if some static var
26298         has an address of a local LABEL_DECL in its initializer.
26299         * doc/extend.texi (Labels as Values): Document &&foo behaviour
26300         vs. inlining.
26301
26302 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
26303
26304         PR tree-optimization/34635
26305         * tree-data-ref.c (add_other_self_distances): Make sure that the
26306         evolution step is constant.
26307
26308 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
26309
26310         PR middle-end/34608
26311         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
26312
26313 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
26314
26315         * tree-sra.c (scalarize_init): Insert the generate_element_init
26316         statements after the generate_element_zero statements.
26317
26318 2008-01-02  Richard Guenther  <rguenther@suse.de>
26319
26320         PR middle-end/34093
26321         PR middle-end/31976
26322         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
26323         for very large number of operands instead of ICEing.
26324
26325 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
26326
26327         PR target/34013
26328         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
26329         while stack probing.
26330
26331 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
26332
26333         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
26334         in C++0x mode.
26335
26336 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
26337
26338         PR libmudflap/26442
26339         * tree-mudflap.c (mx_register_decls): Guard warning by
26340         !DECL_ARTIFICIAL check.
26341
26342 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
26343
26344         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
26345         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
26346         sse5_perm<mode>): Fix constraints.